Browse Source

前端修改付款银行卡显示字段

高敬炎 2 years ago
parent
commit
3cbafe80cf
2 changed files with 21 additions and 5 deletions
  1. 14 2
      public/static/payprint1.html
  2. 7 3
      src/views/houseSelfCollect/paymentManagement.vue

+ 14 - 2
public/static/payprint1.html

@@ -601,6 +601,13 @@
                 <img :src="customerList1[index].imgURl.imageUrl4" class="avatar" />
               </div> -->
                     </div>
+                    <div class="bankcard" v-if="isShowPrintType7&&printData1[index].selfCertificateURL">
+
+                        <div class="sfcard-content part2">
+                            <img v-if="printData1[index].selfCertificateURL" :src="printData1[index].selfCertificateURL" class="avatar" />
+
+                        </div>
+                    </div>
                 </div>
             </div>
         </div>
@@ -1375,6 +1382,7 @@
             isShowPrintType4: false,
             isShowPrintType5: false,
             isShowPrintType6: false,
+            isShowPrintType7: false,
             showType: [],
             printData: {},
             printData1: [],
@@ -1508,6 +1516,7 @@
             }
             console.log(this.customerList)
             console.log('cwprint', localStorage.getItem('cwprint'))
+            console.log(this.selectPrint)
             if (cwprint == 'true') {
                 if (this.selectPrint) {
                     for (let i = 0; i < this.customerList1.length; i++) {
@@ -1521,8 +1530,8 @@
                         }
                     }
                     for (let i = 0; i < this.printData1.length; i++) {
-                        if (this.printData1[i].payeeAddressUrl) {
-                            let _url2 = this.printData1[i].payeeAddressUrl.split(',')
+                        if (this.printData1[i].identityAuthenticationInfo.payeeAddressUrl) {
+                            let _url2 = this.printData1[i].identityAuthenticationInfo.payeeAddressUrl.split(',')
                             this.printData1[i].imgURl = {
                                 imageUrl3: _url2[0],
                                 imageUrl4: _url2[1]
@@ -1567,6 +1576,9 @@
                         case '打印回执单':
                             this.isShowPrintType5 = !this.isShowPrintType5
                             break
+                        case '打印自产证明':
+                            this.isShowPrintType7 = !this.isShowPrintType7
+                            break
                     }
                 }
             } else {

+ 7 - 3
src/views/houseSelfCollect/paymentManagement.vue

@@ -494,6 +494,7 @@
   import {
     getHp
   } from '@/utils/getHasPermission'
+  import { getFileList } from '@/model/upload'
   import download from '../../components/WsDownload/download'
   import WsUpload from '@/components/WsUpload'
   export default {
@@ -1475,14 +1476,15 @@
             //       // this.isShowPrint = true
             //       this.printBig()
             //     }
-                await getpaymentexamine({
+                var response=await getpaymentexamine({
                     id: this.modification[i].id,
                   })
                   .toPromise()
-                  .then((response) => {
+
                     if (response.compName == '黑龙江秋收有限公司') {
                       response.compName = '黑龙江中天昊元贸易有限公司'
                     }
+                    
                     index1++
                     let date = new Date()
                     response.currentTime =
@@ -1501,7 +1503,9 @@
                       // this.isShowPrint = true
                       this.printBig()
                     }
-                  })
+                  if(response.selfCertificate){
+                    response.selfCertificateURL=await getFileList({ appendixIds }).toPromise()
+                  }
               // })
           }
         } else {