Browse Source

fix(供应商):供应商字段修改

sufan 7 months ago
parent
commit
c4d05e62f8

+ 4 - 4
src/views/myBusiness/supplementaryInfo/components/BusinessSituation.vue

@@ -189,7 +189,7 @@ export default {
     },
     getParams() {
       const upstreamProcurementDocuments = this.upstreamTableData.map((item, index) => {
-        if(item.name) {
+        if (item?.name) {
           return {
             name: item.name,
             files: this.$refs[`upfileStorage${index}`].getFileLists.map(item => item.id)
@@ -197,7 +197,7 @@ export default {
         }
       })
       const salesDocumentsInfos = this.downstreamTableData.map((item, index) => {
-        if(item.name) {
+        if (item?.name) {
           return {
             name: item.name,
             files: this.$refs[`downfileStorage${index}`].getFileLists.map(item => item.id)
@@ -205,8 +205,8 @@ export default {
         }
       })
       return {
-        upstreamProcurementDocuments: upstreamProcurementDocuments.filter(item => item.name),
-        salesDocumentsInfos: salesDocumentsInfos.filter(item => item.name)
+        upstreamProcurementDocuments: upstreamProcurementDocuments.filter(item => item?.name),
+        salesDocumentsInfos: salesDocumentsInfos.filter(item => item?.name)
       }
     }
   }