From d6b83674e0e2a7b9acd288fb657e44f7ef500f8b 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, 9 Nov 2022 15:32:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E8=88=B1=E6=89=93=E5=8D=B0=20?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8B=E8=BD=BD=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modular/main/bookingprinttemplate.js | 21 +- src/views/main/EDI/123.json | 26 -- src/views/main/Printing/addForm.vue | 19 +- src/views/main/Printing/editForm.vue | 118 +++++--- src/views/main/Printing/index.vue | 23 +- src/views/main/WebSiteaccount/addForm.vue | 240 ++++++++++++++++ src/views/main/WebSiteaccount/editForm.vue | 245 ++++++++++++++++ src/views/main/WebSiteaccount/index.vue | 279 +++++++++++++++++++ 8 files changed, 887 insertions(+), 84 deletions(-) delete mode 100644 src/views/main/EDI/123.json create mode 100644 src/views/main/WebSiteaccount/addForm.vue create mode 100644 src/views/main/WebSiteaccount/editForm.vue create mode 100644 src/views/main/WebSiteaccount/index.vue diff --git a/src/api/modular/main/bookingprinttemplate.js b/src/api/modular/main/bookingprinttemplate.js index e1fa829..1fde8b3 100644 --- a/src/api/modular/main/bookingprinttemplate.js +++ b/src/api/modular/main/bookingprinttemplate.js @@ -39,10 +39,17 @@ export function BookingPrintTemplateAdd(parameter) { * @author Myshipping */ export function BookingPrintTemplateEdit(parameter) { + let params = new FormData() + params.append('file', parameter.file) + Object.keys(parameter.data).forEach(item => { + params.append(`${item}`, parameter.data[item]) + }) + console.log(parameter) return axios({ url: '/BookingPrintTemplate/edit', method: 'post', - data: parameter + data: params, + headers: { 'Content-type': 'multipart/form-data;charset=utf-8' } }) } @@ -73,3 +80,15 @@ export function SysTenantPage() { } }) } +/** + * 下载模板文件 + * + * @author Myshipping + */ +export function BookingPrintTemplateDownload(parameter) { + return axios({ + url: '/BookingPrintTemplate/download', + method: 'get', + params: parameter + }) +} diff --git a/src/views/main/EDI/123.json b/src/views/main/EDI/123.json deleted file mode 100644 index dea6c97..0000000 --- a/src/views/main/EDI/123.json +++ /dev/null @@ -1,26 +0,0 @@ -"edicode": "string", - "ediname": "string", - "serverip": "string", - "foldername": "string", - "username": "string", - "password": "string", - "sendcode": "string", - "receivecode": "string", - "sendname": "string", - "sendattn": "string", - "sendtel": "string", - "sendemail": "string", - "sendcompanycode": "string", - "sendsubcompanycode": "string", - "carrierid": "string", - "receiveemail": "string", - "receivesiemail": "string", - "receiveop": "string", - "receivesale": "string", - "receivedept": "string", - "shippertel": "string", - "consigneetel": "string", - "notifypartytel": "string", - "isusetel": "string", - "tenantId": 0, - "tenantName": "string" \ No newline at end of file diff --git a/src/views/main/Printing/addForm.vue b/src/views/main/Printing/addForm.vue index 78b83ee..b1a5b29 100644 --- a/src/views/main/Printing/addForm.vue +++ b/src/views/main/Printing/addForm.vue @@ -12,15 +12,11 @@ - - + {{ item.value }} @@ -28,10 +24,6 @@ - { + if (values.typeCode == item.code) { + console.log(item) + values.TypeName = item.value + } + }) + console.log(values) BookingPrintTemplateAdd({ file: this.file, data: values }) .then(res => { if (res.success) { diff --git a/src/views/main/Printing/editForm.vue b/src/views/main/Printing/editForm.vue index b07dd50..5a8a062 100644 --- a/src/views/main/Printing/editForm.vue +++ b/src/views/main/Printing/editForm.vue @@ -12,27 +12,41 @@ - + v-decorator="['typeCode', { rules: [{ required: true, message: '请输入类型名称!' }] }]" + > + + {{ item.value }} + + - + > + + {{ item.name }} + + - - - - Select File - - + + + 文件上传 + + @@ -41,11 +55,15 @@ diff --git a/src/views/main/WebSiteaccount/editForm.vue b/src/views/main/WebSiteaccount/editForm.vue new file mode 100644 index 0000000..ec44252 --- /dev/null +++ b/src/views/main/WebSiteaccount/editForm.vue @@ -0,0 +1,245 @@ + + + diff --git a/src/views/main/WebSiteaccount/index.vue b/src/views/main/WebSiteaccount/index.vue new file mode 100644 index 0000000..e720b3f --- /dev/null +++ b/src/views/main/WebSiteaccount/index.vue @@ -0,0 +1,279 @@ + + +