Просмотр исходного кода

保险公司任务池增加业务来源筛选

@dongkboy 2 лет назад
Родитель
Сommit
c695a9a075

+ 51 - 36
src/views/Task/CompanyPoolChannel/CompanyPoolChannel.vue

@@ -3,10 +3,10 @@
     <retrievalForm :fields="retrievalFields" @submit="handleFormSubmit" @toggleCollapse="toggleCollapse"
       @areaSelectChange="areaSelectChange"></retrievalForm>
     <kt-common-table :data="pageResult" :columns="columns" element-loading-text="加载中..." v-loading="loading"
-      :showBatchDelete="false" @findPage="findPage" button3Name="转发" button3Type="text"
-      @handleButton3="transmit" button2Name="报价轨迹" button2Type="text"
-      @handleButton2="trajectory" button5Name="详情" button5Type="text" @handleButton5="detailFun"  button4Name="转发记录" button4Type="text"
-      @handleButton4="forwardingRecords" :operationWidth="300"></kt-common-table>
+      :showBatchDelete="false" @findPage="findPage" button3Name="转发" button3Type="text" @handleButton3="transmit"
+      button2Name="报价轨迹" button2Type="text" @handleButton2="trajectory" button5Name="详情" button5Type="text"
+      @handleButton5="detailFun" button4Name="转发记录" button4Type="text" @handleButton4="forwardingRecords"
+      :operationWidth="300"></kt-common-table>
     <el-dialog title="转发" :visible.sync="dialogVisible" width="30%">
       转发人:
       <el-select v-model="transmitValue" filterable clearable placeholder="请选择">
@@ -17,17 +17,15 @@
         <el-button type="primary" size="small" @click="transmitSumit">确 定</el-button>
       </span>
     </el-dialog>
-    <detailsDialog ref="detailsDialog" :isTaskPool="true" :orderInfo="queryOrders" :isAuditing="isAuditing" :feeOrderNewVoList="feeOrderNewVoList"></detailsDialog>
+    <detailsDialog ref="detailsDialog" :isTaskPool="true" :orderInfo="queryOrders" :isAuditing="isAuditing"
+      :feeOrderNewVoList="feeOrderNewVoList"></detailsDialog>
     <el-dialog :visible.sync="ddgjdialogVisible" width="430px">
       <div slot="title" class=" dialog-title">
         <span>订单轨迹</span>
       </div>
       <div style="height: 300px; overflow-y: auto">
-        <el-steps direction="vertical" :active="trajectoryTable.length - 1" >
-          <el-step v-for="item in trajectoryTable"
-            :key="item.id"
-            :title="getStatusText(item.orderStatus)"
-          >
+        <el-steps direction="vertical" :active="trajectoryTable.length - 1">
+          <el-step v-for="item in trajectoryTable" :key="item.id" :title="getStatusText(item.orderStatus)">
             <template slot="description">
               <span>保险公司:{{ item.insCompany }}</span>
               <span>提交人:{{ item.operator }}</span>
@@ -37,17 +35,16 @@
         </el-steps>
       </div>
     </el-dialog>
-    <el-dialog :visible.sync="forwardingRecordsdialogVisible"  title="转发记录" width="70%">
-      <el-table :data="gridData"  height="400" border  v-loading="loading" highlight-current-row stripe
-        :header-cell-style="{
-          background: '#F2F7FC',
-          fontWeight: '700',
-          color: '#606266',
-        }">
+    <el-dialog :visible.sync="forwardingRecordsdialogVisible" title="转发记录" width="70%">
+      <el-table :data="gridData" height="400" border v-loading="loading" highlight-current-row stripe :header-cell-style="{
+        background: '#F2F7FC',
+        fontWeight: '700',
+        color: '#606266',
+      }">
         <el-table-column property="subOrderId" align="center" label="订单号" width="200"></el-table-column>
         <el-table-column property="oldOperatorId" align="center" label="转发人" width="200"></el-table-column>
         <el-table-column property="newOperatorId" align="center" label="接收人"></el-table-column>
-        <el-table-column property="remark"  align="center" label="转发信息"></el-table-column>
+        <el-table-column property="remark" align="center" label="转发信息"></el-table-column>
         <el-table-column property="createTime" align="center" label="转发时间"></el-table-column>
       </el-table>
     </el-dialog>
@@ -76,9 +73,10 @@ export default {
         userId: "",
       },
 
-      ddgjdialogVisible:false,
-      trajectoryTable:[],
-      optionsStatus:[],
+      ddgjdialogVisible: false,
+      trajectoryTable: [],
+      optionsStatus: [],
+
     }
   },
   mixins: [mixin],
@@ -87,12 +85,23 @@ export default {
     this.$api.insCompany.dicType("insOrderStatus").then((res) => {
       this.optionsStatus = res.data.ddList;
     });
+    this.retrievalFields.push(
+      {
+        name: 'managementSource',
+        label: '业务来源',
+        type: 'select',
+        Retained: true,
+        options: [],
+        optionsIabel: "dictTag",
+        optionsValue: "dictValue",
+      },
+    )
   },
 
   methods: {
 
     getStatusText(code) {
-      return this.optionsStatus.find(val=>val.dictValue==code).dictTag;;
+      return this.optionsStatus.find(val => val.dictValue == code).dictTag;;
     },
     handleFormSubmit(data) {
       let obj = Object.assign(this.pageRequest, data)
@@ -127,7 +136,7 @@ export default {
           }
         });
     },
-    trajectory(row){
+    trajectory(row) {
       this.$api.letter.queryBySuborder(row.row.subOrderId).then((res) => {
         if (res.code == 200 && res.data.length > 0) {
           this.ddgjdialogVisible = true;
@@ -245,31 +254,37 @@ export default {
 </script>
 
 <style scoped lang="scss">
-/deep/{
+/deep/ {
   .el-step__description.is-finish,
   .el-step__head.is-finish {
     color: #333;
     border: none;
   }
-  .el-step__title,.el-step__icon-inner{
-    color:var(--themeColor)
+
+  .el-step__title,
+  .el-step__icon-inner {
+    color: var(--themeColor)
   }
-  .el-step__line-inner{
-      height:0;
-      display:none
-    }
-  .is-flex{
 
-    .el-step__icon{
+  .el-step__line-inner {
+    height: 0;
+    display: none
+  }
+
+  .is-flex {
+
+    .el-step__icon {
       background: var(--themeColor)
     }
-    .el-step__icon-inner{
+
+    .el-step__icon-inner {
       color: #fff;
     }
   }
-  .el-step__icon.is-text{
-    border:none;
-    box-shadow: 0px 2px 2px 0px rgba(0,0,0,0.1);
+
+  .el-step__icon.is-text {
+    border: none;
+    box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.1);
   }
 }
 </style>

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

@@ -133,7 +133,17 @@ export default {
     this.$api.insCompany.dicType("insOrderStatus").then((res) => {
       this.optionsStatus = res.data.ddList;
     });
-
+    this.retrievalFields.push(
+      {
+        name: 'managementSource',
+        label: '业务来源',
+        type: 'select',
+        Retained: true,
+        options: [],
+        optionsIabel: "dictTag",
+        optionsValue: "dictValue",
+      },
+    )
   },
 
   methods: {

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

@@ -185,11 +185,22 @@ export default {
     this.$api.insCompany.dicType("insOrderStatus").then((res) => {
       this.optionsStatus = res.data.ddList;
     });
+    this.retrievalFields.push(
+      {
+        name: 'managementSource',
+        label: '业务来源',
+        type: 'select',
+        Retained: true,
+        options: [],
+        optionsIabel: "dictTag",
+        optionsValue: "dictValue",
+      },
+    )
   },
 
   methods: {
     querystatus(item) {
-      
+
       let inscompany = {
         国任财险: "updateOrderInfoGuoren",
         华泰财险: "updateOrderInfoHuatai",

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

@@ -227,6 +227,17 @@ export default {
     this.$api.insCompany.dicType("insOrderStatus").then((res) => {
       this.optionsStatus = res.data.ddList;
     });
+    this.retrievalFields.push(
+      {
+        name: 'managementSource',
+        label: '业务来源',
+        type: 'select',
+        Retained: true,
+        options: [],
+        optionsIabel: "dictTag",
+        optionsValue: "dictValue",
+      },
+    )
   },
 
   methods: {
@@ -344,7 +355,7 @@ export default {
         this.queryFrom.endDate = e[1];
       }
     },
-    
+
   }
 };
 </script>

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

@@ -134,7 +134,17 @@ export default {
     this.$api.insCompany.dicType("insOrderStatus").then((res) => {
       this.optionsStatus = res.data.ddList;
     });
-
+    this.retrievalFields.push(
+      {
+        name: 'managementSource',
+        label: '业务来源',
+        type: 'select',
+        Retained: true,
+        options: [],
+        optionsIabel: "dictTag",
+        optionsValue: "dictValue",
+      },
+    )
   },
 
   methods: {

+ 4 - 3
src/views/Task/mixin.js

@@ -277,7 +277,8 @@ export const mixin = { // 导出混入对象
     this.areaqueryList(1, 99, "provinceId");
     this.CompanyList();
     this.agrmentlist();
-    this.getDicType("productsType"); //车船税类型
+    this.getDicType("productsType",'riskCode'); //投保险种
+    this.getDicType("organizationSource",'managementSource'); //业务来源
     this.getDicTypePro("natureOfVehicleUse"); //车辆使用性质
     this.getDicTypePro("vehicleType"); //车辆种类
     this.getDicTypePro("trafficManagementVehicleType"); //车辆类型
@@ -468,10 +469,10 @@ export const mixin = { // 导出混入对象
         this.selectDataMatching(this.retrievalFields, 'agreeId', res.data);
       });
     },
-    getDicType(type) {
+    getDicType(type,name) {
       this.$api.insCompany.dicType(type).then(res => {
         if (res.code == 200) {
-          this.selectDataMatching(this.retrievalFields, 'riskCode', res.data.ddList);
+          this.selectDataMatching(this.retrievalFields, name, res.data.ddList);
         }
       });
     },