|
@ -620,13 +620,13 @@ export default { |
|
|
}, |
|
|
}, |
|
|
delReport() { |
|
|
delReport() { |
|
|
// 批量删除 |
|
|
// 批量删除 |
|
|
this.ysjlId = '' |
|
|
|
|
|
if (this.multipleSelection.length === 0) { |
|
|
if (this.multipleSelection.length === 0) { |
|
|
this.$message('请在列表选择要删除的数据。') |
|
|
this.$message('请在列表选择要删除的数据。') |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
let linkname = '' |
|
|
let linkname = '' |
|
|
let revertRenwuByYsjlIds = '' |
|
|
let revertRenwuByYsjlIds = '' |
|
|
|
|
|
const ids = [] |
|
|
for (let i = 0; i < this.multipleSelection.length; i++) { |
|
|
for (let i = 0; i < this.multipleSelection.length; i++) { |
|
|
if (i === 0 && this.multipleSelection[i].flowstatus === 1) { |
|
|
if (i === 0 && this.multipleSelection[i].flowstatus === 1) { |
|
|
linkname = this.multipleSelection[i].flowstatus |
|
|
linkname = this.multipleSelection[i].flowstatus |
|
@ -638,10 +638,7 @@ export default { |
|
|
if (this.multipleSelection[i].shebeileibiedaima === '2100' && this.multipleSelection[i].jianyanleibie === 'DJ') { |
|
|
if (this.multipleSelection[i].shebeileibiedaima === '2100' && this.multipleSelection[i].jianyanleibie === 'DJ') { |
|
|
revertRenwuByYsjlIds = this.multipleSelection[i].id + ',' + revertRenwuByYsjlIds |
|
|
revertRenwuByYsjlIds = this.multipleSelection[i].id + ',' + revertRenwuByYsjlIds |
|
|
} |
|
|
} |
|
|
this.ysjlId = this.multipleSelection[i].id + ',' + this.ysjlId |
|
|
ids.push(this.multipleSelection[i].id) |
|
|
if (i + 1 === this.multipleSelection.length) { |
|
|
|
|
|
this.ysjlId = this.ysjlId.substring(0, this.ysjlId.length - 1) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
this.$confirm('确定删除当前选中报告?', '提示', { |
|
|
this.$confirm('确定删除当前选中报告?', '提示', { |
|
|
confirmButtonText: '确定', |
|
|
confirmButtonText: '确定', |
|
@ -650,9 +647,12 @@ export default { |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
this.api({ |
|
|
this.api({ |
|
|
url: '/ysjl/delReport', |
|
|
url: '/ysjl/delReport', |
|
|
method: 'post', |
|
|
method: 'delete', |
|
|
params: { |
|
|
params: { |
|
|
ids: this.ysjlId |
|
|
ids: ids |
|
|
|
|
|
}, |
|
|
|
|
|
paramsSerializer: function(params) { |
|
|
|
|
|
return require('qs').stringify(params, { indices: false }) |
|
|
} |
|
|
} |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
this.$message({ |
|
|
this.$message({ |
|
|