Browse Source

YT-765制品直接收货,输入不正确制品标签,没有提示

intex_online20241111
zhang_li 3 months ago
parent
commit
e9a30bf293
  1. 8
      src/pages/productReceipt/record/productReceiptRecordByBatch.vue

8
src/pages/productReceipt/record/productReceiptRecordByBatch.vue

@ -145,13 +145,17 @@
getScanResult(result) {
let label = result.label;
let pack = result.package;
if(!result.label.itemCode){
this.showErrorMessage('扫描标签不对,请重新扫描')
this.$emit('clearItemCode',result.label)
return
}
var item = this.detailSource.find(res => {
if (res.itemCode == label.itemCode) {
return res
}
})
if (item == undefined) {
var itemp = this.createItemInfo(label, pack);
let newDetail = this.createDetailInfo(label, pack);

Loading…
Cancel
Save