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