Browse Source

发料任务去掉包装在库位已有库存余额提示

syhx
zhang_li 2 months ago
parent
commit
f8aabdb0ee
  1. 102
      src/pages/issue/coms/comScanIssuePack.vue

102
src/pages/issue/coms/comScanIssuePack.vue

@ -437,57 +437,57 @@
title: '查询中', title: '查询中',
mask: true mask: true
}) })
var filters = [] // var filters = []
if (result.package.parentNumber) { // if (result.package.parentNumber) {
var packingNumber = result.package.parentNumber + "," + result.package.number; // var packingNumber = result.package.parentNumber + "," + result.package.number;
filters.push({ // filters.push({
column: "packingNumber", // column: "packingNumber",
action: "in", // action: "in",
value: packingNumber // value: packingNumber
}) // })
} else { // } else {
filters.push({ // filters.push({
column: "packingNumber", // column: "packingNumber",
action: "==", // action: "==",
value: result.package.number // value: result.package.number
}) // })
} // }
filters.push({ // filters.push({
column: "itemCode", // column: "itemCode",
action: "==", // action: "==",
value: result.package.itemCode // value: result.package.itemCode
}) // })
filters.push({ // filters.push({
column: "batch", // column: "batch",
action: "==", // action: "==",
value: result.package.batch // value: result.package.batch
}) // })
filters.push({ // filters.push({
column: "areaType", // column: "areaType",
action: "in", // action: "in",
value: this.toLocationAreaTypeList.join(',') // value: this.toLocationAreaTypeList.join(',')
}) // })
this.queryBalance(result);
var params = { // var params = {
filters: filters, // filters: filters,
pageNo: 1, // pageNo: 1,
pageSize: 100, // pageSize: 100,
} // }
getBalanceByFilter(params).then(res => { // getBalanceByFilter(params).then(res => {
uni.hideLoading() // uni.hideLoading()
if (res.data.list.length > 0) { // if (res.data.list.length > 0) {
this.showErrorMessage("包装在库位【" + res.data.list[0].locationCode + "】已有库存余额"); // this.showErrorMessage("" + res.data.list[0].locationCode + "");
} else { // } else {
this.queryBalance(result); // this.queryBalance(result);
} // }
// callback(res.data) // // callback(res.data)
}).catch(err => { // }).catch(err => {
uni.hideLoading() // uni.hideLoading()
this.showErrorMessage(err.message); // this.showErrorMessage(err.message);
}) // })
}, },
selectBalanceItem(balance) { selectBalanceItem(balance) {

Loading…
Cancel
Save