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/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/Customer/addForm.vue b/src/views/main/Customer/addForm.vue index c8bbbcb..caf670c 100644 --- a/src/views/main/Customer/addForm.vue +++ b/src/views/main/Customer/addForm.vue @@ -389,7 +389,7 @@ export default { this.confirmLoading = false this.$emit('ok', values) } else { - this.$message.error('新增失败') // + res.message + this.$message.error(`新增失败,${res.message}`) } }) .finally(res => { diff --git a/src/views/main/Customer/editForm.vue b/src/views/main/Customer/editForm.vue index a4f40ed..1b4c9e5 100644 --- a/src/views/main/Customer/editForm.vue +++ b/src/views/main/Customer/editForm.vue @@ -378,11 +378,11 @@ export default { DjyCustomerEdit({ ...this.Data, ...values, contacts: this.ContactsData }) .then(res => { if (res.success) { - this.$message.success('新增成功') + this.$message.success('编辑成功') this.confirmLoading = false this.$emit('ok', values) } else { - this.$message.error('新增失败') // + res.message + this.$message.error(`编辑失败,${res.message}`) } }) .finally(res => { diff --git a/src/views/main/Customer/index.vue b/src/views/main/Customer/index.vue index 5a99c5b..d33e3ba 100644 --- a/src/views/main/Customer/index.vue +++ b/src/views/main/Customer/index.vue @@ -486,7 +486,7 @@ export default { this.$message.success('删除成功') this.FnGetData() } else { - this.$message.error('删除失败') // + res.message + this.$message.error(`删除失败,${res.message}`) } }) }, 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/EDI/addForm.vue b/src/views/main/EDI/addForm.vue index 792966a..671f3f9 100644 --- a/src/views/main/EDI/addForm.vue +++ b/src/views/main/EDI/addForm.vue @@ -220,7 +220,7 @@ export default { this.$emit('ok', values) this.handleCancel() } else { - this.$message.error('新增失败') // + res.message + this.$message.error(`新增失败,${res.message}`) } }) .finally(res => { diff --git a/src/views/main/EDI/editForm.vue b/src/views/main/EDI/editForm.vue index ec44252..deee52c 100644 --- a/src/views/main/EDI/editForm.vue +++ b/src/views/main/EDI/editForm.vue @@ -225,7 +225,7 @@ export default { this.$emit('ok', values) this.handleCancel() } else { - this.$message.error('编辑失败') // + res.message + this.$message.error(`编辑失败,${res.message}`) } }) .finally(res => { diff --git a/src/views/main/EDI/index.vue b/src/views/main/EDI/index.vue index e720b3f..b3aa32d 100644 --- a/src/views/main/EDI/index.vue +++ b/src/views/main/EDI/index.vue @@ -252,7 +252,7 @@ export default { this.$message.success('删除成功') this.FnGetData() } else { - this.$message.error('删除失败') // + res.message + this.$message.error(`删除失败,${res.message}`) } }) }, diff --git a/src/views/main/Printing/addForm.vue b/src/views/main/Printing/addForm.vue index 78b83ee..8fc72b4 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) { @@ -135,7 +134,7 @@ export default { this.$emit('ok', values) this.handleCancel() } else { - this.$message.error('新增失败') // + res.message + this.$message.error(`新增失败,${res.message}`) // + res.message } this.file = {} this.fileList = [] diff --git a/src/views/main/Printing/editForm.vue b/src/views/main/Printing/editForm.vue index b07dd50..b2096d7 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..fd86afa --- /dev/null +++ b/src/views/main/WebSiteaccount/editForm.vue @@ -0,0 +1,148 @@ + + + diff --git a/src/views/main/WebSiteaccount/index.vue b/src/views/main/WebSiteaccount/index.vue new file mode 100644 index 0000000..9b0c8d1 --- /dev/null +++ b/src/views/main/WebSiteaccount/index.vue @@ -0,0 +1,226 @@ + + +