修改禅道已知bug

This commit is contained in:
qq787203167
2022-05-11 09:22:29 +08:00
parent 1498aa1490
commit 6a14ce332a
3 changed files with 14 additions and 9 deletions
@@ -399,7 +399,8 @@
projectTaskInventoryId: this.$route.query.projectTaskInventoryId, projectTaskInventoryId: this.$route.query.projectTaskInventoryId,
flowType: '2', flowType: '2',
userIds: this.formInline.userId, userIds: this.formInline.userId,
taskDefinitionKey: 'dreDispose' taskDefinitionKey: 'dreDispose',
msgType: 'designIssueDreMsg'
} }
postAction(this.url.DetailEOAdd, query).then((res) => { postAction(this.url.DetailEOAdd, query).then((res) => {
if (res.success) { if (res.success) {
@@ -222,34 +222,36 @@
}, },
methods: { methods: {
...mapGetters(['userInfo']), ...mapGetters(['userInfo']),
terminationProcess() { terminationProcess(operatorTime) {
this.textLoading = this.$t('terminationProcessing') this.textLoading = this.$t('terminationProcessing')
this.loading = true this.loading = true
this.queryBy.reviewResult = 'termination of task' this.queryBy.reviewResult = 'termination of task'
this.completeTask({ flag: 2 }) this.completeTask({ flag: 2, operatorTime: operatorTime })
}, },
adopt() { adopt(operatorTime) {
this.$refs.reviewedByThePersonInChargeRef.submit((res) => { this.$refs.reviewedByThePersonInChargeRef.submit((res) => {
this.textLoading = this.$t('Submitting') this.textLoading = this.$t('Submitting')
this.loading = true this.loading = true
res.flag = 0 res.flag = 0
res.operatorTime = operatorTime
this.completeTask(res) this.completeTask(res)
}) })
}, },
sendBack() { sendBack(operatorTime) {
this.textLoading = this.$t('Returning') this.textLoading = this.$t('Returning')
this.loading = true this.loading = true
if (this.queryBy.reviewResult == 'inconformity' || this.queryBy.reviewResult == 'to track'){ if (this.queryBy.reviewResult == 'inconformity' || this.queryBy.reviewResult == 'to track') {
}else{ } else {
this.queryBy.reviewResult = 'to be confirmed' this.queryBy.reviewResult = 'to be confirmed'
} }
this.completeTask({ flag: 1 }) this.completeTask({ flag: 1, operatorTime: operatorTime })
}, },
submit() { submit(operatorTime) {
this.$refs.reviewedByThePersonInChargeRef.submit((res) => { this.$refs.reviewedByThePersonInChargeRef.submit((res) => {
this.textLoading = this.$t('Submitting') this.textLoading = this.$t('Submitting')
this.loading = true this.loading = true
res.operatorTime = operatorTime
this.completeTask(res) this.completeTask(res)
}) })
}, },
@@ -1155,6 +1155,8 @@
completeTaskDesign(value, taskId) { completeTaskDesign(value, taskId) {
value.reviewResult = 'launch' value.reviewResult = 'launch'
let operatorTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
value.operatorTime = operatorTime
let query = { let query = {
userid: this.userInfo().id, userid: this.userInfo().id,
taskId: taskId, taskId: taskId,