|
|
|
@ -156,8 +156,12 @@
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="20">
|
|
|
|
|
<el-col :span="14" style="margin-left: 40px">
|
|
|
|
|
<el-col :span="11" style="margin-left: 40px">
|
|
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="3">
|
|
|
|
|
<div class="text item" style="margin-left: 30px"> 盘点产品数量:{{ codeArray.length }}
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="3">
|
|
|
|
|
<div class="text item" style="margin-left: 30px"> 条码数量:{{ codesNum }}
|
|
|
|
@ -238,7 +242,7 @@
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button-group>
|
|
|
|
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
|
|
|
|
|
<el-button type="primary" icon="search" @click="getInvProducts"
|
|
|
|
|
<el-button type="primary" icon="search" @click="queryInvProducts"
|
|
|
|
|
>查询
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
@ -355,6 +359,7 @@ export default {
|
|
|
|
|
filterQuery: {
|
|
|
|
|
invStorageCode: null,
|
|
|
|
|
invWarehouseCode: null,
|
|
|
|
|
invSpaceCode: null,
|
|
|
|
|
nameCode: null,
|
|
|
|
|
cpmctymc: null,
|
|
|
|
|
batchNo: null,
|
|
|
|
@ -365,9 +370,7 @@ export default {
|
|
|
|
|
scanText: "扫码录入:",
|
|
|
|
|
codesList: [],
|
|
|
|
|
detailQuery: {
|
|
|
|
|
orderIdFk: null,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10
|
|
|
|
|
orderIdFk: null
|
|
|
|
|
},
|
|
|
|
|
detailTotal: 0,
|
|
|
|
|
countProductList: [],
|
|
|
|
@ -442,6 +445,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
subStorageChange() {
|
|
|
|
|
this.formData.invSpaceCode = null;
|
|
|
|
|
this.spaceList = [];
|
|
|
|
|
//查询货位
|
|
|
|
|
this.getInvSpaceList();
|
|
|
|
|
},
|
|
|
|
@ -458,13 +462,21 @@ export default {
|
|
|
|
|
invSpaceChange() {
|
|
|
|
|
this.$forceUpdate();
|
|
|
|
|
},
|
|
|
|
|
queryInvProducts() {
|
|
|
|
|
this.filterQuery.page = 1;
|
|
|
|
|
this.getInvProducts();
|
|
|
|
|
},
|
|
|
|
|
getInvProducts() {
|
|
|
|
|
this.filterQuery.invStorageCode = this.formData.invStorageCode;
|
|
|
|
|
this.filterQuery.invWarehouseCode = this.formData.invWarehouseCode;
|
|
|
|
|
filterProducts(this.filterQuery).then((res) => {
|
|
|
|
|
this.filterQuery.invSpaceCode = this.formData.invSpaceCode;
|
|
|
|
|
getCountInvProductProduct(this.filterQuery).then((res) => {
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
this.productList = res.data.list || [];
|
|
|
|
|
this.total = res.data.total || 0;
|
|
|
|
|
} else {
|
|
|
|
|
this.productList = [];
|
|
|
|
|
this.total = 0;
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
@ -601,7 +613,7 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
getCountInvProductProduct(params).then((res) => {
|
|
|
|
|
if (res.data.length !== 0) {
|
|
|
|
|
let invProductList = res.data;
|
|
|
|
|
let invProductList = res.data.list;
|
|
|
|
|
for (let product of invProductList) {
|
|
|
|
|
this.countProductList.push(product);
|
|
|
|
|
}
|
|
|
|
@ -618,10 +630,9 @@ export default {
|
|
|
|
|
invWarehouseCode: this.formData.invWarehouseCode,
|
|
|
|
|
invSpaceCode: this.formData.invSpaceCode
|
|
|
|
|
};
|
|
|
|
|
console.log(params)
|
|
|
|
|
getCountInvProductProduct(params).then((res) => {
|
|
|
|
|
if (res.data.length !== 0) {
|
|
|
|
|
let invProductList = res.data;
|
|
|
|
|
let invProductList = res.data.list;
|
|
|
|
|
for (let product of invProductList) {
|
|
|
|
|
this.countProductList.push(product);
|
|
|
|
|
}
|
|
|
|
@ -634,6 +645,7 @@ export default {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
this.selectInvProductVisible = true;
|
|
|
|
|
this.queryInvProducts();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|