test 2 лет назад
Родитель
Сommit
8aacf1f66a

+ 30 - 25
src/views/Core/components/detailsDialogPro.vue

@@ -205,30 +205,35 @@
           </div>
         </OpenCloseBox>
         <OpenCloseBox id="bfys">
-          <span slot="title">保费因素</span>
-          <div slot="boby">
-            <el-row class="premium-style " :gutter="20">
-              <el-col :span="6"><span>评分:</span>{{ orderInfo.extendInfo.score }}</el-col>
-              <el-col :span="6"><span>总赔付率:</span>{{ orderInfo.extendInfo.lossRation }}</el-col>
-              <el-col :span="6"><span>总折扣率:</span>{{ orderInfo.extendInfo.totalAdjustRate }}</el-col>
-              <el-col :span="6"><span>出险信息:</span>{{ orderInfo.extendInfo.accidentInfoStr }}</el-col>
-            </el-row>
-            <el-row class="premium-style " :gutter="20">
-              <el-col :span="6"><span>交强类型评分:</span>{{ orderInfo.extendInfo.jqScore }}</el-col>
-              <el-col :span="6"><span>交强赔付率:</span>{{ orderInfo.extendInfo.jqLossRation }}</el-col>
-              <el-col :span="6"><span>交强险折扣:</span>{{ orderInfo.extendInfo.jqAdjustRate }}</el-col>
-            </el-row>
-            <el-row class="premium-style " :gutter="20">
-              <el-col :span="6"><span>商业类型评分:</span>{{ orderInfo.extendInfo.syScore }}</el-col>
-              <el-col :span="6"><span>商业赔付率:</span>{{ orderInfo.extendInfo.syLossRation }}</el-col>
-              <el-col :span="6"><span>商业险折扣:</span>{{ orderInfo.extendInfo.syAdjustRate }}</el-col>
-            </el-row>
-            <el-row class="premium-style " :gutter="20" v-if="orderInfo.ubiPredictedInfoScore">
-              <el-col :span="6"><span>紫金能源车(鼎然-车辆风险评分):</span>{{ orderInfo.ubiPredictedInfoScore }}</el-col>
-            </el-row>
-          </div>
-        </OpenCloseBox>
-
+            <span slot="title">保费因素</span>
+            <div slot="boby">
+              <el-row class="premium-style " :gutter="20">
+                <el-col :span="6"><span>评分:</span>{{ orderInfo.extendInfo.score ? orderInfo.extendInfo.score : ''
+                }}</el-col>
+                <el-col :span="6"><span>总赔付率:</span>{{ orderInfo.extendInfo.lossRation }}</el-col>
+                <el-col :span="6"><span>总折扣率:</span>{{ orderInfo.extendInfo.totalAdjustRate }}</el-col>
+              </el-row>
+              <el-row class="premium-style " :gutter="20">
+                <el-col :span="6"><span>交强类型评分:</span>{{ orderInfo.extendInfo.jqScore }}</el-col>
+                <el-col :span="6"><span>交强赔付率:</span>{{ orderInfo.extendInfo.jqLossRation }}</el-col>
+                <el-col :span="6"><span>交强险折扣:</span>{{ orderInfo.extendInfo.jqAdjustRate }}</el-col>
+              </el-row>
+              <el-row class="premium-style " :gutter="20">
+                <el-col :span="6"><span>商业类型评分:</span>{{ orderInfo.extendInfo.syScore }}</el-col>
+                <el-col :span="6"><span>商业赔付率:</span>{{ orderInfo.extendInfo.syLossRation }}</el-col>
+                <el-col :span="6"><span>商业险折扣:</span>{{ orderInfo.extendInfo.syAdjustRate }}</el-col>
+              </el-row>
+              <el-row class="premium-style " :gutter="20">
+                <el-col :span="6"><span>交强续保:</span>{{ orderInfo.extendInfo.jqRenewal }}</el-col>
+                <el-col :span="6"><span>商业续保:</span>{{ orderInfo.extendInfo.syRenewal }}</el-col>
+                <el-col :span="6"><span>交强出险次数:</span>{{ orderInfo.extendInfo.jqClaims }}</el-col>
+                <el-col :span="6"><span>商业出险次数:</span>{{ orderInfo.extendInfo.syClaims }}</el-col>
+              </el-row>
+              <el-row class="premium-style " :gutter="20" v-if="orderInfo.ubiPredictedInfoScore">
+                <el-col :span="6"><span>紫金能源车(鼎然-车辆风险评分):</span>{{ orderInfo.ubiPredictedInfoScore }}</el-col>
+              </el-row>
+            </div>
+          </OpenCloseBox>
         <OpenCloseBox id="xzxx" v-if="orderInfo.kindinfo && orderInfo.kindinfo.length > 0">
           <span slot="title">险种信息</span>
           <div slot="boby">
@@ -674,7 +679,7 @@ export default {
           })
           .catch((error) => { });
         }
-      
+
     },
   }
 };

+ 140 - 88
src/views/FinancialManagement/CarInsurance/Verifytasks/Verifyuntasks.vue

@@ -2,7 +2,7 @@
   <div class="page">
     <retrievalForm :fields="retrievalFields" @submit="handleFormSubmit" @toggleCollapse="toggleCollapse"
       @areaSelectChange="areaSelectChange"></retrievalForm>
-    <el-table size="small" :data="pageResult" height="590" border v-loading="loading" highlight-current-row 
+    <el-table size="small" :data="pageResult" height="590" border v-loading="loading" highlight-current-row
       @expand-change="handleRowChange" ref="expandTable" :row-class-name="tableRowClassName"
       :header-cell-style="{ background: '#F2F7FC', fontWeight: '700', color: '#606266' }">
       <el-table-column prop="subOrderId" label="订单号" align="center"></el-table-column>
@@ -50,17 +50,18 @@
           <el-tag v-if="scope.row.auditStatus == '2'" type="danger" size="small">审核驳回</el-tag>
         </template>
       </el-table-column>
-      <el-table-column prop="createtime" label="录单日期" align="center" ></el-table-column>
-      <el-table-column prop="signingTime" label="签单时间" align="center" ></el-table-column>
-      <el-table-column prop="payDate" label="支付时间" align="center" ></el-table-column>
-      <el-table-column label="操作" align="center" min-width="170" >
+      <el-table-column prop="createtime" label="录单日期" align="center"></el-table-column>
+      <el-table-column prop="signingTime" label="签单时间" align="center"></el-table-column>
+      <el-table-column prop="payDate" label="支付时间" align="center"></el-table-column>
+      <el-table-column label="操作" align="center" min-width="170">
         <template slot-scope="scope">
           <kt-button label="审核" type="text" perms="carInsurance:expenseVerification:pendingReview:review"
             @click="OrderDetails(scope.row)" />
           <!-- <kt-button label="轨迹" type="text" perms="carInsurance:expenseVerification:pendingReview:trajectory"
             @click="trajectory(scope.row)" /> -->
           <kt-button label="轨迹" type="text" @click="trajectory(scope.row)" />
-          <kt-button :label="scope.row.problemOrder=='0'?'疑问订单':'取消疑问订单'" type="text" @click="doubtfulOrders(scope.row)" />
+          <kt-button :label="scope.row.problemOrder == '0' ? '疑问订单' : '取消疑问订单'" type="text"
+            @click="doubtfulOrders(scope.row)" />
         </template>
       </el-table-column>
     </el-table>
@@ -71,8 +72,8 @@
         layout="total, sizes, prev, pager, next, jumper" :total="totalSize"></el-pagination>
     </div>
     <!-- 车辆报价新页面 -->
-    <detailsDialog ref="detailsDialog" :orderInfo="orderInfo" :feeOrderNewVoList="feeOrderNewVoList" :isrejection="isrejection"
-      @updatedCost="updatedCost" @adusitFUn="adusitFUn" @rejectionFUn="rejectionFUn">
+    <detailsDialog ref="detailsDialog" :orderInfo="orderInfo" :feeOrderNewVoList="feeOrderNewVoList"
+      :isrejection="isrejection" @updatedCost="updatedCost" @adusitFUn="adusitFUn" @rejectionFUn="rejectionFUn">
     </detailsDialog>
     <el-dialog :visible.sync="ddgjdialogVisible" width="430px">
       <div slot="title" class="dialog-title">
@@ -106,7 +107,7 @@ export default {
   },
   data() {
     return {
-      isrejection:false,
+      isrejection: false,
       ddgjdialogVisible: false,
       trajectoryTable: [],
       feeOrderNewVoList: {},
@@ -251,11 +252,11 @@ export default {
           optionsValue: "value",
           options: [
             {
-              label:'是',
-              value:'1'
-            },{
-              label:'否',
-              value:'0'
+              label: '是',
+              value: '1'
+            }, {
+              label: '否',
+              value: '0'
             },
           ],
         },
@@ -267,11 +268,11 @@ export default {
           optionsValue: "value",
           options: [
             {
-              label:'是',
-              value:'1'
-            },{
-              label:'否',
-              value:'0'
+              label: '是',
+              value: '1'
+            }, {
+              label: '否',
+              value: '0'
             },
           ],
         },
@@ -400,13 +401,13 @@ export default {
       });
     },
     doubtfulOrders(row) {
-      this.$api.task.markProblemOrder({subOrder:row.orderno,problemOrder:row.problemOrder=='0'?'1':'0'}).then((res) => {
-        if (res.code == 200 ) {
+      this.$api.task.markProblemOrder({ subOrder: row.orderno, problemOrder: row.problemOrder == '0' ? '1' : '0' }).then((res) => {
+        if (res.code == 200) {
           this.$message({
-            message: res.msg ||'操作成功',
+            message: res.msg || '操作成功',
             type: 'success'
           });
-      this.findPage();
+          this.findPage();
         }
         else {
           this.$message.error(res.msg)
@@ -522,7 +523,7 @@ export default {
       this.adjustFeeFlag = false;
     },
     // 审核驳回
-    rejectionFUn(){
+    rejectionFUn() {
       this.$prompt('输入驳回原因', '提示', {
         confirmButtonText: '确定',
         cancelButtonText: '取消',
@@ -534,9 +535,9 @@ export default {
           orderNo: this.orderInfo.orderno,
           jqCostsProportionStr: this.adjustFeeDescInfo.jqAllFeeRate,
           syCostsProportionStr: this.adjustFeeDescInfo.syAllFeeRate,
-          auditStatus:'2',
+          auditStatus: '2',
           updateFlag: this.adjustFeeFlag ? "1" : "0",
-          rejectinfo:value
+          rejectinfo: value
         }
         this.$api.task
           .auditFee(subParam)
@@ -547,7 +548,7 @@ export default {
                 message: '操作成功' || res.msg,
                 type: 'success'
               });
-            this.$refs.detailsDialog.setBackupVisible(false);
+              this.$refs.detailsDialog.setBackupVisible(false);
             }
             else {
               this.$message.error(res.msg)
@@ -563,16 +564,16 @@ export default {
         type: 'warning'
       }).then(() => {
         const loading = this.$loading({
-        lock: true,
-        text: '数据加载中,请稍等',
-        spinner: 'el-icon-loading',
-        background: 'rgba(0, 0, 0, 0.7)'
-      });
+          lock: true,
+          text: '数据加载中,请稍等',
+          spinner: 'el-icon-loading',
+          background: 'rgba(0, 0, 0, 0.7)'
+        });
         let subParam = {
           orderNo: this.orderInfo.orderno,
           jqCostsProportionStr: this.adjustFeeDescInfo.jqAllFeeRate,
           syCostsProportionStr: this.adjustFeeDescInfo.syAllFeeRate,
-          auditStatus:'1',
+          auditStatus: '1',
           updateFlag: this.adjustFeeFlag ? "1" : "0",
         }
         this.$api.task.auditFee(subParam).then((res) => {
@@ -721,20 +722,20 @@ export default {
 
     },
     tableRowClassName(row) {
-        if(row.row.isExternal===1){
-            return "flagRow";
-        }
-        else{
-          return ''
-        }
+      if (row.row.isExternal === 1) {
+        return "flagRow";
+      }
+      else {
+        return ''
+      }
     },
     //应用详情
     OrderDetails(dy) {
-      if(dy.isExternal==1){
-        this.isrejection=true
+      if (dy.isExternal == 1) {
+        this.isrejection = true
       }
-      else{
-        this.isrejection=false
+      else {
+        this.isrejection = false
       }
       this.carImageList = [];
       this.ownerImageList = []; //车主影像
@@ -955,52 +956,103 @@ export default {
                   }
                   break;
                 case "华泰财险":
-                  if (this.orderInfo.jqpolicyno) {
-                    this.$api.letter
-                      .HuataigetPolicyPrint({
-                        companyId: res.data.id,
-                        riskCode: "0507",
-                        type: "2", //2:保单
-                      })
-                      .then((res) => {
-                        if (res.data) {
-                          if (res.data.jqxPolicyUrl) {
-                            this.oldfileList.push({
-                              fileTitle: "交强电子保单",
-                              filename: this.orderInfo.jqpolicyno,
-                              fileurl: res.data.jqxPolicyUrl,
-                            });
-                          }
-                          if (res.data.jqxFlagUrl) {
-                            this.oldfileList.push({
-                              fileTitle: "交强电子标志",
-                              filename: this.orderInfo.jqpolicyno,
-                              fileurl: res.data.jqxFlagUrl,
-                            });
-                          }
-                        } else {
-                          this.$message.error(res.msg);
-                        }
-                      });
-                  }
-                  if (this.orderInfo.sypolicyno) {
-                    this.$api.letter
-                      .HuataigetPolicyPrint({
-                        companyId: res.data.id,
-                        riskCode: "0510",
-                        type: "2", //2:保单
-                      })
-                      .then((res) => {
-                        if (res.data && res.data.syxPolicyUrl) {
-                          businessList.push({
-                            fileTitle: "商业电子保单",
-                            filename: this.orderInfo.sypolicyno,
-                            fileurl: res.data.syxPolicyUrl,
+                  switch (res.data.apiType) {
+                    case 1:
+                      if (this.orderInfo.jqpolicyno) {
+                        this.$api.letter
+                          .HuataigetPolicyPrint({
+                            companyId: res.data.id,
+                            riskCode: "0507",
+                            type: "2", //2:保单
+                          })
+                          .then((res) => {
+                            if (res.data) {
+                              if (res.data.jqxPolicyUrl) {
+                                this.oldfileList.push({
+                                  fileTitle: "交强电子保单",
+                                  filename: this.orderInfo.jqpolicyno,
+                                  fileurl: res.data.jqxPolicyUrl,
+                                });
+                              }
+                              if (res.data.jqxFlagUrl) {
+                                this.oldfileList.push({
+                                  fileTitle: "交强电子标志",
+                                  filename: this.orderInfo.jqpolicyno,
+                                  fileurl: res.data.jqxFlagUrl,
+                                });
+                              }
+                            } else {
+                              this.$message.error(res.msg);
+                            }
                           });
-                        } else {
-                          this.$message.error(res.msg);
-                        }
-                      });
+                      }
+                      if (this.orderInfo.sypolicyno) {
+                        this.$api.letter
+                          .HuataigetPolicyPrint({
+                            companyId: res.data.id,
+                            riskCode: "0510",
+                            type: "2", //2:保单
+                          })
+                          .then((res) => {
+                            if (res.data && res.data.syxPolicyUrl) {
+                              businessList.push({
+                                fileTitle: "商业电子保单",
+                                filename: this.orderInfo.sypolicyno,
+                                fileurl: res.data.syxPolicyUrl,
+                              });
+                            } else {
+                              this.$message.error(res.msg);
+                            }
+                          });
+                      }
+                      break;
+                    case 2:
+                      if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {
+                        this.$api.letter
+                          .pythongetPolicyPrint({
+                            subOrderNo: res.data.id
+                          })
+                          .then(res => {
+                            if (res.code == 200 && res.data) {
+                              if (res.data.jqxPolicyUrl) {
+                                this.oldfileList.push({
+                                  fileTitle: "交强电子保单",
+                                  filename: this.orderInfo.jqpolicyno,
+                                  fileurl: res.data.jqxPolicyUrl
+                                });
+                              }
+                              if (res.data.jqxFlagUrl) {
+                                this.oldfileList.push({
+                                  fileTitle: "交强电子标志",
+                                  filename: this.orderInfo.jqpolicyno,
+                                  fileurl: res.data.jqxFlagUrl
+                                });
+                              }
+                              if (res.data.syxPolicyUrl) {
+                                businessList.push({
+                                  fileTitle: "商业电子保单",
+                                  filename: this.orderInfo.sypolicyno,
+                                  fileurl: res.data.syxPolicyUrl
+                                });
+                              }
+                              if (
+                                res.data.jyxInfoList &&
+                                res.data.jyxInfoList.length > 0
+                              ) {
+                                res.data.jyxInfoList.forEach(val => {
+                                  accidentList.push({
+                                    fileTitle: "驾意险保单",
+                                    filename: "驾意险保单",
+                                    fileurl: val.jyx_policy_url
+                                  });
+                                });
+                              }
+                            } else {
+                              this.$message.error(res.msg);
+                            }
+                          });
+                      }
+                      break;
                   }
                   break;
                 case "中煤财险":

+ 1 - 18
src/views/Letter/Wallet/BankCard.vue

@@ -49,8 +49,7 @@
               </div>
             </div>
             <div>
-              <img src="../../../../static/bankupdate.png" mode="" style="width: 24px;height: 24px;"
-                @click="bankupdate(item)" v-loading.fullscreen.lock="Loading">
+
               <img src="../../../../static/bankdel.png" mode="" style="width: 24px;height: 24px;" @click="bankdel(item)"
                 v-loading.fullscreen.lock="Loading">
             </div>
@@ -351,22 +350,6 @@ export default {
                 });
               }
             });
-          } else {
-            this.$api.dept.bankupdate(this.bankAddform).then((res) => {
-              if (res.code == '200') {
-                this.bankAddVisible = false;
-                this.banklist();
-                this.$message({
-                  type: 'success',
-                  message: "修改成功",
-                });
-              } else {
-                this.$message({
-                  type: 'error',
-                  message: res.msg,
-                });
-              }
-            });
           }
         }
       });