修改提交流程的传参

This commit is contained in:
qq787203167
2022-04-27 11:01:25 +08:00
parent 7b4add830c
commit 15047882ac
4 changed files with 43 additions and 7 deletions
+1
View File
@@ -719,4 +719,5 @@ module.exports = {
operationNode: 'operation node',
taskDataConfirmation: 'Please select the data whose list confirmation status is accepted and task confirmation status is not initiated or rejected, and the regulatory engineer and certification engineer are not empty',
selectIssuer:'Select issuer',
sendBack:'send back',
}
+1
View File
@@ -724,4 +724,5 @@ module.exports = {
opinion:'意见',
operationNode:'操作节点',
selectIssuer:'选择下发人',
sendBack:'退回',
}
@@ -16,6 +16,9 @@
<a-button class="header-btn issue" v-if="isIssue" @click="issue" type="primary" ghost>{{$t('issue')}}</a-button>
<!-- 提交-->
<a-button class="header-btn submit" v-if="isSubmit" @click="submit" type="primary">{{$t('submit')}}</a-button>
<a-button class="header-btn termin" v-if="isSendBack" @click="sendBackCkick" type="danger" ghost>
{{$t('sendBack')}}
</a-button>
</div>
</div>
</div>
@@ -50,7 +53,12 @@
isPreservation: {
type: Boolean,
default: false
}
},
//是否显示退回按钮
isSendBack:{
type: Boolean,
default: false
},
},
methods: {
terminationProcess() {
@@ -67,6 +75,10 @@
let handlingTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
this.$emit('submit',handlingTime)
},
sendBackCkick(){
let handlingTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
this.$emit('sendBack',handlingTime)
},
backTo() {
}
@@ -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) {