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() {