Browse Source

修改成品发货

hella_vue3
Niext 7 months ago
parent
commit
2f61b30b4b
  1. 12
      src/pages/deliver/coms/comScanDeliverPack.vue
  2. 13
      src/pages/deliver/job/deliverDetail.vue
  3. 2
      src/pages/deliver/job/deliverJob.vue

12
src/pages/deliver/coms/comScanDeliverPack.vue

@ -343,7 +343,7 @@
this.showQuestionMessage('在【' + that.fromLocationCode + '】库位下,未查找到批次【' + lot + this.showQuestionMessage('在【' + that.fromLocationCode + '】库位下,未查找到批次【' + lot +
'】的发货明细,是否要继续发货?', res => { '】的发货明细,是否要继续发货?', res => {
if (res) { if (res) {
let batch = that.createBatchInfo(label, balance); let batch = that.createBatchInfo(label, balance,packageInfo);
fromLocation.Batchs.unshift(batch); fromLocation.Batchs.unshift(batch);
} }
}) })
@ -370,7 +370,7 @@
} }
}, },
createBatchInfo(data, balance) { createBatchInfo(data, balance, packageInfo) {
let batch = { let batch = {
batch: data.lot, batch: data.lot,
qty: 0, qty: 0,
@ -378,7 +378,7 @@
handleQty: Number(data.qty), handleQty: Number(data.qty),
Records: [] Records: []
} }
let record = this.creatRecord(data, balance); let record = this.creatRecord(data, balance, packageInfo);
batch.Records.push(record); batch.Records.push(record);
this.issueRecord.unshift(record) this.issueRecord.unshift(record)
return batch; return batch;
@ -396,7 +396,9 @@
inventoryStatus: balance.inventoryStatus, inventoryStatus: balance.inventoryStatus,
balance: balance, balance: balance,
toLocationCode: this.toLocationCode, toLocationCode: this.toLocationCode,
supplierCode: label.supplierCode supplierCode: label.supplierCode,
packUnit: packageInfo.packUnit,
packQty: packageInfo.packQty
} }
return record; return record;
}, },
@ -404,7 +406,7 @@
calcBatchHandleQty(batch) { calcBatchHandleQty(batch) {
let handleQty = 0; let handleQty = 0;
batch.Records.forEach(res => { batch.Records.forEach(res => {
handleQty = calc.add(handleQty,res.qty) handleQty = calc.add(handleQty, res.qty)
}) })
batch.handleQty = handleQty; batch.handleQty = handleQty;
}, },

13
src/pages/deliver/job/deliverDetail.vue

@ -250,7 +250,7 @@
deliverJobSubmit(params).then(res => { deliverJobSubmit(params).then(res => {
uni.hideLoading() uni.hideLoading()
if (res.data) { if (res.data) {
this.showCommitSuccessMessage("提交成功<br>生成发货记录" + res.data) this.showCommitSuccessMessage("提交成功<br>生成发货记录<br>" + res.data)
} else { } else {
this.showErrorMessage("提交失败[" + res.msg + "]") this.showErrorMessage("提交失败[" + res.msg + "]")
} }
@ -288,11 +288,12 @@
.packingNumber; .packingNumber;
record.toBatch = r.batch; record.toBatch = r.batch;
} else { } else {
var info = getPackingNumberAndBatch( var info =
this.managementList, r getPackingNumberAndBatch(
.itemCode, this.managementList, r
r.packingNumber, r .itemCode,
.batch); r.packingNumber, r
.batch);
record.toPackingNumber = info record.toPackingNumber = info
.packingNumber; .packingNumber;
record.toBatch = info.batch; record.toBatch = info.batch;

2
src/pages/deliver/job/deliverJob.vue

@ -160,7 +160,7 @@
this.loadingType = "nomore"; this.loadingType = "nomore";
return; return;
} }
this.jobList = type === "refresh" ? list : this.receiptList.concat(list); this.jobList = type === "refresh" ? list : this.jobList.concat(list);
this.pageNo++; this.pageNo++;
}).catch(error => { }).catch(error => {

Loading…
Cancel
Save