|
|
@ -35,7 +35,8 @@ |
|
|
|
<el-card> |
|
|
|
<h3>事件详情</h3> |
|
|
|
<event-detail ref="ref_detail" |
|
|
|
:eventId="eventId"></event-detail> |
|
|
|
:eventId="eventId" |
|
|
|
:eventDetailData="eventDetailData"></event-detail> |
|
|
|
<div v-if="eventDetailData.operationId" |
|
|
|
class="div-btn "> |
|
|
|
<el-button size="small" |
|
|
@ -49,7 +50,8 @@ |
|
|
|
<el-card> |
|
|
|
<h3>处理</h3> |
|
|
|
<process-form ref="ref_processinfo_dispose" |
|
|
|
:eventId="eventId"></process-form> |
|
|
|
:eventId="eventId" |
|
|
|
:eventDetailData="eventDetailData"></process-form> |
|
|
|
|
|
|
|
<div class="div-btn "> |
|
|
|
<el-button size="small" |
|
|
@ -203,7 +205,7 @@ function iniData () { |
|
|
|
return { |
|
|
|
formData: { |
|
|
|
operationType: '', |
|
|
|
categoryList: [] |
|
|
|
|
|
|
|
}, |
|
|
|
eventInfoData: {}, |
|
|
|
replayInfo: {}, |
|
|
@ -215,7 +217,7 @@ function iniData () { |
|
|
|
demandUserName: '', |
|
|
|
demandUserMobile: '', |
|
|
|
|
|
|
|
eventDetailData: {}, |
|
|
|
eventDetailCopy: {}, |
|
|
|
|
|
|
|
projectProcess: [], |
|
|
|
|
|
|
@ -233,6 +235,12 @@ export default { |
|
|
|
type: String, |
|
|
|
default: "", |
|
|
|
}, |
|
|
|
eventDetailData: { |
|
|
|
type: Object, |
|
|
|
default () { |
|
|
|
return {} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
components: { |
|
|
@ -263,29 +271,14 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
if (this.eventId) { |
|
|
|
this.getEventDetail() |
|
|
|
this.eventDetailCopy = JSON.parse(JSON.stringify(this.eventDetailData)); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
//加载组织数据 |
|
|
|
async getEventDetail () { |
|
|
|
const url = "/gov/project/icEvent/detail"; |
|
|
|
// const url = "http://yapi.elinkservice.cn/mock/245/gov/project/icEvent/detail"; |
|
|
|
|
|
|
|
const { data, code, msg } = await requestPost(url, { |
|
|
|
icEventId: this.eventId, |
|
|
|
}); |
|
|
|
|
|
|
|
if (code === 0) { |
|
|
|
|
|
|
|
this.eventDetailData = { ...data }; |
|
|
|
} else { |
|
|
|
this.$message.error(msg); |
|
|
|
} |
|
|
|
}, |
|
|
|
changeName (val) { |
|
|
|
|
|
|
|
this.demandUserName = val |
|
|
|
}, |
|
|
|
changeMobile (val) { |
|
|
@ -330,6 +323,7 @@ export default { |
|
|
|
|
|
|
|
console.log('eventInfo', this.eventInfoData) |
|
|
|
}, |
|
|
|
|
|
|
|
handleComfirm () { |
|
|
|
if (this.pageType === 'add') { |
|
|
|
this.handelAdd() |
|
|
@ -356,10 +350,11 @@ export default { |
|
|
|
if (this.$refs.ref_processinfo_add.okflag) { |
|
|
|
|
|
|
|
this.formData.operationType = this.$refs.ref_processinfo_add.operationType |
|
|
|
this.formData.categoryList = this.$refs.ref_processinfo_add.categoryList |
|
|
|
this.eventInfoData.operationType = this.$refs.ref_processinfo_add.operationType |
|
|
|
|
|
|
|
if (this.formData.operationType === '0') { |
|
|
|
this.eventInfoData.categoryList = this.$refs.ref_processinfo_add.categoryList |
|
|
|
|
|
|
|
if (this.formData.operationType === '0') { |
|
|
|
this.project = {} |
|
|
|
this.demand = {} |
|
|
|
this.replayInfo = this.$refs.ref_processinfo_add.replayInfo |
|
|
@ -367,8 +362,6 @@ export default { |
|
|
|
//回复属性赋值 |
|
|
|
this.eventInfoData.content = this.replayInfo.content |
|
|
|
this.eventInfoData.status = this.replayInfo.status |
|
|
|
this.eventInfoData.categoryList = this.$refs.ref_processinfo_add.categoryList |
|
|
|
|
|
|
|
|
|
|
|
} else if (this.formData.operationType === '1') { |
|
|
|
this.replayInfo = {} |
|
|
@ -394,11 +387,6 @@ export default { |
|
|
|
return false |
|
|
|
} |
|
|
|
|
|
|
|
//处理时,带给需求 |
|
|
|
// this.demand.demandUserId//需求人:user.id或者ic_resi_user.id |
|
|
|
// this.demand.demandUserName//需求人姓名 |
|
|
|
// this.demand.demandUserMobile//需求人联系电话 |
|
|
|
|
|
|
|
this.formData = { |
|
|
|
...this.eventInfoData, |
|
|
|
// replayInfo: this.replayInfo, |
|
|
@ -409,6 +397,7 @@ export default { |
|
|
|
console.log('this.formData', this.formData) |
|
|
|
this.submit() |
|
|
|
}, |
|
|
|
|
|
|
|
async submit () { |
|
|
|
const url = "/gov/project/icEvent/add"; |
|
|
|
|
|
|
@ -434,13 +423,13 @@ export default { |
|
|
|
if (this.$refs.ref_processinfo_dispose.okflag) { |
|
|
|
|
|
|
|
this.formData.operationType = this.$refs.ref_processinfo_dispose.operationType |
|
|
|
this.formData.categoryList = this.$refs.ref_processinfo_dispose.categoryList |
|
|
|
|
|
|
|
if (this.formData.operationType === '0') { |
|
|
|
|
|
|
|
this.project = {} |
|
|
|
this.demand = {} |
|
|
|
this.replayInfo = this.$refs.ref_processinfo_dispose.replayInfo |
|
|
|
|
|
|
|
this.replayInfo.icEventId = this.eventId |
|
|
|
console.log('replayInfo', this.replayInfo) |
|
|
|
//回复属性赋值 |
|
|
@ -452,7 +441,6 @@ export default { |
|
|
|
this.demand = {} |
|
|
|
this.project = this.$refs.ref_processinfo_dispose.project |
|
|
|
//项目的属性同事件一样 |
|
|
|
|
|
|
|
this.project.icEventId = this.eventId |
|
|
|
console.log('projectInfo', this.project) |
|
|
|
let url = '/gov/project/icEvent/icEventToProject' |
|
|
@ -463,7 +451,7 @@ export default { |
|
|
|
this.project = {} |
|
|
|
this.demand = this.$refs.ref_processinfo_dispose.demand |
|
|
|
//需求的属性同事件一样 |
|
|
|
this.demand.IcEventId = this.eventId |
|
|
|
this.demand.icEventId = this.eventId |
|
|
|
console.log('demond', this.demand) |
|
|
|
let url = '/gov/project/icEvent/icEventToDemand' |
|
|
|
this.submitDispose(url, this.demand) |
|
|
|