Commit a291ba27b095188893433ba2de252ab9d62ffe7c

Authored by wuxw
1 parent 07e12785

v1.9 优化云打印bug

src/api/fee/printSmallPayFeeApi.js
@@ -77,7 +77,7 @@ export function listMachinePrinter(params) { @@ -77,7 +77,7 @@ export function listMachinePrinter(params) {
77 export function printPayFeeDetail(data) { 77 export function printPayFeeDetail(data) {
78 return new Promise((resolve, reject) => { 78 return new Promise((resolve, reject) => {
79 request({ 79 request({
80 - url: '/print/printPayFeeDetail', 80 + url: '/print.printPayFeeDetail',
81 method: 'post', 81 method: 'post',
82 data: { 82 data: {
83 ...data, 83 ...data,
src/views/fee/printSmallPayFeeList.vue
@@ -265,7 +265,11 @@ export default { @@ -265,7 +265,11 @@ export default {
265 quantity: this.printSmallPayFeeInfo.quantity, 265 quantity: this.printSmallPayFeeInfo.quantity,
266 detailId: detailIds.join(',') 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 this.cloudPrintVisible = false 273 this.cloudPrintVisible = false
270 this.$message.success(this.$t('printSmallPayFee.submitSuccess')) 274 this.$message.success(this.$t('printSmallPayFee.submitSuccess'))
271 } catch (error) { 275 } catch (error) {