From b831704dbde84280d0ba614264d53c7ada7a59f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=99=E8=BF=90=E6=A8=A1?= <1724894114@qq.com> Date: Fri, 19 Jul 2024 17:14:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=B7=A5=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/model/orders.js | 67 +++++++ src/layout/index.vue | 4 +- src/views/order/orderList/index.vue | 284 ++++++++++++++++++++++++++++ 3 files changed, 353 insertions(+), 2 deletions(-) create mode 100644 src/views/order/orderList/index.vue diff --git a/src/api/model/orders.js b/src/api/model/orders.js index 338bbfc..6e4f9eb 100644 --- a/src/api/model/orders.js +++ b/src/api/model/orders.js @@ -3,6 +3,73 @@ import http from "@/utils/request"; export default { order:{ + mail:{ + list:{ + url: `${config.API_URL}/mail.sync.list`, + name: "邮件同步记录 (数据确认列表)", + get: async function (params) { + return await http.post(this.url, params); + }, + }, + info:{ + url: `${config.API_URL}/mail.sync.body.info`, + name: "邮件正文", + post: async function (params) { + return await http.post(this.url, params); + }, + }, + detail:{ + url: `${config.API_URL}/mail.sync.repair.detail`, + name: "邮件同步记录维修清单列表", + post: async function (params) { + return await http.post(this.url, params); + }, + }, + delete:{ + url: `${config.API_URL}/mail.sync.repair.delete`, + name: "邮件同步记录维修清单删除", + post: async function (params) { + return await http.post(this.url, params); + }, + }, + confirm:{ + url: `${config.API_URL}/mail.sync.repair.confirm`, + name: "确认入保", + post: async function (params) { + return await http.post(this.url, params); + }, + }, + }, + maintenance:{ + list:{ + url: `${config.API_URL}/maintenance.order.list`, + name: "维保工单列表", + get: async function (params) { + return await http.post(this.url, params); + }, + }, + export:{ + url: `${config.API_URL}/maintenance.order.export`, + name: "维保工单导出", + post: async function (params) { + return await http.post(this.url, params); + } + }, + template:{ + url: `${config.API_URL}/maintenance.order.import.template`, + name: "维保工单导入模版", + post: async function (params) { + return await http.get(this.url,params,{responseType: 'arraybuffer'}); + } + }, + import:{ + url: `${config.API_URL}/maintenance.order.import`, + name: "维保工单导入", + post: async function (params) { + return await http.post(this.url,params,{'Content-Type': 'multipart/form-data'}); + } + }, + }, list: { url: `${config.API_URL}/order.list`, name: "获取加工单列表", diff --git a/src/layout/index.vue b/src/layout/index.vue index c7427cf..273e4bc 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -58,8 +58,8 @@ - - {{ $CONFIG.APP_NAME }} + +
diff --git a/src/views/order/orderList/index.vue b/src/views/order/orderList/index.vue new file mode 100644 index 0000000..b6e36d0 --- /dev/null +++ b/src/views/order/orderList/index.vue @@ -0,0 +1,284 @@ + + + + +