|
|
|
|
@ -18,12 +18,14 @@
|
|
|
|
|
<div :class="$store.state.user.tenantId?'content-all':'content'">
|
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
|
|
|
|
|
<el-form-item label="员工姓名" prop="employeeId">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.empName"
|
|
|
|
|
placeholder="请输入员工姓名"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
<el-select v-model="queryParams.employeeId" filterable clearable placeholder="请选择员工姓名">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in employeeList"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:value="item.id">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="补贴扣减金额" prop="money">
|
|
|
|
|
<el-input
|
|
|
|
|
@ -142,6 +144,7 @@
|
|
|
|
|
<script>
|
|
|
|
|
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() {
|
|
|
|
|
|