修改权限展示、增加库存导入导出

This commit is contained in:
龙运模
2024-12-10 21:05:13 +08:00
parent 10f4b726d4
commit 3ac387e502
9 changed files with 69 additions and 47 deletions
+22 -1
View File
@@ -263,7 +263,28 @@ export default {
post: async function (params) {
return await http.post(this.url,params);
}
}
},
import:{
url: `${config.API_URL}/inventory.import`,
name: "库存导入",
post: async function (params) {
return await http.post(this.url,params,{'Content-Type': 'multipart/form-data'});
}
},
template:{
url: `${config.API_URL}/stock.import.template`,
name: "库存导入模版",
post: async function (params) {
return await http.get(this.url,params,{responseType: 'arraybuffer'});
}
},
export:{
url: `${config.API_URL}/inventory.export`,
name: "库存导出",
post: async function (params) {
return await http.post(this.url,params);
}
},
},
out:{
list:{