|
|
@@ -208,19 +208,19 @@
|
|
|
</el-col>
|
|
|
<el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
|
|
|
<el-form-item label="注册日期" prop="registerDate" class="red-btn">
|
|
|
- <el-date-picker v-dateFormat v-model="carInfo.registerDate" :picker-options="pickerOptions" @blur="getCompanyList"
|
|
|
+ <el-date-picker v-model="carInfo.registerDate" :picker-options="pickerOptions" @blur="getCompanyList"
|
|
|
value-format="yyyy-MM-dd" type="date" placeholder="选择注册日期" placement="bottom-start"></el-date-picker>
|
|
|
</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="issueDate" class="red-btn" @blur="getCompanyList">
|
|
|
- <el-date-picker v-dateFormat v-model="carInfo.issueDate" :picker-options="issueDateOptions" type="date"
|
|
|
+ <el-date-picker v-model="carInfo.issueDate" :picker-options="issueDateOptions" type="date"
|
|
|
placeholder="选择发证日期" value-format="yyyy-MM-dd" placement="bottom-start"></el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl" v-if="transferDateShow">
|
|
|
<el-form-item label="转移登记日期" prop="transferDate">
|
|
|
- <el-date-picker v-dateFormat v-model="carInfo.transferDate" :picker-options="pickerOptions" type="date" @blur="getCompanyList"
|
|
|
+ <el-date-picker v-model="carInfo.transferDate" :picker-options="pickerOptions" type="date" @blur="getCompanyList"
|
|
|
placeholder="选择日期" value-format="yyyy-MM-dd" placement="bottom-start"></el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -284,14 +284,14 @@
|
|
|
</el-col>
|
|
|
<el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
|
|
|
<el-form-item label="有效期起期" prop="identifyValidDate">
|
|
|
- <el-date-picker v-dateFormat v-model="ownerInfo.identifyValidDate" value-format="yyyy-MM-dd" @blur="getCompanyList"
|
|
|
+ <el-date-picker v-model="ownerInfo.identifyValidDate" value-format="yyyy-MM-dd" @blur="getCompanyList"
|
|
|
:picker-options="pickerOptions" type="date" placeholder="选择注册日期"
|
|
|
placement="bottom-start"></el-date-picker>
|
|
|
</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="identifyValidEndDate" class="red-btn">
|
|
|
- <el-date-picker v-dateFormat v-model="ownerInfo.identifyValidEndDate" type="date" value-format="yyyy-MM-dd" @blur="getCompanyList"
|
|
|
+ <el-date-picker v-model="ownerInfo.identifyValidEndDate" type="date" value-format="yyyy-MM-dd" @blur="getCompanyList"
|
|
|
placeholder="选择有效期" placement="bottom-start" style="width: calc(100% - 40px)"></el-date-picker>
|
|
|
<div class="insure-long-term" @click="insureLongterm('ownerInfo')">
|
|
|
长期
|
|
|
@@ -381,13 +381,13 @@
|
|
|
</el-col>
|
|
|
<el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
|
|
|
<el-form-item label="有效期起期" prop="identifyValidDate">
|
|
|
- <el-date-picker v-dateFormat v-model="policyHolderInfo.identifyValidDate" value-format="yyyy-MM-dd" @blur="getCompanyList"
|
|
|
+ <el-date-picker v-model="policyHolderInfo.identifyValidDate" value-format="yyyy-MM-dd" @blur="getCompanyList"
|
|
|
:picker-options="pickerOptions" type="date" placeholder="选择有效期" placement="bottom-start"></el-date-picker>
|
|
|
</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="identifyValidEndDate">
|
|
|
- <el-date-picker v-dateFormat v-model="policyHolderInfo.identifyValidEndDate" type="date" @blur="getCompanyList"
|
|
|
+ <el-date-picker v-model="policyHolderInfo.identifyValidEndDate" type="date" @blur="getCompanyList"
|
|
|
value-format="yyyy-MM-dd" placeholder="选择有效期" placement="bottom-start"
|
|
|
style="width: calc(100% - 40px)"></el-date-picker>
|
|
|
<div class="insure-long-term" @click="insureLongterm('policyHolderInfo')">
|
|
|
@@ -487,13 +487,13 @@
|
|
|
</el-col>
|
|
|
<el-col :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
|
|
|
<el-form-item label="有效期起期" prop="identifyValidDate">
|
|
|
- <el-date-picker v-dateFormat v-model="insuredPersonInfo.identifyValidDate" value-format="yyyy-MM-dd" @blur="getCompanyList"
|
|
|
+ <el-date-picker v-model="insuredPersonInfo.identifyValidDate" value-format="yyyy-MM-dd" @blur="getCompanyList"
|
|
|
:picker-options="pickerOptions" type="date" placeholder="选择有效期" placement="bottom-start"></el-date-picker>
|
|
|
</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="identifyValidEndDate">
|
|
|
- <el-date-picker v-dateFormat v-model="insuredPersonInfo.identifyValidEndDate" type="date" @blur="getCompanyList"
|
|
|
+ <el-date-picker v-model="insuredPersonInfo.identifyValidEndDate" type="date" @blur="getCompanyList"
|
|
|
value-format="yyyy-MM-dd" placeholder="选择有效期" placement="bottom-start"
|
|
|
style="width: calc(100% - 40px)"></el-date-picker>
|
|
|
<div class="insure-long-term" @click="insureLongterm('insuredPersonInfo')">
|
|
|
@@ -586,7 +586,7 @@
|
|
|
</el-col>
|
|
|
<el-col v-show="vehicleAndVesselTaxForm.taxRelifFlag == 4" :xs="colSpan.xs" :sm="colSpan.sm" :md="colSpan.md" :lg="colSpan.lg" :xl="colSpan.xl">
|
|
|
<el-form-item label="完税凭证填发日期:" prop="taxDocumentDate">
|
|
|
- <el-date-picker v-dateFormat v-model="vehicleAndVesselTaxForm.taxDocumentDate" value-format="yyyy-MM-dd"
|
|
|
+ <el-date-picker v-model="vehicleAndVesselTaxForm.taxDocumentDate" value-format="yyyy-MM-dd"
|
|
|
type="date" placeholder="完税凭证填发日期" placement="bottom-start"></el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -675,11 +675,11 @@
|
|
|
></el-checkbox>
|
|
|
<div class="flex f-c a-c">
|
|
|
<el-form-item label="交强险起保日期" prop="identifyNumber" class="red-btn">
|
|
|
- <el-date-picker v-dateFormat value-format="yyyy-MM-dd HH:mm:ss" v-model="jqstartDate" @change="jqChange"
|
|
|
+ <el-date-picker value-format="yyyy-MM-dd HH:mm:ss" v-model="jqstartDate" @change="jqChange"
|
|
|
type="datetime" placeholder="选择日期时间" placement="bottom-start"></el-date-picker>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="交强险终保日期" prop="identifyNumber" class="red-btn">
|
|
|
- <el-date-picker v-dateFormat value-format="yyyy-MM-dd HH:mm:ss" v-model="jqendDate" type="datetime"
|
|
|
+ <el-date-picker value-format="yyyy-MM-dd HH:mm:ss" v-model="jqendDate" type="datetime"
|
|
|
placeholder="选择日期时间" placement="bottom-start"></el-date-picker>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
@@ -693,11 +693,11 @@
|
|
|
@change="sycheckedChange"></el-checkbox>
|
|
|
<div class="flex f-c a-c">
|
|
|
<el-form-item label="商业险起保日期" prop="name" class="red-btn">
|
|
|
- <el-date-picker v-dateFormat value-format="yyyy-MM-dd HH:mm:ss" v-model="systartDate" @change="syChange"
|
|
|
+ <el-date-picker value-format="yyyy-MM-dd HH:mm:ss" v-model="systartDate" @change="syChange"
|
|
|
type="datetime" placeholder="选择日期时间" placement="bottom-start"></el-date-picker>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="商业险终保日期" prop="name" class="red-btn">
|
|
|
- <el-date-picker v-dateFormat value-format="yyyy-MM-dd HH:mm:ss" v-model="syendDate" type="datetime"
|
|
|
+ <el-date-picker value-format="yyyy-MM-dd HH:mm:ss" v-model="syendDate" type="datetime"
|
|
|
placeholder="选择日期时间" placement="bottom-start"></el-date-picker>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
@@ -5691,6 +5691,25 @@ export default {
|
|
|
},
|
|
|
deep: true,
|
|
|
},
|
|
|
+ ownerInfo: {
|
|
|
+ handler(val) {
|
|
|
+ if(this.tbczcarShow) {
|
|
|
+ this.policyHolderInfo = {...val}
|
|
|
+ }
|
|
|
+ if(this.bbczcarShow) {
|
|
|
+ this.insuredPersonInfo = {...val}
|
|
|
+ }
|
|
|
+ },
|
|
|
+ deep: true
|
|
|
+ },
|
|
|
+ policyHolderInfo: {
|
|
|
+ handler(val) {
|
|
|
+ if(this.bbtbcarShow) {
|
|
|
+ this.insuredPersonInfo = {...val}
|
|
|
+ }
|
|
|
+ },
|
|
|
+ deep: true
|
|
|
+ }
|
|
|
},
|
|
|
props: {
|
|
|
isdisabled: {
|
|
|
@@ -5847,7 +5866,6 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
this.policyHolderInfovalidate()
|
|
|
- console.log(this.policyHolderInfo, 'policyHolderInfo')
|
|
|
this.$refs["carInfo"].validate((valid) => {
|
|
|
if (valid) {
|
|
|
_this.$refs["ownerInfo"].validate(async (valid1) => {
|
|
|
@@ -5879,7 +5897,6 @@ export default {
|
|
|
} else {
|
|
|
this.oldData = JSON.stringify(param)
|
|
|
}
|
|
|
- console.log('校验成功,获取列表')
|
|
|
this.showLoading = true
|
|
|
// this.$api.letter.getAllAgreement().then((res) => {
|
|
|
this.$api.letter.ruleFilterCompany(param).then((res) => {
|
|
|
@@ -6001,9 +6018,7 @@ export default {
|
|
|
},
|
|
|
// 选择方案
|
|
|
checkedPopover(reslistindex, index, item) {
|
|
|
- console.log(reslistindex, index, item, 'reslistindex, index, item')
|
|
|
if (index == 99) {
|
|
|
- console.log(this.totalCompanyList[reslistindex].programme99,this.totalCompanyList[reslistindex].programme99.schemeId, 'this.totalCompanyList[reslistindex].programme99')
|
|
|
if (this.totalCompanyList[reslistindex].programme99 && !this.totalCompanyList[reslistindex].programme99.schemeId) {
|
|
|
return
|
|
|
}
|
|
|
@@ -6032,7 +6047,6 @@ export default {
|
|
|
this.totalCompanyList[reslistindex].programme.description = val.desc
|
|
|
}
|
|
|
})
|
|
|
- console.log('当前选中方案', this.totalCompanyList[reslistindex].programme)
|
|
|
this.$forceUpdate()
|
|
|
},
|
|
|
// 获取方案信息
|
|
|
@@ -6082,7 +6096,6 @@ export default {
|
|
|
// 确认驾意
|
|
|
handleAddYiWai() {
|
|
|
let arr = []
|
|
|
- console.log(this.checkList,"驾意险")
|
|
|
this.checkList.forEach((val) => {
|
|
|
if (this.totalCompanyList[this.typeDialogIndex].cnName == 'zijin') {
|
|
|
if(val.tableData ) arr.push(...val.tableData)
|
|
|
@@ -6095,7 +6108,6 @@ export default {
|
|
|
})
|
|
|
this.totalCompanyList[this.typeDialogIndex].zxProgramme.drivingList = arr;
|
|
|
this.totalCompanyList[this.typeDialogIndex].programme.drivingList = arr
|
|
|
- console.log(arr, 'arr')
|
|
|
this.handleCloseAddYiwai()
|
|
|
},
|
|
|
// 驾意输入框按钮
|
|
|
@@ -6169,7 +6181,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
handleChangeJiayi(listItem, listIndex) {
|
|
|
- console.log(listItem, listIndex, this.jiayiDialogData, 'listItem, listIndex')
|
|
|
if (this.checkList.length) {
|
|
|
this.checkList.forEach((val) => {
|
|
|
this.$api.letter.getDriving({
|
|
|
@@ -6742,7 +6753,8 @@ export default {
|
|
|
},
|
|
|
//身份证失去焦点
|
|
|
identifyblur(info) {
|
|
|
- this[info].age = getAgeByIdCard(this[info].identifyNumber);
|
|
|
+ // console.log(getAgeByIdCard(this[info].identifyNumber))
|
|
|
+ this[info].age =typeof getAgeByIdCard(this[info].identifyNumber)=='number' ?getAgeByIdCard(this[info].identifyNumber):'';
|
|
|
this[info].gender = getGenderByIdCard(this[info].identifyNumber);
|
|
|
},
|
|
|
//车主信息选择性别
|
|
|
@@ -7714,8 +7726,6 @@ export default {
|
|
|
companyId: this.totalCompanyList[index].id,
|
|
|
quoteInfoVo: data
|
|
|
}).then((res) => {
|
|
|
- console.log('11111111.');
|
|
|
- console.log(res);
|
|
|
this.contributingLoading = false;
|
|
|
if (res.data) {
|
|
|
// res.data.forEach((val) => {
|
|
|
@@ -7829,12 +7839,10 @@ export default {
|
|
|
//勾选保险公司
|
|
|
initchange(e, code, name, index) {
|
|
|
if (e) {
|
|
|
- console.log(this.totalCompanyList[index], 'this.totalCompanyList[index]')
|
|
|
this.totalCompanyList[index].checked = e;
|
|
|
this.getCompanyProgramme(e, code, name, index)
|
|
|
this.kindListFun();
|
|
|
let ins = this.totalCompanyList[index].namesimple;
|
|
|
- console.log(ins)
|
|
|
this.totalCompanyList[index].underwritingDescription =
|
|
|
this.totalCompanyList[index].agreement[0].underwritingDescription;
|
|
|
if (this.$route.path != "/task/external/externalOrders")
|
|
|
@@ -8443,7 +8451,6 @@ export default {
|
|
|
vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
|
|
|
};
|
|
|
this.$api.letter.generateOrder(param).then((res) => {
|
|
|
- debugger
|
|
|
if (res.code == "200") {
|
|
|
//上传图片
|
|
|
const mergedArray = [
|
|
|
@@ -8502,7 +8509,7 @@ export default {
|
|
|
// tbczcarShow 同车主
|
|
|
if (_this.tbczcarShow == true) {
|
|
|
// 投保人信息 policyHolderInfo
|
|
|
- _this.policyHolderInfo = JSON.parse(JSON.stringify(_this.ownerInfo));
|
|
|
+ _this.policyHolderInfo = {..._this.ownerInfo}
|
|
|
} else {
|
|
|
_this.$refs["policyHolderInfo"].validate((valid2) => {
|
|
|
if (valid2) {
|
|
|
@@ -8521,7 +8528,6 @@ export default {
|
|
|
this.myQrCode.clear()
|
|
|
}
|
|
|
this.$nextTick(() => {
|
|
|
- console.log('二维码', this.myQrCode)
|
|
|
this.myQrCode = new QrCode(this.$refs.myQrcode, {
|
|
|
// text 需要转二维码的内容 可以是文本也可以是一个链接 是链接会直接跳走
|
|
|
text: this.vehicleInspectionUrl,
|
|
|
@@ -8548,21 +8554,15 @@ export default {
|
|
|
var _this = this;
|
|
|
// this.policyHolderInfovalidate()
|
|
|
if (_this.tbczcarShow == true) {
|
|
|
- _this.policyHolderInfo = JSON.parse(
|
|
|
- JSON.stringify(_this.ownerInfo)
|
|
|
- );
|
|
|
+ _this.policyHolderInfo = {..._this.ownerInfo}
|
|
|
}
|
|
|
_this.$refs["ownerInfo"].validate((valid1) => {
|
|
|
if (valid1) {
|
|
|
if (_this.bbczcarShow == true) {
|
|
|
- _this.insuredPersonInfo = JSON.parse(
|
|
|
- JSON.stringify(_this.ownerInfo)
|
|
|
- );
|
|
|
+ _this.insuredPersonInfo = {..._this.ownerInfo}
|
|
|
}
|
|
|
if (_this.bbtbcarShow == true) {
|
|
|
- _this.insuredPersonInfo = JSON.parse(
|
|
|
- JSON.stringify(_this.policyHolderInfo)
|
|
|
- );
|
|
|
+ _this.insuredPersonInfo = {..._this.policyHolderInfo}
|
|
|
}
|
|
|
_this.carInfo.vinNo = _this.carInfo.frameNo;
|
|
|
_this.riskList = []; //险种大类
|
|
|
@@ -8594,9 +8594,7 @@ export default {
|
|
|
kindName: value.kindName
|
|
|
})
|
|
|
})
|
|
|
- console.log(_this.totalCompanyList[index].kindList, '_this.totalCompanyList[index].kindList')
|
|
|
if (_this.jqchecked) {
|
|
|
- console.log('这里是什么啊?')
|
|
|
//交强
|
|
|
_this.jqstartDate = this.transformTime(_this.jqstartDate);
|
|
|
_this.jqendDate = this.transformTime(_this.jqendDate);
|
|
|
@@ -8610,7 +8608,6 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
if (_this.sychecked) {
|
|
|
- console.log('这里又是什么呀?')
|
|
|
_this.systartDate = this.transformTime(_this.systartDate);
|
|
|
_this.syendDate = this.transformTime(_this.syendDate);
|
|
|
//商业
|
|
|
@@ -8706,6 +8703,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
quote1() {
|
|
|
+ console.log('最后的信息')
|
|
|
let starttime = new Date(this.carInfo.registerDate);
|
|
|
let endtime = new Date(this.carInfo.issueDate);
|
|
|
if (endtime < starttime) {
|
|
|
@@ -8719,21 +8717,15 @@ export default {
|
|
|
if (valid) {
|
|
|
// this.policyHolderInfovalidate()
|
|
|
if (_this.tbczcarShow == true) {
|
|
|
- _this.policyHolderInfo = JSON.parse(
|
|
|
- JSON.stringify(_this.ownerInfo)
|
|
|
- );
|
|
|
+ _this.policyHolderInfo = {..._this.ownerInfo}
|
|
|
}
|
|
|
_this.$refs["ownerInfo"].validate((valid1) => {
|
|
|
if (valid1) {
|
|
|
if (_this.bbczcarShow == true) {
|
|
|
- _this.insuredPersonInfo = JSON.parse(
|
|
|
- JSON.stringify(_this.ownerInfo)
|
|
|
- );
|
|
|
+ _this.insuredPersonInfo = {..._this.ownerInfo}
|
|
|
}
|
|
|
if (_this.bbtbcarShow == true) {
|
|
|
- _this.insuredPersonInfo = JSON.parse(
|
|
|
- JSON.stringify(_this.policyHolderInfo)
|
|
|
- );
|
|
|
+ _this.insuredPersonInfo = {..._this.policyHolderInfo}
|
|
|
}
|
|
|
_this.carInfo.vinNo = _this.carInfo.frameNo;
|
|
|
_this.riskList = []; //险种大类
|
|
|
@@ -8959,7 +8951,6 @@ export default {
|
|
|
},
|
|
|
//订单生成前数据处理事件
|
|
|
OrderStageProcessing(index) {
|
|
|
- console.log('订单生成前数据处理')
|
|
|
if (this.tbczcarShow && this.imageList2.length > 0) {
|
|
|
//投保人同车主
|
|
|
this.imageList3 = JSON.parse(JSON.stringify(this.imageList2));
|
|
|
@@ -9069,7 +9060,9 @@ export default {
|
|
|
vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
|
|
|
productId: this.productId
|
|
|
};
|
|
|
- console.log('this.apiInterfaceName', this.apiInterfaceName)
|
|
|
+ console.log('车主信息', this.ownerInfo)
|
|
|
+ console.log('投保人信息', this.policyHolderInfo)
|
|
|
+ console.log('被投保人信息', this.insuredPersonInfo)
|
|
|
this.$api.letter[this.apiInterfaceName](param).then((res) => {
|
|
|
if (res.code == "200") {
|
|
|
//上传图片
|
|
|
@@ -9096,7 +9089,6 @@ export default {
|
|
|
this.orderno = res.data.orderno;
|
|
|
if (index >= 0) {
|
|
|
this.totalCompanyList[index].quoteCode = 1
|
|
|
- console.log('方法是干啥的', this.totalCompanyList[index].cnName)
|
|
|
this.ToolClickFun(this.totalCompanyList[index].cnName, index, this.totalCompanyList[index].id, this.totalCompanyList[index].namesimple);
|
|
|
} else {
|
|
|
this.totalCompanyList.map((ele, index) => {
|
|
|
@@ -10148,7 +10140,6 @@ export default {
|
|
|
|
|
|
// 爬虫对接
|
|
|
quoteInsurance(num, id, namesimple, apiType) {
|
|
|
- console.log(apiType, 'apiType')
|
|
|
let api = apiType == 2 ? "pythonquote" : "";
|
|
|
if (namesimple == '诚泰财险') {
|
|
|
api = "pythonquote"
|
|
|
@@ -11347,7 +11338,6 @@ export default {
|
|
|
this.apiType == 2
|
|
|
? "pythonsubmitImage"
|
|
|
: "anshengsubmitImage";
|
|
|
- console.log(hengbangapi, "hengbangapi");
|
|
|
await this.$api.letter[hengbangapi]({
|
|
|
subOrderNo: this.companyId,
|
|
|
}).then((res) => {
|
|
|
@@ -11356,7 +11346,6 @@ export default {
|
|
|
let hengbangapi1 = "";
|
|
|
hengbangapi1 =
|
|
|
this.apiType == 2 ? "pythonaudit" : "anshengaudit";
|
|
|
- console.log(hengbangapi1, "hengbangapi1");
|
|
|
_this.$api.letter[hengbangapi1]({
|
|
|
subOrderNo: this.companyId,
|
|
|
}).then((res) => {
|
|
|
@@ -11751,7 +11740,7 @@ export default {
|
|
|
//投保人同车主
|
|
|
switch (this.tbczcarShow) {
|
|
|
case true:
|
|
|
- this.policyHolderInfo = JSON.parse(JSON.stringify(this.ownerInfo));
|
|
|
+ this.policyHolderInfo = {...this.ownerInfo}
|
|
|
break;
|
|
|
default:
|
|
|
for (let key in this.policyHolderInfo) {
|
|
|
@@ -11769,7 +11758,7 @@ export default {
|
|
|
}
|
|
|
//被保人同车主
|
|
|
if (this.bbczcarShow && !this.bbtbcarShow) {
|
|
|
- this.insuredPersonInfo = JSON.parse(JSON.stringify(this.ownerInfo));
|
|
|
+ this.insuredPersonInfo = {...this.ownerInfo}
|
|
|
this.bbtbcarShow = false
|
|
|
}
|
|
|
// if (!this.bbczcarShow && !this.bbtbcarShow) {
|
|
|
@@ -11803,7 +11792,7 @@ export default {
|
|
|
this.bbczcarShow = false
|
|
|
}
|
|
|
if (this.bbtbcarShow && !this.bbczcarShow) {
|
|
|
- this.insuredPersonInfo = JSON.parse(JSON.stringify(this.policyHolderInfo));
|
|
|
+ this.insuredPersonInfo = {...this.policyHolderInfo}
|
|
|
this.bbczcarShow = false
|
|
|
}
|
|
|
this.$forceUpdate()
|
|
|
@@ -12570,19 +12559,15 @@ export default {
|
|
|
switch (this.userIndex) {
|
|
|
case 2:
|
|
|
// this.selectedOptions1 = addressCode(this.ownerInfoform.addr);
|
|
|
- this.ownerInfo = JSON.parse(JSON.stringify(this.ownerInfoform));
|
|
|
+ this.ownerInfo = {...this.ownerInfoform}
|
|
|
break;
|
|
|
case 3:
|
|
|
// this.selectedOptions2 = addressCode(this.ownerInfoform.addr);
|
|
|
- this.policyHolderInfo = JSON.parse(
|
|
|
- JSON.stringify(this.ownerInfoform)
|
|
|
- );
|
|
|
+ this.policyHolderInfo = {...this.ownerInfoform}
|
|
|
break;
|
|
|
case 4:
|
|
|
// this.selectedOptions3 = addressCode(this.ownerInfoform.addr);
|
|
|
- this.insuredPersonInfo = JSON.parse(
|
|
|
- JSON.stringify(this.ownerInfoform)
|
|
|
- );
|
|
|
+ this.insuredPersonInfo = {...this.ownerInfoform}
|
|
|
break;
|
|
|
}
|
|
|
this.uploaduserdialogVisible = false;
|