|
|
|
@ -541,7 +541,13 @@ export default { |
|
|
|
if (data.code === 0) { |
|
|
|
this.$message.success("操作成功"); |
|
|
|
this.clearAllHandlingUnitCache(); |
|
|
|
this.printViaServer(data.data,item.needCheck); // 调用打印 |
|
|
|
let printLabelType; |
|
|
|
if (item.partNo && item.partNo.startsWith("80")) { |
|
|
|
printLabelType = '库存成品标签'; |
|
|
|
} else { |
|
|
|
printLabelType = 'BIL标签'; |
|
|
|
} |
|
|
|
this.printViaServer(data.data,item.needCheck,printLabelType); // 调用打印 |
|
|
|
this.processFlag = 1; |
|
|
|
this.scanCode = ''; |
|
|
|
this.poList = []; |
|
|
|
@ -560,7 +566,7 @@ export default { |
|
|
|
/** |
|
|
|
* 通过服务器打印 |
|
|
|
*/ |
|
|
|
async printViaServer(receiptNo,needCheck) { |
|
|
|
async printViaServer(receiptNo,needCheck,printLabelType) { |
|
|
|
this.$emit('print-start') |
|
|
|
try { |
|
|
|
const printRequest = { |
|
|
|
@ -574,7 +580,7 @@ export default { |
|
|
|
site: localStorage.getItem('site'), |
|
|
|
receiptNo: receiptNo, |
|
|
|
needCheck:needCheck, |
|
|
|
labelType:"BIL标签" |
|
|
|
labelType:printLabelType |
|
|
|
} |
|
|
|
const { data } = await printLabel(printRequest) |
|
|
|
if (data.code === 200) { |
|
|
|
|