优化表格配置
This commit is contained in:
@@ -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);
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user