页面搜索修改

master
wanglei 6 months ago
parent d810ca36a2
commit 84219e3732

@ -18,12 +18,14 @@
<div :class="$store.state.user.tenantId?'content-all':'content'"> <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 :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
<el-form-item label="员工姓名" prop="employeeId"> <el-form-item label="员工姓名" prop="employeeId">
<el-input <el-select v-model="queryParams.employeeId" filterable clearable placeholder="请选择员工姓名">
v-model="queryParams.empName" <el-option
placeholder="请输入员工姓名" v-for="item in employeeList"
clearable :key="item.id"
@keyup.enter.native="handleQuery" :label="item.name"
/> :value="item.id">
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="补贴扣减金额" prop="money"> <el-form-item label="补贴扣减金额" prop="money">
<el-input <el-input
@ -142,6 +144,7 @@
<script> <script>
import { listSummary, checkDataExist, generateBuTieEmpByMonth, updateAllbt } from "@/api/pay/butieEmplyee"; import { listSummary, checkDataExist, generateBuTieEmpByMonth, updateAllbt } from "@/api/pay/butieEmplyee";
import { listTenant } from "@/api/pay/tenant"; import { listTenant } from "@/api/pay/tenant";
import { listEmployeeInfo } from "@/api/pay/employeeInfo";
export default { export default {
name: "ButieEmplyee", name: "ButieEmplyee",
@ -175,6 +178,8 @@ export default {
// //
generateDialogVisible: false, generateDialogVisible: false,
genMonth: null, genMonth: null,
//
employeeList: [],
}; };
}, },
created() { created() {
@ -183,6 +188,7 @@ export default {
}else { }else {
this.gsInfo.active_id = this.$store.state.user.tenantId this.gsInfo.active_id = this.$store.state.user.tenantId
this.getList(); this.getList();
this.getlistEmployee();
} }
}, },
methods: { methods: {
@ -192,7 +198,8 @@ export default {
if(response.rows.length>0){ if(response.rows.length>0){
this.gsInfo.list = response.rows; this.gsInfo.list = response.rows;
this.gsInfo.active_id = this.gsInfo.list[0].id this.gsInfo.active_id = this.gsInfo.list[0].id
this.getList() this.getList();
this.getlistEmployee();
}else{ }else{
this.$alert(`没有查到相关公司,暂无数据!`, `提示`, { this.$alert(`没有查到相关公司,暂无数据!`, `提示`, {
type: 'warning' type: 'warning'
@ -203,7 +210,14 @@ export default {
// //
changCompany(id){ changCompany(id){
this.gsInfo.active_id = 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() { getList() {

Loading…
Cancel
Save