Commit fce87c62 authored by 黄奎's avatar 黄奎

11

parent 7c63bd1a
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<el-select <el-select
v-model="parameters.branchId" v-model="parameters.branchId"
style="margin-right: 20px;" style="margin-right: 20px;"
@change="handleDateChange()" @change="getEmpList(),parameters.empIdList=[],handleDateChange()"
> >
<el-option <el-option
v-for="(x, i) in branchs" v-for="(x, i) in branchs"
...@@ -16,6 +16,21 @@ ...@@ -16,6 +16,21 @@
:value="x.Id" :value="x.Id"
></el-option> ></el-option>
</el-select> </el-select>
<el-select
v-model="parameters.empIdList"
style="margin-right: 20px;"
@change="handleDateChange()"
multiple
filterable
>
<el-option
v-for="(x, i) in empList"
:key="i"
:label="x.EmName"
:value="x.EmployeeId"
></el-option>
</el-select>
<el-date-picker <el-date-picker
v-model="parameters.dateRange" v-model="parameters.dateRange"
type="daterange" type="daterange"
...@@ -679,8 +694,10 @@ export default { ...@@ -679,8 +694,10 @@ export default {
branchId: -1, branchId: -1,
dateRange: [], dateRange: [],
StartDate: "", StartDate: "",
EndDate: "" EndDate: "",
empIdList:[],
}, },
empList:[],//员工列表
coreId: 1, coreId: 1,
coreLists: [ coreLists: [
{ {
...@@ -832,6 +849,7 @@ export default { ...@@ -832,6 +849,7 @@ export default {
}, },
created() { created() {
this.getCompanyList(); this.getCompanyList();
this.getEmpList()
const end = new Date(); const end = new Date();
const start = new Date(); const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7); start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
...@@ -916,7 +934,26 @@ export default { ...@@ -916,7 +934,26 @@ export default {
query query
}); });
} }
},
getEmpList(){
let userInfo = this.getLocalStorage();
let msg = {
GroupId: userInfo.RB_Group_id,
BranchId: "-1",
DepartmentId: "-1",
PostId: "-1",
IsLeave: "0",
};
msg.BranchId=this.parameters.branchId;
this.apipost(
"admin_get_EmployeeGetList", msg,
(res) => {
if (res.data.resultCode == 1) {
this.empList = res.data.data;
}
},
(err) => {}
);
}, },
handleDateChange() { handleDateChange() {
this.getCustomerStatic(); this.getCustomerStatic();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment