外出办事,改成临时外出

This commit is contained in:
lSun 2025-01-03 15:30:58 +08:00
parent 02ad2dda9b
commit 796db0b3b0
8 changed files with 43 additions and 42 deletions

View File

@ -1,8 +1,8 @@
<template>
<div class="content">
<div class="content">
<div class="content-box">
<div class="title-box">
<div style="margin-left: 10px;font-size: 22px;font-weight: bold;">当月轮休外出办事异常情况</div>
<div style="margin-left: 10px;font-size: 22px;font-weight: bold;">当月轮休临时外出异常情况</div>
</div>
<div class="list-box">
<div class="listItem" style="background-color: #FFF7F1;" @click="toggleDialog(10)">
@ -25,7 +25,7 @@ import * as echarts from 'echarts';
import { getHomePageData } from '@/api/dashboard'
export default {
components: {
},
name: 'topOne',
props: {
@ -33,10 +33,10 @@ export default {
// required: true,
type: Object,
default:{
}
},
},
data() {
return {
@ -47,7 +47,7 @@ export default {
created() {
},
mounted() {
mounted() {
// this.getInitData()
},
methods: {
@ -57,7 +57,7 @@ export default {
}else if(v==11){
this.$emit('openDialog', { order: v, isExamine:'1'})
}
},
},
}
@ -103,7 +103,7 @@ export default {
}
}
}
</style>

View File

@ -36,8 +36,8 @@
>导出数据</el-button>
</el-form-item>
</el-form>
<el-table v-loading="loading" :data="tableData" ref="multipleTable" row-key="id" >
<el-table-column label="序号" align="center" width="80" type="index">
<template slot-scope="scope">
@ -56,7 +56,7 @@
<div v-else>{{ scope.row.errorRestCount}}</div>
</template>
</el-table-column>
<el-table-column label="外出办事未审批条数" align="center" prop="errorOutCount" sortable>
<el-table-column label="临时外出未审批条数" align="center" prop="errorOutCount" sortable>
<template slot-scope="scope">
<div v-if="scope.row.errorOutCount!=0"
@click="openRecord(scope.row,title2)" style="color: #02a7f0; cursor: pointer">
@ -65,9 +65,9 @@
<div v-else>{{ scope.row.errorOutCount}}</div>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
@ -126,7 +126,7 @@
<span v-if="scope.row.examineStatus==3">{{ '待审核' }}</span>
<span v-else>{{ }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200px">
<template slot-scope="scope">
<el-button
@ -138,7 +138,7 @@
</template>
</el-table-column>
</el-table>
<pagination
v-show="totalTwo>0"
:total="totalTwo"
@ -163,7 +163,7 @@
>
</el-input>
<!-- <el-input v-model="form.content" placeholder="请输入" maxlength="20"/> -->
</el-form-item>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm">发送</el-button>
@ -172,13 +172,13 @@
</el-dialog>
</div>
</template>
<script>
import { listExceptionFormError,getDetailExceptionRest,getDetailExceptionOut,exportExceptionError,examineRemind} from "@/api/exceptionHandle/errorForm";
import { downloadFile } from '@/utils/download'
// import { getEngineeringList } from "@/api/select";
import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import { listDept } from "@/api/system/dept";
import { getToken } from '@/utils/auth'
export default {
@ -186,7 +186,7 @@
dicts: ['sys_normal_disable','sys_voltage_level','sys_org_name','sys_pro_type','sys_pro_status',
'sys_yz_manage','sys_sg_manage','sys_jl_manage','sys_device_type'],
components: {
Treeselect
Treeselect
},
data() {
return {
@ -211,7 +211,7 @@
//
title: "",
title1: "轮休未审批记录",
title2: "外出办事未审批记录",
title2: "临时外出未审批记录",
titleExamine:'',
//
open: false,
@ -282,7 +282,7 @@
// //
// this.queryParams.attCurrentMonth = '';
// }
// },
// },
// watch: {
// //
@ -298,7 +298,7 @@
methods: {
disabledDate(time) {
const str=this.queryRecord.attCurrentMonth+'-01';
const str=this.queryRecord.attCurrentMonth+'-01';
//
var currentDate = new Date(str);
//
@ -334,7 +334,7 @@
return `${year}-${month}-${day} ${weekday}`; //
},
getDeptList(){
listDept().then(response => {
this.deptOptions = this.handleTree(response.data, "id");
@ -352,7 +352,7 @@
};
},
handleSelect(value, instanceId) {
handleSelect(value, instanceId) {
console.log('Selected:', value);
//
this.queryParams.orgName=value.orgName;
@ -405,7 +405,7 @@
this.queryRecord.attCurrentMonth = row.attCurrentMonth;
if(titleBoss=='轮休未审批记录'){
this.queryRecord.attStatis=1
}else if(titleBoss=='外出办事未审批记录'){
}else if(titleBoss=='临时外出未审批记录'){
this.queryRecord.attStatis=2;
}
this.showRecord = true;
@ -422,10 +422,10 @@
this.totalTwo = response.total;
this.loadingTwo = false;
});
}else if(this.title=='外出办事未审批记录'){
}else if(this.title=='临时外出未审批记录'){
getDetailExceptionOut(this.addDateRange(this.queryRecord, this.dateRange)).then(response => {
this.tableDataRecord = response.rows;
this.leaveType="外出办事"
this.leaveType="临时外出"
this.totalTwo = response.total;
this.loadingTwo = false;
});
@ -452,7 +452,7 @@
},
/** 提交按钮 */
submitForm() {
submitForm() {
this.form.orgId = this.queryRecord.orgId;
this.form.title = this.leaveType+'异常数据';
this.form.leaveType=this.leaveType
@ -479,14 +479,14 @@
this.form = {};
this.resetForm("form");
},
/** 导出按钮操作 */
handleExport() {
exportExceptionError(this.queryParams).then(res => {
downloadFile({ fileName: `轮休外出办事异常报表_${new Date().getTime()}.xlsx`, fileData: res, fileType: 'application/vnd.ms-excel;charset=utf-8' })
downloadFile({ fileName: `轮休临时外出异常报表_${new Date().getTime()}.xlsx`, fileData: res, fileType: 'application/vnd.ms-excel;charset=utf-8' })
})
},
}
};
</script>
@ -513,4 +513,4 @@
display: none;
}
}
</style>
</style>

View File

@ -319,7 +319,7 @@ export default {
queryParams: {
pageNum: 1,
pageSize: 10,
leaveType:"外出办事",
leaveType:"临时外出",
leaveDate: undefined,
examineStatus: undefined
},
@ -445,7 +445,7 @@ export default {
leaveEndDate: undefined,
leaveEndInterval:undefined,
leaveDuration:undefined,
leaveType:"外出办事",
leaveType:"临时外出",
examineStatus:"0",
isAgree: "0",
hostUserId:[],

View File

@ -273,7 +273,7 @@ export default {
queryParams: {
pageNum: 1,
pageSize: 10,
leaveType:"外出办事",
leaveType:"临时外出",
userName: undefined,
orgName: undefined,
},
@ -419,7 +419,7 @@ export default {
let param = {
id:this.form.id,
examineStatus:'1',
leaveType:"外出办事",
leaveType:"临时外出",
examineOpinion:this.form.examineOpinion,
orgName: name
}
@ -440,7 +440,7 @@ export default {
let param = {
id:this.form.id,
examineStatus:'2',
leaveType:"外出办事",
leaveType:"临时外出",
examineOpinion:this.form.examineOpinion,
orgName:name
}

View File

@ -476,7 +476,7 @@ export default {
queryParams: {
pageNum: 1,
pageSize: 10,
leaveType:"外出办事",
leaveType:"临时外出",
leaveDate: undefined,
examineStatus: ''
},

View File

@ -49,7 +49,7 @@
</el-table-column>
<el-table-column label="临时外出人数" align="center" width="180">
<template slot-scope="scope">
<span class="clickable" @click="handleClick('外出办事',scope.row)" style="color: blue; cursor: pointer;">
<span class="clickable" @click="handleClick('临时外出',scope.row)" style="color: blue; cursor: pointer;">
{{ scope.row.outNum }}
</span>
</template>
@ -123,7 +123,7 @@
<el-table-column label="开始时间" align="center" prop="startDate" width="160"/>
<el-table-column label="结束时间" align="center" prop="endDate" width="160"/>
<el-table-column label="时长(天)" align="center" prop="leaveDuration" :show-overflow-tooltip="true" width="100"/>
<el-table-column label="审批状态" align="center" prop="examineStatus" width="100" v-if="tableDialogList.some(row => row.type === '轮休' || row.type === '外出办事')">
<el-table-column label="审批状态" align="center" prop="examineStatus" width="100" v-if="tableDialogList.some(row => row.type === '轮休' || row.type === '临时外出')">
<template slot-scope="scope">
<span v-if="scope.row.examineStatus === '0'">待审核</span>
<span v-else-if="scope.row.examineStatus === '1'">已通过</span>
@ -586,7 +586,7 @@ export default {
this.open = true;
if (type==='轮休'){
this.title = "轮休人员";
} else if (type==='外出办事'){
} else if (type==='临时外出'){
this.title = "临时外出人员";
} else if (type==='出差报备'){
this.title = "出差人员";

View File

@ -475,6 +475,7 @@ export default {
this.title = "工作时间外出次数";
this.queryRecordOutCount.userId = row.userId;
this.queryRecordOutCount.attCurrentDay = row.attCurrentDay;
this.queryRecordOutCount.attCurrentMonth = row.attCurrentMonth;
this.showOutCount = true;
this.getOutCountList();
},

View File

@ -117,7 +117,7 @@
updateStatus(param).then(response => {
if(row.type.indexOf('月异常考勤统计')>-1){//month
this.$router.replace({ path: '/attendanceReport/monthlyError',query:{param:value}})
}else if(row.type.indexOf('月轮休外出办事异常统计')>-1){//month
}else if(row.type.indexOf('月轮休临时外出异常统计')>-1){//month
this.$router.replace({ path: '/exceptionHandle/errorData',query:{param:value} })
}else if(row.type.indexOf('项目部角色未配置')>-1){//
this.$router.replace({ path: '/process/pro/rolesRemind',query:{param:value}})