fix
This commit is contained in:
@@ -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 || '',
|
||||
|
||||
Reference in New Issue
Block a user