|
@@ -13,12 +13,12 @@
|
|
|
<div class="flex justify-between items-center">
|
|
|
<t-space>
|
|
|
<span>考勤总计:{{ statisticsInfo.total }}</span>
|
|
|
- <span>异常考勤:{{ statisticsInfo.exception }}</span>
|
|
|
+ <span>异常考勤:{{ statisticsInfo.abnormal }}</span>
|
|
|
<span>累计人天:{{ statisticsInfo.allDays }}天</span>
|
|
|
<span>累计工时:{{ statisticsInfo.allHours }}小时</span>
|
|
|
</t-space>
|
|
|
<div class="btn-group">
|
|
|
- <t-button theme="success" @click="multExport">批量导出</t-button>
|
|
|
+ <!-- <t-button theme="success" @click="multExport">批量导出</t-button> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -36,10 +36,10 @@
|
|
|
current: pagination.pageNumber,
|
|
|
}"
|
|
|
>
|
|
|
- <template #create-time="{ col, row }">
|
|
|
+ <template #sign-time="{ col, row }">
|
|
|
{{ timestampFilter(row[col.colKey]) }}
|
|
|
</template>
|
|
|
- <template #result="{ col, row }">
|
|
|
+ <template #status="{ col, row }">
|
|
|
{{ attendanceResultFilter(row[col.colKey]) }}
|
|
|
</template>
|
|
|
<template #type="{ col, row }">
|
|
@@ -138,7 +138,7 @@ const fields = ref([
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
- prop: 'exceptionCount',
|
|
|
+ prop: 'abnormal',
|
|
|
type: 'number',
|
|
|
label: '考勤异常数>',
|
|
|
labelWidth: 120,
|
|
@@ -163,7 +163,7 @@ const fields = ref([
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
- prop: 'result',
|
|
|
+ prop: 'status',
|
|
|
type: 'number',
|
|
|
label: '考勤结果',
|
|
|
labelWidth: 120,
|
|
@@ -181,31 +181,31 @@ const params = reactive({
|
|
|
supplierId: '',
|
|
|
custom: '',
|
|
|
sopNo: '',
|
|
|
- exceptionCount: null,
|
|
|
+ abnormal: null,
|
|
|
type: null,
|
|
|
- result: null,
|
|
|
+ status: null,
|
|
|
});
|
|
|
const computedParams = computed(() => {
|
|
|
let data = omit(params, ['createTime']);
|
|
|
- data.createStartTime = params.createTime[0];
|
|
|
- data.createEndTime = params.createTime[1];
|
|
|
+ data.startTime = params.createTime[0];
|
|
|
+ data.endTime = params.createTime[1];
|
|
|
return data;
|
|
|
});
|
|
|
|
|
|
const columns = [
|
|
|
- { colKey: 'serviceUnitName', title: '服务单元' },
|
|
|
+ { colKey: 'service', title: '服务单元' },
|
|
|
{ colKey: 'sopNo', title: 'SOP流水号' },
|
|
|
- { colKey: 'customName', title: '客户名称' },
|
|
|
+ { colKey: 'custom', title: '客户名称' },
|
|
|
{ colKey: 'province', title: '省份', minWidth: 60 },
|
|
|
{ colKey: 'city', title: '城市', minWidth: 60 },
|
|
|
{ colKey: 'userName', title: '姓名', width: 150 },
|
|
|
{ colKey: 'roleName', title: '项目角色' },
|
|
|
{ colKey: 'supplier', title: '所属供应商' },
|
|
|
- { colKey: 'day', title: '考勤日期', width: 120 },
|
|
|
+ { colKey: 'signDate', title: '考勤日期', width: 120 },
|
|
|
{ colKey: 'type', title: '考勤类型', cell: 'type', width: 80 },
|
|
|
- { colKey: 'createTime', title: '打卡时间', cell: 'create-time', width: 170 },
|
|
|
+ { colKey: 'signTime', title: '打卡时间', cell: 'sign-time', width: 170 },
|
|
|
{ colKey: 'address', title: '打卡地址' },
|
|
|
- { colKey: 'result', title: '考勤结果', cell: 'result', width: 80 },
|
|
|
+ { colKey: 'status', title: '考勤结果', cell: 'status', width: 80 },
|
|
|
];
|
|
|
const { pagination, tableData, search, onChange } = useFetchTable(
|
|
|
workAttendanceDetailListApi,
|