|
|
@@ -253,12 +253,6 @@
|
|
|
show-word-limit></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell">
|
|
|
- <el-form-item label="省市区:">
|
|
|
- <el-cascader v-model="selectedOptions1" :options="areaOptions"
|
|
|
- @change="event => areahandleChange(event, 'ownerInfo')"></el-cascader>
|
|
|
- </el-form-item>
|
|
|
- </el-col> -->
|
|
|
<el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell">
|
|
|
<el-form-item label="地址:" prop="addr">
|
|
|
<el-input v-model="ownerInfo.addr" placeholder="请输入地址" type="text"></el-input>
|
|
|
@@ -283,11 +277,11 @@
|
|
|
<el-input v-model="ownerInfo.email" placeholder="请输入电子邮箱"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell">
|
|
|
+ <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell" v-if="iscCrownerShow">
|
|
|
<el-form-item label="省市区:">
|
|
|
<el-cascader v-model="ownerInfo.provinceData" :options="areaOption" :props="{ value: 'code',label: 'name',children: 'sub'}"></el-cascader>
|
|
|
</el-form-item>
|
|
|
- </el-col> -->
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
@@ -370,6 +364,11 @@
|
|
|
<el-input v-model="policyHolderInfo.email" placeholder="请输入电子邮箱"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell" v-if="isApplicantShow">
|
|
|
+ <el-form-item label="省市区:">
|
|
|
+ <el-cascader v-model="policyHolderInfo.provinceData" :options="areaOption" :props="{ value: 'code',label: 'name',children: 'sub'}"></el-cascader>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
@@ -456,7 +455,11 @@
|
|
|
<el-input v-model="insuredPersonInfo.email" placeholder="请输入电子邮箱"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
-
|
|
|
+ <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell" v-if="isInsuredShow">
|
|
|
+ <el-form-item label="省市区:">
|
|
|
+ <el-cascader v-model="insuredPersonInfo.provinceData" :options="areaOption" :props="{ value: 'code',label: 'name',children: 'sub'}"></el-cascader>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
@@ -1781,6 +1784,9 @@ export default {
|
|
|
};
|
|
|
return {
|
|
|
areaOption:yongchengData.data,
|
|
|
+ iscCrownerShow:false,
|
|
|
+ isApplicantShow:false,
|
|
|
+ isInsuredShow:false,
|
|
|
formInline: {},
|
|
|
xlcell: 6,
|
|
|
lgcell: 12,
|
|
|
@@ -2997,6 +3003,7 @@ export default {
|
|
|
_this.ownerInfo.age = getAgeByIdCard(_this.ownerInfo.identifyNumber)
|
|
|
_this.policyHolderInfo.age = getAgeByIdCard(_this.policyHolderInfo.identifyNumber)
|
|
|
_this.insuredPersonInfo.age = getAgeByIdCard(_this.insuredPersonInfo.identifyNumber)
|
|
|
+ console.log(_this.paramsEdit,111111111111)
|
|
|
// const ownerInfoObject = {
|
|
|
// province: _this.ownerInfo.province,
|
|
|
// city: _this.ownerInfo.city,
|
|
|
@@ -3022,12 +3029,16 @@ export default {
|
|
|
_this.paramsEdit.risk.map(ele => {
|
|
|
if (ele.riskCode == "0507") {
|
|
|
_this.jqchecked = true;
|
|
|
- _this.jqstartDate = ele.startDate;
|
|
|
- _this.jqendDate = ele.endDate;
|
|
|
+ // _this.jqstartDate = ele.startDate;
|
|
|
+ // _this.jqendDate = ele.endDate;
|
|
|
+ _this.jqstartDate = this.transformTime1();
|
|
|
+ _this.jqendDate = this.oneYearPast1(this.jqstartDate);
|
|
|
} else if (ele.riskCode == "0510") {
|
|
|
_this.sychecked = true;
|
|
|
- _this.systartDate = ele.startDate;
|
|
|
- _this.syendDate = ele.endDate;
|
|
|
+ // _this.systartDate = ele.startDate;
|
|
|
+ // _this.syendDate = ele.endDate;
|
|
|
+ _this.systartDate = this.transformTime1();
|
|
|
+ _this.syendDate = this.oneYearPast1(this.systartDate);
|
|
|
_this.insureList.map(eleA => {
|
|
|
_this.paramsEdit.king.map(eleB => {
|
|
|
if (eleA.kindCode == eleB.kindCode) {
|
|
|
@@ -3940,6 +3951,10 @@ export default {
|
|
|
},
|
|
|
//永诚报价
|
|
|
yongcheng(num, id) {
|
|
|
+ this.iscCrownerShow=false
|
|
|
+ this.isInsuredShow=false
|
|
|
+ this.isApplicantShow=false
|
|
|
+
|
|
|
let accidentalDrivingVo = {};
|
|
|
if (this.accidentForm.id) {
|
|
|
let data = this.accidentDataList.find(
|
|
|
@@ -4022,7 +4037,17 @@ export default {
|
|
|
this.renewalCodeSyImg = syBase64;
|
|
|
}
|
|
|
this.renewalCodedialogVisible = true;
|
|
|
- } else {
|
|
|
+ } else if (res.code == "500") {
|
|
|
+ this.ownerInfo.provinceData=[]
|
|
|
+ this.insuredPersonInfo.provinceData=[]
|
|
|
+ this.policyHolderInfo.provinceData=[]
|
|
|
+ this.iscCrownerShow=res.msg.indexOf("车主地区自动解析失败")!=-1?true:false
|
|
|
+ this.isInsuredShow=res.msg.indexOf("被保人地区自动解析失败")!=-1?true:false
|
|
|
+ this.isApplicantShow=res.msg.indexOf("投保人地区自动解析失败")!=-1?true:false
|
|
|
+ this.totalCompanyList[num].quoteCode = "3";
|
|
|
+ this.totalCompanyList[num].msg = res.msg;
|
|
|
+ }
|
|
|
+ else {
|
|
|
this.totalCompanyList[num].quoteCode = "3";
|
|
|
this.totalCompanyList[num].msg = res.msg;
|
|
|
return;
|