Browse Source

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

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

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

@ -437,57 +437,57 @@
title: '查询中',
mask: true
})
var filters = []
if (result.package.parentNumber) {
var packingNumber = result.package.parentNumber + "," + result.package.number;
filters.push({
column: "packingNumber",
action: "in",
value: packingNumber
})
} else {
filters.push({
column: "packingNumber",
action: "==",
value: result.package.number
})
}
filters.push({
column: "itemCode",
action: "==",
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);
}
// callback(res.data)
}).catch(err => {
uni.hideLoading()
this.showErrorMessage(err.message);
})
// var filters = []
// if (result.package.parentNumber) {
// var packingNumber = result.package.parentNumber + "," + result.package.number;
// filters.push({
// column: "packingNumber",
// action: "in",
// value: packingNumber
// })
// } else {
// filters.push({
// column: "packingNumber",
// action: "==",
// value: result.package.number
// })
// }
// filters.push({
// column: "itemCode",
// action: "==",
// value: result.package.itemCode
// })
// filters.push({
// column: "batch",
// action: "==",
// value: result.package.batch
// })
// filters.push({
// column: "areaType",
// action: "in",
// value: this.toLocationAreaTypeList.join(',')
// })
this.queryBalance(result);
// 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);
// }
// // callback(res.data)
// }).catch(err => {
// uni.hideLoading()
// this.showErrorMessage(err.message);
// })
},
selectBalanceItem(balance) {

Loading…
Cancel
Save