From f5b6e68283cc58fcce7091a6aa6264ba62419546 Mon Sep 17 00:00:00 2001
From: mk <2403457699@qq.com>
Date: Mon, 29 Jul 2024 17:43:35 +0800
Subject: [PATCH] =?UTF-8?q?=E6=A0=B8=E5=AF=B9=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package.json | 3 +-
src/main.js | 3 +-
.../shequzhili/event/cpts/event-detail.vue | 101 +++-------
.../shequzhili/event/cpts/event-info.vue | 23 +--
.../event/cpts/process-form-assign.vue | 42 ++---
.../event/cpts/process-form-complete.vue | 176 ++++++++++--------
.../event/cpts/process-form-contact.vue | 61 +++---
.../event/cpts/process-form-process.vue | 46 +++--
.../shequzhili/event/cpts/process-form.vue | 28 +--
.../modules/shequzhili/event/eventList.vue | 2 +-
10 files changed, 223 insertions(+), 262 deletions(-)
diff --git a/package.json b/package.json
index 9ecdd713d..52c1b5237 100644
--- a/package.json
+++ b/package.json
@@ -62,7 +62,8 @@
"vue-quill-editor": "^3.0.6",
"vue-router": "^3.0.7",
"vuex": "^3.1.1",
- "xlsx": "^0.17.1"
+ "xlsx": "^0.17.1",
+ "dayjs": "^1.11.7"
},
"devDependencies": {
"@antv/f2": "^3.8.10-beta.1",
diff --git a/src/main.js b/src/main.js
index 06b3688d0..d6aa150ef 100644
--- a/src/main.js
+++ b/src/main.js
@@ -48,6 +48,7 @@ import PopTips from "@/components/PopTips/index.vue";
import PopHomeTip from "@/components/PopHomeTip/index.vue";
import NameSplit from "@/components/NameSplit/index.vue";
import RelationGraph from "relation-graph";
+import dayjs from 'dayjs'
// import AddNodeJw from "@/components/JwTree/addNode.vue";
//按钮
@@ -103,7 +104,7 @@ Vue.directive("fixed", {
// 挂载全局
Vue.prototype.$http = http;
Vue.prototype.$sensitive = desensitization;
-
+Vue.prototype.$dayjs = dayjs
// el-uploader的header配置
Vue.prototype.$getElUploadHeaders = () => ({
Authorization: localStorage.getItem("token") || "",
diff --git a/src/views/modules/shequzhili/event/cpts/event-detail.vue b/src/views/modules/shequzhili/event/cpts/event-detail.vue
index 2f0cd2bf0..08d2e013b 100644
--- a/src/views/modules/shequzhili/event/cpts/event-detail.vue
+++ b/src/views/modules/shequzhili/event/cpts/event-detail.vue
@@ -10,73 +10,75 @@
受理员编号
-
123456789
+
{{ info.clerkNumber || '--' }}
办结时限
-
2024-20-54
+
{{ info.closeCaseTime || '--' }}
工单编号
-
{{eventDetailData.workOrderNum}}
+
{{ info.workOrderNum || '--' }}
紧急程度
-
一版
+
{{ info.exigency || '--' }}
来电类别
-
诉求
+
{{ info.callCategory || '--' }}
信息来源
-
{{eventDetailData.sourceTypeName}}
+
{{ info.messageSource || '--' }}
是否回复
-
是
+
{{ info.replayed === 0 ? '不回复' : info.replayed ===
+ 1?'恢复':'--'}}
是否保密
-
是
+
{{ info.replayed ===
+ 0 ? '不保密' :info.replayed === 1?'保密':'--'}}
联系人
-
{{eventDetailData.name}}
+
{{ info.name || '--' }}
联系电话
-
{{eventDetailData.mobile || '--'}}
+
{{ info.mobile || '--' }}
联系地址
-
{{eventDetailData.address}}
+
{{ info.address || '--'}}
回复备注
-
+
{{ info.replayRemark || '--'}}
问题分类
-
+
{{ info.categoryAllName ||'--'}}
问题描述
- {{eventDetailData.eventContent}}
+ {{ info.eventContent || '--'}}
指派部门
-
+
{{ info.deptName || '--'}}
转办意见
-
{{ demandForm.content }}
+
{{ info.transferAdvice || '--'}}
办理要求
-
{{ demandForm.banliyaoqiu }}
+
{{ info.handlingReq || '--'}}
联系当事人时限
-
{{eventDetailData.contactTime}}
+
{{ info.contactTime || '--'}}
(部门)办结时限
-
{{eventDetailData.timeLimit}}
+
{{ info.timeLimit || '--'}}
@@ -97,22 +99,6 @@ function iniData() {
info: {},
eventDetailCopy: {},
showType: "",
- projectId: "",
- demandForm: {
- gridId: "",
- categoryCode: "",
- parentCode: "",
- content: "",
- reportType: "",
- reportUserName: "",
- reportUserMobile: "",
- reportTime: "",
- wantServiceTime: "",
- demandUserId: "",
- demandUserName: "",
- demandUserMobile: "",
- banliyaoqiu: ""
- },
satisfyLevel: "",
//满意度评价
showSatisfy: false,
@@ -174,9 +160,9 @@ export default {
}
this.$EventBus.$on('handelInputEventContent', ({ type, value }) => {
if (type === 'opinion') {
- this.demandForm.content = value
- } else if (type === 'banliyaoqiu') {
- this.demandForm.banliyaoqiu = value
+ this.info.transferAdvice = value;
+ } else if (type === 'handlingReq') {
+ this.info.handlingReq = value;
}
})
},
@@ -193,44 +179,7 @@ export default {
handleCloseEvent() {
this.$emit("handleClose");
},
-
async getApiData() { },
-
- //满意度评价
- handleSatisfy() {
- this.showSatisfy = true;
- },
-
- clickSatisfy(type) {
- if (this.info.satisfactionName) {
- return false;
- }
- this.satisfyLevel = type;
- },
-
- async handleComfirmSatisfy() {
- if (!this.satisfyLevel) {
- this.$message.info("请选择评价级别");
- }
- const url = "/governance/icEvent/comment";
- let params = {
- icEventId: this.eventId,
- satisfaction: this.satisfyLevel,
- };
- const { data, code, msg } = await requestPost(url, params);
- if (code === 0) {
- this.$message.success("评价成功");
- this.info.satisfactionName =
- this.satisfyLevel == "bad"
- ? "不满意"
- : this.satisfyLevel == "good"
- ? "满意"
- : "非常满意";
- this.showSatisfy = false;
- } else {
- this.$message.error(msg);
- }
- },
},
};
diff --git a/src/views/modules/shequzhili/event/cpts/event-info.vue b/src/views/modules/shequzhili/event/cpts/event-info.vue
index f00bae587..6af3a341e 100644
--- a/src/views/modules/shequzhili/event/cpts/event-info.vue
+++ b/src/views/modules/shequzhili/event/cpts/event-info.vue
@@ -320,7 +320,7 @@ export default {
async handleComfirm() {
this.startLoading();
- if (this.pageTypeCopy === "dispose" ||this.pageTypeCopy === "assign" ) {
+ if (this.pageTypeCopy === "dispose" ||this.pageTypeCopy === "assign" || this.pageTypeCopy === "check" ) {
await this.handelDispose();
}
this.endLoading();
@@ -338,16 +338,17 @@ export default {
}
},
async submitDispose(url, params) {
- const { data, code, msg } = await requestPost(url, {
- ...params,
- });
- if (code === 0) {
- this.$message.success("操作成功!");
-
- this.$emit("handleOk");
- } else {
- this.$message.error(msg);
- }
+ console.log(params);
+ // const { data, code, msg } = await requestPost(url, {
+ // ...params,
+ // });
+ // if (code === 0) {
+ // this.$message.success("操作成功!");
+
+ // this.$emit("handleOk");
+ // } else {
+ // this.$message.error(msg);
+ // }
},
handleClose() {
diff --git a/src/views/modules/shequzhili/event/cpts/process-form-assign.vue b/src/views/modules/shequzhili/event/cpts/process-form-assign.vue
index 520497ce0..10b341bcc 100644
--- a/src/views/modules/shequzhili/event/cpts/process-form-assign.vue
+++ b/src/views/modules/shequzhili/event/cpts/process-form-assign.vue
@@ -14,10 +14,10 @@