修改提交流程的传参
This commit is contained in:
@@ -22,6 +22,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import moment from 'moment'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'headerProcess',
|
name: 'headerProcess',
|
||||||
props: {
|
props: {
|
||||||
@@ -52,7 +54,8 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
terminationProcess() {
|
terminationProcess() {
|
||||||
this.$emit('terminationProcess')
|
let handlingTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
|
||||||
|
this.$emit('terminationProcess',handlingTime)
|
||||||
},
|
},
|
||||||
preservation() {
|
preservation() {
|
||||||
this.$emit('preservation')
|
this.$emit('preservation')
|
||||||
@@ -61,7 +64,8 @@
|
|||||||
this.$emit('issue')
|
this.$emit('issue')
|
||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
this.$emit('submit')
|
let handlingTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
|
||||||
|
this.$emit('submit',handlingTime)
|
||||||
},
|
},
|
||||||
backTo() {
|
backTo() {
|
||||||
|
|
||||||
|
|||||||
@@ -166,12 +166,12 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapGetters(['userInfo']),
|
...mapGetters(['userInfo']),
|
||||||
terminationProcess() {
|
terminationProcess(handlingTime) {
|
||||||
this.completeTask({ flag: 2 })
|
this.completeTask({ flag: 2 },handlingTime)
|
||||||
},
|
},
|
||||||
submit() {
|
submit(handlingTime) {
|
||||||
this.$refs.examineInformationRef.submit((res) => {
|
this.$refs.examineInformationRef.submit((res) => {
|
||||||
this.completeTask(res)
|
this.completeTask(res,handlingTime)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
queryTaskDetailByTask(callback) {
|
queryTaskDetailByTask(callback) {
|
||||||
@@ -186,13 +186,14 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
completeTask(value) {
|
completeTask(value,handlingTime) {
|
||||||
let json = Object.assign({}, this.queryBy, value)
|
let json = Object.assign({}, this.queryBy, value)
|
||||||
let data = JSON.stringify(json).replace(/\"/g, '\'')
|
let data = JSON.stringify(json).replace(/\"/g, '\'')
|
||||||
let query = {
|
let query = {
|
||||||
userid: this.userInfo().id,
|
userid: this.userInfo().id,
|
||||||
taskId: this.$route.query.taskId || this.$route.query.taskIds,
|
taskId: this.$route.query.taskId || this.$route.query.taskIds,
|
||||||
json: data
|
json: data,
|
||||||
|
handlingTime:handlingTime
|
||||||
}
|
}
|
||||||
postAction('/workFlow/completeTask', query).then((res) => {
|
postAction('/workFlow/completeTask', query).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: this.$t('RelatedItems'),
|
title: this.$t('RelatedItems'),
|
||||||
dataIndex: 'RelatedItems',
|
dataIndex: 'projectName',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
ellipsis: true
|
ellipsis: true
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user