فهرست منبع

任务池(渠道、代理人、保险公司)加操作详情

lihongxiao 2 سال پیش
والد
کامیت
da0c8fbfb6

+ 2 - 2
config/dev.env.js

@@ -11,10 +11,10 @@ module.exports = merge(prodEnv, {
   // BASE_URL: '"http://192.168.0.115:8080/"' //凯森
   // BASE_URL: '"http:///192.168.0.106:8080/"',//屈晨
   // BASE_URL: '"http:///192.168.0.253:8080/"',//田智
-  BASE_URL: '"http:///192.168.0.42:8080/"',//武鸿鹏
+  // BASE_URL: '"http:///192.168.0.42:8080/"',//武鸿鹏
   // BASE_URL: '"http://192.168.1.101:8080/"',
   // BASE_URL: '"http:///192.168.0.22:8080/"',//郝宇
-  // BASE_URL: '"http:///192.168.0.103:8080/"',//
+  BASE_URL: '"http:///192.168.0.103:8080/"',//
 })
 
 

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

@@ -784,6 +784,15 @@ export const getAllAgreement = (data) => {
         params:data
     })
 }
+// 代客录单获取协议接口
+export const getAllAgreementByUserId = (data) => {
+    return axios({
+        url: 'tax/manager/getAllAgreementByUserId' ,
+        method: 'get',
+        params:data
+    })
+}
+
 // 爬虫保险,更新订单接口
 export const auditStatusQuery = (data) => {
     return axios({

+ 1 - 1
src/views/Core/KtCommonTable.vue

@@ -251,7 +251,7 @@ export default {
     },
     button5Icon: {
       type: String,
-      default: "fa fa-trash",
+      default: "",
     },
     button2Type: {
       type: String,

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 158 - 552
src/views/Letter/Letter.vue


+ 44 - 2
src/views/Task/AgentPoolChannel.vue

@@ -86,10 +86,14 @@
       :showBatchDelete="false"
       @findPage="findPage"
       button3Name="转发"
+      button3Type="text"
       @handleButton3="transmit"
       button2Name="收回"
+      button2Type="text"
       @handleButton2="takeBack"
-
+      button5Name="详情"
+      button5Type="text"
+      @handleButton5="detailFun"
     ></kt-common-table>
     <el-dialog title="转发" :visible.sync="dialogVisible" width="30%">
         转发人:
@@ -106,6 +110,7 @@
         <el-button type="primary" size="small" @click="transmitSumit">确 定</el-button>
       </span>
     </el-dialog>
+    <detailsDialog ref="detailsDialog" :orderInfo="queryOrders"></detailsDialog>
   </div>
 </template>
   
@@ -113,10 +118,12 @@
 import KtCommonTable from "@/views/Core/KtCommonTable.vue"; //表格组件
 import Cookies from "js-cookie";
 import CommonUtil from "@/utils/comutil.js";
+import detailsDialog from "@/views/Core/components/detailsDialog.vue";
 
 export default {
   components: {
-    KtCommonTable
+    KtCommonTable,
+    detailsDialog
   },
   data() {
     return {
@@ -126,6 +133,7 @@ export default {
       },
       queryFrom: {},
       pageResult: {},
+      queryOrders:{},
       columns: [
         // 数据列
         { prop: "orderno", label: "订单号", sortable: false },
@@ -234,6 +242,40 @@ export default {
         }
       })
     },
+    detailFun(row) {
+      let params = {
+        companyId: row.row.companyId
+      };
+      this.$api.letter.getByCompanyId(params).then(res => {
+        if (res.code == "200") {
+          var data = res.data;
+          data.kindinfo.map((ele, index) => {
+            switch (ele.kindCode) {
+              case "A":
+                ele.amount = "投保";
+                break;
+              case "D4":
+              case "SY_FJ_YBW2":
+                ele.unitAmount = this.toChinesNum(ele.unitAmount);
+                break;
+              case "MJ1":
+              case "MJ2":
+              case "MJ3":
+              case "MJ4":
+                ele.deductibleRate = ele.deductibleRate + "%";
+                break;
+              default:
+                ele.amount = this.toChinesNum(ele.amount);
+            }
+            return ele;
+          });
+          this.queryOrders = data;
+          //赋值费用信息
+          // this.feeDetailInfo=data.orderFeeResult;
+        }
+      });
+      this.$refs.detailsDialog.setBackupVisible(true);
+    },
     transmitSumit() {
         if(this.transmitValue){
             this.$api.task.forwardingSubOrders({auditId:this.transmitValue,orderNo:this.orderNo,subOrderId:this.subOrderId}).then(res=>{

+ 50 - 2
src/views/Task/CompanyPoolChannel.vue

@@ -84,12 +84,18 @@
       :data="pageResult"
       :columns="columns"
       :showBatchDelete="false"
+      element-loading-text="记载中..."
+      v-loading="loading"
       @findPage="findPage"
       button3Name="转发"
+      button3Type="text"
       @handleButton3="transmit"
       button2Name="收回"
+      button2Type="text"
       @handleButton2="takeBack"
-
+      button5Name="详情"
+      button5Type="text"
+      @handleButton5="detailFun"
     ></kt-common-table>
     <el-dialog title="转发" :visible.sync="dialogVisible" width="30%">
         转发人:
@@ -106,6 +112,8 @@
         <el-button type="primary" size="small" @click="transmitSumit">确 定</el-button>
       </span>
     </el-dialog>
+    <detailsDialog ref="detailsDialog" :orderInfo="queryOrders"></detailsDialog>
+
   </div>
 </template>
   
@@ -113,10 +121,11 @@
 import KtCommonTable from "@/views/Core/KtCommonTable.vue"; //表格组件
 import Cookies from "js-cookie";
 import CommonUtil from "@/utils/comutil.js";
+import detailsDialog from "@/views/Core/components/detailsDialog.vue";
 
 export default {
   components: {
-    KtCommonTable
+    KtCommonTable,detailsDialog
   },
   data() {
     return {
@@ -124,8 +133,10 @@ export default {
         pageNum: 1,
         pageSize: 20
       },
+      loading:false,
       queryFrom: {},
       pageResult: {},
+      queryOrders:{},
       columns: [
         // 数据列
         { prop: "orderno", label: "订单号", sortable: false },
@@ -193,6 +204,7 @@ export default {
     },
     // 右侧列表的方法Start
     findPage() {
+      this.loading = true;
       this.$api.task
         .queryPageHospitalityByInsuranceCompany({
           ...this.pageData,
@@ -202,8 +214,10 @@ export default {
         })
         .then(res => {
           if (res.code == 200) {
+            this.loading = false;
             this.pageResult = res.data;
           } else {
+            this.loading = false;
             this.$message.error(res.msg);
           }
         });
@@ -235,6 +249,40 @@ export default {
         }
       })
     },
+    detailFun(row) {
+      let params = {
+        companyId: row.row.companyId
+      };
+      this.$api.letter.getByCompanyId(params).then(res => {
+        if (res.code == "200") {
+          var data = res.data;
+          data.kindinfo.map((ele, index) => {
+            switch (ele.kindCode) {
+              case "A":
+                ele.amount = "投保";
+                break;
+              case "D4":
+              case "SY_FJ_YBW2":
+                ele.unitAmount = this.toChinesNum(ele.unitAmount);
+                break;
+              case "MJ1":
+              case "MJ2":
+              case "MJ3":
+              case "MJ4":
+                ele.deductibleRate = ele.deductibleRate + "%";
+                break;
+              default:
+                ele.amount = this.toChinesNum(ele.amount);
+            }
+            return ele;
+          });
+          this.queryOrders = data;
+          //赋值费用信息
+          // this.feeDetailInfo=data.orderFeeResult;
+        }
+      });
+      this.$refs.detailsDialog.setBackupVisible(true);
+    },
     transmitSumit() {
         if(this.transmitValue){
             this.$api.task.forwardingSubOrders({auditId:this.transmitValue,orderNo:this.orderNo,subOrderId:this.subOrderId}).then(res=>{

+ 11 - 13
src/views/Task/DaikeLetter.vue

@@ -3,7 +3,7 @@
     <div class="flex f-c back">
       <el-form
         class="demo-ruleForm"
-        :model="userform"
+        :model="salespersonForm"
         label-width="100px"
         size="small"
         style="margin-top: 15px"
@@ -13,7 +13,7 @@
             <el-form-item label="业务员" prop="name">
               <el-input
                 placeholder="请输入业务员"
-                v-model="userform.name"
+                v-model="salespersonForm.name"
                 maxlength="17"
                 type="text"
                 show-word-limit
@@ -30,12 +30,12 @@
           </el-col>
           <el-col :span="5">
             <el-form-item label="工号">
-              <el-input v-model="userform.userId" type="text" disabled></el-input>
+              <el-input v-model="salespersonForm.userId" type="text" disabled></el-input>
             </el-form-item>
           </el-col>
           <el-col :span="5">
             <el-form-item label="工号类型">
-              <el-select v-model="userform.noType" disabled>
+              <el-select v-model="salespersonForm.noType" disabled>
                 <el-option label="业务员" value="A"></el-option>
                 <el-option label="代理人" value="B"></el-option>
               </el-select>
@@ -43,7 +43,7 @@
           </el-col>
           <el-col :span="5">
             <el-form-item label="归属" >
-              <el-input v-model="userform.deptName" disabled></el-input>
+              <el-input v-model="salespersonForm.deptName" disabled></el-input>
             </el-form-item>
           </el-col>
         </el-row>
@@ -125,14 +125,12 @@ export default {
   data(){
     return{
       // 业务员信息
-      userform: {},
       userOptions:[],//可选人员列表
       deptName:'',
       activeName:'999',
       dialogVisible:false,
       salespersonData:[],
       salespersonForm:{},
-      userIdProp:'',
       isdisabled:true,
       orderOption:[
         {
@@ -152,7 +150,7 @@ export default {
           value:'4',
         },
       ],
-      message:''
+      message:'',
     }
   },
   created(){
@@ -160,14 +158,14 @@ export default {
   methods:{
      //业务列表双击选中事件
      reslistCurrentChange(row, column, event) {
-      this.userform = row; //名称
+      this.salespersonForm = row; //名称
       this.activeName='999'
-      this.userIdProp=row.userId
+      this.$refs.Ktletter.userId=row.userId
+      this.$refs.Ktletter.obtainProtocol()
       this.dialogVisible = false;
       this.isdisabled=false
     },
     toChooseName(){
-      this.salespersonForm.name= this.userform.name
       const loading = this.$loading({
         lock: true,
         text: "Loading",
@@ -190,13 +188,13 @@ export default {
         this.$refs.Ktletter.add()
       }
       if(tab.index==1){
-        this.$refs.KtOrder.userIdPor=this.userform.userId
+        this.$refs.KtOrder.userIdPor=this.salespersonForm.userId
         this.$refs.KtOrder.statusPor=tab.name
         this.$refs.KtOrder.findPage()
       }
       if(tab.index>1){
         let ref = eval('this.$refs.refName' + Number(tab.name))[0]
-        ref.userIdPor=this.userform.userId
+        ref.userIdPor=this.salespersonForm.userId
         ref.statusPor=tab.name
         ref.findPage()
       }

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

@@ -86,10 +86,14 @@
       :showBatchDelete="false"
       @findPage="findPage"
       button3Name="转发"
+      button3Type="text"
       @handleButton3="transmit"
       button2Name="收回"
+      button2Type="text"
       @handleButton2="takeBack"
-
+      button5Name="详情"
+      button5Type="text"
+      @handleButton5="detailFun"
     ></kt-common-table>
     <el-dialog title="转发" :visible.sync="dialogVisible" width="30%">
         转发人:
@@ -106,6 +110,7 @@
         <el-button type="primary" size="small" @click="transmitSumit">确 定</el-button>
       </span>
     </el-dialog>
+    <detailsDialog ref="detailsDialog" :orderInfo="queryOrders"></detailsDialog>
   </div>
 </template>
   
@@ -113,10 +118,12 @@
 import KtCommonTable from "@/views/Core/KtCommonTable.vue"; //表格组件
 import Cookies from "js-cookie";
 import CommonUtil from "@/utils/comutil.js";
+import detailsDialog from "@/views/Core/components/detailsDialog.vue";
 
 export default {
   components: {
-    KtCommonTable
+    KtCommonTable,
+    detailsDialog
   },
   data() {
     return {
@@ -164,6 +171,7 @@ export default {
       transmitValue: "", //选中的转发人
       orderNo:'', //主订单号
       subOrderId:'', //子订单号
+      queryOrders:{}
     };
   },
   created() {
@@ -270,7 +278,41 @@ export default {
         this.queryFrom.startDate = e[0];
         this.queryFrom.endDate = e[1];
       }
-    }
+    },
+    detailFun(row) {
+      let params = {
+        companyId: row.row.companyId
+      };
+      this.$api.letter.getByCompanyId(params).then(res => {
+        if (res.code == "200") {
+          var data = res.data;
+          data.kindinfo.map((ele, index) => {
+            switch (ele.kindCode) {
+              case "A":
+                ele.amount = "投保";
+                break;
+              case "D4":
+              case "SY_FJ_YBW2":
+                ele.unitAmount = this.toChinesNum(ele.unitAmount);
+                break;
+              case "MJ1":
+              case "MJ2":
+              case "MJ3":
+              case "MJ4":
+                ele.deductibleRate = ele.deductibleRate + "%";
+                break;
+              default:
+                ele.amount = this.toChinesNum(ele.amount);
+            }
+            return ele;
+          });
+          this.queryOrders = data;
+          //赋值费用信息
+          // this.feeDetailInfo=data.orderFeeResult;
+        }
+      });
+      this.$refs.detailsDialog.setBackupVisible(true);
+    },
   }
 };
 </script>

+ 47 - 41
src/views/Task/daikeComponents/KtLetter.vue

@@ -3105,8 +3105,8 @@
       'footer': true,
       'shadow': !isBottom
     }">
-      <el-button size="small" @click="add()" :disabled="isdisabled">录下一单</el-button>
-      <el-button type="primary" :loading="calculateLoading" size="small" @click="quote()" :disabled="isdisabled">保费计算</el-button>
+      <el-button size="small" @click="add()" >录下一单</el-button>
+      <el-button type="primary" :loading="calculateLoading" size="small" @click="quote()" >保费计算</el-button>
     </div>
     <div v-else style="text-align: center" >
       <el-button type="primary" :loading="calculateLoading" size="small" @click="quote()" :disabled="isdisabled">保费计算</el-button>
@@ -5427,48 +5427,54 @@ export default {
         this.HistoryList = res.data;
       });
     },
-    obtainProtocol(data) {
-      this.$api.letter.getAllAgreement().then(res => {
-        if (res.code == 200) {
-          res.data.map(ele => {
-            ele["result"] = {};
-            ele["quoteCode"] = 0;
-            ele["checked"] = false;
-            ele["msg"] = "";
-            ele["lastYearMsg"] = "";
-            ele["agreementId"] = "";
-            ele["apiType"] = "";
-            ele["orderstatus"] = 0;
-            ele.coefficient = "";
-            // ele.agreementId = ele.agreement[0].id;
-            // ele.apiType = ele.agreement[0].apiType;
-            ele.underwritingDescription =
-              ele.agreement[0].underwritingDescription;
-            if (ele.isTaxSource && ele.isTaxSource == "1") {
-              ele.agreement.forEach(val => {
-                if (val.isTaxSource && val.isTaxSource == "1") {
-                  ele.agreementId = val.id;
-                  ele.apiType = val.apiType;
-                }
-              });
-            }
-          });
-          if (data) {
-            res.data.forEach((val, index) => {
-              data.insAreaCompanyEditingDtos.forEach(ele => {
-                if (val.namesimple == ele.inscompany) {
-                  if (ele.inscompany == "中国人寿" && ele.companyId) {
-                    this.lastCompanyId = ele.companyId;
-                  }
-                  res.data[index].quoteCode = 200;
-                  res.data[index].result = ele;
-                }
-              });
+   async obtainProtocol(data) {
+      let res={}
+      if(this.isLetter){
+        res = await this.$api.letter.getAllAgreement()
+      }
+      else{
+        res = await this.$api.letter.getAllAgreementByUserId({userId:this.userId})
+      }
+      if (res.code == 200) {
+        res.data.map(ele => {
+          ele["result"] = {};
+          ele["quoteCode"] = 0;
+          ele["checked"] = false;
+          ele["msg"] = "";
+          ele["lastYearMsg"] = "";
+          ele["agreementId"] = "";
+          ele["apiType"] = "";
+          ele["orderstatus"] = 0;
+          ele.coefficient = "";
+          // ele.agreementId = ele.agreement[0].id;
+          // ele.apiType = ele.agreement[0].apiType;
+          ele.underwritingDescription =
+            ele.agreement[0].underwritingDescription;
+          if (ele.isTaxSource && ele.isTaxSource == "1") {
+            ele.agreement.forEach(val => {
+              if (val.isTaxSource && val.isTaxSource == "1") {
+                ele.agreementId = val.id;
+                ele.apiType = val.apiType;
+              }
             });
           }
+        });
+        if (data) {
+          res.data.forEach((val, index) => {
+            data.insAreaCompanyEditingDtos.forEach(ele => {
+              if (val.namesimple == ele.inscompany) {
+                if (ele.inscompany == "中国人寿" && ele.companyId) {
+                  this.lastCompanyId = ele.companyId;
+                }
+                res.data[index].quoteCode = 200;
+                res.data[index].result = ele;
+              }
+            });
+          });
         }
-        this.totalCompanyList = res.data;
-      });
+      }
+      this.totalCompanyList = res.data;
+     
     },
     //获取保险公司列表
     commpanyList() {

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است