完善BOM单据

This commit is contained in:
龙运模
2024-12-01 21:43:59 +08:00
parent fce26e7766
commit c77131aa5e
11 changed files with 407 additions and 24 deletions
+57
View File
@@ -280,6 +280,62 @@ export default {
return await http.post(this.url, data);
},
},
field:{
url: `${config.API_URL}/bom.field.list`,
name: "清单字段选择列表",
post: async function (data) {
return await http.post(this.url, data);
},
},
statusList:{
url: `${config.API_URL}/bom.status.const.list`,
name: "清单状态常量列表",
post: async function (data) {
return await http.post(this.url, data);
},
},
disabledStatus:{
url: `${config.API_URL}/bom.disabled.state.const.list`,
name: "清单禁用状态列表",
post: async function (data) {
return await http.post(this.url, data);
},
},
add:{
url: `${config.API_URL}/bom.add`,
name: "bom单条新增或者编辑",
post: async function (data) {
return await http.post(this.url, data);
},
},
delete:{
url: `${config.API_URL}/bom.delete`,
name: "bom删除",
post: async function (data) {
return await http.post(this.url, data);
},
},
enable:{
url: `${config.API_URL}/bom.enable`,
name: "bom启用/禁用",
post: async function (data) {
return await http.post(this.url, data);
},
},
import:{
url: `${config.API_URL}/bom.import`,
name: "BOM导入",
post: async function (params) {
return await http.post(this.url,params,{'Content-Type': 'multipart/form-data'});
}
},
template:{
url: `${config.API_URL}/bom.list.import.template`,
name: "bom导入模版",
post: async function (params) {
return await http.get(this.url,params,{responseType: 'arraybuffer'});
}
},
export:{
url: `${config.API_URL}/bom.export`,
name: "BOM导出",
@@ -287,5 +343,6 @@ export default {
return await http.post(this.url,params);
}
},
}
};