挂账增加防抖

This commit is contained in:
GaoHao 2024-11-27 11:35:33 +08:00
parent 952574e92d
commit e62ff19b5f
3 changed files with 9 additions and 6 deletions

View File

@ -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) {

View File

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

View File

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