Explorar o código

薪资统计-增加雇佣状态筛选条件

jingbb hai 1 ano
pai
achega
8a24fddeb5

+ 21 - 3
src/views/oa/salary_management/personnelSalary/SalarysStatistics.vue

@@ -43,6 +43,17 @@
                      dict="sys_user,realname,realname" allowClear/>
               </a-form-item>
             </a-col>
+            <a-col :xl="5" :lg="7" :md="8" :sm="24">
+              <a-form-item label="雇佣状态">
+                <a-select  v-model="queryParam.syHireType" mode="multiple">
+                    <a-select-option value="">所有</a-select-option>
+                    <a-select-option value="在职">在职</a-select-option>
+                    <a-select-option value="离职">离职</a-select-option>
+                    <a-select-option value="退休返聘">退休返聘</a-select-option>
+                    <a-select-option value="运维">运维</a-select-option>
+                  </a-select>
+              </a-form-item>
+            </a-col>
             <a-col :xl="4" :lg="7" :md="8" :sm="24">
               <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
                 <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
@@ -215,7 +226,8 @@
           ipagination:{},
           queryParam:{
             beginDate:moment().subtract(1, 'months').format('YYYY-MM'),
-            endDate:moment().subtract(1, 'months').format('YYYY-MM')
+            endDate:moment().subtract(1, 'months').format('YYYY-MM'),
+            syHireType:['在职','退休反聘']
           },
           dataSource:[{}],
           // 请求参数
@@ -262,7 +274,9 @@
       },
       methods: {
         getTableList(){
-          getAction('/salary/salaryManagement/querySalaryTotalList',this.queryParam).then(res=>{
+          var param = Object.assign({}, this.queryParam)
+          param.syHireType = (param.syHireType).toString()
+          getAction('/salary/salaryManagement/querySalaryTotalList',param).then(res=>{
             if(res.success){
                 this.dataSource =res.result.records
                 this.ipagination = {
@@ -299,7 +313,11 @@
           this.getTableList()
         },
         searchReset(){
-          this.queryParam={}
+          this.queryParam={
+            beginDate:moment().subtract(1, 'months').format('YYYY-MM'),
+            endDate:moment().subtract(1, 'months').format('YYYY-MM'),
+            syHireType:['在职','退休反聘']
+          }
           this.getTableList()
         },
         handleTableChange(pagination, filters, sorter) {