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 || '',
|
||||
|
||||
@@ -946,14 +946,7 @@
|
||||
<el-input v-model="receiptForm.accountHolderName" maxlength="50" />
|
||||
</el-form-item>
|
||||
<el-form-item label="开户行" prop="bankName">
|
||||
<el-select v-model="receiptForm.bankName" filterable clearable>
|
||||
<el-option
|
||||
v-for="item in bankListOptions"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
<el-input v-model="receiptForm.bankName" maxlength="100" />
|
||||
</el-form-item>
|
||||
<el-form-item label="收款账号" prop="bankAccount">
|
||||
<el-input v-model="receiptForm.bankAccount" maxlength="50" />
|
||||
@@ -1034,14 +1027,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="开户行名称" prop="bankName">
|
||||
<el-select v-model="invoiceForm.bankName" filterable clearable>
|
||||
<el-option
|
||||
v-for="item in bankListOptions"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
<el-input v-model="invoiceForm.bankName" maxlength="100" />
|
||||
</el-form-item>
|
||||
<el-form-item label="银行账号" prop="bankAccount">
|
||||
<el-input v-model="invoiceForm.bankAccount" maxlength="50" />
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user