diff --git a/src/views/ea/electronicConsultation/index.vue b/src/views/ea/electronicConsultation/index.vue
index a6392a76..1af34a42 100644
--- a/src/views/ea/electronicConsultation/index.vue
+++ b/src/views/ea/electronicConsultation/index.vue
@@ -17,16 +17,6 @@
@keyup.enter.native="handleQuery"
/>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ parseTime(scope.row.createTime) }}
-
-
@@ -247,7 +185,7 @@
width="98px"
>
- {{ parseTime(scope.row.handleTime) }}
+ {{ parseTime2(scope.row.handleTime) }}
@@ -275,7 +213,7 @@
width="98px"
>
- {{ parseTime(scope.row.recordTime) }}
+ {{ parseTime2(scope.row.recordTime) }}
@@ -292,12 +230,32 @@
/>
+
+
+
+ {{ parseTime(scope.row.createTime) }}
+
+
+ 查看
+
-
-
+
+
+
+
@@ -440,7 +406,6 @@
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
@@ -512,24 +455,12 @@
-
-
-
-
-
-
-
@@ -547,6 +478,8 @@ import {
} from "@/api/ea/electronicConsultation/electronicConsultation";
import Editor from "@/components/Editor";
import ScrollPane from "@/layout/components/TagsView/ScrollPane";
+import { getSiteTree } from "@/api/setting/organization";
+import { getOrganizationPage } from "@/api/setting/organization";
export default {
name: "ElectronicConsultation",
@@ -558,6 +491,7 @@ export default {
return {
// 遮罩层
loading: true,
+ optType: undefined,
// 导出遮罩层
exportLoading: false,
// 显示搜索条件
@@ -599,10 +533,14 @@ export default {
form: {},
// 表单校验
rules: {},
+ siteOptions: [], //归档位置数据
+ siteArray: [], //归档位置选中值
};
},
created() {
this.getList();
+ this.getSiteList();
+ this.getOrganizationList();
},
methods: {
/** 查询列表 */
@@ -615,6 +553,51 @@ export default {
this.loading = false;
});
},
+ // 获取业务实体
+ getOrganizationList() {
+ getOrganizationPage().then((response) => {
+ this.organizationList = response.data.list;
+ });
+ },
+ // 业务实体选择事件
+ handleCompanyChange(val) {
+ this.form.companyId = val.id;
+ this.form.company = val.organizationName;
+ },
+ //获取归档位置
+ getSiteList() {
+ getSiteTree().then((response) => {
+ this.siteOptions = response.data;
+ this.siteOptions.map((w) => {
+ w.children.map((l) => {
+ let lstr = JSON.stringify(l.children)
+ .replace(/depotId/g, "lId")
+ .replace(/cabinetId/g, "pId")
+ .replace(/cabinetName/g, "pName");
+ l.children = JSON.parse(lstr);
+ });
+
+ let wstr = JSON.stringify(w.children)
+ .replace(/organizationId/g, "wId")
+ .replace(/depotId/g, "pId")
+ .replace(/depotName/g, "pName");
+ w.children = JSON.parse(wstr);
+ });
+ let ostr = JSON.stringify(this.siteOptions)
+ .replace(/organizationId/g, "pId")
+ .replace(/organizationName/g, "pName");
+ this.siteOptions = JSON.parse(ostr);
+ // console.log(this.siteOptions);
+ });
+ },
+ //选择默认的归档位置
+ handleSiteChanged(obj) {
+ if (obj != null) {
+ this.form.organizationId = obj[0];
+ this.form.depotId = obj[1];
+ this.form.cabinetId = obj[2];
+ }
+ },
/** 取消按钮 */
cancel() {
this.open = false;
@@ -660,11 +643,24 @@ export default {
handleAdd() {
this.reset();
this.open = true;
+ this.optType = "add";
this.title = "添加咨询档案";
},
+ /** 查看按钮操作 */
+ handleView(row) {
+ this.reset();
+ this.optType = "view";
+ const id = row.id;
+ getElectronicConsultation(id).then((response) => {
+ this.form = response.data;
+ this.open = true;
+ this.title = "查看咨询档案";
+ });
+ },
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
+ this.optType = "edit";
const id = row.id;
getElectronicConsultation(id).then((response) => {
this.form = response.data;