|
|
@ -29,10 +29,10 @@
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="班组编号" prop="teamCode">
|
|
|
|
<el-form-item label="所属班组" prop="teamCode">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.teamCode"
|
|
|
|
v-model="queryParams.teamCode"
|
|
|
|
placeholder="请输入班组编号"
|
|
|
|
placeholder="请输入所属班组"
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
@ -55,29 +55,29 @@
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<!-- <el-col :span="1.5">-->
|
|
|
|
<el-button
|
|
|
|
<!-- <el-button-->
|
|
|
|
type="primary"
|
|
|
|
<!-- type="primary"-->
|
|
|
|
plain
|
|
|
|
<!-- plain-->
|
|
|
|
icon="el-icon-plus"
|
|
|
|
<!-- icon="el-icon-plus"-->
|
|
|
|
size="mini"
|
|
|
|
<!-- size="mini"-->
|
|
|
|
@click="handleAdd"
|
|
|
|
<!-- @click="handleAdd"-->
|
|
|
|
v-hasPermi="['mes/record:recordStaffAttendance:add']"
|
|
|
|
<!-- v-hasPermi="['mes/record:recordStaffAttendance:add']"-->
|
|
|
|
>新增
|
|
|
|
<!-- >新增-->
|
|
|
|
</el-button>
|
|
|
|
<!-- </el-button>-->
|
|
|
|
</el-col>
|
|
|
|
<!-- </el-col>-->
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<!-- <el-col :span="1.5">-->
|
|
|
|
<el-button
|
|
|
|
<!-- <el-button-->
|
|
|
|
type="success"
|
|
|
|
<!-- type="success"-->
|
|
|
|
plain
|
|
|
|
<!-- plain-->
|
|
|
|
icon="el-icon-edit"
|
|
|
|
<!-- icon="el-icon-edit"-->
|
|
|
|
size="mini"
|
|
|
|
<!-- size="mini"-->
|
|
|
|
:disabled="single"
|
|
|
|
<!-- :disabled="single"-->
|
|
|
|
@click="handleUpdate"
|
|
|
|
<!-- @click="handleUpdate"-->
|
|
|
|
v-hasPermi="['mes/record:recordStaffAttendance:edit']"
|
|
|
|
<!-- v-hasPermi="['mes/record:recordStaffAttendance:edit']"-->
|
|
|
|
>修改
|
|
|
|
<!-- >修改-->
|
|
|
|
</el-button>
|
|
|
|
<!-- </el-button>-->
|
|
|
|
</el-col>
|
|
|
|
<!-- </el-col>-->
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="danger"
|
|
|
|
type="danger"
|
|
|
@ -108,17 +108,23 @@
|
|
|
|
<el-table-column type="selection" width="55" align="center"/>
|
|
|
|
<el-table-column type="selection" width="55" align="center"/>
|
|
|
|
<el-table-column label="主键标识" align="center" prop="objId" v-if="columns[0].visible"/>
|
|
|
|
<el-table-column label="主键标识" align="center" prop="objId" v-if="columns[0].visible"/>
|
|
|
|
<el-table-column label="员工ID" align="center" prop="staffId" v-if="columns[1].visible"/>
|
|
|
|
<el-table-column label="员工ID" align="center" prop="staffId" v-if="columns[1].visible"/>
|
|
|
|
|
|
|
|
<el-table-column label="员工姓名" align="center" prop="staffName" v-if="columns[12].visible"/>
|
|
|
|
<el-table-column label="打卡类型" align="center" prop="attendanceType" v-if="columns[2].visible">
|
|
|
|
<el-table-column label="打卡类型" align="center" prop="attendanceType" v-if="columns[2].visible">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<dict-tag :options="dict.type.attendance_type" :value="scope.row.attendanceType"/>
|
|
|
|
<dict-tag :options="dict.type.attendance_type" :value="scope.row.attendanceType"/>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="班组编号" align="center" prop="teamCode" v-if="columns[3].visible"/>
|
|
|
|
<el-table-column label="班组" align="center" prop="teamName" v-if="columns[3].visible"/>
|
|
|
|
<el-table-column label="班次" align="center" prop="classes" v-if="columns[4].visible">
|
|
|
|
<el-table-column label="班次" align="center" prop="classes" v-if="columns[4].visible">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<dict-tag :options="dict.type.classes" :value="scope.row.classes"/>
|
|
|
|
<dict-tag :options="dict.type.classes" :value="scope.row.classes"/>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="打卡时间" align="center" prop="createTime" width="180" v-if="columns[8].visible">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="备注" align="center" prop="remark" v-if="columns[5].visible"/>
|
|
|
|
<el-table-column label="备注" align="center" prop="remark" v-if="columns[5].visible"/>
|
|
|
|
<el-table-column label="是否标识" align="center" prop="isFlag" v-if="columns[6].visible">
|
|
|
|
<el-table-column label="是否标识" align="center" prop="isFlag" v-if="columns[6].visible">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
@ -126,11 +132,6 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="创建人" align="center" prop="createBy" v-if="columns[7].visible"/>
|
|
|
|
<el-table-column label="创建人" align="center" prop="createBy" v-if="columns[7].visible"/>
|
|
|
|
<el-table-column label="打卡时间" align="center" prop="createTime" width="180" v-if="columns[8].visible">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="更新人" align="center" prop="updateBy" v-if="columns[9].visible"/>
|
|
|
|
<el-table-column label="更新人" align="center" prop="updateBy" v-if="columns[9].visible"/>
|
|
|
|
<el-table-column label="更新时间" align="center" prop="updateTime" width="180" v-if="columns[10].visible">
|
|
|
|
<el-table-column label="更新时间" align="center" prop="updateTime" width="180" v-if="columns[10].visible">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
@ -138,26 +139,26 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="机台编号" align="center" prop="machineCode" v-if="columns[11].visible"/>
|
|
|
|
<el-table-column label="机台编号" align="center" prop="machineCode" v-if="columns[11].visible"/>
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="100">
|
|
|
|
<!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="100">-->
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
|
<el-button
|
|
|
|
<!-- <el-button-->
|
|
|
|
size="mini"
|
|
|
|
<!-- size="mini"-->
|
|
|
|
type="text"
|
|
|
|
<!-- type="text"-->
|
|
|
|
icon="el-icon-edit"
|
|
|
|
<!-- icon="el-icon-edit"-->
|
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
|
<!-- @click="handleUpdate(scope.row)"-->
|
|
|
|
v-hasPermi="['mes/record:recordStaffAttendance:edit']"
|
|
|
|
<!-- v-hasPermi="['mes/record:recordStaffAttendance:edit']"-->
|
|
|
|
>修改
|
|
|
|
<!-- >修改-->
|
|
|
|
</el-button>
|
|
|
|
<!-- </el-button>-->
|
|
|
|
<el-button
|
|
|
|
<!-- <el-button-->
|
|
|
|
size="mini"
|
|
|
|
<!-- size="mini"-->
|
|
|
|
type="text"
|
|
|
|
<!-- type="text"-->
|
|
|
|
icon="el-icon-delete"
|
|
|
|
<!-- icon="el-icon-delete"-->
|
|
|
|
@click="handleDelete(scope.row)"
|
|
|
|
<!-- @click="handleDelete(scope.row)"-->
|
|
|
|
v-hasPermi="['mes/record:recordStaffAttendance:remove']"
|
|
|
|
<!-- v-hasPermi="['mes/record:recordStaffAttendance:remove']"-->
|
|
|
|
>删除
|
|
|
|
<!-- >删除-->
|
|
|
|
</el-button>
|
|
|
|
<!-- </el-button>-->
|
|
|
|
</template>
|
|
|
|
<!-- </template>-->
|
|
|
|
</el-table-column>
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
|
|
<pagination
|
|
|
|
<pagination
|
|
|
@ -184,8 +185,8 @@
|
|
|
|
</el-radio>
|
|
|
|
</el-radio>
|
|
|
|
</el-radio-group>
|
|
|
|
</el-radio-group>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="班组编号" prop="teamCode">
|
|
|
|
<el-form-item label="所属班组" prop="teamCode">
|
|
|
|
<el-input v-model="form.teamCode" placeholder="请输入班组编号"/>
|
|
|
|
<el-input v-model="form.teamCode" placeholder="请输入所属班组"/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="班次" prop="classes">
|
|
|
|
<el-form-item label="班次" prop="classes">
|
|
|
|
<el-radio-group v-model="form.classes">
|
|
|
|
<el-radio-group v-model="form.classes">
|
|
|
@ -276,15 +277,16 @@ export default {
|
|
|
|
{ key: 0, label: `主键标识`, visible: false },
|
|
|
|
{ key: 0, label: `主键标识`, visible: false },
|
|
|
|
{ key: 1, label: `员工ID`, visible: true },
|
|
|
|
{ key: 1, label: `员工ID`, visible: true },
|
|
|
|
{ key: 2, label: `打卡类型`, visible: true },
|
|
|
|
{ key: 2, label: `打卡类型`, visible: true },
|
|
|
|
{ key: 3, label: `班组编号`, visible: true },
|
|
|
|
{ key: 3, label: `所属班组`, visible: true },
|
|
|
|
{ key: 4, label: `班次`, visible: true },
|
|
|
|
{ key: 4, label: `班次`, visible: false },
|
|
|
|
{ key: 5, label: `备注`, visible: true },
|
|
|
|
{ key: 5, label: `备注`, visible: true },
|
|
|
|
{ key: 6, label: `是否标识`, visible: false },
|
|
|
|
{ key: 6, label: `是否标识`, visible: false },
|
|
|
|
{ key: 7, label: `创建人`, visible: false },
|
|
|
|
{ key: 7, label: `创建人`, visible: false },
|
|
|
|
{ key: 8, label: `打卡时间`, visible: true },
|
|
|
|
{ key: 8, label: `打卡时间`, visible: true },
|
|
|
|
{ key: 9, label: `更新人`, visible: false },
|
|
|
|
{ key: 9, label: `更新人`, visible: false },
|
|
|
|
{ key: 10, label: `更新时间`, visible: false },
|
|
|
|
{ key: 10, label: `更新时间`, visible: false },
|
|
|
|
{ key: 11, label: `机台编号`, visible: true }
|
|
|
|
{ key: 11, label: `机台编号`, visible: false },
|
|
|
|
|
|
|
|
{ key: 12, label: `员工姓名`, visible: true },
|
|
|
|
]
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|