From dea760ea1c4c18f82850cb917d58ca7f4f580946 Mon Sep 17 00:00:00 2001 From: b2894lxlx <517289602@qq.com> Date: Mon, 31 Aug 2026 12:40:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=94=B6=E4=BB=98=E6=AC=BE?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../vehicle-attachment-table/main.vue | 8 +- src/option/payment/receiptFlow.js | 2 +- src/option/settlement/preSettlementTable.js | 14 +- src/views/payment/bill-payment-form.vue | 2 +- src/views/payment/bill-payment.vue | 13 ++ .../payment/components/bill-payment-table.vue | 27 ++- .../payment/invoice-application-form.vue | 112 ++++++--- src/views/payment/invoice-receipt-form.vue | 221 +++++++++++------- .../payment/payment-application-form.vue | 167 ++++++++++--- src/views/payment/receipt-flow-form.vue | 3 + src/views/payment/receipt-flow.vue | 102 +++++++- .../settlement/receivable-payable-detail.vue | 37 ++- 12 files changed, 544 insertions(+), 164 deletions(-) diff --git a/src/components/vehicle-attachment-table/main.vue b/src/components/vehicle-attachment-table/main.vue index 1ce0f46..f725c49 100644 --- a/src/components/vehicle-attachment-table/main.vue +++ b/src/components/vehicle-attachment-table/main.vue @@ -51,9 +51,9 @@ - +
diff --git a/src/views/payment/bill-payment.vue b/src/views/payment/bill-payment.vue index 6bd741a..7ce8f8e 100644 --- a/src/views/payment/bill-payment.vue +++ b/src/views/payment/bill-payment.vue @@ -15,6 +15,8 @@ @edit="openEdit" @delete="handleDelete" @flow="openFlow" + @approve="handleApprove" + @return="handleReturn" @void="handleVoid" @page-change="handlePageChange" @size-change="handleSizeChange" @@ -126,6 +128,17 @@ export default { this.flowDialog.row = row; this.flowDialog.visible = true; }, + async handleApprove(row) { + await api.approve({ id: row.id }); + this.$message.success('审批通过'); + this.loadTable(); + }, + async handleReturn(row) { + const { value } = await this.$prompt('请输入驳回原因', '审批驳回'); + await api.returnBill({ id: row.id, reason: value }); + this.$message.success('已驳回'); + this.loadTable(); + }, async handleVoid(row) { const { value } = await this.$prompt('请输入作废原因', '作废汇票付款'); await api.voidBill({ id: row.id, reason: value }); diff --git a/src/views/payment/components/bill-payment-table.vue b/src/views/payment/components/bill-payment-table.vue index 0072e41..08df387 100644 --- a/src/views/payment/components/bill-payment-table.vue +++ b/src/views/payment/components/bill-payment-table.vue @@ -22,7 +22,7 @@ {{ displayValue(row[column.prop]) }} - + - - - +
+ +