diff --git a/src/pages/package/coms/comScanPackagePack.vue b/src/pages/package/coms/comScanPackagePack.vue index 08a54ef8..e1e04d3d 100644 --- a/src/pages/package/coms/comScanPackagePack.vue +++ b/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) diff --git a/src/pages/repleinsh/coms/comScanReplishPack.vue b/src/pages/repleinsh/coms/comScanReplishPack.vue index 58a21ce1..d33794e2 100644 --- a/src/pages/repleinsh/coms/comScanReplishPack.vue +++ b/src/pages/repleinsh/coms/comScanReplishPack.vue @@ -316,6 +316,7 @@ } // callback(res.data) }).catch(err => { + uni.hideLoading() this.showErrorMessage(err.message); }) },