修改提交流程的传参
This commit is contained in:
@@ -4,8 +4,10 @@
|
||||
:title="'工程接口人确认符合性要求'"
|
||||
is-termination-process
|
||||
is-submit
|
||||
:isSendBack="isSendBack"
|
||||
@terminationProcess="terminationProcess"
|
||||
@submit="submit"
|
||||
@sendBack="sendBack"
|
||||
/>
|
||||
<a-spin tip="加载中..." :spinning="loading">
|
||||
<div class="detail-box" v-if="!loading">
|
||||
@@ -25,7 +27,7 @@
|
||||
:url="url
|
||||
"/>
|
||||
<examineInformation
|
||||
isFlag
|
||||
:isFlag="isFlag"
|
||||
isViewUploadedFiles
|
||||
isApprovalOpinion
|
||||
ref="examineInformationRef"
|
||||
@@ -164,16 +166,36 @@
|
||||
_this.queryProjectLawsInventoryInfo()
|
||||
})
|
||||
},
|
||||
computed: {
|
||||
isSendBack() {
|
||||
if (this.$route.query.taskDefinitionKey == 'zrrjsrw') {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
},
|
||||
isFlag() {
|
||||
if (this.$route.query.taskDefinitionKey == 'dreqr') {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
...mapGetters(['userInfo']),
|
||||
terminationProcess(handlingTime) {
|
||||
this.completeTask({ flag: 2 },handlingTime)
|
||||
this.completeTask({ flag: 2 }, handlingTime)
|
||||
},
|
||||
submit(handlingTime) {
|
||||
this.$refs.examineInformationRef.submit((res) => {
|
||||
this.completeTask(res,handlingTime)
|
||||
if (!this.isFlag) {
|
||||
res.flag = 0
|
||||
}
|
||||
this.completeTask(res, handlingTime)
|
||||
})
|
||||
},
|
||||
sendBack(handlingTime) {
|
||||
this.completeTask({ flag: 1 }, handlingTime)
|
||||
},
|
||||
queryTaskDetailByTask(callback) {
|
||||
this.loading = true
|
||||
getAction(this.url.queryTaskDetailByTaskIds, { taskIds: this.$route.query.taskIds }).then((res) => {
|
||||
@@ -186,13 +208,13 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
completeTask(value,handlingTime) {
|
||||
let json = Object.assign({handlingTime:handlingTime}, this.queryBy, value)
|
||||
completeTask(value, handlingTime) {
|
||||
let json = Object.assign({ handlingTime: handlingTime }, this.queryBy, value)
|
||||
let data = JSON.stringify(json).replace(/\"/g, '\'')
|
||||
let query = {
|
||||
userid: this.userInfo().id,
|
||||
taskId: this.$route.query.taskId || this.$route.query.taskIds,
|
||||
json: data,
|
||||
json: data
|
||||
}
|
||||
postAction('/workFlow/completeTask', query).then((res) => {
|
||||
if (res.success) {
|
||||
|
||||
Reference in New Issue
Block a user