Explorar el Código

合同导出查询内容

lamphua hace 1 día
padre
commit
18140a9058

+ 10
- 2
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcContractController.java Ver fichero

@@ -259,7 +259,11 @@ public class CmcContractController extends BaseController
259 259
     @PostMapping("/export")
260 260
     public void export(HttpServletResponse response, CmcContract cmcContract)
261 261
     {
262
-        List<CmcContract> list = cmcContractService.selectCmcContractList(cmcContract);
262
+        List<CmcContract> list;
263
+        if (cmcContract.getQueryString() != null && !cmcContract.getQueryString().equals(""))
264
+            list = cmcContractService.selectCmcContractListFuzzy(cmcContract);
265
+        else
266
+            list = cmcContractService.selectCmcContractList(cmcContract);
263 267
         ExcelUtil<CmcContract> util = new ExcelUtil<CmcContract>(CmcContract.class);
264 268
         util.exportExcel(response, list, "cmc合同评审数据");
265 269
     }
@@ -271,7 +275,11 @@ public class CmcContractController extends BaseController
271 275
     @PostMapping("/exportSelectFields")
272 276
     public void export(HttpServletResponse response, CmcContract cmcContract, String selectFields)
273 277
     {
274
-        List<CmcContract> list = cmcContractService.selectCmcContractList(cmcContract);
278
+        List<CmcContract> list;
279
+        if (cmcContract.getQueryString() != null && !cmcContract.getQueryString().equals(""))
280
+            list = cmcContractService.selectCmcContractListFuzzy(cmcContract);
281
+        else
282
+            list = cmcContractService.selectCmcContractList(cmcContract);
275 283
         List<String> selectFieldList = Arrays.asList(selectFields.split(","));
276 284
         ExcelUtil<CmcContract> util = new ExcelUtil<CmcContract>(CmcContract.class);
277 285
         util.exportExcel(response, selectFieldList, list, "cmc合同评审数据", StringUtils.EMPTY);

+ 6
- 2
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcProjectController.java Ver fichero

@@ -122,8 +122,12 @@ public class CmcProjectController extends BaseController
122 122
         List<CmcProject> list = new ArrayList<>();
123 123
         if (cmcProject.getUndertakingDept() != null && cmcProject.getUndertakingDept().equals("113"))
124 124
             list = cmcProjectService.selectCmcInvestProjectList(cmcProject);
125
-        else
126
-            list = cmcProjectService.selectCmcProjectList(cmcProject);
125
+        else {
126
+            if (cmcProject.getQueryString() != null && !cmcProject.getQueryString().equals(""))
127
+                list = cmcProjectService.selectCmcProjectListFuzzy(cmcProject);
128
+            else
129
+                list = cmcProjectService.selectCmcProjectList(cmcProject);
130
+        }
127 131
         for (CmcProject project : list) {
128 132
             project.setUndertakingDeptName(deptIdToName(project));
129 133
             project.setQualityInspectorName(inspectorIdToName(project));

+ 26
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContract.java Ver fichero

@@ -34,6 +34,11 @@ public class CmcContract extends BaseEntity
34 34
     @Excel(name = "合同编号")
35 35
     private String contractNumber;
36 36
 
37
+    /** 合同内容 */
38
+    @Excel(name = "合同内容")
39
+    private String content;
40
+    private CmcContractWork contractWork;
41
+
37 42
     /** 投标项目 */
38 43
     @Excel(name = "投标项目")
39 44
     private String tenderName;
@@ -522,6 +527,27 @@ public class CmcContract extends BaseEntity
522 527
         return queryString;
523 528
     }
524 529
 
530
+    public void setContractWork(CmcContractWork contractWork)
531
+    {
532
+        this.contractWork = contractWork;
533
+        this.content = contractWork == null ? "" : contractWork.getContent();
534
+    }
535
+
536
+    public CmcContractWork getContractWork()
537
+    {
538
+        return contractWork;
539
+    }
540
+
541
+    public void setContent(String content)
542
+    {
543
+        this.content = content;
544
+    }
545
+
546
+    public String getContent()
547
+    {
548
+        return content;
549
+    }
550
+
525 551
     @Override
526 552
     public String toString() {
527 553
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)

+ 26
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcWage.java Ver fichero

@@ -3,6 +3,7 @@ package com.ruoyi.oa.domain;
3 3
 import java.math.BigDecimal;
4 4
 import java.util.Date;
5 5
 import com.fasterxml.jackson.annotation.JsonFormat;
6
+import com.ruoyi.common.core.domain.entity.SysDept;
6 7
 import com.ruoyi.common.core.domain.entity.SysUser;
7 8
 import org.apache.commons.lang3.builder.ToStringBuilder;
8 9
 import org.apache.commons.lang3.builder.ToStringStyle;
@@ -30,6 +31,12 @@ public class CmcWage extends BaseEntity
30 31
     @Excel(name = "姓名")
31 32
     private String nickName;
32 33
 
34
+    /** 姓名 */
35
+    @Excel(name = "部门")
36
+    private String deptName;
37
+    private String deptId;
38
+    private SysDept dept;
39
+
33 40
     /** 基础工资 */
34 41
     @Excel(name = "基础工资")
35 42
     private BigDecimal baseSalary;
@@ -347,6 +354,25 @@ public class CmcWage extends BaseEntity
347 354
     {
348 355
         return user;
349 356
     }
357
+    public void setDeptId(String deptId)
358
+    {
359
+        this.deptId = deptId;
360
+    }
361
+
362
+    public String getDeptId()
363
+    {
364
+        return deptId;
365
+    }
366
+    public void setDept(SysDept dept)
367
+    {
368
+        this.dept = dept;
369
+        this.deptName = dept == null ? "" : dept.getDeptName();
370
+    }
371
+
372
+    public SysDept getDept()
373
+    {
374
+        return dept;
375
+    }
350 376
 
351 377
     @Override
352 378
     public String toString() {

+ 9
- 2
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractMapper.xml Ver fichero

@@ -42,6 +42,7 @@
42 42
         <association property="tender"    javaType="CmcTender"         resultMap="CmcTenderResult" />
43 43
         <association property="partyA"    javaType="CmcPartyA"         resultMap="CmcPartyAResult" />
44 44
         <association property="project"    javaType="CmcProject"         resultMap="CmcProjectResult" />
45
+        <association property="contractWork"    javaType="CmcContractWork"         resultMap="CmcContractWorkResult" />
45 46
     </resultMap>
46 47
 
47 48
     <resultMap type="CmcTender" id="CmcTenderResult">
@@ -76,6 +77,11 @@
76 77
         <result property="projectType"    column="project_type"    />
77 78
     </resultMap>
78 79
 
80
+    <resultMap type="CmcContractWork" id="CmcContractWorkResult">
81
+        <result property="contractId"    column="contract_id"    />
82
+        <result property="content"    column="content"    />
83
+    </resultMap>
84
+
79 85
     <sql id="selectCmcContractVo">
80 86
         select distinct c.contract_id, c.contract_code, c.contract_name, c.contract_number, c.tender_id, t.project_name as t_project_name,
81 87
         c.party_a_id, pa.party_a_name, t.a_person as a_person, t.a_phone as a_phone, t.agent as agent, t.agent_person as agent_person,
@@ -168,8 +174,9 @@
168 174
     <select id="selectCmcContractListFuzzy" parameterType="CmcContract" resultMap="CmcContractResult">
169 175
         select distinct c.contract_id, c.contract_code, c.contract_name, c.contract_number, c.tender_id, t.project_name as t_project_name,
170 176
         c.party_a_id, pa.party_a_name, t.a_person as a_person, t.a_phone as a_phone, t.agent as agent, t.agent_person as agent_person,
171
-        t.agent_phone as agent_phone, c.amount, c.deposit, c.contract_document, c.drafter, u.nick_name as draft_nick_name, c.draft_time, c.remark, c.sign_date, c.sign_remark, c.sign_scan,
172
-        c.comment_type, c.manager_comment, c.manager_user_id, u1.nick_name as manager_nick_name, c.manager_time, c.gm_user_id, u2.nick_name as gm_nick_name, c.gm_time, c.gm_comment from cmc_contract as c
177
+        t.agent_phone as agent_phone, c.amount, c.deposit, c.contract_document, c.drafter, u.nick_name as draft_nick_name, c.draft_time,
178
+        c.remark, c.sign_date, c.sign_remark, c.sign_scan, c.comment_type, c.manager_comment, c.manager_user_id, u1.nick_name as manager_nick_name,
179
+        c.manager_time, c.gm_user_id, u2.nick_name as gm_nick_name, c.gm_time, c.gm_comment, cw.content from cmc_contract as c
173 180
         left join sys_user as u on u.user_id = c.drafter
174 181
         left join sys_user as u1 on u1.user_id = c.manager_user_id
175 182
         left join sys_user as u2 on u2.user_id = c.gm_user_id

+ 10
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcWageMapper.xml Ver fichero

@@ -31,6 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
31 31
         <result property="remark"    column="remark"    />
32 32
         <result property="performanceId"    column="performance_id"    />
33 33
         <association property="user"    javaType="SysUser"         resultMap="SysUserResult" />
34
+        <association property="dept"    javaType="SysDept"         resultMap="SysDeptResult" />
34 35
     </resultMap>
35 36
 
36 37
     <resultMap type="SysUser" id="SysUserResult">
@@ -38,17 +39,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
38 39
         <result property="nickName"    column="nick_name"    />
39 40
     </resultMap>
40 41
 
42
+    <resultMap type="SysDept" id="SysDeptResult">
43
+        <result property="deptId"    column="dept_id"    />
44
+        <result property="deptName"    column="dept_name"    />
45
+    </resultMap>
46
+
41 47
     <sql id="selectCmcWageVo">
42
-        select w.wage_id, w.user_id, w.base_salary, w.year_salary, w.post_salary, w.performance_salary, w.certificates_subsidy, w.festival_subsidy, w.post_stable_subsidy,
48
+        select w.wage_id, w.user_id, u.dept_id, d.dept_name, w.base_salary, w.year_salary, w.post_salary, w.performance_salary, w.certificates_subsidy, w.festival_subsidy, w.post_stable_subsidy,
43 49
                w.high_temperature_subsidy, w.attendance_deduct, w.payable_wage, w.house_fund, w.endowment_insurance, w.unemployment_insurance, w.medical_insurance, w.property_fee,
44 50
                w.deduct_total, w.social_security_unit, w.individual_income_tax, w.paid_wage, w.pay_day, w.pay_month, w.remark, w.performance_id, u.nick_name from cmc_wage as w
45 51
         left join sys_user as u on u.user_id = w.user_id
52
+        left join sys_dept as d on d.dept_id = u.dept_id
46 53
     </sql>
47 54
 
48 55
     <select id="selectCmcWageList" parameterType="CmcWage" resultMap="CmcWageResult">
49 56
         <include refid="selectCmcWageVo"/>
50 57
         <where>  
51 58
             <if test="userId != null "> and w.user_id = #{userId}</if>
59
+            <if test="deptId != null "> and u.dept_id = #{deptId}</if>
52 60
             <if test="baseSalary != null "> and w.base_salary = #{baseSalary}</if>
53 61
             <if test="yearSalary != null "> and w.year_salary = #{yearSalary}</if>
54 62
             <if test="postSalary != null "> and w.post_salary = #{postSalary}</if>
@@ -72,6 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
72 80
             <if test="payMonth != null "> and MONTH(w.pay_month) = MONTH(#{payMonth})</if>
73 81
             <if test="performanceId != null and performanceId != ''"> and w.performance_id = #{performanceId}</if>
74 82
         </where>
83
+        order by w.user_id, w.pay_month
75 84
     </select>
76 85
     
77 86
     <select id="selectCmcWageByWageId" parameterType="Integer" resultMap="CmcWageResult">

+ 3
- 2
oa-ui/src/views/oa/contract/index.vue Ver fichero

@@ -1,8 +1,8 @@
1 1
 <!--
2 2
  * @Author: ysh
3 3
  * @Date: 2024-06-21 18:52:00
4
- * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2025-07-24 14:37:14
4
+ * @LastEditors: wrh
5
+ * @LastEditTime: 2025-10-29 10:29:35
6 6
 -->
7 7
 <template>
8 8
   <div class="app-container">
@@ -230,6 +230,7 @@ export default {
230 230
       exportOpen: false,
231 231
       fieldsObj: [
232 232
         { label: '合同名称', value: 'contractName' },
233
+        { label: '合同内容', value: 'content' },
233 234
         { label: '合同金额', value: 'amount' },
234 235
         { label: '甲方单位', value: 'partyAName' },
235 236
         { label: '合同编码(公司)', value: 'contractCode' },

+ 104
- 54
oa-ui/src/views/oa/wage/index.vue Ver fichero

@@ -1,26 +1,41 @@
1 1
 <template>
2 2
   <div class="app-container">
3
-    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
4
-      <el-form-item label="姓名" prop="userId">
5
-        <el-select v-model="queryParams.userId" filterable clearable @change="handleQuery">
6
-          <el-option v-for="item in $store.state.user.userList" :key="item.userId" :label="item.nickName"
7
-            :value="item.userId">
8
-          </el-option>
9
-        </el-select>
10
-      </el-form-item>
11
-      <el-form-item label="发放月份" prop="payMonth">
12
-        <el-date-picker clearable v-model="queryParams.payMonth" type="month" value-format="yyyy-MM-dd"
13
-          placeholder="请选择发放月份">
14
-        </el-date-picker>
15
-      </el-form-item>
16
-      <el-form-item>
17
-        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
18
-        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
19
-      </el-form-item>
20
-    </el-form>
3
+    <el-row :gutter="20">
4
+      <!--部门数据-->
5
+      <el-col :span="5" :xs="24">
6
+        <div class="head-container">
7
+          <el-input v-model="deptName" placeholder="请输入部门名称" clearable size="small" prefix-icon="el-icon-search"
8
+            style="margin-bottom: 20px" />
9
+        </div>
10
+        <div class="head-container">
11
+          <el-tree :data="deptOptions" :props="defaultProps" :expand-on-click-node="false"
12
+            :filter-node-method="filterNode" ref="tree" node-key="id" default-expand-all highlight-current
13
+            @node-click="handleNodeClick" />
14
+        </div>
15
+      </el-col>
16
+      <!--用户数据-->
17
+      <el-col :span="19" :xs="24">
18
+        <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
19
+          <el-form-item label="姓名" prop="userId">
20
+            <el-select v-model="queryParams.userId" filterable clearable @change="handleQuery">
21
+              <el-option v-for="item in $store.state.user.userList" :key="item.userId" :label="item.nickName"
22
+                :value="item.userId">
23
+              </el-option>
24
+            </el-select>
25
+          </el-form-item>
26
+          <el-form-item label="发放月份" prop="payMonth">
27
+            <el-date-picker clearable v-model="queryParams.payMonth" type="month" value-format="yyyy-MM-dd"
28
+              placeholder="请选择发放月份">
29
+            </el-date-picker>
30
+          </el-form-item>
31
+          <el-form-item>
32
+            <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
33
+            <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
34
+          </el-form-item>
35
+        </el-form>
21 36
 
22
-    <el-row :gutter="10" class="mb8">
23
-      <!-- <el-col :span="1.5">
37
+        <el-row :gutter="10" class="mb8">
38
+          <!-- <el-col :span="1.5">
24 39
         <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
25 40
           v-hasPermi="['oa:wage:add']">新增</el-button>
26 41
       </el-col>
@@ -36,20 +51,19 @@
36 51
         <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
37 52
           v-hasPermi="['oa:wage:export']">导出</el-button>
38 53
       </el-col> -->
39
-      <el-col :span="1.5">
40
-        <el-button type="warning" plain icon="el-icon-upload2" size="mini" @click="handleImport"
41
-          v-hasPermi="['oa:wage:export']">上传社保公积金</el-button>
42
-      </el-col>
54
+          <el-col :span="1.5">
55
+            <el-button type="warning" plain icon="el-icon-upload2" size="mini" @click="handleImport"
56
+              v-hasPermi="['oa:wage:export']">上传社保公积金</el-button>
57
+          </el-col>
43 58
 
44
-      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
45
-    </el-row>
59
+          <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
60
+        </el-row>
46 61
 
47
-    <el-table v-loading="loading" :data="wageList" @selection-change="handleSelectionChange">
48
-      <el-table-column type="selection" width="55" align="center" />
49
-      <el-table-column label="姓名" align="center" prop="user.nickName">
50
-
51
-      </el-table-column>
52
-      <!-- <el-table-column label="基础工资" align="center" prop="baseSalary" />
62
+        <el-table v-loading="loading" :data="wageList" @selection-change="handleSelectionChange">
63
+          <el-table-column type="selection" width="55" align="center" />
64
+          <el-table-column label="姓名" align="center" prop="user.nickName" />
65
+          <el-table-column label="部门" align="center" prop="dept.deptName" />
66
+          <!-- <el-table-column label="基础工资" align="center" prop="baseSalary" />
53 67
       <el-table-column label="工龄工资" align="center" prop="yearSalary" />
54 68
       <el-table-column label="岗位工资" align="center" prop="postSalary" />
55 69
       <el-table-column label="绩效工资" align="center" prop="performanceSalary" />
@@ -59,38 +73,39 @@
59 73
       <el-table-column label="高温补贴" align="center" prop="highTemperatureSubsidy" />
60 74
       <el-table-column label="考勤扣款" align="center" prop="attendanceDeduct" />
61 75
       <el-table-column label="应发小计" align="center" prop="payableWage" /> -->
62
-      <el-table-column label="公积金单位部分" align="center" prop="houseFund" />
63
-      <!-- <el-table-column label="养老保险" align="center" prop="endowmentInsurance" />
76
+          <el-table-column label="公积金单位部分" align="center" prop="houseFund" />
77
+          <!-- <el-table-column label="养老保险" align="center" prop="endowmentInsurance" />
64 78
       <el-table-column label="失业保险" align="center" prop="unemploymentInsurance" />
65 79
       <el-table-column label="医疗保险" align="center" prop="medicalInsurance" />
66 80
       <el-table-column label="水韵物管费" align="center" prop="propertyFee" />
67 81
       <el-table-column label="扣款小计" align="center" prop="deductTotal" /> -->
68
-      <el-table-column label="社保单位部分" align="center" prop="socialSecurityUnit" />
69
-      <!-- <el-table-column label="个税" align="center" prop="individualIncomeTax" />
82
+          <el-table-column label="社保单位部分" align="center" prop="socialSecurityUnit" />
83
+          <!-- <el-table-column label="个税" align="center" prop="individualIncomeTax" />
70 84
       <el-table-column label="实发工资" align="center" prop="paidWage" /> -->
71
-      <!-- <el-table-column label="发放日期" align="center" prop="payDay" width="180">
85
+          <!-- <el-table-column label="发放日期" align="center" prop="payDay" width="180">
72 86
         <template slot-scope="scope">
73 87
           <span>{{ parseTime(scope.row.payDay, '{y}-{m}-{d}') }}</span>
74 88
         </template>
75 89
 </el-table-column> -->
76
-      <el-table-column label="发放月份" align="center" prop="payMonth" width="180">
77
-        <template slot-scope="scope">
78
-          <span>{{ parseTime(scope.row.payMonth, '{y}-{m}') }}</span>
79
-        </template>
80
-      </el-table-column>
81
-      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
82
-        <template slot-scope="scope">
83
-          <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
84
-            v-hasPermi="['oa:wage:edit']">修改</el-button>
85
-          <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
86
-            v-hasPermi="['oa:wage:remove']">删除</el-button>
87
-        </template>
88
-      </el-table-column>
89
-    </el-table>
90
-
91
-    <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
92
-      @pagination="getList" />
90
+          <el-table-column label="发放月份" align="center" prop="payMonth" width="180">
91
+            <template slot-scope="scope">
92
+              <span>{{ parseTime(scope.row.payMonth, '{y}-{m}') }}</span>
93
+            </template>
94
+          </el-table-column>
95
+          <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
96
+            <template slot-scope="scope">
97
+              <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
98
+                v-hasPermi="['oa:wage:edit']">修改</el-button>
99
+              <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
100
+                v-hasPermi="['oa:wage:remove']">删除</el-button>
101
+            </template>
102
+          </el-table-column>
103
+        </el-table>
93 104
 
105
+        <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
106
+          @pagination="getList" />
107
+      </el-col>
108
+    </el-row>
94 109
     <!-- 添加或修改员工工资对话框 -->
95 110
     <el-dialog :title="title" :visible.sync="open" width="400px" append-to-body>
96 111
       <el-form ref="form" :model="form" :rules="rules" label-width="80px">
@@ -194,9 +209,11 @@
194 209
 </template>
195 210
 
196 211
 <script>
212
+import { deptTreeSelectNew } from "@/api/system/user";
197 213
 import { listWage, getWage, delWage, addWage, updateWage } from "@/api/oa/wage/wage";
198 214
 import { downloadTemplate } from "@/api/file/project";
199 215
 import { getToken } from "@/utils/auth";
216
+import Treeselect from "@riophae/vue-treeselect";
200 217
 
201 218
 export default {
202 219
   name: "Wage",
@@ -217,6 +234,14 @@ export default {
217 234
       total: 0,
218 235
       // 员工工资表格数据
219 236
       wageList: [],
237
+      // 部门名称
238
+      deptName: undefined,
239
+      // 部门树选项
240
+      deptOptions: undefined,
241
+      defaultProps: {
242
+        children: "children",
243
+        label: "label"
244
+      },
220 245
       // 弹出层标题
221 246
       title: "",
222 247
       // 是否显示弹出层
@@ -226,6 +251,7 @@ export default {
226 251
         pageNum: 1,
227 252
         pageSize: 10,
228 253
         userId: null,
254
+        deptId: null,
229 255
         baseSalary: null,
230 256
         yearSalary: null,
231 257
         postSalary: null,
@@ -272,8 +298,15 @@ export default {
272 298
       uploadFormData: undefined,
273 299
     };
274 300
   },
301
+  watch: {
302
+    // 根据名称筛选部门树
303
+    deptName(val) {
304
+      this.$refs.tree.filter(val);
305
+    }
306
+  },
275 307
   created() {
276 308
     this.getList();
309
+    this.getDeptTree();
277 310
   },
278 311
   methods: {
279 312
     /** 查询员工工资列表 */
@@ -285,6 +318,22 @@ export default {
285 318
         this.loading = false;
286 319
       });
287 320
     },
321
+    /** 查询部门下拉树结构 */
322
+    getDeptTree() {
323
+      deptTreeSelectNew().then(response => {
324
+        this.deptOptions = response.data;
325
+      });
326
+    },
327
+    // 筛选节点
328
+    filterNode(value, data) {
329
+      if (!value) return true;
330
+      return data.label.indexOf(value) !== -1;
331
+    },
332
+    // 节点单击事件
333
+    handleNodeClick(data) {
334
+      this.queryParams.deptId = data.id;
335
+      this.handleQuery();
336
+    },
288 337
     // 取消按钮
289 338
     cancel() {
290 339
       this.open = false;
@@ -295,6 +344,7 @@ export default {
295 344
       this.form = {
296 345
         wageId: null,
297 346
         userId: null,
347
+        deptId: null,
298 348
         baseSalary: null,
299 349
         yearSalary: null,
300 350
         postSalary: null,

Loading…
Cancelar
Guardar