diff --git a/yxt-as-ui/src/api/operation/repairbill.js b/yxt-as-ui/src/api/operation/repairbill.js index c25fc953be..c47848bbf7 100644 --- a/yxt-as-ui/src/api/operation/repairbill.js +++ b/yxt-as-ui/src/api/operation/repairbill.js @@ -85,9 +85,9 @@ export default { }) }, // 打印出门证 - printCard: function(data) { + createPdf: function(data) { return request({ - url: '/as/v1/AsBusrepairBill/printCard', + url: '/as/v1/AsBusrepairBill/createPdf', method: 'post', params: data }) diff --git a/yxt-as-ui/src/views/operation/repairbill/repairbillBYLeaveFactory.vue b/yxt-as-ui/src/views/operation/repairbill/repairbillBYLeaveFactory.vue index dbc703f343..2c71a84a16 100644 --- a/yxt-as-ui/src/views/operation/repairbill/repairbillBYLeaveFactory.vue +++ b/yxt-as-ui/src/views/operation/repairbill/repairbillBYLeaveFactory.vue @@ -402,7 +402,7 @@ export default { toPrint() { if (this.sids.length === 1) { if (this.multipleSelection[0].isOutFactory === '是') { - req.printCard({ sid: this.sids[0] }).then((res) => { + req.createPdf({ sid: this.sids[0] }).then((res) => { if (res.success) { var xhr = new XMLHttpRequest() xhr.open('GET', process.env.VUE_APP_BASE_API + '/base/file/download?filePath=' + res.data + '&outFileName=' + '出门证', true)