|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<section>
|
|
<section>
|
|
- <div class="sidebars" ref="sidebars" style="width: 200px;display: block;background: #fff">
|
|
|
|
|
|
+ <div class="sidebars" ref="sidebars" style="width: 200px;display: block;background: #fff" v-if="!isDingding">
|
|
<h3><i class="iconfont firerock-iconbaoxiao" style="padding-right: 10px"></i>请假管理</h3>
|
|
<h3><i class="iconfont firerock-iconbaoxiao" style="padding-right: 10px"></i>请假管理</h3>
|
|
<el-divider ></el-divider>
|
|
<el-divider ></el-divider>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
@@ -62,7 +62,7 @@
|
|
</div> -->
|
|
</div> -->
|
|
<!-- 内容主体区域 -->
|
|
<!-- 内容主体区域 -->
|
|
<div class="contents">
|
|
<div class="contents">
|
|
- <div v-if="!displayTable" class="headine" ref="headine">
|
|
|
|
|
|
+ <div v-if="!displayTable && !isDingding" class="headine" ref="headine">
|
|
<h3 ref="headHe" style="padding-left: 220px">请假填报</h3>
|
|
<h3 ref="headHe" style="padding-left: 220px">请假填报</h3>
|
|
<!-- <p style="float: right;margin-right: 25px;"><el-button type="primary" @click="submits('addFormRules')" size="mini">提交</el-button></p> -->
|
|
<!-- <p style="float: right;margin-right: 25px;"><el-button type="primary" @click="submits('addFormRules')" size="mini">提交</el-button></p> -->
|
|
</div>
|
|
</div>
|
|
@@ -86,9 +86,9 @@
|
|
</template>
|
|
</template>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<!-- 请假人 -->
|
|
<!-- 请假人 -->
|
|
- <el-form-item label="请假人" prop="ownerId" style="width: 300px" v-show="false">
|
|
|
|
|
|
+ <el-form-item label="请假人" prop="ownerId" style="width: 300px">
|
|
<!--普通员工只能自己填报自己的 -->
|
|
<!--普通员工只能自己填报自己的 -->
|
|
- <el-select v-model="addForm.ownerId" @change="txselts(addForm.leaveType,addForm.ownerId)" placeholder="请选择请假人" style="width: 240px" :disabled="!permissions.leaveFil" filterable="true">
|
|
|
|
|
|
+ <el-select v-model="addForm.ownerId" @change="txselts(addForm.leaveType,addForm.ownerId)" placeholder="请选择请假人" style="width: 240px" :disabled="true" filterable="true">
|
|
<span v-for="(item, index) in users" :key="index">
|
|
<span v-for="(item, index) in users" :key="index">
|
|
<el-option :label="item.name" :value="item.id"></el-option>
|
|
<el-option :label="item.name" :value="item.id"></el-option>
|
|
</span>
|
|
</span>
|
|
@@ -152,7 +152,7 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- 下面部分 -->
|
|
<!-- 下面部分 -->
|
|
- <div v-if="displayTable && apk == false" class="tops">
|
|
|
|
|
|
+ <div v-if="displayTable && apk == false" class="tops" :style="isDingding ? 'padding-left:20px' : ''">
|
|
<!-- 公共 -->
|
|
<!-- 公共 -->
|
|
<div class="ctons">
|
|
<div class="ctons">
|
|
<div class="flex">
|
|
<div class="flex">
|
|
@@ -235,7 +235,7 @@
|
|
</el-popover>
|
|
</el-popover>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="操作" width="180" fixed="right" v-if="isAuditList">
|
|
|
|
|
|
+ <el-table-column label="操作" width="180" fixed="right" v-if="isAuditList && !isDingding">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>
|
|
<div>
|
|
<el-button icon="el-icon-check" circle size="mini" @click.stop.native="approve(scope.row)"></el-button>
|
|
<el-button icon="el-icon-check" circle size="mini" @click.stop.native="approve(scope.row)"></el-button>
|
|
@@ -243,7 +243,7 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="操作" width="180" fixed="right" v-if="!isAuditList">
|
|
|
|
|
|
+ <el-table-column label="操作" width="180" fixed="right" v-if="!isAuditList && !isDingding">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div v-if="(scope.row.status != 0 && scope.row.ownerId == user.id) || permissions.leaveAll">
|
|
<div v-if="(scope.row.status != 0 && scope.row.ownerId == user.id) || permissions.leaveAll">
|
|
<el-button icon="el-icon-delete" circle size="mini" @click.stop.native="deletes(scope.row)" ></el-button>
|
|
<el-button icon="el-icon-delete" circle size="mini" @click.stop.native="deletes(scope.row)" ></el-button>
|
|
@@ -362,11 +362,12 @@
|
|
<span v-for="(item, index) in dataArray" :key="item.seq" >
|
|
<span v-for="(item, index) in dataArray" :key="item.seq" >
|
|
|
|
|
|
<el-button type="primary" v-if="item.auditorType == 1" @click="editNodeDialog(index, item)">{{item.auditDeptName}}</el-button>
|
|
<el-button type="primary" v-if="item.auditorType == 1" @click="editNodeDialog(index, item)">{{item.auditDeptName}}</el-button>
|
|
- <el-button type="primary" v-if="item.auditorType == 0" >项目负责人</el-button>
|
|
|
|
<el-button type="primary" v-if="item.auditorType == 2" @click="editNodeDialog(index, item)">{{item.userName}}</el-button>
|
|
<el-button type="primary" v-if="item.auditorType == 2" @click="editNodeDialog(index, item)">{{item.userName}}</el-button>
|
|
|
|
+ <template v-if="item.auditorType == 1 || item.auditorType == 2">
|
|
<icon class="iconfont firerock-iconright"></icon>
|
|
<icon class="iconfont firerock-iconright"></icon>
|
|
<icon class="iconfont firerock-iconInsertLine addNode" @click="showNodeDialog(index+1)"></icon>
|
|
<icon class="iconfont firerock-iconInsertLine addNode" @click="showNodeDialog(index+1)"></icon>
|
|
<icon class="iconfont firerock-iconright"></icon>
|
|
<icon class="iconfont firerock-iconright"></icon>
|
|
|
|
+ </template>
|
|
</span>
|
|
</span>
|
|
|
|
|
|
<!--结束点 -->
|
|
<!--结束点 -->
|
|
@@ -709,7 +710,8 @@ export default {
|
|
txselnum: 0,
|
|
txselnum: 0,
|
|
|
|
|
|
approverList: [],
|
|
approverList: [],
|
|
- mustApprover: ''
|
|
|
|
|
|
+ mustApprover: '',
|
|
|
|
+ isDingding: 0
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
@@ -721,13 +723,22 @@ export default {
|
|
window.onresize = function temp() {
|
|
window.onresize = function temp() {
|
|
that.tableHeight = window.innerHeight - 195;
|
|
that.tableHeight = window.innerHeight - 195;
|
|
};
|
|
};
|
|
|
|
+ // console.log('user',this.user);
|
|
|
|
+ this.isDingding = this.user.timeType.syncDingding
|
|
},
|
|
},
|
|
|
|
|
|
mounted() {
|
|
mounted() {
|
|
- this.getUsers() // 获取人员信息
|
|
|
|
|
|
+ if(this.isDingding){
|
|
|
|
+ this.bills(false,2)
|
|
|
|
+ this.staffs(2,['2'])
|
|
|
|
+ this.getUsers()
|
|
|
|
+ }else{
|
|
|
|
+ this.getUsers() // 获取人员信息
|
|
this.getDepartment();
|
|
this.getDepartment();
|
|
this.getAl();
|
|
this.getAl();
|
|
this.getApproverList()
|
|
this.getApproverList()
|
|
|
|
+ }
|
|
|
|
+
|
|
},
|
|
},
|
|
filters: {},
|
|
filters: {},
|
|
methods: {
|
|
methods: {
|
|
@@ -754,7 +765,6 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|
|
-
|
|
|
|
changeAltime(e){
|
|
changeAltime(e){
|
|
if(e == 0 && this.AlchangeP.length == 0){
|
|
if(e == 0 && this.AlchangeP.length == 0){
|
|
this.$message('请选择要批量设置的项')
|
|
this.$message('请选择要批量设置的项')
|
|
@@ -1077,7 +1087,6 @@ export default {
|
|
}
|
|
}
|
|
//只能自己填报自己的请假单
|
|
//只能自己填报自己的请假单
|
|
this.addForm.ownerId = this.user.id;
|
|
this.addForm.ownerId = this.user.id;
|
|
- this.ownerIds = this.user.id
|
|
|
|
this.addForm.status = 1;
|
|
this.addForm.status = 1;
|
|
this.addForm.tel = this.user.phone
|
|
this.addForm.tel = this.user.phone
|
|
} else {
|
|
} else {
|