Explorar o código

修改二维码生成

@dongkboy %!s(int64=2) %!d(string=hai) anos
pai
achega
2ce20f56ea
Modificáronse 2 ficheiros con 743 adicións e 749 borrados
  1. 190 195
      src/views/Task/daikeComponents/KtLetter.vue
  2. 553 554
      src/views/Task/daikeComponents/KtOrder.vue

+ 190 - 195
src/views/Task/daikeComponents/KtLetter.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="body">
-    <div class="Enclosure flex f-c back" v-if="isLetter=='1'">
+    <div class="Enclosure flex f-c back" v-if="isLetter == '1'">
       <div class="home flex j-s a-c">
         <div class="flex j-s a-c">
           <img src="../../../../src/icon/归属信息.png" alt class="icon-img" />
@@ -36,7 +36,7 @@
         </el-row>
       </el-form>
     </div>
-    <div class="Enclosure flex f-c back" v-if="isLetter=='1'">
+    <div class="Enclosure flex f-c back" v-if="isLetter == '1'">
       <div class="home flex j-s a-c">
         <div class="flex j-s a-c">
           <img src="../../../../src/icon/快速查询.png" alt class="icon-img" />
@@ -641,7 +641,7 @@
         </el-row>
       </el-form>
     </div>
-    
+
     <div class="Enclosure flex f-c back">
       <div class="home flex j-s a-c back">
         <div class="flex j-s a-c" id="more">
@@ -694,85 +694,92 @@
         </div>-->
       </div>
     </div>
-    <div class="Enclosure flex f-c back" v-if="isLetter=='3'">
+    <div class="Enclosure flex f-c back" v-if="isLetter == '3'">
       <div class="home flex j-s a-c">
         <div class="flex j-s a-c color" id="Waibu">
           <img src="../../../../src/icon/车船税.png" alt class="icon-img" />
           <span style="margin-left:10px;">外部订单</span>
         </div>
         <div class="flex j-c a-c">
-            <el-button v-show="policyNumberForm.jqpolicyno || policyNumberForm.sypolicyno" size="small" type="primary" @click="policyUpload()">
-              <i class="el-icon-camera-solid" style="margin-right:4px;"></i>
-              保单上传
-            </el-button>
-          </div>
+          <el-button v-show="policyNumberForm.jqpolicyno || policyNumberForm.sypolicyno" size="small" type="primary"
+            @click="policyUpload()">
+            <i class="el-icon-camera-solid" style="margin-right:4px;"></i>
+            保单上传
+          </el-button>
+        </div>
       </div>
-      <el-form class="demo-ruleForm" :model="policyNumberForm" ref="policyNumberForm" :rules="rules"
-        label-width="160px" size="small" style="margin-top: 15px" label-position="top">
+      <el-form class="demo-ruleForm" :model="policyNumberForm" ref="policyNumberForm" :rules="rules" label-width="160px"
+        size="small" style="margin-top: 15px" label-position="top">
         <el-row style="flex-wrap: wrap; display: flex;">
           <el-col :span="5">
             <el-form-item label="交强保单号" prop="jqpolicyno">
               <el-input v-model="policyNumberForm.jqpolicyno" placeholder="请输入交强保单号" type="text"></el-input>
             </el-form-item>
           </el-col>
-          <el-col  :span="5" :offset="1">
+          <el-col :span="5" :offset="1">
             <el-form-item label="商业保单号" prop="sypolicyno">
               <el-input v-model="policyNumberForm.sypolicyno" placeholder="请输入商业保单号" type="text"></el-input>
             </el-form-item>
           </el-col>
-          <el-col  :span="5" :offset="1">
+          <el-col :span="5" :offset="1">
             <el-form-item label="驾意保单号" prop="jypolicyno">
               <el-input v-model="policyNumberForm.jypolicyno" placeholder="请输入驾意保单号" type="text"></el-input>
             </el-form-item>
           </el-col>
-          <el-col  :span="5" :offset="1">
+          <el-col :span="5" :offset="1">
             <el-form-item label="交强险费用" prop="jqpremium">
               <el-input v-model="policyNumberForm.jqpremium" placeholder="请输入交强险费用" type="text"></el-input>
             </el-form-item>
           </el-col>
-          <el-col  :span="5" >
+          <el-col :span="5">
             <el-form-item label="商业险费用" prop="sypremium">
               <el-input v-model="policyNumberForm.sypremium" placeholder="请输入商业险费用" type="text"></el-input>
             </el-form-item>
           </el-col>
-          <el-col  :span="5" :offset="1">
+          <el-col :span="5" :offset="1">
             <el-form-item label="驾意险费用" prop="jypremium">
               <el-input v-model="policyNumberForm.jypremium" placeholder="请输入驾意险费用" type="text"></el-input>
             </el-form-item>
           </el-col>
-          <el-col  :span="5" :offset="1">
+          <el-col :span="5" :offset="1">
             <el-form-item label="车船税" prop="taxamount">
               <el-input v-model="policyNumberForm.taxamount" placeholder="请输入车船税" type="text"></el-input>
             </el-form-item>
           </el-col>
-          <el-col  :span="5" :offset="1">
+          <el-col :span="5" :offset="1">
             <el-form-item label="交强险手续费比例" prop="jqSuperviseCostsProportion">
-              <el-input v-model="policyNumberForm.jqSuperviseCostsProportion" placeholder="请输入交强险手续费比例" type="text"></el-input>
+              <el-input v-model="policyNumberForm.jqSuperviseCostsProportion" placeholder="请输入交强险手续费比例"
+                type="text"></el-input>
             </el-form-item>
           </el-col>
-          <el-col  :span="5" >
+          <el-col :span="5">
             <el-form-item label="商业险手续费比例" prop="sySuperviseCostsProportion">
-              <el-input v-model="policyNumberForm.sySuperviseCostsProportion" placeholder="请输入商业险手续费比例" type="text"></el-input>
+              <el-input v-model="policyNumberForm.sySuperviseCostsProportion" placeholder="请输入商业险手续费比例"
+                type="text"></el-input>
             </el-form-item>
           </el-col>
-          <el-col  :span="5" :offset="1">
+          <el-col :span="5" :offset="1">
             <el-form-item label="非车手续费比例" prop="noSuperviseCostsProportion">
-              <el-input v-model="policyNumberForm.noSuperviseCostsProportion" placeholder="请输入非车手续费比例" type="text"></el-input>
+              <el-input v-model="policyNumberForm.noSuperviseCostsProportion" placeholder="请输入非车手续费比例"
+                type="text"></el-input>
             </el-form-item>
           </el-col>
-          <el-col  :span="5" :offset="1">
+          <el-col :span="5" :offset="1">
             <el-form-item label="交强险其他费用比例" prop="jqOtherCostsProportion">
-              <el-input v-model="policyNumberForm.jqOtherCostsProportion" placeholder="请输入交强险其他费用比例" type="text"></el-input>
+              <el-input v-model="policyNumberForm.jqOtherCostsProportion" placeholder="请输入交强险其他费用比例"
+                type="text"></el-input>
             </el-form-item>
           </el-col>
-          <el-col  :span="5" :offset="1">
+          <el-col :span="5" :offset="1">
             <el-form-item label="商业险其他费用比例" prop="syOtherCostsProportion">
-              <el-input v-model="policyNumberForm.syOtherCostsProportion" placeholder="请输入商业险其他费用比例" type="text"></el-input>
+              <el-input v-model="policyNumberForm.syOtherCostsProportion" placeholder="请输入商业险其他费用比例"
+                type="text"></el-input>
             </el-form-item>
           </el-col>
-          <el-col  :span="5" >
+          <el-col :span="5">
             <el-form-item label="非车其他费用比例" prop="noOtherCostsProportion">
-              <el-input v-model="policyNumberForm.noOtherCostsProportion" placeholder="请输入非车其他费用比例" type="text"></el-input>
+              <el-input v-model="policyNumberForm.noOtherCostsProportion" placeholder="请输入非车其他费用比例"
+                type="text"></el-input>
             </el-form-item>
           </el-col>
         </el-row>
@@ -811,7 +818,8 @@
         <div class="companyhead">
           <el-row>
             <el-col :span="1">
-              <el-checkbox  v-if="isLetter!=='3'" style="margin:0 10px 0 10px" @change="handleCheckAllChange"></el-checkbox>
+              <el-checkbox v-if="isLetter !== '3'" style="margin:0 10px 0 10px"
+                @change="handleCheckAllChange"></el-checkbox>
               <span style="font-size:14px;">全选</span>
             </el-col>
             <el-col :span="2" style="margin: 0 42px 0 35px;">
@@ -841,7 +849,7 @@
           <div v-loading.fullscreen.lock="loading" class="hovers" v-for="(reslistitem, reslistindex) in totalCompanyList"
             :key="reslistindex">
             <el-row>
-              <el-col  :span="1" style="margin-left: 20px;">
+              <el-col :span="1" style="margin-left: 20px;">
                 <el-checkbox v-model="reslistitem.checked" :disabled="reslistitem.disabled"
                   @change="event => initchange(event, reslistitem.id, reslistitem.cnName, reslistindex)"></el-checkbox>
               </el-col>
@@ -1089,7 +1097,8 @@
                 style="margin:20px 20px 0 100px;display: inline-block">{{ reslistitem.underwritingDescription }}</span>
               <!-- </div> -->
             </template>
-            <template v-if="reslistitem.namesimple == '恒邦财险' && reslistitem.checked && reslistitem.agreementId && isLetter!=='3'">
+            <template
+              v-if="reslistitem.namesimple == '恒邦财险' && reslistitem.checked && reslistitem.agreementId && isLetter !== '3'">
               <div class="flex f-c Driving-risk">
                 <div class="dis a-c" style="margin:15px 0">
                   <span style="margin-right:15px;font-weight:bold">选择意外险</span>
@@ -1119,7 +1128,8 @@
                 </el-table>
               </div>
             </template>
-            <template v-if="reslistitem.namesimple == '华农财险' && reslistitem.checked && reslistitem.agreementId &&isLetter!=='3'">
+            <template
+              v-if="reslistitem.namesimple == '华农财险' && reslistitem.checked && reslistitem.agreementId && isLetter !== '3'">
               <div class="flex f-c Driving-risk">
                 <el-form :inline="true" :model="accidentFormHN" class="demo-form-inline"
                   style="font-weight:bold;margin-top:15px" size="small">
@@ -1148,7 +1158,8 @@
                 </el-table>
               </div>
             </template>
-            <template v-if="reslistitem.namesimple == '太平财险' && reslistitem.checked && reslistitem.agreementId &&isLetter!=='3'">
+            <template
+              v-if="reslistitem.namesimple == '太平财险' && reslistitem.checked && reslistitem.agreementId && isLetter !== '3'">
               <div class="flex f-c Driving-risk">
                 <div class="dis a-c" style="margin:15px 0">
                   <span style="margin-right:15px;font-weight:bold">选择意外险</span>
@@ -1168,7 +1179,8 @@
                 </el-table>
               </div>
             </template>
-            <template v-if="reslistitem.namesimple == '安盛天平' && reslistitem.checked && reslistitem.agreementId && isLetter!=='3'">
+            <template
+              v-if="reslistitem.namesimple == '安盛天平' && reslistitem.checked && reslistitem.agreementId && isLetter !== '3'">
               <div class="flex f-c Driving-risk">
                 <div class="dis a-c" style="margin-top:15px">
                   <span style="margin-right:15px;font-weight:bold;">意外险类型</span>
@@ -1193,7 +1205,8 @@
                 </el-table>
               </div>
             </template>
-            <template v-if="reslistitem.namesimple == '中国人寿' && reslistitem.checked && reslistitem.agreementId&& isLetter!=='3'">
+            <template
+              v-if="reslistitem.namesimple == '中国人寿' && reslistitem.checked && reslistitem.agreementId && isLetter !== '3'">
               <div style="margin:15px 0 15px 100px">
                 <span>商业险折扣:</span>
                 <el-input style="width:220px" :disabled="!lastCompanyId" size="small" v-model="reslistitem.discount"
@@ -1226,7 +1239,8 @@
                 </el-table>
               </div>
             </template>
-            <template v-if="reslistitem.namesimple == '众安财险' && reslistitem.checked && reslistitem.agreementId && isLetter!=='3'">
+            <template
+              v-if="reslistitem.namesimple == '众安财险' && reslistitem.checked && reslistitem.agreementId && isLetter !== '3'">
               <div class="flex f-c Driving-risk">
                 <div class="dis a-c" style="margin:15px 0">
                   <span style="margin-right:15px;font-weight:bold">选择意外险</span>
@@ -1245,7 +1259,8 @@
                 </el-table>
               </div>
             </template>
-            <template v-if="reslistitem.namesimple == '紫金财险' && reslistitem.checked && reslistitem.agreementId && isLetter!=='3'">
+            <template
+              v-if="reslistitem.namesimple == '紫金财险' && reslistitem.checked && reslistitem.agreementId && isLetter !== '3'">
               <div style="margin:15px 0 15px 100px">
                 <span>自主定价系数:</span>
                 <el-input style="width:220px" size="small" v-model="reslistitem.coefficient"
@@ -1287,7 +1302,8 @@
                 </el-table>
               </div>
             </template>
-            <template v-if="reslistitem.namesimple == '永诚财险' && reslistitem.checked && reslistitem.agreementId && isLetter!=='3'">
+            <template
+              v-if="reslistitem.namesimple == '永诚财险' && reslistitem.checked && reslistitem.agreementId && isLetter !== '3'">
               <div class="flex f-c Driving-risk">
                 <el-form :inline="true" :model="accidentForm" class="demo-form-inline" size="small"
                   style="font-weight:bold;margin-top:15px">
@@ -1317,7 +1333,8 @@
                 </el-table>
               </div>
             </template>
-            <template v-if="reslistitem.namesimple == '国任财险' && reslistitem.checked && reslistitem.agreementId && isLetter!=='3'">
+            <template
+              v-if="reslistitem.namesimple == '国任财险' && reslistitem.checked && reslistitem.agreementId && isLetter !== '3'">
               <!-- <div style="margin:10px 0 0 100px;">
               <span style="margin-right:20px"> {{reslistitem.underwritingDescription}}</span>-->
               <el-button type="text" style="margin:10px 0 0 100px;"
@@ -1358,7 +1375,8 @@
                 </el-table>
               </div>
             </template>
-            <template v-if="reslistitem.namesimple == '中煤财险' && reslistitem.checked && reslistitem.agreementId && isLetter!=='3'">
+            <template
+              v-if="reslistitem.namesimple == '中煤财险' && reslistitem.checked && reslistitem.agreementId && isLetter !== '3'">
               <div class="flex f-c Driving-risk accident-style zmDriving">
                 <el-form :inline="true" :model="accidentFormZM" class="demo-form-inline" size="small"
                   style="font-weight:bold;margin-top:15px">
@@ -1399,7 +1417,8 @@
                 </el-table>
               </div>
             </template>
-            <template v-if="reslistitem.namesimple == '大家财险' && reslistitem.checked && reslistitem.agreementId && isLetter!=='3'">
+            <template
+              v-if="reslistitem.namesimple == '大家财险' && reslistitem.checked && reslistitem.agreementId && isLetter !== '3'">
               <div class="flex f-c Driving-risk">
                 <div class="dis a-c" style="margin-top:15px">
                   <span style="margin-right:15px;font-weight:bold">选择意外险</span>
@@ -1419,7 +1438,8 @@
                 </el-table>
               </div>
             </template>
-            <template v-if="reslistitem.namesimple == '渤海财险' && reslistitem.checked && reslistitem.agreementId && isLetter!=='3'">
+            <template
+              v-if="reslistitem.namesimple == '渤海财险' && reslistitem.checked && reslistitem.agreementId && isLetter !== '3'">
               <div class="flex f-c Driving-risk" style="margin-top:15px">
                 <el-form :inline="true" :model="boHaiaccidentForm" class="demo-form-inline" size="small">
                   <el-form-item label="意外险类型" style="margin-right:30px;">
@@ -1451,7 +1471,7 @@
         </div>
       </div>
     </div>
-    <div class="Enclosure flex f-c" v-if="isLetter=='1'">
+    <div class="Enclosure flex f-c" v-if="isLetter == '1'">
       <div class="home flex j-s a-c back">
         <div class="flex j-s a-c color">
           <img src="../../../../src/icon/报价历史.png" alt class="icon-img" />
@@ -2120,20 +2140,20 @@
         <el-button size="small" type="primary" @click="uploadinformation">上传资料</el-button>
       </span>
     </el-dialog>
-    <div v-if="isLetter=='1'" class="flex j-c a-c" :class="{
+    <div v-if="isLetter == '1'" class="flex j-c a-c" :class="{
       'footer': true,
       'shadow': !isBottom
     }">
       <el-button size="small" @click="add()">录下一单</el-button>
       <el-button type="primary" :loading="calculateLoading" size="small" @click="quote()">保费计算</el-button>
     </div>
-    <div v-if="isLetter=='2'" style="text-align: center">
+    <div v-if="isLetter == '2'" style="text-align: center">
       <el-button type="primary" :loading="calculateLoading" size="small" @click="quote()">保费计算</el-button>
     </div>
-    <div v-if="isLetter=='3'" style="text-align: center">
+    <div v-if="isLetter == '3'" style="text-align: center">
       <el-button type="primary" size="small" @click="preserveQuote()" :loading="preserveQuoteLoading">保存</el-button>
     </div>
-    <div class="Anchor-link flex f-c j-s a-c" v-if="isLetter=='1'">
+    <div class="Anchor-link flex f-c j-s a-c" v-if="isLetter == '1'">
       <div>
         <img src="../../../../src/icon/车辆信息.png" alt class="icon-img" @click="handleScroll('Car')" />
       </div>
@@ -2218,62 +2238,34 @@
     <el-dialog :visible.sync="policyUploaddialogVisible" width="30%">
       <div slot="title" class="dialog-title">
         <span>保单上传</span>
-      </div >
+      </div>
       <el-form :model="policyNumberForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
         <el-form-item label="交强保单:" prop="jqPolicy">
-          <el-upload
-            class="upload-demo"
-            ref="jqPolicyupload"
-            action="#"
-            :limit="1" 
-            :auto-upload="false"
-            :file-list="fileListjqPolicy"
-            :on-change="file => policydrivingupload(file, 'jqPolicy')" 
-           >
+          <el-upload class="upload-demo" ref="jqPolicyupload" action="#" :limit="1" :auto-upload="false"
+            :file-list="fileListjqPolicy" :on-change="file => policydrivingupload(file, 'jqPolicy')">
             <el-button size="small" type="primary">点击上传</el-button>
           </el-upload>
         </el-form-item>
         <el-form-item label="商业保单:" prop="syPolicy">
-          <el-upload
-            class="upload-demo"
-            ref="syPolicyupload"
-            action="#"
-            :limit="1" 
-            :auto-upload="false"
-            :file-list="fileListnoPolicy"
-            :on-change="file => policydrivingupload(file, 'syPolicy')" 
-           >
+          <el-upload class="upload-demo" ref="syPolicyupload" action="#" :limit="1" :auto-upload="false"
+            :file-list="fileListnoPolicy" :on-change="file => policydrivingupload(file, 'syPolicy')">
             <el-button size="small" type="primary">点击上传</el-button>
           </el-upload>
         </el-form-item>
         <el-form-item label="非车保单:" prop="noPolicy">
-          <el-upload
-            class="upload-demo"
-            ref="noPolicyupload"
-            action="#"
-            :limit="1" 
-            :auto-upload="false"
-            :file-list="fileListnoPolicy"
-            :on-change="file => policydrivingupload(file, 'noPolicy')" 
-           >
+          <el-upload class="upload-demo" ref="noPolicyupload" action="#" :limit="1" :auto-upload="false"
+            :file-list="fileListnoPolicy" :on-change="file => policydrivingupload(file, 'noPolicy')">
             <el-button size="small" type="primary">点击上传</el-button>
           </el-upload>
         </el-form-item>
         <el-form-item label="交强电子标志:" prop="jqSign">
-          <el-upload
-            class="upload-demo"
-            ref="jqSignupload"
-            action="#"
-            :limit="1" 
-            :auto-upload="false"
-            :file-list="fileListjqSign"
-            :on-change="file => policydrivingupload(file, 'jqSign')" 
-           >
+          <el-upload class="upload-demo" ref="jqSignupload" action="#" :limit="1" :auto-upload="false"
+            :file-list="fileListjqSign" :on-change="file => policydrivingupload(file, 'jqSign')">
             <el-button size="small" type="primary">点击上传</el-button>
           </el-upload>
         </el-form-item>
       </el-form>
-         
+
       <span slot="footer" class="dialog-footer">
         <el-button size="small" @click="policyUploaddialogVisible = false">取 消</el-button>
         <el-button size="small" type="primary" @click="policyUploaddialogVisible = false">确 定</el-button>
@@ -2337,20 +2329,20 @@ export default {
       }
     };
     return {
-      policyNumberForm:{
+      policyNumberForm: {
         jqpolicyno: '',
-         sypolicyno: '',
+        sypolicyno: '',
         jypolicyno: '',
-        jqpremium:'',
+        jqpremium: '',
         sypremium: '',
-        jypremium:'',
+        jypremium: '',
         taxamount: '',
         jqSuperviseCostsProportion: '',
         sySuperviseCostsProportion: '',
         noSuperviseCostsProportion: '',
         jqOtherCostsProportion: '',
         syOtherCostsProportion: '',
-        noOtherCostsProportion:'',
+        noOtherCostsProportion: '',
       },
       watermarkedImage: '',
       redictInfoMsg: [],
@@ -2437,7 +2429,7 @@ export default {
       taipingaccidentalDrivingVo: {}, //太平驾意险
       licenseplate: true,
       calculateLoading: false, //保费计算按钮 节流
-      preserveQuoteLoading:false,//保存按钮
+      preserveQuoteLoading: false,//保存按钮
       accidentForm: {
         quantity: "1",
         sumPremium: 0
@@ -2541,7 +2533,7 @@ export default {
       uploadcardialogVisible: false, //行驶证识别     显示/隐藏
       uploaduserdialogVisible: false, //身份证识别     显示/隐藏
       imageUploaddialogVisible: false, //影像上传     显示/隐藏
-      policyUploaddialogVisible:false,  //保单上传
+      policyUploaddialogVisible: false,  //保单上传
       underwritingdialogVisible: false, //核保信息   显示/隐藏
       renewalCodedialogVisible: false, //转保确认码输入
       hbsubmitdialogVisible: false, //核保弹框
@@ -3651,12 +3643,12 @@ export default {
       insOrderStatusoptions: [],
       lastCompanyId: "",
       apiInterfaceName: 'generateOrder',
-      isLetter3Arr:[],
-      isLetter3agreementId:'',
-      fileListnoPolicy:[],
-      fileListnoPolicy:[],
-      fileListjqSign:[],
-      fileListjqPolicy:[],
+      isLetter3Arr: [],
+      isLetter3agreementId: '',
+      fileListnoPolicy: [],
+      fileListnoPolicy: [],
+      fileListjqSign: [],
+      fileListjqPolicy: [],
     };
   },
   watch: {
@@ -3759,7 +3751,7 @@ export default {
       import("element-ui/packages/image/src/image-viewer")
   },
   created() {
-    if (this.isLetter=='2') {
+    if (this.isLetter == '2') {
       this.apiInterfaceName = 'ordergenerateOrder'
     }
     // this.commpanyList(); //获取保险公司
@@ -4539,13 +4531,13 @@ export default {
     },
     async obtainProtocol(data) {
       let res = {}
-      if (this.isLetter=='1') {
+      if (this.isLetter == '1') {
         res = await this.$api.letter.getAllAgreement()
       }
-      if (this.isLetter=='2') {
+      if (this.isLetter == '2') {
         res = await this.$api.letter.getAllAgreementByUserId({ userId: this.userId })
       }
-      if (this.isLetter=='3') {
+      if (this.isLetter == '3') {
         res = await this.$api.letter.getExternalAgreement()
       }
       if (res.code == 200) {
@@ -4629,9 +4621,9 @@ export default {
     //选择协议  val:协议id  row:协议列表  index:下标  item:保险公司数据集合
     agreementChange(val, row, index, item) {
       this.kindListFun()
-      if(this.isLetter=='3'){
-          this.isLetter3agreementId=''
-          this.isLetter3agreementId=item.agreementId
+      if (this.isLetter == '3') {
+        this.isLetter3agreementId = ''
+        this.isLetter3agreementId = item.agreementId
       }
       let obj = {};
       obj = row.find(item => {
@@ -4920,22 +4912,22 @@ export default {
           arr.splice(index, 1);
         }
       }
-      if(arr.length==0){
-        this.totalCompanyList.forEach(e=>{
-          e.disabled=false
+      if (arr.length == 0) {
+        this.totalCompanyList.forEach(e => {
+          e.disabled = false
         })
       }
-      else{
-        this.totalCompanyList.forEach(e=>{
-          e.disabled= e.id==arr[0]?false:true
+      else {
+        this.totalCompanyList.forEach(e => {
+          e.disabled = e.id == arr[0] ? false : true
         })
       }
 
     },
     //勾选保险公司
     initchange(e, code, name, index) {
-      if(this.isLetter=='3'){
-        this.updateArray(this.isLetter3Arr,code,e)
+      if (this.isLetter == '3') {
+        this.updateArray(this.isLetter3Arr, code, e)
       }
       if (e) {
         this.kindListFun()
@@ -5244,20 +5236,22 @@ export default {
         window.open(fileURL);
       }
     },
-    creatQrCode(text) {
-      if (this.qrcode) {
-        this.qrcode.clear();
-        this.qrcode.makeCode(text);
-      } else {
-        this.qrcode = new QRCode("qrcode", {
-          text: text,
-          width: this.qrcodeWidth,
-          height: this.qrcodeHeight,
-          colorDark: "#000000",
-          colorLight: "#ffffff",
-          correctLevel: QRCode.CorrectLevel.H
-        });
-      }
+     //二维码生成插件
+     creatQrCode(text) {
+      // 查找并删除旧的二维码DOM元素
+      let element = document.getElementById("qrcode");
+      while (element.firstChild) {
+        element.removeChild(element.firstChild);
+      }
+      // 创建新的QRCode实例
+      this.qrcode = new QRCode("qrcode", {
+        text: text,
+        width: this.qrcodeWidth,
+        height: this.qrcodeHeight,
+        colorDark: "#000000",
+        colorLight: "#ffffff",
+        correctLevel: QRCode.CorrectLevel.H
+      });
     },
     //人工核保
     underwriting(id) {
@@ -5291,7 +5285,7 @@ export default {
       }
     },
     // 保存
-    preserveQuote(){
+    preserveQuote() {
       let starttime = new Date(this.carInfo.registerDate);
       let endtime = new Date(this.carInfo.issueDate);
       if (endtime < starttime) {
@@ -5303,8 +5297,8 @@ export default {
           var _this = this;
           _this.$refs["ownerInfo"].validate(valid1 => {
             if (valid1) {
-            //   _this.$refs["policyNumberForm"].validate(valid2 => {
-            // if (valid2) {
+              //   _this.$refs["policyNumberForm"].validate(valid2 => {
+              // if (valid2) {
               if (_this.tbczcarShow == true) {
                 _this.policyHolderInfo = JSON.parse(
                   JSON.stringify(_this.ownerInfo)
@@ -5407,12 +5401,12 @@ export default {
                 }
                 this.preserveOrderStageProcessing();
               }
-            //  }
-            //  else {
-            //   document.getElementById("Waibu").scrollIntoView();
-            //   _this.$message({ message: "请检查外部订单信息", type: "warning" });
-            // }
-            // })
+              //  }
+              //  else {
+              //   document.getElementById("Waibu").scrollIntoView();
+              //   _this.$message({ message: "请检查外部订单信息", type: "warning" });
+              // }
+              // })
             } else {
               document.getElementById("CheZhu").scrollIntoView();
               _this.$message({ message: "请检查人员信息", type: "warning" });
@@ -5425,9 +5419,9 @@ export default {
         }
       });
     },
-       //订单生成后保存接口
-       preserveOrderStageProcessing() {
-        this.preserveQuoteLoading=true
+    //订单生成后保存接口
+    preserveOrderStageProcessing() {
+      this.preserveQuoteLoading = true
       if (this.tbczcarShow && this.imageList2.length > 0) {
         //投保人同车主
         this.imageList3 = JSON.parse(JSON.stringify(this.imageList2));
@@ -5451,7 +5445,7 @@ export default {
             e.imageType = e.imageType.includes('C0') ? "C04" : 'D04'
           })
         }
-       
+
       }
       if (this.bbtbcarShow && this.imageList3.length > 0) {
         //被保人同投保人
@@ -5510,13 +5504,13 @@ export default {
         policyHolderInfo: this.policyHolderInfo,
         kindList: this.kindList,
         riskList: this.riskList,
-        isExternal:'1',
+        isExternal: '1',
         vehicleAndVesselTax: this.vehicleAndVesselTaxForm
       };
       this.$api.letter.generateOrder(param).then(res => {
         if (res.code == "200") {
-           //上传图片
-           const mergedArray = [
+          //上传图片
+          const mergedArray = [
             ...this.imageList1,
             ...this.imageList2,
             ...this.imageList3,
@@ -5532,27 +5526,27 @@ export default {
               this.imageEcho(res.data.quoteno); // 获取图片
             });
           }
-        
+
           let params = {
             orderNo: res.data.orderno,
             ...this.policyNumberForm,
             agreementId: this.isLetter3agreementId
           };
           this.$api.letter.saveSubOrder(params).then(res => {
-            if(res.code == "200"){
-              this.preserveQuoteLoading=false
+            if (res.code == "200") {
+              this.preserveQuoteLoading = false
               this.$message({
                 message: res.msg,
                 type: 'success'
               });
-            }else {
-          this.preserveQuoteLoading=false
-          this.$message.error( res.msg);
-        }
+            } else {
+              this.preserveQuoteLoading = false
+              this.$message.error(res.msg);
+            }
           })
         } else {
-          this.preserveQuoteLoading=false
-          this.$message.error( res.msg);
+          this.preserveQuoteLoading = false
+          this.$message.error(res.msg);
 
         }
       });
@@ -8005,8 +7999,8 @@ export default {
         }
       });
     },
-    policydrivingupload(file,val){
-      this['fileList'+val]=[]
+    policydrivingupload(file, val) {
+      this['fileList' + val] = []
       this.$refs.jqPolicyupload.clearFiles()
       var file = file.raw;
       const params = new FormData(); // 声明formData数据类型
@@ -8014,9 +8008,9 @@ export default {
       params.append("type", "file");
       this.$api.letter.uploadFile(params).then(res => {
         if (res.code == "200") {
-          res.data.name= res.data.fileName
-          this['fileList'+val].push(res.data)
-          this.policyNumberForm[val]=res.data.url
+          res.data.name = res.data.fileName
+          this['fileList' + val].push(res.data)
+          this.policyNumberForm[val] = res.data.url
         }
       });
     },
@@ -8464,7 +8458,7 @@ export default {
         default:
       }
     },
-   
+
     // 关闭查看器
     closeViewer() {
       this.showViewer = false;
@@ -8775,7 +8769,7 @@ export default {
     },
     add() {
       this.obtainProtocol();
-      if (this.isLetter=='1') {
+      if (this.isLetter == '1') {
         this.$router.push({ path: "/letter/letter" });
       }
       for (let key in this.ownerInfo) {
@@ -9349,49 +9343,50 @@ export default {
   /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
 }
 
-.aaa{
+.aaa {
   /deep/ {
-  margin-bottom: 20px;
-  margin-right: 50px;
+    margin-bottom: 20px;
+    margin-right: 50px;
 
-  span {
-    display: inline-block;
-    margin-bottom: 10px;
-  }
+    span {
+      display: inline-block;
+      margin-bottom: 10px;
+    }
 
-  .el-upload .el-upload-dragger {
-    width: 180px;
-    height: 120px;
-    border: 1px dashed #c0ccda;
-    padding: 0;
-  }
+    .el-upload .el-upload-dragger {
+      width: 180px;
+      height: 120px;
+      border: 1px dashed #c0ccda;
+      padding: 0;
+    }
 
-  .el-upload-list--picture-card .el-upload-list__item {
-    width: 180px;
-    height: 120px;
-  }
+    .el-upload-list--picture-card .el-upload-list__item {
+      width: 180px;
+      height: 120px;
+    }
 
-  .el-upload-list__item:first-child {
-    margin-top: 0;
-  }
-  .el-upload--picture-card {
-    width: 180px;
-    height: 120px;
-  }
+    .el-upload-list__item:first-child {
+      margin-top: 0;
+    }
 
-  .el-upload-list__item {
-    width: 180px;
-    height: 120px;
-    margin: 0 !important;
-    display: block !important;
-  }
+    .el-upload--picture-card {
+      width: 180px;
+      height: 120px;
+    }
 
-  .el-upload-list--picture-card .el-upload-list__item-thumbnail {
-    width: 180px;
-    height: 120px;
+    .el-upload-list__item {
+      width: 180px;
+      height: 120px;
+      margin: 0 !important;
+      display: block !important;
+    }
+
+    .el-upload-list--picture-card .el-upload-list__item-thumbnail {
+      width: 180px;
+      height: 120px;
+    }
   }
 }
-} 
 
 .jyxStyle>span {
   display: inline-block;
@@ -9471,7 +9466,7 @@ export default {
     border: 1px dashed #ced4da;
   }
 
- 
+
 
   // .el-button--warning {
   //   color: #fff;

+ 553 - 554
src/views/Task/daikeComponents/KtOrder.vue

@@ -761,21 +761,21 @@ export default {
     },
     //二维码生成插件
     creatQrCode(text) {
-      if (this.qrcode) {
-        this.qrcode.clear();
-        this.qrcode.makeCode(text);
-      } else {
-        this.qrcode = new QRCode("qrcode", {
-          text: text,
-          width: this.qrcodeWidth,
-          height: this.qrcodeHeight,
-          colorDark: "#000000",
-          colorLight: "#ffffff",
-          correctLevel: QRCode.CorrectLevel.H
-        });
+      // 查找并删除旧的二维码DOM元素
+      let element = document.getElementById("qrcode");
+      while (element.firstChild) {
+        element.removeChild(element.firstChild);
       }
+      // 创建新的QRCode实例
+      this.qrcode = new QRCode("qrcode", {
+        text: text,
+        width: this.qrcodeWidth,
+        height: this.qrcodeHeight,
+        colorDark: "#000000",
+        colorLight: "#ffffff",
+        correctLevel: QRCode.CorrectLevel.H
+      });
     },
-
     //查询缴费状态
     refreshStatus(item) {
       let inscompany = {
@@ -994,7 +994,6 @@ export default {
     },
     //二维码
     carcode(item) {
-      console.log(item)
       this.$api.letter.getQrCode(item.id).then(res => {
         if (res.code == "200") {
           this.inscompany = res.data.inscompany; //保险公司
@@ -1284,11 +1283,11 @@ export default {
           let businessList = [];
           let accidentList = [];
           if (res.data.orderstatus == "3") {
-            if(res.data.isExternal==1){
+            if (res.data.isExternal == 1) {
               this.$api.letter
-              .getPolicyPrintexternalOrder(res.data.id).then(res1=>{
-                if(res1.code==200){
-                  if (res1.data.jqPolicy) {
+                .getPolicyPrintexternalOrder(res.data.id).then(res1 => {
+                  if (res1.code == 200) {
+                    if (res1.data.jqPolicy) {
                       this.oldfileList.push({
                         fileTitle: "交强电子保单",
                         filename: this.orderInfo.jqpolicyno,
@@ -1301,7 +1300,7 @@ export default {
                         filename: this.orderInfo.jqpolicyno,
                         fileurl: res1.data.jqSign
                       });
-                      }
+                    }
                     if (res1.data.jqSign) {
                       accidentList.push({
                         fileTitle: "商业电子保单",
@@ -1317,670 +1316,670 @@ export default {
                       });
                     }
                   }
-                else{
-                  this.$message.error(res1.msg)
-                }
-              })
+                  else {
+                    this.$message.error(res1.msg)
+                  }
+                })
             }
-            else{
-            switch (res.data.inscompany) {
-              case "永安财险":
-                if (this.orderInfo.jqpolicyno) {
-                  this.$api.letter
-                    .getPolicyPrint({
-                      companyId: item.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: item.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: item.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 "华泰财险":
-                switch (item.apiType) {
-                  case 1:
-                    if (this.orderInfo.jqpolicyno) {
-                      this.$api.letter.HuataigetPolicyPrint({
+            else {
+              switch (res.data.inscompany) {
+                case "永安财险":
+                  if (this.orderInfo.jqpolicyno) {
+                    this.$api.letter
+                      .getPolicyPrint({
                         companyId: item.id,
-                        riskCode: "0507",
-                        type: "2" //2:保单
+                        policytype: "jq"
                       })
-                        .then(res => {
-                          if (res.data) {
-                            if (res.data.jqxPolicyUrl) {
+                      .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: res.data.jqxPolicyUrl
+                                fileurl: path
                               });
                             }
-                            if (res.data.jqxFlagUrl) {
+                          });
+                        }
+                      });
+                    this.$api.letter
+                      .getPolicyPrint2({
+                        companyId: item.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: res.data.jqxFlagUrl
+                                fileurl: path
                               });
                             }
-                          } else {
-                            this.$message.error(res.msg);
-                          }
-                        });
-                    }
-                    if (this.orderInfo.sypolicyno) {
-                      this.$api.letter.HuataigetPolicyPrint({
+                          });
+                        }
+                      });
+                  }
+                  if (this.orderInfo.sypolicyno) {
+                    this.$api.letter
+                      .getPolicyPrint({
                         companyId: item.id,
-                        riskCode: "0510",
-                        type: "2" //2:保单
+                        policytype: "sy"
                       })
-                        .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 2:
-                    if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {
-                      this.$api.letter
-                        .pythongetPolicyPrint({
-                          subOrderNo: item.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
+                      .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
                               });
                             }
-                            if (res.data.jqxFlagUrl) {
-                              this.oldfileList.push({
-                                fileTitle: "交强电子标志",
-                                filename: this.orderInfo.jqpolicyno,
-                                fileurl: res.data.jqxFlagUrl
-                              });
+                          });
+                        }
+                      });
+                  }
+                  break;
+                case "华泰财险":
+                  switch (item.apiType) {
+                    case 1:
+                      if (this.orderInfo.jqpolicyno) {
+                        this.$api.letter.HuataigetPolicyPrint({
+                          companyId: item.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 (res.data.syxPolicyUrl) {
+                          });
+                      }
+                      if (this.orderInfo.sypolicyno) {
+                        this.$api.letter.HuataigetPolicyPrint({
+                          companyId: item.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);
                             }
-                            if (
-                              res.data.jyxInfoList &&
-                              res.data.jyxInfoList.length > 0
-                            ) {
-                              res.data.jyxInfoList.forEach(val => {
-                                accidentList.push({
-                                  fileTitle: "驾意险保单",
-                                  filename: "驾意险保单",
-                                  fileurl: val.jyx_policy_url
+                          });
+                      }
+                      break;
+                    case 2:
+                      if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {
+                        this.$api.letter
+                          .pythongetPolicyPrint({
+                            subOrderNo: item.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);
                             }
-                          } else {
-                            this.$message.error(res.msg);
-                          }
-                        });
-                    }
-                    break;
-                }
-
-                break;
-              case "中煤财险":
-                if (this.orderInfo.jqpolicyno) {
-                  this.$api.letter
-                    .ZhongmeigetPolicyPrint({
-                      companyId: item.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: item.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: item.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 => {
+                      break;
+                  }
+
+                  break;
+                case "中煤财险":
+                  if (this.orderInfo.jqpolicyno) {
                     this.$api.letter
                       .ZhongmeigetPolicyPrint({
-                        ridePolicyNo: ele.ridePolicyNo,
                         companyId: item.id,
-                        riskCode: "0513",
+                        riskCode: "0507",
                         type: "2" //2:保单
                       })
                       .then(res => {
-                        if (res.code == 200 && res.data) {
-                          accidentList.push({
-                            fileTitle: "驾意险保单",
-                            filename: this.orderInfo.sypolicyno,
+                        if (res.data && res.data[0]) {
+                          this.oldfileList.push({
+                            fileTitle: "交强电子保单",
+                            filename: this.orderInfo.jqpolicyno,
                             fileurl: res.data[0]
                           });
                         } else {
                           this.$message.error(res.msg);
                         }
                       });
-                  });
-                }
-                break;
-              case "永诚财险":
-                if (this.orderInfo.jqpolicyno) {
-                  this.$api.letter
-                    .yongchenggetPolicyPrint({
-                      companyId: item.id,
-                      riskCode: "0507",
-                      type: "2" //2:保单
-                    })
-                    .then(res => {
-                      if (res.code == 200 && res.data) {
-                        if (res.data.jqUrl) {
+                    this.$api.letter
+                      .ZhongmeigetPolicyPrint({
+                        companyId: item.id,
+                        riskCode: "0507",
+                        type: "1" // 1:标志
+                      })
+                      .then(res => {
+                        if (res.data && res.data[0]) {
                           this.oldfileList.push({
-                            fileTitle: "交强电子保单",
+                            fileTitle: "交强电子标志",
                             filename: this.orderInfo.jqpolicyno,
-                            fileurl: res.data.jqUrl
+                            fileurl: res.data[0]
                           });
+                        } else {
+                          this.$message.error(res.msg);
                         }
-                        if (res.data.jqFlagUrl) {
-                          this.oldfileList.push({
-                            fileTitle: "交强电子标志",
-                            filename: this.orderInfo.jqpolicyno,
-                            fileurl: res.data.jqFlagUrl
+                      });
+                  }
+                  if (this.orderInfo.sypolicyno) {
+                    this.$api.letter
+                      .ZhongmeigetPolicyPrint({
+                        companyId: item.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);
                         }
-                      } else {
-                        this.$message.error(res.msg);
-                      }
-                    });
-                }
-                if (this.orderInfo.sypolicyno) {
-                  this.$api.letter
-                    .yongchenggetPolicyPrint({
-                      companyId: item.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
+                      });
+                  }
+                  if (this.orderInfo.crossInsurance.length > 0) {
+                    this.orderInfo.crossInsurance.map(ele => {
+                      this.$api.letter
+                        .ZhongmeigetPolicyPrint({
+                          ridePolicyNo: ele.ridePolicyNo,
+                          companyId: item.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);
+                          }
                         });
-                      } else {
-                        this.$message.error(res.msg);
-                      }
                     });
-                }
-                if (this.orderInfo.crossInsurance.length > 0) {
-                  this.orderInfo.crossInsurance.map(ele => {
+                  }
+                  break;
+                case "永诚财险":
+                  if (this.orderInfo.jqpolicyno) {
                     this.$api.letter
                       .yongchenggetPolicyPrint({
                         companyId: item.id,
-                        policyNumber: ele.policyNumber,
-                        riskCode: "0513",
+                        riskCode: "0507",
                         type: "2" //2:保单
                       })
                       .then(res => {
                         if (res.code == 200 && res.data) {
-                          accidentList.push({
-                            fileTitle: "驾意险保单",
-                            filename: ele.policyNumber,
-                            fileurl: res.data.jyUrl
-                          });
+                          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);
                         }
                       });
-                  });
-                }
-                break;
-              case "国任财险":
-                if (this.orderInfo.jqpolicyno) {
-                  this.$api.letter
-                    .guoRengetPolicyPrint({
-                      companyId: item.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: item.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: item.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 => {
+                  }
+                  if (this.orderInfo.sypolicyno) {
                     this.$api.letter
-                      .guoRengetPolicyPrint({
+                      .yongchenggetPolicyPrint({
                         companyId: item.id,
-                        policyNumber: ele.policyNumber,
-
-                        riskCode: "0513",
+                        riskCode: "0510",
                         type: "2" //2:保单
                       })
                       .then(res => {
-                        if (res.data) {
-                          accidentList.push({
-                            fileTitle: "驾意险保单",
-                            filename: ele.policyNumber,
-                            fileurl: res.data
+                        if (res.data && res.data.syUrl) {
+                          businessList.push({
+                            fileTitle: "商业电子保单",
+                            filename: this.orderInfo.sypolicyno,
+                            fileurl: res.data.syUrl
                           });
                         } else {
                           this.$message.error(res.msg);
                         }
                       });
-                  });
-                }
-                break;
-
-              case "紫金财险":
-                if (this.orderInfo.jqpolicyno) {
-                  this.$api.letter
-                    .zijingetPolicyPrint({
-                      companyId: item.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: item.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: item.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
+                        .yongchenggetPolicyPrint({
+                          companyId: item.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);
+                          }
                         });
-                      } else {
-                        this.$message.error(res.msg);
-                      }
                     });
-                }
-                if (this.orderInfo.crossInsurance.length > 0) {
-                  this.orderInfo.crossInsurance.map(ele => {
+                  }
+                  break;
+                case "国任财险":
+                  if (this.orderInfo.jqpolicyno) {
                     this.$api.letter
-                      .zijingetPolicyPrint({
+                      .guoRengetPolicyPrint({
                         companyId: item.id,
-                        policyNumber: ele.policyNumber,
-                        riskCode: "0513",
+                        riskCode: "0507",
                         type: "2" //2:保单
                       })
                       .then(res => {
                         if (res.data) {
-                          accidentList.push({
-                            fileTitle: "驾意险保单",
-                            filename: ele.policyNumber,
+                          this.oldfileList.push({
+                            fileTitle: "交强电子保单",
+                            filename: this.orderInfo.jqpolicyno,
                             fileurl: res.data
                           });
                         } else {
                           this.$message.error(res.msg);
                         }
                       });
-                  });
-                }
-                break;
-              case "渤海财险":
-                if (this.orderInfo.jqpolicyno) {
-                  this.$api.letter
-                    .getPolicyPrintboHai({
-                      companyId: item.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.$api.letter
+                      .guoRengetPolicyPrint({
+                        companyId: item.id,
+                        riskCode: "0507",
+                        type: "1" //1:标志
+                      })
+                      .then(res => {
+                        if (res.data) {
                           this.oldfileList.push({
                             fileTitle: "交强电子标志",
                             filename: this.orderInfo.jqpolicyno,
-                            fileurl: res.data.jqxFlagUrl
+                            fileurl: res.data
                           });
+                        } else {
+                          this.$message.error(res.msg);
                         }
-                        if (res.data.syxPolicyUrl) {
+                      });
+                  }
+                  if (this.orderInfo.sypolicyno) {
+                    this.$api.letter
+                      .guoRengetPolicyPrint({
+                        companyId: item.id,
+                        riskCode: "0510",
+                        type: "2" //2:保单
+                      })
+                      .then(res => {
+                        if (res.data) {
                           businessList.push({
                             fileTitle: "商业电子保单",
                             filename: this.orderInfo.sypolicyno,
-                            fileurl: res.data.syxPolicyUrl
+                            fileurl: res.data
                           });
+                        } else {
+                          this.$message.error(res.msg);
                         }
-                        if (
-                          res.data.jyxInfoList &&
-                          res.data.jyxInfoList.length > 0
-                        ) {
-                          res.data.jyxInfoList.forEach(val => {
+                      });
+                  }
+                  if (this.orderInfo.crossInsurance.length > 0) {
+                    this.orderInfo.crossInsurance.map(ele => {
+                      this.$api.letter
+                        .guoRengetPolicyPrint({
+                          companyId: item.id,
+                          policyNumber: ele.policyNumber,
+
+                          riskCode: "0513",
+                          type: "2" //2:保单
+                        })
+                        .then(res => {
+                          if (res.data) {
                             accidentList.push({
                               fileTitle: "驾意险保单",
-                              filename: "驾意险保单",
-                              fileurl: val.jyx_policy_url
+                              filename: ele.policyNumber,
+                              fileurl: res.data
                             });
-                          });
-                        }
-                      } else {
-                        this.$message.error(res.msg);
-                      }
+                          } 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: item.id
-                    })
-                    .then(res => {
-                      if (res.code == 200 && res.data) {
-                        if (res.data.jqxPolicyUrl) {
+                  }
+                  break;
+
+                case "紫金财险":
+                  if (this.orderInfo.jqpolicyno) {
+                    this.$api.letter
+                      .zijingetPolicyPrint({
+                        companyId: item.id,
+                        riskCode: "0507",
+                        type: "2" //2:保单
+                      })
+                      .then(res => {
+                        if (res.data) {
                           this.oldfileList.push({
                             fileTitle: "交强电子保单",
                             filename: this.orderInfo.jqpolicyno,
-                            fileurl: res.data.jqxPolicyUrl
+                            fileurl: res.data
                           });
+                        } else {
+                          this.$message.error(res.msg);
                         }
-                        if (res.data.jqxFlagUrl) {
+                      });
+                    this.$api.letter
+                      .zijingetPolicyPrint({
+                        companyId: item.id,
+                        riskCode: "0507",
+                        type: "1" //1:标志
+                      })
+                      .then(res => {
+                        if (res.data) {
                           this.oldfileList.push({
                             fileTitle: "交强电子标志",
                             filename: this.orderInfo.jqpolicyno,
-                            fileurl: res.data.jqxFlagUrl
+                            fileurl: res.data
                           });
+                        } else {
+                          this.$message.error(res.msg);
                         }
-                        if (res.data.syxPolicyUrl) {
+                      });
+                  }
+                  if (this.orderInfo.sypolicyno) {
+                    this.$api.letter
+                      .zijingetPolicyPrint({
+                        companyId: item.id,
+                        riskCode: "0510",
+                        type: "2" //2:保单
+                      })
+                      .then(res => {
+                        if (res.data) {
                           businessList.push({
                             fileTitle: "商业电子保单",
                             filename: this.orderInfo.sypolicyno,
-                            fileurl: res.data.syxPolicyUrl
+                            fileurl: res.data
                           });
+                        } else {
+                          this.$message.error(res.msg);
                         }
-                        if (
-                          res.data.jyxInfoList &&
-                          res.data.jyxInfoList.length > 0
-                        ) {
-                          res.data.jyxInfoList.forEach(val => {
+                      });
+                  }
+                  if (this.orderInfo.crossInsurance.length > 0) {
+                    this.orderInfo.crossInsurance.map(ele => {
+                      this.$api.letter
+                        .zijingetPolicyPrint({
+                          companyId: item.id,
+                          policyNumber: ele.policyNumber,
+                          riskCode: "0513",
+                          type: "2" //2:保单
+                        })
+                        .then(res => {
+                          if (res.data) {
                             accidentList.push({
                               fileTitle: "驾意险保单",
-                              filename: "驾意险保单",
-                              fileurl: val.jyx_policy_url
+                              filename: ele.policyNumber,
+                              fileurl: res.data
                             });
-                          });
-                        }
-                      } else {
-                        this.$message.error(res.msg);
-                      }
-                    });
-                }
-                break;
-              case "大家财险":
-                if (this.orderInfo.jqpolicyno) {
-                  this.$api.letter
-                    .obtainWarranty({
-                      companyId: item.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: item.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: item.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 => {
+                  }
+                  break;
+                case "渤海财险":
+                  if (this.orderInfo.jqpolicyno) {
                     this.$api.letter
-                      .zijingetPolicyPrint({
+                      .getPolicyPrintboHai({
+                        companyId: item.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: item.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: item.id,
-                        policyNumber: ele.policyNumber,
-                        riskCode: "0513",
+                        riskCode: "0507",
                         type: "2" //2:保单
                       })
                       .then(res => {
                         if (res.data) {
-                          accidentList.push({
-                            fileTitle: "驾意险保单",
-                            filename: ele.policyNumber,
+                          this.oldfileList.push({
+                            fileTitle: "交强电子保单",
+                            filename: this.orderInfo.jqpolicyno,
                             fileurl: res.data
                           });
                         } else {
                           this.$message.error(res.msg);
                         }
                       });
-                  });
-                }
-                break;
-              default:
+                    this.$api.letter
+                      .obtainWarranty({
+                        companyId: item.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: item.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: item.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,