Преглед изворни кода

营业执照识别后,手机号等字段输入不了问题

lihongxiao пре 1 година
родитељ
комит
dabd600ac8

+ 4 - 7
src/views/Task/daikeComponents/KtLetter.vue

@@ -11184,6 +11184,7 @@ else{
         case 2:
           // this.selectedOptions1 = addressCode(this.ownerInfoform.addr);
           this.ownerInfo = {...this.ownerInfoform}
+
           break;
         case 3:
           // this.selectedOptions2 = addressCode(this.ownerInfoform.addr);
@@ -11199,17 +11200,13 @@ else{
       this.businessform.property='0'
       switch (this.userIndex) {
           case 2:
-            this.ownerInfo = JSON.parse(JSON.stringify(this.businessform));
+            this.ownerInfo ={...this.ownerInfo,...this.businessform} 
             break;
           case 3:
-            this.policyHolderInfo = JSON.parse(
-              JSON.stringify(this.businessform)
-            );
+            this.policyHolderInfo ={...this.policyHolderInfo,...this.businessform} 
             break;
           case 4:
-            this.insuredPersonInfo = JSON.parse(
-              JSON.stringify(this.businessform)
-            );
+          this.insuredPersonInfo ={...this.insuredPersonInfo,...this.businessform} 
             break;
         }
     }

+ 5 - 9
src/views/Task/daikeComponents/KtLetter1.vue

@@ -593,7 +593,7 @@
             </el-form-item>
           </el-col>
           <el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
-            <el-form-item label="地址" prop="addr">
+            <el-form-item label="地址" prop="addr"> 
               <el-input v-model="insuredPersonInfo.addr" placeholder="请输入地址" type="text" @blur="getCompanyList"></el-input>
             </el-form-item>
           </el-col>
@@ -12984,18 +12984,14 @@ else{
     else{
       this.businessform.property='0'
       switch (this.userIndex) {
-          case 2:
-            this.ownerInfo = JSON.parse(JSON.stringify(this.businessform));
+        case 2:
+            this.ownerInfo ={...this.ownerInfo,...this.businessform} 
             break;
           case 3:
-            this.policyHolderInfo = JSON.parse(
-              JSON.stringify(this.businessform)
-            );
+            this.policyHolderInfo ={...this.policyHolderInfo,...this.businessform} 
             break;
           case 4:
-            this.insuredPersonInfo = JSON.parse(
-              JSON.stringify(this.businessform)
-            );
+          this.insuredPersonInfo ={...this.insuredPersonInfo,...this.businessform} 
             break;
         }
     }