修改流程
This commit is contained in:
@@ -24,6 +24,9 @@
|
||||
<a-radio value="3" v-if="issue">
|
||||
{{$t('inquiry')}}
|
||||
</a-radio>
|
||||
<a-radio value="4" v-if="isSendBack">
|
||||
{{$t('sendBack')}}
|
||||
</a-radio>
|
||||
</a-radio-group>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
@@ -106,6 +109,10 @@
|
||||
title: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
isSendBack:{
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
components: {
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
v-if="isDisplay"
|
||||
isApprovalOpinion
|
||||
:title="titleName"
|
||||
:isSendBack="isSendBackOne"
|
||||
ref="examineInformationRef"
|
||||
:url="url"/>
|
||||
<!-- @terminationProcess="terminationProcess"-->
|
||||
@@ -145,6 +146,11 @@
|
||||
return false
|
||||
}
|
||||
return true
|
||||
},
|
||||
isSendBackOne() {
|
||||
if (this.$route.query.taskDefinitionKey == 'zrrqr') {
|
||||
return true
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -183,14 +189,14 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
rejectCauseAdd(rejectCause,ids) {
|
||||
rejectCauseAdd(rejectCause, ids) {
|
||||
let rejectTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
|
||||
let query = {
|
||||
rejectUserId:this.userInfo().id,
|
||||
rejectTime:rejectTime,
|
||||
rejectCause:rejectCause,
|
||||
projectLawsInventoryId:ids,
|
||||
rejectType:'1',
|
||||
rejectUserId: this.userInfo().id,
|
||||
rejectTime: rejectTime,
|
||||
rejectCause: rejectCause,
|
||||
projectLawsInventoryId: ids,
|
||||
rejectType: '1'
|
||||
}
|
||||
postAction('/project/projectLawsInventoryRejectCauseEO/add', query).then((res) => {
|
||||
|
||||
@@ -198,8 +204,8 @@
|
||||
},
|
||||
completeTask(value, handlingTime) {
|
||||
let json = Object.assign(this.queryBy, { handlingTime: handlingTime }, value)
|
||||
if (json.flag == '1'){
|
||||
this.rejectCauseAdd(value.approvalOpinion,this.queryBy.id)
|
||||
if (json.flag == '1') {
|
||||
this.rejectCauseAdd(value.approvalOpinion, this.queryBy.id)
|
||||
}
|
||||
Object.keys(json).forEach(res => {
|
||||
if (json[res] && typeof json[res] == 'string') {
|
||||
@@ -269,7 +275,7 @@
|
||||
}
|
||||
postAction('/workFlow/startProcess', query).then((res) => {
|
||||
if (res.success) {
|
||||
this.completeTaskDesign(value, res.result,true)
|
||||
this.completeTaskDesign(value, res.result, true)
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -277,7 +283,7 @@
|
||||
getAction('/workFlow/deleteProcessInstanceByTaskId', { taskId: taskId }).then((res) => {
|
||||
})
|
||||
},
|
||||
completeTaskDesign(value, taskId,isTrue) {
|
||||
completeTaskDesign(value, taskId, isTrue) {
|
||||
value.reviewResult = 'launch'
|
||||
let operatorTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
|
||||
value.operatorTime = operatorTime
|
||||
@@ -302,7 +308,7 @@
|
||||
// this.$router.push({
|
||||
// path: '/ProcessCenter'
|
||||
// })
|
||||
}else{
|
||||
} else {
|
||||
if (isTrue) {
|
||||
this.deleteProcessInstanceByTask(taskId)
|
||||
}
|
||||
|
||||
+3
@@ -27,6 +27,9 @@
|
||||
<a-radio value="3" v-if="taskDefinitionKey == 'zrrjsrw'">
|
||||
{{$t('inquiry')}}
|
||||
</a-radio>
|
||||
<a-radio value="4" v-if="taskDefinitionKey == 'zrrqr'">
|
||||
{{$t('sendBack')}}
|
||||
</a-radio>
|
||||
</a-radio-group>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user