diff --git a/src/views/modules/communityService/sqzzz/cpts/edit.vue b/src/views/modules/communityService/sqzzz/cpts/edit.vue index df7741c20..2be14c87c 100644 --- a/src/views/modules/communityService/sqzzz/cpts/edit.vue +++ b/src/views/modules/communityService/sqzzz/cpts/edit.vue @@ -30,12 +30,17 @@ label-width="150px" style="display: block" > - + + :value="item.value" + > @@ -259,7 +264,7 @@ export default { orgId: "", dataForm: { organizationName: "", - categoryCode: '', + categoryCode: "", serviceItem: "", organizationPersonCount: "", principalName: "", @@ -271,8 +276,8 @@ export default { latitude: "", organizationPersonnel: [], }, - categoryList: [] - } + categoryList: [], + }; }, components: {}, computed: { @@ -312,23 +317,23 @@ export default { watch: {}, async created() { - this.getCategoryList() + this.getCategoryList(); }, async mounted() { - this.initMap() + this.initMap(); }, methods: { async getCategoryList() { - const url = '/sys/dict/data/dictlist' + const url = "/sys/dict/data/dictlist"; const params = { - dictType: 'self_org_category' - } - const { data, code, msg } = await requestPost(url, params) + dictType: "self_org_category", + }; + const { data, code, msg } = await requestPost(url, params); if (code === 0) { - this.categoryList = data + this.categoryList = data; } else { - this.$message.error(msg) + this.$message.error(msg); } }, handleAddStaff() { @@ -449,6 +454,22 @@ export default { message: "手机号格式有误", }); } + const { + dataForm: { organizationPersonnel }, + } = this; + let vlt = organizationPersonnel.every((item) => { + return ( + item.personName && + item.personPhone && + formVltHelper.userOrMobile(item.personPhone) + ); + }); + if (!vlt) { + return this.$message({ + type: "error", + message: "成员姓名/手机号为空或格式有误", + }); + } this.submit(); } }); diff --git a/src/views/modules/shequzhili/event/cpts/add.vue b/src/views/modules/shequzhili/event/cpts/add.vue index 6c689aca7..3bc967854 100644 --- a/src/views/modules/shequzhili/event/cpts/add.vue +++ b/src/views/modules/shequzhili/event/cpts/add.vue @@ -201,11 +201,11 @@ @@ -307,21 +307,7 @@ export default { ], formData: iniFmData(), - formDataTemp: { - address: "山东省青岛市市南区徐州路21号戊", - // categoryList: ["1015", "1016"], - eventContent: "asdfasdfasdfasdf", - gridId: "63d5ff92ea981b1c58e4914ac894c610", - happenTime: "2022-05-05 12:00:00", - idCard: "211103190909090909", - imageList: ["https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/internal/20220518/0818246db4cc4ac7bcd84bea69a8b38c.png"], - latitude: 36.07120507831775, - longitude: 120.38806572319174, - mobile: "15111111111", - name: "张三", - reportUserId: "", - sourceType: "1", - }, + //地图相关 @@ -406,6 +392,10 @@ export default { "formData.reportUserId": function (val) { this.$emit("changeUserId", val) }, + "formData.gridId": function (val) { + this.selGridId = val + this.$emit("changeGridId", val) + } }, async mounted () { @@ -415,9 +405,7 @@ export default { this.getCategoryList() this.initMap() - // this.formData = { - // ...this.formDataTemp - // } + }, methods: { @@ -442,7 +430,6 @@ export default { this.formData.mobile = selPerson.demandUserMobile this.formData.reportUserId = selPerson.demandUserId this.formData.idCard = selPerson.idCard - console.log(selPerson) this.personTableShow = false; @@ -460,7 +447,7 @@ export default { // const url = "http://yapi.elinkservice.cn/mock/245/epmetuser/epidemicPrevention/page" let params = { agencyId: '', - gridId: this.formData.gridId, + gridId: this.selGridId, name: "", } diff --git a/src/views/modules/shequzhili/event/cpts/event-detail.vue b/src/views/modules/shequzhili/event/cpts/event-detail.vue index 2853aa23b..4fa2288c5 100644 --- a/src/views/modules/shequzhili/event/cpts/event-detail.vue +++ b/src/views/modules/shequzhili/event/cpts/event-detail.vue @@ -70,18 +70,29 @@
查看需求
+
+ 满意度: +
{{info.satisfactionName}}
+
-
关闭
+ - + +

满意度评价

@@ -106,13 +117,11 @@
-
+
关闭 - 确定 @@ -225,9 +234,9 @@ export default { this.info = JSON.parse(JSON.stringify(this.eventDetailData)); //如果已经评价过,进行回显 - if (this.info.status === 'closed_case' && this.info.satisfactionName) { - this.changeSatisfyType(this.info.satisfaction) - } + // if (this.info.status === 'closed_case' && this.info.satisfactionName) { + // this.changeSatisfyType(this.info.satisfaction) + // } } // this.getApiData(); diff --git a/src/views/modules/shequzhili/event/cpts/event-info.vue b/src/views/modules/shequzhili/event/cpts/event-info.vue index b6569ada3..6a1346c8c 100644 --- a/src/views/modules/shequzhili/event/cpts/event-info.vue +++ b/src/views/modules/shequzhili/event/cpts/event-info.vue @@ -6,7 +6,8 @@ + @changeUserId="changeUserId" + @changeGridId="changeGridId">
@@ -15,7 +16,8 @@ + :demandUserMobile="demandUserMobile" + :gridId="gridId">
{ 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 7aafae755..8309e9307 100644 --- a/src/views/modules/shequzhili/event/cpts/process-form-project.vue +++ b/src/views/modules/shequzhili/event/cpts/process-form-project.vue @@ -128,14 +128,15 @@
-

选择标签

-
@@ -118,6 +119,10 @@ export default { type: String, default: "", }, + gridId: { + type: String, + default: "", + }, eventId: { type: String, default: "", diff --git a/src/views/modules/shequzhili/event/eventList.vue b/src/views/modules/shequzhili/event/eventList.vue index c3d146a4f..2664af1d8 100644 --- a/src/views/modules/shequzhili/event/eventList.vue +++ b/src/views/modules/shequzhili/event/eventList.vue @@ -254,11 +254,11 @@ size="small" class="div-table-button--edit">处理 - + class="div-table-button--edit">去评价
上报时间: - {{ eventInfo.createdTime }} + {{ eventInfo.happenTime }}
diff --git a/src/views/modules/visual/communityGovern/shijianchuli/shijianchulifenxi.vue b/src/views/modules/visual/communityGovern/shijianchuli/shijianchulifenxi.vue index 8893a3f56..3eb8819c9 100644 --- a/src/views/modules/visual/communityGovern/shijianchuli/shijianchulifenxi.vue +++ b/src/views/modules/visual/communityGovern/shijianchuli/shijianchulifenxi.vue @@ -299,6 +299,7 @@ export default { this.dataLoading = false + // this.assignData() }, @@ -423,11 +424,11 @@ export default { { name: "已完成", - value: data.closedRatio * 100 + value: Math.floor(data.closedRatio * 10000) / 100 }, { name: "处理中", - value: data.processingRatio * 100 + value: Math.floor(data.processingRatio * 10000) / 100 }, ] diff --git a/src/views/modules/visual/communityGovern/shijianfenlei/shijianfenleifenxi.vue b/src/views/modules/visual/communityGovern/shijianfenlei/shijianfenleifenxi.vue index 970060f73..337b8d787 100644 --- a/src/views/modules/visual/communityGovern/shijianfenlei/shijianfenleifenxi.vue +++ b/src/views/modules/visual/communityGovern/shijianfenlei/shijianfenleifenxi.vue @@ -104,6 +104,8 @@