@dongkboy 3 лет назад
Родитель
Сommit
5e7f16c9d3
2 измененных файлов с 32 добавлено и 23 удалено
  1. 32 22
      src/views/Letter/Letter.vue
  2. 0 1
      src/views/Letter/Orderlist.vue

+ 32 - 22
src/views/Letter/Letter.vue

@@ -3910,25 +3910,25 @@ export default {
               case 1:
                 if (_this.imgList2.length > 0) {
                   _this.imgList2[1].url = Base64;
-                  _this.ownerfrontimage = Base64;
+                  _this.ownerbackimage = Base64;
                 } else {
-                  _this.ownerfrontimage = Base64;
+                  _this.ownerbackimage = Base64;
                 }
                 break;
               case 2:
                 if (_this.imgList3.length > 0) {
                   _this.imgList3[1].url = Base64;
-                  _this.policyfrontimage = Base64;
+                  _this.policybackimage = Base64;
                 } else {
-                  _this.policyfrontimage = Base64;
+                  _this.policybackimage = Base64;
                 }
                 break;
               case 3:
                 if (_this.imgList4.length > 0) {
                   _this.imgList4[1].url = Base64;
-                  _this.insuredfrontimage = Base64;
+                  _this.insuredbackimage = Base64;
                 } else {
-                  _this.insuredfrontimage = Base64;
+                  _this.insuredbackimage = Base64;
                 }
                 break;
               default:
@@ -4081,22 +4081,24 @@ export default {
           this.$message({ message: "请正确选择身份证", type: "warning" });
         }
         var customerInfo = res.data.customerInfo;
-        this.ownerInfoform.name = customerInfo.name;
-        this.ownerInfoform.identifyType = customerInfo.identifyType;
-        this.ownerInfoform.identifyNumber = customerInfo.identifyNumber;
-        this.ownerInfoform.addr = customerInfo.addr;
-        this.ownerInfoform.identifyValidDate =
-          customerInfo.identifyValidDate.substring(0, 4) +
-          "-" +
-          customerInfo.identifyValidDate.substring(4, 6) +
-          "-" +
-          customerInfo.identifyValidDate.substring(6, 8);
-        this.ownerInfoform.identifyValidEndDate =
-          customerInfo.identifyValidEndDate.substring(0, 4) +
-          "-" +
-          customerInfo.identifyValidEndDate.substring(4, 6) +
-          "-" +
-          customerInfo.identifyValidEndDate.substring(6, 8);
+        if (customerInfo) {
+          this.ownerInfoform.name = customerInfo.name;
+          this.ownerInfoform.identifyType = customerInfo.identifyType;
+          this.ownerInfoform.identifyNumber = customerInfo.identifyNumber;
+          this.ownerInfoform.addr = customerInfo.addr;
+          this.ownerInfoform.identifyValidDate =
+            customerInfo.identifyValidDate.substring(0, 4) +
+            "-" +
+            customerInfo.identifyValidDate.substring(4, 6) +
+            "-" +
+            customerInfo.identifyValidDate.substring(6, 8);
+          this.ownerInfoform.identifyValidEndDate =
+            customerInfo.identifyValidEndDate.substring(0, 4) +
+            "-" +
+            customerInfo.identifyValidEndDate.substring(4, 6) +
+            "-" +
+            customerInfo.identifyValidEndDate.substring(6, 8);
+        }
       });
     },
     userOCRconfirm() {//传参
@@ -4121,6 +4123,14 @@ export default {
       this.carbackImg = "";
       this.userfrontImg = "";
       this.userbackImg = "";
+      this.carfrontimage = "";// 行驶证正面base64
+      this.carbackimage = "";// 行驶证背面base64
+      this.ownerfrontimage = "";//车主正面base64
+      this.ownerbackimage = "";//车主背面base64
+      this.policyfrontimage = "";//投保人正面base64
+      this.policybackimage = "";//投保人背面base64
+      this.insuredfrontimage = "";//被保人正面base64
+      this.insuredbackimage = "";//被保人背面base64
       for (let key in this.ownerInfoform) {
         this.ownerInfoform[key] = ''
       }

+ 0 - 1
src/views/Letter/Orderlist.vue

@@ -1516,7 +1516,6 @@ export default {
                 if (res.data) {
                     this.pageResult = res.data.content;
                     this.pageNum = res.data.pageNum;
-                    this.pageSize = res.data.pageSize;
                     this.totalSize = res.data.totalSize;
                     this.loading = false;
                 } else {