diff --git a/src/api/fee/printSmallPayFeeApi.js b/src/api/fee/printSmallPayFeeApi.js index 9ab0d26b7..2cb721e9e 100644 --- a/src/api/fee/printSmallPayFeeApi.js +++ b/src/api/fee/printSmallPayFeeApi.js @@ -77,7 +77,7 @@ export function listMachinePrinter(params) { export function printPayFeeDetail(data) { return new Promise((resolve, reject) => { request({ - url: '/print/printPayFeeDetail', + url: '/print.printPayFeeDetail', method: 'post', data: { ...data, diff --git a/src/views/fee/printSmallPayFeeList.vue b/src/views/fee/printSmallPayFeeList.vue index 67579a554..e4070dc2e 100644 --- a/src/views/fee/printSmallPayFeeList.vue +++ b/src/views/fee/printSmallPayFeeList.vue @@ -265,7 +265,11 @@ export default { quantity: this.printSmallPayFeeInfo.quantity, detailId: detailIds.join(',') } - await printPayFeeDetail(data) + const {code,msg} = await printPayFeeDetail(data) + if (code != 0) { + this.$message.error(msg) + return; + } this.cloudPrintVisible = false this.$message.success(this.$t('printSmallPayFee.submitSuccess')) } catch (error) {