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) } },