Browse Source

完善车辆出厂 -- 打印出门证

master
yunuo970428 7 months ago
parent
commit
8f0054572c
  1. 4
      yxt-as-ui/src/api/operation/repairbill.js
  2. 2
      yxt-as-ui/src/views/operation/repairbill/repairbillBYLeaveFactory.vue

4
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
})

2
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)

Loading…
Cancel
Save