Browse Source

fileid validate empty

changjiaming 1 week ago
parent
commit
4dc3c8f080

+ 3 - 0
src/views/purchaseContractManagement/components/ChangeContractReviewContent.vue

@@ -292,11 +292,14 @@ export default {
               if(item.fileStorage) {
               if(item.fileStorage) {
                 item.arr = []
                 item.arr = []
                 item.arr.push(item.fileStorage)
                 item.arr.push(item.fileStorage)
+                item.fileId = item.fileStorage.id
                 // item.fileStorage = [item.fileStorage]
                 // item.fileStorage = [item.fileStorage]
                 // let arr = []
                 // let arr = []
                 // arr.push(item.fileStorage)
                 // arr.push(item.fileStorage)
                 // item.fileStorage = arr
                 // item.fileStorage = arr
                 // item.fileStorage = [item.fileStorage]
                 // item.fileStorage = [item.fileStorage]
+              } else {
+                item.fileId = ''
               }
               }
             })
             })
             this.ruleForm.uploadPurchSupplementContracts = [...this.info.uploadPurchSupplementContracts]
             this.ruleForm.uploadPurchSupplementContracts = [...this.info.uploadPurchSupplementContracts]

+ 2 - 0
src/views/purchaseContractManagement/components/PurchaseContractReviewContent.vue

@@ -448,9 +448,11 @@ export default {
             if(item.fileStorage) {
             if(item.fileStorage) {
               item.fileStorages = [item.fileStorage]
               item.fileStorages = [item.fileStorage]
               // item.fileStorage = [item.fileStorage]
               // item.fileStorage = [item.fileStorage]
+              item.fileId = item.fileStorage.id
             } else {
             } else {
               item.fileStorages = []
               item.fileStorages = []
               // item.fileStorage = []
               // item.fileStorage = []
+              item.fileId = ''
             }
             }
           })
           })
         }
         }