From 0562e1608e9f5ff86736565c50ccb3f0cb0790ee Mon Sep 17 00:00:00 2001 From: MO <448233645@qq.com> Date: Sun, 8 Oct 2023 11:09:26 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=93=B6=E8=A1=8C?= =?UTF-8?q?=E5=9B=9E=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/accounting/bankSlip.js | 54 +++ src/views/accounting/bankSlip/index.vue | 619 ++++++++++++++++++++++++ 2 files changed, 673 insertions(+) create mode 100644 src/api/accounting/bankSlip.js create mode 100644 src/views/accounting/bankSlip/index.vue diff --git a/src/api/accounting/bankSlip.js b/src/api/accounting/bankSlip.js new file mode 100644 index 00000000..30f8a2d5 --- /dev/null +++ b/src/api/accounting/bankSlip.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建银行回单 +export function createBankSlip(data) { + return request({ + url: '/archives/bank-slip/create', + method: 'post', + data: data + }) +} + +// 更新银行回单 +export function updateBankSlip(data) { + return request({ + url: '/archives/bank-slip/update', + method: 'put', + data: data + }) +} + +// 删除银行回单 +export function deleteBankSlip(id) { + return request({ + url: '/archives/bank-slip/delete?id=' + id, + method: 'delete' + }) +} + +// 获得银行回单 +export function getBankSlip(id) { + return request({ + url: '/archives/bank-slip/get?id=' + id, + method: 'get' + }) +} + +// 获得银行回单分页 +export function getBankSlipPage(query) { + return request({ + url: '/archives/bank-slip/page', + method: 'get', + params: query + }) +} + +// 导出银行回单 Excel +export function exportBankSlipExcel(query) { + return request({ + url: '/archives/bank-slip/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/views/accounting/bankSlip/index.vue b/src/views/accounting/bankSlip/index.vue new file mode 100644 index 00000000..aa0c7c12 --- /dev/null +++ b/src/views/accounting/bankSlip/index.vue @@ -0,0 +1,619 @@ + + + From c57bd6b1fb8ac51c4e4f269e1bd2d179d4390ef9 Mon Sep 17 00:00:00 2001 From: MO <448233645@qq.com> Date: Sun, 8 Oct 2023 11:14:16 +0800 Subject: [PATCH 2/3] =?UTF-8?q?id=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/accounting/invoices/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/accounting/invoices/index.vue b/src/views/accounting/invoices/index.vue index 9b83ce10..20d81e28 100644 --- a/src/views/accounting/invoices/index.vue +++ b/src/views/accounting/invoices/index.vue @@ -717,9 +717,9 @@ From ac204774c4016caca19a3482c888c88aa5336c8b Mon Sep 17 00:00:00 2001 From: MO <448233645@qq.com> Date: Sun, 8 Oct 2023 13:41:21 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=A4=9A=E9=80=89bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/accounting/invoices/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/accounting/invoices/index.vue b/src/views/accounting/invoices/index.vue index 20d81e28..5c93fe9f 100644 --- a/src/views/accounting/invoices/index.vue +++ b/src/views/accounting/invoices/index.vue @@ -1122,10 +1122,10 @@ export default { this.ids = selection.map((item) => item.id); if (selection.length == 1) { this.multiple = false; + this.form = selection[0]; } else { this.multiple = true; } - this.form = selection[0]; }, /** 新增按钮操作 */ handleAdd() {