|
@@ -2,8 +2,8 @@
|
|
|
<div class="page">
|
|
|
<el-form size="small" :inline="true" class="query-form" ref="searchForm" :model="searchForm" @keyup.enter.native="refreshList()" @submit.native.prevent>
|
|
|
<!-- 搜索框-->
|
|
|
- <el-form-item prop="rosterBaseDTO.name">
|
|
|
- <el-input size="small" v-model="searchForm.rosterBaseDTO.name" placeholder="姓名" clearable></el-input>
|
|
|
+ <el-form-item prop="rosterId" label="姓名">
|
|
|
+ <RosterSelectForm :limit='1' :value="searchForm.rosterId" @getValue='(value) => {searchForm.rosterId=value}'></RosterSelectForm>
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="rosterBaseDTO.officeId">
|
|
|
<SelectTree
|
|
@@ -124,9 +124,21 @@
|
|
|
<vxe-column width="200" title="部门" field="soName"></vxe-column>
|
|
|
<vxe-column width="200" title="职位" field="jpName"></vxe-column>
|
|
|
<vxe-column width="200" title="手机号" field="rosterBaseDTO.mobile"></vxe-column>
|
|
|
- <vxe-column width="200" title="入职日期" field="rosterBaseDTO.onboardingDate"></vxe-column>
|
|
|
- <vxe-column width="200" title="最后工作日" field="lastWorkDate"></vxe-column>
|
|
|
- <vxe-column width="200" title="离职日期" field="dimissionDate"></vxe-column>
|
|
|
+ <vxe-column width="200" title="入职日期" field="rosterBaseDTO.onboardingDate">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{moment(scope.row.rosterBaseDTO.onboardingDate).format('YYYY-MM-DD')}}
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
+ <vxe-column width="200" title="最后工作日" field="lastWorkDate">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{moment(scope.row.lastWorkDate).format('YYYY-MM-DD')}}
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
+ <vxe-column width="200" title="离职日期" field="dimissionDate">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{moment(scope.row.dimissionDate).format('YYYY-MM-DD')}}
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
<vxe-column width="200" title="离职原因" field="changesDimissionReaDTOList">
|
|
|
<template slot-scope="scope">
|
|
|
{{getDimissionReaList(scope.row.changesDimissionReaDTOList)}}
|
|
@@ -191,12 +203,12 @@
|
|
|
:command="{method:'handover', row:scope.row}">
|
|
|
{{scope.row.handoverStatus === '1'?'发起工作交接审批':'修改工作交接审批'}}
|
|
|
</el-dropdown-item>
|
|
|
- <el-dropdown-item v-if="hasPermission('changes:dimission:view')&&
|
|
|
- scope.row.status === '2'&&
|
|
|
- (scope.row.handoverStatus === '3'||scope.row.handoverStatus === '4'||scope.row.handoverStatus === '5'||scope.row.handoverStatus === '6')"
|
|
|
- :command="{method:'handoverDetail', row:scope.row}">
|
|
|
- 工作交接审批结果
|
|
|
- </el-dropdown-item>
|
|
|
+<!-- <el-dropdown-item v-if="hasPermission('changes:dimission:view')&&-->
|
|
|
+<!-- scope.row.status === '2'&&-->
|
|
|
+<!-- (scope.row.handoverStatus === '3'||scope.row.handoverStatus === '4'||scope.row.handoverStatus === '5'||scope.row.handoverStatus === '6')"-->
|
|
|
+<!-- :command="{method:'handoverDetail', row:scope.row}">-->
|
|
|
+<!-- 工作交接审批结果-->
|
|
|
+<!-- </el-dropdown-item>-->
|
|
|
<el-dropdown-item v-if="hasPermission('changes:dimission:view')&&
|
|
|
scope.row.status === '2'&&
|
|
|
scope.row.handoverStatus === '3'"
|
|
@@ -211,11 +223,11 @@
|
|
|
:command="{method:'audit', row:scope.row}">
|
|
|
{{scope.row.vettingStatus === '1'?'发起离职审批':'修改离职审批'}}
|
|
|
</el-dropdown-item>
|
|
|
- <el-dropdown-item v-if="hasPermission('changes:dimission:view')&&
|
|
|
- (scope.row.vettingStatus === '4'||scope.row.vettingStatus === '5'||scope.row.vettingStatus === '6'||scope.row.vettingStatus === '7')"
|
|
|
- :command="{method:'auditDetail', row:scope.row}">
|
|
|
- 离职审批结果
|
|
|
- </el-dropdown-item>
|
|
|
+<!-- <el-dropdown-item v-if="hasPermission('changes:dimission:view')&&-->
|
|
|
+<!-- (scope.row.vettingStatus === '4'||scope.row.vettingStatus === '5'||scope.row.vettingStatus === '6'||scope.row.vettingStatus === '7')"-->
|
|
|
+<!-- :command="{method:'auditDetail', row:scope.row}">-->
|
|
|
+<!-- 离职审批结果-->
|
|
|
+<!-- </el-dropdown-item>-->
|
|
|
<el-dropdown-item v-if="hasPermission('changes:dimission:view')&&
|
|
|
(scope.row.vettingStatus === '4')"
|
|
|
:command="{method:'auditReback', row:scope.row}">
|
|
@@ -252,11 +264,13 @@
|
|
|
import ProcessService from '@/api/flowable/ProcessService'
|
|
|
import DimissionHandoverService from '@/api/changes/dimission/DimissionHandoverService'
|
|
|
import SelectTree from '@/components/treeSelect/treeSelect.vue'
|
|
|
+ import RosterSelectForm from '@/views/common/RosterSelectForm'
|
|
|
import pick from 'lodash.pick'
|
|
|
export default {
|
|
|
data () {
|
|
|
return {
|
|
|
searchForm: {
|
|
|
+ rosterId: '',
|
|
|
rosterBaseDTO: {
|
|
|
name: '',
|
|
|
officeId: '',
|
|
@@ -295,7 +309,8 @@
|
|
|
components: {
|
|
|
DimissionForm,
|
|
|
DimissionHandoverFormDialog,
|
|
|
- SelectTree
|
|
|
+ SelectTree,
|
|
|
+ RosterSelectForm
|
|
|
},
|
|
|
activated () {
|
|
|
this.refreshList()
|
|
@@ -365,7 +380,11 @@
|
|
|
// this.$refs.dimissionHandoverFormDialog.init('handover', id)
|
|
|
// 读取流程表单
|
|
|
let title = `发起流程【离职归档交接审批】`
|
|
|
- let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了 [离职归档交接审批]`
|
|
|
+ let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了 [\`` + row.rosterBaseDTO.name + `\`的离职归档交接审批]`
|
|
|
+ let status = 'startAndHold'
|
|
|
+ if (row.handoverStatus === '5' || row.handoverStatus === '6') {
|
|
|
+ status = 'startAndClose'
|
|
|
+ }
|
|
|
this.taskService.getTaskDef({ procDefId: this.processDefinitionId,
|
|
|
businessId: row.id,
|
|
|
businessTable: 'changes_dimission'}).then((data) => {
|
|
@@ -381,7 +400,7 @@
|
|
|
businessTable: 'changes_dimission',
|
|
|
businessId: row.id,
|
|
|
isShow: 'false',
|
|
|
- status: 'startAndHold',
|
|
|
+ status: status,
|
|
|
routePath: '/changes/dimission/DimissionList'
|
|
|
}
|
|
|
})
|
|
@@ -429,7 +448,11 @@
|
|
|
audit (row) {
|
|
|
// 读取流程表单
|
|
|
let title = `发起流程【离职审批】`
|
|
|
- let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了 [离职审批]`
|
|
|
+ let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了 [\`` + row.rosterBaseDTO.name + `\`的离职审批]`
|
|
|
+ let status = 'startAndHold'
|
|
|
+ if (row.vettingStatus === '5' || row.vettingStatus === '7') {
|
|
|
+ status = 'startAndClose'
|
|
|
+ }
|
|
|
this.taskService.getTaskDef({ procDefId: this.processDefinitionAuditId,
|
|
|
businessId: row.id,
|
|
|
businessTable: 'changes_dimission_audit'}).then((data) => {
|
|
@@ -445,7 +468,7 @@
|
|
|
businessTable: 'changes_dimission_audit',
|
|
|
businessId: row.id,
|
|
|
isShow: 'false',
|
|
|
- status: 'startAndHold',
|
|
|
+ status: status,
|
|
|
routePath: '/changes/dimission/DimissionList'
|
|
|
}
|
|
|
})
|