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 1/4] =?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 @@ + + + From 1ccdc1a0b24999c23659960918755bba7bb1f59a 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 17:24:31 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E7=BD=91=E7=AB=99=E8=B4=A6=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modular/main/WebSiteaccount.js | 53 ++++++ src/views/main/Printing/addForm.vue | 2 +- src/views/main/WebSiteaccount/addForm.vue | 161 +++++-------------- src/views/main/WebSiteaccount/editForm.vue | 178 +++++---------------- src/views/main/WebSiteaccount/index.vue | 121 ++++---------- 5 files changed, 169 insertions(+), 346 deletions(-) create mode 100644 src/api/modular/main/WebSiteaccount.js diff --git a/src/api/modular/main/WebSiteaccount.js b/src/api/modular/main/WebSiteaccount.js new file mode 100644 index 0000000..6102647 --- /dev/null +++ b/src/api/modular/main/WebSiteaccount.js @@ -0,0 +1,53 @@ +import { axios } from '@/utils/request' + +/** + * 分页查询网站账号维护 + * + * @author Myshipping + */ +export function DjyWebsiteAccountConfigPage(parameter) { + return axios({ + url: '/DjyWebsiteAccountConfig/page', + method: 'get', + params: parameter + }) +} + +/** + * 增加网站账号维护(同一用户、同类型账号不会重复插入) + * + * @author Myshipping + */ +export function DjyWebsiteAccountConfigAdd(parameter) { + return axios({ + url: '/DjyWebsiteAccountConfig/add', + method: 'post', + data: parameter + }) +} + +/** + * 更新EDI参数设置 + * + * @author Myshipping + */ +export function DjyWebsiteAccountConfigEdit(parameter) { + return axios({ + url: '/DjyWebsiteAccountConfig/edit', + method: 'post', + data: parameter + }) +} + +/** + * 删除EDI参数设置 + * + * @author Myshipping + */ +export function DjyWebsiteAccountConfigDelete(parameter) { + return axios({ + url: '/DjyWebsiteAccountConfig/delete', + method: 'post', + data: parameter + }) +} diff --git a/src/views/main/Printing/addForm.vue b/src/views/main/Printing/addForm.vue index b1a5b29..55c96c6 100644 --- a/src/views/main/Printing/addForm.vue +++ b/src/views/main/Printing/addForm.vue @@ -13,7 +13,7 @@ diff --git a/src/views/main/WebSiteaccount/addForm.vue b/src/views/main/WebSiteaccount/addForm.vue index 792966a..7a96b90 100644 --- a/src/views/main/WebSiteaccount/addForm.vue +++ b/src/views/main/WebSiteaccount/addForm.vue @@ -1,6 +1,6 @@