|
|
@@ -1639,7 +1639,7 @@
|
|
|
import QRCode from "qrcodejs2";
|
|
|
import Cookies from "js-cookie";
|
|
|
import CommonUtil from "@/utils/comutil.js";
|
|
|
-import { getAgeByIdCard, searchkey } from "@/utils/validate.js";
|
|
|
+import { getAgeByIdCard, searchkey,addressCode } from "@/utils/validate.js";
|
|
|
import { regionData, codeToText } from "element-china-area-data";
|
|
|
export default {
|
|
|
inject: ["reload"],
|
|
|
@@ -5141,7 +5141,7 @@ export default {
|
|
|
this.ownerInfoform.identifyValidEndDate = '9999-12-31';
|
|
|
}
|
|
|
}
|
|
|
- let values=searchkey(this.ownerInfoform.addr.match(this.regular));
|
|
|
+ let values=addressCode(this.ownerInfoform.addr);
|
|
|
this.ownerInfoform.province=codeToText[values[0]]
|
|
|
this.ownerInfoform.city=codeToText[values[1]]
|
|
|
this.ownerInfoform.county=codeToText[values[2]]
|
|
|
@@ -5152,18 +5152,17 @@ export default {
|
|
|
//传参
|
|
|
switch (this.userIndex) {
|
|
|
case 2:
|
|
|
- this.selectedOptions1=searchkey(this.ownerInfoform.addr.match(this.regular));
|
|
|
- console.log(this.ownerInfoform)
|
|
|
+ this.selectedOptions1=addressCode(this.ownerInfoform.addr);
|
|
|
this.ownerInfo = JSON.parse(JSON.stringify(this.ownerInfoform));
|
|
|
break;
|
|
|
case 3:
|
|
|
- this.selectedOptions2=searchkey(this.ownerInfoform.addr.match(this.regular));
|
|
|
+ this.selectedOptions2=addressCode(this.ownerInfoform.addr);
|
|
|
this.policyHolderInfo = JSON.parse(
|
|
|
JSON.stringify(this.ownerInfoform)
|
|
|
);
|
|
|
break;
|
|
|
case 4:
|
|
|
- this.selectedOptions3=searchkey(this.ownerInfoform.addr.match(this.regular));
|
|
|
+ this.selectedOptions3=addressCode(this.ownerInfoform.addr);
|
|
|
this.insuredPersonInfo = JSON.parse(
|
|
|
JSON.stringify(this.ownerInfoform)
|
|
|
);
|