This commit is contained in:
2026-08-28 16:01:42 +08:00
parent 9a4e0f7c03
commit d901d484fd
2 changed files with 8 additions and 19 deletions
@@ -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 || '',