| | |
| | | <!--表格渲染--> |
| | | <el-table ref="table" v-loading="crud.loading" :data="crud.data" size="small" style="width: 100%;" @selection-change="crud.selectionChangeHandler"> |
| | | <el-table-column type="selection" width="55" /> |
| | | <el-table-column prop="userName" label="申请人" width="100" show-overflow-tooltip fixed="left"> |
| | | <el-table-column prop="userName" label="申请人" min-width="100" show-overflow-tooltip fixed="left"> |
| | | <template slot-scope="scope"> |
| | | <el-tag>{{ scope.row.userName }}</el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="appUserName" label="审批者" width="100" show-overflow-tooltip fixed="left"> |
| | | <el-table-column prop="appUserName" label="审批者" min-width="100" show-overflow-tooltip fixed="left"> |
| | | <template slot-scope="scope"> |
| | | <el-tag>{{ scope.row.appUserName }}</el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="cardReplacementTime" label="补卡时间" width="140" show-overflow-tooltip /> |
| | | <el-table-column prop="cardReplacementReason" label="补卡原因" width="140" show-overflow-tooltip /> |
| | | <el-table-column prop="approvalStatus" label="审批状态" width="80" show-overflow-tooltip> |
| | | <el-table-column prop="cardReplacementTime" label="补卡时间" min-width="140" show-overflow-tooltip /> |
| | | <el-table-column prop="cardReplacementReason" label="补卡原因" min-width="140" show-overflow-tooltip /> |
| | | <el-table-column prop="approvalStatus" label="审批状态" min-width="80" show-overflow-tooltip> |
| | | <template slot-scope="scope"> |
| | | <el-tag v-if="scope.row.approvalStatus === dictCardApproveStatusReviewed" type="warning">{{ dict.label[dictCardApproveStatus][scope.row.approvalStatus] }}</el-tag> |
| | | <el-tag v-if="scope.row.approvalStatus === dictCardApproveStatusAgree" type="success">{{ dict.label[dictCardApproveStatus][scope.row.approvalStatus] }}</el-tag> |
| | | <el-tag v-if="scope.row.approvalStatus === dictCardApproveStatusRefuse" type="danger">{{ dict.label[dictCardApproveStatus][scope.row.approvalStatus] }}</el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="approvalDescription" label="审批说明" width="140" show-overflow-tooltip /> |
| | | <el-table-column prop="cardReplacementDistinguish" label="补卡区分" width="80" show-overflow-tooltip> |
| | | <el-table-column prop="approvalDescription" label="审批说明" min-width="140" show-overflow-tooltip /> |
| | | <el-table-column prop="cardReplacementDistinguish" label="补卡区分" min-width="80" show-overflow-tooltip> |
| | | <template slot-scope="scope"> |
| | | <el-tag>{{ dict.label[dictCardReplacement][scope.row.cardReplacementDistinguish] }}</el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="remarks" label="备注" width="140" show-overflow-tooltip /> |
| | | <el-table-column prop="createTime" label="创建时间" width="140" show-overflow-tooltip /> |
| | | <el-table-column prop="remarks" label="备注" min-width="140" show-overflow-tooltip /> |
| | | <el-table-column prop="createTime" label="创建时间" min-width="140" show-overflow-tooltip /> |
| | | <el-table-column v-if="checkPer(['admin','attendanceCardreplacement:approve'])" label="审核操作" width="180px" align="center" fixed="right"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | |
| | | // 数据字典 |
| | | dicts: [constant.CARD_REPLACEMENT_DIFFERENTIATION, constant.CARD_APPROVE_STATUS], |
| | | cruds() { |
| | | return CRUD({ title: '补卡记录', url: 'api/attendanceCardreplacement', idField: 'id', sort: 'id,desc', crudMethod: { ...crudAttendanceCardreplacement }}) |
| | | return CRUD({ title: '补卡记录', url: 'api/attendanceCardreplacement', idField: 'id', sort: 'cardReplacementTime,desc', crudMethod: { ...crudAttendanceCardreplacement }}) |
| | | }, |
| | | data() { |
| | | return { |