|
|
@ -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 |
|
|
|
}) |
|
|
|
// 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: "areaType", |
|
|
|
action: "in", |
|
|
|
value: this.toLocationAreaTypeList.join(',') |
|
|
|
}) |
|
|
|
// 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 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) { |
|
|
|