From 24272570465cd8064075edd07f615cd6177d0419 Mon Sep 17 00:00:00 2001 From: jianjun Date: Tue, 23 Aug 2022 10:42:27 +0800 Subject: [PATCH 01/19] =?UTF-8?q?=E5=8E=9F=E6=9D=A5=E7=9A=84=E7=A4=BE?= =?UTF-8?q?=E4=BC=9A=E7=BB=84=E7=BB=87=E6=B7=BB=E5=8A=A0=20=E5=A4=B4?= =?UTF-8?q?=E5=83=8F=E7=AD=89=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../communityService/shzz/cpts/edit.vue | 412 +++++++++++------- .../modules/communityService/shzz/index.vue | 4 +- 2 files changed, 264 insertions(+), 152 deletions(-) diff --git a/src/views/modules/communityService/shzz/cpts/edit.vue b/src/views/modules/communityService/shzz/cpts/edit.vue index af275e9dc..eb0aee65c 100644 --- a/src/views/modules/communityService/shzz/cpts/edit.vue +++ b/src/views/modules/communityService/shzz/cpts/edit.vue @@ -2,179 +2,209 @@
+ + +
+
+ + +
+ + + + + +
+
- -
- - - 查询 -
-
- 经度 - - - 纬度 - - -
-
-
+
取 消 确 定确 定 +
- diff --git a/src/views/modules/communityService/shzz/index.vue b/src/views/modules/communityService/shzz/index.vue index f8ce4fb51..8112c8c5f 100644 --- a/src/views/modules/communityService/shzz/index.vue +++ b/src/views/modules/communityService/shzz/index.vue @@ -139,10 +139,10 @@ 查看 - 积分记录 + @click="handleScore(scope.row)">积分记录--> Date: Tue, 23 Aug 2022 10:45:17 +0800 Subject: [PATCH 02/19] =?UTF-8?q?=E5=8E=9F=E6=9D=A5=E7=9A=84=E7=A4=BE?= =?UTF-8?q?=E4=BC=9A=E7=BB=84=E7=BB=87=E6=B7=BB=E5=8A=A0=20=E5=A4=B4?= =?UTF-8?q?=E5=83=8F=E7=AD=89=E8=B0=83=E6=95=B4=20=E5=8E=BB=E6=8E=89?= =?UTF-8?q?=E7=A7=AF=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/communityService/shzz/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/modules/communityService/shzz/index.vue b/src/views/modules/communityService/shzz/index.vue index 8112c8c5f..4c9cb6275 100644 --- a/src/views/modules/communityService/shzz/index.vue +++ b/src/views/modules/communityService/shzz/index.vue @@ -128,9 +128,9 @@ label="负责人电话"> - + label="积分"> --> Date: Tue, 23 Aug 2022 17:24:30 +0800 Subject: [PATCH 03/19] =?UTF-8?q?=E7=A4=BE=E4=BC=9A=E7=BB=84=E7=BB=87?= =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../communityService/shzz/cpts/edit.vue | 37 ++++++++++++------- .../modules/communityService/shzz/index.vue | 19 +++++++--- 2 files changed, 36 insertions(+), 20 deletions(-) diff --git a/src/views/modules/communityService/shzz/cpts/edit.vue b/src/views/modules/communityService/shzz/cpts/edit.vue index eb0aee65c..bcd5c95be 100644 --- a/src/views/modules/communityService/shzz/cpts/edit.vue +++ b/src/views/modules/communityService/shzz/cpts/edit.vue @@ -39,7 +39,7 @@ @@ -88,7 +88,7 @@ @@ -105,11 +105,19 @@ - + + 服务时间
- + +
@@ -116,17 +122,17 @@ align="center" width="50" /> + label="组织名称"> + label="服务内容"> - + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/modules/communityService/worklog/workLogDetail.vue b/src/views/modules/communityService/worklog/workLogDetail.vue new file mode 100644 index 000000000..a8dc01dc2 --- /dev/null +++ b/src/views/modules/communityService/worklog/workLogDetail.vue @@ -0,0 +1,209 @@ + + + + + + + From 60fa7ac723de14f3b4fdebf6ef6eef66d3f672fa Mon Sep 17 00:00:00 2001 From: jianjun Date: Wed, 24 Aug 2022 14:23:42 +0800 Subject: [PATCH 05/19] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E5=88=86=E7=B1=BB=20=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/workSys/workLog/edit.vue | 176 ++++++++++++ src/views/modules/workSys/workLog/list.vue | 295 +++++++++++++++++++++ 2 files changed, 471 insertions(+) create mode 100644 src/views/modules/workSys/workLog/edit.vue create mode 100644 src/views/modules/workSys/workLog/list.vue diff --git a/src/views/modules/workSys/workLog/edit.vue b/src/views/modules/workSys/workLog/edit.vue new file mode 100644 index 000000000..59311cbae --- /dev/null +++ b/src/views/modules/workSys/workLog/edit.vue @@ -0,0 +1,176 @@ + + + + + diff --git a/src/views/modules/workSys/workLog/list.vue b/src/views/modules/workSys/workLog/list.vue new file mode 100644 index 000000000..453a46bbb --- /dev/null +++ b/src/views/modules/workSys/workLog/list.vue @@ -0,0 +1,295 @@ + + + + + From c3a4843001d5b5483cb40b08b60cec6112bb9875 Mon Sep 17 00:00:00 2001 From: zxc <1272811460@qq.com> Date: Wed, 24 Aug 2022 14:28:39 +0800 Subject: [PATCH 06/19] worklog --- .../communityService/worklog/index.vue | 1040 ----------------- .../communityService/worklog/workLog.vue | 762 ++++++++++++ .../worklog/workLogDetail.vue | 158 +-- .../communityService/worklog/workLogForm.vue | 467 ++++++++ 4 files changed, 1278 insertions(+), 1149 deletions(-) delete mode 100644 src/views/modules/communityService/worklog/index.vue create mode 100644 src/views/modules/communityService/worklog/workLog.vue create mode 100644 src/views/modules/communityService/worklog/workLogForm.vue diff --git a/src/views/modules/communityService/worklog/index.vue b/src/views/modules/communityService/worklog/index.vue deleted file mode 100644 index 470ce4fa9..000000000 --- a/src/views/modules/communityService/worklog/index.vue +++ /dev/null @@ -1,1040 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/src/views/modules/communityService/worklog/workLog.vue b/src/views/modules/communityService/worklog/workLog.vue new file mode 100644 index 000000000..17f0079c2 --- /dev/null +++ b/src/views/modules/communityService/worklog/workLog.vue @@ -0,0 +1,762 @@ + + + + diff --git a/src/views/modules/communityService/worklog/workLogDetail.vue b/src/views/modules/communityService/worklog/workLogDetail.vue index a8dc01dc2..917d571be 100644 --- a/src/views/modules/communityService/worklog/workLogDetail.vue +++ b/src/views/modules/communityService/worklog/workLogDetail.vue @@ -4,120 +4,65 @@ - - - + + {{formData.serviceTypeName}} + - - - - - - - - + prop="gridName" + label-width="150px" + style="display: block"> + {{formData.gridName}} + - + prop="applicantName" + label-width="150px" + style="display: block"> + {{formData.areaCovered}} + + + + {{formData.applicantAddress}} - - + + {{formData.applicantContent}} - - - + + {{formData.applicantMobile}} - - - - - - + + {{formData.principalName}} - - - + + {{formData.serviceTime}} - - + + {{formData.remark}} @@ -125,7 +70,6 @@
取 消 -
@@ -134,9 +78,6 @@ import { Loading } from 'element-ui' // 引入Loading服务 -var map -var search -var markers var infoWindowList var geocoder // 新建一个正逆地址解析类 @@ -144,12 +85,11 @@ let loading // 加载动画 export default { data () { return { - workLogDetail: {}, + formData: {}, } }, components: {}, mounted () { - this.initMap() }, methods: { diff --git a/src/views/modules/communityService/worklog/workLogForm.vue b/src/views/modules/communityService/worklog/workLogForm.vue new file mode 100644 index 000000000..6765d69e9 --- /dev/null +++ b/src/views/modules/communityService/worklog/workLogForm.vue @@ -0,0 +1,467 @@ + + + + + + From f6a88767966d13be00a818b1c69cb8cf310cc9c9 Mon Sep 17 00:00:00 2001 From: jianjun Date: Wed, 24 Aug 2022 15:07:50 +0800 Subject: [PATCH 07/19] =?UTF-8?q?=E7=A4=BE=E4=BC=9A=E7=BB=84=E7=BB=87?= =?UTF-8?q?=E5=86=8D=E6=AC=A1=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../communityService/shzz/cpts/edit.vue | 10 ++-- .../modules/communityService/shzz/index.vue | 53 ++++++++++++++++--- 2 files changed, 52 insertions(+), 11 deletions(-) diff --git a/src/views/modules/communityService/shzz/cpts/edit.vue b/src/views/modules/communityService/shzz/cpts/edit.vue index bcd5c95be..8acdd3a6e 100644 --- a/src/views/modules/communityService/shzz/cpts/edit.vue +++ b/src/views/modules/communityService/shzz/cpts/edit.vue @@ -31,7 +31,7 @@ :on-progress="handleProgress" :on-success="handleImgSuccess" :before-upload="beforeImgUpload" - accept=".jpg,.jpeg,.png,.gif,.bmp,.pdf,.JPG,.JPEG,.PBG,.GIF,.BMP"> + accept=".jpg,.jpeg,.png,.gif,.bmp,.JPG,.JPEG,.PBG,.GIF,.BMP"> @@ -71,7 +71,7 @@ >
- - +
--> - +
-
联系电话
+
服务电话
新增 + 下载模板 - - + --> { + // this.download(res.data, title + '.xls') + if (res.headers["content-disposition"]) { + let fileName = window.decodeURI( + res.headers["content-disposition"].split(";")[1].split("=")[1] + ); + console.log("filename", fileName); + let blob = new Blob([res.data], { + type: "application/vnd.ms-excel", + }); + var url = window.URL.createObjectURL(blob); + var aLink = document.createElement("a"); + aLink.style.display = "none"; + aLink.href = url; + aLink.setAttribute("download", fileName); + document.body.appendChild(aLink); + aLink.click(); + document.body.removeChild(aLink); //下载完成移除元素 + window.URL.revokeObjectURL(url); //释放掉blob对象 + } else this.$message.error("下载失败"); + }) + .catch((err) => { + console.log("err", err); + return this.$message.error("网络错误"); + }); + }, + }, }; From 1dabe36d7b6439d99aa7f14e2be2bc234332ed7e Mon Sep 17 00:00:00 2001 From: jianjun Date: Wed, 24 Aug 2022 15:28:44 +0800 Subject: [PATCH 08/19] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E5=88=86=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/workSys/workLog/list.vue | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/views/modules/workSys/workLog/list.vue b/src/views/modules/workSys/workLog/list.vue index 453a46bbb..f53cc086c 100644 --- a/src/views/modules/workSys/workLog/list.vue +++ b/src/views/modules/workSys/workLog/list.vue @@ -202,12 +202,7 @@ export default { type: 'warning' }).then(() => { const url = '/heart/workdiaryService/serviceType/delete' - // const url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/gov/issue/issueprojectcategorydict/delcategory' - const param = { - customerId: this.customerId, - ids: [row.id] - } - window.app.ajax.post(url, param, + window.app.ajax.post(url, [row.id], (data, rspMsg) => { this.$message.success('操作成功') this.loadData() From e2f43eabaac7728ff408e5451edc64ab49ce90fc Mon Sep 17 00:00:00 2001 From: jianjun Date: Wed, 24 Aug 2022 16:03:56 +0800 Subject: [PATCH 09/19] =?UTF-8?q?=E7=A4=BE=E4=BC=9A=E7=BB=84=E7=BB=87bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/communityService/shzz/cpts/edit.vue | 12 +++++++++--- src/views/modules/communityService/shzz/index.vue | 1 + 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/views/modules/communityService/shzz/cpts/edit.vue b/src/views/modules/communityService/shzz/cpts/edit.vue index 8acdd3a6e..993ca6ab8 100644 --- a/src/views/modules/communityService/shzz/cpts/edit.vue +++ b/src/views/modules/communityService/shzz/cpts/edit.vue @@ -294,6 +294,7 @@ export default { props: {}, watch: { "dataForm.serviceTime": function (val) { + console.log("watch start"+val+'_'+Array.isArray(val)) if (Array.isArray(val) && val.length == 2) { this.dataForm.serviceStartTime = val[0]; this.dataForm.serviceEndTime = val[1]; @@ -440,7 +441,7 @@ export default { async loadAgency() { const url = "/epmetuser/customerstaff/staffbasicinfo"; let params = {}; - + console.log("======loadAgency") const {data, code, msg} = await requestPost(url, params); if (code === 0) { @@ -490,6 +491,7 @@ export default { }, async submit() { + let url = ""; if (this.formType === "add") { url = "/heart/societyorg/add"; @@ -522,6 +524,9 @@ export default { }, resetData() { this.societyId = ""; //小区ID + this.$refs.ref_form.resetFields(); + this.propertyFormShow = false; + /* this.dataForm = { societyName: "", serviceMatters: "", @@ -534,8 +539,9 @@ export default { address: "", longitude: "", latitude: "", - }; - this.propertyFormShow = false; + imageList:[] + };*/ + }, // 开启加载动画 startLoading() { diff --git a/src/views/modules/communityService/shzz/index.vue b/src/views/modules/communityService/shzz/index.vue index a130cf446..333e082db 100644 --- a/src/views/modules/communityService/shzz/index.vue +++ b/src/views/modules/communityService/shzz/index.vue @@ -258,6 +258,7 @@ export default { }, watch: { "fmData.serviceTime": function (val) { + console.log("watch start"+val+'_'+Array.isArray(val)) if (Array.isArray(val) && val.length == 2) { this.fmData.serviceStartTime = val[0]; this.fmData.serviceEndTime = val[1]; From 10c6828e70dd3e72ff9c8a581505dcf998c32008 Mon Sep 17 00:00:00 2001 From: jianjun Date: Wed, 24 Aug 2022 16:10:56 +0800 Subject: [PATCH 10/19] =?UTF-8?q?=E7=A4=BE=E4=BC=9A=E7=BB=84=E7=BB=87bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/communityService/shzz/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/modules/communityService/shzz/index.vue b/src/views/modules/communityService/shzz/index.vue index 333e082db..e9a6c504d 100644 --- a/src/views/modules/communityService/shzz/index.vue +++ b/src/views/modules/communityService/shzz/index.vue @@ -114,7 +114,7 @@ excel导出 + size="small">导出
Date: Wed, 24 Aug 2022 16:26:53 +0800 Subject: [PATCH 11/19] =?UTF-8?q?=E7=A4=BE=E4=BC=9A=E7=BB=84=E7=BB=87?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E6=A1=86=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/communityService/shzz/index.vue | 281 ++++++++++-------- 1 file changed, 162 insertions(+), 119 deletions(-) diff --git a/src/views/modules/communityService/shzz/index.vue b/src/views/modules/communityService/shzz/index.vue index e9a6c504d..46c1405c9 100644 --- a/src/views/modules/communityService/shzz/index.vue +++ b/src/views/modules/communityService/shzz/index.vue @@ -21,20 +21,20 @@
- +
@@ -50,9 +50,7 @@
- - - +
服务时间
-
+ 查询 + @click="handleSearch">查询 +
@@ -89,11 +104,13 @@
新增 + @click="handleAdd">新增 + 下载模板 + @click="handleExportModule('room')">下载模板 + {{ - importBtnTitle - }} + importBtnTitle + }} + 导出 + size="small">导出 +
+ width="50"/> - + + label="服务电话"> - + label="服务时间"> + 查看 - + size="small">查看 + + 编辑 + style="margin-right: 10px; color: #00a7a9">编辑 + 删除 + style="color: #d51010">删除 + @@ -210,16 +232,16 @@