Parcourir la source

车险平台、车险结算详情页展示内容修改,报价页面新增优惠金额

@dongkboy il y a 2 ans
Parent
commit
4bb6e6b770

+ 18 - 4
src/assets/css/common.css

@@ -69,6 +69,20 @@
 .mrgin-2{
   margin: 20px;
 }
+.m-top-5 {
+	margin-top: 5px;
+}
+.m-top-10 {
+	margin-top: 10px;
+}
+
+.m-btn-10 {
+	margin-bottom: 10px;
+}
+
+.m-btn-15 {
+	margin-bottom: 15px;
+}
 .el-button:hover,.el-button:focus
 {
 	color: var(--themeColor);
@@ -102,7 +116,7 @@
 }
 .el-tabs__item:hover,.el-picker-panel__icon-btn:hover,.el-date-table td.available:hover,.el-button--text,.el-pager li:hover,
 .el-dialog__headerbtn:hover .el-dialog__close,.el-button--text:hover,.el-button--text:focus{
-	color: var(--themeColorHover); 
+	color: var(--themeColorHover);
 }
 .dialog-title{
     font-weight: bold;
@@ -115,8 +129,8 @@
 }
 .el-range-editor.is-active,.el-pagination button,.el-pager li,.el-pagination__sizes .el-input .el-input__inner:hover,.el-checkbox__inner:hover
 ,.el-range-editor.is-active, .el-range-editor.is-active:hover{
-	border-color: var(--themeColorHover); 
-} 
+	border-color: var(--themeColorHover);
+}
 .el-select .el-input.is-focus .el-input__inner ,.el-input__inner:focus,.el-select .el-input__inner:focus,.el-button--primary.is-plain:focus {
 	border-color: var(--themeColor);
  }
@@ -137,4 +151,4 @@
 }
 .themeColor{
 	color: var(--themeColor) ;
-}
+}

Fichier diff supprimé car celui-ci est trop grand
+ 466 - 478
src/views/Core/components/detailsDialog.vue


+ 708 - 0
src/views/Core/components/detailsDialogPro.vue

@@ -0,0 +1,708 @@
+<template>
+  <el-dialog :visible.sync="dialogVisible" width="80%" class="details_style">
+    <div slot="title" class=" dialog-title details-title">
+      <img src="../../../icon/归属信息.png" alt class="icon-img" />
+      <span>车辆报价信息详情</span>
+    </div>
+    <div class="details-body flex">
+      <div style="background-color: #fff;">
+        <ul class="tabLeft">
+          <li :class="{ 'li-selected': selectedItem === 'gsxx' }" @click="selectItem('gsxx')">归属信息</li>
+          <li :class="{ 'li-selected': selectedItem === 'clxx' }" @click="selectItem('clxx')">车辆信息</li>
+          <li :class="{ 'li-selected': selectedItem === 'czxx' }" @click="selectItem('czxx')">车主信息</li>
+          <li :class="{ 'li-selected': selectedItem === 'tbrxx' }" @click="selectItem('tbrxx')">投保人信息</li>
+          <li :class="{ 'li-selected': selectedItem === 'bbrxx' }" @click="selectItem('bbrxx')">被保人信息</li>
+          <li :class="{ 'li-selected': selectedItem === 'cjxx' }" @click="selectItem('cjxx')">投保信息</li>
+          <li v-if="orderInfo.taxArrears && orderInfo.taxArrears.length > 0"
+            :class="{ 'li-selected': selectedItem === 'qsxx' }" @click="selectItem('qsxx')">欠税信息</li>
+          <li :class="{ 'li-selected': selectedItem === 'bfys' }" @click="selectItem('bfys')">保费因素</li>
+          <li v-if="orderInfo.kindinfo && orderInfo.kindinfo.length > 0"
+            :class="{ 'li-selected': selectedItem === 'xzxx' }" @click="selectItem('xzxx')">险种信息</li>
+          <li v-if="orderInfo.accidentInfo && orderInfo.accidentInfo.length > 0"
+            :class="{ 'li-selected': selectedItem === 'jyx' }" @click="selectItem('jyx')">驾意险</li>
+          <li :class="{ 'li-selected': selectedItem === 'yxzl' }" @click="selectItem('yxzl')"
+            v-if="Object.keys(obj).length != 0">影像资料</li>
+          <li v-if="orderInfo && orderInfo.orderstatus == 3" :class="{ 'li-selected': selectedItem === 'dzbd' }"
+            @click="selectItem('dzbd')">保单信息</li>
+          <li v-if="orderInfo.orderFeeResult && orderInfo.orderFeeResult.length > 0"
+            :class="{ 'li-selected': selectedItem === 'fymx' }" @click="selectItem('fymx')">费用明细</li>
+          <li v-if="orderInfo.feeOrderNewVo && orderInfo.feeOrderNewVo.deptManagerFee.length > 0"
+            :class="{ 'li-selected': selectedItem === 'jgglf' }" @click="selectItem('jgglf')">机构管理费</li>
+          <li v-if="orderInfo.distributionLevelVoList && orderInfo.distributionLevelVoList.length > 0"
+            :class="{ 'li-selected': selectedItem === 'fxmx1' }" @click="selectItem('fxmx1')">分销明细</li>
+          <li v-if="orderInfo && orderInfo.orderstatus == 4 && orderInfo.auditopinion"
+            :class="{ 'li-selected': selectedItem === 'shyj' }" @click="selectItem('shyj')">审核意见</li>
+
+        </ul>
+      </div>
+      <div style="margin:20px;height: 60vh;overflow-y: auto;width: 100%;">
+        <OpenCloseBox id="gsxx">
+          <span slot="title">归属信息</span>
+          <div slot="boby">
+            <el-row class="premium-style " :gutter="20">
+              <el-col :span="24"><span>归属机构:</span>{{ orderInfo.deptAreaInfo }}</el-col>
+              <el-col :span="6"><span>本人工号:</span>{{ orderInfo.userid }}</el-col>
+              <el-col :span="6"><span>本人姓名:</span>{{ orderInfo.username }}</el-col>
+              <el-col :span="6"><span>联系方式:</span>{{ orderInfo.mobile }}</el-col>
+              <el-col :span="6"><span>性别:</span>{{ orderInfo.sex }}</el-col>
+            </el-row>
+            <el-row class="premium-style " :gutter="20">
+              <el-col v-if="orderInfo.referrerDeptAreaInfo" :span="24"><span>推荐人归属机构:</span>{{
+                orderInfo.referrerDeptAreaInfo }}</el-col>
+              <el-col :span="6"><span>推荐人工号:</span>{{ orderInfo.userid }}</el-col>
+              <el-col :span="6"><span>推荐人姓名:</span>{{ orderInfo.username }}</el-col>
+              <el-col :span="6"><span>联系方式:</span>{{ orderInfo.referrerMobile }}</el-col>
+              <el-col :span="6"><span>性别:</span>{{ orderInfo.referrerSex }}</el-col>
+            </el-row>
+          </div>
+        </OpenCloseBox>
+        <OpenCloseBox id="clxx">
+          <span slot="title">车辆信息</span>
+          <div slot="boby">
+            <el-row class="premium-style " :gutter="20">
+              <el-col :span="6"><span>车牌号:</span>{{ orderInfo.carinfo.licenseNo }}</el-col>
+              <el-col :span="6"><span>车辆识别代码:</span>{{ orderInfo.carinfo.vinNo }}</el-col>
+              <el-col :span="6"><span>品牌型号:</span>{{ orderInfo.carinfo.modelcname }}</el-col>
+              <el-col :span="6"><span>发动机号:</span>{{ orderInfo.carinfo.engineNo }}</el-col>
+            </el-row>
+            <el-row class="premium-style " :gutter="20">
+              <el-col :span="6"><span>年款:</span>{{ orderInfo.carinfo.caryear }}</el-col>
+              <el-col :span="6"><span>座位数:</span>{{ orderInfo.carinfo.seatCount }}</el-col>
+              <el-col :span="6"><span>整备质量:</span>{{ orderInfo.carinfo.completeKerbMass }}</el-col>
+              <el-col :span="6"><span>核定载质量:</span>{{ orderInfo.carinfo.limitLoad }}</el-col>
+
+            </el-row>
+            <el-row class="premium-style " :gutter="20">
+              <el-col :span="6"><span>排量:</span>{{ orderInfo.carinfo.enginedesc }}</el-col>
+              <el-col :span="6"><span>功率:</span>{{ orderInfo.carinfo.powerScale }}</el-col>
+              <el-col :span="6"><span>新车购置价:</span>{{ orderInfo.carinfo.purchasePrice }}</el-col>
+              <el-col :span="6"><span>使用性质:</span>{{ orderInfo.carinfo.carnature }}</el-col>
+            </el-row>
+            <el-row class="premium-style " :gutter="20">
+              <el-col :span="6"><span>车辆用途:</span>{{ orderInfo.carinfo.vehicleUse }}</el-col>
+              <el-col :span="6"><span>车辆类型:</span>{{ orderInfo.carinfo.cartype }}</el-col>
+              <el-col :span="6"><span>车辆种类:</span>{{ orderInfo.carinfo.cimodelclass }}</el-col>
+              <el-col :span="6"><span>能源种类:</span>{{ orderInfo.carinfo.energyType }}</el-col>
+            </el-row>
+            <el-row class="premium-style " :gutter="20">
+              <el-col :span="6"><span>注册日期:</span>{{ orderInfo.carinfo.registerDate }}</el-col>
+              <el-col :span="6"><span>发证日期:</span>{{ orderInfo.carinfo.issueDate }}</el-col>
+              <el-col :span="6"><span>是否过户:</span>{{ orderInfo.carinfo.transferFlag == true ? "是" : "否" }}</el-col>
+              <el-col :span="6"><span>转移登记日期:</span>{{ orderInfo.carinfo.transferDate }}</el-col>
+            </el-row>
+            <el-row class="premium-style " :gutter="20">
+              <el-col :span="6"><span>商业险是否过户:</span>{{ orderInfo.carinfo.transferFlagBi == true ? "是" : "否" }}</el-col>
+              <el-col :span="6"><span>是否脱保:</span>{{ orderInfo.carinfo.outOfInsurance == true ? "是" : "否" }}</el-col>
+              <el-col :span="6"><span>是否二手车:</span>{{ orderInfo.carinfo.usedCar == true ? "是" : "否" }}</el-col>
+            </el-row>
+          </div>
+        </OpenCloseBox>
+        <OpenCloseBox id="czxx">
+          <span slot="title">车主信息</span>
+          <div slot="boby">
+            <el-row class="premium-style" :gutter="20">
+              <el-col :span="6"><span>车主姓名:</span>{{ orderInfo.ownerinfo.name }}</el-col>
+              <el-col :span="6"><span>证件类型:</span>{{ orderInfo.ownerinfo.identifyType }}</el-col>
+              <el-col :span="6"><span>身份证号:</span>{{ orderInfo.ownerinfo.identifyNumber }}</el-col>
+              <el-col :span="6"><span>手机号:</span>{{ orderInfo.ownerinfo.mobile }}</el-col>
+            </el-row>
+            <el-row class="premium-style" :gutter="20">
+              <el-col :span="6"><span>电子邮箱:</span>{{ orderInfo.ownerinfo.email ? orderInfo.ownerinfo.email : '-'
+              }}</el-col>
+              <el-col :span="12"><span>地址:</span>{{ orderInfo.ownerinfo.addr }}</el-col>
+            </el-row>
+          </div>
+        </OpenCloseBox>
+        <OpenCloseBox id="tbrxx">
+          <span slot="title">投保人信息</span>
+          <div slot="boby">
+            <el-row class="premium-style" :gutter="20">
+              <el-col :span="6"><span>投保人姓名:</span>{{ orderInfo.applyinfo.name }}</el-col>
+              <el-col :span="6"><span>证件类型:</span>{{ orderInfo.applyinfo.identifyType }}</el-col>
+              <el-col :span="6"><span>身份证号:</span>{{ orderInfo.applyinfo.identifyNumber }}</el-col>
+              <el-col :span="6"><span>手机号:</span>{{ orderInfo.applyinfo.mobile }}</el-col>
+            </el-row>
+            <el-row class="premium-style" :gutter="20">
+              <el-col :span="6"><span>电子邮箱:</span>{{ orderInfo.applyinfo.email ? orderInfo.applyinfo.email : '/'
+              }}</el-col>
+              <el-col :span="12"><span>地址:</span>{{ orderInfo.applyinfo.addr }}</el-col>
+            </el-row>
+          </div>
+        </OpenCloseBox>
+        <OpenCloseBox id="bbrxx">
+          <span slot="title">被保人信息</span>
+          <div slot="boby">
+            <el-row class="premium-style" :gutter="20">
+              <el-col :span="6"><span>被保人姓名:</span>{{ orderInfo.insureinfo.name }}</el-col>
+              <el-col :span="6"><span>证件类型:</span>{{ orderInfo.insureinfo.identifyType }}</el-col>
+              <el-col :span="6"><span>身份证号:</span>{{ orderInfo.insureinfo.identifyNumber }}</el-col>
+              <el-col :span="6"><span>手机号:</span>{{ orderInfo.insureinfo.mobile }}</el-col>
+            </el-row>
+            <el-row class="premium-style" :gutter="20">
+              <el-col :span="6"><span>电子邮箱:</span>{{ orderInfo.insureinfo.email ? orderInfo.insureinfo.email : '/'
+              }}</el-col>
+              <el-col :span="12"><span>地址:</span>{{ orderInfo.insureinfo.addr }}</el-col>
+            </el-row>
+          </div>
+        </OpenCloseBox>
+        <OpenCloseBox id="cjxx">
+          <span slot="title">投保信息</span>
+          <div slot="boby">
+            <div class="m-btn-10">保险公司:{{ orderInfo.inscompany }}</div>
+
+            <div class="  quotation-style">
+              <b>险种</b>
+              <b>起保日期</b>
+              <b>终保日期</b>
+              <b>保费金额</b>
+              <span>交强险</span>
+              <span>{{ orderInfo.jqstartdate ? orderInfo.jqstartdate : '-' }}</span>
+              <span>{{ orderInfo.jqenddate ? orderInfo.jqenddate : '-' }}</span>
+              <span>{{ orderInfo.jqpremium ? '¥' + orderInfo.jqpremium : '-' }}</span>
+              <span>商业险</span>
+              <span>{{ orderInfo.systartdate ? orderInfo.systartdate : '-' }}</span>
+              <span>{{ orderInfo.syenddate ? orderInfo.syenddate : '-' }}</span>
+              <span>{{ orderInfo.sypremium ? '¥' + orderInfo.sypremium : '-' }}</span>
+              <span>车船税</span>
+              <span>-</span>
+              <span>-</span>
+              <span>¥{{ orderInfo.taxamount }}</span>
+              <span>驾意险</span>
+              <span>-</span>
+              <span>-</span>
+              <span>{{ orderInfo.jypremium ? '¥' + orderInfo.jypremium : '-' }}</span>
+              <span>总计</span>
+              <span>-</span>
+              <span>-</span>
+              <span class="themeColor" style="font-weight: bold;">¥{{ orderInfo.sumpremium }}</span>
+            </div>
+          </div>
+        </OpenCloseBox>
+        <OpenCloseBox id="qsxx" v-if="orderInfo.taxArrears && orderInfo.taxArrears.length > 0">
+          <span slot="title">欠税信息</span>
+          <div slot="boby">
+            <div class="quotation-style tax-arrears">
+              <b>当年应缴(元)</b>
+              <b>去年补缴(元)</b>
+              <b>滞纳金(元)</b>
+              <b>总计</b>
+              <div v-for="(taxArrearsitem, taxArrearsindex) in orderInfo.taxArrears" :key="taxArrearsindex">
+                <span>{{ taxArrearsitem.dayYearTax }}</span>
+                <span>{{ taxArrearsitem.taxDefault }}</span>
+                <span>{{ taxArrearsitem.lateFee }}</span>
+                <span>{{ orderInfo.taxamount }}</span>
+              </div>
+            </div>
+          </div>
+        </OpenCloseBox>
+        <OpenCloseBox id="bfys">
+          <span slot="title">保费因素</span>
+          <div slot="boby">
+            <el-row class="premium-style " :gutter="20">
+              <el-col :span="6"><span>评分:</span>{{ orderInfo.extendInfo.score }}</el-col>
+              <el-col :span="6"><span>总赔付率:</span>{{ orderInfo.extendInfo.lossRation }}</el-col>
+              <el-col :span="6"><span>总折扣率:</span>{{ orderInfo.extendInfo.totalAdjustRate }}</el-col>
+              <el-col :span="6"><span>出险信息:</span>{{ orderInfo.extendInfo.accidentInfoStr }}</el-col>
+            </el-row>
+            <el-row class="premium-style " :gutter="20">
+              <el-col :span="6"><span>交强类型评分:</span>{{ orderInfo.extendInfo.jqScore }}</el-col>
+              <el-col :span="6"><span>交强赔付率:</span>{{ orderInfo.extendInfo.jqLossRation }}</el-col>
+              <el-col :span="6"><span>交强险折扣:</span>{{ orderInfo.extendInfo.jqAdjustRate }}</el-col>
+            </el-row>
+            <el-row class="premium-style " :gutter="20">
+              <el-col :span="6"><span>商业类型评分:</span>{{ orderInfo.extendInfo.syScore }}</el-col>
+              <el-col :span="6"><span>商业赔付率:</span>{{ orderInfo.extendInfo.syLossRation }}</el-col>
+              <el-col :span="6"><span>商业险折扣:</span>{{ orderInfo.extendInfo.syAdjustRate }}</el-col>
+            </el-row>
+            <el-row class="premium-style " :gutter="20" v-if="orderInfo.ubiPredictedInfoScore">
+              <el-col :span="6"><span>紫金能源车(鼎然-车辆风险评分):</span>{{ orderInfo.ubiPredictedInfoScore }}</el-col>
+            </el-row>
+          </div>
+        </OpenCloseBox>
+
+        <OpenCloseBox id="xzxx" v-if="orderInfo.kindinfo && orderInfo.kindinfo.length > 0">
+          <span slot="title">险种信息</span>
+          <div slot="boby">
+            <div class="quotation-style kind-arrears">
+              <b>商业险险别</b>
+              <b>保额(元)</b>
+              <b>保费(元)</b>
+              <div v-for="(kindinfoitem, kindinfoindex) in orderInfo.kindinfo" :key="kindinfoindex">
+                <span>{{ kindinfoitem.kindName }}</span>
+                <span v-if="['D4', 'SY_FJ_YBW2'].includes(kindinfoitem.kindCode)">{{ kindinfoitem.unitAmount }}</span>
+                <span v-else-if="['MJ1', 'MJ2', 'MJ3', 'MJ4'].includes(kindinfoitem.kindCode)
+                  ">
+                  {{ kindinfoitem.deductibleRate }}
+                </span>
+                <span v-else>{{ kindinfoitem.amount }}</span>
+                <span>{{ kindinfoitem.coveragePremium ? kindinfoitem.coveragePremium : '-' }}</span>
+              </div>
+            </div>
+          </div>
+        </OpenCloseBox>
+        <OpenCloseBox id="jyx" v-if="orderInfo.accidentInfo && orderInfo.accidentInfo.length > 0">
+          <span slot="title">驾意险</span>
+          <div slot="boby">
+            <div class="quotation-style driving-style">
+              <b>产品</b>
+              <b>份数</b>
+              <b>价格</b>
+              <div v-for="(kindinfoitem, taxArrearsindex) in orderInfo.accidentInfo" :key="taxArrearsindex">
+                <span>{{ kindinfoitem.projectName }}</span>
+                <span>{{ kindinfoitem.quantity ? kindinfoitem.quantity : '1' }}</span>
+                <span>{{ kindinfoitem.actualPremium }}/份</span>
+              </div>
+            </div>
+          </div>
+        </OpenCloseBox>
+
+        <OpenCloseBox id="yxzl" v-if="Object.keys(obj).length != 0">
+          <span slot="title">影像资料</span>
+          <div slot="boby">
+            <el-row :gutter="20">
+              <el-col :span="12">
+                <h4>行驶证影像</h4>
+                <viewer :images="obj.carImageList">
+                  <img class="imageStyle" v-for="(imageItem, imageIndex) in obj.carImageList" :src="imageItem"
+                    :key="imageIndex" />
+                </viewer>
+              </el-col>
+              <el-col :span="12">
+                <div v-if="obj.ownerImageList">
+                  <h4>车主身份证影像</h4>
+                  <viewer :images="obj.ownerImageList">
+                    <img class="imageStyle" v-for="(imageItem, imageIndex) in obj.ownerImageList" :src="imageItem"
+                      :key="imageIndex" />
+                  </viewer>
+                </div>
+                <div v-else>
+                  <h4>营业执照</h4>
+                  <img class="imageStyle" style="margin-right: 0;" />
+                </div>
+              </el-col>
+            </el-row>
+            <el-row :gutter="20">
+              <el-col :span="12">
+                <div v-if="obj.policyImageList">
+                  <h4>投保人身份证影像</h4>
+                  <viewer :images="obj.policyImageList">
+                    <img class="imageStyle" v-for="(imageItem, imageIndex) in obj.policyImageList" :src="imageItem"
+                      :key="imageIndex" />
+                  </viewer>
+                </div>
+                <div v-else>
+                  <h4>营业执照</h4>
+                  <img class="imageStyle" style="margin-right: 0;" />
+                </div>
+              </el-col>
+              <el-col :span="12">
+                <div v-if="obj.insuredImageList">
+                  <h4>被保人身份证影像</h4>
+                  <viewer :images="obj.insuredImageList">
+                    <img class="imageStyle" v-for="(imageItem, imageIndex) in obj.insuredImageList" :src="imageItem"
+                      :key="imageIndex" />
+                  </viewer>
+                </div>
+                <div v-else>
+                  <h4>营业执照</h4>
+                  <img class="imageStyle" style="margin-right: 0;" />
+                </div>
+              </el-col>
+            </el-row>
+            <el-row :gutter="20" v-if="obj.carCheckImageList && obj.carCheckImageList.length > 0">
+              <el-col :span="24">
+                <h4>验车照影像</h4>
+                <viewer :images="obj.carCheckImageList">
+                  <img class="imageStyle" v-for="(imageItem, imageIndex) in obj.carCheckImageList" :src="imageItem"
+                    :key="imageIndex" />
+                </viewer>
+              </el-col>
+            </el-row>
+          </div>
+        </OpenCloseBox>
+        <OpenCloseBox id="dzbd" v-if="orderInfo && orderInfo.orderstatus == 3">
+          <span slot="title">保单信息</span>
+          <div slot="boby">
+            <el-row class="premium-style " :gutter="20">
+              <el-col :span="12"><span>交强险投保单号:</span>{{ orderInfo.jqapplyno }}</el-col>
+              <el-col :span="12"><span>交强险保单号:</span>{{ orderInfo.jqpolicyno }}</el-col>
+              <el-col v-if="orderInfo.syapplyno" :span="12"><span>商业险投保单号:</span>{{ orderInfo.syapplyno }}</el-col>
+              <el-col v-if="orderInfo.sypolicyno" :span="12"><span>商业险保单号:</span>{{ orderInfo.sypolicyno }}</el-col>
+              <el-col :span="12" v-for="(oldfileItem, oldfileIndex) in warrantObj.oldfileList" :key="oldfileIndex">
+                <div>
+                  <span>{{ oldfileItem.fileTitle }} :</span>{{ orderInfo.licenseno }}
+                  <el-button style="margin-left:30px" type="text" @click="viewfile(oldfileItem)">下载
+                  </el-button>
+                </div>
+              </el-col>
+              <el-col :span="12" v-for="(val, oldfileIndex) in warrantObj.businessList" :key="oldfileIndex">
+                <div>
+                  <span>{{ val.fileTitle }} :</span>{{ orderInfo.licenseno }}
+                  <el-button style="margin-left:30px" type="text" @click="viewfile(val)">下载
+                  </el-button>
+                </div>
+              </el-col>
+
+            </el-row>
+            <el-row class="premium-style " :gutter="20">
+              <el-col :span="12" v-for="(oldfileItem, oldfileIndex) in warrantObj.accidentList" :key="oldfileIndex">
+                <div>
+                  <span>{{ oldfileItem.fileTitle }} :</span>{{ orderInfo.licenseno }}
+                  <el-button style="margin-left:30px" type="text" @click="viewfile(oldfileItem)">下载
+                  </el-button>
+                </div>
+              </el-col>
+            </el-row>
+          </div>
+        </OpenCloseBox>
+        <OpenCloseBox id="fymx" v-if="feeOrderNewVoList">
+          <span slot="title">费用明细</span>
+          <div slot="boby" style="font-size:12px;width: 100%" class="FeeEnclosure">
+            <el-table :data="feeOrderNewVoList.list" :span-method="feeOrderNewVomergeRows" :border="true" width="100%"
+              :stripe="true" size="mini" :header-cell-style="{
+                background: '#F7F7F9',
+                fontWeight: '700',
+                color: '#606266',
+              }">
+              <el-table-column prop="type" label="">
+              </el-table-column>
+              <el-table-column prop="insuranceType" label="险种">
+              </el-table-column>
+              <el-table-column prop="otherCostsProportion" label="跟单比例">
+                <template slot-scope="scope" >
+                  <span v-if="!isAuditing || scope.row.type !== '入口费用'">{{ scope.row.otherCostsProportion }} </span>
+                  <el-input v-else v-model="scope.row.otherCostsProportion" size="mini"></el-input>
+                </template>
+              </el-table-column>
+              <el-table-column prop="superviseCosts" label="手续费比例">
+                <template slot-scope="scope">
+                  <span v-if="!isAuditing || scope.row.type !== '入口费用'">{{ scope.row.superviseCosts }} </span>
+                  <el-input v-else v-model="scope.row.superviseCosts" size="mini"></el-input>
+                </template>
+              </el-table-column>
+              <el-table-column prop="totalProportion" label="总比例">
+                <template slot-scope="scope">
+                  <span v-if="!isAuditing || scope.row.type !== '入口费用'">{{ scope.row.totalProportion }} </span>
+                  <el-input v-else v-model="scope.row.totalProportion" size="mini"></el-input>
+                </template>
+              </el-table-column>
+              <el-table-column prop="premium" label="保费"></el-table-column>
+              <el-table-column prop="otherCostsPremiums" label="跟单费"></el-table-column>
+              <el-table-column prop="superviseCostsPremiums" label="手续费"></el-table-column>
+              <el-table-column prop="totalAmount" label="总费用"></el-table-column>
+            </el-table>
+          </div>
+        </OpenCloseBox>
+        <OpenCloseBox id="jgglf" v-if="feeOrderNewVoList.deptManagerFee">
+          <span slot="title">机构管理费</span>
+          <div slot="boby" style="font-size:12px;width: 100%" class="FeeEnclosure">
+            <el-table :data="feeOrderNewVoList.deptManagerFee" :border="true" width="100%" :stripe="true"
+              size="mini" :header-cell-style="{
+                background: '#F7F7F9',
+                fontWeight: '700',
+                color: '#606266',
+              }">
+              <el-table-column prop="insuranceType" label="险种"></el-table-column>
+              <el-table-column prop="deptProportionLevelOne" label="一级管理费比例">
+                <template slot-scope="scope">
+                  <span v-if="!isAuditing">{{ scope.row.deptProportionLevelOne }} </span>
+                  <el-input v-else v-model="scope.row.deptProportionLevelOne" size="mini"></el-input>
+                </template>
+              </el-table-column>
+              <el-table-column prop="deptProportionLevelTwo" label="二级管理费比例 ">
+                <template slot-scope="scope">
+                  <span v-if="!isAuditing">{{ scope.row.deptProportionLevelTwo }} </span>
+                  <el-input v-else v-model="scope.row.deptProportionLevelTwo" size="mini"></el-input>
+                </template>
+              </el-table-column>
+              <el-table-column prop="deptProportionLevelThree" label="三级管理费比例">
+                <template slot-scope="scope">
+                  <span v-if="!isAuditing">{{ scope.row.deptProportionLevelThree }} </span>
+                  <el-input v-else v-model="scope.row.deptProportionLevelThree" size="mini"></el-input>
+                </template>
+              </el-table-column>
+              <el-table-column prop="deptProportionLevelFoure" label="四级管理费比例">
+                <template slot-scope="scope">
+                  <span v-if="!isAuditing">{{ scope.row.deptProportionLevelFoure }} </span>
+                  <el-input v-else v-model="scope.row.deptProportionLevelFoure" size="mini"></el-input>
+                </template>
+              </el-table-column>
+              <el-table-column prop="deptProportionLevelFive" label="五级管理费比例">
+                <template slot-scope="scope">
+                  <span v-if="!isAuditing">{{ scope.row.deptProportionLevelFive }} </span>
+                  <el-input v-else v-model="scope.row.deptProportionLevelFive" size="mini"></el-input>
+                </template>
+              </el-table-column>
+              <el-table-column prop="deptPremiumsLevelOne" label="一级管理费">
+              </el-table-column>
+              <el-table-column prop="deptPremiumsLevelTwo" label="二级管理费">
+              </el-table-column>
+              <el-table-column prop="deptPremiumsLevelThree" label="三级管理费">
+              </el-table-column>
+              <el-table-column prop="deptPremiumsLevelFoure" label="四级管理费">
+              </el-table-column>
+              <el-table-column prop="deptPremiumsLevelFive" label="五级管理费">
+              </el-table-column>
+            </el-table>
+          </div>
+        </OpenCloseBox>
+        <OpenCloseBox id="fxmx1" v-if="orderInfo.distributionLevelVoList">
+          <span slot="title">分销明细</span>
+          <div slot="boby" style="font-size:12px;width: 100%" class="FeeEnclosure">
+            <el-table :data="orderInfo.distributionLevelVoList" :border="true" width="100%" :stripe="true" size="mini"
+              :header-cell-style="{
+                background: '#F7F7F9',
+                fontWeight: '700',
+                color: '#606266',
+              }">
+              <el-table-column prop="distributionLevel" label="等级"></el-table-column>
+              <el-table-column prop="userName" label="接收人"></el-table-column>
+              <el-table-column prop="distributionRatio" label="比例"></el-table-column>
+              <el-table-column prop="amount" label="金额"></el-table-column>
+            </el-table>
+          </div>
+        </OpenCloseBox>
+        <OpenCloseBox id="shyj" v-if="orderInfo && orderInfo.orderstatus == 4 && orderInfo.auditopinion">
+          <span slot="title">审核意见</span>
+          <div slot="boby">
+            <p style=" padding: 10px 50px">
+              {{ orderInfo.auditopinion }}
+            </p>
+          </div>
+        </OpenCloseBox>
+      </div>
+    </div>
+    <span slot="footer" class="dialog-footer">
+      <el-button size="small" type="warning" @click="updatedCost" v-if="isAuditing">更改费用</el-button>
+      <el-button size="small" type="primary" style="background-color: #0EC216; border: 1px solid #0EC216"
+        @click="adjustFee"><span v-if="isAuditing">取消调整</span><span v-if="!isAuditing">调整费用</span></el-button>
+      <el-button size="small" type="primary"
+        style="background-color: #0EC216;border: 1px solid #0EC216;margin-right: 30px;"
+        @click="adusitFUn">审核通过</el-button>
+      <el-button size="small" type="primary" plain @click="dialogVisible = false">关闭</el-button>
+    </span>
+  </el-dialog>
+</template>
+<script>
+import OpenCloseBox from './openclose.vue'
+
+export default {
+  name: "detailsDialog",
+  data() {
+    return {
+      dialogVisible: false,
+      obj: {},
+      warrantObj: {},
+      selectedItem: null,
+      isAuditing: false,
+    };
+  },
+  props: {
+    orderInfo: {
+      type: Object,
+      default: {}
+    },
+    feeOrderNewVoList: Object,
+  },
+  components: { OpenCloseBox },
+  methods: {
+    adjustFee() {
+      this.isAuditing = !this.isAuditing;
+    },
+    adusitFUn() {
+      this.$emit('adusitFUn')
+    },
+    updatedCost() {
+      let newCost = {
+        deptManagerFee : this.feeOrderNewVoList.deptManagerFee,
+        feeOrder : this.feeOrderNewVoList.list,
+      }
+      this.$emit('updatedCost',newCost)
+      this.isAuditing=false;
+    },
+    feeOrderNewVomergeRows({ row, column, rowIndex, columnIndex }) {
+      if (columnIndex === 0) {
+        if (rowIndex === 0 || this.feeOrderNewVoList.list[rowIndex].type !== this.feeOrderNewVoList.list[rowIndex - 1].type) {
+          let rowSpan = 1;
+          for (let i = rowIndex + 1; i < this.feeOrderNewVoList.list.length; i++) {
+            if (this.feeOrderNewVoList.list[i].type === row.type) {
+              rowSpan++;
+            } else {
+              break;
+            }
+          }
+          return [rowSpan, 1];
+        } else {
+          return [0, 0];
+        }
+      }
+      return [1, 1];
+    },
+    selectItem(item) {
+      this.selectedItem = item;
+      document.getElementById(item).scrollIntoView({ behavior: "smooth" });
+    },
+    setBackupVisible: function (backupVisible) {
+      this.selectedItem = 'gsxx'
+      this.dialogVisible = backupVisible
+    },
+    imageFun(param) {
+      this.obj = param
+    },
+    warrantyFun(param) {
+      this.warrantObj = param
+
+    },
+    saveAs(blob, filename) {
+      var link = document.createElement("a");
+      link.href = window.URL.createObjectURL(blob);
+      link.target = "_ blank";
+      link.download = filename;
+      link.click();
+    },
+    //预览文件
+    viewfile(index) {
+      let name = index.fileurl.lastIndexOf("/");
+      fetch(index.fileurl)
+        .then((response) => response.blob())
+        .then((blob) => {
+          this.saveAs(
+            blob,
+            index.fileurl.substring(name + 1, index.fileurl.length)
+          );
+        })
+        .catch((error) => { });
+    },
+  }
+};
+</script>
+<style lang="scss" scoped>
+.details-body {
+  .tabLeft {
+    list-style: none;
+    padding-left: 0;
+    width: 100px;
+
+    li {
+      height: 40px;
+      line-height: 40px;
+      font-size: 14px;
+      font-weight: 500;
+      padding-left: 20px;
+      cursor: pointer;
+    }
+
+    li:hover {
+      color: var(--themeColor);
+    }
+  }
+
+  .li-selected {
+    color: var(--themeColor);
+    background-color: rgba(212, 36, 38, 0.06);
+  }
+}
+
+.icon-img {
+  width: 30px;
+  height: 30px;
+  vertical-align: bottom
+}
+
+.details-title {
+  font-weight: bold;
+  font-size: 16px;
+}
+
+.quotation-style {
+  font-size: 0;
+
+  b {
+    background: #F7F7F9;
+    font-size: 14px;
+  }
+
+  b,
+  span {
+    display: inline-block;
+    box-sizing: border-box;
+    width: 25%;
+    text-align: center;
+    line-height: 40px;
+    border: 1px solid #EEF1F6;
+    font-size: 14px;
+  }
+}
+
+.premium-style {
+  div {
+    padding: 5px 0;
+  }
+
+  span {
+    color: #868B98;
+  }
+}
+
+.driving-style {
+  span:first-child {
+    width: 70%;
+  }
+
+  b:first-child {
+    width: 70%;
+  }
+
+  b,
+  span {
+    width: 15%;
+  }
+}
+
+.tax-arrears {
+
+  b,
+  span {
+    width: 25%;
+  }
+}
+
+.kind-arrears {
+
+  b,
+  span {
+    width: 33.33%;
+  }
+}
+
+.imageStyle {
+  display: inline-block;
+  width: 120px;
+  height: 120px;
+  // box-shadow: #ddd 0px 0px 5px;
+  margin-right: 86px;
+  border: 1px dashed #CED4DA;
+  background: #F7F7F9;
+}
+
+.FeeEnclosure {
+  /deep/ table {
+    width: 100% !important;
+  }
+
+  /deep/ .cell {
+    text-align: center;
+  }
+
+  /deep/ .el-table__empty-block {
+    width: 100% !important;
+  }
+}
+
+/deep/ .el-dialog__body {
+  padding-top: 0;
+  border-bottom: 1px solid #EEF1F6;
+  background-color: rgb(242, 242, 242);
+  padding: 0;
+}
+</style>

+ 824 - 94
src/views/FinancialManagement/CarInsurance/Verifytasks/Verifyuntasks.vue

@@ -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 {

Fichier diff supprimé car celui-ci est trop grand
+ 303 - 503
src/views/Letter/Orderlist.vue


+ 3 - 1
src/views/Task/AgentPoolChannel/AgentPoolChannel.vue

@@ -354,9 +354,11 @@ export default {
       }
     },
     detailFun(row) {
+      this.orderInfo=row.row;
       let params = {
-        companyId: row.row.companyId
+        companyId: row.row.subOrderId
       };
+      this.cpolicy();
       this.$api.letter.getByCompanyId(params).then(res => {
         if (res.code == "200") {
           var data = res.data;

+ 3 - 1
src/views/Task/AgentPoolChannel/AgentPoolChannel1.vue

@@ -354,9 +354,11 @@ export default {
       }
     },
     detailFun(row) {
+      this.orderInfo=row.row;
       let params = {
-        companyId: row.row.companyId
+        companyId: row.row.subOrderId
       };
+      this.cpolicy();
       this.$api.letter.getByCompanyId(params).then(res => {
         if (res.code == "200") {
           var data = res.data;

+ 3 - 1
src/views/Task/AgentPoolChannel/AgentPoolChannel2.vue

@@ -354,9 +354,11 @@ export default {
       }
     },
     detailFun(row) {
+      this.orderInfo=row.row;
       let params = {
-        companyId: row.row.companyId
+        companyId: row.row.subOrderId
       };
+      this.cpolicy();
       this.$api.letter.getByCompanyId(params).then(res => {
         if (res.code == "200") {
           var data = res.data;

+ 3 - 1
src/views/Task/AgentPoolChannel/AgentPoolChannel3.vue

@@ -354,9 +354,11 @@ export default {
       }
     },
     detailFun(row) {
+      this.orderInfo=row.row;
       let params = {
-        companyId: row.row.companyId
+        companyId: row.row.subOrderId
       };
+      this.cpolicy();
       this.$api.letter.getByCompanyId(params).then(res => {
         if (res.code == "200") {
           var data = res.data;

+ 3 - 1
src/views/Task/AgentPoolChannel/AgentPoolChannel4.vue

@@ -353,9 +353,11 @@ export default {
       }
     },
     detailFun(row) {
+      this.orderInfo=row.row;
       let params = {
-        companyId: row.row.companyId
+        companyId: row.row.subOrderId
       };
+      this.cpolicy();
       this.$api.letter.getByCompanyId(params).then(res => {
         if (res.code == "200") {
           var data = res.data;

+ 3 - 1
src/views/Task/CompanyPoolChannel/CompanyPoolChannel.vue

@@ -354,9 +354,11 @@ export default {
       }
     },
     detailFun(row) {
+      this.orderInfo=row.row;
       let params = {
-        companyId: row.row.companyId
+        companyId: row.row.subOrderId
       };
+      this.cpolicy();
       this.$api.letter.getByCompanyId(params).then(res => {
         if (res.code == "200") {
           var data = res.data;

+ 3 - 1
src/views/Task/CompanyPoolChannel/CompanyPoolChannel1.vue

@@ -354,9 +354,11 @@ export default {
       }
     },
     detailFun(row) {
+      this.orderInfo=row.row;
       let params = {
-        companyId: row.row.companyId
+        companyId: row.row.subOrderId
       };
+      this.cpolicy();
       this.$api.letter.getByCompanyId(params).then(res => {
         if (res.code == "200") {
           var data = res.data;

+ 3 - 1
src/views/Task/CompanyPoolChannel/CompanyPoolChannel2.vue

@@ -354,9 +354,11 @@ export default {
       }
     },
     detailFun(row) {
+      this.orderInfo=row.row;
       let params = {
-        companyId: row.row.companyId
+        companyId: row.row.subOrderId
       };
+      this.cpolicy();
       this.$api.letter.getByCompanyId(params).then(res => {
         if (res.code == "200") {
           var data = res.data;

+ 3 - 1
src/views/Task/CompanyPoolChannel/CompanyPoolChannel3.vue

@@ -354,9 +354,11 @@ export default {
       }
     },
     detailFun(row) {
+      this.orderInfo=row.row;
       let params = {
-        companyId: row.row.companyId
+        companyId: row.row.subOrderId
       };
+      this.cpolicy();
       this.$api.letter.getByCompanyId(params).then(res => {
         if (res.code == "200") {
           var data = res.data;

+ 3 - 1
src/views/Task/CompanyPoolChannel/CompanyPoolChannel4.vue

@@ -354,9 +354,11 @@ export default {
       }
     },
     detailFun(row) {
+      this.orderInfo=row.row;
       let params = {
-        companyId: row.row.companyId
+        companyId: row.row.subOrderId
       };
+      this.cpolicy();
       this.$api.letter.getByCompanyId(params).then(res => {
         if (res.code == "200") {
           var data = res.data;

+ 3 - 1
src/views/Task/TaskPoolChannel/TaskPoolChannel.vue

@@ -355,9 +355,11 @@ export default {
       }
     },
     detailFun(row) {
+      this.orderInfo=row.row;
       let params = {
-        companyId: row.row.companyId
+        companyId: row.row.subOrderId
       };
+      this.cpolicy();
       this.$api.letter.getByCompanyId(params).then(res => {
         if (res.code == "200") {
           var data = res.data;

+ 3 - 1
src/views/Task/TaskPoolChannel/TaskPoolChannel1.vue

@@ -354,9 +354,11 @@ export default {
       }
     },
     detailFun(row) {
+      this.orderInfo=row.row;
       let params = {
-        companyId: row.row.companyId
+        companyId: row.row.subOrderId
       };
+      this.cpolicy();
       this.$api.letter.getByCompanyId(params).then(res => {
         if (res.code == "200") {
           var data = res.data;

+ 3 - 1
src/views/Task/TaskPoolChannel/TaskPoolChannel2.vue

@@ -354,9 +354,11 @@ export default {
       }
     },
     detailFun(row) {
+      this.orderInfo=row.row;
       let params = {
-        companyId: row.row.companyId
+        companyId: row.row.subOrderId
       };
+      this.cpolicy();
       this.$api.letter.getByCompanyId(params).then(res => {
         if (res.code == "200") {
           var data = res.data;

+ 3 - 1
src/views/Task/TaskPoolChannel/TaskPoolChannel3.vue

@@ -354,9 +354,11 @@ export default {
       }
     },
     detailFun(row) {
+      this.orderInfo=row.row;
       let params = {
-        companyId: row.row.companyId
+        companyId: row.row.subOrderId
       };
+      this.cpolicy();
       this.$api.letter.getByCompanyId(params).then(res => {
         if (res.code == "200") {
           var data = res.data;

+ 3 - 1
src/views/Task/TaskPoolChannel/TaskPoolChannel4.vue

@@ -354,9 +354,11 @@ export default {
       }
     },
     detailFun(row) {
+      this.orderInfo=row.row;
       let params = {
-        companyId: row.row.companyId
+        companyId: row.row.subOrderId
       };
+      this.cpolicy();
       this.$api.letter.getByCompanyId(params).then(res => {
         if (res.code == "200") {
           var data = res.data;

Fichier diff supprimé car celui-ci est trop grand
+ 149 - 566
src/views/Task/daikeComponents/KtLetter.vue


+ 697 - 15
src/views/Task/mixin.js

@@ -19,7 +19,7 @@ export const mixin = { // 导出混入对象
         { prop: "product", label: "投保险种", minWidth: 100 },
         { prop: "createtime", label: "录单日期", minWidth: 160, },
       ],
-      statusoptions: [],
+      statusoptions:"",
       dialogVisible: false,
       companyList: [], //保险公司
       institutionOptions: [], //机构名称列表
@@ -27,34 +27,716 @@ export const mixin = { // 导出混入对象
       transmitValue: "", //选中的转发人
       orderNo: '', //主订单号
       subOrderId: '', //子订单号
-      queryOrders: {}
+      queryOrders: {},
+      carImageList: [], //车辆影像
+      ownerImageList: [], //车主影像
+      policyImageList: [], //投保人影像
+      insuredImageList: [], //被保人影像
+      carCheckImageList: [], //验车照影像
+      quoteno:"",
+      oldfileList:[],
+      orderInfo:{},
     }
   },
   created() {
-    this.$api.insCompany.dicType("insOrderStatus").then(res => {
-      this.statusoptions = res.data.ddList;
-    });
     this.$api.letter.gainTopList().then(res => {
       this.companyList = res.data;
     });
     this.$api.dept.findAllTree().then(res => {
       this.institutionOptions = res.data;
     });
+    this.ImageList();
   },
   methods: {
+    cpolicy(){
+      this.oldfileList = [];
+      let businessList = []
+      let accidentList = []
+      if (this.orderInfo.orderstatus == "3") {
+        switch (this.orderInfo.inscompany) {
+          case "永安财险":
+            if (this.orderInfo.jqpolicyno) {
+              this.$api.letter
+                .getPolicyPrint({
+                  companyId: this.orderInfo.subOrderId,
+                  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: this.orderInfo.subOrderId,
+                  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: this.orderInfo.subOrderId,
+                  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: this.orderInfo.subOrderId,
+                  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: this.orderInfo.subOrderId,
+                  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: this.orderInfo.subOrderId,
+                  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: this.orderInfo.subOrderId,
+                  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: this.orderInfo.subOrderId,
+                  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: this.orderInfo.subOrderId,
+                    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: this.orderInfo.subOrderId,
+                  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: this.orderInfo.subOrderId,
+                  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: this.orderInfo.subOrderId,
+                    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: this.orderInfo.subOrderId,
+                  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: this.orderInfo.subOrderId,
+                  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: this.orderInfo.subOrderId,
+                  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: this.orderInfo.subOrderId,
+                    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: this.orderInfo.subOrderId,
+                  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: this.orderInfo.subOrderId,
+                  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: this.orderInfo.subOrderId,
+                  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: this.orderInfo.subOrderId,
+                    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: this.orderInfo.subOrderId,
+                })
+                .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: this.orderInfo.subOrderId,
+                })
+                .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: this.orderInfo.subOrderId,
+                  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: this.orderInfo.subOrderId,
+                  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: this.orderInfo.subOrderId,
+                  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: this.orderInfo.subOrderId,
+                    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);
+      }
+    },
+    ImageList(){
+       // 获取影像
+       this.$api.letter.findByQuoteNo(this.orderInfo.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);
+      });
+    },
+    toChinesNum(num) {
+      if (num.toString().length == 4) {
+        let overQian = Math.floor(num / 1000);
+        let result = overQian + "千";
+        return result;
+      } else {
+        let overWan = Math.floor(num / 10000);
+        let result = overWan + "万";
+        return result;
+      }
+    },
     useridFormatter(row, column) {
       let data = row.username + `(${row.userid})`
       return data;
     },
-    statusFormatter(row, column) {
-      //协议类型
-      let status = row.orderstatus;
-      return CommonUtil.getDataName({
-        dataList: this.statusoptions,
-        value: "dictValue",
-        label: "dictTag",
-        data: status
-      });
-    },
   }
 }

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff