添加物料配置

This commit is contained in:
龙运模
2024-09-02 18:51:17 +08:00
parent 8f703ab06a
commit 1b13f7106b
12 changed files with 5133 additions and 4724 deletions
+30
View File
@@ -73,6 +73,36 @@ export default {
},
}
},
material:{
list:{
url: `${config.API_URL}/material.cost.list`,
name: "物料成本列表",
get: async function (data) {
return await http.post(this.url, data);
},
},
add:{
url: `${config.API_URL}/material.cost.add`,
name: "物料成本添加",
post: async function (data) {
return await http.post(this.url, data);
},
},
template:{
url: `${config.API_URL}/material.cost.import.template`,
name: "物料成本导入模版",
post: async function (params) {
return await http.get(this.url,params,{responseType: 'arraybuffer'});
}
},
import:{
url: `${config.API_URL}/material.cost.batch.import`,
name: "物料成本导入",
post: async function (params) {
return await http.post(this.url,params,{'Content-Type': 'multipart/form-data'});
}
},
},
bom:{
list:{
url: `${config.API_URL}/bom.list`,