Commit 34064273 authored by dragondean@qq.com's avatar dragondean@qq.com

制作提单空运适配

parent d4212bab
...@@ -178,6 +178,10 @@ export default { ...@@ -178,6 +178,10 @@ export default {
}, },
// 先获取订单信息,pdf用 订单号+唛头命名 // 先获取订单信息,pdf用 订单号+唛头命名
createPdf(){ createPdf(){
// 空运的由接口生成pdf,所以直接提交即可
if(this.$route.fullPath.toLowerCase().indexOf('air') > -1){
return this.submit()
}
getOrder(this.currRow.orderId).then(res => { getOrder(this.currRow.orderId).then(res => {
this.afterCreatePdf(res.data) this.afterCreatePdf(res.data)
}) })
...@@ -218,11 +222,16 @@ export default { ...@@ -218,11 +222,16 @@ export default {
}, },
submit(imgUrl) { submit(imgUrl) {
let params = { let params = {
imgUrl,
billContent: this.billContent, billContent: this.billContent,
orderId: this.currRow.orderId, orderId: this.currRow.orderId,
copyUserId: this.selectedUsers, copyUserId: this.selectedUsers,
}; };
// 有pdf地址则提交,没有则指定后端生成
if(imgUrl){
params.imgUrl = imgUrl
}else{
params.needBackend = true
}
if (["makeBill", "resetBill"].includes(this.dialogCfg.type)) { if (["makeBill", "resetBill"].includes(this.dialogCfg.type)) {
createBillService({ ...params, status: 1 }).then((res) => { createBillService({ ...params, status: 1 }).then((res) => {
serviceMsg(res, this).then((res) => { serviceMsg(res, this).then((res) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment