|
|
|
@ -417,8 +417,8 @@ export default { |
|
|
|
// 手工参数 |
|
|
|
param:[] |
|
|
|
}, |
|
|
|
// 临时参数记录 |
|
|
|
tempParamList:[], |
|
|
|
// 记录打印参数 |
|
|
|
printParamList: [], |
|
|
|
// 模板参数列表 |
|
|
|
reportParamList: [], |
|
|
|
buttons: { |
|
|
|
@ -557,7 +557,7 @@ export default { |
|
|
|
} |
|
|
|
this.orderInfo.reportFileList = this.selectReportFileList |
|
|
|
this.orderInfo.param = this.reportParamList |
|
|
|
this.tempParamList = this.reportParamList |
|
|
|
this.printParamList = JSON.parse(JSON.stringify(this.reportParamList)) |
|
|
|
ouBoxPrintLabel(this.orderInfo).then(({data}) =>{ |
|
|
|
if (data.code === 0 ){ |
|
|
|
this.$message.success(data.msg) |
|
|
|
@ -644,12 +644,18 @@ 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 |
|
|
|
this.tempParamList |
|
|
|
for (let item of this.tempParamList) { |
|
|
|
|
|
|
|
if (printParamList){ |
|
|
|
for (let item1 of printParamList) { |
|
|
|
for (let item2 of this.reportParamList) { |
|
|
|
if (item1.parametername === item2.parametername){ |
|
|
|
item2.optionvalue = item1.optionvalue |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
|