|
@@ -322,6 +322,15 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="联系人" v-if="eventStatusButton=='qs'">
|
|
|
+ <el-select multiple collapse-tags v-model='sendUserFegin' placeholder='请选择联系人!' clearable>
|
|
|
+ <el-option
|
|
|
+ v-for="item in userFeginList"
|
|
|
+ :label="item.nickName"
|
|
|
+ :value="item.phonenumber"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-button size="mini" type="primary" v-if="eventStatusButton=='qs'"
|
|
|
@click="updateCentereventTEventcatalogueStatus('qs',true)">签收
|
|
|
</el-button>
|
|
@@ -959,7 +968,8 @@ import {
|
|
|
centereventtdepteventList,
|
|
|
dutysystemList,
|
|
|
dutysystemAdd,
|
|
|
- dutysystemRemove
|
|
|
+ dutysystemRemove,
|
|
|
+ userFeginlist
|
|
|
} from '@/api/forest'
|
|
|
import {
|
|
|
treeselectAll as deptTreeselect
|
|
@@ -1007,12 +1017,14 @@ export default {
|
|
|
sendEventType: null,//事件类型
|
|
|
sendHuoZaiBanJing: null,//火灾报告
|
|
|
sendGuanLianYuAn: null,//关联预案
|
|
|
+ sendUserFegin: [],//联系人
|
|
|
sendTaskSource: null,//任务来源
|
|
|
sendTaskTitle: null,//联动标题
|
|
|
sendTaskContent: null,//联动内容
|
|
|
sendLianDongDept: [],//联动部门
|
|
|
eventTypeList: [],//事件类型列表
|
|
|
guanLianYuAnList: [],//关联预案列表
|
|
|
+ userFeginList: [],//联系人列表
|
|
|
deptOptions: [],//签收部门
|
|
|
deptOptionsLiandong: [],//联动部门
|
|
|
eventStatusButton: null,//流程按钮标识
|
|
@@ -1393,6 +1405,7 @@ export default {
|
|
|
//关闭事件签收弹窗
|
|
|
this.sendDeptId = null
|
|
|
this.sendDeptName = null
|
|
|
+ this.sendUserFegin = []
|
|
|
this.sendEventType = null
|
|
|
this.sendHuoZaiBanJing = null
|
|
|
this.sendGuanLianYuAn = null
|
|
@@ -1414,6 +1427,7 @@ export default {
|
|
|
//清空表单数据
|
|
|
this.sendDeptId = null
|
|
|
this.sendDeptName = null
|
|
|
+ this.sendUserFegin = []
|
|
|
this.sendEventType = null
|
|
|
this.sendHuoZaiBanJing = null
|
|
|
this.sendGuanLianYuAn = null
|
|
@@ -1534,166 +1548,173 @@ export default {
|
|
|
* */
|
|
|
async updateCentereventTEventcatalogueStatus(eventStatus, isSend) {
|
|
|
this.eventStatusButton = eventStatus
|
|
|
-
|
|
|
+ let that=this
|
|
|
if (!isSend) {//事件弹窗
|
|
|
if (eventStatus == 'qs') {//签收
|
|
|
- this.eventConfirmTitle = '事件签收'
|
|
|
- let param = { parentId: this.eventType }
|
|
|
+ that.eventConfirmTitle = '事件签收'
|
|
|
+ let param = { parentId: that.eventType }
|
|
|
await listSJfl(param).then(res => {
|
|
|
//事件类型
|
|
|
if (res.code == 200) {
|
|
|
- this.eventTypeList = res.data
|
|
|
+ that.eventTypeList = res.data
|
|
|
}
|
|
|
})
|
|
|
await listYuAn().then(res => {
|
|
|
//关联预案
|
|
|
if (res.code == 200) {
|
|
|
- this.guanLianYuAnList = res.data
|
|
|
+ that.guanLianYuAnList = res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
+ await userFeginlist().then(res => {
|
|
|
+ //联系人列表
|
|
|
+ if (res.code == 200) {
|
|
|
+ that.userFeginList = res.data
|
|
|
}
|
|
|
})
|
|
|
- await selectByeventCode(this.eventCode).then(res => {
|
|
|
+ await selectByeventCode(that.eventCode).then(res => {
|
|
|
//签收部门
|
|
|
if (res.code == 200) {
|
|
|
- this.deptOptions = res.data
|
|
|
- this.deptNameitem = '签收部门'
|
|
|
+ that.deptOptions = res.data
|
|
|
+ that.deptNameitem = '签收部门'
|
|
|
}
|
|
|
})
|
|
|
- this.showEventConfirm = true
|
|
|
+ that.showEventConfirm = true
|
|
|
} else if (eventStatus == 'wb') {//误报
|
|
|
- this.eventConfirmTitle = '事件误报'
|
|
|
- await selectByeventCode(this.eventCode).then(res => {
|
|
|
+ that.eventConfirmTitle = '事件误报'
|
|
|
+ await selectByeventCode(that.eventCode).then(res => {
|
|
|
//签收部门
|
|
|
if (res.code == 200) {
|
|
|
- this.deptOptions = res.data
|
|
|
- this.deptNameitem = '签收部门'
|
|
|
+ that.deptOptions = res.data
|
|
|
+ that.deptNameitem = '签收部门'
|
|
|
}
|
|
|
})
|
|
|
- this.showEventConfirm = true
|
|
|
+ that.showEventConfirm = true
|
|
|
} else if (eventStatus == 'cf') {//重复
|
|
|
- this.eventConfirmTitle = '事件重复'
|
|
|
- await selectByeventCode(this.eventCode).then(res => {
|
|
|
+ that.eventConfirmTitle = '事件重复'
|
|
|
+ await selectByeventCode(that.eventCode).then(res => {
|
|
|
//签收部门
|
|
|
if (res.code == 200) {
|
|
|
- this.deptOptions = res.data
|
|
|
- this.deptNameitem = '签收部门'
|
|
|
+ that.deptOptions = res.data
|
|
|
+ that.deptNameitem = '签收部门'
|
|
|
}
|
|
|
})
|
|
|
- this.showEventConfirm = true
|
|
|
+ that.showEventConfirm = true
|
|
|
} else if (eventStatus == 'ld') {//联动
|
|
|
- await selectByeventCode(this.eventCode).then(res => {
|
|
|
+ await selectByeventCode(that.eventCode).then(res => {
|
|
|
//签收部门
|
|
|
if (res.code == 200) {
|
|
|
- this.deptOptions = res.data
|
|
|
- this.deptNameitem = '发起部门'
|
|
|
+ that.deptOptions = res.data
|
|
|
+ that.deptNameitem = '发起部门'
|
|
|
}
|
|
|
})
|
|
|
- this.eventConfirmTitle = '事件联动'
|
|
|
+ that.eventConfirmTitle = '事件联动'
|
|
|
/** 查询部门树结构 */
|
|
|
await deptTreeselect().then(response => {
|
|
|
- this.deptOptionsLiandong = response.data
|
|
|
+ that.deptOptionsLiandong = response.data
|
|
|
})
|
|
|
- this.showEventConfirm = true
|
|
|
+ that.showEventConfirm = true
|
|
|
} else if (eventStatus == 'gd') {//归档填报
|
|
|
- this.showEventConfirm_gd = true
|
|
|
+ that.showEventConfirm_gd = true
|
|
|
}
|
|
|
} else {//事件提交后台
|
|
|
if (eventStatus == 'ld') {
|
|
|
//事件处理流程--联动
|
|
|
- let array = this.$refs.LiandongDept.getCheckedNodes()
|
|
|
+ let array = that.$refs.LiandongDept.getCheckedNodes()
|
|
|
if (array != null && array.length > 0) {
|
|
|
for (let i = 0; i < array.length; i++) {
|
|
|
- this.sendLianDongDept.push({ 'taskDeptId': array[i].id, 'taskDeptName': array[i].label })
|
|
|
+ that.sendLianDongDept.push({ 'taskDeptId': array[i].id, 'taskDeptName': array[i].label })
|
|
|
}
|
|
|
}
|
|
|
- if (this.sendTaskSource == '' || this.sendTaskSource == null) {
|
|
|
- this.$message.error(`请选择任务来源!`)
|
|
|
+ if (that.sendTaskSource == '' || that.sendTaskSource == null) {
|
|
|
+ that.$message.error(`请选择任务来源!`)
|
|
|
return
|
|
|
}
|
|
|
- if (this.sendTaskContent == '' || this.sendTaskContent == null) {
|
|
|
- this.$message.error(`请输入任务内容!`)
|
|
|
+ if (that.sendTaskContent == '' || that.sendTaskContent == null) {
|
|
|
+ that.$message.error(`请输入任务内容!`)
|
|
|
return
|
|
|
}
|
|
|
- if (this.sendTaskTitle == '' || this.sendTaskTitle == null) {
|
|
|
- this.$message.error(`请输入任务标题!`)
|
|
|
+ if (that.sendTaskTitle == '' || that.sendTaskTitle == null) {
|
|
|
+ that.$message.error(`请输入任务标题!`)
|
|
|
return
|
|
|
}
|
|
|
- if (this.sendLianDongDept == '' || this.sendLianDongDept == null) {
|
|
|
- this.$message.error(`请选择任务联动部门!`)
|
|
|
+ if (that.sendLianDongDept == '' || that.sendLianDongDept == null) {
|
|
|
+ that.$message.error(`请选择任务联动部门!`)
|
|
|
return
|
|
|
}
|
|
|
- if (this.sendDeptId == '' || this.sendDeptId == null || this.sendDeptName == '' || this.sendDeptName == null) {
|
|
|
- this.$message.error(`请选择任务发起部门!`)
|
|
|
+ if (that.sendDeptId == '' || that.sendDeptId == null || that.sendDeptName == '' || that.sendDeptName == null) {
|
|
|
+ that.$message.error(`请选择任务发起部门!`)
|
|
|
return
|
|
|
}
|
|
|
let param = {
|
|
|
- sendDeptId: this.sendDeptId,
|
|
|
- sendDept: this.sendDeptName,
|
|
|
- eventCode: this.eventCode,
|
|
|
- longitude: this.longitude,
|
|
|
- latitude: this.latitude,
|
|
|
- taskTitle: this.sendTaskTitle,
|
|
|
- taskSource: this.sendTaskSource,
|
|
|
- taskContent: this.sendTaskContent,
|
|
|
- taskDept: this.sendLianDongDept
|
|
|
+ sendDeptId: that.sendDeptId,
|
|
|
+ sendDept: that.sendDeptName,
|
|
|
+ eventCode: that.eventCode,
|
|
|
+ longitude: that.longitude,
|
|
|
+ latitude: that.latitude,
|
|
|
+ taskTitle: that.sendTaskTitle,
|
|
|
+ taskSource: that.sendTaskSource,
|
|
|
+ taskContent: that.sendTaskContent,
|
|
|
+ taskDept: that.sendLianDongDept
|
|
|
}
|
|
|
sendTask(param).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
- this.$message.success(`联动发起成功!`)
|
|
|
- this.refreshEventDialog(this.eventCode)
|
|
|
- this.cancelEventConfirm_send()
|
|
|
- this.showEventConfirm = false
|
|
|
+ that.$message.success(`联动发起成功!`)
|
|
|
+ that.refreshEventDialog(that.eventCode)
|
|
|
+ that.cancelEventConfirm_send()
|
|
|
+ that.showEventConfirm = false
|
|
|
}
|
|
|
})
|
|
|
|
|
|
} else if (eventStatus == 'gd') {
|
|
|
//事件处理流程--归档
|
|
|
let param = {
|
|
|
- deptId: this.deptId,
|
|
|
- eventCode: this.eventCode,
|
|
|
+ deptId: that.deptId,
|
|
|
+ eventCode: that.eventCode,
|
|
|
eventStatus: eventStatus,
|
|
|
- id: this.eventId,
|
|
|
+ id: that.eventId,
|
|
|
czlx: '',
|
|
|
- forestFireLoss: { eventId: this.eventCode, table1: this.table1 },
|
|
|
- fireInformation: { eventId: this.eventCode, table2: this.table2 },
|
|
|
- array: this.regionalFlagObj.array
|
|
|
+ forestFireLoss: { eventId: that.eventCode, table1: that.table1 },
|
|
|
+ fireInformation: { eventId: that.eventCode, table2: that.table2 },
|
|
|
+ array: that.regionalFlagObj.array
|
|
|
}
|
|
|
updateCentereventTEventcatalogueStatus(param).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
- this.$message.success(`处理成功!`)
|
|
|
- this.refreshEvent(this.eventCode)
|
|
|
- this.cancelEventConfirm_send()
|
|
|
- this.showEventConfirm_gd = false
|
|
|
- this.$emit('getEventList', this.calendarDay)
|
|
|
+ that.$message.success(`处理成功!`)
|
|
|
+ that.refreshEvent(that.eventCode)
|
|
|
+ that.cancelEventConfirm_send()
|
|
|
+ that.showEventConfirm_gd = false
|
|
|
+ that.$emit('getEventList', that.calendarDay)
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
if (eventStatus == 'qs' || eventStatus == 'wb' || eventStatus == 'cf') {
|
|
|
- if (this.sendDeptId == '' || this.sendDeptId == null || this.sendDeptName == '' || this.sendDeptName == null) {
|
|
|
- this.$message.error(`请选择部门!`)
|
|
|
+ if (that.sendDeptId == '' || that.sendDeptId == null || that.sendDeptName == '' || that.sendDeptName == null) {
|
|
|
+ that.$message.error(`请选择部门!`)
|
|
|
return
|
|
|
}
|
|
|
} else {
|
|
|
- this.sendDeptId = this.deptId
|
|
|
+ that.sendDeptId = that.deptId
|
|
|
}
|
|
|
//事件处理流程
|
|
|
let param = {
|
|
|
- eventCode: this.eventCode,
|
|
|
- deptId: this.sendDeptId,
|
|
|
- deptName: this.sendDeptName,
|
|
|
+ phones:that.sendUserFegin,
|
|
|
+ eventCode: that.eventCode,
|
|
|
+ deptId: that.sendDeptId,
|
|
|
+ deptName: that.sendDeptName,
|
|
|
eventStatus: eventStatus,
|
|
|
- eventType: this.sendEventType,
|
|
|
- id: this.eventId,
|
|
|
+ eventType: that.sendEventType,
|
|
|
+ id: that.eventId,
|
|
|
czlx: '',
|
|
|
- fireRadius: this.sendHuoZaiBanJing,
|
|
|
- reserve: this.sendGuanLianYuAn
|
|
|
+ fireRadius: that.sendHuoZaiBanJing,
|
|
|
+ reserve: that.sendGuanLianYuAn
|
|
|
}
|
|
|
updateCentereventTEventcatalogueStatus(param).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
- this.$message.success(`处理成功!`)
|
|
|
- this.refreshEvent(this.eventCode)
|
|
|
- this.cancelEventConfirm_send()
|
|
|
- this.showEventConfirm = false
|
|
|
- this.$emit('getEventList', this.calendarDay)
|
|
|
+ that.$message.success(`处理成功!`)
|
|
|
+ that.refreshEvent(that.eventCode)
|
|
|
+ that.cancelEventConfirm_send()
|
|
|
+ that.showEventConfirm = false
|
|
|
+ that.$emit('getEventList', that.calendarDay)
|
|
|
}
|
|
|
})
|
|
|
}
|