修改物料费用、公司权限

This commit is contained in:
龙运模
2024-09-05 23:12:40 +08:00
parent 284177f33e
commit 29658a94ec
5 changed files with 103 additions and 27 deletions
+49
View File
@@ -0,0 +1,49 @@
import config from "@/config";
import http from "@/utils/request";
export default {
cost:{
add: {
url: `${config.API_URL}/cost.add`,
name: "服务、快递费用添加", // 1 服务费 2 快递费
post: async function (params) {
return await http.post(this.url, params);
},
},
list: {
url: `${config.API_URL}/cost.list`,
name: "服务、快递费用列表",
get: async function (params) {
return await http.post(this.url, params);
},
},
typeList: {
url: `${config.API_URL}/cost.type.const.list`,
name: "费用类型常量列表",
post: async function (params) {
return await http.post(this.url, params);
},
},
categoryList: {
url: `${config.API_URL}/cost.category.const.list`,
name: "费用类别常量列表",
post: async function (params) {
return await http.post(this.url, params);
},
},
delete:{
url: `${config.API_URL}/cost.delete`,
name: "删除费用流水",
post: async function (params) {
return await http.post(this.url, params);
},
},
info:{
url: `${config.API_URL}/cost.detail.list`,
name: "费用详情",
post: async function (params) {
return await http.post(this.url, params);
},
}
},
};
+7
View File
@@ -88,6 +88,13 @@ export default {
return await http.post(this.url, data);
},
},
delete:{
url: `${config.API_URL}/material.cost.delete`,
name: "物料成本删除",
post: async function (data) {
return await http.post(this.url, data);
},
},
template:{
url: `${config.API_URL}/material.cost.import.template`,
name: "物料成本导入模版",