Browse Source

修改库存转移

lijuncheng0816
lijuncheng 6 months ago
parent
commit
66bf11b1ad
  1. 11
      src/pages/inventoryMove/coms/comMoveRecord.vue

11
src/pages/inventoryMove/coms/comMoveRecord.vue

@ -237,9 +237,6 @@
getScanResult(result) { getScanResult(result) {
var balance = result.balance; var balance = result.balance;
var pack = result.package; var pack = result.package;
if(!balance.packingNumber){
balance.packingNumber=pack.number;
}
var item = this.detailSource.find(res => { var item = this.detailSource.find(res => {
if (res.itemCode == balance.itemCode) { if (res.itemCode == balance.itemCode) {
return res return res
@ -264,8 +261,8 @@
this.detailSource.push(itemp) this.detailSource.push(itemp)
} else { } else {
var detail = item.subList.find(r => { var detail = item.subList.find(r => {
if (r.packingNumber == balance.packingNumber && if (r.packingNumber == pack.number &&
r.batch == balance.batch && r.batch == pack.batch &&
r.fromLocationCode == balance.locationCode && r.fromLocationCode == balance.locationCode &&
r.toInventoryStatus == balance.inventoryStatus && r.toInventoryStatus == balance.inventoryStatus &&
r.scaned == true) { r.scaned == true) {
@ -285,7 +282,7 @@
newDetail.fromLocationCode = result.fromLocationCode newDetail.fromLocationCode = result.fromLocationCode
item.subList.push(newDetail); item.subList.push(newDetail);
} else { } else {
this.showErrorMessage(balance.packingNumber + "重复扫描") this.showErrorMessage(detail.packingNumber + "重复扫描")
} }
} }
calcHandleQty(this.detailSource); calcHandleQty(this.detailSource);
@ -362,7 +359,7 @@
if (res.success) { if (res.success) {
this.managementList = res.list; this.managementList = res.list;
var params = this.setParams() var params = this.setParams()
// console.log("" + JSON.stringify(params)) console.log("提交" + JSON.stringify(params))
inventoryMoveRecordSubmit(params).then(res => { inventoryMoveRecordSubmit(params).then(res => {
uni.hideLoading() uni.hideLoading()
if (res.data) { if (res.data) {

Loading…
Cancel
Save