Browse Source

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

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

94
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({
column: "itemCode",
action: "==",
value: result.package.itemCode
})
filters.push({
column: "batch",
action: "==",
value: result.package.batch
})
filters.push({ // filters.push({
column: "areaType", // column: "itemCode",
action: "in", // action: "==",
value: this.toLocationAreaTypeList.join(',') // value: result.package.itemCode
}) // })
// filters.push({
// column: "batch",
// action: "==",
// value: result.package.batch
// })
// filters.push({
// column: "areaType",
// action: "in",
// value: this.toLocationAreaTypeList.join(',')
// })
var params = {
filters: filters,
pageNo: 1,
pageSize: 100,
}
getBalanceByFilter(params).then(res => {
uni.hideLoading()
if (res.data.list.length > 0) {
this.showErrorMessage("包装在库位【" + res.data.list[0].locationCode + "】已有库存余额");
} else {
this.queryBalance(result); this.queryBalance(result);
} // var params = {
// callback(res.data) // filters: filters,
}).catch(err => { // pageNo: 1,
uni.hideLoading() // pageSize: 100,
this.showErrorMessage(err.message); // }
}) // getBalanceByFilter(params).then(res => {
// uni.hideLoading()
// if (res.data.list.length > 0) {
// this.showErrorMessage("" + res.data.list[0].locationCode + "");
// } else {
// this.queryBalance(result);
// }
// // callback(res.data)
// }).catch(err => {
// uni.hideLoading()
// this.showErrorMessage(err.message);
// })
}, },
selectBalanceItem(balance) { selectBalanceItem(balance) {

Loading…
Cancel
Save