添加物料配置
This commit is contained in:
@@ -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`,
|
||||
|
||||
Reference in New Issue
Block a user