From 97c98379d59f5d89b3c6b95ea8a916bdd0765f5f Mon Sep 17 00:00:00 2001
From: MO <448233645@qq.com>
Date: Wed, 1 Nov 2023 10:18:06 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=90=88=E5=B9=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/utils/dict.js | 5 +-
src/views/ea/electronicAssets/index.vue | 37 ++++++--
src/views/ea/electronicConsultation/index.vue | 65 +++++++++++--
src/views/ea/electronicContracts/index.vue | 41 +++++++-
.../ea/electronicCustomerComplaint/index.vue | 48 ++++++++--
src/views/ea/electronicEmployee/index.vue | 93 +++++++++----------
6 files changed, 213 insertions(+), 76 deletions(-)
diff --git a/src/utils/dict.js b/src/utils/dict.js
index 8fef1731..f3b52249 100644
--- a/src/utils/dict.js
+++ b/src/utils/dict.js
@@ -157,7 +157,10 @@ export const DICT_TYPE = {
COMPLAINT_TYPE: 'complaint_type',
// 会计凭证完整性
ACCOUNTING_FILE_STATUS: 'accounting_file_status',
-
+//咨询类型
+CONSULTATION_TYPE: 'consultation_type',
+//资产类型
+ ASSET_TYPE: 'asset_type',
}
diff --git a/src/views/ea/electronicAssets/index.vue b/src/views/ea/electronicAssets/index.vue
index cc02cac9..e9ff45a2 100644
--- a/src/views/ea/electronicAssets/index.vue
+++ b/src/views/ea/electronicAssets/index.vue
@@ -10,12 +10,22 @@
label-width="98px"
>
-
+ >
+
+
+
-->
-
+
+
+
+
+
-
-
+
+
+
@@ -680,6 +698,9 @@ export default {
this.form.companyId = val.id;
this.form.company = val.organizationName;
},
+ handleCompanyChange1(val) {
+ this.queryParams.company = val.organizationName;
+ },
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate((valid) => {
diff --git a/src/views/ea/electronicConsultation/index.vue b/src/views/ea/electronicConsultation/index.vue
index 201eb486..637358e4 100644
--- a/src/views/ea/electronicConsultation/index.vue
+++ b/src/views/ea/electronicConsultation/index.vue
@@ -24,7 +24,12 @@
clearable
size="small"
>
-
+
@@ -143,7 +148,15 @@
label="咨询类型 "
align="center"
prop="consultationType"
- />
+ width="98px"
+ >
+
+
+
+
-
-
+
@@ -327,7 +344,12 @@
v-model="form.consultationType"
placeholder="请选择咨询类型 "
>
-
+
@@ -473,12 +495,17 @@ import Editor from "@/components/Editor";
import ScrollPane from "@/layout/components/TagsView/ScrollPane";
import { getSiteTree } from "@/api/setting/organization";
import { getOrganizationPage } from "@/api/setting/organization";
+import { listSimpleDepts } from "@/api/system/dept";
+import { listSimplePosts } from "@/api/system/post";
+import Treeselect from "@riophae/vue-treeselect";
+import "@riophae/vue-treeselect/dist/vue-treeselect.css";
export default {
name: "ElectronicConsultation",
components: {
ScrollPane,
Editor,
+ Treeselect,
},
data() {
return {
@@ -487,6 +514,8 @@ export default {
value: "pId",
multiple: false,
},
+ // 部门树选项
+ deptOptions: undefined,
// 遮罩层
loading: true,
optType: undefined,
@@ -539,6 +568,7 @@ export default {
this.getList();
this.getSiteList();
this.getOrganizationList();
+ this.getTreeselect();
},
methods: {
/** 查询列表 */
@@ -551,6 +581,27 @@ export default {
this.loading = false;
});
},
+ /** 查询部门下拉树结构 + 岗位下拉 */
+ getTreeselect() {
+ listSimpleDepts().then((response) => {
+ // 处理 deptOptions 参数
+ this.deptOptions = [];
+ this.deptOptions.push(...this.handleTree(response.data, "id"));
+ });
+ listSimplePosts().then((response) => {
+ // 处理 postOptions 参数
+ this.postOptions = [];
+ this.postOptions.push(...response.data);
+ });
+ },
+ // 格式化部门的下拉框
+ normalizer(node) {
+ return {
+ id: node.id,
+ label: node.name,
+ children: node.children,
+ };
+ },
// 获取业务实体
getOrganizationList() {
getOrganizationPage().then((response) => {
diff --git a/src/views/ea/electronicContracts/index.vue b/src/views/ea/electronicContracts/index.vue
index 294674cc..e508890e 100644
--- a/src/views/ea/electronicContracts/index.vue
+++ b/src/views/ea/electronicContracts/index.vue
@@ -380,10 +380,16 @@
-
-
-
+
+
@@ -577,6 +583,10 @@ import ImagePreview from "@/components/ImagePreview";
import WxVideoPlayer from "@/views/mp/components/wx-video-play/main";
import { getSiteTree } from "@/api/setting/organization";
import { getOrganizationPage } from "@/api/setting/organization";
+import { listSimpleDepts } from "@/api/system/dept";
+import { listSimplePosts } from "@/api/system/post";
+import Treeselect from "@riophae/vue-treeselect";
+import "@riophae/vue-treeselect/dist/vue-treeselect.css";
export default {
name: "ElectronicContracts",
@@ -584,6 +594,7 @@ export default {
WxVideoPlayer,
FileUpload,
ImagePreview,
+ Treeselect,
},
data() {
return {
@@ -594,6 +605,8 @@ export default {
},
getFileUrl: process.env.VUE_APP_BASE_API + "/admin-api/infra/file/",
imgs: null,
+ // 部门树选项
+ deptOptions: undefined,
// 遮罩层
loading: true,
optType: undefined,
@@ -659,6 +672,7 @@ export default {
this.getList();
this.getSiteList();
this.getOrganizationList();
+ this.getTreeselect();
},
methods: {
/** 查询列表 */
@@ -672,6 +686,27 @@ export default {
console.log(this.list);
});
},
+ /** 查询部门下拉树结构 + 岗位下拉 */
+ getTreeselect() {
+ listSimpleDepts().then((response) => {
+ // 处理 deptOptions 参数
+ this.deptOptions = [];
+ this.deptOptions.push(...this.handleTree(response.data, "id"));
+ });
+ listSimplePosts().then((response) => {
+ // 处理 postOptions 参数
+ this.postOptions = [];
+ this.postOptions.push(...response.data);
+ });
+ },
+ // 格式化部门的下拉框
+ normalizer(node) {
+ return {
+ id: node.id,
+ label: node.name,
+ children: node.children,
+ };
+ },
//获取归档位置
getSiteList() {
getSiteTree().then((response) => {
diff --git a/src/views/ea/electronicCustomerComplaint/index.vue b/src/views/ea/electronicCustomerComplaint/index.vue
index 77520f4d..c40b0a6a 100644
--- a/src/views/ea/electronicCustomerComplaint/index.vue
+++ b/src/views/ea/electronicCustomerComplaint/index.vue
@@ -17,14 +17,6 @@
@keyup.enter.native="handleQuery"
/>
-
-
-
-
-
+
+
@@ -517,11 +516,16 @@ import Editor from "@/components/Editor";
import { getSiteTree } from "@/api/setting/organization";
import { getOrganizationPage } from "@/api/setting/organization";
import { listUser } from "@/api/system/user";
+import { listSimpleDepts } from "@/api/system/dept";
+import { listSimplePosts } from "@/api/system/post";
+import Treeselect from "@riophae/vue-treeselect";
+import "@riophae/vue-treeselect/dist/vue-treeselect.css";
export default {
name: "ElectronicCustomerComplaint",
components: {
Editor,
+ Treeselect,
},
data() {
return {
@@ -530,6 +534,8 @@ export default {
value: "pId",
multiple: false,
},
+ // 部门树选项
+ deptOptions: undefined,
// 遮罩层
loading: true,
optType: undefined,
@@ -585,6 +591,7 @@ export default {
this.getSiteList();
this.getOrganizationList();
this.getUserList();
+ this.getTreeselect();
},
methods: {
/** 查询列表 */
@@ -597,6 +604,27 @@ export default {
this.loading = false;
});
},
+ /** 查询部门下拉树结构 + 岗位下拉 */
+ getTreeselect() {
+ listSimpleDepts().then((response) => {
+ // 处理 deptOptions 参数
+ this.deptOptions = [];
+ this.deptOptions.push(...this.handleTree(response.data, "id"));
+ });
+ listSimplePosts().then((response) => {
+ // 处理 postOptions 参数
+ this.postOptions = [];
+ this.postOptions.push(...response.data);
+ });
+ },
+ // 格式化部门的下拉框
+ normalizer(node) {
+ return {
+ id: node.id,
+ label: node.name,
+ children: node.children,
+ };
+ },
//获取归档位置
getSiteList() {
getSiteTree().then((response) => {
diff --git a/src/views/ea/electronicEmployee/index.vue b/src/views/ea/electronicEmployee/index.vue
index 9e37d863..624c9958 100644
--- a/src/views/ea/electronicEmployee/index.vue
+++ b/src/views/ea/electronicEmployee/index.vue
@@ -10,11 +10,14 @@
label-width="98px"
>
-
@@ -56,30 +59,6 @@
@keyup.enter.native="handleQuery"
/>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -639,11 +609,16 @@ import {
import Editor from "@/components/Editor";
import { getOrganizationPage } from "@/api/setting/organization";
import { getSiteTree } from "@/api/setting/organization";
+import { listSimpleDepts } from "@/api/system/dept";
+import { listSimplePosts } from "@/api/system/post";
+import Treeselect from "@riophae/vue-treeselect";
+import "@riophae/vue-treeselect/dist/vue-treeselect.css";
export default {
name: "ElectronicEmployee",
components: {
Editor,
+ Treeselect,
},
data() {
return {
@@ -652,6 +627,8 @@ export default {
value: "pId",
multiple: false,
},
+ // 部门树选项
+ deptOptions: undefined,
// 遮罩层
loading: true,
optType: undefined,
@@ -705,6 +682,7 @@ export default {
this.getList();
this.getOrganizationList();
this.getSiteList();
+ this.getTreeselect();
},
methods: {
/** 查询列表 */
@@ -717,6 +695,27 @@ export default {
this.loading = false;
});
},
+ /** 查询部门下拉树结构 + 岗位下拉 */
+ getTreeselect() {
+ listSimpleDepts().then((response) => {
+ // 处理 deptOptions 参数
+ this.deptOptions = [];
+ this.deptOptions.push(...this.handleTree(response.data, "id"));
+ });
+ listSimplePosts().then((response) => {
+ // 处理 postOptions 参数
+ this.postOptions = [];
+ this.postOptions.push(...response.data);
+ });
+ },
+ // 格式化部门的下拉框
+ normalizer(node) {
+ return {
+ id: node.id,
+ label: node.name,
+ children: node.children,
+ };
+ },
//获取归档位置
getSiteList() {
getSiteTree().then((response) => {