From 84219e3732c0f5c2c4a8c9825aeb11d18ea158aa Mon Sep 17 00:00:00 2001 From: wanglei Date: Tue, 10 Jun 2025 16:08:13 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=90=9C=E7=B4=A2=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/pay/butieEmplyee/index.vue | 30 ++++++++++++++----- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/ruoyi-ui/src/views/pay/butieEmplyee/index.vue b/ruoyi-ui/src/views/pay/butieEmplyee/index.vue index 7b08cc1..3150ee3 100644 --- a/ruoyi-ui/src/views/pay/butieEmplyee/index.vue +++ b/ruoyi-ui/src/views/pay/butieEmplyee/index.vue @@ -18,12 +18,14 @@
- + + + + import { listSummary, checkDataExist, generateBuTieEmpByMonth, updateAllbt } from "@/api/pay/butieEmplyee"; import { listTenant } from "@/api/pay/tenant"; +import { listEmployeeInfo } from "@/api/pay/employeeInfo"; export default { name: "ButieEmplyee", @@ -175,6 +178,8 @@ export default { // 补贴信息生成对话框 generateDialogVisible: false, genMonth: null, + // 员工列表 + employeeList: [], }; }, created() { @@ -183,6 +188,7 @@ export default { }else { this.gsInfo.active_id = this.$store.state.user.tenantId this.getList(); + this.getlistEmployee(); } }, methods: { @@ -192,7 +198,8 @@ export default { if(response.rows.length>0){ this.gsInfo.list = response.rows; this.gsInfo.active_id = this.gsInfo.list[0].id - this.getList() + this.getList(); + this.getlistEmployee(); }else{ this.$alert(`没有查到相关公司,暂无数据!`, `提示`, { type: 'warning' @@ -203,7 +210,14 @@ export default { // 选择公司 changCompany(id){ this.gsInfo.active_id = id - this.getList() + this.getList(); + this.getlistEmployee(); + }, + /** 查询时员工 */ + getlistEmployee() { + listEmployeeInfo({ pageSize: 1000000000, tenantId: this.gsInfo.active_id }).then(response => { + this.employeeList = response.rows + }); }, /** 查询补贴和员工联系列表 */ getList() {