diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue index 8d4c98fe5..8297e2464 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue @@ -2265,9 +2265,9 @@ export default { }, res => { this.sarAccessInfoList = res.data.records this.sarAccessInfoList.forEach(item => { - if (item.standYear === null) { + if (item.standYear === null && item.standType !== null) { item.standNumber = item.standSortShow + ' ' + item.standNumber - } else { + } else if (item.standYear !== null && item.standType !== null){ item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear } if (item.attrInfoMap === null) { diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue index 0356caf9e..70ec69b73 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue @@ -2162,9 +2162,9 @@ export default { }, res => { this.sarAccessInfoList = res.data.records this.sarAccessInfoList.forEach(item => { - if (item.standYear === null) { + if (item.standYear === null && item.standType !== null) { item.standNumber = item.standSortShow + ' ' + item.standNumber - } else { + } else if (item.standYear !== null && item.standType !== null){ item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear } if (item.attrInfoMap === null) { diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue index 8d325ec78..360907b0e 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue @@ -2149,9 +2149,9 @@ export default { } this.sarAccessInfoList.forEach(item => { - if (item.standYear === null) { + if (item.standYear === null && item.standType !== null) { item.standNumber = item.standSortShow + ' ' + item.standNumber - } else { + } else if (item.standYear !== null && item.standType !== null){ item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear } })