|
|
@ -152,43 +152,44 @@ |
|
|
|
}, |
|
|
|
//直接扫描 |
|
|
|
openScanPopupForType(fromLocationCode, businessType) { |
|
|
|
|
|
|
|
this.businessType = businessType; |
|
|
|
this.fromLocationCode = fromLocationCode; |
|
|
|
|
|
|
|
this.fromInventoryStatuses = getDirectoryItemArray(this.businessType.outInventoryStatuses) |
|
|
|
this.inventoryStatus = getDirectoryItemArray(this.businessType.outInventoryStatuses); //出库库存状态 |
|
|
|
this.fromLocationAreaTypeList = getDirectoryItemArray(this.businessType.outAreaTypes); //出库库区 |
|
|
|
this.$refs.popup.open('bottom') |
|
|
|
setTimeout(res => { |
|
|
|
if (fromLocationCode != '') { |
|
|
|
this.packGetFocus(); |
|
|
|
} else { |
|
|
|
this.locationGetFocus(); |
|
|
|
} |
|
|
|
this.fromInventoryStatuses = getDirectoryItemArray(this.businessType.outInventoryStatuses) |
|
|
|
this.inventoryStatus = getDirectoryItemArray(this.businessType.outInventoryStatuses); //出库库存状态 |
|
|
|
this.fromLocationAreaTypeList = getDirectoryItemArray(this.businessType.outAreaTypes); //出库库区 |
|
|
|
if (!this.show) { |
|
|
|
setTimeout(res => { |
|
|
|
this.$refs.popup.open('bottom') |
|
|
|
}, 500) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
//在任务中扫描 |
|
|
|
openScanPopupForJob(fromLocationCode, fromLocationList, jobContent) { |
|
|
|
this.fromLocationCode = fromLocationCode; |
|
|
|
this.fromLocationList = fromLocationList; |
|
|
|
if (fromLocationCode != '') { |
|
|
|
this.fromInventoryStatuses = getDirectoryItemArray(jobContent.outInventoryStatuses) |
|
|
|
this.inventoryStatus = getDirectoryItemArray(jobContent.outInventoryStatuses); //出库库存状态; //出库库存状态 |
|
|
|
this.fromLocationAreaTypeList = getDirectoryItemArray(jobContent.fromAreaTypes); //出库库存状态 |
|
|
|
this.$refs.popup.open('bottom') |
|
|
|
|
|
|
|
setTimeout(res => { |
|
|
|
if (this.fromLocationCode != '') { |
|
|
|
this.packGetFocus(); |
|
|
|
} else { |
|
|
|
if (this.fromLocationList.length == 0) { |
|
|
|
this.locationGetFocus(); |
|
|
|
} else { |
|
|
|
this.fromLocationCode = this.fromLocationList[0]; |
|
|
|
this.packGetFocus(); |
|
|
|
} |
|
|
|
} |
|
|
|
setTimeout(res => { |
|
|
|
this.$refs.popup.open('bottom') |
|
|
|
}, 500) |
|
|
|
this.fromInventoryStatuses = getDirectoryItemArray(jobContent.outInventoryStatuses) |
|
|
|
this.inventoryStatus = getDirectoryItemArray(jobContent.outInventoryStatuses); //出库库存状态; //出库库存状态 |
|
|
|
this.fromLocationAreaTypeList = getDirectoryItemArray(jobContent.fromAreaTypes); //出库库存状态 |
|
|
|
|
|
|
|
}, |
|
|
|
//模拟扫描 |
|
|
|
openScanPopupForJobSimulate(fromLocationCode, fromLocationList, jobContent, scanMessage) { |
|
|
@ -417,7 +418,7 @@ |
|
|
|
balance: datas, |
|
|
|
fromLocationCode: this.fromLocationCode, |
|
|
|
} |
|
|
|
this.packGetFocus(); |
|
|
|
// this.packGetFocus(); |
|
|
|
this.$emit("getResult", data); |
|
|
|
this.$emit("getCountScanResult", data); |
|
|
|
}, |
|
|
@ -433,18 +434,18 @@ |
|
|
|
balance: item, |
|
|
|
fromLocationCode: this.fromLocationCode, |
|
|
|
} |
|
|
|
this.packGetFocus(); |
|
|
|
// this.packGetFocus(); |
|
|
|
this.$emit("getResult", data); |
|
|
|
}, |
|
|
|
|
|
|
|
packGetFocus() { |
|
|
|
if (this.$refs.comscan != undefined) { |
|
|
|
if (this.$refs.comscan) { |
|
|
|
this.$refs.comscan.getfocus(); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
packLoseFocus() { |
|
|
|
if (this.$refs.comscan != undefined) { |
|
|
|
if (this.$refs.comscan) { |
|
|
|
this.$refs.comscan.losefocus(); |
|
|
|
} |
|
|
|
}, |
|
|
|