소스 검색

fileid validate empty

changjiaming 1 주 전
부모
커밋
4dc3c8f080

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

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

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

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