|
@ -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) |
|
|