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

1\协议录入模块功能
2\人员模块功能
3\登录限制
4\代客录单功能

lihongxiao 2 лет назад
Родитель
Сommit
e144cf3dc7

+ 2 - 2
config/dev.env.js

@@ -13,8 +13,8 @@ module.exports = merge(prodEnv, {
   // BASE_URL: '"http:///192.168.0.253: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.22:8080/"',//郝宇
+  // BASE_URL: '"http:///192.168.0.103:8080/"',//
 })
 
 

+ 218 - 29
src/views/AgreementManage/CarInsurance/AgreementEntry.vue

@@ -11,7 +11,7 @@
             </el-form-item>
           </el-col>
           <el-col :span="6">
-            <el-form-item label="修改人">
+            <el-form-item label="修改人"> 
               <el-input :size="overSize" clearable v-model.trim="queryForm.modifiedBy" placeholder="请输入"></el-input>
             </el-form-item>
           </el-col>
@@ -104,11 +104,17 @@
         <el-table-column prop="endDate" label="协议失效日期" align="center"></el-table-column>
         <el-table-column prop="matchType" label="匹配日期类型" align="center" :formatter="matchtypeFormatter"></el-table-column>
         <el-table-column prop="moneyTime" label="结算周期" align="center" :formatter="moneytimeFormatter"></el-table-column>
-        <el-table-column prop="validStatus" label="状态" align="center" :formatter="agreestatusFormatter"></el-table-column>
+        <el-table-column prop="auditStatus" label="状态"  align="center" >
+          <template  slot-scope="scope">
+            <span  :style="'color:'+agreestatusStyle(scope.row.auditStatus)">
+                {{auditstatusFormatter(scope.row)}}
+            </span>
+          </template>
+        </el-table-column>
         <el-table-column prop="updateTime" label="修改时间" align="center" :formatter="updatetimeFormatter"></el-table-column>
         <el-table-column prop="validStatus" label="是否有效" align="center">
           <template slot-scope="scope">
-            <span :size="overSize" type="primary">{{
+            <span  :style="{ color: scope.row.validStatus == '1'?'#67c23a':'#909399' }">{{
               scope.row.validStatus == 1 ? "有效" : "无效" }}</span>
           </template>
         </el-table-column>
@@ -670,6 +676,55 @@
     </el-dialog>
 
     <el-dialog title="产品历史记录" :visible.sync="productHistoryRecordDialogVisible" width="70%" :fullscreen="true">
+      <el-row class="queryFrom">
+        <el-form ref="queryFormRef" :model="productHistoryRecordForm" label-width="80px">
+          <el-col :span="5">
+            <el-form-item label="操作人">
+              <el-input
+                clearable
+                style="width:220px"
+                size="small"
+                placeholder="操作人"
+                v-model="productHistoryRecordForm.modifier"
+              ></el-input>
+            </el-form-item>
+        </el-col>
+        <el-col :span="5">
+            <el-form-item label="操作类型">
+              <el-select clearable size="small" v-model="productHistoryRecordForm.operatorType" placeholder="请选择">
+              <el-option
+                v-for="item in operationTypeOption"
+                :key="item.value"
+                :label="item.label"
+                :value="item.value">
+              </el-option>
+            </el-select>
+            </el-form-item>
+        </el-col>
+        <el-col :span="5">
+            <el-form-item label="操作时间">
+              <el-date-picker
+              clearable
+              v-model="productHistoryRecordForm.operatorTime"
+                type="date"
+                size="small"
+                value-format="yyyy-MM-dd"
+                placeholder="选择日期">
+              </el-date-picker>
+            </el-form-item>
+        </el-col>
+        <el-col :span="3">
+          <el-form-item label="">
+              <el-button
+                size="small"
+                type="primary"
+                @click="productHistoryCostFindPage"
+                >查询</el-button
+              >
+            </el-form-item>
+        </el-col>
+        </el-form>
+    </el-row>
       <kt-common-table :tableHeights="700" :SerialShow="false" :operationWidth="200" :showOperation="true"
         button2Name="详情" @handleButton2="productHistoryDetails" :showBatchDelete="false" :showBatchSettled="false"
         :showBatchPrint="false" :data="productHistoryRecordResult" :columns="productHistoryRecordColumns"
@@ -678,6 +733,55 @@
     </el-dialog>
     <el-dialog title="承保规则历史记录" :visible.sync="underwritingRulesHistoryRecordDialogVisible" width="70%"
       :fullscreen="true">
+      <el-row class="queryFrom">
+        <el-form ref="queryFormRef" :model="underwritingRulesHistoryCostFindForm" label-width="80px">
+          <el-col :span="5">
+            <el-form-item label="操作人">
+              <el-input
+                clearable
+                style="width:220px"
+                size="small"
+                placeholder="操作人"
+                v-model="underwritingRulesHistoryCostFindForm.modifier"
+              ></el-input>
+            </el-form-item>
+        </el-col>
+        <el-col :span="5">
+            <el-form-item label="操作类型">
+              <el-select clearable size="small" v-model="underwritingRulesHistoryCostFindForm.operatorType" placeholder="请选择">
+              <el-option
+                v-for="item in operationTypeOption"
+                :key="item.value"
+                :label="item.label"
+                :value="item.value">
+              </el-option>
+            </el-select>
+            </el-form-item>
+        </el-col>
+        <el-col :span="5">
+            <el-form-item label="操作时间">
+              <el-date-picker
+              clearable
+              v-model="underwritingRulesHistoryCostFindForm.operatorTime"
+                type="date"
+                size="small"
+                value-format="yyyy-MM-dd"
+                placeholder="选择日期">
+              </el-date-picker>
+            </el-form-item>
+        </el-col>
+        <el-col :span="3">
+          <el-form-item label="">
+              <el-button
+                size="small"
+                type="primary"
+                @click="underwritingRulesHistoryCostFindPage"
+                >查询</el-button
+              >
+            </el-form-item>
+        </el-col>
+        </el-form>
+    </el-row>
       <kt-common-table :tableHeights="700" :SerialShow="false" :operationWidth="200" :showOperation="true"
         :showBatchDelete="false" :showBatchSettled="false" :showBatchPrint="false" button2Name="详情"
         @handleButton2="underwritingRulesHistoryDetails" :data="underwritingRulesHistoryRecordResult"
@@ -685,6 +789,55 @@
       </kt-common-table>
     </el-dialog>
     <el-dialog title="协议历史记录" :visible.sync="agreementHistoryRecordDialogVisible" width="70%" :fullscreen="true">
+      <el-row class="queryFrom">
+        <el-form ref="queryFormRef" :model="productpageRequestForm" label-width="80px">
+          <el-col :span="5">
+            <el-form-item label="操作人">
+              <el-input
+                clearable
+                style="width:220px"
+                size="small"
+                placeholder="操作人"
+                v-model="productpageRequestForm.modifier"
+              ></el-input>
+            </el-form-item>
+        </el-col>
+        <el-col :span="5">
+            <el-form-item label="操作类型">
+              <el-select clearable size="small" v-model="productpageRequestForm.operatorType" placeholder="请选择">
+              <el-option
+                v-for="item in operationTypeOption"
+                :key="item.value"
+                :label="item.label"
+                :value="item.value">
+              </el-option>
+            </el-select>
+            </el-form-item>
+        </el-col>
+        <el-col :span="5">
+            <el-form-item label="操作时间">
+              <el-date-picker
+              clearable
+              v-model="productpageRequestForm.operatorTime"
+                type="date"
+                size="small"
+                value-format="yyyy-MM-dd"
+                placeholder="选择日期">
+              </el-date-picker>
+            </el-form-item>
+        </el-col>
+        <el-col :span="3">
+          <el-form-item label="">
+              <el-button
+                size="small"
+                type="primary"
+                @click="agreementHistoryCostFindPage"
+                >查询</el-button
+              >
+            </el-form-item>
+        </el-col>
+        </el-form>
+    </el-row>
       <kt-common-table :tableHeights="700" :SerialShow="false" :operationWidth="200" :showOperation="true"
         button2Name="详情" @handleButton2="agreementsHistory" :showBatchDelete="false" :showBatchSettled="false"
         :showBatchPrint="false" :data="agreementHistoryRecordResult" :columns="agreementHistoryRecordColumns"
@@ -975,45 +1128,57 @@ export default {
   },
   data() {
     return {
+      operationTypeOption:[
+        {
+          label:'新增',
+          value:'add'
+        },{
+          label:'修改',
+          value:'update'
+        },{
+          label:'删除',
+          value:'delete'
+        },
+      ],
       areaOptions: [],
       productCostCopyInfo: {},
       agreementHistoryRecordColumns: [
         { prop: "agreementCode", label: "协议代码", minWidth: 180 },
-        { prop: "agreementName", label: " 协议名称", minWidth: 160 },
+        { prop: "agreementName", label: "协议名称", minWidth: 160 },
         { prop: "agreementAbbreviation", label: "协议简称", minWidth: 120 },
         {
           prop: "agreementType",
-          label: " 协议类型",
+          label: "协议类型",
           minWidth: 160,
           formatter: this.agreementtypeFormatter,
         },
-        { prop: "insuranceCompany", label: " 合作公司", minWidth: 160 },
-        { prop: "dockingPerson", label: " 对接人", minWidth: 160 },
-        { prop: "dockingPhone", label: " 联系方式(对接人)", minWidth: 160 },
-        { prop: "withTax", label: " 含增值税结算", minWidth: 160 },
+        { prop: "insuranceCompany", label: "合作公司", minWidth: 160 },
+        { prop: "dockingPerson", label: "对接人", minWidth: 160 },
+        { prop: "dockingPhone", label: "联系方式(对接人)", minWidth: 160 },
+        { prop: "withTax", label: "含增值税结算", minWidth: 160 },
         {
           prop: "matchType",
-          label: " 保单日期类型",
+          label: "保单日期类型",
           minWidth: 160,
           formatter: this.matchtypeFormatter,
         },
-        { prop: "startDate", label: " 协议起期", minWidth: 160 },
-        { prop: "endDate", label: " 协议止期", minWidth: 160 },
+        { prop: "startDate", label: "协议起期", minWidth: 160 },
+        { prop: "endDate", label: "协议止期", minWidth: 160 },
         {
           prop: "moneyType",
-          label: " 佣金发放方式",
+          label: "佣金发放方式",
           minWidth: 160,
           formatter: this.moneyTypeFormatter,
         },
         {
           prop: "validStatus",
-          label: " 有效状态",
+          label: "有效状态",
           minWidth: 160,
           formatter: this.agreestatusFormatter,
         },
         {
           prop: "moneyTime",
-          label: " 结算周期",
+          label: "结算周期",
           minWidth: 160,
           formatter: this.moneytimeFormatter,
         },
@@ -1022,8 +1187,10 @@ export default {
           label: " 保险公司账号配置",
           minWidth: 1060,
         },
-        { prop: "operator", label: " 操作人", minWidth: 160 },
-        { prop: "operatorTime", label: " 操作时间", minWidth: 160 },
+        { prop: "operator", label: "操作人", minWidth: 160 },
+        
+        { prop: "operatorType", label: "操作类型", formatter: this.operatorTypeFormatter  },
+        { prop: "operatorTime", label: "操作时间", minWidth: 160 },
       ],
       underwritingRulesHistoryRecordColumns: [
         { prop: "modifier", label: "操作人", minWidth: 120 },
@@ -1842,6 +2009,11 @@ export default {
         { value: "2", label: "退回修改" },
         { value: "99", label: "已失效" },
       ],
+      auditstatusoptions: [
+        { value: "0", label: "申请审核" },
+        { value: "1", label: "审核通过" },
+        { value: "2", label: "审核不通过" },
+      ],
       prodInsurance: [],
       schemeindex: "",
       productCostsindex: "",
@@ -1852,9 +2024,13 @@ export default {
       productHistoryRecordResult: [],
       underwritingRulesHistoryRecordDialogVisible: false,
       underwritingRulesHistoryRecordResult: [],
+      productpageRequestForm:{},
+      productHistoryRecordForm:{},
+      underwritingRulesHistoryCostFindForm:{}
     };
   },
   computed: {
+  
     // 机构列表转属性数据
     companyListTree() {
       let cloneData = JSON.parse(JSON.stringify(this.companyList)); // 对源数据深度克隆
@@ -1942,6 +2118,18 @@ export default {
     this.findLeftTreeData();
   },
   methods: {
+    agreestatusStyle(val){
+        switch (val) {
+        case 0:
+          return '#409eff'
+        case 1:
+          return '#67c23a'
+        case 2:
+          return '#f56c6c'
+        default:
+          break;
+      }
+    },
     productFilterListChange(e){
       let productstring=e.join(",")
       this.agreement.productsCode=productstring;
@@ -2177,7 +2365,7 @@ export default {
       }
       this.productpageRequest["agreementId"] = this.agreementId;
       this.$api.insCompany
-        .agreementHistory(this.productpageRequest)
+        .agreementHistory({...this.productpageRequest,...this.productpageRequestForm})
         .then((res) => {
           this.agreementHistoryRecordResult = res.data;
         });
@@ -2202,7 +2390,7 @@ export default {
       }
       this.productpageRequest["agreementId"] = this.agreementId;
       this.$api.insCompany
-        .productCostHistory(this.productpageRequest)
+        .productCostHistory({...this.productpageRequest,...this.productHistoryRecordForm})
         .then((res) => {
           this.productHistoryRecordResult = res.data;
         });
@@ -2237,7 +2425,7 @@ export default {
       }
       this.productpageRequest["agreementId"] = this.agreementId;
       this.$api.insCompany
-        .undwrtRulesHistoryPage(this.productpageRequest)
+        .undwrtRulesHistoryPage({...this.productpageRequest,...this.underwritingRulesHistoryCostFindForm})
         .then((res) => {
           this.underwritingRulesHistoryRecordResult = res.data;
         });
@@ -2782,15 +2970,6 @@ export default {
 
     // 右侧列表的方法End
     //-- formatter begin--
-    operatorTypeFormatter(row, column) {
-      let operatorType = row.operatorType;
-      switch (operatorType) {
-        case "add":
-          return '新增'
-        case "update":
-          return '修改'
-      }
-    },
     operatorTypeFormatter(row, column) {
       let operatorType = row.operatorType;
       switch (operatorType) {
@@ -2851,6 +3030,15 @@ export default {
         });
       }
     },
+    auditstatusFormatter(row, column) {
+      let status = row.auditStatus;
+      return CommonUtil.getDataName({
+        dataList: this.auditstatusoptions,
+        value: "value",
+        label: "label",
+        data: status,
+      });
+    },
     validIndFormatter(row, column) {
       let validInd = row.validInd;
       if (validInd == 1) {
@@ -3022,6 +3210,7 @@ export default {
 };
 </script>
 <style scoped lang="scss">
+/* 图二 */
 .el-divider {
   margin: 10px 0px 15px !important;
 }

+ 65 - 60
src/views/Login.vue

@@ -12,7 +12,7 @@
             <div style="padding:15% 20% ">
               <img class="img2" src="../assets//image/logo_img.png" alt="">
               <div v-show="toggleQrCode" style="text-align: center;">
-                <div class="img3" v-loading="loadingCode"  id="qrcode" ref="qrcode">
+                <div class="img3" v-loading="loadingCode" id="qrcode" ref="qrcode">
                   <transition name="el-fade-in">
                     <el-result v-if="tipVisibility" class="scanSuccess" icon="success" title="扫码成功"></el-result>
                   </transition>
@@ -49,8 +49,8 @@
                   <el-button size="medium" type="primary" plain style="width:48%;float: left;"
                     @click.native.prevent="reset">重
                     置</el-button>
-                  <el-button size="medium" type="primary" style="width:48%;float: right;" @click.native.prevent="login"
-                    :loading="loading">登 录</el-button>
+                  <el-button size="medium" type="primary" style="width:48%;float: right;"
+                    @click.native.prevent="login('loginForm')" :loading="loading">登 录</el-button>
                 </el-row>
               </el-form>
             </div>
@@ -85,7 +85,7 @@ export default {
   },
   data() {
     return {
-      loadingCode:false,
+      loadingCode: false,
       qrcode: null,
       rememberPassword: false,
       loading: false,
@@ -134,61 +134,66 @@ export default {
         }
       }
     },
-    login() {
-      this.loading = true
-      let userInfo = {
-        account: this.loginForm.account,
-        password: this.loginForm.password,
-        captcha: this.loginForm.captcha.toLowerCase(),
-        captchaId: this.loginForm.captchaId
-      }
-
-      // this.$store.dispatch('login', userInfo)
-      //     .then(() => {
-      //       if (this.rememberPassword) { //是否保存密码
-      //       Cookies.set('accountInfo', { 'account': this.loginForm.account, 'password': this.loginForm.password, })
-      //     } else {
-      //       Cookies.remove('accountInfo')
-      //     }
-      //     Cookies.set('user', userInfo.account) /
-      //     sessionStorage.setItem('user', userInfo.account) // 保存用户到本地会话
-      //     this.$store.commit('menuRouteLoaded', false) // 要求重新加载导航菜单
-      //     this.$router.push('/')
-      //     this.loading = false
-      //   })
-      //   .catch(() => {
-      //     this.loading = false
-      //   })
-
-      this.$api.login.login2(userInfo).then((res) => {
-        if (res.code != 200) {
-          this.$message({
-            message: res.msg,
-            type: 'error',
-            duration: 2000
-          })
-          if (res.code == 500 && res.msg == '验证码不正确') {
-            this.refreshCaptcha()
+    login(formName) {
+      this.$refs[formName].validate((valid) => {
+        if (valid) {
+          this.loading = true
+          let userInfo = {
+            account: this.loginForm.account,
+            password: this.loginForm.password,
+            captcha: this.loginForm.captcha.toLowerCase(),
+            captchaId: this.loginForm.captchaId
           }
-        }
-        else {
 
-          if (this.rememberPassword) { //是否保存密码
-            Cookies.set('accountInfo', { 'account': this.loginForm.account, 'password': this.loginForm.password, })
-          } else {
-            Cookies.remove('accountInfo')
-          }
-          Cookies.set('token', res.data) // 放置token到Cookie
-          this.getDictItems()
-          this.getUser();
+          // this.$store.dispatch('login', userInfo)
+          //     .then(() => {
+          //       if (this.rememberPassword) { //是否保存密码
+          //       Cookies.set('accountInfo', { 'account': this.loginForm.account, 'password': this.loginForm.password, })
+          //     } else {
+          //       Cookies.remove('accountInfo')
+          //     }
+          //     Cookies.set('user', userInfo.account) /
+          //     sessionStorage.setItem('user', userInfo.account) // 保存用户到本地会话
+          //     this.$store.commit('menuRouteLoaded', false) // 要求重新加载导航菜单
+          //     this.$router.push('/')
+          //     this.loading = false
+          //   })
+          //   .catch(() => {
+          //     this.loading = false
+          //   })
+
+          this.$api.login.login2(userInfo).then((res) => {
+            if (res.code != 200) {
+              this.$message({
+                message: res.msg,
+                type: 'error',
+                duration: 2000
+              })
+              if (res.code == 500 && res.msg == '验证码不正确') {
+                this.refreshCaptcha()
+              }
+            }
+            else {
+              if (this.rememberPassword) { //是否保存密码
+                Cookies.set('accountInfo', { 'account': this.loginForm.account, 'password': this.loginForm.password, })
+              } else {
+                Cookies.remove('accountInfo')
+              }
+              Cookies.set('token', res.data) // 放置token到Cookie
+              this.getDictItems()
+              this.getUser();
+            }
+            this.loading = false
+          }).catch((res) => {
+            this.$message({
+              message: res.message,
+              type: 'error',
+              duration: 2000
+            })
+          });
+        } else {
+          return false;
         }
-        this.loading = false
-      }).catch((res) => {
-        this.$message({
-          message: res.message,
-          type: 'error',
-          duration: 2000
-        })
       });
     },
     getDictItems() {
@@ -221,7 +226,7 @@ export default {
           localStorage.setItem('routerId', '420');
           this.$store.commit('menuRouteLoaded', false);
           this.$router.push('/');
-          this.loadingCode=false;
+          this.loadingCode = false;
         }
         else {
           this.$message.error(response.msg)
@@ -268,10 +273,10 @@ export default {
       this.$api.login.QrCodeStatusQuery(this.uuid).then((res) => {
         if (res.data.statusCode == 20000) {
           this.tipVisibility = true;
-          this.loadingCode=true;
-          setTimeout(()=>{
+          this.loadingCode = true;
+          setTimeout(() => {
             this.CodeLoginSuccess(res.data.token)
-          },1500)
+          }, 1500)
         }
       });
     },

+ 28 - 2
src/views/PeopleManage/Player/PlayerManage.vue

@@ -39,6 +39,16 @@
             @handleSearchList="handleSearchList"
             :pagination="pageData"
           >
+          <template slot="领导人" >
+          <el-select size="small" v-model="queryFrom.leaderName" placeholder="请选择">
+              <el-option
+                v-for="item in searchLeaderOptions"
+                :key="item.id"
+                :label="item.name"
+                :value="item.name">
+              </el-option>
+            </el-select>
+          </template>
           </templateTable>
         </SplitArea>
         <!-- 右侧列表页面End -->
@@ -264,6 +274,11 @@ export default {
           type: "select",
           options: JSON.parse(localStorage.getItem("user_statusoptions")),
         },
+        {
+          label: "领导人",
+          name: "领导人",
+          type: "slot",
+        },
         // {
         //   label: "角色",
         //   prop: "roleId",
@@ -353,11 +368,14 @@ export default {
       dialogVisible: false, // 新增编辑界面是否显示
       option: [], //机构列表
       dialogPassword: true, //密码是否显示明文
-      leaderOptions:[]
+      leaderOptions:[],
+      searchLeaderOptions:[]
     };
   },
   created() {
     this.findPage();
+    this.searchLeaderFun()
+
   },
   watch: {
     containsSubDeptChecked() {
@@ -365,12 +383,20 @@ export default {
     },
   },
   methods: {
+    searchLeaderFun(){
+      this.$api.user
+          .findBackListByDeptId({ deptId: this.deptId })
+          .then((res) => {
+            this.searchLeaderOptions = res.data;
+          });
+    },
     // 点击事件
     onZTreeClick(evt, treeId, treeNode) {
       this.currentTreeNode = evt;
       this.deptId = this.currentTreeNode.id;
       this.pageData.pageNum = 1;
       this.findPage();
+      this.searchLeaderFun();
     },
 
     //联级选择器触发事件
@@ -396,7 +422,7 @@ export default {
       this.$api.user
         .findUserList({
           ...this.pageData,
-          dto: { ...data, deptId: this.deptId, agentFlag: "1",roleId:'19'},
+          dto: { ...data, deptId: this.deptId, agentFlag: "1",roleId:'19',leaderName:this.queryFrom.leaderName},
         })
         .then((res) => {
           if (res.code == 200 && res.data.records.length > 0) {

+ 26 - 10
src/views/PeopleManage/Player/PlayerManageteam.vue

@@ -39,6 +39,16 @@
             @handleSearchList="handleSearchList"
             :pagination="pageData"
           >
+          <template slot="领导人" >
+          <el-select size="small" v-model="queryFrom.leaderName" placeholder="请选择">
+              <el-option
+                v-for="item in searchLeaderOptions"
+                :key="item.id"
+                :label="item.name"
+                :value="item.name">
+              </el-option>
+            </el-select>
+          </template>
           </templateTable>
         </SplitArea>
         <!-- 右侧列表页面End -->
@@ -436,6 +446,7 @@ export default {
   mixins: [mixin], 
   data() {
     return {
+      searchLeaderOptions:[],
       leaderOptions:[],
       activeName: "1", //弹框tab索引
       isShow: true, //密码是否显示
@@ -462,15 +473,11 @@ export default {
           type: "select",
           options: JSON.parse(localStorage.getItem("user_statusoptions")),
         },
-        // {
-        //   label: "角色",
-        //   prop: "roleId",
-        //   type: "select",
-        //   options: [
-        //     { label: "出单员", value: "19" },
-        //     { label: "团队长", value: "21" },
-        //   ],
-        // },
+        {
+          label: "领导人",
+          name: "领导人",
+          type: "slot",
+        },
       ],
       tableConfig: {
         columns: [
@@ -559,6 +566,7 @@ export default {
   },
   created() {
     this.findPage();
+    this.searchLeaderFun()
   },
  
   watch: {
@@ -567,6 +575,13 @@ export default {
     },
   },
   methods: {
+    searchLeaderFun(){
+      this.$api.user
+          .findBackListByDeptId({ deptId: this.deptId })
+          .then((res) => {
+            this.searchLeaderOptions = res.data;
+          });
+    },
     beforeTabLeave() {
       // let p = new Promise((resolve, reject) => {
       //   this.$refs.formData.validate(async (valid) => {
@@ -629,6 +644,7 @@ export default {
         this.deptId = this.currentTreeNode.id
         this.pageData.pageNum =1;
         this.findPage();
+        this.searchLeaderFun();
         this.formData.deptId = [];
         this.platform(treeId);
         
@@ -658,7 +674,7 @@ export default {
       this.$api.user
         .findUserList({
           ...this.pageData,
-          dto: { ...data, deptId: this.deptId, agentFlag: "1",roleId:'21' },
+          dto: { ...data, deptId: this.deptId, agentFlag: "1",roleId:'21',leaderName:this.queryFrom.leaderName },
         })
         .then((res) => {
           if (res.code == 200 && res.data.records.length > 0) {

+ 1 - 1
src/views/PeopleManage/Player/RegionPerformanceManage.vue

@@ -314,7 +314,7 @@
     },
     getDetailData(){
       this.loading = true;
-      this.$api.user.quUserNumDetail({...this.detailParams,userId:this.userId}).then((res) => {
+      this.$api.user.quUserNumDetail({...this.detailParams,userId:this.userId,createTimeStart:this.formData.createTimeStart,createTimeEnd:this.formData.createTimeEnd }).then((res) => {
         if (res.code == 200) {
           this.detailData = res.data.records;
           this.detailParams.pageNum = res.data.current;

+ 37 - 8
src/views/PeopleManage/Staff/StaffManage.vue

@@ -74,13 +74,31 @@
                 <el-col :span="5">
                   <el-form-item label="状态">
                     <el-select
-              style="width:200px"
-              clearable 
-                v-model="pageData.status"
-                placeholder="请选择"
-              >
-              <el-option v-for="val in user_statusoptions" :label="val.label" :value="val.value" :key="val.id"></el-option>
-            </el-select>
+                      style="width:200px"
+                      clearable 
+                        v-model="pageData.status"
+                        placeholder="请选择"
+                      >
+                      <el-option v-for="val in user_statusoptions" :label="val.label" :value="val.value" :key="val.id"></el-option>
+                    </el-select>
+                  </el-form-item>
+                </el-col>
+                <el-col :span="5">
+                  <el-form-item label="领导人">
+                    <el-select
+                    size="small" 
+                      style="width:215px"
+                      clearable 
+                        v-model="pageData.leaderId"
+                        placeholder="请选择"
+                      >
+                      <el-option
+                      v-for="item in searchLeaderOptions"
+                      :key="item.id"
+                      :label="item.name"
+                      :value="item.name">
+                    </el-option>
+                    </el-select>
                   </el-form-item>
                 </el-col>
                 <el-col :span="4">
@@ -525,7 +543,8 @@ export default {
       //影像上传列表
       imagesIdList:[],
       dialogPassword:false, //密码是否显示明文
-      leaderOptions:[]
+      leaderOptions:[],
+      searchLeaderOptions:{}
     };
   },
   created() {
@@ -533,6 +552,7 @@ export default {
     // this.getDictItems("sex");
     // this.getDictItems("user_status");
     this.getFindRoleByUserId();
+    this.searchLeaderFun()
   },
   mounted() {
     //用像素初始化左边的split的宽度
@@ -548,6 +568,13 @@ export default {
     },
   },
   methods: {
+    searchLeaderFun(){
+      this.$api.user
+          .findBackListByDeptId({ deptId: this.deptId })
+          .then((res) => {
+            this.searchLeaderOptions = res.data;
+          });
+    },
     //获取角色数据
     getFindRoleByUserId(){
       this.$api.role.findRoleByUserId().then(res=>{
@@ -599,6 +626,7 @@ export default {
        this.deptId  = this.currentTreeNode.id;
       this.pageData.pageNum =1;
       this.findPage();
+      this.searchLeaderFun()
       // this.formData.deptId = [];
       // this.platform(treeId);
       
@@ -654,6 +682,7 @@ export default {
         userId:this.pageData.userId,
         status:this.pageData.status,
         agentFlag:0,
+        leaderName:this.pageData.leaderId,
         roleId:'22',
       }
       // .findUserList({

+ 6 - 0
src/views/Task/DaikeLetter.vue

@@ -154,6 +154,12 @@ export default {
     }
   },
   created(){
+    this.$message({
+          showClose: true,
+          message: '请先输入业务员,再进行操作!!!',
+          type: 'warning',
+          duration:10000
+        });
   },
   methods:{
      //业务列表双击选中事件

+ 1 - 1
src/views/Task/daikeComponents/KtLetter.vue

@@ -3109,7 +3109,7 @@
       <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>
+      <el-button type="primary" :loading="calculateLoading" size="small" @click="quote()" >保费计算</el-button>
     </div>
 
     <div class="Anchor-link flex f-c j-s a-c" v-if="isLetter">