| | |
| | | <!--表格渲染--> |
| | | <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" fixed="left" show-overflow-tooltip> |
| | | <el-table-column prop="userName" label="申请人" min-width="100" fixed="left" show-overflow-tooltip> |
| | | <template slot-scope="scope"> |
| | | <el-tag>{{ scope.row.userName }}</el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="appUserName" label="审批者" width="100" fixed="left" show-overflow-tooltip> |
| | | <el-table-column prop="appUserName" label="审批者" min-width="100" fixed="left" show-overflow-tooltip> |
| | | <template slot-scope="scope"> |
| | | <el-tag>{{ scope.row.appUserName }}</el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="outStartTime" label="外出开始时间" width="140" show-overflow-tooltip /> |
| | | <el-table-column prop="outEndTime" label="外出结束时间" width="140" show-overflow-tooltip /> |
| | | <el-table-column prop="outDuration" label="外出时长" width="80" show-overflow-tooltip> |
| | | <el-table-column prop="outStartTime" label="外出开始时间" min-width="140" show-overflow-tooltip /> |
| | | <el-table-column prop="outEndTime" label="外出结束时间" min-width="140" show-overflow-tooltip /> |
| | | <el-table-column prop="outDuration" label="外出时长" min-width="80" show-overflow-tooltip> |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.outDuration + '(' + dict.label[dictLeaveTimeType][scope.row.durationUnit] + ')' }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="outOfOfficeType" label="外出类型" width="80" show-overflow-tooltip> |
| | | <el-table-column prop="outOfOfficeType" label="外出类型" min-width="80" show-overflow-tooltip> |
| | | <template slot-scope="scope"> |
| | | <el-tag>{{ dict.label[dictGoOutTypr][scope.row.outOfOfficeType] }}</el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="outReason" label="外出原因" width="140" show-overflow-tooltip /> |
| | | <el-table-column prop="approvalStatus" label="审批状态" width="80" show-overflow-tooltip> |
| | | <el-table-column prop="outReason" 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 === dictGoOutAppRev" type="warning">{{ dict.label[dictApprovalStart][scope.row.approvalStatus] }}</el-tag> |
| | | <el-tag v-if="scope.row.approvalStatus === dictGoOutAgree" type="success">{{ dict.label[dictApprovalStart][scope.row.approvalStatus] }}</el-tag> |
| | | <el-tag v-if="scope.row.approvalStatus === dictGoOutReturn" type="danger">{{ dict.label[dictApprovalStart][scope.row.approvalStatus] }}</el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="approvalDescription" label="审批说明" width="140" show-overflow-tooltip /> |
| | | <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="approvalDescription" label="审批说明" min-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','attendanceGoOut:approve'])" label="审核操作" width="180px" align="center" fixed="right"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | |
| | | components: { pagination, crudOperation, rrOperation, udOperation }, |
| | | mixins: [presenter(), header(), form(defaultForm), crud()], |
| | | cruds() { |
| | | return CRUD({ title: '外出记录', url: 'api/attendanceGoOut', idField: 'id', sort: 'id,desc', crudMethod: { ...crudAttendanceGoOut }}) |
| | | return CRUD({ title: '外出记录', url: 'api/attendanceGoOut', idField: 'id', sort: 'outStartTime,desc', crudMethod: { ...crudAttendanceGoOut }}) |
| | | }, |
| | | // 数据字典 |
| | | dicts: [constant.LEAVE_TIME_TYPE, constant.GO_OUT_TYPE, constant.GO_OUT_APPROVE_STATUS], |