Browse Source

完善工单回访管理

master
yunuo970428 6 months ago
parent
commit
5eb595168a
  1. 10
      yxt-as-ui/src/views/operation/workorderreturnvisit/workorderreturnvisit.vue

10
yxt-as-ui/src/views/operation/workorderreturnvisit/workorderreturnvisit.vue

@ -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: '请选择一条记录进行操作' })
}

Loading…
Cancel
Save