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

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

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

Loading…
Cancel
Save