Browse Source

修改TPM员工考勤功能查询

java8
赵宏斌 5 months ago
parent
commit
45c709c456
  1. 607
      src/views/modules/eamReport/employeeAttendanceTime.vue

607
src/views/modules/eamReport/employeeAttendanceTime.vue

@ -43,6 +43,9 @@
<el-form-item label="员工编号"> <el-form-item label="员工编号">
<el-input v-model="searchData.operatorId" clearable style="width: 120px"></el-input> <el-input v-model="searchData.operatorId" clearable style="width: 120px"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="员工名称">
<el-input v-model="searchData.operatorName" clearable style="width: 120px"></el-input>
</el-form-item>
<el-form-item label="部门名称"> <el-form-item label="部门名称">
<el-select v-model="searchData.deptId" placeholder="请选择" clearable style="width: 80px"> <el-select v-model="searchData.deptId" placeholder="请选择" clearable style="width: 80px">
<el-option <el-option
@ -53,6 +56,16 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="'所属角色'" >
<el-select v-model="searchData.roleId" placeholder="请选择" :disabled="searchData.groupType!='1'&&searchData.groupType!='3'" style="width: 120px">
<el-option
v-for = "i in roleList"
:key = "i.roleId"
:label = "i.roleName"
:value = "i.roleId">
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="' '"> <el-form-item :label="' '">
<el-button type="primary" :loading="searchLoading" @click="getDataList()">查询</el-button> <el-button type="primary" :loading="searchLoading" @click="getDataList()">查询</el-button>
<download-excel <download-excel
@ -103,6 +116,7 @@ import {
} from "@/api/eam/eam.js" } from "@/api/eam/eam.js"
import {getTableDefaultListLanguage, getTableUserListLanguage} from "@/api/table.js" import {getTableDefaultListLanguage, getTableUserListLanguage} from "@/api/table.js"
import {userFavoriteList, saveUserFavorite, removeUserFavorite} from '@/api/userFavorite.js' import {userFavoriteList, saveUserFavorite, removeUserFavorite} from '@/api/userFavorite.js'
import {getUserRoleList} from "../../../api/eam/eam";
export default { export default {
components: { components: {
@ -138,7 +152,7 @@ export default {
searchData: { searchData: {
site: '', site: '',
buDesc: '', buDesc: '',
groupType: '0',
groupType: '1',
operatorId: '', operatorId: '',
deptId: '', deptId: '',
startDate: '', startDate: '',
@ -239,78 +253,78 @@ export default {
fixed: '', fixed: '',
columnWidth: 100, columnWidth: 100,
}, },
{
userId: this.$store.state.user.name,
functionId: 101005010,
serialNumber: '101005010Table1ErpReportTime',
tableId: "101005010Table1",
tableName: "员工考勤vs报工工时",
columnProp: 'erpReportTime',
headerAlign: "center",
align: "right",
columnLabel: '传ERP报工工时',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100,
},
{
userId: this.$store.state.user.name,
functionId: 101005010,
serialNumber: '101005010Table1ErpProportion',
tableId: "101005010Table1",
tableName: "员工考勤vs报工工时",
columnProp: 'erpProportion',
headerAlign: "center",
align: "right",
columnLabel: '传ERP报工比例(%)',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100,
},
{
userId: this.$store.state.user.name,
functionId: 101005010,
serialNumber: '101005010Table1NotErpReportTime',
tableId: "101005010Table1",
tableName: "员工考勤vs报工工时",
columnProp: 'notErpReportTime',
headerAlign: "center",
align: "right",
columnLabel: '不传ERP报工工时',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100,
},
{
userId: this.$store.state.user.name,
functionId: 101005010,
serialNumber: '101005010Table1NotErpProportion',
tableId: "101005010Table1",
tableName: "员工考勤vs报工工时",
columnProp: 'notErpProportion',
headerAlign: "center",
align: "right",
columnLabel: '不传ERP报工比例(%)',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100,
},
// {
// userId: this.$store.state.user.name,
// functionId: 101005010,
// serialNumber: '101005010Table1ErpReportTime',
// tableId: "101005010Table1",
// tableName: "vs",
// columnProp: 'erpReportTime',
// headerAlign: "center",
// align: "right",
// columnLabel: 'ERP',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// columnWidth: 100,
// },
// {
// userId: this.$store.state.user.name,
// functionId: 101005010,
// serialNumber: '101005010Table1ErpProportion',
// tableId: "101005010Table1",
// tableName: "vs",
// columnProp: 'erpProportion',
// headerAlign: "center",
// align: "right",
// columnLabel: 'ERP(%)',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// columnWidth: 100,
// },
// {
// userId: this.$store.state.user.name,
// functionId: 101005010,
// serialNumber: '101005010Table1NotErpReportTime',
// tableId: "101005010Table1",
// tableName: "vs",
// columnProp: 'notErpReportTime',
// headerAlign: "center",
// align: "right",
// columnLabel: 'ERP',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// columnWidth: 100,
// },
// {
// userId: this.$store.state.user.name,
// functionId: 101005010,
// serialNumber: '101005010Table1NotErpProportion',
// tableId: "101005010Table1",
// tableName: "vs",
// columnProp: 'notErpProportion',
// headerAlign: "center",
// align: "right",
// columnLabel: 'ERP(%)',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// columnWidth: 100,
// },
], ],
arrayColumns1: [ arrayColumns1: [
{ {
@ -457,78 +471,78 @@ export default {
fixed: '', fixed: '',
columnWidth: 100, columnWidth: 100,
}, },
{
userId: this.$store.state.user.name,
functionId: 101005010,
serialNumber: '101005010Table1ErpReportTime',
tableId: "101005010Table1",
tableName: "员工考勤vs报工工时",
columnProp: 'erpReportTime',
headerAlign: "center",
align: "right",
columnLabel: '传ERP报工工时',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100,
},
{
userId: this.$store.state.user.name,
functionId: 101005010,
serialNumber: '101005010Table1ErpProportion',
tableId: "101005010Table1",
tableName: "员工考勤vs报工工时",
columnProp: 'erpProportion',
headerAlign: "center",
align: "right",
columnLabel: '传ERP报工比例(%)',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100,
},
{
userId: this.$store.state.user.name,
functionId: 101005010,
serialNumber: '101005010Table1NotErpReportTime',
tableId: "101005010Table1",
tableName: "员工考勤vs报工工时",
columnProp: 'notErpReportTime',
headerAlign: "center",
align: "right",
columnLabel: '不传ERP报工工时',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100,
},
{
userId: this.$store.state.user.name,
functionId: 101005010,
serialNumber: '101005010Table1NotErpProportion',
tableId: "101005010Table1",
tableName: "员工考勤vs报工工时",
columnProp: 'notErpProportion',
headerAlign: "center",
align: "right",
columnLabel: '不传ERP报工比例(%)',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100,
},
// {
// userId: this.$store.state.user.name,
// functionId: 101005010,
// serialNumber: '101005010Table1ErpReportTime',
// tableId: "101005010Table1",
// tableName: "vs",
// columnProp: 'erpReportTime',
// headerAlign: "center",
// align: "right",
// columnLabel: 'ERP',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// columnWidth: 100,
// },
// {
// userId: this.$store.state.user.name,
// functionId: 101005010,
// serialNumber: '101005010Table1ErpProportion',
// tableId: "101005010Table1",
// tableName: "vs",
// columnProp: 'erpProportion',
// headerAlign: "center",
// align: "right",
// columnLabel: 'ERP(%)',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// columnWidth: 100,
// },
// {
// userId: this.$store.state.user.name,
// functionId: 101005010,
// serialNumber: '101005010Table1NotErpReportTime',
// tableId: "101005010Table1",
// tableName: "vs",
// columnProp: 'notErpReportTime',
// headerAlign: "center",
// align: "right",
// columnLabel: 'ERP',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// columnWidth: 100,
// },
// {
// userId: this.$store.state.user.name,
// functionId: 101005010,
// serialNumber: '101005010Table1NotErpProportion',
// tableId: "101005010Table1",
// tableName: "vs",
// columnProp: 'notErpProportion',
// headerAlign: "center",
// align: "right",
// columnLabel: 'ERP(%)',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// columnWidth: 100,
// },
], ],
arrayColumns2: [ arrayColumns2: [
{ {
@ -639,78 +653,78 @@ export default {
fixed: '', fixed: '',
columnWidth: 100, columnWidth: 100,
}, },
{
userId: this.$store.state.user.name,
functionId: 101005010,
serialNumber: '101005010Table1ErpReportTime',
tableId: "101005010Table1",
tableName: "员工考勤vs报工工时",
columnProp: 'erpReportTime',
headerAlign: "center",
align: "right",
columnLabel: '传ERP报工工时',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100,
},
{
userId: this.$store.state.user.name,
functionId: 101005010,
serialNumber: '101005010Table1ErpProportion',
tableId: "101005010Table1",
tableName: "员工考勤vs报工工时",
columnProp: 'erpProportion',
headerAlign: "center",
align: "right",
columnLabel: '传ERP报工比例(%)',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100,
},
{
userId: this.$store.state.user.name,
functionId: 101005010,
serialNumber: '101005010Table1NotErpReportTime',
tableId: "101005010Table1",
tableName: "员工考勤vs报工工时",
columnProp: 'notErpReportTime',
headerAlign: "center",
align: "right",
columnLabel: '不传ERP报工工时',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100,
},
{
userId: this.$store.state.user.name,
functionId: 101005010,
serialNumber: '101005010Table1NotErpProportion',
tableId: "101005010Table1",
tableName: "员工考勤vs报工工时",
columnProp: 'notErpProportion',
headerAlign: "center",
align: "right",
columnLabel: '不传ERP报工比例(%)',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100,
},
// {
// userId: this.$store.state.user.name,
// functionId: 101005010,
// serialNumber: '101005010Table1ErpReportTime',
// tableId: "101005010Table1",
// tableName: "vs",
// columnProp: 'erpReportTime',
// headerAlign: "center",
// align: "right",
// columnLabel: 'ERP',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// columnWidth: 100,
// },
// {
// userId: this.$store.state.user.name,
// functionId: 101005010,
// serialNumber: '101005010Table1ErpProportion',
// tableId: "101005010Table1",
// tableName: "vs",
// columnProp: 'erpProportion',
// headerAlign: "center",
// align: "right",
// columnLabel: 'ERP(%)',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// columnWidth: 100,
// },
// {
// userId: this.$store.state.user.name,
// functionId: 101005010,
// serialNumber: '101005010Table1NotErpReportTime',
// tableId: "101005010Table1",
// tableName: "vs",
// columnProp: 'notErpReportTime',
// headerAlign: "center",
// align: "right",
// columnLabel: 'ERP',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// columnWidth: 100,
// },
// {
// userId: this.$store.state.user.name,
// functionId: 101005010,
// serialNumber: '101005010Table1NotErpProportion',
// tableId: "101005010Table1",
// tableName: "vs",
// columnProp: 'notErpProportion',
// headerAlign: "center",
// align: "right",
// columnLabel: 'ERP(%)',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// columnWidth: 100,
// },
], ],
arrayColumns3: [ arrayColumns3: [
{ {
@ -875,81 +889,82 @@ export default {
fixed: '', fixed: '',
columnWidth: 100, columnWidth: 100,
}, },
{
userId: this.$store.state.user.name,
functionId: 101005010,
serialNumber: '101005010Table1ErpReportTime',
tableId: "101005010Table1",
tableName: "员工考勤vs报工工时",
columnProp: 'erpReportTime',
headerAlign: "center",
align: "right",
columnLabel: '传ERP报工工时',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100,
},
{
userId: this.$store.state.user.name,
functionId: 101005010,
serialNumber: '101005010Table1ErpProportion',
tableId: "101005010Table1",
tableName: "员工考勤vs报工工时",
columnProp: 'erpProportion',
headerAlign: "center",
align: "right",
columnLabel: '传ERP报工比例(%)',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100,
},
{
userId: this.$store.state.user.name,
functionId: 101005010,
serialNumber: '101005010Table1NotErpReportTime',
tableId: "101005010Table1",
tableName: "员工考勤vs报工工时",
columnProp: 'notErpReportTime',
headerAlign: "center",
align: "right",
columnLabel: '不传ERP报工工时',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100,
},
{
userId: this.$store.state.user.name,
functionId: 101005010,
serialNumber: '101005010Table1NotErpProportion',
tableId: "101005010Table1",
tableName: "员工考勤vs报工工时",
columnProp: 'notErpProportion',
headerAlign: "center",
align: "right",
columnLabel: '不传ERP报工比例(%)',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100,
},
// {
// userId: this.$store.state.user.name,
// functionId: 101005010,
// serialNumber: '101005010Table1ErpReportTime',
// tableId: "101005010Table1",
// tableName: "vs",
// columnProp: 'erpReportTime',
// headerAlign: "center",
// align: "right",
// columnLabel: 'ERP',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// columnWidth: 100,
// },
// {
// userId: this.$store.state.user.name,
// functionId: 101005010,
// serialNumber: '101005010Table1ErpProportion',
// tableId: "101005010Table1",
// tableName: "vs",
// columnProp: 'erpProportion',
// headerAlign: "center",
// align: "right",
// columnLabel: 'ERP(%)',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// columnWidth: 100,
// },
// {
// userId: this.$store.state.user.name,
// functionId: 101005010,
// serialNumber: '101005010Table1NotErpReportTime',
// tableId: "101005010Table1",
// tableName: "vs",
// columnProp: 'notErpReportTime',
// headerAlign: "center",
// align: "right",
// columnLabel: 'ERP',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// columnWidth: 100,
// },
// {
// userId: this.$store.state.user.name,
// functionId: 101005010,
// serialNumber: '101005010Table1NotErpProportion',
// tableId: "101005010Table1",
// tableName: "vs",
// columnProp: 'notErpProportion',
// headerAlign: "center",
// align: "right",
// columnLabel: 'ERP(%)',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// columnWidth: 100,
// },
], ],
siteList: [], siteList: [],
deptList: [], deptList: [],
roleList: [],
searchLoading: false, searchLoading: false,
} }
}, },
@ -969,10 +984,22 @@ export default {
this.favoriteIsOk() this.favoriteIsOk()
// //
this.getTableUserColumn(this.$route.meta.menuId+'table1',1) this.getTableUserColumn(this.$route.meta.menuId+'table1',1)
//
this.getUserRoleList()
}, },
methods: { methods: {
//
getUserRoleList () {
getUserRoleList().then(({data}) => {
if (data.code === 0) {
this.roleList = data.rows
this.$set(this.searchData,'roleId',20)
} else {
this.roleList = []
}
})
},
// bu // bu
getSite () { getSite () {
let tempData = { let tempData = {

Loading…
Cancel
Save