1.修改三期优化点

This commit is contained in:
sunFlower
2022-09-27 16:24:32 +08:00
parent 3e4f20b63e
commit c19e32410e
5 changed files with 29 additions and 11 deletions
+1
View File
@@ -1311,4 +1311,5 @@ module.exports = {
hasBeenExport:'Has been export', hasBeenExport:'Has been export',
firstLevelDirectory:'First level directory', firstLevelDirectory:'First level directory',
deselectAll:'Deselect All', deselectAll:'Deselect All',
classification:'Classification',
} }
+1
View File
@@ -1412,4 +1412,5 @@ module.exports = {
hasBeenExport:'已导出', hasBeenExport:'已导出',
firstLevelDirectory:'一级目录', firstLevelDirectory:'一级目录',
deselectAll:'取消全选', deselectAll:'取消全选',
classification:'分类',
} }
@@ -24,6 +24,9 @@
<a-radio value="3" v-if="issue"> <a-radio value="3" v-if="issue">
{{$t('inquiry')}} {{$t('inquiry')}}
</a-radio> </a-radio>
<a-radio value="4" v-if="isSendBack">
{{$t('sendBack')}}
</a-radio>
</a-radio-group> </a-radio-group>
</a-form-model-item> </a-form-model-item>
</div> </div>
@@ -106,6 +109,10 @@
title: { title: {
type: String, type: String,
default: '' default: ''
},
isSendBack:{
type: Boolean,
default: false
} }
}, },
components: { components: {
@@ -32,6 +32,7 @@
isApprovalOpinion isApprovalOpinion
:title="titleName" :title="titleName"
ref="examineInformationRef" ref="examineInformationRef"
:isSendBack="isSendBackOne"
:url="url"/> :url="url"/>
<!-- @terminationProcess="terminationProcess"--> <!-- @terminationProcess="terminationProcess"-->
<footerProcess <footerProcess
@@ -145,6 +146,11 @@
return false return false
} }
return true return true
},
isSendBackOne() {
if (this.$route.query.taskDefinitionKey == 'zrrqr') {
return true
}
} }
}, },
methods: { methods: {
@@ -183,14 +189,14 @@
} }
}) })
}, },
rejectCauseAdd(rejectCause,ids) { rejectCauseAdd(rejectCause, ids) {
let rejectTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss') let rejectTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
let query = { let query = {
rejectUserId:this.userInfo().id, rejectUserId: this.userInfo().id,
rejectTime:rejectTime, rejectTime: rejectTime,
rejectCause:rejectCause, rejectCause: rejectCause,
projectLawsInventoryId:ids, projectLawsInventoryId: ids,
rejectType:'1', rejectType: '1'
} }
postAction('/project/projectLawsInventoryRejectCauseEO/add', query).then((res) => { postAction('/project/projectLawsInventoryRejectCauseEO/add', query).then((res) => {
@@ -198,8 +204,8 @@
}, },
completeTask(value, handlingTime) { completeTask(value, handlingTime) {
let json = Object.assign(this.queryBy, { handlingTime: handlingTime }, value) let json = Object.assign(this.queryBy, { handlingTime: handlingTime }, value)
if (json.flag == '1'){ if (json.flag == '1') {
this.rejectCauseAdd(value.approvalOpinion,this.queryBy.id) this.rejectCauseAdd(value.approvalOpinion, this.queryBy.id)
} }
Object.keys(json).forEach(res => { Object.keys(json).forEach(res => {
if (json[res] && typeof json[res] == 'string') { if (json[res] && typeof json[res] == 'string') {
@@ -269,7 +275,7 @@
} }
postAction('/workFlow/startProcess', query).then((res) => { postAction('/workFlow/startProcess', query).then((res) => {
if (res.success) { 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) => { getAction('/workFlow/deleteProcessInstanceByTaskId', { taskId: taskId }).then((res) => {
}) })
}, },
completeTaskDesign(value, taskId,isTrue) { completeTaskDesign(value, taskId, isTrue) {
value.reviewResult = 'launch' value.reviewResult = 'launch'
let operatorTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss') let operatorTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
value.operatorTime = operatorTime value.operatorTime = operatorTime
@@ -302,7 +308,7 @@
// this.$router.push({ // this.$router.push({
// path: '/ProcessCenter' // path: '/ProcessCenter'
// }) // })
}else{ } else {
if (isTrue) { if (isTrue) {
this.deleteProcessInstanceByTask(taskId) this.deleteProcessInstanceByTask(taskId)
} }
@@ -27,6 +27,9 @@
<a-radio value="3" v-if="taskDefinitionKey == 'zrrjsrw'"> <a-radio value="3" v-if="taskDefinitionKey == 'zrrjsrw'">
{{$t('inquiry')}} {{$t('inquiry')}}
</a-radio> </a-radio>
<a-radio value="4" v-if="taskDefinitionKey == 'zrrqr'">
{{$t('sendBack')}}
</a-radio>
</a-radio-group> </a-radio-group>
</a-form-model-item> </a-form-model-item>
</div> </div>