diff --git a/src/views/ea/electronicCustomerComplaint/index.vue b/src/views/ea/electronicCustomerComplaint/index.vue
index 3f10e5b4..4e04d925 100644
--- a/src/views/ea/electronicCustomerComplaint/index.vue
+++ b/src/views/ea/electronicCustomerComplaint/index.vue
@@ -17,21 +17,6 @@
@keyup.enter.native="handleQuery"
/>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -73,19 +60,6 @@
:default-time="['00:00:00', '23:59:59']"
/>
-
-
-
-
-
-
-
-
-
-
-
- {{ parseTime(scope.row.createTime) }}
-
-
@@ -218,7 +181,7 @@
width="98px"
>
- {{ parseTime(scope.row.complaintTime) }}
+ {{ parseTime2(scope.row.complaintTime) }}
- {{ parseTime(scope.row.handleTime) }}
+ {{ parseTime2(scope.row.handleTime) }}
@@ -292,12 +255,30 @@
/>
+
+
+
+ {{ parseTime(scope.row.createTime) }}
+
+
+ 查看
+
-->
-
+
+
+
+
@@ -407,13 +401,22 @@
-
+
+
+
+
-
-
-
@@ -426,7 +429,6 @@
/>
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
@@ -515,24 +495,15 @@
-
-
-
-
-
-
-
+
+
+
@@ -549,6 +520,9 @@ import {
exportElectronicCustomerComplaintExcel,
} from "@/api/ea/electronicCustomerComplaint/electronicCustomerComplaint";
import Editor from "@/components/Editor";
+import { getSiteTree } from "@/api/setting/organization";
+import { getOrganizationPage } from "@/api/setting/organization";
+import { listUser } from "@/api/system/user";
export default {
name: "ElectronicCustomerComplaint",
@@ -557,8 +531,14 @@ export default {
},
data() {
return {
+ propName: {
+ label: "pName",
+ value: "pId",
+ multiple: false,
+ },
// 遮罩层
loading: true,
+ optType: undefined,
// 导出遮罩层
exportLoading: false,
// 显示搜索条件
@@ -600,10 +580,17 @@ export default {
form: {},
// 表单校验
rules: {},
+ siteOptions: [], //归档位置数据
+ siteArray: [], //归档位置选中值
+ organizationList: [],
+ userOptions: [], //用户数据
};
},
created() {
this.getList();
+ this.getSiteList();
+ this.getOrganizationList();
+ this.getUserList();
},
methods: {
/** 查询列表 */
@@ -616,6 +603,57 @@ export default {
this.loading = false;
});
},
+ //获取归档位置
+ 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];
+ }
+ },
+ // 获取业务实体
+ getOrganizationList() {
+ getOrganizationPage().then((response) => {
+ this.organizationList = response.data.list;
+ });
+ },
+ // 业务实体选择事件
+ handleCompanyChange(val) {
+ this.form.companyId = val.id;
+ this.form.company = val.organizationName;
+ },
+ //获取用户
+ getUserList() {
+ listUser().then((response) => {
+ this.userOptions = response.data.list;
+ });
+ },
/** 取消按钮 */
cancel() {
this.open = false;
@@ -661,11 +699,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;
+ getElectronicCustomerComplaint(id).then((response) => {
+ this.form = response.data;
+ this.open = true;
+ this.title = "查看客诉档案";
+ });
+ },
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
+ this.optType = "edit";
const id = row.id;
getElectronicCustomerComplaint(id).then((response) => {
this.form = response.data;