审批过程中审批意见丢失bug修改

2024年2月1日V1.0.53.2
liujun 2024-01-29 14:51:43 +08:00
parent 8af77c02ea
commit 509f226d31
2 changed files with 99 additions and 2 deletions

View File

@ -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>

View File

@ -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)
},