youhua
This commit is contained in:
parent
5dcb5dfc03
commit
cfd345b2c8
@ -1,13 +1,14 @@
|
||||
<!-- -->
|
||||
<template>
|
||||
<div>
|
||||
<el-button size="mini" v-if="!info" @click="handleJieguo" type="primary">结果值录入</el-button>
|
||||
<el-button size="mini" v-if="!info && formList.resultInput" :disabled='formList.resultInput===1' @click="handleJieguo" type="primary">结果值录入</el-button>
|
||||
<el-button size="mini" v-if="!info" @click="handlePingfen" type="primary">开始评分</el-button>
|
||||
<el-button size="mini" v-if="!info" @click="handleZhiding" type="primary">制定目标</el-button>
|
||||
<el-button size="mini" v-if="!info" @click="handleTongyi" type="primary">同 意</el-button>
|
||||
<el-button size="mini" v-if="!info" @click="handleBohui" type="primary">驳 回</el-button>
|
||||
<el-button size="mini" v-else @click="handleJump" type="primary" plain>跳过</el-button>
|
||||
<el-button size="mini" @click="handleZhuanjiao" type="primary">转 交</el-button>
|
||||
<el-button size="mini" v-if="info" @click="handleCuiban" type="warning" plain>催办</el-button>
|
||||
<el-button size="mini" v-if="info" @click="handleJump" type="primary" plain>跳过</el-button>
|
||||
<el-button size="mini" @click="handleZhuanjiao" type="primary" plain>转 交</el-button>
|
||||
<getPersonnel @cb='cb' v-if="isShowPersonnel" :isShow.sync='isShowPersonnel' :len='1'/>
|
||||
<!-- 驳回 -->
|
||||
<popup-right
|
||||
@ -108,6 +109,36 @@ export default {
|
||||
this.ruleForm = {}
|
||||
this.bohui = true
|
||||
},
|
||||
// 催办
|
||||
handleCuiban () {
|
||||
if (!this.info) return
|
||||
console.log('item: ', this.info)
|
||||
this.$confirm('确认对该节点处理人进行催办?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(async () => {
|
||||
const obj = {status: 3, menuName: '催办了'}
|
||||
if (this.info) obj.flowRecordId = this.info.flowRecordId
|
||||
const params = Object.assign({}, this.form, {resultRecordId: this.$route.query.id || ''}, obj)
|
||||
let res = await apiSaveapproval(params)
|
||||
if (res.code !== 200) {
|
||||
this.$message.error(res.msg)
|
||||
return
|
||||
}
|
||||
this.form = {}
|
||||
this.$message({
|
||||
message: res.msg,
|
||||
type: 'success'
|
||||
})
|
||||
history.go(0)
|
||||
}).catch(() => {
|
||||
this.$message({
|
||||
type: 'info',
|
||||
message: '取消催办'
|
||||
})
|
||||
})
|
||||
},
|
||||
// 跳过
|
||||
handleJump () {
|
||||
if (!this.info) return
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user