-
{{ item.internalRemark }}
+
+
+
+
回复人:
+
{{ item.publicReply }}
+
+
+
回复内容:
+
{{ item.departmentName }}
+
-
-
-
-
-
- {{ att.name }}
-
+
+
+
服务方:
+
{{ item.serviceParty }}
+
+
+
实际服务时间:
+
{{ item.actualServiceTime }}
+
+
+
+
+
服务时间:
+
{{ item.serviceTime }}
+
+
@@ -143,10 +210,13 @@ function iniData () {
demand: {},
project: {},
+ //新增
demandUserId: '',
demandUserName: '',
demandUserMobile: '',
+ eventDetailData: {},
+
projectProcess: [],
};
@@ -191,9 +261,29 @@ export default {
if (this.pageType === 'dispose') {
this.getProjectProcess()
}
+
+ if (this.eventId) {
+ this.getEventDetail()
+ }
},
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
@@ -240,8 +330,16 @@ export default {
console.log('eventInfo', this.eventInfoData)
},
-
handleComfirm () {
+ if (this.pageType === 'add') {
+ this.handelAdd()
+ }
+ if (this.pageType === 'dispose') {
+ this.handelDispose()
+ }
+ },
+
+ handelAdd () {
if (this.pageType === 'add') {
this.$refs.ref_add.getEventInfo()
if (this.$refs.ref_add.okflag) {
@@ -254,28 +352,28 @@ export default {
console.log('eventInfo', this.eventInfoData)
}
- this.$refs.ref_processinfo.getProcessInfo()
- if (this.$refs.ref_processinfo.okflag) {
+ this.$refs.ref_processinfo_add.getProcessInfo()
+ if (this.$refs.ref_processinfo_add.okflag) {
- this.formData.operationType = this.$refs.ref_processinfo.operationType
- this.formData.categoryList = this.$refs.ref_processinfo.categoryList
+ this.formData.operationType = this.$refs.ref_processinfo_add.operationType
+ this.formData.categoryList = this.$refs.ref_processinfo_add.categoryList
if (this.formData.operationType === '0') {
this.project = {}
this.demand = {}
- this.replayInfo = this.$refs.ref_processinfo.replayInfo
+ this.replayInfo = this.$refs.ref_processinfo_add.replayInfo
console.log('replayInfo', this.replayInfo)
//回复属性赋值
this.eventInfoData.content = this.replayInfo.content
this.eventInfoData.status = this.replayInfo.status
- this.eventInfoData.categoryList = this.$refs.ref_processinfo.categoryList
+ this.eventInfoData.categoryList = this.$refs.ref_processinfo_add.categoryList
} else if (this.formData.operationType === '1') {
this.replayInfo = {}
this.demand = {}
- this.project = this.$refs.ref_processinfo.project
+ this.project = this.$refs.ref_processinfo_add.project
//项目的属性同事件一样
this.project.gridId = this.eventInfoData.gridId
console.log('projectInfo', this.project)
@@ -283,7 +381,7 @@ export default {
} else if (this.formData.operationType === '2') {
this.replayInfo = {}
this.project = {}
- this.demand = this.$refs.ref_processinfo.demand
+ this.demand = this.$refs.ref_processinfo_add.demand
//需求的属性同事件一样
this.demand.gridId = this.eventInfoData.gridId
this.demand.reportUserName = this.eventInfoData.name//上报人姓名同需求上报人姓名
@@ -330,6 +428,67 @@ export default {
} else {
}
},
+
+ handelDispose () {
+ this.$refs.ref_processinfo_dispose.getProcessInfo()
+ 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)
+ //回复属性赋值
+ let url = '/gov/project/icEvent/reply'
+ this.submitDispose(url, this.replayInfo)
+
+ } else if (this.formData.operationType === '1') {
+ this.replayInfo = {}
+ 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'
+ this.submitDispose(url, this.project)
+
+ } else if (this.formData.operationType === '2') {
+ this.replayInfo = {}
+ this.project = {}
+ this.demand = this.$refs.ref_processinfo_dispose.demand
+ //需求的属性同事件一样
+ this.demand.IcEventId = this.eventId
+ console.log('demond', this.demand)
+ let url = '/gov/project/icEvent/icEventToDemand'
+ this.submitDispose(url, this.demand)
+ }
+
+ } else {
+ return false
+ }
+
+ },
+ async submitDispose (url, params) {
+
+ const { data, code, msg } = await requestPost(url, {
+
+ ...params,
+ });
+ if (code === 0) {
+
+ this.$message.success("操作成功!");
+
+ this.$emit("handleOk");
+ } else {
+ }
+ },
+
handleClose () {
if (this.pageType === 'add') {
this.eventInfo = this.$refs.ref_add.resetData()
diff --git a/src/views/modules/shequzhili/event/cpts/process-form-demand.vue b/src/views/modules/shequzhili/event/cpts/process-form-demand.vue
index e35b93ae..560667fe 100644
--- a/src/views/modules/shequzhili/event/cpts/process-form-demand.vue
+++ b/src/views/modules/shequzhili/event/cpts/process-form-demand.vue
@@ -292,6 +292,10 @@ export default {
type: String,
default: "",
},
+ eventId: {
+ type: String,
+ default: "",
+ },
},
watch: {
@@ -318,12 +322,40 @@ export default {
// this.formData = { ...this.formDataTemp }
this.initMap()
- this.formData.demandUserName = this.demandUserName
- this.formData.demandUserMobile = this.demandUserMobile
- this.formData.demandUserId = this.demandUserId
+ if (this.eventId) {
+ this.getEventInfo()
+ } else {
+ this.formData.demandUserName = this.demandUserName
+ this.formData.demandUserMobile = this.demandUserMobile
+ this.formData.demandUserId = this.demandUserId
+ }
+
+
},
methods: {
+ //加载组织数据
+ async getEventInfo () {
+ 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.formData.demandUserName = data.name
+ this.formData.demandUserMobile = data.mobile
+ this.formData.demandUserId = data.reportUserId
+ this.formData.reportTime = data.createdTime
+ this.formData.gridId = data.gridId
+ this.formData.reportUserMobile = data.name
+ this.formData.reportUserName = data.mobile
+
+ } else {
+ this.$message.error(msg);
+ }
+ },
async getDemandOptions () {
const url = "/heart/icresidemanddict/demandoption"
let params = {}
diff --git a/src/views/modules/shequzhili/event/cpts/process-form-project.vue b/src/views/modules/shequzhili/event/cpts/process-form-project.vue
index c0ab2067..ee62b518 100644
--- a/src/views/modules/shequzhili/event/cpts/process-form-project.vue
+++ b/src/views/modules/shequzhili/event/cpts/process-form-project.vue
@@ -326,6 +326,11 @@ export default {
this.getAssistanceUnitList();
this.getTagList()
this.formData = { ...this.formDataTemp }
+ if (this.eventId) {
+ this.getEventInfo()
+ } else {
+
+ }
},
methods: {
@@ -404,7 +409,22 @@ export default {
this.visibleTagPanel = false;
},
+ async getEventInfo () {
+ 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.formData.gridId = data.gridId
+
+ } else {
+ this.$message.error(msg);
+ }
+ },
async getProjectInfo () {
this.okflag = false
this.$refs["ref_form"].validate((valid, messageObj) => {
diff --git a/src/views/modules/shequzhili/event/cpts/process-form.vue b/src/views/modules/shequzhili/event/cpts/process-form.vue
index ad31c9dc..eb48d64a 100644
--- a/src/views/modules/shequzhili/event/cpts/process-form.vue
+++ b/src/views/modules/shequzhili/event/cpts/process-form.vue
@@ -41,6 +41,7 @@
@@ -127,6 +128,10 @@ export default {
type: String,
default: "",
},
+ eventId: {
+ type: String,
+ default: "",
+ },
},
watch: {
diff --git a/src/views/modules/shequzhili/event/eventList.vue b/src/views/modules/shequzhili/event/eventList.vue
index db5414ce..585657dc 100644
--- a/src/views/modules/shequzhili/event/eventList.vue
+++ b/src/views/modules/shequzhili/event/eventList.vue
@@ -153,11 +153,10 @@
+ label="图片">
@@ -166,8 +165,7 @@
+ label="音频">
![]()