From e62ff19b5fe2b591a7134843318a18a80624e52c Mon Sep 17 00:00:00 2001 From: GaoHao <1210693421@qq.com> Date: Wed, 27 Nov 2024 11:35:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=82=E8=B4=A6=E5=A2=9E=E5=8A=A0=E9=98=B2?= =?UTF-8?q?=E6=8A=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/credit.js | 4 ++-- src/views/home/components/credit_repayment.vue | 9 ++++++--- src/views/home/data_creditDetail.vue | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/api/credit.js b/src/api/credit.js index 0010803..f95b9d4 100644 --- a/src/api/credit.js +++ b/src/api/credit.js @@ -1,7 +1,7 @@ import request from '@/utils/request' /** - * 获取挂账列表 + * 获取挂账人列表 * @returns */ export function getCreditBuyerList(params) { @@ -15,7 +15,7 @@ export function getCreditBuyerList(params) { } /** - * 获取挂账详情 + * 获取挂账人详情 * @returns */ export function getCreditBuyerInfo(id) { diff --git a/src/views/home/components/credit_repayment.vue b/src/views/home/components/credit_repayment.vue index 24877b6..bff019e 100644 --- a/src/views/home/components/credit_repayment.vue +++ b/src/views/home/components/credit_repayment.vue @@ -90,11 +90,11 @@ export default { this.resetForm = { ...this.form } }, methods: { - /** * 确定 */ - async onSubmitHandle() { + // eslint-disable-next-line no-undef + onSubmitHandle: _.debounce(function async() { this.$refs.form.validate(async valid => { if (valid) { try { @@ -120,7 +120,7 @@ export default { } } }) - }, + }, 1000), /** * 打开 @@ -135,6 +135,9 @@ export default { this.form.id = row.id } this.form.repaymentMethod = row.repaymentMethod + this.form.debtor = row.debtor + this.form.owedAmount = row.owedAmount + this.form.accountBalance = row.accountBalance this.dialogVisible = true }, diff --git a/src/views/home/data_creditDetail.vue b/src/views/home/data_creditDetail.vue index 9bd7d62..496c012 100644 --- a/src/views/home/data_creditDetail.vue +++ b/src/views/home/data_creditDetail.vue @@ -222,7 +222,7 @@ export default { if (type === 'payment' && this.repaymentMethod === 'order') { this.$refs.creditRepayment.show({ creditBuyerId: this.query.creditBuyerId, repaymentMethod: this.repaymentMethod }, row) } else if (type === 'paymentRecord') { - this.$refs.creditRepaymentRecord.show({ creditBuyerId: this.query.creditBuyerId, repaymentMethod: this.repaymentMethod }, row.id) + this.$refs.creditRepaymentRecord.show({ id: this.query.creditBuyerId, repaymentMethod: this.repaymentMethod }, row.orderId) } },