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