添加工单
This commit is contained in:
@@ -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: "获取加工单列表",
|
||||
|
||||
Reference in New Issue
Block a user