Browse Source

修复发送失败的bug

master
李磊 3 years ago
parent
commit
e4da9ef544
  1. 28
      src/views/bggl/components/original_db_list.vue

28
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({

Loading…
Cancel
Save