From 4186c6be02327ba4d9a0c102280cc2ac7feb6d94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <963808678@qq.com> Date: Wed, 18 Jan 2023 15:34:42 +0800 Subject: [PATCH] 1/18 --- src/api/modular/main/taskmanage.js | 10 + src/views/main/PrintingNew/index.vue | 21 +- src/views/main/VoyageBill/addForm.vue | 170 --------------- src/views/main/VoyageBill/editForm.vue | 174 ---------------- src/views/main/VoyageBill/index.vue | 18 +- src/views/main/singleTicket/index.vue | 273 +++++++++++++++++++++++++ 6 files changed, 300 insertions(+), 366 deletions(-) delete mode 100644 src/views/main/VoyageBill/addForm.vue delete mode 100644 src/views/main/VoyageBill/editForm.vue create mode 100644 src/views/main/singleTicket/index.vue diff --git a/src/api/modular/main/taskmanage.js b/src/api/modular/main/taskmanage.js index bad1b4b..73911dc 100644 --- a/src/api/modular/main/taskmanage.js +++ b/src/api/modular/main/taskmanage.js @@ -10,6 +10,16 @@ export function TaskManageGetInvoiceBillInfo(parameter) { params: parameter }) } +/** + * 获取单票账单详情 + */ +export function TaskManageGetTaskPerBillInfo(parameter) { + return axios({ + url: '/TaskManage/GetTaskPerBillInfo', + method: 'get', + params: parameter + }) +} /** * 分页查询用户自定义配置 */ diff --git a/src/views/main/PrintingNew/index.vue b/src/views/main/PrintingNew/index.vue index de15f17..946301c 100644 --- a/src/views/main/PrintingNew/index.vue +++ b/src/views/main/PrintingNew/index.vue @@ -25,7 +25,7 @@ :not-found-content="null" > - {{ item.name }} + 123 - {{ item.name }} + 123 @@ -247,7 +247,6 @@ import { BookingPrintTemplatePage, BookingPrintTemplateDelete, - BookingPrintTemplateDownload, BookingTemplateAddOrUpdateExcelTemplate, BookingTemplateBookingExcelTemplateList, BookingOrderGetFieldName @@ -415,11 +414,13 @@ export default { BookingTemplateBookingExcelTemplateList({ id: this.ExcelPid }).then(res => { res.data.forEach(item => { this.fieldList.forEach(item2 => { - if (item2.code == item.field.split('.')[0]) { + if (item.field && item2.code == item.field.split('.')[0]) { item.Ffield = item2.name } }) - item.field = item.field.split('.')[1] + if (item.field) { + item.field = item.field.split('.')[1] + } }) // fieldName Object.keys(this.data1).forEach(item => { @@ -461,16 +462,6 @@ export default { }, FnDFile(Data) { window.open(` http://60.209.125.238:25805/BookingPrintTemplate/download?id=${Data.id}`, '_blank') - - // BookingPrintTemplateDownload({ id: Data.id }).then(res => { - // const blob = res - // let link = document.createElement('a') - // link.href = URL.createObjectURL(new Blob([blob], { type: 'application/vnd.ms-excel' })) - // link.download = Data.fileName - // document.body.appendChild(link) - // link.click() - // URL.revokeObjectURL(link.href) - // }) }, columnChange(data) { this.ColumnsQuery = [...data] diff --git a/src/views/main/VoyageBill/addForm.vue b/src/views/main/VoyageBill/addForm.vue deleted file mode 100644 index 95a041d..0000000 --- a/src/views/main/VoyageBill/addForm.vue +++ /dev/null @@ -1,170 +0,0 @@ - - - - diff --git a/src/views/main/VoyageBill/editForm.vue b/src/views/main/VoyageBill/editForm.vue deleted file mode 100644 index 57198b3..0000000 --- a/src/views/main/VoyageBill/editForm.vue +++ /dev/null @@ -1,174 +0,0 @@ - - - - diff --git a/src/views/main/VoyageBill/index.vue b/src/views/main/VoyageBill/index.vue index 0956885..d3de07e 100644 --- a/src/views/main/VoyageBill/index.vue +++ b/src/views/main/VoyageBill/index.vue @@ -33,7 +33,7 @@ - + + + +

+ 总金额:币别(USB) {{ loadData.totalAmountUSD.toFixed(2) }} 币别(CNY) + {{ loadData.totalAmountCNY.toFixed(2) }} +

+
+
@@ -86,13 +94,9 @@ +