优化表格配置

This commit is contained in:
龙运模
2024-07-01 21:58:09 +08:00
parent 1c104a3cf4
commit 43f9a8d49c
11 changed files with 342 additions and 34 deletions
+56
View File
@@ -0,0 +1,56 @@
import config from "@/config";
import http from "@/utils/request";
export default {
order:{
list: {
url: `${config.API_URL}/order.list`,
name: "获取加工单列表",
get: async function (params) {
return await http.post(this.url, params);
},
},
add: {
url: `${config.API_URL}/order.add`,
name: "获取加工单添加",
post: async function (params) {
return await http.post(this.url, params);
},
},
delete: {
url: `${config.API_URL}/order.delete`,
name: "获取加工单删除",
post: async function (params) {
return await http.post(this.url, params);
},
},
cancel:{
url: `${config.API_URL}/order.cancel`,
name: "加工单撤回",
post: async function (params) {
return await http.post(this.url, params);
},
},
info:{
url: `${config.API_URL}/order.info`,
name: "加工单详情",
post: async function (params) {
return await http.post(this.url, params);
},
},
review: {
url: `${config.API_URL}/order.review`,
name: "加工单审核",
post: async function (params) {
return await http.post(this.url, params);
},
},
active: {
url: `${config.API_URL}/order.active.list`,
name: "已排期工单",
get: async function (params) {
return await http.post(this.url, params);
},
}
}
};