修改提交流程的传参

This commit is contained in:
qq787203167
2022-04-26 19:47:53 +08:00
parent 1d78fcbb68
commit 071bf00865
3 changed files with 14 additions and 9 deletions
@@ -22,6 +22,8 @@
</template>
<script>
import moment from 'moment'
export default {
name: 'headerProcess',
props: {
@@ -52,7 +54,8 @@
},
methods: {
terminationProcess() {
this.$emit('terminationProcess')
let handlingTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
this.$emit('terminationProcess',handlingTime)
},
preservation() {
this.$emit('preservation')
@@ -61,7 +64,8 @@
this.$emit('issue')
},
submit() {
this.$emit('submit')
let handlingTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
this.$emit('submit',handlingTime)
},
backTo() {
@@ -166,12 +166,12 @@
},
methods: {
...mapGetters(['userInfo']),
terminationProcess() {
this.completeTask({ flag: 2 })
terminationProcess(handlingTime) {
this.completeTask({ flag: 2 },handlingTime)
},
submit() {
submit(handlingTime) {
this.$refs.examineInformationRef.submit((res) => {
this.completeTask(res)
this.completeTask(res,handlingTime)
})
},
queryTaskDetailByTask(callback) {
@@ -186,13 +186,14 @@
}
})
},
completeTask(value) {
completeTask(value,handlingTime) {
let json = Object.assign({}, 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,
handlingTime:handlingTime
}
postAction('/workFlow/completeTask', query).then((res) => {
if (res.success) {
@@ -52,7 +52,7 @@
columns: [
{
title: this.$t('RelatedItems'),
dataIndex: 'RelatedItems',
dataIndex: 'projectName',
align: 'center',
ellipsis: true
},