From d901d484fd0bc8ae6701fc408477f160f42b3e73 Mon Sep 17 00:00:00 2001 From: b2894lxlx <517289602@qq.com> Date: Fri, 28 Aug 2026 16:01:42 +0800 Subject: [PATCH] fix --- .../payment/payment-application-form.vue | 7 ++++++- src/views/vehicle/customer-archive.vue | 20 ++----------------- 2 files changed, 8 insertions(+), 19 deletions(-) diff --git a/src/views/payment/payment-application-form.vue b/src/views/payment/payment-application-form.vue index 71730c7..50bdd1e 100644 --- a/src/views/payment/payment-application-form.vue +++ b/src/views/payment/payment-application-form.vue @@ -946,6 +946,11 @@ export default { throw new Error('付款记录金额合计不能超过申请付款金额'); } }, + formatLocalDate(value) { + if (!value) return null; + const date = this.$dayjs(value); + return date.isValid() ? date.format('YYYY-MM-DD') : null; + }, unwrapData(response) { const body = response?.data || response || {}; return body?.data || body; @@ -2088,7 +2093,7 @@ export default { ? [] : this.paymentRecords.map(record => ({ paidAmount: Number(record.paidAmount || 0), - paidDate: record.paidDate || null, + paidDate: this.formatLocalDate(record.paidDate), paymentNo: record.paymentNo || '', voucherJson: record.voucherJson || '', kingdeeBillNo: record.kingdeeBillNo || '', diff --git a/src/views/vehicle/customer-archive.vue b/src/views/vehicle/customer-archive.vue index f1c930f..05682bc 100644 --- a/src/views/vehicle/customer-archive.vue +++ b/src/views/vehicle/customer-archive.vue @@ -946,14 +946,7 @@ - - - + @@ -1034,14 +1027,7 @@ - - - + @@ -1605,7 +1591,6 @@ export default { customerNatureOptions: [], customerTypeOptions: [], businessScopeOptions: [], - bankListOptions: [], qualificationTypeOptions: [], creditLevelOptions: ['A', 'B', 'C', 'D', 'E', 'F'].map(item => ({ label: `${item}级`, @@ -2559,7 +2544,6 @@ export default { customerTypeColumn.dicData = [{ label: '全部', value: '' }, ...options]; }); this.loadDictOptions('scope_of_business', 'businessScopeOptions'); - this.loadDictOptions('bank_list', 'bankListOptions'); this.loadDictOptions('customer_attachment_types', 'qualificationTypeOptions', [], () => { this.sortQualificationFiles(); });