|
|
@@ -11,7 +11,7 @@
|
|
|
<span>{{ scope.row.username }}({{ scope.row.userid }})</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="managementSource" label="机构来源" align="center" ></el-table-column>
|
|
|
+ <el-table-column prop="managementSource" label="机构来源" align="center"></el-table-column>
|
|
|
<el-table-column prop="insCompany" label="承保公司" width="180" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.insCompany ? scope.row.insCompany : '--' }}</span>
|
|
|
@@ -43,15 +43,8 @@
|
|
|
layout="total, sizes, prev, pager, next, jumper" :total="totalSize"></el-pagination>
|
|
|
</div>
|
|
|
<!-- 车辆报价新页面 -->
|
|
|
- <detailsDialog ref="detailsDialog" :orderInfo="orderInfo" :isAuditing="isAuditing">
|
|
|
- <span slot="footer1">
|
|
|
- <el-button size="small" type="warning" v-if="adjustFeeFlag" @click="updatedCost">更改费用</el-button>
|
|
|
- <el-button size="small" type="primary" style="background-color: #0EC216; border: 1px solid #0EC216;"
|
|
|
- @click="adjustFee"><span v-if="adjustFeeFlag">取消调整</span><span v-if="!adjustFeeFlag">调整费用</span></el-button>
|
|
|
- <el-button size="small" type="primary"
|
|
|
- style="background-color: #0EC216; border: 1px solid #0EC216;margin-right: 30px;"
|
|
|
- @click="adusitFUn">审核通过</el-button>
|
|
|
- </span>
|
|
|
+ <detailsDialog ref="detailsDialog" :orderInfo="orderInfo" :feeOrderNewVoList="feeOrderNewVoList"
|
|
|
+ @updatedCost="updatedCost">
|
|
|
</detailsDialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -60,7 +53,7 @@
|
|
|
import retrievalForm from "@/components/Form/retrievalForm.vue";
|
|
|
import Cookies from "js-cookie";
|
|
|
import KtButton from "@/views/Core/KtButton";//按钮权限组件
|
|
|
-import detailsDialog from "@/views/Core/components/detailsDialog.vue";
|
|
|
+import detailsDialog from "@/views/Core/components/detailsDialogPro.vue";
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
@@ -70,8 +63,8 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- isAuditing:{},
|
|
|
- feeOrderNewVo: [], //费用明细
|
|
|
+ feeOrderNewVoList: {},
|
|
|
+ isAuditing: {},
|
|
|
oldFeeInfo: [],//原始跟单费用比例
|
|
|
adjustFeeDescInfo: {},//调整费用时使用对象
|
|
|
adjustFeeFlag: false,
|
|
|
@@ -237,6 +230,19 @@ export default {
|
|
|
insAreaCompanyList: [],//子订单list
|
|
|
companyList: [], //保险公司
|
|
|
oldVersionHistory: [],
|
|
|
+ natureOfVehicleUseoptions: [],
|
|
|
+ businessVehicleUseoptions: [],
|
|
|
+ outOfBusinessVehicleUseoptions: [],
|
|
|
+ vehicleTypeoptions: [],
|
|
|
+ trafficManagementVehicleTypeoptions: [],
|
|
|
+ energyTypeoptions: [],
|
|
|
+
|
|
|
+ carImageList: [], //车辆影像
|
|
|
+ ownerImageList: [], //车主影像
|
|
|
+ policyImageList: [], //投保人影像
|
|
|
+ insuredImageList: [], //被保人影像
|
|
|
+ carCheckImageList: [], //验车照影像
|
|
|
+ oldfileList: [], //电子保单数据
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
@@ -244,7 +250,17 @@ export default {
|
|
|
this.areaqueryList(1, 99, "provinceId");
|
|
|
this.CompanyList();
|
|
|
this.agrmentlist();
|
|
|
- this.getDicType("productsType");
|
|
|
+ this.$api.insCompany.dicType('productsType').then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.selectDataMatching(this.retrievalFields, 'riskCode', res.data.ddList);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.getDicType("natureOfVehicleUse");//车辆使用性质
|
|
|
+ this.getDicType("businessVehicleUse"); //(车辆用途)营业
|
|
|
+ this.getDicType("outOfBusinessVehicleUse"); //(车辆用途)非营业
|
|
|
+ this.getDicType("vehicleType"); //车辆种类
|
|
|
+ this.getDicType("trafficManagementVehicleType"); //车辆类型
|
|
|
+ this.getDicType("energyType"); //能源种类
|
|
|
},
|
|
|
mounted() {
|
|
|
window.addEventListener('resize', this.getDimensions);
|
|
|
@@ -253,8 +269,8 @@ export default {
|
|
|
window.removeEventListener('resize', this.getDimensions);
|
|
|
},
|
|
|
methods: {
|
|
|
- //获取机构数据
|
|
|
- areaqueryList(level, parentId, filed) {
|
|
|
+ //获取机构数据
|
|
|
+ areaqueryList(level, parentId, filed) {
|
|
|
this.$api.task.queryListByParentId(level, parentId).then((res) => {
|
|
|
this.selectDataMatching(this.retrievalFields, filed, res.data);
|
|
|
});
|
|
|
@@ -272,12 +288,12 @@ export default {
|
|
|
getDicType(type) {
|
|
|
this.$api.insCompany.dicType(type).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
- this.selectDataMatching(this.retrievalFields, 'riskCode', res.data.ddList);
|
|
|
+ this[type + 'options'] = res.data.ddList;
|
|
|
}
|
|
|
- });
|
|
|
+ })
|
|
|
},
|
|
|
- //下拉数据匹配
|
|
|
- selectDataMatching(files, name, data) {
|
|
|
+ //下拉数据匹配
|
|
|
+ selectDataMatching(files, name, data) {
|
|
|
files.forEach(filed => {
|
|
|
if (filed.name == name) {
|
|
|
filed.options = data;
|
|
|
@@ -299,8 +315,8 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
handleFormSubmit(data) {
|
|
|
- this.pageRequest.pageNum=1;
|
|
|
- this.pageRequest.pageSize=20;
|
|
|
+ this.pageRequest.pageNum = 1;
|
|
|
+ this.pageRequest.pageSize = 20;
|
|
|
let obj = Object.assign(this.pageRequest, data)
|
|
|
this.pageRequest = obj;
|
|
|
this.findPage();
|
|
|
@@ -311,62 +327,41 @@ export default {
|
|
|
return val;
|
|
|
})
|
|
|
},
|
|
|
- updatedCost() {
|
|
|
+ updatedCost(data) {
|
|
|
+ let list = JSON.parse(JSON.stringify(data));
|
|
|
+ console.log(list)
|
|
|
const exportFee = [];
|
|
|
const entranceFee = [];
|
|
|
- this.feeOrderNewVo.forEach(item => {
|
|
|
- const entranceItem = {
|
|
|
- exportSuperviseCosts: item.exportSuperviseCosts,
|
|
|
- insuranceType: item.insuranceType,
|
|
|
- otherCostsPremiums: item.otherCostsPremiums,
|
|
|
- otherCostsProportion: item.otherCostsProportion,
|
|
|
- premium: item.premium,
|
|
|
- superviseCosts: item.superviseCosts,
|
|
|
- sySuperviseCostsPremiums: item.sySuperviseCostsPremiums,
|
|
|
- totalAmount: item.totalAmount,
|
|
|
- totalProportion: item.totalProportion,
|
|
|
- };
|
|
|
- const exportItem = {
|
|
|
- insuranceType: item.exportInsuranceType,
|
|
|
- otherCostsPremiums: item.exportOtherCostsPremiums,
|
|
|
- otherCostsProportion: item.exportOtherCostsProportion,
|
|
|
- superviseCosts: item.exportSuperviseCosts,
|
|
|
- superviseCostsPremiums: item.exportSuperviseCostsPremiums,
|
|
|
- totalAmount: item.exportTotalAmount,
|
|
|
- totalProportion: item.exportTotalProportion
|
|
|
- };
|
|
|
- entranceFee.push(entranceItem);
|
|
|
- exportFee.push(exportItem);
|
|
|
+ list.feeOrder.forEach((item, index) => {
|
|
|
+ if (index < 3) entranceFee.push(item);
|
|
|
+ else exportFee.push(item);
|
|
|
});
|
|
|
let params = {
|
|
|
feeId: this.oldVersionHistory.feeId,
|
|
|
feeOrderNewVoOld: this.oldVersionHistory,
|
|
|
feeOrderNewVoNew: {
|
|
|
- deptManagerFee: this.orderInfo.feeOrderNewVo.deptManagerFee,
|
|
|
+ deptManagerFee: list.deptManagerFee,
|
|
|
entranceFee: entranceFee,
|
|
|
exportFee: exportFee,
|
|
|
}
|
|
|
}
|
|
|
this.$api.task.costsadjust(params).then((res) => {
|
|
|
if (res.code == '200') {
|
|
|
- let data=res.data;
|
|
|
- let list=[];
|
|
|
- this.orderInfo.feeOrderNewVo.deptManagerFee =data.deptManagerFee;
|
|
|
- data.exportFee.forEach((val, index) => {
|
|
|
- list.push({
|
|
|
- exportInsuranceType: val.insuranceType,
|
|
|
- exportOtherCostsPremiums: val.otherCostsPremiums,
|
|
|
- exportOtherCostsProportion: val.otherCostsProportion,
|
|
|
- exportSuperviseCosts: val.superviseCosts,
|
|
|
- exportSuperviseCostsPremiums: val.superviseCostsPremiums,
|
|
|
- exportTotalAmount: val.totalAmount,
|
|
|
- exportTotalProportion: val.totalProportion,
|
|
|
- ...data.entranceFee[index]
|
|
|
- })
|
|
|
+ let data = res.data;
|
|
|
+ let list = [];
|
|
|
+ data.exportFee.map((val, index) => {
|
|
|
+ val.type = "出口费用"
|
|
|
+ return val;
|
|
|
+ })
|
|
|
+ data.entranceFee.map((val, index) => {
|
|
|
+ val.type = "入口费用"
|
|
|
+ return val;
|
|
|
})
|
|
|
- this.feeOrderNewVo=list;
|
|
|
- this.isAuditing.adjustFeeFlag=false
|
|
|
- this.adjustFeeFlag=false;
|
|
|
+ console.log(data)
|
|
|
+ this.feeOrderNewVoList = {
|
|
|
+ deptManagerFee: data.deptManagerFee,
|
|
|
+ list: [...data.entranceFee,...data.exportFee],
|
|
|
+ }
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
|
message: res.msg,
|
|
|
@@ -382,17 +377,6 @@ export default {
|
|
|
closeDialog() {
|
|
|
this.adjustFeeFlag = false;
|
|
|
},
|
|
|
- //调整费用
|
|
|
- adjustFee() {
|
|
|
- // this.$refs.detailsDialog.setBackupVisible(false);
|
|
|
-
|
|
|
- this.isAuditing.adjustFeeFlag=!this.adjustFeeFlag
|
|
|
- this.adjustFeeFlag = !this.adjustFeeFlag;
|
|
|
- if (!this.adjustFeeFlag) {
|
|
|
- //取消调整时,值置为原始比例
|
|
|
- this.adjustFeeDescInfo = { ...this.oldFeeInfo }
|
|
|
- }
|
|
|
- },
|
|
|
//审核通过
|
|
|
adusitFUn() {
|
|
|
let subParam = {
|
|
|
@@ -468,12 +452,85 @@ export default {
|
|
|
getDimensions() {
|
|
|
this.width = document.documentElement.clientWidth - 350 + 'px';
|
|
|
},
|
|
|
+ //使用性质
|
|
|
+ natureOfVehicleUseCap(ele) {
|
|
|
+ if (this.natureOfVehicleUseoptions.find(item => item.dictValue == ele)) {
|
|
|
+ return this.natureOfVehicleUseoptions.find((item) => {
|
|
|
+ return item.dictValue === ele;
|
|
|
+ }).dictTag;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ return ''
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //车辆类型
|
|
|
+ trafficManagementVehicleTypeCap(ele) {
|
|
|
+ if (this.trafficManagementVehicleTypeoptions.find(item => item.dictValue == ele)) {
|
|
|
+ return this.trafficManagementVehicleTypeoptions.find((item) => {
|
|
|
+ return item.dictValue === ele;
|
|
|
+ }).dictTag;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ return ''
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //车辆种类
|
|
|
+ vehicleTypeCap(ele) {
|
|
|
+ if (this.vehicleTypeoptions.find(item => item.dictValue == ele)) {
|
|
|
+ return this.vehicleTypeoptions.find((item) => {
|
|
|
+ return item.dictValue === ele;
|
|
|
+ }).dictTag;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ return ''
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //能源种类
|
|
|
+ energyTypeCap(ele) {
|
|
|
+ if (this.energyTypeoptions.find(item => item.dictValue == ele)) {
|
|
|
+ return this.energyTypeoptions.find((item) => {
|
|
|
+ return item.dictValue === ele;
|
|
|
+ }).dictTag;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ return ''
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //车辆用途
|
|
|
+ outOfBusinessVehicleUseCap(type, ele) {
|
|
|
+ switch (type) {
|
|
|
+ case '非营业':
|
|
|
+ if (this.outOfBusinessVehicleUseoptions.find(item => item.dictValue == ele)) {
|
|
|
+ return this.outOfBusinessVehicleUseoptions.find((item) => {
|
|
|
+ return item.dictValue === ele;
|
|
|
+ }).dictTag;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ return ''
|
|
|
+ }
|
|
|
+ case '营业':
|
|
|
+ if (this.businessVehicleUseoptions.find(item => item.dictValue == ele)) {
|
|
|
+ return this.businessVehicleUseoptions.find((item) => {
|
|
|
+ return item.dictValue === ele;
|
|
|
+ }).dictTag;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ return ''
|
|
|
+ }
|
|
|
+ default:
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
//应用详情
|
|
|
OrderDetails(dy) {
|
|
|
+ this.carImageList = [];
|
|
|
+ this.ownerImageList = []; //车主影像
|
|
|
+ this.policyImageList = []; //投保人影像
|
|
|
+ this.insuredImageList = []; //被保人影像
|
|
|
+ this.carCheckImageList = []; //验车照影像
|
|
|
let params = {
|
|
|
orderNo: dy.orderno,
|
|
|
}
|
|
|
- this.feeOrderNewVo = []
|
|
|
this.$api.task.feeDetail(params).then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
res.data.kindinfo.map((ele, index) => {
|
|
|
@@ -496,31 +553,704 @@ export default {
|
|
|
}
|
|
|
return ele;
|
|
|
});
|
|
|
+ // 获取影像
|
|
|
+ this.$api.letter.findByQuoteNo(dy.quoteno).then((resImage) => {
|
|
|
+ Object.keys(resImage.data).forEach((keys) => {
|
|
|
+ if (resImage.data[keys]) {
|
|
|
+ resImage.data[keys].url = resImage.data[keys].url
|
|
|
+ ? process.env.BASE_URL + resImage.data[keys].url
|
|
|
+ : null;
|
|
|
+ switch (keys) {
|
|
|
+ case "C01":
|
|
|
+ case "D01":
|
|
|
+ resImage.data[keys].url
|
|
|
+ ? this.carImageList.push(resImage.data[keys].url)
|
|
|
+ : "";
|
|
|
+ break;
|
|
|
+ case "C02":
|
|
|
+ case "D02":
|
|
|
+ resImage.data[keys].url
|
|
|
+ ? this.ownerImageList.push(resImage.data[keys].url)
|
|
|
+ : "";
|
|
|
+ break;
|
|
|
+ case "C03":
|
|
|
+ case "D03":
|
|
|
+ resImage.data[keys].url
|
|
|
+ ? this.policyImageList.push(resImage.data[keys].url)
|
|
|
+ : "";
|
|
|
+ break;
|
|
|
+ case "C04":
|
|
|
+ case "D04":
|
|
|
+ resImage.data[keys].url
|
|
|
+ ? this.insuredImageList.push(resImage.data[keys].url)
|
|
|
+ : "";
|
|
|
+ break;
|
|
|
+ case "XC00":
|
|
|
+ case "GC00":
|
|
|
+ case "GX00":
|
|
|
+ resImage.data[keys].url
|
|
|
+ ? this.carCheckImageList.push(resImage.data[keys].url)
|
|
|
+ : "";
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ let obj = {
|
|
|
+ carImageList: this.carImageList,
|
|
|
+ ownerImageList: this.ownerImageList,
|
|
|
+ policyImageList: this.policyImageList,
|
|
|
+ insuredImageList: this.insuredImageList,
|
|
|
+ carCheckImageList: this.carCheckImageList
|
|
|
+ }
|
|
|
+ this.$refs.detailsDialog.imageFun(obj);
|
|
|
+ });
|
|
|
if (res.data.feeOrderNewVo && res.data.feeOrderNewVo.exportFee && res.data.feeOrderNewVo.entranceFee) {
|
|
|
- res.data.feeOrderNewVo.exportFee.forEach((val, index) => {
|
|
|
- this.feeOrderNewVo.push({
|
|
|
- exportInsuranceType: val.insuranceType,
|
|
|
- exportOtherCostsPremiums: val.otherCostsPremiums,
|
|
|
- exportOtherCostsProportion: val.otherCostsProportion,
|
|
|
- exportSuperviseCosts: val.superviseCosts,
|
|
|
- exportSuperviseCostsPremiums: val.superviseCostsPremiums,
|
|
|
- exportTotalAmount: val.totalAmount,
|
|
|
- exportTotalProportion: val.totalProportion,
|
|
|
- ...res.data.feeOrderNewVo.entranceFee[index]
|
|
|
- })
|
|
|
+ let data = JSON.parse(JSON.stringify(res.data.feeOrderNewVo))
|
|
|
+ this.oldVersionHistory = data;
|
|
|
+ data.exportFee.map((val, index) => {
|
|
|
+ val.type = "出口费用"
|
|
|
+ return val;
|
|
|
})
|
|
|
- this.oldVersionHistory = res.data.feeOrderNewVo;
|
|
|
+ data.entranceFee.map((val, index) => {
|
|
|
+ val.type = "入口费用"
|
|
|
+ return val;
|
|
|
+ })
|
|
|
+ this.feeOrderNewVoList = {
|
|
|
+ deptManagerFee: data.deptManagerFee,
|
|
|
+ list: [...data.entranceFee,...data.exportFee],
|
|
|
+ }
|
|
|
+ }
|
|
|
+ res.data.carinfo.carnature = this.natureOfVehicleUseCap(res.data.carinfo.carnature)
|
|
|
+ res.data.carinfo.cartype = this.trafficManagementVehicleTypeCap(res.data.carinfo.cartype)
|
|
|
+ res.data.carinfo.cimodelclass = this.vehicleTypeCap(res.data.carinfo.cimodelclass)
|
|
|
+ res.data.carinfo.energyType = this.energyTypeCap(res.data.carinfo.energyType)
|
|
|
+ res.data.carinfo.vehicleUse = this.outOfBusinessVehicleUseCap(res.data.carinfo.carnature, res.data.carinfo.vehicleUse)
|
|
|
+ this.orderInfo = res.data;
|
|
|
+ this.oldfileList = [];
|
|
|
+ let businessList = []
|
|
|
+ let accidentList = []
|
|
|
+ if (res.data.orderstatus == "3") {
|
|
|
+ switch (res.data.inscompany) {
|
|
|
+ case "永安财险":
|
|
|
+ if (this.orderInfo.jqpolicyno) {
|
|
|
+ this.$api.letter
|
|
|
+ .getPolicyPrint({
|
|
|
+ companyId: res.data.id,
|
|
|
+ policytype: "jq",
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ //交强保单
|
|
|
+ if (res.data) {
|
|
|
+ let result = res.data.replace(/[\r\n]/g, "");
|
|
|
+ let pdfBase64 = `data:application/pdf;base64,${result}`;
|
|
|
+ base64ToPath(pdfBase64).then((path) => {
|
|
|
+ if (path) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子保单",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
+ fileurl: path,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.$api.letter
|
|
|
+ .getPolicyPrint2({
|
|
|
+ companyId: res.data.id,
|
|
|
+ policytype: "jq",
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ //交强保单
|
|
|
+ if (res.data) {
|
|
|
+ let result = res.data.replace(/[\r\n]/g, "");
|
|
|
+ let pdfBase64 = `data:application/pdf;base64,${result}`;
|
|
|
+ base64ToPath(pdfBase64).then((path) => {
|
|
|
+ if (path) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子标志",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
+ fileurl: path,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (this.orderInfo.sypolicyno) {
|
|
|
+ this.$api.letter
|
|
|
+ .getPolicyPrint({
|
|
|
+ companyId: res.data.id,
|
|
|
+ policytype: "sy",
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ //商业保单
|
|
|
+ if (res.data) {
|
|
|
+ let result = res.data.replace(/[\r\n]/g, "");
|
|
|
+ let pdfBase64 = `data:application/pdf;base64,${result}`;
|
|
|
+ base64ToPath(pdfBase64).then((path) => {
|
|
|
+ if (path) {
|
|
|
+ businessList.push({
|
|
|
+ fileTitle: "商业电子保单",
|
|
|
+ filename: this.orderInfo.sypolicyno,
|
|
|
+ fileurl: path,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case "华泰财险":
|
|
|
+ if (this.orderInfo.jqpolicyno) {
|
|
|
+ this.$api.letter
|
|
|
+ .HuataigetPolicyPrint({
|
|
|
+ companyId: res.data.id,
|
|
|
+ riskCode: "0507",
|
|
|
+ type: "2", //2:保单
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.data) {
|
|
|
+ if (res.data.jqxPolicyUrl) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子保单",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
+ fileurl: res.data.jqxPolicyUrl,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (res.data.jqxFlagUrl) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子标志",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
+ fileurl: res.data.jqxFlagUrl,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (this.orderInfo.sypolicyno) {
|
|
|
+ this.$api.letter
|
|
|
+ .HuataigetPolicyPrint({
|
|
|
+ companyId: res.data.id,
|
|
|
+ riskCode: "0510",
|
|
|
+ type: "2", //2:保单
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.data && res.data.syxPolicyUrl) {
|
|
|
+ businessList.push({
|
|
|
+ fileTitle: "商业电子保单",
|
|
|
+ filename: this.orderInfo.sypolicyno,
|
|
|
+ fileurl: res.data.syxPolicyUrl,
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case "中煤财险":
|
|
|
+ if (this.orderInfo.jqpolicyno) {
|
|
|
+ this.$api.letter
|
|
|
+ .ZhongmeigetPolicyPrint({
|
|
|
+ companyId: res.data.id,
|
|
|
+ riskCode: "0507",
|
|
|
+ type: "2", //2:保单
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.data && res.data[0]) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子保单",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
+ fileurl: res.data[0],
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.$api.letter
|
|
|
+ .ZhongmeigetPolicyPrint({
|
|
|
+ companyId: res.data.id,
|
|
|
+ riskCode: "0507",
|
|
|
+ type: "1", // 1:标志
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.data && res.data[0]) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子标志",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
+ fileurl: res.data[0],
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (this.orderInfo.sypolicyno) {
|
|
|
+ this.$api.letter
|
|
|
+ .ZhongmeigetPolicyPrint({
|
|
|
+ companyId: res.data.id,
|
|
|
+ riskCode: "0510",
|
|
|
+ type: "2", //2:保单
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.data && res.data[0]) {
|
|
|
+ businessList.push({
|
|
|
+ fileTitle: "商业电子保单",
|
|
|
+ filename: this.orderInfo.sypolicyno,
|
|
|
+ fileurl: res.data[0],
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (this.orderInfo.crossInsurance.length > 0) {
|
|
|
+ this.orderInfo.crossInsurance.map((ele) => {
|
|
|
+ this.$api.letter
|
|
|
+ .ZhongmeigetPolicyPrint({
|
|
|
+ ridePolicyNo: ele.ridePolicyNo,
|
|
|
+ companyId: res.data.id,
|
|
|
+ riskCode: "0513",
|
|
|
+ type: "2", //2:保单
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.code == 200 && res.data) {
|
|
|
+ accidentList.push({
|
|
|
+ fileTitle: "驾意险保单",
|
|
|
+ filename: this.orderInfo.sypolicyno,
|
|
|
+ fileurl: res.data[0],
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case "永诚财险":
|
|
|
+ if (this.orderInfo.jqpolicyno) {
|
|
|
+ this.$api.letter
|
|
|
+ .yongchenggetPolicyPrint({
|
|
|
+ companyId: res.data.id,
|
|
|
+ riskCode: "0507",
|
|
|
+ type: "2", //2:保单
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.code == 200 && res.data) {
|
|
|
+ if (res.data.jqUrl) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子保单",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
+ fileurl: res.data.jqUrl,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (res.data.jqFlagUrl) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子标志",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
+ fileurl: res.data.jqFlagUrl,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (this.orderInfo.sypolicyno) {
|
|
|
+ this.$api.letter
|
|
|
+ .yongchenggetPolicyPrint({
|
|
|
+ companyId: res.data.id,
|
|
|
+ riskCode: "0510",
|
|
|
+ type: "2", //2:保单
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.data && res.data.syUrl) {
|
|
|
+ businessList.push({
|
|
|
+ fileTitle: "商业电子保单",
|
|
|
+ filename: this.orderInfo.sypolicyno,
|
|
|
+ fileurl: res.data.syUrl,
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (this.orderInfo.crossInsurance.length > 0) {
|
|
|
+ this.orderInfo.crossInsurance.map((ele) => {
|
|
|
+ this.$api.letter
|
|
|
+ .yongchenggetPolicyPrint({
|
|
|
+ companyId: res.data.id,
|
|
|
+ policyNumber: ele.policyNumber,
|
|
|
+ riskCode: "0513",
|
|
|
+ type: "2", //2:保单
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.code == 200 && res.data) {
|
|
|
+ accidentList.push({
|
|
|
+ fileTitle: "驾意险保单",
|
|
|
+ filename: ele.policyNumber,
|
|
|
+ fileurl: res.data.jyUrl,
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case "国任财险":
|
|
|
+ if (this.orderInfo.jqpolicyno) {
|
|
|
+ this.$api.letter
|
|
|
+ .guoRengetPolicyPrint({
|
|
|
+ companyId: res.data.id,
|
|
|
+ riskCode: "0507",
|
|
|
+ type: "2", //2:保单
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.data) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子保单",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
+ fileurl: res.data,
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.$api.letter
|
|
|
+ .guoRengetPolicyPrint({
|
|
|
+ companyId: res.data.id,
|
|
|
+ riskCode: "0507",
|
|
|
+ type: "1", //1:标志
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.data) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子标志",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
+ fileurl: res.data,
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (this.orderInfo.sypolicyno) {
|
|
|
+ this.$api.letter
|
|
|
+ .guoRengetPolicyPrint({
|
|
|
+ companyId: res.data.id,
|
|
|
+ riskCode: "0510",
|
|
|
+ type: "2", //2:保单
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.data) {
|
|
|
+ businessList.push({
|
|
|
+ fileTitle: "商业电子保单",
|
|
|
+ filename: this.orderInfo.sypolicyno,
|
|
|
+ fileurl: res.data,
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (this.orderInfo.crossInsurance.length > 0) {
|
|
|
+ this.orderInfo.crossInsurance.map((ele) => {
|
|
|
+ this.$api.letter
|
|
|
+ .guoRengetPolicyPrint({
|
|
|
+ companyId: res.data.id,
|
|
|
+ policyNumber: ele.policyNumber,
|
|
|
+
|
|
|
+ riskCode: "0513",
|
|
|
+ type: "2", //2:保单
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.data) {
|
|
|
+ accidentList.push({
|
|
|
+ fileTitle: "驾意险保单",
|
|
|
+ filename: ele.policyNumber,
|
|
|
+ fileurl: res.data,
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+ break;
|
|
|
+
|
|
|
+ case "紫金财险":
|
|
|
+ if (this.orderInfo.jqpolicyno) {
|
|
|
+ this.$api.letter
|
|
|
+ .zijingetPolicyPrint({
|
|
|
+ companyId: res.data.id,
|
|
|
+ riskCode: "0507",
|
|
|
+ type: "2", //2:保单
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.data) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子保单",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
+ fileurl: res.data,
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.$api.letter
|
|
|
+ .zijingetPolicyPrint({
|
|
|
+ companyId: res.data.id,
|
|
|
+ riskCode: "0507",
|
|
|
+ type: "1", //1:标志
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.data) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子标志",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
+ fileurl: res.data,
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (this.orderInfo.sypolicyno) {
|
|
|
+ this.$api.letter
|
|
|
+ .zijingetPolicyPrint({
|
|
|
+ companyId: res.data.id,
|
|
|
+ riskCode: "0510",
|
|
|
+ type: "2", //2:保单
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.data) {
|
|
|
+ businessList.push({
|
|
|
+ fileTitle: "商业电子保单",
|
|
|
+ filename: this.orderInfo.sypolicyno,
|
|
|
+ fileurl: res.data,
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (this.orderInfo.crossInsurance.length > 0) {
|
|
|
+ this.orderInfo.crossInsurance.map((ele) => {
|
|
|
+ this.$api.letter
|
|
|
+ .zijingetPolicyPrint({
|
|
|
+ companyId: res.data.id,
|
|
|
+ policyNumber: ele.policyNumber,
|
|
|
+ riskCode: "0513",
|
|
|
+ type: "2", //2:保单
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.data) {
|
|
|
+ accidentList.push({
|
|
|
+ fileTitle: "驾意险保单",
|
|
|
+ filename: ele.policyNumber,
|
|
|
+ fileurl: res.data,
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case "渤海财险":
|
|
|
+ if (this.orderInfo.jqpolicyno) {
|
|
|
+ this.$api.letter
|
|
|
+ .getPolicyPrintboHai({
|
|
|
+ companyId: res.data.id,
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.code == 200 && res.data) {
|
|
|
+ if (res.data.jqxPolicyUrl) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子保单",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
+ fileurl: res.data.jqxPolicyUrl,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (res.data.jqxFlagUrl) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子标志",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
+ fileurl: res.data.jqxFlagUrl,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (res.data.syxPolicyUrl) {
|
|
|
+ businessList.push({
|
|
|
+ fileTitle: "商业电子保单",
|
|
|
+ filename: this.orderInfo.sypolicyno,
|
|
|
+ fileurl: res.data.syxPolicyUrl,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ res.data.jyxInfoList &&
|
|
|
+ res.data.jyxInfoList.length > 0
|
|
|
+ ) {
|
|
|
+ res.data.jyxInfoList.forEach((val) => {
|
|
|
+ accidentList.push({
|
|
|
+ fileTitle: "驾意险保单",
|
|
|
+ filename: "驾意险保单",
|
|
|
+ fileurl: val.jyx_policy_url,
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case "恒邦财险":
|
|
|
+ case "安盛天平":
|
|
|
+ case "中国人寿":
|
|
|
+ case "太平财险":
|
|
|
+ case "华农财险":
|
|
|
+ case "众安财险":
|
|
|
+ if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {
|
|
|
+ this.$api.letter
|
|
|
+ .pythongetPolicyPrint({
|
|
|
+ subOrderNo: res.data.id,
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.code == 200 && res.data) {
|
|
|
+ if (res.data.jqxPolicyUrl) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子保单",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
+ fileurl: res.data.jqxPolicyUrl,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (res.data.jqxFlagUrl) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子标志",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
+ fileurl: res.data.jqxFlagUrl,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (res.data.syxPolicyUrl) {
|
|
|
+ businessList.push({
|
|
|
+ fileTitle: "商业电子保单",
|
|
|
+ filename: this.orderInfo.sypolicyno,
|
|
|
+ fileurl: res.data.syxPolicyUrl,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ res.data.jyxInfoList &&
|
|
|
+ res.data.jyxInfoList.length > 0
|
|
|
+ ) {
|
|
|
+ res.data.jyxInfoList.forEach((val) => {
|
|
|
+ accidentList.push({
|
|
|
+ fileTitle: "驾意险保单",
|
|
|
+ filename: "驾意险保单",
|
|
|
+ fileurl: val.jyx_policy_url,
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case "大家财险":
|
|
|
+ if (this.orderInfo.jqpolicyno) {
|
|
|
+ this.$api.letter
|
|
|
+ .obtainWarranty({
|
|
|
+ companyId: res.data.id,
|
|
|
+ riskCode: "0507",
|
|
|
+ type: "2", //2:保单
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.data) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子保单",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
+ fileurl: res.data,
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.$api.letter
|
|
|
+ .obtainWarranty({
|
|
|
+ companyId: res.data.id,
|
|
|
+ riskCode: "0507",
|
|
|
+ type: "1", //1:标志
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.data) {
|
|
|
+ this.oldfileList.push({
|
|
|
+ fileTitle: "交强电子标志",
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
+ fileurl: res.data,
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (this.orderInfo.sypolicyno) {
|
|
|
+ this.$api.letter
|
|
|
+ .obtainWarranty({
|
|
|
+ companyId: res.data.id,
|
|
|
+ riskCode: "0510",
|
|
|
+ type: "2", //2:保单
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.data) {
|
|
|
+ businessList.push({
|
|
|
+ fileTitle: "商业电子保单",
|
|
|
+ filename: this.orderInfo.sypolicyno,
|
|
|
+ fileurl: res.data,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (this.orderInfo.crossInsurance.length > 0) {
|
|
|
+ this.orderInfo.crossInsurance.map((ele) => {
|
|
|
+ this.$api.letter
|
|
|
+ .zijingetPolicyPrint({
|
|
|
+ companyId: res.data.id,
|
|
|
+ policyNumber: ele.policyNumber,
|
|
|
+ riskCode: "0513",
|
|
|
+ type: "2", //2:保单
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.data) {
|
|
|
+ accidentList.push({
|
|
|
+ fileTitle: "驾意险保单",
|
|
|
+ filename: ele.policyNumber,
|
|
|
+ fileurl: res.data,
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ }
|
|
|
+ let obj = {
|
|
|
+ oldfileList: this.oldfileList,
|
|
|
+ businessList,
|
|
|
+ accidentList
|
|
|
+ }
|
|
|
+ this.$refs.detailsDialog.warrantyFun(obj);
|
|
|
}
|
|
|
- res.data.carinfo.carnature=res.data.carinfo.carnature=='02'?"非营业":"营业";
|
|
|
- this.orderInfo = res.data
|
|
|
this.feeDetailInfo = res.data.orderFeeResult;
|
|
|
this.oldFeeInfo = res.data.adjustFeeDescVo;
|
|
|
this.adjustFeeDescInfo = { ...this.oldFeeInfo }
|
|
|
// this.quotedetailsdialogVisible = true;
|
|
|
- this.isAuditing={
|
|
|
- feeOrderNewVo:this.feeOrderNewVo,
|
|
|
- adjustFeeFlag:this.adjustFeeFlag
|
|
|
- }
|
|
|
+
|
|
|
this.$refs.detailsDialog.setBackupVisible(true);
|
|
|
|
|
|
} else {
|