仓库库存查看total优化

This commit is contained in:
2024-07-15 15:02:11 +08:00
parent 013c394cd0
commit 3ead0ef3be

View File

@@ -1,5 +1,7 @@
<template>
<view class="common-nav-container">
<u-search placeholder="请填写流水号如401" borderColor="#c8c9cc" v-model.trim="formData.query" bgColor="#f4f4f5"
shape="square" searchIconSize="48" @search="getList()" @custom="getList()"></u-search>
<u-list height="640px">
<u-list-item v-for="(item, index) in dataList" :key="index">
<u-cell :title="'批次号:'+item.packageCodeClient"
@@ -42,8 +44,12 @@
},
data() {
return {
formData: {
query: ''
},
shortpatchcode: '',
dataList: []
dataList: [],
total: 0
};
},
mounted() {
@@ -52,11 +58,12 @@
methods: {
getList() {
const query = {
packageCodeClient: this.shortpatchcode
packageCodeClient: this.shortpatchcode + '_' + this.formData.query
};
watchGoodsApi.GetGoodsNowProduction_detail(query).then((res) => {
if (res.code == 200) {
this.dataList = res.data;
this.dataList = res.data.list;
this.total = res.data.total;
}
});
}