审批过程中审批意见丢失bug修改
parent
8af77c02ea
commit
509f226d31
|
@ -0,0 +1,91 @@
|
|||
<template>
|
||||
<el-dialog
|
||||
v-if="visible"
|
||||
:visible.sync="visible"
|
||||
:before-close="handleClose"
|
||||
:append-to-body="true"
|
||||
title="审批流程"
|
||||
width="60%">
|
||||
<el-steps :space="200" :active="+step" direction="vertical" finish-status="success">
|
||||
<el-step v-for="item in list" :key="item.INDEX" :value="item.INDEX" :title="item.INDEX">
|
||||
<template slot="description">
|
||||
<el-card class="box-card" style="width: 900px;">
|
||||
<div slot="header" class="clearfix">
|
||||
<span>审批节点</span>
|
||||
</div>
|
||||
<div>
|
||||
<el-row>
|
||||
<el-col>
|
||||
审批人:{{ item.APPOINT_DEPARTMENT_NAME }}
|
||||
</el-col>
|
||||
<el-col>
|
||||
审批状态:{{ item.APPOINT_STATUS === '1' ? '同意' : '不同意' }}
|
||||
</el-col>
|
||||
<el-col>
|
||||
审批时间:{{ item.APPOINT_USER_NAME }}
|
||||
</el-col>
|
||||
<el-col>
|
||||
审批意见:{{ item.APPOINT_OPINION }}
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
</el-card>
|
||||
</template>
|
||||
</el-step>
|
||||
</el-steps>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="closeWindow">取 消</el-button>
|
||||
<el-button :loading="loading" type="primary" @click="save">确 定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
||||
import { requestFN } from '@/utils/request'
|
||||
|
||||
export default {
|
||||
props: {
|
||||
corpInfo: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
visible: false,
|
||||
loading: false,
|
||||
list: [],
|
||||
form: {
|
||||
XGF_USER_ID: ''
|
||||
},
|
||||
step: 0
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
init(e) {
|
||||
this.visible = true
|
||||
this.loading = false
|
||||
this.form.XGF_USER_ID = e.XGF_USER_ID
|
||||
this.getInfo()
|
||||
},
|
||||
getInfo() {
|
||||
requestFN(
|
||||
'/xgf/user/getApproveInfo', this.form
|
||||
).then((data) => {
|
||||
this.list = data.flow.info
|
||||
this.step = data.flow.STEP
|
||||
}).catch((e) => {
|
||||
console.log(e)
|
||||
})
|
||||
},
|
||||
handleClose() {
|
||||
this.visible = false
|
||||
this.$emit('finish', '')
|
||||
},
|
||||
closeWindow() {
|
||||
this.handleClose()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
|
@ -43,6 +43,7 @@
|
|||
<template slot-scope="{row}">
|
||||
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleShow(row)">详情</el-button>
|
||||
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleFlowShow(row)">流程详情</el-button>
|
||||
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleFlowStepShow(row)">审批流程</el-button>
|
||||
<el-button v-if="row.power_flag === '1'" type="primary" icon="el-icon-s-claim" size="mini" @click="approve([row])">审批</el-button>
|
||||
<el-button v-if="false" type="success" icon="el-icon-edit" size="mini" @click="getUserInfo(row)">电子合格证</el-button>
|
||||
</template>
|
||||
|
@ -57,7 +58,8 @@
|
|||
<user ref="userInfo" append-to-body/>
|
||||
<user-info ref="userInfos" append-to-body/>
|
||||
<send-util ref="sendUtil" append-to-body @refresh="getList"/>
|
||||
<flow-info-list ref="flowInfo" :corp-info="corpInfo" @finish="handleClose"/>
|
||||
<flow-info-list ref="flowInfo"/>
|
||||
<flow-step ref="flowStep" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -71,9 +73,10 @@ import user from './user.vue'
|
|||
import SendUtil from './sendUtil.vue'
|
||||
import UserInfo from '../../flowApply/components/userInfo.vue'
|
||||
import FlowInfoList from './flowInfoList.vue'
|
||||
import FlowStep from './flowStep.vue'
|
||||
|
||||
export default {
|
||||
components: { FlowInfoList, UserInfo, SendUtil, Pagination, apply, vueQr, user },
|
||||
components: { FlowStep, FlowInfoList, UserInfo, SendUtil, Pagination, apply, vueQr, user },
|
||||
directives: { waves },
|
||||
data() {
|
||||
return {
|
||||
|
@ -168,6 +171,9 @@ export default {
|
|||
handleFlowShow(row) {
|
||||
this.$refs.flowInfo.init(row)
|
||||
},
|
||||
handleFlowStepShow(row) {
|
||||
this.$refs.flowStep.init(row)
|
||||
},
|
||||
approve(row) {
|
||||
this.$refs.sendUtil.init(row)
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue