Browse Source

修改翻包焦点消失

lijuncheng0816
lijuncheng 4 months ago
parent
commit
07e193f3e2
  1. 30
      src/pages/package/coms/comScanPackagePack.vue
  2. 1
      src/pages/repleinsh/coms/comScanReplishPack.vue

30
src/pages/package/coms/comScanPackagePack.vue

@ -133,7 +133,7 @@ import { getDirectoryItemArray } from '@/common/directory';
if (item == undefined) {
this.showErrorMessage('未查找到物料【' + itemCode + '】的翻包明细',
res => {
this.getfocus();
this.packGetFocus();
}
)
} else {
@ -162,7 +162,7 @@ import { getDirectoryItemArray } from '@/common/directory';
if (item == undefined) {
that.showErrorMessage('未查找到物料【' + itemCode + '】的翻包明细',
res => {
that.getfocus();
that.packGetFocus();
}
)
return;
@ -170,7 +170,7 @@ import { getDirectoryItemArray } from '@/common/directory';
// if(that.packageInfo.packUnit!=item.Locations[0].Batchs[0].fromPackUnit){
// that.showErrorMessage(""+that.packageInfo.packUnit+""+item.Locations[0].Batchs[0].fromPackUnit+"",
// res => {
// that.getfocus();
// that.packGetFocus();
// }
// )
// return;
@ -241,7 +241,7 @@ import { getDirectoryItemArray } from '@/common/directory';
} else {
that.showErrorMessage('未查找到该箱码【' + packingCode + '】的明细',
res => {
that.getfocus();
that.packGetFocus();
}
)
}
@ -252,7 +252,7 @@ import { getDirectoryItemArray } from '@/common/directory';
} else {
that.showErrorMessage('箱码【' + packingCode + '】已经扫描,请继续扫描下一箱',
res => {
that.getfocus();
that.packGetFocus();
}
)
}
@ -272,21 +272,21 @@ import { getDirectoryItemArray } from '@/common/directory';
} else {
that.showErrorMessage('未查找到批次【' + lot + '】的翻包明细',
res => {
that.getfocus();
that.packGetFocus();
});
}
}
} else {
that.showErrorMessage('未查找到推荐库位【' + that.fromLocationCode + '】的翻包明细',
res => {
that.getfocus();
that.packGetFocus();
}
)
}
} catch (e) {
that.showErrorMessage(e.stack,
res => {
that.getfocus();
that.packGetFocus();
}
)
}
@ -341,21 +341,9 @@ import { getDirectoryItemArray } from '@/common/directory';
let record = this.creatRecord(label, balance, packageInfo);
batch.Records.push(record);
this.calcBatchHandleQty(batch);
this.getfocus();
this.packGetFocus();
},
// getfocus() {
// if (this.$refs.scanPopup ) {
// this.$refs.scanPopup.packGetFocus();
// }
// },
// losefocus() {
// if (this.$refs.scanPopup ) {
// this.$refs.scanPopup.packLoseFocus();
// }
// },
swipeClick(e, item, index) {
if (e.content.text == "详情") {
this.detail(item)

1
src/pages/repleinsh/coms/comScanReplishPack.vue

@ -316,6 +316,7 @@
}
// callback(res.data)
}).catch(err => {
uni.hideLoading()
this.showErrorMessage(err.message);
})
},

Loading…
Cancel
Save