Commit a291ba27b095188893433ba2de252ab9d62ffe7c
1 parent
07e12785
v1.9 优化云打印bug
Showing
2 changed files
with
6 additions
and
2 deletions
src/api/fee/printSmallPayFeeApi.js
| ... | ... | @@ -77,7 +77,7 @@ export function listMachinePrinter(params) { |
| 77 | 77 | export function printPayFeeDetail(data) { |
| 78 | 78 | return new Promise((resolve, reject) => { |
| 79 | 79 | request({ |
| 80 | - url: '/print/printPayFeeDetail', | |
| 80 | + url: '/print.printPayFeeDetail', | |
| 81 | 81 | method: 'post', |
| 82 | 82 | data: { |
| 83 | 83 | ...data, | ... | ... |
src/views/fee/printSmallPayFeeList.vue
| ... | ... | @@ -265,7 +265,11 @@ export default { |
| 265 | 265 | quantity: this.printSmallPayFeeInfo.quantity, |
| 266 | 266 | detailId: detailIds.join(',') |
| 267 | 267 | } |
| 268 | - await printPayFeeDetail(data) | |
| 268 | + const {code,msg} = await printPayFeeDetail(data) | |
| 269 | + if (code != 0) { | |
| 270 | + this.$message.error(msg) | |
| 271 | + return; | |
| 272 | + } | |
| 269 | 273 | this.cloudPrintVisible = false |
| 270 | 274 | this.$message.success(this.$t('printSmallPayFee.submitSuccess')) |
| 271 | 275 | } catch (error) { | ... | ... |