|
|
@ -156,6 +156,7 @@ export default { |
|
|
|
tableKey: 0, |
|
|
|
list: [], |
|
|
|
sids: [], // 用于导出的时候保存已选择的SIDs |
|
|
|
multipleSelection: [], |
|
|
|
state_list: [ |
|
|
|
{ |
|
|
|
dictKey: '0', |
|
|
@ -240,6 +241,7 @@ export default { |
|
|
|
}, |
|
|
|
// 信息条数 获取点击时当前的sid |
|
|
|
handleSelectionChange(row) { |
|
|
|
this.multipleSelection = row |
|
|
|
const aa = [] |
|
|
|
row.forEach(element => { |
|
|
|
aa.push(element.sid) |
|
|
@ -307,8 +309,12 @@ export default { |
|
|
|
}, |
|
|
|
toEdit() { |
|
|
|
if (this.sids.length === 1) { |
|
|
|
this.viewState = 3 |
|
|
|
this.$refs['divAdd'].showEdit(this.sids[0]) |
|
|
|
if (this.multipleSelection[0].state !== '已完成') { |
|
|
|
this.viewState = 3 |
|
|
|
this.$refs['divAdd'].showEdit(this.sids[0]) |
|
|
|
} else { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '该回访单已完成' }) |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' }) |
|
|
|
} |
|
|
|