|
|
@@ -151,7 +151,7 @@
|
|
|
<el-row style="flex-wrap: wrap; display: flex;">
|
|
|
<el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell">
|
|
|
<el-form-item label="车牌:" :prop="licenseplate ? 'licenseNo' : ''">
|
|
|
- <el-input v-model="carInfo.licenseNo" placeholder="请输入车牌号" :disabled="!licenseplate"></el-input>
|
|
|
+ <el-input v-model="carInfo.licenseNo" placeholder="请输入车牌号" :disabled="!licenseplate" @change="licenseNoFun"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell">
|
|
|
@@ -222,7 +222,7 @@
|
|
|
</el-col>
|
|
|
<el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell">
|
|
|
<el-form-item label="排量:" prop="enginedesc">
|
|
|
- <el-input v-model="carInfo.enginedesc" placeholder="请输入排量">
|
|
|
+ <el-input v-model="carInfo.enginedesc" placeholder="请输入排量" @change="enginedescFun">
|
|
|
<el-button slot="append">升(L)</el-button>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
@@ -1359,9 +1359,10 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-if="reslistitem.checked" class="dis a-c Driving-risk" style="margin-top:10px;">
|
|
|
- <h4>报价协议选择:</h4>
|
|
|
+ <h4 v-if="!reslistitem.isTaxSource &&reslistitem.isTaxSource!=='1' ">报价协议选择:</h4>
|
|
|
<el-select
|
|
|
size="small"
|
|
|
+ v-if="!reslistitem.isTaxSource && reslistitem.isTaxSource!=='1'"
|
|
|
v-model="reslistitem.agreementId"
|
|
|
placeholder="请选择协议"
|
|
|
style="width: 200px;"
|
|
|
@@ -4765,7 +4766,7 @@ export default {
|
|
|
},
|
|
|
deep: true
|
|
|
},
|
|
|
- "carInfo.engineNo": {
|
|
|
+ "carInfo.engineNo": {
|
|
|
handler(val) {
|
|
|
if (val) {
|
|
|
this.carInfo.engineNo = val.toUpperCase();
|
|
|
@@ -4803,7 +4804,7 @@ export default {
|
|
|
import("element-ui/packages/image/src/image-viewer")
|
|
|
},
|
|
|
created() {
|
|
|
- this.commpanyList(); //获取保险公司
|
|
|
+ // this.commpanyList(); //获取保险公司
|
|
|
this.getDicType("taxRelifFlag");//车船税类型
|
|
|
this.getDicType("taxpayerIdentifier");//纳税人证件类型
|
|
|
this.getDicType("relifReason");//减免税原因代码
|
|
|
@@ -4870,6 +4871,7 @@ export default {
|
|
|
_this.ownerInfo.age = getAgeByIdCard(_this.ownerInfo.identifyNumber)
|
|
|
_this.policyHolderInfo.age = getAgeByIdCard(_this.policyHolderInfo.identifyNumber)
|
|
|
_this.insuredPersonInfo.age = getAgeByIdCard(_this.insuredPersonInfo.identifyNumber)
|
|
|
+ this.obtainProtocol()
|
|
|
// const ownerInfoObject = {
|
|
|
// province: _this.ownerInfo.province,
|
|
|
// city: _this.ownerInfo.city,
|
|
|
@@ -4979,6 +4981,16 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ licenseNoFun(data){
|
|
|
+ if(data && this.carInfo.enginedesc){
|
|
|
+ this.obtainProtocol()
|
|
|
+ }
|
|
|
+ },
|
|
|
+ enginedescFun(data){
|
|
|
+ if(data && this.carInfo.licenseNo){
|
|
|
+ this.obtainProtocol()
|
|
|
+ }
|
|
|
+ },
|
|
|
packageChange(val){
|
|
|
let arr=this.packageOptions.find(ele=>ele.id==val).kind
|
|
|
if(arr.length>0){
|
|
|
@@ -5491,6 +5503,46 @@ else{
|
|
|
this.HistoryList = res.data;
|
|
|
});
|
|
|
},
|
|
|
+ obtainProtocol(){
|
|
|
+ this.$api.letter.getAllAgreement({ license:this.carInfo.licenseNo,volume:this.carInfo.enginedesc }).then(res => {
|
|
|
+ if(res.code==200){
|
|
|
+ res.data.map(ele => {
|
|
|
+ ele["result"] = {};
|
|
|
+ ele["quoteCode"] = 0;
|
|
|
+ ele["checked"] = false;
|
|
|
+ ele["msg"] = "";
|
|
|
+ ele["lastYearMsg"] = "";
|
|
|
+ ele["agreementId"] = "";
|
|
|
+ ele["apiType"] = "";
|
|
|
+ ele["orderstatus"] = 0;
|
|
|
+ ele.coefficient=''
|
|
|
+ // ele.agreementId = ele.agreement[0].id;
|
|
|
+ // ele.apiType = ele.agreement[0].apiType;
|
|
|
+ ele.underwritingDescription = ele.agreement[0].underwritingDescription
|
|
|
+ if(ele.isTaxSource && ele.isTaxSource=='1'){
|
|
|
+ ele.agreement.forEach(val=>{
|
|
|
+ if(val.isTaxSource && val.isTaxSource=='1'){
|
|
|
+ ele.agreementId = val.id;
|
|
|
+ ele.apiType = val.apiType;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if(this.$route.query.data){
|
|
|
+ res.data.forEach((val,index)=>{
|
|
|
+ this.$route.query.data.insAreaCompanyEditingDtos.forEach(ele=>{
|
|
|
+ if(val.namesimple==ele.inscompany){
|
|
|
+ res.data[index].quoteCode=200
|
|
|
+ res.data[index].result=ele
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ console.log(res.data,111111111111111)
|
|
|
+ this.totalCompanyList = res.data;
|
|
|
+ })
|
|
|
+ },
|
|
|
//获取保险公司列表
|
|
|
commpanyList() {
|
|
|
this.$api.letter.gainAllowQuoteList('').then(res => {
|
|
|
@@ -5504,7 +5556,7 @@ else{
|
|
|
ele["apiType"] = "";
|
|
|
ele["orderstatus"] = 0;
|
|
|
ele.coefficient=''
|
|
|
- ele.agreementId = ele.agreement[0].id;
|
|
|
+ // ele.agreementId = ele.agreement[0].id;
|
|
|
ele.apiType = ele.agreement[0].apiType;
|
|
|
ele.underwritingDescription = ele.agreement[0].underwritingDescription
|
|
|
});
|
|
|
@@ -5698,17 +5750,19 @@ else{
|
|
|
hideInput(){
|
|
|
this.currentCell = null;
|
|
|
},
|
|
|
+
|
|
|
//勾选保险公司
|
|
|
initchange(e, code, name, index) {
|
|
|
+ console.log( this.totalCompanyList[index] ,e,1111111111111)
|
|
|
if(e){
|
|
|
let ins = this.totalCompanyList[index].namesimple;
|
|
|
- this.totalCompanyList[index].agreementId = "";
|
|
|
+ // this.totalCompanyList[index].agreementId = "";
|
|
|
this.totalCompanyList[index].checked = e;
|
|
|
- this.totalCompanyList[index].agreementId = this.totalCompanyList[index].agreement[0].id;
|
|
|
+ // this.totalCompanyList[index].agreementId = this.totalCompanyList[index].agreement[0].id;
|
|
|
this.totalCompanyList[index].underwritingDescription = this.totalCompanyList[index].agreement[0].underwritingDescription;
|
|
|
- if (this.carInfo.licenseNo.slice(0, 2) != '晋A' && ins == '中煤财险') {
|
|
|
- this.totalCompanyList[0].agreementId = this.totalCompanyList[0].agreement[1].id;
|
|
|
- }
|
|
|
+ // if (this.carInfo.licenseNo.slice(0, 2) != '晋A' && ins == '中煤财险') {
|
|
|
+ // this.totalCompanyList[0].agreementId = this.totalCompanyList[0].agreement[1].id;
|
|
|
+ // }
|
|
|
switch (ins) {
|
|
|
case '永诚财险':
|
|
|
this.accidentForm.agreementId = this.totalCompanyList[index].agreement[0].id;
|
|
|
@@ -5783,7 +5837,7 @@ else{
|
|
|
}
|
|
|
});
|
|
|
break;
|
|
|
- case '大家财险':gufgaaobbmzjbgsiebnmmmmmmduyvbgzol
|
|
|
+ case '大家财险':
|
|
|
this.$api.letter.dajiagetDriving({ agreementId: this.totalCompanyList[index].agreement[0].id }).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.dajiaInsuranceData = res.data;
|
|
|
@@ -7564,7 +7618,6 @@ else{
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
-
|
|
|
//当前日期的次日
|
|
|
transformTime1() {
|
|
|
var date = new Date();
|
|
|
@@ -8635,7 +8688,8 @@ else{
|
|
|
this.jqendDate = this.oneYearPast1(this.jqstartDate);
|
|
|
this.systartDate = this.transformTime1();
|
|
|
this.syendDate = this.oneYearPast1(this.jqstartDate);
|
|
|
- this.commpanyList(); // 获取保险公司
|
|
|
+ // this.commpanyList(); // 获取保险公司
|
|
|
+ // this.obtainProtocol()
|
|
|
|
|
|
},
|
|
|
toChinesNum(num) {
|