|
|
|
@ -415,10 +415,12 @@ export default { |
|
|
|
// 选中模板列表 |
|
|
|
reportFileList: [], |
|
|
|
// 手工参数 |
|
|
|
param:[] |
|
|
|
param: [] |
|
|
|
}, |
|
|
|
// 模板参数列表 |
|
|
|
reportParamList: [], |
|
|
|
// 记录打印参数 |
|
|
|
printParamList: [], |
|
|
|
buttons: { |
|
|
|
settingLanguageList: '按语言设置', |
|
|
|
edit: '编辑', |
|
|
|
@ -555,10 +557,11 @@ export default { |
|
|
|
} |
|
|
|
this.orderInfo.reportFileList = this.selectReportFileList |
|
|
|
this.orderInfo.param = this.reportParamList |
|
|
|
ouBoxPrintLabel(this.orderInfo).then(({data}) =>{ |
|
|
|
if (data.code === 0 ){ |
|
|
|
this.$message.success(data.msg) |
|
|
|
}else { |
|
|
|
this.printParamList = JSON.parse(JSON.stringify(this.reportParamList)) |
|
|
|
ouBoxPrintLabel(this.orderInfo).then(({data}) => { |
|
|
|
if (data.code === 0) { |
|
|
|
this.$message.success(data.msg) |
|
|
|
} else { |
|
|
|
this.$message.warning(data.msg) |
|
|
|
} |
|
|
|
}) |
|
|
|
@ -569,7 +572,7 @@ export default { |
|
|
|
getBoxLabelSO(this.orderNo).then(({data}) => { |
|
|
|
if (data.code === 0) { |
|
|
|
this.orderInfo.customerId = data.data.customerId ? data.data.customerId : '*' |
|
|
|
this.orderInfo.totalQty = data.data.sumQty |
|
|
|
this.orderInfo.totalQty = data.data.sumQty |
|
|
|
this.orderInfo.perBoxQty = data.data.boxQty |
|
|
|
this.orderInfo.orderNo = this.orderNo |
|
|
|
let query = { |
|
|
|
@ -639,11 +642,24 @@ export default { |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
// 获取柱模版打印参数 |
|
|
|
// 获取主模版打印参数 |
|
|
|
searchReportParameters(val) { |
|
|
|
let printParamList = JSON.parse(JSON.stringify(this.printParamList)) |
|
|
|
// 本次打印参数 |
|
|
|
getReportParameters(val.reportId).then(({data}) => { |
|
|
|
if (data.code === 0) { |
|
|
|
// 上次保留打印参数 |
|
|
|
this.reportParamList = data.data |
|
|
|
if (printParamList){ |
|
|
|
for (let item1 of printParamList) { |
|
|
|
for (let item2 of this.reportParamList) { |
|
|
|
if (item1.parametername === item2.parametername){ |
|
|
|
item2.optionvalue = item1.optionvalue |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|