Browse Source

YT-410发料任务,扫描数量与任务数量不一致时,点击取消,没有添加到页面上,再次扫描提示一扫描

intex_online20241111
zhang_li 1 month ago
parent
commit
227c5f8687
  1. 7
      src/pages/issue/coms/comScanIssuePack.vue
  2. 18
      src/pages/issue/job/issueDetail.vue

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

@ -916,9 +916,8 @@
if (item != undefined) {
item.Locations.forEach(l => {
let batch = l.Batchs.find(b => b.packingNumber == record.packingNumber && b
let batch = l.Batchs.find(b => b
.batch == record.batch);
if (batch && batch.Records && batch.Records.length > 0) {
let rIndex = batch.Records.findIndex(r => r.packingNumber == record
.packingNumber && r.batch == record.batch);
@ -931,7 +930,9 @@
}
});
},
clearList(){
this.issueRecord=[]
},
packGetFocus() {
if (this.$refs.comscan) {
this.$refs.comscan.getfocus();

18
src/pages/issue/job/issueDetail.vue

@ -475,6 +475,24 @@
//
this.$throttle(this.submit, 2000, this)()
} else {
// let record = this.creatRecord(label, balance, packageInfo);
// batch.Records.push(record);
// this.issueRecord.unshift(record)
// this.calcBatchHandleQty(batch);
// this.getfocus();
// this.$emit("afterScan");
this.detailSource.forEach(detail => {
detail.Items.forEach(item => {
taskQty =calc.add(taskQty,item.qty)
item.Locations.forEach(lco => {
lco.Batchs.forEach(batch => {
batch.Records = []
})
})
})
})
this.$refs.comScanIssuePack.clearList()
this.scanPopupGetFocus()
}
});

Loading…
Cancel
Save