完善费用流水和对应权限

This commit is contained in:
龙运模
2024-09-06 23:24:58 +08:00
parent 29658a94ec
commit 559e673cfa
5 changed files with 303 additions and 82 deletions
+30 -2
View File
@@ -17,6 +17,13 @@ export default {
return await http.post(this.url, params);
},
},
field:{
url: `${config.API_URL}/cost.field.list`,
name: "费用流水检索",
post: async function (params) {
return await http.post(this.url, params);
},
},
typeList: {
url: `${config.API_URL}/cost.type.const.list`,
name: "费用类型常量列表",
@@ -40,10 +47,31 @@ export default {
},
info:{
url: `${config.API_URL}/cost.detail.list`,
name: "费用详情",
name: "费用流水详情",
post: async function (params) {
return await http.post(this.url, params);
},
}
},
export:{
url: `${config.API_URL}/cost.flow.export`,
name: "费用流水导出",
post: async function (params) {
return await http.post(this.url, params);
}
},
template:{
url: `${config.API_URL}/cost.flow.import.template`,
name: "费用流水导入模版",
post: async function (params) {
return await http.get(this.url,params,{responseType: 'arraybuffer'});
}
},
import:{
url: `${config.API_URL}/cost.flow.import`,
name: "费用流水导入",
post: async function (params) {
return await http.post(this.url,params,{'Content-Type': 'multipart/form-data'});
}
},
},
};