@@ -25,7 +27,7 @@
:url="url
"/>
{
- 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) {