ccj 1 jaar geleden
bovenliggende
commit
15339c1c8f
1 gewijzigde bestanden met toevoegingen van 10 en 5 verwijderingen
  1. 10 5
      src/views/houseSelfCollect/paymentManagement.vue

+ 10 - 5
src/views/houseSelfCollect/paymentManagement.vue

@@ -1480,11 +1480,16 @@
                     id: this.modification[i].id,
                   })
                   .toPromise()
-
                     if (response.compName == '黑龙江秋收有限公司') {
                       response.compName = '黑龙江中天昊元贸易有限公司'
                     }
-                    
+                    if(response.selfCertificate){
+                      let ttt =await getFileList({ appendixIds:response.selfCertificate }).toPromise()
+                      if(ttt.length > 0){
+                        response.selfCertificateURL = ttt[0].appendixPath
+                      }
+                    }
+                    console.log("111",response)
                     index1++
                     let date = new Date()
                     response.currentTime =
@@ -1503,9 +1508,6 @@
                       // this.isShowPrint = true
                       this.printBig()
                     }
-                  if(response.selfCertificate){
-                    response.selfCertificateURL=await getFileList({ appendixIds:response.selfCertificate }).toPromise()
-                  }
               // })
           }
         } else {
@@ -1514,6 +1516,9 @@
                   })
                   .toPromise()
                   .then((response) => {
+                    if(response.selfCertificate){
+                      response.selfCertificateURL= getFileList({ appendixIds:response.selfCertificate }).toPromise()
+                    }
                     this.printData = response
                     console.log(this.printData)
                     if (response.compName == '黑龙江秋收有限公司') {