From 559e673cfa3d8a070131b8074c02baed0820993c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=99=E8=BF=90=E6=A8=A1?= <1724894114@qq.com> Date: Fri, 6 Sep 2024 23:24:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=B4=B9=E7=94=A8=E6=B5=81?= =?UTF-8?q?=E6=B0=B4=E5=92=8C=E5=AF=B9=E5=BA=94=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/model/finance.js | 32 ++++- src/components/scExport/index.vue | 8 +- src/components/scImport/index.vue | 2 +- src/views/cost/feeRecords/index.vue | 154 ++++++++++++----------- src/views/cost/feeRecords/save.vue | 189 ++++++++++++++++++++++++++++ 5 files changed, 303 insertions(+), 82 deletions(-) create mode 100644 src/views/cost/feeRecords/save.vue 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 @@ >