|
|
@@ -4435,6 +4435,7 @@ export default {
|
|
|
},
|
|
|
//选择协议 val:协议id row:协议列表 index:下标 item:保险公司数据集合
|
|
|
agreementChange(val, row, index, item) {
|
|
|
+ this.kindListFun()
|
|
|
let obj = {};
|
|
|
obj = row.find(item => {
|
|
|
return item;
|
|
|
@@ -4455,6 +4456,8 @@ export default {
|
|
|
seatNum:item.namesimple=='永诚财险' ||item.namesimple=='中煤财险'? Number(this.carInfo.seatCount):'',
|
|
|
ruleUseNature:this.carInfo.carnature,
|
|
|
ruleSeatNum: Number(this.carInfo.seatCount),
|
|
|
+ risk: this.riskList,
|
|
|
+ kind: this.kindList,
|
|
|
ruleThirdPartyInsurance: this.insureList[1].amount
|
|
|
})
|
|
|
.then(res => {
|
|
|
@@ -4715,6 +4718,7 @@ export default {
|
|
|
//勾选保险公司
|
|
|
initchange(e, code, name, index) {
|
|
|
if (e) {
|
|
|
+ this.kindListFun()
|
|
|
let ins = this.totalCompanyList[index].namesimple;
|
|
|
this.totalCompanyList[index].checked = e;
|
|
|
this.totalCompanyList[
|
|
|
@@ -4728,6 +4732,8 @@ export default {
|
|
|
seatNum:ins=='永诚财险' || ins=='中煤财险'? Number(this.carInfo.seatCount):'',
|
|
|
ruleUseNature:this.carInfo.carnature,
|
|
|
ruleSeatNum: Number(this.carInfo.seatCount),
|
|
|
+ risk: this.riskList,
|
|
|
+ kind: this.kindList,
|
|
|
ruleThirdPartyInsurance: this.insureList[1].amount
|
|
|
})
|
|
|
.then(res => {
|
|
|
@@ -5177,6 +5183,8 @@ export default {
|
|
|
} else {
|
|
|
_this.kindList = [];
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
// if (_this.orderno) {
|
|
|
this.OrderStageProcessing();
|
|
|
// } else {
|
|
|
@@ -5198,6 +5206,90 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ kindListFun(){
|
|
|
+ var _this = this;
|
|
|
+ _this.riskList = []; //险种大类
|
|
|
+ _this.kindList = []; //商业险险别
|
|
|
+ if (
|
|
|
+ (!_this.jqstartDate || !_this.jqendDate) &&
|
|
|
+ (!_this.systartDate || !_this.syendDate)
|
|
|
+ ) {
|
|
|
+ this.$message({ message: "投保日期不能为空", type: "warning" });
|
|
|
+ } else {
|
|
|
+ if (_this.jqchecked) {
|
|
|
+ //交强
|
|
|
+ _this.jqstartDate = this.transformTime(_this.jqstartDate);
|
|
|
+ _this.jqendDate = this.transformTime(_this.jqendDate);
|
|
|
+ _this.riskList.push({
|
|
|
+ amount: "200000",
|
|
|
+ premium: "0",
|
|
|
+ riskCode: "0507",
|
|
|
+ endDate: _this.jqendDate,
|
|
|
+ startDate: _this.jqstartDate,
|
|
|
+ instantFlag: "0"
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (_this.sychecked) {
|
|
|
+ _this.systartDate = this.transformTime(_this.systartDate);
|
|
|
+ _this.syendDate = this.transformTime(_this.syendDate);
|
|
|
+ //商业
|
|
|
+ _this.riskList.push({
|
|
|
+ premium: "0",
|
|
|
+ riskCode: "0510",
|
|
|
+ quotePreceptCode: "",
|
|
|
+ quotePreceptName: "",
|
|
|
+ endDate: _this.syendDate,
|
|
|
+ startDate: _this.systartDate,
|
|
|
+ instantFlag: "0"
|
|
|
+ });
|
|
|
+ _this.insureList.map((ele, index) => {
|
|
|
+ if (
|
|
|
+ ele.amount != "0" &&
|
|
|
+ (ele.kindCode == "D4" || ele.kindCode == "SY_FJ_YBW2")
|
|
|
+ ) {
|
|
|
+ _this.kindList.push({
|
|
|
+ unitAmount: _this.insureList[index].amount,
|
|
|
+ kindCode: _this.insureList[index].kindCode,
|
|
|
+ kindName: _this.insureList[index].kindName
|
|
|
+ });
|
|
|
+ } else if (
|
|
|
+ ele.amount != "0" &&
|
|
|
+ (ele.kindCode == "MJ1" ||
|
|
|
+ ele.kindCode == "MJ2" ||
|
|
|
+ ele.kindCode == "MJ3" ||
|
|
|
+ ele.kindCode == "MJ4")
|
|
|
+ ) {
|
|
|
+ _this.kindList.push({
|
|
|
+ deductibleRate: _this.insureList[index].amount,
|
|
|
+ kindCode: _this.insureList[index].kindCode,
|
|
|
+ kindName: _this.insureList[index].kindName
|
|
|
+ });
|
|
|
+ } else if (
|
|
|
+ ele.amount != "0" &&
|
|
|
+ (ele.kindCode == "TY1" ||
|
|
|
+ ele.kindCode == "TY2" ||
|
|
|
+ ele.kindCode == "TY3" ||
|
|
|
+ ele.kindCode == "TY4")
|
|
|
+ ) {
|
|
|
+ _this.kindList.push({
|
|
|
+ serviceTimes: _this.insureList[index].amount,
|
|
|
+ kindCode: _this.insureList[index].kindCode,
|
|
|
+ kindName: _this.insureList[index].kindName
|
|
|
+ });
|
|
|
+ } else if (ele.amount != "0") {
|
|
|
+ _this.kindList.push({
|
|
|
+ amount: _this.insureList[index].amount,
|
|
|
+ kindCode: _this.insureList[index].kindCode,
|
|
|
+ kindName: _this.insureList[index].kindName
|
|
|
+ });
|
|
|
+ }
|
|
|
+ return ele;
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ _this.kindList = [];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
//动态函数
|
|
|
ToolClickFun(MethodName, Parameter, companyId, companyName) {
|
|
|
this[`${MethodName}`](Parameter, companyId, companyName);
|