flx:修改bug
This commit is contained in:
parent
b3e919fb79
commit
2541fc6a54
@ -3,8 +3,8 @@
|
|||||||
<template v-if="setDialog == false">
|
<template v-if="setDialog == false">
|
||||||
<div class="searchBox whiteBlock">
|
<div class="searchBox whiteBlock">
|
||||||
<el-form size="medium" :model="pageInfo" ref="queryForm" :inline="true">
|
<el-form size="medium" :model="pageInfo" ref="queryForm" :inline="true">
|
||||||
<el-form-item label="考勤组名称" prop="riskPointName">
|
<el-form-item label="考勤组名称" prop="groupName">
|
||||||
<el-input v-model="pageInfo.riskPointName" placeholder="请输入"></el-input>
|
<el-input v-model="pageInfo.groupName" placeholder="请输入"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" plain @click="handleQuery">查询</el-button>
|
<el-button type="primary" plain @click="handleQuery">查询</el-button>
|
||||||
@ -175,7 +175,7 @@
|
|||||||
待选择人员({{ selectLeftTableData.length }}/{{ staffInfo.total }})
|
待选择人员({{ selectLeftTableData.length }}/{{ staffInfo.total }})
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<el-checkbox v-model="searchInfo.checked">包含下级</el-checkbox>
|
<el-checkbox @change="getUpdatePersonListFn" v-model="searchInfo.checked">包含下级</el-checkbox>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
@ -626,7 +626,7 @@
|
|||||||
待选择人员({{ selectLeftTableData.length }}/{{ staffInfo.total }})
|
待选择人员({{ selectLeftTableData.length }}/{{ staffInfo.total }})
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<el-checkbox v-model="searchInfo.checked">包含下级</el-checkbox>
|
<el-checkbox @change="getUpdatePersonListFn" v-model="searchInfo.checked">包含下级</el-checkbox>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
@ -874,6 +874,7 @@ export default {
|
|||||||
total: 0,
|
total: 0,
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
|
groupName: "",
|
||||||
},
|
},
|
||||||
rulesList: [],
|
rulesList: [],
|
||||||
personList: [],
|
personList: [],
|
||||||
@ -952,13 +953,16 @@ export default {
|
|||||||
mounted() {
|
mounted() {
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
this.getEnterpriseListFn();
|
this.getEnterpriseListFn();
|
||||||
this.getTeamList();
|
// this.getTeamList();
|
||||||
this.getDepartmentList();
|
// this.getDepartmentList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
setAddPersonnelDialog() {
|
setAddPersonnelDialog() {
|
||||||
this.selectList = [];
|
this.selectList = [];
|
||||||
this.getUpdatePersonListFn();
|
this.selectRightTableData = [];
|
||||||
|
this.selectInfo.total = this.selectList.length;
|
||||||
|
|
||||||
|
this.getRiskListLibraryList();
|
||||||
this.title = "新增";
|
this.title = "新增";
|
||||||
// this.$nextTick(() => {
|
// this.$nextTick(() => {
|
||||||
// this.$refs["attendanceInfo"].clearValidate();
|
// this.$refs["attendanceInfo"].clearValidate();
|
||||||
@ -991,6 +995,9 @@ export default {
|
|||||||
},
|
},
|
||||||
setControlListDialog(type, row) {
|
setControlListDialog(type, row) {
|
||||||
this.batchSettingType = type;
|
this.batchSettingType = type;
|
||||||
|
this.selectRightTableData = [];
|
||||||
|
this.selectList = [];
|
||||||
|
this.selectInfo.total = this.selectList.length;
|
||||||
if (row && row.id) {
|
if (row && row.id) {
|
||||||
this.attendanceInfo = {
|
this.attendanceInfo = {
|
||||||
...row,
|
...row,
|
||||||
@ -1006,7 +1013,9 @@ export default {
|
|||||||
} else if (type == 2 || type == 3) {
|
} else if (type == 2 || type == 3) {
|
||||||
this.getSelectedPersonListFn();
|
this.getSelectedPersonListFn();
|
||||||
}
|
}
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs["attendanceInfo"].clearValidate();
|
||||||
|
});
|
||||||
this.setDialog = true;
|
this.setDialog = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -1083,15 +1092,19 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
onEnterpriseChange() {
|
onEnterpriseChange() {
|
||||||
// this.selectWorkerInfo.teamId = "";
|
this.selectWorkerInfo.teamId = "";
|
||||||
// this.selectWorkerInfo.departmentId = "";
|
this.selectWorkerInfo.departmentId = "";
|
||||||
// this.getTeamList();
|
this.teamOptions = [];
|
||||||
// this.getDepartmentList();
|
this.departmentOptions = [];
|
||||||
|
if(this.selectWorkerInfo.enterpriseId) {
|
||||||
|
this.getTeamList();
|
||||||
|
this.getDepartmentList();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
/** 查询班组列表 */
|
/** 查询班组列表 */
|
||||||
getTeamList() {
|
getTeamList() {
|
||||||
const params = {
|
const params = {
|
||||||
// enterpriseId: this.selectWorkerInfo.enterpriseId,
|
enterpriseId: this.selectWorkerInfo.enterpriseId,
|
||||||
projectSn: this.$store.state.projectSn,
|
projectSn: this.$store.state.projectSn,
|
||||||
};
|
};
|
||||||
teamList(params).then((res) => {
|
teamList(params).then((res) => {
|
||||||
@ -1102,7 +1115,7 @@ export default {
|
|||||||
/** 查询部门列表 */
|
/** 查询部门列表 */
|
||||||
getDepartmentList() {
|
getDepartmentList() {
|
||||||
const params = {
|
const params = {
|
||||||
// enterpriseId: this.selectWorkerInfo.enterpriseId,
|
enterpriseId: this.selectWorkerInfo.enterpriseId,
|
||||||
projectSn: this.$store.state.projectSn,
|
projectSn: this.$store.state.projectSn,
|
||||||
};
|
};
|
||||||
departmentList(params).then((res) => {
|
departmentList(params).then((res) => {
|
||||||
@ -1177,6 +1190,7 @@ export default {
|
|||||||
projectSn: this.$store.state.projectSn,
|
projectSn: this.$store.state.projectSn,
|
||||||
pageNo: this.pageInfo.pageNo,
|
pageNo: this.pageInfo.pageNo,
|
||||||
pageSize: this.pageInfo.pageSize,
|
pageSize: this.pageInfo.pageSize,
|
||||||
|
groupName: this.pageInfo.groupName,
|
||||||
};
|
};
|
||||||
getWorkerAttendanceGroupV2PageApi(requestData).then((res) => {
|
getWorkerAttendanceGroupV2PageApi(requestData).then((res) => {
|
||||||
this.rulesList = res.result.records;
|
this.rulesList = res.result.records;
|
||||||
@ -1189,12 +1203,14 @@ export default {
|
|||||||
},
|
},
|
||||||
handleRefresh() {
|
handleRefresh() {
|
||||||
this.pageInfo.pageNo = 1;
|
this.pageInfo.pageNo = 1;
|
||||||
|
this.pageInfo.groupName = "";
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
},
|
},
|
||||||
handleNodeClick(data) {
|
handleNodeClick(data) {
|
||||||
console.log(data);
|
console.log(data);
|
||||||
this.selectedInfo = {};
|
this.selectedInfo = {};
|
||||||
this.treeListDetail = data;
|
this.treeListDetail = data;
|
||||||
|
this.selectLeftTableData = [];
|
||||||
this.getUpdatePersonListFn();
|
this.getUpdatePersonListFn();
|
||||||
},
|
},
|
||||||
selectSearchTypeChange() {
|
selectSearchTypeChange() {
|
||||||
|
|||||||
@ -348,7 +348,7 @@
|
|||||||
<div class="switch-box">
|
<div class="switch-box">
|
||||||
<div>是否开启加班</div>
|
<div>是否开启加班</div>
|
||||||
<el-switch v-model="workerInfo.isOpenOvertime"> </el-switch>
|
<el-switch v-model="workerInfo.isOpenOvertime"> </el-switch>
|
||||||
<div>否</div>
|
<div>{{workerInfo.isOpenOvertime ? '是': '否'}}</div>
|
||||||
</div>
|
</div>
|
||||||
<template v-if="workerInfo.isOpenOvertime">
|
<template v-if="workerInfo.isOpenOvertime">
|
||||||
<div class="rules-box">
|
<div class="rules-box">
|
||||||
@ -690,7 +690,7 @@ export default {
|
|||||||
ratio2dayHour: "",
|
ratio2dayHour: "",
|
||||||
ratio2dayDay: "",
|
ratio2dayDay: "",
|
||||||
ratio2dayLess1: "",
|
ratio2dayLess1: "",
|
||||||
isOpenOvertime: "",
|
isOpenOvertime: false,
|
||||||
overtimeHourType: "",
|
overtimeHourType: "",
|
||||||
dailyHour: "",
|
dailyHour: "",
|
||||||
overtimeHourStart: "",
|
overtimeHourStart: "",
|
||||||
|
|||||||
@ -2122,7 +2122,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" prop="deductScore" label="生效时间">
|
<el-table-column align="center" prop="deductScore" label="生效时间">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{scope.row.effect_begin ? scope.row.effect_begin : "--"}} - {{scope.row.effect_end ? scope.row.effect_end : "--"}}
|
{{scope.row.effectBegin ? scope.row.effectBegin : "--"}} - {{scope.row.effectEnd ? scope.row.effectEnd : "长期"}}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|||||||
@ -67,7 +67,7 @@
|
|||||||
<el-form-item label="姓名" prop="workerName">
|
<el-form-item label="姓名" prop="workerName">
|
||||||
<el-input v-model="queryParams.workerName" placeholder="请输入"></el-input>
|
<el-input v-model="queryParams.workerName" placeholder="请输入"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="日期范围" prop="month">
|
<el-form-item label="月份" prop="month">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="queryParams.month"
|
v-model="queryParams.month"
|
||||||
type="month"
|
type="month"
|
||||||
@ -76,6 +76,38 @@
|
|||||||
>
|
>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<!-- <el-form-item label="日期范围" prop="effectiveTime">
|
||||||
|
<el-date-picker
|
||||||
|
:picker-options="pickerOptions"
|
||||||
|
v-model="queryParams.effectiveTime"
|
||||||
|
type="daterange"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
range-separator="-"
|
||||||
|
start-placeholder="开始日期"
|
||||||
|
end-placeholder="结束日期"
|
||||||
|
:clearable="false"
|
||||||
|
>
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item> -->
|
||||||
|
<el-form-item label="工时范围" prop="effectiveTime">
|
||||||
|
<div class="hourval">
|
||||||
|
<el-input-number
|
||||||
|
:controls="false"
|
||||||
|
v-model="queryParams.hourVal_begin"
|
||||||
|
controls-position="right"
|
||||||
|
:min="0"
|
||||||
|
:max="queryParams.hourVal_end ? queryParams.hourVal_end : 100"
|
||||||
|
></el-input-number>
|
||||||
|
<p>-</p>
|
||||||
|
<el-input-number
|
||||||
|
:controls="false"
|
||||||
|
v-model="queryParams.hourVal_end"
|
||||||
|
controls-position="right"
|
||||||
|
:min="queryParams.hourVal_begin ? queryParams.hourVal_begin : 0"
|
||||||
|
:max="100"
|
||||||
|
></el-input-number>
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" plain @click="handleQuery">查询</el-button>
|
<el-button type="primary" plain @click="handleQuery">查询</el-button>
|
||||||
<el-button type="warning" plain @click="handleRefresh">刷新</el-button>
|
<el-button type="warning" plain @click="handleRefresh">刷新</el-button>
|
||||||
@ -85,7 +117,9 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<div class="table-header">{{ $store.state.currentProDetail.projectName }}项目异常工时统计表</div>
|
<div class="table-header">
|
||||||
|
{{ $store.state.currentProDetail.projectName }}项目异常工时统计表
|
||||||
|
</div>
|
||||||
<el-table
|
<el-table
|
||||||
ref="multipleTable"
|
ref="multipleTable"
|
||||||
:data="tableData"
|
:data="tableData"
|
||||||
@ -204,6 +238,9 @@ export default {
|
|||||||
departmentId: "",
|
departmentId: "",
|
||||||
workerName: "",
|
workerName: "",
|
||||||
month: "",
|
month: "",
|
||||||
|
effectiveTime: [],
|
||||||
|
hourVal_begin: "",
|
||||||
|
hourVal_end: "",
|
||||||
},
|
},
|
||||||
total: 0,
|
total: 0,
|
||||||
personTypeList: [
|
personTypeList: [
|
||||||
@ -234,8 +271,8 @@ export default {
|
|||||||
this.getQualityRegionList();
|
this.getQualityRegionList();
|
||||||
|
|
||||||
this.getEnterpriseListFn();
|
this.getEnterpriseListFn();
|
||||||
this.getTeamList();
|
// this.getTeamList();
|
||||||
this.getDepartmentList();
|
// this.getDepartmentList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 获取企业列表
|
// 获取企业列表
|
||||||
@ -249,15 +286,19 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
onEnterpriseChange() {
|
onEnterpriseChange() {
|
||||||
// this.queryParams.teamId = "";
|
this.queryParams.teamId = "";
|
||||||
// this.queryParams.departmentId = "";
|
this.queryParams.departmentId = "";
|
||||||
// this.getTeamList();
|
this.teamOptions = [];
|
||||||
// this.getDepartmentList();
|
this.departmentOptions = [];
|
||||||
|
if(this.queryParams.enterpriseId) {
|
||||||
|
this.getTeamList();
|
||||||
|
this.getDepartmentList();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
/** 查询班组列表 */
|
/** 查询班组列表 */
|
||||||
getTeamList() {
|
getTeamList() {
|
||||||
const params = {
|
const params = {
|
||||||
// enterpriseId: this.queryParams.enterpriseId,
|
enterpriseId: this.queryParams.enterpriseId,
|
||||||
projectSn: this.$store.state.projectSn,
|
projectSn: this.$store.state.projectSn,
|
||||||
};
|
};
|
||||||
teamList(params).then((res) => {
|
teamList(params).then((res) => {
|
||||||
@ -268,7 +309,7 @@ export default {
|
|||||||
/** 查询部门列表 */
|
/** 查询部门列表 */
|
||||||
getDepartmentList() {
|
getDepartmentList() {
|
||||||
const params = {
|
const params = {
|
||||||
// enterpriseId: this.queryParams.enterpriseId,
|
enterpriseId: this.queryParams.enterpriseId,
|
||||||
projectSn: this.$store.state.projectSn,
|
projectSn: this.$store.state.projectSn,
|
||||||
};
|
};
|
||||||
departmentList(params).then((res) => {
|
departmentList(params).then((res) => {
|
||||||
@ -290,6 +331,8 @@ export default {
|
|||||||
teamId: this.queryParams.teamId,
|
teamId: this.queryParams.teamId,
|
||||||
departmentId: this.queryParams.departmentId,
|
departmentId: this.queryParams.departmentId,
|
||||||
workerName: this.queryParams.workerName,
|
workerName: this.queryParams.workerName,
|
||||||
|
hourVal_begin: this.queryParams.hourVal_begin,
|
||||||
|
hourVal_end: this.queryParams.hourVal_end,
|
||||||
};
|
};
|
||||||
this.exportDownload(requestData, objFn[command], "异常工时统计表.xlsx");
|
this.exportDownload(requestData, objFn[command], "异常工时统计表.xlsx");
|
||||||
}
|
}
|
||||||
@ -343,7 +386,13 @@ export default {
|
|||||||
this.queryParams.teamId = "";
|
this.queryParams.teamId = "";
|
||||||
this.queryParams.departmentId = "";
|
this.queryParams.departmentId = "";
|
||||||
this.queryParams.workerName = "";
|
this.queryParams.workerName = "";
|
||||||
|
this.queryParams.hourVal_begin = "";
|
||||||
|
this.queryParams.hourVal_end = "";
|
||||||
this.queryParams.month = dayjs().format("YYYY-MM");
|
this.queryParams.month = dayjs().format("YYYY-MM");
|
||||||
|
this.queryParams.effectiveTime = [
|
||||||
|
dayjs().startOf("month").format("YYYY-MM-DD"),
|
||||||
|
dayjs().endOf("month").format("YYYY-MM-DD"),
|
||||||
|
];
|
||||||
this.getQualityRegionList();
|
this.getQualityRegionList();
|
||||||
},
|
},
|
||||||
// 获取列表信息
|
// 获取列表信息
|
||||||
@ -358,18 +407,20 @@ export default {
|
|||||||
teamId: this.queryParams.teamId,
|
teamId: this.queryParams.teamId,
|
||||||
departmentId: this.queryParams.departmentId,
|
departmentId: this.queryParams.departmentId,
|
||||||
workerName: this.queryParams.workerName,
|
workerName: this.queryParams.workerName,
|
||||||
|
hourVal_begin: this.queryParams.hourVal_begin,
|
||||||
|
hourVal_end: this.queryParams.hourVal_end,
|
||||||
};
|
};
|
||||||
// getQualityRegionListApi
|
// getQualityRegionListApi
|
||||||
|
|
||||||
getExceptionHourStatisticsListApi(data).then((res) => {
|
getExceptionHourStatisticsListApi(data).then((res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.tableData = res.result.records.map(item => {
|
this.tableData = res.result.records.map((item) => {
|
||||||
return {
|
return {
|
||||||
...item,
|
...item,
|
||||||
outTimeList: item.outTimeList instanceof Array ? item.outTimeList : [],
|
outTimeList: item.outTimeList instanceof Array ? item.outTimeList : [],
|
||||||
inTimeList: item.inTimeList instanceof Array ? item.inTimeList : [],
|
inTimeList: item.inTimeList instanceof Array ? item.inTimeList : [],
|
||||||
}
|
};
|
||||||
});
|
});
|
||||||
this.total = res.result.total;
|
this.total = res.result.total;
|
||||||
}
|
}
|
||||||
@ -379,6 +430,17 @@ export default {
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
.hourval {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
> p {
|
||||||
|
margin: 0 8px;
|
||||||
|
}
|
||||||
|
.el-input-number {
|
||||||
|
width: 85px;
|
||||||
|
}
|
||||||
|
}
|
||||||
.table-header {
|
.table-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|||||||
@ -240,8 +240,8 @@ export default {
|
|||||||
this.getQualityRegionList();
|
this.getQualityRegionList();
|
||||||
|
|
||||||
this.getEnterpriseListFn();
|
this.getEnterpriseListFn();
|
||||||
this.getTeamList();
|
// this.getTeamList();
|
||||||
this.getDepartmentList();
|
// this.getDepartmentList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getPickDate(pick) {
|
getPickDate(pick) {
|
||||||
@ -274,15 +274,19 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
onEnterpriseChange() {
|
onEnterpriseChange() {
|
||||||
// this.queryParams.teamId = "";
|
this.queryParams.teamId = "";
|
||||||
// this.queryParams.departmentId = "";
|
this.queryParams.departmentId = "";
|
||||||
// this.getTeamList();
|
this.teamOptions = [];
|
||||||
// this.getDepartmentList();
|
this.departmentOptions = [];
|
||||||
|
if(this.queryParams.enterpriseId) {
|
||||||
|
this.getTeamList();
|
||||||
|
this.getDepartmentList();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
/** 查询班组列表 */
|
/** 查询班组列表 */
|
||||||
getTeamList() {
|
getTeamList() {
|
||||||
const params = {
|
const params = {
|
||||||
// enterpriseId: this.queryParams.enterpriseId,
|
enterpriseId: this.queryParams.enterpriseId,
|
||||||
projectSn: this.$store.state.projectSn,
|
projectSn: this.$store.state.projectSn,
|
||||||
};
|
};
|
||||||
teamList(params).then((res) => {
|
teamList(params).then((res) => {
|
||||||
@ -293,7 +297,7 @@ export default {
|
|||||||
/** 查询部门列表 */
|
/** 查询部门列表 */
|
||||||
getDepartmentList() {
|
getDepartmentList() {
|
||||||
const params = {
|
const params = {
|
||||||
// enterpriseId: this.queryParams.enterpriseId,
|
enterpriseId: this.queryParams.enterpriseId,
|
||||||
projectSn: this.$store.state.projectSn,
|
projectSn: this.$store.state.projectSn,
|
||||||
};
|
};
|
||||||
departmentList(params).then((res) => {
|
departmentList(params).then((res) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user