|
|
@ -413,34 +413,10 @@ export default { |
|
|
|
this.$message({ message: '请选择至少一条数据进行打印!', type: 'error' }) |
|
|
|
return false |
|
|
|
} |
|
|
|
const arr = this.$refs.bjdList.selection.map((bjd) => { |
|
|
|
return bjd.id |
|
|
|
}) |
|
|
|
console.log(arr) |
|
|
|
this.preview({ |
|
|
|
url: '/print/batchGeneratePdfHzd', |
|
|
|
method: 'get', |
|
|
|
params: { |
|
|
|
bjdIds: arr |
|
|
|
}, |
|
|
|
paramsSerializer: function(params) { |
|
|
|
return qs.stringify(params, { indices: false }) |
|
|
|
} |
|
|
|
}).then((data) => { |
|
|
|
this.preview({ |
|
|
|
url: '/print/createXmlOther', |
|
|
|
method: 'post', |
|
|
|
params: { |
|
|
|
ids: arr, |
|
|
|
type: 'HZD' |
|
|
|
}, |
|
|
|
paramsSerializer: function(params) { |
|
|
|
return qs.stringify(params, { indices: false }) |
|
|
|
} |
|
|
|
}).then((data) => { |
|
|
|
const bjdIds = this.$refs.bjdList.selection.map((bjd) => bjd.id) |
|
|
|
this.bjdService.batchPrintHzd(bjdIds).then((data) => { |
|
|
|
this.printbutton = 'ReportPrintApp://' + data |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 打印回执单 |
|
|
|
printHzd() { |
|
|
|