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]) }} - + - - - +
+ +