ccjgmwz 3 years ago
parent
commit
3a354abef9

+ 26 - 20
src/views/houseSelfCollect/customerManagementAdd.vue

@@ -123,17 +123,17 @@
     watch: {},
     watch: {},
     data() {
     data() {
       return {
       return {
-        imageUrl1: "",
-        imageUrl2: "",
-        imageUrl3: "",
-        imageUrl4: "",
+        imageUrl1: '',
+        imageUrl2: '',
+        imageUrl3: '',
+        imageUrl4: '',
         dialogImageUrl: '',
         dialogImageUrl: '',
         dialogVisible: false,
         dialogVisible: false,
         customerList: {
         customerList: {
-          customerName: "",
-          customerNumberCard: "",
-          bankCard: "",
-          bankDeposit: "",
+          customerName: '',
+          customerNumberCard: '',
+          bankCard: '',
+          bankDeposit: '',
         },
         },
         disabledFlag: true,
         disabledFlag: true,
         disabled: false,
         disabled: false,
@@ -159,20 +159,20 @@
         bankLows: 'bankLow',
         bankLows: 'bankLow',
         sendText: '60S后重发',
         sendText: '60S后重发',
         sendDisabled: false,
         sendDisabled: false,
-        verifyCode: "",
+        verifyCode: '',
         bankList:[],
         bankList:[],
         bankInput:false,
         bankInput:false,
-        bankText:"手动填写"
+        bankText:'手动填写'
       }
       }
     },
     },
     activated() {
     activated() {
       this.switchType = this.$route.query.types
       this.switchType = this.$route.query.types
       if (this.$route.query.types == null) {
       if (this.$route.query.types == null) {
         this.switchType = 1
         this.switchType = 1
-        this.imageUrl1 = ""
-        this.imageUrl2 = ""
-        this.imageUrl3 = ""
-        this.imageUrl4 = ""
+        this.imageUrl1 = ''
+        this.imageUrl2 = ''
+        this.imageUrl3 = ''
+        this.imageUrl4 = ''
         this.customerList = {}
         this.customerList = {}
       }
       }
       let id = this.$route.query.id
       let id = this.$route.query.id
@@ -190,10 +190,10 @@
       bankInputChange(){
       bankInputChange(){
         this.bankInput = !this.bankInput
         this.bankInput = !this.bankInput
         if(this.bankInput){
         if(this.bankInput){
-          this.bankText = "自动识别"
+          this.bankText = '自动识别'
         }
         }
         else{
         else{
-          this.bankText = "手动填写"
+          this.bankText = '手动填写'
         }
         }
       },
       },
       handleRemove(file, index) {
       handleRemove(file, index) {
@@ -257,7 +257,7 @@
                   that.sendText = sec + 'S后重发'
                   that.sendText = sec + 'S后重发'
                   if (sec <= 0) {
                   if (sec <= 0) {
                     that.sendDisabled = false
                     that.sendDisabled = false
-                    that.sendText = "获取验证码"
+                    that.sendText = '获取验证码'
                     clearInterval(interval)
                     clearInterval(interval)
                   }
                   }
                 }, 1000)
                 }, 1000)
@@ -269,7 +269,7 @@
       },
       },
       cancel() {
       cancel() {
         this.customerList = {}
         this.customerList = {}
-        this.verifyCode = ""
+        this.verifyCode = ''
         this.$router.push({
         this.$router.push({
           path: 'customerManagement'
           path: 'customerManagement'
         })
         })
@@ -291,6 +291,9 @@
               this.$set( this.customerList,'customerNumberCard',response.recPersonNo)
               this.$set( this.customerList,'customerNumberCard',response.recPersonNo)
                this.$set( this.customerList,'payeeNumberCard',response.recPersonNo)
                this.$set( this.customerList,'payeeNumberCard',response.recPersonNo)
             }
             }
+            if (response.recPersonAddr ) {
+              this.$set( this.customerList,'compAddress',response.recPersonAddr)
+            }
           })
           })
       },
       },
       upLoadSuccess2(e) {
       upLoadSuccess2(e) {
@@ -312,6 +315,9 @@
                this.$set( this.customerList,'payeeNumberCard',response.recPersonNo)
                this.$set( this.customerList,'payeeNumberCard',response.recPersonNo)
             }
             }
             
             
+            if (response.recPersonAddr ) {
+              this.$set( this.customerList,'compAddress',response.recPersonAddr)
+            }
           })
           })
       },
       },
       bankSuccess1(e) {
       bankSuccess1(e) {
@@ -442,7 +448,7 @@
                     .then((response) => {
                     .then((response) => {
                       this.$message.success('添加成功')
                       this.$message.success('添加成功')
                       this.customerList = {}
                       this.customerList = {}
-                      this.verifyCode = ""
+                      this.verifyCode = ''
                       this.$router.go(-1)
                       this.$router.go(-1)
                     })
                     })
                 })
                 })
@@ -461,7 +467,7 @@
                     .then((response) => {
                     .then((response) => {
                       this.$message.success('修改成功')
                       this.$message.success('修改成功')
                          this.customerList = {}
                          this.customerList = {}
-                         this.verifyCode = ""
+                         this.verifyCode = ''
                       this.$router.push({
                       this.$router.push({
                         path: 'customerManagement'
                         path: 'customerManagement'
                       })
                       })

+ 1 - 0
src/views/houseSelfCollect/paymentManagement.vue

@@ -495,6 +495,7 @@ import download from '../../components/WsDownload/download'
               
               
               var arr=[]
               var arr=[]
               for (let i = 0; i < response.length; i++) {
               for (let i = 0; i < response.length; i++) {
+                debugger
                 arr.push({fileUrl:response[i],renameFileName:'发票'+i+'.xml'})
                 arr.push({fileUrl:response[i],renameFileName:'发票'+i+'.xml'})
                 //创建标签下载文件
                 //创建标签下载文件
                 // window.open(response[i],)
                 // window.open(response[i],)