|
@@ -172,7 +172,7 @@
|
|
|
icon="el-icon-upload2"
|
|
|
size="mini"
|
|
|
@click="handleImport"
|
|
|
- v-hasPermi="['system:user:import']"
|
|
|
+ v-hasPermi="['system:record:import']"
|
|
|
>导入</el-button
|
|
|
>
|
|
|
</el-col>
|
|
@@ -183,7 +183,7 @@
|
|
|
icon="el-icon-download"
|
|
|
size="mini"
|
|
|
@click="handleExport"
|
|
|
- v-hasPermi="['system:user:export']"
|
|
|
+ v-hasPermi="['system:record:export']"
|
|
|
>导出</el-button
|
|
|
>
|
|
|
</el-col>
|
|
@@ -195,7 +195,7 @@
|
|
|
size="mini"
|
|
|
:disabled="multiple"
|
|
|
@click="handleDownload"
|
|
|
- v-hasPermi="['system:user:export']"
|
|
|
+ v-hasPermi="['system:record:export']"
|
|
|
>下载附件</el-button
|
|
|
>
|
|
|
</el-col>
|
|
@@ -217,13 +217,23 @@
|
|
|
type="primary"
|
|
|
size="mini"
|
|
|
@click="handleImports"
|
|
|
- v-hasPermi="['system:user:import']"
|
|
|
+ v-hasPermi="['system:record:import']"
|
|
|
>导入考勤</el-button
|
|
|
>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-button type="primary" size="mini" @click="mateHours">匹配工时</el-button>
|
|
|
</el-col>
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ size="mini"
|
|
|
+ :disabled="multiple"
|
|
|
+ @click="chainUp"
|
|
|
+ v-hasPermi="[`system:record:chainup`]"
|
|
|
+ >上链确权</el-button
|
|
|
+ >
|
|
|
+ </el-col>
|
|
|
<right-toolbar
|
|
|
:showSearch.sync="showSearch"
|
|
|
@queryTable="getList"
|
|
@@ -238,27 +248,49 @@
|
|
|
>
|
|
|
<el-table-column type="selection" width="50" align="center" />
|
|
|
<el-table-column
|
|
|
+ label="日志上链"
|
|
|
+ align="center"
|
|
|
+ width="75"
|
|
|
+ key="tianheUrl"
|
|
|
+ prop="tianheUrl"
|
|
|
+ show-overflow-tooltip
|
|
|
+ v-if="columns[0].visible"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tag
|
|
|
+ type="danger"
|
|
|
+ effect="dark"
|
|
|
+ style="cursor: pointer"
|
|
|
+ @click="goto(scope.row.tianheUrl)"
|
|
|
+ v-show="!!scope.row.tianheUrl"
|
|
|
+ >
|
|
|
+ 已上链
|
|
|
+ </el-tag>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
label="员工工号"
|
|
|
align="center"
|
|
|
- width="90"
|
|
|
+ width="75"
|
|
|
key="jobNumber"
|
|
|
prop="jobNumber"
|
|
|
- v-if="columns[0].visible"
|
|
|
+ v-if="columns[1].visible"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
label="员工姓名"
|
|
|
align="center"
|
|
|
key="name"
|
|
|
prop="name"
|
|
|
- v-if="columns[1].visible"
|
|
|
+ v-if="columns[2].visible"
|
|
|
:show-overflow-tooltip="true"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
label="部门编号"
|
|
|
align="center"
|
|
|
+ width="75"
|
|
|
key="deptId"
|
|
|
prop="deptId"
|
|
|
- v-if="columns[2].visible"
|
|
|
+ v-if="columns[3].visible"
|
|
|
:show-overflow-tooltip="true"
|
|
|
/>
|
|
|
<el-table-column
|
|
@@ -266,7 +298,7 @@
|
|
|
align="center"
|
|
|
key="deptName"
|
|
|
prop="deptName"
|
|
|
- v-if="columns[3].visible"
|
|
|
+ v-if="columns[4].visible"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
label="打卡时间"
|
|
@@ -274,7 +306,7 @@
|
|
|
align="center"
|
|
|
key="recordTime"
|
|
|
prop="recordTime"
|
|
|
- v-if="columns[4].visible"
|
|
|
+ v-if="columns[5].visible"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
label="工时"
|
|
@@ -282,7 +314,7 @@
|
|
|
width="50"
|
|
|
key="duration"
|
|
|
prop="duration"
|
|
|
- v-if="columns[5].visible"
|
|
|
+ v-if="columns[6].visible"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
label="打卡月份"
|
|
@@ -290,7 +322,7 @@
|
|
|
width="50"
|
|
|
key="createMonth"
|
|
|
prop="createMonth"
|
|
|
- v-if="columns[6].visible"
|
|
|
+ v-if="columns[7].visible"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
label="初始时长"
|
|
@@ -298,7 +330,7 @@
|
|
|
width="50"
|
|
|
key="initDuration"
|
|
|
prop="initDuration"
|
|
|
- v-if="columns[7].visible"
|
|
|
+ v-if="columns[8].visible"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
label="考勤"
|
|
@@ -306,28 +338,49 @@
|
|
|
width="50"
|
|
|
key="checkDuration"
|
|
|
prop="checkDuration"
|
|
|
- v-if="columns[8].visible"
|
|
|
+ v-if="columns[9].visible"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
label="项目编号"
|
|
|
align="center"
|
|
|
key="projectNumber"
|
|
|
prop="projectNumber"
|
|
|
- v-if="columns[9].visible"
|
|
|
+ v-if="columns[10].visible"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
label="项目名称"
|
|
|
align="center"
|
|
|
key="projectName"
|
|
|
prop="projectName"
|
|
|
- v-if="columns[10].visible"
|
|
|
+ show-overflow-tooltip
|
|
|
+ v-if="columns[11].visible"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
+ label="项目上链"
|
|
|
+ align="center"
|
|
|
+ width="75"
|
|
|
+ key="projectTianheUrl"
|
|
|
+ prop="projectTianheUrl"
|
|
|
+ show-overflow-tooltip
|
|
|
+ v-if="columns[12].visible"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tag
|
|
|
+ effect="dark"
|
|
|
+ style="cursor: pointer"
|
|
|
+ @click="goto(scope.row.projectTianheUrl)"
|
|
|
+ v-show="scope.row.tianheType == 1"
|
|
|
+ >
|
|
|
+ 已上链
|
|
|
+ </el-tag>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
label="研发阶段"
|
|
|
align="center"
|
|
|
key="projectStatus"
|
|
|
prop="projectStatus"
|
|
|
- v-if="columns[11].visible"
|
|
|
+ v-if="columns[13].visible"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<dict-tag
|
|
@@ -341,16 +394,17 @@
|
|
|
align="center"
|
|
|
key="content"
|
|
|
prop="content"
|
|
|
- v-if="columns[12].visible"
|
|
|
+ v-if="columns[14].visible"
|
|
|
:show-overflow-tooltip="true"
|
|
|
/>
|
|
|
<!-- :show-overflow-tooltip="true" -->
|
|
|
<el-table-column
|
|
|
label="审核状态"
|
|
|
align="center"
|
|
|
+ width="75"
|
|
|
key="processStatus"
|
|
|
prop="processStatus"
|
|
|
- v-if="columns[13].visible"
|
|
|
+ v-if="columns[15].visible"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<dict-tag
|
|
@@ -364,7 +418,7 @@
|
|
|
align="center"
|
|
|
key="examineName"
|
|
|
prop="examineName"
|
|
|
- v-if="columns[14].visible"
|
|
|
+ v-if="columns[16].visible"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
label="审核时间"
|
|
@@ -372,12 +426,12 @@
|
|
|
align="center"
|
|
|
key="examineTime"
|
|
|
prop="examineTime"
|
|
|
- v-if="columns[15].visible"
|
|
|
+ v-if="columns[17].visible"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
label="附件"
|
|
|
align="center"
|
|
|
- width="70"
|
|
|
+ width="55"
|
|
|
class-name="small-padding fixed-width"
|
|
|
>
|
|
|
<template slot-scope="scope" v-if="scope.row.userId !== 1">
|
|
@@ -622,6 +676,7 @@ import {
|
|
|
updateUserRecord,
|
|
|
UserClockDetails,
|
|
|
updateUserClockDetails,
|
|
|
+ saveProjectStaffRecordTianhe,
|
|
|
} from "@/api/system/record";
|
|
|
import { deptTreeSelect } from "@/api/system/user";
|
|
|
import { getToken } from "@/utils/auth";
|
|
@@ -736,22 +791,24 @@ export default {
|
|
|
},
|
|
|
// 列信息
|
|
|
columns: [
|
|
|
- { key: 0, label: `员工工号`, visible: true },
|
|
|
- { key: 1, label: `员工姓名`, visible: true },
|
|
|
- { key: 2, label: `部门编号`, visible: true },
|
|
|
- { key: 3, label: `部门`, visible: true },
|
|
|
- { key: 4, label: `打卡时间`, visible: true },
|
|
|
- { key: 5, label: `工时`, visible: true },
|
|
|
- { key: 6, label: `打卡月份`, visible: true },
|
|
|
- { key: 7, label: `初始时长`, visible: true },
|
|
|
- { key: 8, label: `考勤`, visible: true },
|
|
|
- { key: 9, label: `项目编号`, visible: true },
|
|
|
- { key: 10, label: `项目名称`, visible: true },
|
|
|
- { key: 11, label: `创建任务`, visible: true },
|
|
|
- { key: 12, label: `日报内容`, visible: true },
|
|
|
- { key: 13, label: `审核状态`, visible: true },
|
|
|
- { key: 14, label: `审核人员`, visible: true },
|
|
|
- { key: 15, label: `审核时间`, visible: true },
|
|
|
+ { key: 0, label: `日志上链`, visible: true },
|
|
|
+ { key: 1, label: `员工工号`, visible: true },
|
|
|
+ { key: 2, label: `员工姓名`, visible: true },
|
|
|
+ { key: 3, label: `部门编号`, visible: true },
|
|
|
+ { key: 4, label: `部门`, visible: true },
|
|
|
+ { key: 5, label: `打卡时间`, visible: true },
|
|
|
+ { key: 6, label: `工时`, visible: true },
|
|
|
+ { key: 7, label: `打卡月份`, visible: true },
|
|
|
+ { key: 8, label: `初始时长`, visible: true },
|
|
|
+ { key: 9, label: `考勤`, visible: true },
|
|
|
+ { key: 10, label: `项目编号`, visible: true },
|
|
|
+ { key: 11, label: `项目名称`, visible: true },
|
|
|
+ { key: 12, label: `项目上链`, visible: true },
|
|
|
+ { key: 13, label: `创建任务`, visible: true },
|
|
|
+ { key: 14, label: `日报内容`, visible: true },
|
|
|
+ { key: 15, label: `审核状态`, visible: true },
|
|
|
+ { key: 16, label: `审核人员`, visible: true },
|
|
|
+ { key: 17, label: `审核时间`, visible: true },
|
|
|
],
|
|
|
};
|
|
|
},
|
|
@@ -839,6 +896,18 @@ export default {
|
|
|
this.srcList = row.annexUrl;
|
|
|
this.open = true;
|
|
|
},
|
|
|
+ /** 上链确权 */
|
|
|
+ chainUp() {
|
|
|
+ let data = {
|
|
|
+ id: this.ids.toString(),
|
|
|
+ };
|
|
|
+ this.$modal.loading("上链中...");
|
|
|
+ saveProjectStaffRecordTianhe(data).then((response) => {
|
|
|
+ this.$modal.closeLoading();
|
|
|
+ this.$modal.msgSuccess("操作成功");
|
|
|
+ this.getList();
|
|
|
+ });
|
|
|
+ },
|
|
|
/** 批量审核 */
|
|
|
toExamine() {
|
|
|
// if (!this.examineTime) {
|
|
@@ -1098,6 +1167,9 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ goto(url) {
|
|
|
+ window.open(url);
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|