From e4da9ef544e69e07b7fed581c4fa7056d466dd07 Mon Sep 17 00:00:00 2001 From: zichen1019 <1510748736@qq.com> Date: Fri, 27 Aug 2021 17:09:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=91=E9=80=81=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bggl/components/original_db_list.vue | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) 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({