修复付款的付款方式

This commit is contained in:
2026-09-02 15:11:30 +08:00
parent 252df72f87
commit 6d4434f5c9
@@ -657,7 +657,7 @@ const emptyForm = () => ({
billType: '', billType: '',
paymentRatio: null, paymentRatio: null,
appliedAmount: 0, appliedAmount: 0,
paymentMethod: 'bank_transfer', paymentMethod: '',
billLedgerId: null, billLedgerId: null,
billNo: '', billNo: '',
receiptAccountId: null, receiptAccountId: null,
@@ -1053,6 +1053,7 @@ export default {
if (this.billPayment) await this.loadBillOptions('', data.billLedgerId); if (this.billPayment) await this.loadBillOptions('', data.billLedgerId);
} else { } else {
this.form = emptyForm(); this.form = emptyForm();
this.form.paymentMethod = this.paymentMethodOptions[0]?.value || '';
this.form.paymentType = this.initialAddPaymentType(); this.form.paymentType = this.initialAddPaymentType();
this.referenceRows = []; this.referenceRows = [];
this.form.applyDate = this.$dayjs().format('YYYY-MM-DD'); this.form.applyDate = this.$dayjs().format('YYYY-MM-DD');