|
@ -660,10 +660,6 @@ export default { |
|
|
type: 'success', |
|
|
type: 'success', |
|
|
duration: 1000, |
|
|
duration: 1000, |
|
|
onClose: () => { |
|
|
onClose: () => { |
|
|
// 修改16版任务状态 |
|
|
|
|
|
if (revertRenwuByYsjlIds) { |
|
|
|
|
|
this.common.updRenwuState(revertRenwuByYsjlIds, 0, false) |
|
|
|
|
|
} |
|
|
|
|
|
this.getList() |
|
|
this.getList() |
|
|
// 刷新原始记录待办,原始记录已办列表,任务列表 |
|
|
// 刷新原始记录待办,原始记录已办列表,任务列表 |
|
|
Utils.$emit('task-list') |
|
|
Utils.$emit('task-list') |
|
@ -701,7 +697,7 @@ export default { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
this.ysjlId = arr |
|
|
this.ysjlId = arr |
|
|
if (this.ysjlId !== '') { |
|
|
if (this.ysjlId.length) { |
|
|
this.dialogBohuiVisible = true |
|
|
this.dialogBohuiVisible = true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -749,15 +745,15 @@ export default { |
|
|
const nblb = this.multipleSelection[0].neibuleibie |
|
|
const nblb = this.multipleSelection[0].neibuleibie |
|
|
const sbzldm = this.multipleSelection[0].shebeizhongleidaima |
|
|
const sbzldm = this.multipleSelection[0].shebeizhongleidaima |
|
|
const bglx = this.multipleSelection[0].bglx |
|
|
const bglx = this.multipleSelection[0].bglx |
|
|
|
|
|
this.ysjlId = [] |
|
|
for (let i = 0; i < this.multipleSelection.length; i++) { |
|
|
for (let i = 0; i < this.multipleSelection.length; i++) { |
|
|
|
|
|
this.ysjlId.push(this.multipleSelection[i].id) |
|
|
if (i === 0) { |
|
|
if (i === 0) { |
|
|
linkname = this.multipleSelection[i].flowstatus |
|
|
linkname = this.multipleSelection[i].flowstatus |
|
|
this.ysjlId = this.multipleSelection[i].id |
|
|
|
|
|
if (this.multipleSelection[i].bglx === 1) { |
|
|
if (this.multipleSelection[i].bglx === 1) { |
|
|
parentIds = this.multipleSelection[i].id |
|
|
parentIds = this.multipleSelection[i].id |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
this.ysjlId = this.ysjlId + ',' + this.multipleSelection[i].id |
|
|
|
|
|
if (this.multipleSelection[i].bglx === 1) { |
|
|
if (this.multipleSelection[i].bglx === 1) { |
|
|
parentIds = parentIds + ',' + this.multipleSelection[i].id |
|
|
parentIds = parentIds + ',' + this.multipleSelection[i].id |
|
|
} |
|
|
} |
|
@ -873,22 +869,24 @@ export default { |
|
|
this.$message('只能选择单人处理下一环节。') |
|
|
this.$message('只能选择单人处理下一环节。') |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
let linkname = '' |
|
|
const flowstatus = this.multipleSelection[0].flowstatus |
|
|
for (let i = 0; i < this.multipleSelectionLink.length; i++) { |
|
|
for (let i = 1; i < this.multipleSelection.length; i++) { |
|
|
if (i === 0) { |
|
|
if (flowstatus !== this.multipleSelection[i].flowstatus) { |
|
|
linkname = this.multipleSelectionLink[i].flowstatus |
|
|
|
|
|
} |
|
|
|
|
|
if (linkname !== this.multipleSelectionLink[i].flowstatus) { |
|
|
|
|
|
this.$message('请选择同环节进行发送。') |
|
|
this.$message('请选择同环节进行发送。') |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
this.multipleSelectionLink[0].ysjlId = this.ysjlId |
|
|
|
|
|
const _vue = this |
|
|
const _vue = this |
|
|
|
|
|
const link = this.multipleSelectionLink[0] |
|
|
this.api({ |
|
|
this.api({ |
|
|
url: '/flow/send', |
|
|
url: '/flow/send', |
|
|
method: 'post', |
|
|
method: 'post', |
|
|
data: this.multipleSelectionLink[0] |
|
|
data: { |
|
|
|
|
|
ysjlIds: this.ysjlId, |
|
|
|
|
|
userId: link.userId, |
|
|
|
|
|
currentLink: flowstatus, |
|
|
|
|
|
nextValue: link.nextValue |
|
|
|
|
|
} |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
this.dialogFormVisible = false |
|
|
this.dialogFormVisible = false |
|
|
this.$message({ |
|
|
this.$message({ |
|
|