diff --git a/src/api/model/finance.js b/src/api/model/finance.js index babb77e..f3127cf 100644 --- a/src/api/model/finance.js +++ b/src/api/model/finance.js @@ -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'}); + } + }, }, }; diff --git a/src/components/scExport/index.vue b/src/components/scExport/index.vue index d003471..0344c88 100644 --- a/src/components/scExport/index.vue +++ b/src/components/scExport/index.vue @@ -10,7 +10,6 @@ >