fix bug
This commit is contained in:
@@ -731,7 +731,7 @@
|
||||
@close="qualificationImagePreviewVisible = false"
|
||||
/>
|
||||
|
||||
<section-card title="变更记录">
|
||||
<section-card v-if="archiveForm.id" title="变更记录">
|
||||
<el-table :data="changeRecordPage.records" border :show-overflow-tooltip="false">
|
||||
<el-table-column
|
||||
label="序号"
|
||||
@@ -3510,6 +3510,8 @@ export default {
|
||||
customerType: this.splitValue(detail.customerType),
|
||||
invoiceTaxRate: this.normalizeOptionalAmount(detail.invoiceTaxRate),
|
||||
registeredCapital: this.normalizeOptionalAmount(detail.registeredCapital),
|
||||
maxCreditLimit: this.normalizeOptionalAmount(detail.maxCreditLimit),
|
||||
applyCreditLimit: this.normalizeOptionalAmount(detail.applyCreditLimit),
|
||||
businessScope,
|
||||
businessTermType: detail.businessTermType || '固定期限',
|
||||
registeredRegionPath: Array.isArray(detail.registeredRegionPath)
|
||||
@@ -3549,6 +3551,12 @@ export default {
|
||||
details: [],
|
||||
...score,
|
||||
quantificationId: score.quantificationId ? String(score.quantificationId) : '',
|
||||
applyCreditLimit: this.normalizeOptionalAmount(
|
||||
score.applyCreditLimit === undefined
|
||||
? this.archiveForm.applyCreditLimit
|
||||
: score.applyCreditLimit
|
||||
),
|
||||
maxCreditLimit: this.normalizeOptionalAmount(score.maxCreditLimit),
|
||||
tempApplyCreditLimit: this.normalizeOptionalAmount(score.tempApplyCreditLimit),
|
||||
attachments: score.attachments || this.parseAttachments(score.proofAttachments),
|
||||
details: (score.details || []).map(detail => ({
|
||||
@@ -3733,8 +3741,22 @@ export default {
|
||||
archive.invoices = (archive.invoices || [])
|
||||
.map(item => this.normalizeInvoice(item))
|
||||
.filter(item => item.invoiceTitle || item.taxNo || item.bankAccount);
|
||||
archive.scores = (archive.scores || []).map(score => this.calculateScore(score));
|
||||
archive.scores = (archive.scores || []).map(score => {
|
||||
const calculatedScore = this.calculateScore(score);
|
||||
const scoreMaxCreditLimit = this.normalizeOptionalAmount(calculatedScore.maxCreditLimit);
|
||||
const scoreApplyCreditLimit = this.normalizeOptionalAmount(
|
||||
calculatedScore.applyCreditLimit
|
||||
);
|
||||
calculatedScore.maxCreditLimit = scoreMaxCreditLimit === '' ? null : scoreMaxCreditLimit;
|
||||
calculatedScore.applyCreditLimit =
|
||||
scoreApplyCreditLimit === '' ? null : scoreApplyCreditLimit;
|
||||
return calculatedScore;
|
||||
});
|
||||
this.applyArchiveCreditFromScores(archive);
|
||||
const maxCreditLimit = this.normalizeOptionalAmount(archive.maxCreditLimit);
|
||||
const applyCreditLimit = this.normalizeOptionalAmount(archive.applyCreditLimit);
|
||||
archive.maxCreditLimit = maxCreditLimit === '' ? null : maxCreditLimit;
|
||||
archive.applyCreditLimit = applyCreditLimit === '' ? null : applyCreditLimit;
|
||||
return archive;
|
||||
},
|
||||
saveArchive() {
|
||||
|
||||
Reference in New Issue
Block a user