瀏覽代碼

Merge branch 'dev' of http://www.baoxianzhanggui.com:8090/sxzgd/vue-insagent-pc into dev

lihongxiao 2 年之前
父節點
當前提交
f24b1edd4c

+ 5 - 0
src/assets/css/global.css

@@ -106,4 +106,9 @@ html, body, #app {
 .customNotifyClass {
   word-break: break-all;
   width: 600px;
+}
+.imageclass {
+  width: 100px;
+  height: 50px;
+  text-align: center;
 }

+ 9 - 0
src/http/moudules/task.js

@@ -1499,4 +1499,13 @@ export const reconciliation = (data) => {
     method: "put",
     data
   })
+}
+
+
+export const updateNoHand = (data) => {
+  return axios({
+    url: "/fnc/plyFee/updateNoHand",
+    method: "put",
+    data
+  })
 }

+ 32 - 2
src/views/FinancialManagement/CarInsurance/CompanySettlement/CarInsurance/DocumentaryFeesDetail.vue

@@ -390,7 +390,7 @@ export default {
         },
         {
           label: "创建日期",
-          prop: "createTime",
+          prop: "createTimeQuery",
           type: "date",
         },
         {
@@ -617,12 +617,18 @@ export default {
         isPaginationShow:true,
         loading: true,
         isCheckBox:true,
+        operationWidth: '180',
         optBtns:[
           {
             type:'primary',
             label:'编辑',
             click:(row, index) => {return this.haldUpload(row)},
-        },
+          },
+          {
+            type:'primary',
+            label:'删除',
+            click:(row, index) => {return this.haldDelete(row)},
+          },
         ]
       },
       pageDataPro: {
@@ -722,6 +728,30 @@ export default {
     });
   },
   methods: {
+    haldDelete(row) {
+      this.$confirm('是否确认删除?', '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning'
+      }).then(() => {
+        this.$api.task.plyFeeDelete({id: row.id}).then(res => {
+          if (res.code == 200) {
+            this.$message({
+              type: 'success',
+              message: '删除成功!'
+           });
+           this.findPage()
+          } else {
+            this.$message.error(res.msg)
+          }
+        })
+      }).catch(() => {
+        this.$message({
+          type: 'info',
+          message: '已取消删除'
+        });          
+      });
+    },
     agrmentlist() {
       this.$api.task.findPtlAgreementList().then((res) => {
         this.agreementTypeoptions = res.data

+ 2 - 1
src/views/FinancialManagement/CarInsurance/CompanySettlement/CarInsurance/DocumentaryFeesSettled.vue

@@ -288,7 +288,8 @@ export default {
                 .fncplyFeeQuery({
                   partnerCompaniesId: data.partnerCompaniesId,
                   agreementType: '2',
-                  handlingFeesStatus: '0',
+                  // handlingFeesStatus: '1',
+                  isNotDocumentary: '1',
                   isNotCar:'0',
                   ...this.pageDatarecorddetail
                 })

+ 304 - 22
src/views/FinancialManagement/CarInsurance/CompanySettlement/CarInsurance/DocumentaryUnsettled.vue

@@ -16,19 +16,58 @@
         }' clearable filterable></el-cascader>
       </template>
     </templateTable>
+
+    <!-- 新详情 -->
     <el-dialog
       title="详情"
-      :visible.sync="dialogVisible"
+      :visible.sync="dialogVisibleNewDetail"
       width="80%"
+      :before-close="handleCloseNew">
+        <templateTable ref="templateTable" :formList="formList1" @handleSearchList="handleSearchList1" :tableConfig="tableConfigDetailNew" :data="formTableDataNew"
+        @findPage="findPageNewDetail" >
+        </templateTable>
+        <span slot="footer" class="dialog-footer">
+        <el-button size="small" @click="handleCloseNew">取消</el-button>
+      </span>
+    </el-dialog>
+
+    <el-dialog
+      title="结算"
+      :visible.sync="dialogVisible"
+      width="70%"
       :before-close="handleClose">
-      <templateTable ref="templateTable"   :tableConfig="tableConfigDetail" :data="formTableData"
-      @findPage="findPageDetail" >
-    </templateTable>
+
+      <!-- 上传凭证 -->
+      <el-upload  action="#" class="upload-demo"  :limit="1" :auto-upload="false"
+        :on-change="drivingupload"  ref="upload3"  accept=".png, .jpg, .jpeg" :file-list="fileList">
+        <el-button size="small" type="primary">点击上传</el-button>
+      </el-upload>
+
+      <templateTable ref="templateTable" :tableConfig="tableConfigDetail" :data="formTableData" @findPage="findPageDetail" >
+        <template slot="settlementAmount" slot-scope="scope">
+          <el-input v-model="scope.row.invoicCommissionFeevalue" style="width:120px" size="mini"></el-input>
+        </template>
+      </templateTable>
       <span slot="footer" class="dialog-footer">
-      <el-button  size="small" @click="handleClose">取消</el-button>
+      <el-button  size="small" @click="submitBalance" type="primary">结算</el-button>
+      <el-button  size="small" @click="dialogVisible = false">取消</el-button>
     </span>
   </el-dialog>
-  <el-dialog
+  
+  <el-dialog title="记录" :visible.sync="dialogVisiblerecord" width="30%" :before-close="handleCloserecord">
+      <templateTable ref="templateTable1" @getList="getListrecord"
+        :tableConfig="tableConfigDetailrecord" :data="formTableDatarecord" @findPage="findPageDetailrecord">
+        <template slot="imageUrl" slot-scope="scope">
+          <img v-if="scope.row.imageUrl" :src="`${process + scope.row.imageUrl}`" class="imageclass" @click.stop="showViewer=true; ProViewImg=process + scope.row.imageUrl" />
+        </template>
+      </templateTable>
+      <span slot="footer" class="dialog-footer">
+        <el-button size="small" @click="dialogVisiblerecord = false">取消</el-button>
+      </span>
+    </el-dialog>
+
+
+  <!-- <el-dialog
       title="结算"
       :visible.sync="dialogVisiblebalance"
       width="20%"
@@ -56,7 +95,7 @@
       <el-button  size="small" @click="dialogVisiblebalance = false">取消</el-button>
       <el-button type="primary" size="small" @click="balanceSumbit">确实</el-button>
     </span>
-  </el-dialog>
+  </el-dialog> -->
   </div>
 </template>
 <script>
@@ -76,6 +115,7 @@ export default {
   },
   data() {
     return {
+      process:process.env.BASE_URL,
       fileList:[],
       batchData:{},
       ztreeNodes:[],
@@ -139,7 +179,9 @@ export default {
             {
               type: 'primary',
               label: '详情',
-              click: (row, index) => { return this.haldDetail(row) },
+              // click: (row, index) => { return this.haldDetail(row) },
+              click: (row, index) => { return this.haldNewDetail(row) },
+
           }
         ]
       },
@@ -156,6 +198,11 @@ export default {
       formTableData:[],
       tableConfigDetail:{
         columns: [
+          {
+            prop: "yearMonthSignDate",
+            label: "年月",
+            type: "text"
+          },
           {
             prop: "invoicId",
             label: "开票号",
@@ -163,7 +210,7 @@ export default {
           },
           {
             prop: "invoicingMethod",
-            label: "开票方式",
+            label: " 开票方式",
             type: "statMap",
             options:[{
               label: "保司开票",
@@ -174,7 +221,7 @@ export default {
             }]
           },
           {
-            prop: "invoicCommissionFeevalue",
+            prop: "settlementAmount",
             label: "开票金额",
             type: "text"
           },
@@ -184,29 +231,163 @@ export default {
             type: "text"
           },
           {
-            prop: "invoicTime",
+            prop: "createTime",
             label: "开票时间",
             type: "text"
           },
-         
+          {
+            prop: "invoicedSettledAmount",
+            label: "开票已结算金额",
+            type: "text"
+          },
+          {
+            prop: "invoicedNotSettledAmount",
+            label: "开票未结算金额",
+            type: "text"
+          },
+          {
+            name: "settlementAmount",
+            label: "结算金额",
+            type: "slot"
+          },
+
+        ],
+        loading: true
+      },
+
+
+      // 新详情
+      dialogVisibleNewDetail: false,
+      formList1: [
+        {
+          label: "结算状态",
+          prop: "settlementStatus",
+          type: "select",
+          options: [
+            {
+              label: '开票未结算',
+              value: '0'
+            },
+            {
+              label: '开票已结算',
+              value: '1'
+            },
+            {
+              label: '开票结算清',
+              value: '2'
+            },
+          ]
+        },
+      ],
+      tableConfigDetailNew: {
+        columns: [
+          {
+            prop: "invoicId",
+            label: "开票号",
+            type: "text"
+          },
+          {
+            prop: "invoicingMethod",
+            label: "开票方式",
+            type: "statMap",
+            options:[{
+              label: "保司开票",
+              value: "0",
+            }, {
+              label: "掌柜开票",
+              value: "1",
+            }]
+          },
+          {
+            prop: "totalAmount",
+            label: "开票金额",
+            type: "text"
+          },
+          {
+            prop: "invoicedSettledAmount",
+            label: "开票已结算金额",
+            type: "text"
+          },
+          {
+            prop: "invoicedNotSettledAmount",
+            label: "开票未结算金额",
+            type: "text"
+          },
+          {
+            prop: "completionStatus",
+            label: "结算状态",
+            type: "statMap",
+            options:[{
+              label: "开票未结算",
+              value: "0",
+            }, {
+              label: "开票已结算",
+              value: "1",
+            }, {
+              label: "开票结算清",
+              value: "2",
+            }]
+          },
         ],
         loading: true,
+        isShowIndex: true,
+        operationWidth: '130',
         optBtns:[
           {
             type:'primary',
             label:'结算',
-            hide:(row)=>{
-              return row.invoicCommissionFeevalue?true:false
+            hide:(row) => {
+                return row.completionStatus != '2'
             },
-            click:(row, index) => {return this.openBalanceFun(row)},
-        },
-        {
+            // click:(row, index) => {return this.openBalanceFun(row)},
+            click:(row, index) => {return this.haldDetail(row)},
+          },
+          {
+            type:'primary',
+            label:'记录',
+            hide:(row) => {
+                return row.completionStatus != '0'
+            },
+            click:(row, index) => {return this.haldRecord(row)},
+          },
+          {
             type:'primary',
             label:'作废',
-            click:(row, index) => {return this.handVoid(row)},
-        },
+            hide:(row) => {
+                return row.completionStatus == '0'
+            },
+            click:(row, index) => {return this.haldDelete(row)},
+          }
       ]
       },
+      formTableDataNew: [],
+      settlementSumId: '',
+      findPageDetailListNew: {},
+      // 记录
+      dialogVisiblerecord: false,
+      tableConfigDetailrecord: {
+        columns: [
+          {
+            prop: "settlementTime",
+            label: "进账日期",
+            type: "text"
+          },
+          {
+            prop: "settlementAmount",
+            label: "进帐金额",
+            type: "text"
+          },
+          {
+            name: "imageUrl",
+            label: "进帐截图",
+            type: "slot"
+          },
+
+        ],
+        loading: true,
+        isPaginationShow: true
+      },
+      formTableDatarecord: [],
     };
   },
   created() {
@@ -219,6 +400,100 @@ export default {
     this.findPage();
   },
   methods: {
+    // 作废
+    haldDelete(row) {
+      this.$api.task.settlementSumFeesVoidInvoicing({
+        id: row.id
+      }).then(res => {
+        if (res.code == 200) {
+          this.handleCloseNew()
+          this.findPage()
+        } else {
+          this.$message.error(res.msg)
+        }
+      })
+    },
+    // 记录
+    haldRecord(row) {
+      this.settlementSumId = row.id
+      this.dialogVisiblerecord = true
+      this.findPageDetailrecord(row)
+    },
+    handleCloserecord() {
+      this.dialogVisiblerecord = false
+    },
+    getListrecord(data) {
+      this.findPageDetailrecord({...data})
+    },findPageDetailrecord(data) {
+      this.tableConfigDetailrecord.loading = true
+      this.$api.task.fncSettlementSumFees({
+        settlementSumId: this.settlementSumId,
+        settlementStatus: '2',
+      })
+      .then(res => {
+        if (res.code == 200) {
+          this.formTableDatarecord = res.data.content
+          this.tableConfigDetailrecord.loading = false
+        } else {
+          this.$message.error(res.msg)
+          this.tableConfigDetailrecord = false
+        }
+      })
+    },
+    // 结算提交按钮
+    submitBalance() {
+      let subData = {
+        multipleSelection: this.formTableData,
+        settlementSumId: this.settlementSumId,
+        settlementImageId: this.batchData.id
+      }
+       subData.multipleSelection.forEach(val => {
+        val.createTime = null
+       })
+      this.$api.task.batchSumBalance(subData).then(res => {
+        if (res.code == 200) {
+          this.$message.success('操作成功')
+          this.handleClose()
+          this.handleCloseNew()
+          this.findPage();
+        } else {
+          this.$message.error(res.msg)
+        }
+      })
+    },
+    // 新详情
+    
+    haldNewDetail(row) {
+      this.dialogVisibleNewDetail= true
+      this.findPageDetailListNew = row
+      this.findPageNewDetail(row)
+    },
+    findPageNewDetail(data) {
+      this.$api.task.settlementSumFeesQuery({
+          settlementStatus: '1',
+          completionStatus: data.settlementStatus || '0',
+          partnerCompaniesId: data.partnerCompaniesId,
+          isNotCar: '0',
+        })
+        .then(res => {
+          if (res.code==200) {
+            this.formTableDataNew = res.data.content;
+            this.tableConfigDetailNew.loading = false;
+          }
+          else{
+            this.tableConfigDetailNew.loading = false;
+            this.$message.error(res.msg)
+          }
+        });
+    },
+    handleSearchList1(data) {
+      this.findPageNewDetail({...this.findPageDetailListNew, ...data})
+    },
+    handleCloseNew() {
+      this.dialogVisibleNewDetail= false
+    },
+
+
     drivingupload(file, fileList){
       this.fileList=[]
       const params = new FormData(); // 声明formData数据类型
@@ -293,19 +568,26 @@ export default {
     haldDetail(row){
       this.dialogVisible=true
       this.findPageDetailList=row
+      this.settlementSumId = row.id
       this.findPageDetail(row)
     },
     findPageDetail(data) {
       this.tableConfigDetail.loading=true
       this.$api.task
-        .otherSettldetail({
+        // .otherSettldetail({
+          .fncSettlementFeesQuery({
           partnerCompaniesId:data.partnerCompaniesId,
           handlingFeesStatus:'1',
-          isNotCar:0
+          settlementStatus: '1',
+          isNotCar:0,
+          settlementSumId: data.id
         })
         .then(res => {
           if (res.code==200) {
-            this.formTableData = res.data;
+            res.data.content.forEach(ele => {
+              ele.invoicCommissionFeevalue = 0
+            });
+            this.formTableData = res.data.content;
             this.tableConfigDetail.loading = false;
           }
           else{

+ 9 - 3
src/views/FinancialManagement/CarInsurance/CompanySettlement/CarInsurance/HandlingFees.vue

@@ -416,7 +416,7 @@ export default {
         },
         {
           label: "创建日期",
-          prop: "createTime",
+          prop: "createTimeQuery",
           type: "date",
         },
         {
@@ -545,11 +545,11 @@ export default {
             type: "text"
 
           }, {
-            prop: "settlementUserId",
+            prop: "settlementUserName",
             label: "结算人",
             type: "text"
           }, {
-            prop: "updateUserId",
+            prop: "updateUserName",
             label: "修改人",
             type: "text"
           }, {
@@ -968,6 +968,9 @@ export default {
         syStartDate = ''
         syEndDate = ''
       }
+      if (data && data.signDate) {
+        data.signDate = null
+      }
       this.$api.task
         .bxTotalAmount({ ...this.pageData, ...data, signDateStart, signDateEnd, jqStartDate, jqEndDate, syStartDate, syEndDate })
         .then(res => {
@@ -984,6 +987,9 @@ export default {
     //列表数据
     findPage(data) {
       this.tableConfig.loading = true;
+      if (data && data.signDate) {
+        data.signDate = null
+      }
       this.$api.task
         .plyFeeQuery({ ...this.pageData, ...data })
         .then(res => {

+ 32 - 2
src/views/FinancialManagement/CarInsurance/CompanySettlement/NoCarInsurance/DocumentaryFeesDetail.vue

@@ -352,7 +352,7 @@ export default {
         },
         {
           label: "创建日期",
-          prop: "createTime",
+          prop: "createTimeQuery",
           type: "date",
         },
         {
@@ -524,12 +524,18 @@ export default {
         ],
         isPaginationShow:true,
         loading: true,
+        operationWidth: '180',
         optBtns:[
           {
             type:'primary',
             label:'编辑',
             click:(row, index) => {return this.haldUpload(row)},
-        },
+          },
+          {
+            type:'primary',
+            label:'删除',
+            click:(row, index) => {return this.haldDelete(row)},
+          },
         ]
       },
       fileList:[],
@@ -628,6 +634,30 @@ export default {
     });
   },
   methods: {
+    haldDelete(row) {
+      this.$confirm('是否确认删除?', '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning'
+      }).then(() => {
+        this.$api.task.plyFeeDelete({id: row.id}).then(res => {
+          if (res.code == 200) {
+            this.$message({
+              type: 'success',
+              message: '删除成功!'
+           });
+           this.findPage()
+          } else {
+            this.$message.error(res.msg)
+          }
+        })
+      }).catch(() => {
+        this.$message({
+          type: 'info',
+          message: '已取消删除'
+        });          
+      });
+    },
     agrmentlist() {
       this.$api.task.findPtlAgreementList().then((res) => {
         this.agreementTypeoptions = res.data

+ 2 - 1
src/views/FinancialManagement/CarInsurance/CompanySettlement/NoCarInsurance/DocumentaryFeesSettled.vue

@@ -271,7 +271,8 @@ export default {
                 .fncplyFeeQuery({
                   partnerCompaniesId: data.partnerCompaniesId,
                   agreementType: '2',
-                  handlingFeesStatus: '1',
+                  // handlingFeesStatus: '1',
+                  isNotDocumentary: '1',
                   isNotCar:'1',
                   ...this.pageDatarecorddetail
                  })

+ 7 - 3
src/views/FinancialManagement/CarInsurance/CompanySettlement/NoCarInsurance/DocumentaryUnsettled.vue

@@ -198,6 +198,11 @@ export default {
       findPageDetailList:{},
       tableConfigDetail:{
         columns: [
+          {
+            prop: "yearMonthSignDate",
+            label: "年月",
+            type: "text"
+          },
           {
             prop: "invoicId",
             label: "开票号",
@@ -216,7 +221,7 @@ export default {
             }]
           },
           {
-            prop: "totalAmount",
+            prop: "settlementAmount",
             label: "开票金额",
             type: "text"
           },
@@ -461,7 +466,6 @@ export default {
         val.createTime = null
        })
       this.$api.task.batchSumBalance(subData).then(res => {
-        // console.log(res)
         if (res.code == 200) {
           this.$message.success('操作成功')
           this.handleClose()
@@ -621,6 +625,7 @@ export default {
           // incomeIds:data.incomeIds,
           partnerCompaniesId:data.partnerCompaniesId,
           handlingFeesStatus:'1',
+          settlementStatus: '1',
           isNotCar:1,
           settlementSumId: data.id
         })
@@ -630,7 +635,6 @@ export default {
               ele.invoicCommissionFeevalue = 0
             });
             this.formTableData = res.data.content;
-            console.log(this.formTableData)
             this.tableConfigDetail.loading = false;
           }
           else{

+ 100 - 17
src/views/FinancialManagement/CarInsurance/CompanySettlement/NoCarInsurance/HandlingFees.vue

@@ -185,6 +185,28 @@
           </el-upload>
       <el-progress  :percentage="progressPercent" :text-inside="true" :stroke-width="16" status="exception"> </el-progress>
     </el-dialog>
+
+    <el-dialog title="编辑" :visible.sync="dialogVisibleEdit" width="50%" >
+      <el-form ref="formDataEdit" :model="formDataEdit" label-width="130px">
+        <el-row>
+          <el-col :span="8">
+            <el-form-item label="非车手续费比例">
+              <el-input v-model="formDataEdit.noSuperviseCostsProportion" size="small"></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :span="8">
+            <el-form-item label="非车手续费金额">
+              <el-input v-model="formDataEdit.noSuperviseCostsPremiums" size="small"></el-input>
+            </el-form-item>
+          </el-col>
+        </el-row>
+      </el-form>
+      <span slot="footer" class="dialog-footer">
+        <el-button size="small" @click="dialogVisibleEdit = false">取消</el-button>
+        <el-button size="small" type="primary" @click="onSubmitEdit">保存</el-button>
+      </span>
+    </el-dialog>
+
   </div>
 </template>
 <script>
@@ -362,7 +384,7 @@ export default {
         },
         {
           label: "创建日期",
-          prop: "createTime",
+          prop: "createTimeQuery",
           type: "date",
         },
         {
@@ -511,11 +533,11 @@ export default {
             type: "text"
 
           }, {
-            prop: "settlementUserId",
+            prop: "settlementUserName",
             label: "结算人",
             type: "text"
           }, {
-            prop: "updateUserId",
+            prop: "updateUserName",
             label: "修改人",
             type: "text"
           }, {
@@ -537,16 +559,27 @@ export default {
         loading: true,
         isPaginationShow: true,
         isShowIndex: true,
-        // optBtns:[
-        // {
-        //     type:'primary',
-        //     label:'结算',
-        //     hide:(row)=>{
-        //       return row.handlingFeesStatus == 0?true:false
-        //     },
-        //     click:(row, index) => {return this.balanceFun(row)},
-        // },
-        // ]
+        operationWidth: '180',
+        optBtns:[
+          // {
+          //     type:'primary',
+          //     label:'结算',
+          //     hide:(row)=>{
+          //       return row.handlingFeesStatus == 0?true:false
+          //     },
+          //     click:(row, index) => {return this.balanceFun(row)},
+          // },
+          {
+              type:'primary',
+              label:'编辑',
+              click:(row, index) => {return this.editBtn(row)},
+          },
+          {
+              type:'primary',
+              label:'删除',
+              click:(row, index) => {return this.deleteBtn(row)},
+          },
+        ]
       },
       btnGroup: [
         {
@@ -600,7 +633,8 @@ export default {
       fileList:[],
       progressPercent:0,
       dialogVisibleprogress:false,
-
+      dialogVisibleEdit: false,
+      formDataEdit: {},
     };
   },
   created() {
@@ -638,6 +672,51 @@ export default {
     });
   },
   methods: {
+    // 编辑
+    editBtn(row) {
+      this.formDataEdit = {
+        noSuperviseCostsProportion: row.noSuperviseCostsProportion,
+        noSuperviseCostsPremiums: row.noSuperviseCostsPremiums,
+        id: row.id
+      }
+      this.dialogVisibleEdit = true
+    },
+    onSubmitEdit() {
+      this.$api.task.updateNoHand(this.formDataEdit).then(res => {
+        if (res.code == 200) {
+          this.$message.success(res.msg)
+          this.getList()
+        } else {
+          this.$message.error(res.msg)
+        }
+      })
+    },
+    
+    // 删除
+    deleteBtn(row) {
+      this.$confirm('是否确认删除?', '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning'
+      }).then(() => {
+        this.$api.task.plyFeeDelete({id: row.id}).then(res => {
+          if (res.code == 200) {
+            this.$message({
+              type: 'success',
+              message: '删除成功!'
+           });
+           this.getList()
+          } else {
+            this.$message.error(res.msg)
+          }
+        })
+      }).catch(() => {
+        this.$message({
+          type: 'info',
+          message: '已取消删除'
+        });          
+      });
+    },
     agrmentlist() {
       this.$api.task.findPtlAgreementList().then((res) => {
         this.agreementTypeoptions = res.data
@@ -839,7 +918,9 @@ export default {
         signDateStart = ''
         signDateEnd = ''
       }
-
+      if (data && data.signDate) {
+        data.signDate = null
+      }
       this.$api.task
         .bxTotalAmount({ ...this.pageData, ...data, signDateStart, signDateEnd })
         .then(res => {
@@ -858,9 +939,11 @@ export default {
       a.click();
     },
     //列表数据
-    findPage(data
-    ) {
+    findPage(data) {
       this.tableConfig.loading = true;
+      if (data && data.signDate) {
+        data.signDate = null
+      }
       this.$api.task
         .plyFeeQuery({ ...this.pageData, ...data })
         .then(res => {

+ 8 - 27
src/views/FinancialManagement/CarInsurance/CompanySettlement/NoCarInsurance/InvoicingUnsettled.vue

@@ -133,13 +133,8 @@ export default {
             tableConfigDetailrecorddetail: {
                 columns: [
                     {
-                        prop: "syPolicyno",
-                        label: "商业保单号",
-                        type: "text"
-                    },
-                    {
-                        prop: "policyno",
-                        label: "交强保单号",
+                        prop: "noPolicyno",
+                        label: "非车保单号",
                         type: "text"
                     },
                     {
@@ -153,32 +148,18 @@ export default {
                         type: "text"
                     },
                     {
-                        prop: "jqPremium",
-                        label: "交强保费",
-                        type: "text"
-                    },
-                    {
-                        prop: "syPremium",
-                        label: "商业保费",
+                        prop: "noPremium",
+                        label: "非车保费",
                         type: "text"
                     },
                     {
-                        prop: "jqSuperviseCostsProportion",
-                        label: "交强手续费比例",
-                        type: "text"
-                    },
-                    {
-                        prop: "jqSuperviseCostsPremiums",
-                        label: "交强手续费金额",
-                        type: "text"
-                    }, {
-                        prop: "sySuperviseCostsProportion",
-                        label: "商业手续费比例",
+                        prop: "noSuperviseCostsPremiums",
+                        label: "非车手续费",
                         type: "text"
                     },
                     {
-                        prop: "sySuperviseCostsPremiums",
-                        label: "商业手续费金额",
+                        prop: "noSuperviseCostsProportion",
+                        label: "非车手续费比例",
                         type: "text"
                     },
                 ],

+ 39 - 10
src/views/FinancialManagement/CarInsurance/PlatformSettlement/NonVehicleBalance.vue

@@ -208,9 +208,9 @@
     <el-form ref="formDataListAdd" :model="formDataListAdd" label-width="130px" :rules="rulesAdd">
       <el-row>
         <el-col :span="8">
-          <el-form-item label="签单日期" prop="signdate">
+          <el-form-item label="签单日期" prop="signDate">
               <el-date-picker
-                v-model="formDataListAdd.signdate"
+                v-model="formDataListAdd.signDate"
                 type="date"
                 placeholder="选择日期"
                 size="small"
@@ -225,14 +225,14 @@
         </el-col>
         <el-col :span="8">
           <el-form-item label="被保险人">
-              <el-input v-model="formDataListAdd.userId" class="inputType" size="small"></el-input>
+              <el-input v-model="formDataListAdd.insuredName" class="inputType" size="small"></el-input>
             </el-form-item>
         </el-col>
         <el-col :span="8">
           <el-form-item label="险种">
             <el-select v-model="formDataListAdd.riskcode"  placeholder="选择险种" size="small">
               <el-option v-for="item in riskcodeList" :key="item.dictValue" :label="item.dictTag"
-                :value="item.dictValue"></el-option>
+                :value="item.dictTag"></el-option>
             </el-select>
           </el-form-item>
         </el-col>
@@ -613,11 +613,11 @@ export default {
             label: "结算日期",
             type: "text"
           },{
-            prop: "settlementUserId",
+            prop: "settlementUserName",
             label: "结算人",
             type: "text"
           },{
-            prop: "updateUserId",
+            prop: "updateUserName",
             label: "修改人",
             type: "text"
           },{
@@ -638,7 +638,7 @@ export default {
         isPaginationShow:true,
         isShowIndex: true,
         isCheckBox:true,
-        operationWidth:'180',
+        operationWidth:'250',
         optBtns:[
           {
             type:'primary',
@@ -650,6 +650,11 @@ export default {
             label:'结算',
             click:(row, index) => {return this.balanceFun(row)},
         },
+        {
+            type:'primary',
+            label:'删除',
+            click:(row, index) => {return this.deleteBtn(row)},
+        },
         ]
     },
     formTableData:[],
@@ -764,7 +769,7 @@ export default {
       },
       agreementTypeoptions: [],
       rulesAdd: {
-        signdate: [
+        signDate: [
           { required: true, message: '请输入签单日期', trigger: ['change', 'blur'] },
         ],
         licenseno: [
@@ -831,6 +836,30 @@ export default {
   },
   
   methods: {
+    deleteBtn(row) {
+      this.$confirm('是否确认删除?', '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning'
+      }).then(() => {
+        this.$api.task.plyFeeDelete({id: row.id}).then(res => {
+          if (res.code == 200) {
+            this.$message({
+              type: 'success',
+              message: '删除成功!'
+           });
+           this.findPage()
+          } else {
+            this.$message.error(res.msg)
+          }
+        })
+      }).catch(() => {
+        this.$message({
+          type: 'info',
+          message: '已取消删除'
+        });          
+      });
+    },
     // 新增
     handAdd() {
       this.dialogVisibleAdd = true
@@ -838,7 +867,6 @@ export default {
     submitAdd(formName) {
       this.$refs[formName].validate((valid) => {
         if (valid) {
-          console.log(this.formDataListAdd)
           this.$api.task.queryPagePtInsert({ 
             ...this.formDataListAdd, 
             companyName: this.formDataListAdd.companyId ? this.InsCompanyList.find(val => val.id == this.formDataListAdd.companyId).name : ''
@@ -943,7 +971,7 @@ export default {
         dockingPerson = this.formData.dockingPerson
       }
       this.$api.task
-        .ptTotalAmount({ ...data,...this.pageData,signDateStart,signDateEnd, dockingPerson })
+        .ptTotalAmount({ ...data,...this.pageData,signDateStart,signDateEnd, dockingPerson, signDate: null })
         .then(res => {
           if (res.code == 200) {
             this.totalList = res.data ? res.data : []
@@ -957,6 +985,7 @@ export default {
     //列表数据
     findPage(data) {
       this.tableConfig.loading = true;
+      this.formData.signDate = null
       this.$api.task
         .plyFeeQuery({...this.pageData,...data,... this.formData} )
         .then(res => {

+ 171 - 179
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,18 +694,19 @@
         </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">
@@ -759,17 +760,20 @@
           </el-col>
           <!-- <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> -->
         
@@ -824,7 +828,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;">
@@ -1509,7 +1514,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>
@@ -1539,7 +1545,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">
@@ -1568,7 +1575,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>
@@ -1588,7 +1596,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>
@@ -1613,7 +1622,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"
@@ -1646,7 +1656,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>
@@ -1665,7 +1676,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"
@@ -1707,7 +1719,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">
@@ -1737,7 +1750,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;"
@@ -1778,7 +1792,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">
@@ -1819,7 +1834,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>
@@ -1839,7 +1855,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;">
@@ -1871,7 +1888,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" />
@@ -2540,20 +2557,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>
@@ -2638,62 +2655,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>
@@ -2757,20 +2746,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: [],
@@ -2857,7 +2846,7 @@ export default {
       taipingaccidentalDrivingVo: {}, //太平驾意险
       licenseplate: true,
       calculateLoading: false, //保费计算按钮 节流
-      preserveQuoteLoading:false,//保存按钮
+      preserveQuoteLoading: false,//保存按钮
       accidentForm: {
         quantity: "1",
         sumPremium: 0
@@ -2961,7 +2950,7 @@ export default {
       uploadcardialogVisible: false, //行驶证识别     显示/隐藏
       uploaduserdialogVisible: false, //身份证识别     显示/隐藏
       imageUploaddialogVisible: false, //影像上传     显示/隐藏
-      policyUploaddialogVisible:false,  //保单上传
+      policyUploaddialogVisible: false,  //保单上传
       underwritingdialogVisible: false, //核保信息   显示/隐藏
       renewalCodedialogVisible: false, //转保确认码输入
       hbsubmitdialogVisible: false, //核保弹框
@@ -4071,12 +4060,12 @@ export default {
       insOrderStatusoptions: [],
       lastCompanyId: "",
       apiInterfaceName: 'generateOrder',
-      isLetter3Arr:[],
-      isLetter3agreementId:'',
-      fileListnoPolicy:[],
-      fileListnoPolicy:[],
-      fileListjqSign:[],
-      fileListjqPolicy:[],
+      isLetter3Arr: [],
+      isLetter3agreementId: '',
+      fileListnoPolicy: [],
+      fileListnoPolicy: [],
+      fileListjqSign: [],
+      fileListjqPolicy: [],
     };
   },
   watch: {
@@ -4179,7 +4168,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(); //获取保险公司
@@ -4959,13 +4948,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) {
@@ -5049,9 +5038,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 => {
@@ -5340,22 +5329,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()
@@ -5664,20 +5653,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) {
@@ -5711,7 +5702,7 @@ export default {
       }
     },
     // 保存
-    preserveQuote(){
+    preserveQuote() {
       let starttime = new Date(this.carInfo.registerDate);
       let endtime = new Date(this.carInfo.issueDate);
       if (endtime < starttime) {
@@ -5723,8 +5714,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)
@@ -5827,12 +5818,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" });
@@ -5845,9 +5836,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));
@@ -5871,7 +5862,7 @@ export default {
             e.imageType = e.imageType.includes('C0') ? "C04" : 'D04'
           })
         }
-       
+
       }
       if (this.bbtbcarShow && this.imageList3.length > 0) {
         //被保人同投保人
@@ -5930,13 +5921,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,
@@ -5952,27 +5943,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);
 
         }
       });
@@ -8425,8 +8416,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数据类型
@@ -8434,9 +8425,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
         }
       });
     },
@@ -8884,7 +8875,7 @@ export default {
         default:
       }
     },
-   
+
     // 关闭查看器
     closeViewer() {
       this.showViewer = false;
@@ -9195,7 +9186,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) {
@@ -9769,49 +9760,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;
@@ -9891,7 +9883,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,