|
|
@@ -1107,7 +1107,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div
|
|
|
-
|
|
|
+
|
|
|
class="flex a-c more-data back"
|
|
|
v-for="(insureitem, insureindex) in insureList"
|
|
|
:key="insureindex"
|
|
|
@@ -1467,7 +1467,7 @@
|
|
|
:min="1"
|
|
|
></el-input-number>
|
|
|
<span style="margin-left: 5px;">份</span>
|
|
|
- </el-form-item>
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
|
<el-table
|
|
|
v-if="accidentFormHN.accidentType"
|
|
|
@@ -1484,7 +1484,7 @@
|
|
|
<el-input v-model="scope.row.unitAmount" placeholder="请输入内容" size="small" disabled></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- </el-table>
|
|
|
+ </el-table>
|
|
|
</div>
|
|
|
</template>
|
|
|
<template
|
|
|
@@ -1997,7 +1997,7 @@
|
|
|
<el-radio :label="item.dictValue">{{item.dictTag}}</el-radio>
|
|
|
</el-radio-group>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="padding:20px;">
|
|
|
@@ -2626,7 +2626,7 @@
|
|
|
ref="qrcode">
|
|
|
</div>
|
|
|
<img v-show="['恒邦财险','安盛天平','国任财险'].includes(inscompany)" :src="paycodeimg" alt style="width:100%" />-->
|
|
|
- <img v-if="['太平财险'].includes(inscompany)" :src="paycodeimg" alt="" style="width:100%">
|
|
|
+ <img v-if="['太平财险'].includes(inscompany)" :src="paycodeimg" alt="" style="width:100%">
|
|
|
<div v-else id="qrcode" ref="qrcode"></div>
|
|
|
|
|
|
</div>
|
|
|
@@ -4788,7 +4788,7 @@ export default {
|
|
|
},
|
|
|
deep: true
|
|
|
},
|
|
|
- "carInfo.engineNo": {
|
|
|
+ "carInfo.engineNo": {
|
|
|
handler(val) {
|
|
|
if (val) {
|
|
|
this.carInfo.engineNo = val.toUpperCase();
|
|
|
@@ -4838,14 +4838,14 @@ export default {
|
|
|
this.getDicType("businessVehicleUse");//(车辆用途)营业
|
|
|
this.getDicType("outOfBusinessVehicleUse");//(车辆用途)非营业
|
|
|
this.getDicType("insOrderStatus");//状态
|
|
|
-
|
|
|
+
|
|
|
this.$api.letter.queryCompany().then(res => {
|
|
|
this.continuousCompanyList = res.data;
|
|
|
});
|
|
|
this.$api.letter.packageQuery().then(res => {
|
|
|
this.packageOptions = res.data;
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
localStorage.setItem('carInfo', JSON.stringify(this.carInfo))
|
|
|
localStorage.setItem('insureList', JSON.stringify(this.insureList))
|
|
|
//--归属信息获取--
|
|
|
@@ -5033,7 +5033,7 @@ export default {
|
|
|
case "TY2":
|
|
|
case "TY3":
|
|
|
case "TY4":
|
|
|
- eleA.amount = eleB.serviceTimes;
|
|
|
+ eleA.amount = eleB.serviceTimes;
|
|
|
break;
|
|
|
default:
|
|
|
eleA.amount = JSON.stringify(eleB.amount);
|
|
|
@@ -5101,12 +5101,12 @@ else{
|
|
|
data
|
|
|
);
|
|
|
this.accidentFormZM.quantity='1'
|
|
|
- this.accidentFormZM.maxQuantity=Number(data.maxQuantity)
|
|
|
+ this.accidentFormZM.maxQuantity=Number(data.maxQuantity)
|
|
|
if(data&&data.accAmountView){
|
|
|
this.accidentPremiumZM=data.unitPremium
|
|
|
this.zhongmeiInsuranceDataDetail=data.accAmountView;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
// 截图粘贴
|
|
|
copybjd(){
|
|
|
@@ -5122,13 +5122,13 @@ else{
|
|
|
const saveInfo = {
|
|
|
download: date.getTime() + `.png`,
|
|
|
href: base64Data,
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
const element = document.createElement('a')
|
|
|
element.style.display = 'none'
|
|
|
for (const key in saveInfo) {
|
|
|
element.setAttribute(key, saveInfo[key])
|
|
|
- }
|
|
|
+ }
|
|
|
document.body.appendChild(element)
|
|
|
element.click()
|
|
|
setTimeout(() => {
|
|
|
@@ -5331,7 +5331,7 @@ else{
|
|
|
},
|
|
|
huanongInsuranceChange(index){
|
|
|
this.HNInsuranceData=(this.huanongInsuranceData).find(val=>val.planCode==index).planSubInfo[0].riskInfo
|
|
|
-
|
|
|
+
|
|
|
this.huanongaccidentalDrivingVo= Object.assign(
|
|
|
this.accidentFormHN,
|
|
|
this.huanongInsuranceData.find(val=>val.planCode==index)
|
|
|
@@ -5452,7 +5452,7 @@ else{
|
|
|
numberCopieschange(index) {
|
|
|
this.accidentForm.premium = Number(this.accidentPremium) * index;
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
numberCopieschangeGr(index) {
|
|
|
this.guoRenaccidentForm.premium = Number(this.accidentPremiumGr) * index;
|
|
|
},
|
|
|
@@ -5676,7 +5676,7 @@ else{
|
|
|
return val;
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
//太平驾意险选择
|
|
|
TPDrivingChange(row){
|
|
|
this.taipingaccidentalDrivingVo=row;
|
|
|
@@ -5685,7 +5685,7 @@ else{
|
|
|
HBDrivingChange(row){
|
|
|
this.hengbangaccidentalDrivingVo=row;
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
//人寿驾意险选择
|
|
|
RSDrivingChange(row){
|
|
|
this.renshouaccidentalDrivingVo=row;
|
|
|
@@ -5771,7 +5771,7 @@ else{
|
|
|
hideInput(){
|
|
|
this.currentCell = null;
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
//勾选保险公司
|
|
|
initchange(e, code, name, index) {
|
|
|
console.log( this.totalCompanyList[index] ,e,1111111111111)
|
|
|
@@ -6092,7 +6092,7 @@ else{
|
|
|
kindCode: _this.insureList[index].kindCode,
|
|
|
kindName: _this.insureList[index].kindName
|
|
|
});
|
|
|
- }
|
|
|
+ }
|
|
|
else if (
|
|
|
ele.amount != "0" &&
|
|
|
(ele.kindCode == "MJ1" ||
|
|
|
@@ -6105,7 +6105,7 @@ else{
|
|
|
kindCode: _this.insureList[index].kindCode,
|
|
|
kindName: _this.insureList[index].kindName
|
|
|
});
|
|
|
- }
|
|
|
+ }
|
|
|
else if (
|
|
|
ele.amount != "0" &&
|
|
|
(ele.kindCode == "TY1" ||
|
|
|
@@ -6118,14 +6118,14 @@ else{
|
|
|
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 {
|
|
|
@@ -6176,7 +6176,7 @@ else{
|
|
|
this.$notify.info({
|
|
|
title: Name,
|
|
|
dangerouslyUseHTMLString: true,
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning',
|
|
|
message: Msg,
|
|
|
customClass: "customNotifyClass",
|
|
|
duration: 7000,
|
|
|
@@ -6211,7 +6211,7 @@ else{
|
|
|
this.imageList4[1].imageType = "D04";
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//日期长度<10处理
|
|
|
const formatDate = (date) => {
|
|
|
if (date.length < 10) {
|
|
|
@@ -6278,7 +6278,7 @@ else{
|
|
|
this.ToolClickFun(ele.cnName, index, ele.id, ele.namesimple);
|
|
|
}
|
|
|
});
|
|
|
- }
|
|
|
+ }
|
|
|
else if(res.code==1001){
|
|
|
this.$confirm('是否生成新订单?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
@@ -6403,7 +6403,7 @@ else{
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
//中煤报价
|
|
|
zhongmei(num, id) {
|
|
|
let accidentalDrivingVo={};
|
|
|
@@ -7082,7 +7082,7 @@ else{
|
|
|
})
|
|
|
this.imgList3.push(res.data[keys]);
|
|
|
break;
|
|
|
-
|
|
|
+
|
|
|
case 'D02':
|
|
|
this.imageList2.push({
|
|
|
imageId: res.data[keys].imageId,
|
|
|
@@ -8733,48 +8733,9 @@ else{
|
|
|
|
|
|
},
|
|
|
toChinesNum(num) {
|
|
|
- let changeNum = [
|
|
|
- "零", "1", "2", "3", "4", "5", "6", "7", "8", "9"
|
|
|
- ];
|
|
|
- let unit = ["", "0", "00", "000", "0000"];
|
|
|
- num = parseInt(num);
|
|
|
- let getWan = temp => {
|
|
|
- let strArr = temp
|
|
|
- .toString()
|
|
|
- .split("")
|
|
|
- .reverse();
|
|
|
- let newNum = "";
|
|
|
- let newArr = [];
|
|
|
- strArr.forEach((item, index) => {
|
|
|
- newArr.unshift(
|
|
|
- item === "0" ? changeNum[item] : changeNum[item] + unit[index]
|
|
|
- );
|
|
|
- });
|
|
|
- let numArr = [];
|
|
|
- newArr.forEach((m, n) => {
|
|
|
- if (m !== "零") numArr.push(n);
|
|
|
- });
|
|
|
- if (newArr.length > 1) {
|
|
|
- newArr.forEach((m, n) => {
|
|
|
- if (newArr[newArr.length - 1] === "零") {
|
|
|
- if (n <= numArr[numArr.length - 1]) {
|
|
|
- newNum += m;
|
|
|
- }
|
|
|
- } else {
|
|
|
- newNum += m;
|
|
|
- }
|
|
|
- });
|
|
|
- } else {
|
|
|
- newNum = newArr[0];
|
|
|
- }
|
|
|
- return newNum;
|
|
|
- };
|
|
|
let overWan = Math.floor(num / 10000);
|
|
|
- let noWan = num % 10000;
|
|
|
- if (noWan.toString().length < 4) {
|
|
|
- noWan = "0" + noWan;
|
|
|
- }
|
|
|
- return overWan ? getWan(overWan) + "万" + getWan(noWan) : getWan(num);
|
|
|
+ let result = overWan + "万";
|
|
|
+ return result;
|
|
|
},
|
|
|
reportDrop(event) {
|
|
|
event.preventDefault();
|