1081 lines
97 KiB
JavaScript
1081 lines
97 KiB
JavaScript
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-2802ddd8"], { "12d3": function(e, t, n) {
|
||
"use strict";
|
||
n("9bf8");
|
||
}, "14fc": function(e, t, n) {
|
||
"use strict";
|
||
n.r(t);
|
||
var a = function() {
|
||
var e2 = this, t2 = e2.$createElement, n2 = e2._self._c || t2;
|
||
return n2("div", { staticClass: "app-container bgHeight" }, [n2("el-tabs", { attrs: { value: e2.activeName, type: "border-card" }, on: { "tab-click": e2.handleClick } }, [n2("el-tab-pane", { attrs: { label: "房间管理", name: "house" } }, [n2("house-List", { directives: [{ name: "show", rawName: "v-show", value: "house" === e2.activeName, expression: "activeName === 'house'" }] })], 1), e2._v(" "), n2("el-tab-pane", { attrs: { label: "单元管理", name: "unit" } }, [n2("unit-List", { directives: [{ name: "show", rawName: "v-show", value: "unit" === e2.activeName, expression: "activeName === 'unit'" }] })], 1), e2._v(" "), n2("el-tab-pane", { attrs: { label: "楼栋管理", name: "building" } }, [n2("building-List", { directives: [{ name: "show", rawName: "v-show", value: "building" === e2.activeName, expression: "activeName === 'building'" }] })], 1), e2._v(" "), n2("el-tab-pane", { attrs: { label: "管理区管理", name: "area" } }, [n2("area-Manage", { directives: [{ name: "show", rawName: "v-show", value: "area" === e2.activeName, expression: "activeName === 'area'" }] })], 1), e2._v(" "), n2("el-tab-pane", { attrs: { label: "房屋数据异常", name: "anomaly" } }, [n2("house-anomaly-list", { directives: [{ name: "show", rawName: "v-show", value: "anomaly" === e2.activeName, expression: "activeName === 'anomaly'" }] })], 1)], 1)], 1);
|
||
}, i = [], o = function() {
|
||
var e2 = this, t2 = e2.$createElement, n2 = e2._self._c || t2;
|
||
return n2("div", [n2("div", { staticClass: "filter-container" }, [n2("el-form", { staticClass: "demo-form-inline", attrs: { inline: true, model: e2.searchForm } }, [n2("el-form-item", [n2("el-input", { attrs: { placeholder: "楼栋名称", clearable: "" }, model: { value: e2.searchForm.name, callback: function(t3) {
|
||
e2.$set(e2.searchForm, "name", t3);
|
||
}, expression: "searchForm.name" } })], 1), e2._v(" "), n2("el-form-item", { attrs: { prop: "memberId" } }, [n2("el-select", { attrs: { clearable: "", placeholder: "楼栋负责人", filterable: "" }, model: { value: e2.searchForm.memberId, callback: function(t3) {
|
||
e2.$set(e2.searchForm, "memberId", t3);
|
||
}, expression: "searchForm.memberId" } }, e2._l(e2.engineerList, (function(e3) {
|
||
return n2("el-option", { key: e3.id, attrs: { label: e3.name, value: e3.id } });
|
||
})), 1)], 1), e2._v(" "), n2("el-form-item", [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.onSearch } }, [e2._v("查询")])], 1), e2._v(" "), n2("el-form-item", [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: e2.resetForm } }, [e2._v("重置")])], 1), e2._v(" "), n2("el-form-item", { staticStyle: { float: "right" } }, [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.buildingAdd } }, [e2._v("添加楼栋")])], 1)], 1)], 1), e2._v(" "), n2("el-table", { attrs: { border: "", fit: "", "highlight-current-row": "", data: e2.buildList, "header-cell-style": e2.headClass } }, [n2("el-table-column", { attrs: { label: "#", align: "center", width: "50" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.$index + (e2.searchForm.pageNumber - 1) * e2.searchForm.pageSize + 1) + "\n ")])];
|
||
} }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", label: "编号" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.code))])];
|
||
} }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", label: "所属管理区" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.precinctName))])];
|
||
} }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", label: "楼栋名称" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.name))])];
|
||
} }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", label: "楼栋负责人" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.memberName || "-"))])];
|
||
} }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", label: "操作人" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.updaterName || "-"))])];
|
||
} }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", label: "操作时间" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.updateTime || "-"))])];
|
||
} }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", label: "操作" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(n3) {
|
||
return e2.editBuliding(t3.row);
|
||
} } }, [e2._v("编辑")]), e2._v(" "), n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(n3) {
|
||
return e2.deleteBuliding(t3.row.id);
|
||
} } }, [e2._v("删除")])];
|
||
} }]) })], 1), e2._v(" "), n2("div", { staticClass: "paginations" }, [n2("el-pagination", { attrs: { background: "", "current-page": e2.searchForm.pageNumber, "page-sizes": [10, 30, 50, 100, 200], "page-size": e2.searchForm.pageSize, layout: "total, sizes, prev, pager, next, jumper", total: e2.total }, on: { "update:currentPage": function(t3) {
|
||
return e2.$set(e2.searchForm, "pageNumber", t3);
|
||
}, "update:current-page": function(t3) {
|
||
return e2.$set(e2.searchForm, "pageNumber", t3);
|
||
}, "size-change": e2.handleSizeChange, "current-change": e2.handleCurrentChange } })], 1)], 1);
|
||
}, r = [], s = n("333d"), l = n("e10e"), c = n("2b74"), u = { components: { Pagination: s["a"] }, data: function() {
|
||
return { total: 0, building: [], engineerList: [], searchForm: { memberId: "", pageNumber: 1, pageSize: 10, type: "", id: "", projectCode: "" }, buildList: [] };
|
||
}, created: function() {
|
||
this.searchForm.projectCode = this.$store.state.community_uuid, this.headClass();
|
||
}, methods: { getEngineer: function() {
|
||
var e2 = this;
|
||
Object(l["m"])({ id: this.$store.state.id }).then((function(t2) {
|
||
e2.engineerList = t2.data;
|
||
}));
|
||
}, deleteBuliding: function(e2) {
|
||
var t2 = this;
|
||
this.$confirm("确定删除该数据吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "info", center: true }).then((function() {
|
||
Object(c["i"])({ id: e2 }).then((function(e3) {
|
||
0 == e3.code && (t2.$message({ type: "success", message: "删除成功!" }), t2.getList());
|
||
}));
|
||
}));
|
||
}, editBuliding: function(e2) {
|
||
this.$router.push({ path: "/projectProfile/editBuilding", query: { data: e2 } });
|
||
}, getBuild: function() {
|
||
var e2 = this;
|
||
Object(c["h"])({ pageNumber: -1, pageSize: -1, projectCode: this.$store.state.community_uuid }).then((function(t2) {
|
||
e2.building = t2.data.records;
|
||
}));
|
||
}, getList: function() {
|
||
var e2 = this;
|
||
Object(c["h"])(this.searchForm).then((function(t2) {
|
||
e2.buildList = t2.data.records, e2.total = t2.data.rowsCount;
|
||
}));
|
||
}, buildingAdd: function() {
|
||
this.$router.push({ path: "/projectProfile/buildingAdd" });
|
||
}, handleSizeChange: function(e2) {
|
||
this.searchForm.pageSize = e2, this.getList();
|
||
}, handleCurrentChange: function(e2) {
|
||
this.searchForm.pageNumber = e2, this.getList();
|
||
}, onSearch: function() {
|
||
this.searchForm.pageNumber = 1, this.getList();
|
||
}, resetForm: function() {
|
||
this.searchForm.pageNumber = 1, this.searchForm.memberId = "", this.searchForm.name = "", this.getList();
|
||
}, headClass: function() {
|
||
return "text-align:center;background:#FAFAFA;";
|
||
} }, mounted: function() {
|
||
this.getBuild(), this.getList(), this.getEngineer();
|
||
} }, d = u, m = (n("7b74"), n("829d")), p = Object(m["a"])(d, o, r, false, null, "a1ab2dee", null), h = p.exports, f = function() {
|
||
var e2 = this, t2 = e2.$createElement, n2 = e2._self._c || t2;
|
||
return n2("div", [n2("div", { staticClass: "filter-container" }, [n2("el-form", { staticClass: "demo-form-inline", attrs: { inline: true, model: e2.searchForm } }, [n2("el-form-item", { attrs: { label: "", prop: "name" } }, [n2("el-input", { attrs: { placeholder: "输入单元名称", clearable: "" }, model: { value: e2.searchForm.name, callback: function(t3) {
|
||
e2.$set(e2.searchForm, "name", t3);
|
||
}, expression: "searchForm.name" } })], 1), e2._v(" "), n2("el-form-item", [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.onSearch } }, [e2._v("查询")])], 1), e2._v(" "), n2("el-form-item", [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: e2.resetForm } }, [e2._v("重置")])], 1), e2._v(" "), n2("el-form-item", { staticStyle: { float: "right" } }, [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.addUnitBtn } }, [e2._v("添加单元")])], 1)], 1)], 1), e2._v(" "), n2("el-table", { attrs: { border: "", fit: "", "highlight-current-row": "", data: e2.unitList, "header-cell-style": e2.headClass } }, [n2("el-table-column", { attrs: { label: "#", align: "center", width: "50" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.$index + (e2.searchForm.pageNumber - 1) * e2.searchForm.pageSize + 1) + "\n ")])];
|
||
} }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", label: "编号" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.unitCode))])];
|
||
} }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", label: "单元名称" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.name))])];
|
||
} }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", label: "所属楼栋" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.buildingName))])];
|
||
} }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", label: "所属管理区" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.precinctName))])];
|
||
} }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", label: "操作人" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.updaterName || "-"))])];
|
||
} }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", label: "操作时间" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.updateTime || "-"))])];
|
||
} }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", label: "操作", width: "120" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(n3) {
|
||
return e2.editUnit(t3.row);
|
||
} } }, [e2._v("编辑")]), e2._v(" "), n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(n3) {
|
||
return e2.editDelete(t3.row.id);
|
||
} } }, [e2._v("删除")])];
|
||
} }]) })], 1), e2._v(" "), n2("div", { staticClass: "paginations" }, [n2("el-pagination", { attrs: { background: "", "current-page": e2.searchForm.pageNumber, "page-sizes": [10, 30, 50, 100, 200], "page-size": e2.searchForm.pageSize, layout: "total, sizes, prev, pager, next, jumper", total: e2.total }, on: { "update:currentPage": function(t3) {
|
||
return e2.$set(e2.searchForm, "pageNumber", t3);
|
||
}, "update:current-page": function(t3) {
|
||
return e2.$set(e2.searchForm, "pageNumber", t3);
|
||
}, "size-change": e2.handleSizeChange, "current-change": e2.handleCurrentChange } })], 1), e2._v(" "), n2("el-dialog", { staticClass: "dialogHead", attrs: { title: "添加单元", visible: e2.unit_add_dialogVisible, "show-close": true, "close-on-press-escape": false, "close-on-click-modal": false, width: "30%" }, on: { "update:visible": function(t3) {
|
||
e2.unit_add_dialogVisible = t3;
|
||
} } }, [n2("el-form", { ref: "addForm", attrs: { model: e2.addForm, "label-width": "82px" } }, [n2("el-form-item", { attrs: { label: "所属管理区", prop: "precinctId" } }, [n2("el-select", { attrs: { filterable: "" }, on: { change: e2.selectChange }, model: { value: e2.addForm.precinctId, callback: function(t3) {
|
||
e2.$set(e2.addForm, "precinctId", t3);
|
||
}, expression: "addForm.precinctId" } }, e2._l(e2.areaOptions, (function(e3) {
|
||
return n2("el-option", { key: e3.id, attrs: { label: e3.name, value: e3.id } });
|
||
})), 1)], 1), e2._v(" "), n2("el-form-item", { attrs: { label: "所属楼栋", prop: "buildingId", rules: [{ required: true, message: "请选择所属楼栋", trigger: "change" }] } }, [n2("el-select", { attrs: { filterable: "", placeholder: "请选择" }, model: { value: e2.addForm.buildingId, callback: function(t3) {
|
||
e2.$set(e2.addForm, "buildingId", t3);
|
||
}, expression: "addForm.buildingId" } }, e2._l(e2.buildList, (function(e3) {
|
||
return n2("el-option", { key: e3.id, attrs: { label: e3.name, value: e3.id } });
|
||
})), 1)], 1), e2._v(" "), n2("el-form-item", { attrs: { label: "单元名称", prop: "name", rules: [{ required: true, message: "请填写单元名称", trigger: "blur" }] } }, [n2("el-input", { model: { value: e2.addForm.name, callback: function(t3) {
|
||
e2.$set(e2.addForm, "name", t3);
|
||
}, expression: "addForm.name" } })], 1)], 1), e2._v(" "), n2("span", { staticClass: "dialog-footer", attrs: { slot: "footer" }, slot: "footer" }, [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
|
||
e2.unit_add_dialogVisible = false;
|
||
} } }, [e2._v("取 消")]), e2._v(" "), n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: function(t3) {
|
||
return e2.addUnit("addForm");
|
||
} } }, [e2._v("确 定")])], 1)], 1)], 1);
|
||
}, g = [], b = { components: {}, data: function() {
|
||
return { total: 0, unit_add_dialogVisible: false, areaOptions: [], addForm: { name: "", projectCode: "", buildingId: "", precinctId: "" }, searchForm: { pageNumber: 1, pageSize: 10, name: "" }, unitList: [], buildList: [] };
|
||
}, created: function() {
|
||
this.headClass();
|
||
}, methods: { editUnit: function(e2) {
|
||
this.$router.push({ path: "/projectProfile/editUnit", query: { data: e2 } });
|
||
}, editDelete: function(e2) {
|
||
var t2 = this;
|
||
this.$confirm("确定删除该数据吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "info", center: true }).then((function() {
|
||
Object(c["lb"])({ id: e2 }).then((function(e3) {
|
||
0 == e3.code && (t2.$message({ type: "success", message: "删除成功!" }), t2.getList());
|
||
}));
|
||
}));
|
||
}, getList: function() {
|
||
var e2 = this;
|
||
this.searchForm.projectCode = this.$store.state.community_uuid, Object(c["mb"])(this.searchForm).then((function(t2) {
|
||
e2.unitList = t2.data.records, e2.total = t2.data.rowsCount;
|
||
}));
|
||
}, selectChange: function(e2) {
|
||
var t2 = this, n2 = { precinctId: e2, projectCode: this.$store.state.community_uuid, projectName: this.$store.state.community_name, pageNumber: -1, pageSize: -1 };
|
||
Object(c["x"])(n2).then((function(e3) {
|
||
t2.buildList = e3.data, t2.addForm.buildingId = e3.data[0].id;
|
||
}));
|
||
}, areaManageSelect: function() {
|
||
var e2 = this, t2 = { projectUuid: this.$store.state.community_uuid, pageNumber: -1, pageSize: -1 };
|
||
Object(c["f"])(t2).then((function(t3) {
|
||
0 === t3.code && (e2.areaOptions = t3.data, e2.addForm.precinctId = t3.data[0].id, e2.selectChange(e2.addForm.precinctId));
|
||
}));
|
||
}, handleSizeChange: function(e2) {
|
||
this.searchForm.pageSize = e2, this.getList();
|
||
}, handleCurrentChange: function(e2) {
|
||
this.searchForm.pageNumber = e2, this.getList();
|
||
}, onSearch: function() {
|
||
this.searchForm.pageNumber = 1, this.getList();
|
||
}, resetForm: function() {
|
||
this.searchForm.pageNumber = 1, this.searchForm.name = "";
|
||
}, addUnitBtn: function() {
|
||
this.addForm.name = "", this.unit_add_dialogVisible = true;
|
||
}, headClass: function() {
|
||
return "text-align:center;background:#FAFAFA;";
|
||
}, addUnit: function(e2) {
|
||
var t2 = this;
|
||
this.$refs[e2].validate((function(e3) {
|
||
if (!e3) return false;
|
||
t2.addForm.projectCode = t2.$store.state.community_uuid, t2.addForm.updaterName = t2.$store.state.user.userInfo.memberName, t2.addForm.createUserId = t2.$store.state.user.userInfo.memberId, Object(c["b"])(t2.addForm).then((function(e4) {
|
||
t2.$message({ message: "添加成功", type: "success" }), t2.unit_add_dialogVisible = false, t2.pageNumber = 1, t2.getList();
|
||
}));
|
||
}));
|
||
} }, mounted: function() {
|
||
this.getList(), this.areaManageSelect();
|
||
} }, v = b, y = (n("9ae9"), Object(m["a"])(v, f, g, false, null, "e5a38c8e", null)), _ = y.exports, w = function() {
|
||
var e2 = this, t2 = e2.$createElement, n2 = e2._self._c || t2;
|
||
return n2("div", [e2.houseDetailShow ? e2._e() : n2("div", [e2.isRecycleBin ? n2("el-page-header", { staticClass: "recycleBinPageHeader", attrs: { content: "房间回收站" }, on: { back: e2.goBackHouseList } }) : e2._e(), e2._v(" "), n2("div", { staticClass: "filter-container" }, [e2.isRecycleBin ? e2._e() : n2("div", { staticStyle: { float: "right", "margin-right": "150px" } }, [n2("i", { staticClass: "el-icon-warning", staticStyle: { color: "#efa23c" }, attrs: { slot: "reference" }, slot: "reference" }), e2._v(" "), n2("el-popover", { attrs: { placement: "top-start", width: "400", trigger: "hover", content: "1、房间管理:\n①初始房间在导入前,必须先创建好【管理区】方可导入;\n②房屋添加/信息修改后,需在业财税银-元数据管理,进行核定;\n③房屋导入后未进行元数据核定,可进行彻底删除,如已核定,无法彻底删除,如核定后不小心删除,可在【回收站】恢复;\n\n2、仪表管理:\n①导入初始房屋仪表前,必须先导入初始房间;\n②如仪表较多,可导出设备模板,完善信息后导入设备信息;如数量不多,可单个添加;\n③设备查看/删除可在【查看】界面进行查看/修改/删除仪表设备;\n\n3、其他:\n①房屋责任人绑定:绑定后该人员负责人房间,如有欠费,系统每日九点发送催缴信息进行提醒;\n②房屋信息支持导出;\n③房屋信息/设备信息修改后,需进行元数据核定(信息同步)" } }, [n2("el-button", { attrs: { slot: "reference", type: "text" }, slot: "reference" }, [e2._v("操作指引")])], 1)], 1), e2._v(" "), n2("el-form", { ref: "query", staticClass: "demo-form-inline", attrs: { inline: true, model: e2.query } }, [n2("el-form-item", { attrs: { prop: "precinctId" } }, [n2("el-select", { attrs: { filterable: "", clearable: "", placeholder: "管理区名称" }, on: { change: e2.selectChange }, model: { value: e2.query.precinctId, callback: function(t3) {
|
||
e2.$set(e2.query, "precinctId", t3);
|
||
}, expression: "query.precinctId" } }, e2._l(e2.areaOptions, (function(e3) {
|
||
return n2("el-option", { key: e3.id, attrs: { label: e3.name, value: e3.id } });
|
||
})), 1)], 1), e2._v(" "), n2("el-form-item", { attrs: { prop: "buildingId" } }, [n2("el-select", { attrs: { filterable: "", clearable: "", placeholder: "所有楼栋" }, on: { change: e2.changeBuild }, model: { value: e2.query.buildingId, callback: function(t3) {
|
||
e2.$set(e2.query, "buildingId", t3);
|
||
}, expression: "query.buildingId" } }, e2._l(e2.building, (function(e3) {
|
||
return n2("el-option", { key: e3.id, attrs: { label: e3.name + "/" + e3.code, value: e3.id } });
|
||
})), 1)], 1), e2._v(" "), n2("el-form-item", { attrs: { prop: "unitId" } }, [n2("el-select", { attrs: { filterable: "", clearable: "", placeholder: "所有单元" }, model: { value: e2.query.unitId, callback: function(t3) {
|
||
e2.$set(e2.query, "unitId", t3);
|
||
}, expression: "query.unitId" } }, e2._l(e2.unit, (function(e3) {
|
||
return n2("el-option", { key: e3.id, attrs: { label: e3.name, value: e3.id } });
|
||
})), 1)], 1), e2._v(" "), n2("el-form-item", { attrs: { prop: "roomNum" } }, [n2("el-input", { attrs: { placeholder: "房间号", clearable: "" }, model: { value: e2.query.roomNum, callback: function(t3) {
|
||
e2.$set(e2.query, "roomNum", t3);
|
||
}, expression: "query.roomNum" } })], 1), e2._v(" "), n2("el-form-item", [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.onSearch } }, [e2._v("查询")])], 1), e2._v(" "), n2("el-form-item", [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
|
||
return e2.resetForm("query");
|
||
} } }, [e2._v("重置")])], 1), e2._v(" "), n2("el-form-item", [e2.isShow ? e2._e() : n2("el-button", { attrs: { type: "text" }, on: { click: e2.handleSlow } }, [e2._v("展开"), n2("i", { staticClass: "el-icon-arrow-down" })]), e2._v(" "), e2.isShow ? n2("el-button", { attrs: { type: "text" }, on: { click: e2.handleSlow } }, [e2._v("收起"), n2("i", { staticClass: "el-icon-arrow-up" })]) : e2._e()], 1), e2._v(" "), n2("br"), e2._v(" "), n2("el-form-item", { directives: [{ name: "show", rawName: "v-show", value: e2.isShow, expression: "isShow" }], attrs: { prop: "type" } }, [n2("el-select", { attrs: { clearable: "", placeholder: "房间类型" }, model: { value: e2.query.type, callback: function(t3) {
|
||
e2.$set(e2.query, "type", t3);
|
||
}, expression: "query.type" } }, e2._l(e2.houseTypeList, (function(e3) {
|
||
return n2("el-option", { key: e3.value, attrs: { label: e3.label, value: e3.value } });
|
||
})), 1)], 1), e2._v(" "), n2("el-form-item", { directives: [{ name: "show", rawName: "v-show", value: e2.isShow, expression: "isShow" }], attrs: { prop: "status" } }, [n2("el-select", { attrs: { clearable: "", placeholder: "房屋状态" }, model: { value: e2.query.status, callback: function(t3) {
|
||
e2.$set(e2.query, "status", t3);
|
||
}, expression: "query.status" } }, e2._l(e2.houseStatusList, (function(e3) {
|
||
return n2("el-option", { key: e3.value, attrs: { label: e3.label, value: e3.value } });
|
||
})), 1)], 1), e2._v(" "), n2("el-form-item", { directives: [{ name: "show", rawName: "v-show", value: e2.isShow && !e2.isRecycleBin, expression: "isShow && !isRecycleBin" }], attrs: { prop: "remark" } }, [n2("el-input", { attrs: { placeholder: "房屋房号", clearable: "" }, model: { value: e2.query.remark, callback: function(t3) {
|
||
e2.$set(e2.query, "remark", t3);
|
||
}, expression: "query.remark" } })], 1), e2._v(" "), n2("el-form-item", { directives: [{ name: "show", rawName: "v-show", value: e2.isShow && !e2.isRecycleBin, expression: "isShow && !isRecycleBin" }], attrs: { prop: "memberName" } }, [n2("el-input", { attrs: { placeholder: "房屋成员", clearable: "" }, model: { value: e2.query.memberName, callback: function(t3) {
|
||
e2.$set(e2.query, "memberName", t3);
|
||
}, expression: "query.memberName" } })], 1), e2._v(" "), n2("el-form-item", { directives: [{ name: "show", rawName: "v-show", value: e2.isShow && !e2.isRecycleBin, expression: "isShow && !isRecycleBin" }], attrs: { prop: "memberPhone" } }, [n2("el-input", { attrs: { placeholder: "房屋成员手机号", clearable: "" }, model: { value: e2.query.memberPhone, callback: function(t3) {
|
||
e2.$set(e2.query, "memberPhone", t3);
|
||
}, expression: "query.memberPhone" } })], 1), e2._v(" "), n2("el-form-item", { directives: [{ name: "show", rawName: "v-show", value: e2.isShow && !e2.isRecycleBin, expression: "isShow && !isRecycleBin" }], attrs: { prop: "managerId" } }, [n2("el-select", { attrs: { filterable: "", clearable: "", placeholder: "房屋责任人" }, model: { value: e2.query.managerId, callback: function(t3) {
|
||
e2.$set(e2.query, "managerId", t3);
|
||
}, expression: "query.managerId" } }, [n2("el-option", { attrs: { label: "暂无责任人或责任人已离职", value: -1 } }), e2._v(" "), e2._l(e2.memberList, (function(e3) {
|
||
return n2("el-option", { key: e3.id, attrs: { label: e3.name + (e3.postName ? "(" + e3.postName + ")" : ""), value: e3.id } });
|
||
}))], 2)], 1), e2._v(" "), n2("el-form-item", { directives: [{ name: "show", rawName: "v-show", value: e2.isShow && e2.isRecycleBin, expression: "isShow && isRecycleBin" }], attrs: { prop: "isCheck" } }, [n2("el-select", { attrs: { clearable: "", placeholder: "核定状态" }, model: { value: e2.query.isCheck, callback: function(t3) {
|
||
e2.$set(e2.query, "isCheck", t3);
|
||
}, expression: "query.isCheck" } }, [n2("el-option", { attrs: { label: "已核定", value: 1 } }), e2._v(" "), n2("el-option", { attrs: { label: "未核定", value: 0 } })], 1)], 1)], 1)], 1), e2._v(" "), e2.isRecycleBin ? e2._e() : n2("div", [n2("el-descriptions", { attrs: { column: 4 } }, [n2("template", { slot: "title" }, [n2("span", { staticClass: "descTitleTip" }, [e2._v("辅助统计")])]), e2._v(" "), n2("el-descriptions-item", { attrs: { label: "收费面积" } }, [e2._v(e2._s(e2._f("setNumberDivisionToFixed")(e2.statisics.chargeArea)) + "\n ㎡")]), e2._v(" "), n2("el-descriptions-item", { attrs: { label: "建筑面积" } }, [e2._v(e2._s(e2._f("setNumberDivisionToFixed")(e2.statisics.floorage)) + "\n ㎡")]), e2._v(" "), n2("el-descriptions-item", { attrs: { label: "使用面积" } }, [e2._v(e2._s(e2._f("setNumberDivisionToFixed")(e2.statisics.useArea)) + "\n ㎡")]), e2._v(" "), n2("el-descriptions-item", { attrs: { label: "公摊面积" } }, [e2._v(e2._s(e2._f("setNumberDivisionToFixed")(e2.statisics.publicArea)) + "\n ㎡")])], 2)], 1), e2._v(" "), e2.isRecycleBin ? e2._e() : n2("div", { staticClass: "btnStys" }, [n2("span", { staticStyle: { display: "inline-block" } }, [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "success" }, on: { click: function(t3) {
|
||
return e2.batchBindManager("bind");
|
||
} } }, [e2._v("批量绑定负责人")])], 1), e2._v(" "), n2("span", { staticStyle: { display: "inline-block" } }, [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "danger" }, on: { click: function(t3) {
|
||
return e2.batchBindManager("unbind");
|
||
} } }, [e2._v("批量解绑负责人")])], 1), e2._v(" "), n2("span", [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.showRecycel } }, [e2._v("回收站")])], 1), e2._v(" "), n2("span", { staticStyle: { display: "inline-block" } }, [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], staticClass: "el-icon-upload2 export", on: { click: e2.downloadHouseList } }, [e2._v("下载Execl")])], 1), e2._v(" "), n2("span", { staticStyle: { display: "inline-block" } }, [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], staticClass: "el-icon-upload2 export", on: { click: e2.exportTemplate } }, [e2._v("导出模板")])], 1), e2._v(" "), n2("span", { staticStyle: { display: "inline-block" } }, [n2("el-upload", { directives: [{ name: "loading", rawName: "v-loading", value: e2.importDataBtn, expression: "importDataBtn" }], ref: "upload", attrs: { "auto-upload": true, "show-file-list": false, accept: ".xls,.xlsx", "http-request": e2.importData, action: "" } }, [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], staticClass: "el-icon-download", attrs: { type: "primary" } }, [e2._v("导入数据")])], 1)], 1), e2._v(" "), n2("span", [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "success" }, on: { click: e2.houseAdd } }, [e2._v("添加房间")])], 1), e2._v(" "), n2("span", { staticStyle: { display: "inline-block" } }, [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], staticClass: "el-icon-upload2 export", on: { click: e2.exportDeviceTemplate } }, [e2._v("导出设备模板")])], 1), e2._v(" "), n2("span", { staticStyle: { display: "inline-block" } }, [n2("el-upload", { directives: [{ name: "loading", rawName: "v-loading", value: e2.importDataBtn, expression: "importDataBtn" }], ref: "upload", attrs: { "auto-upload": true, "show-file-list": false, accept: ".xls,.xlsx", "http-request": e2.importDeviceData, action: "" } }, [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], staticClass: "el-icon-download", attrs: { type: "primary" } }, [e2._v("导入设备数据")])], 1)], 1), e2._v(" "), n2("span", [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.addDevice } }, [e2._v("添加设备")])], 1), e2._v(" "), n2("span", [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "danger", disabled: e2.deleteBtn }, on: { click: e2.batchDelete } }, [e2._v("批量删除")])], 1)]), e2._v(" "), e2.isRecycleBin ? e2._e() : n2("div", { staticClass: "btnStys" }, [n2("span", { staticStyle: { display: "inline-block" } }, [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], staticClass: "el-icon-upload2 export", on: { click: e2.exportCustomerTemplate } }, [e2._v("快速上线导出房间模版")])], 1), e2._v(" "), n2("span", { staticStyle: { display: "inline-block" } }, [n2("el-upload", { directives: [{ name: "loading", rawName: "v-loading", value: e2.importCustomerDataBtn, expression: "importCustomerDataBtn" }], ref: "upload", attrs: { "auto-upload": true, "show-file-list": false, accept: ".xls,.xlsx", "http-request": e2.importCustomerData, action: "" } }, [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], staticClass: "el-icon-download", attrs: { type: "primary" } }, [e2._v("快速上线导入房间数据")])], 1)], 1), e2._v(" "), n2("span", { staticStyle: { display: "inline-block" } }, [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], staticClass: "el-icon-upload2 export", on: { click: e2.exportCustomerDeviceTemplateV2 } }, [e2._v("快速上线导出房间设备模版")])], 1), e2._v(" "), n2("span", { staticStyle: { display: "inline-block" } }, [n2("el-upload", { directives: [{ name: "loading", rawName: "v-loading", value: e2.importCustomerDeviceDataBtn, expression: "importCustomerDeviceDataBtn" }], ref: "upload", attrs: { "auto-upload": true, "show-file-list": false, accept: ".xls,.xlsx", "http-request": e2.importCustomerDeviceDataV2, action: "" } }, [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], staticClass: "el-icon-download", attrs: { type: "primary" } }, [e2._v("快速上线导入房间设备数据")])], 1)], 1)]), e2._v(" "), n2("el-table", { directives: [{ name: "loading", rawName: "v-loading.body", value: e2.listLoading, expression: "listLoading", modifiers: { body: true } }], ref: "multipleTable", attrs: { border: "", data: e2.list, "row-key": e2.getRowKey, "header-cell-style": e2.headClass, fit: "", "highlight-current-row": "" }, on: { "selection-change": e2.handleSelectionChange } }, [e2.isRecycleBin ? e2._e() : n2("el-table-column", { key: Math.random(), attrs: { type: "selection", "reserve-selection": true, align: "center", width: "55" } }), e2._v(" "), n2("el-table-column", { key: Math.random(), attrs: { align: "center", prop: "id", label: "房屋ID", "show-overflow-tooltip": "" } }), e2._v(" "), n2("el-table-column", { key: Math.random(), attrs: { align: "center", label: "编号", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.houseNo))])];
|
||
} }], null, false, 4019345219) }), e2._v(" "), n2("el-table-column", { key: Math.random(), attrs: { align: "center", label: "所属管理区", "min-width": "120", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.precinctName))])];
|
||
} }], null, false, 1930010645) }), e2._v(" "), n2("el-table-column", { key: Math.random(), attrs: { align: "center", label: "楼栋", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.buildingName))])];
|
||
} }], null, false, 3496157463) }), e2._v(" "), n2("el-table-column", { key: Math.random(), attrs: { align: "center", label: "单元", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.unitName))])];
|
||
} }], null, false, 2151930279) }), e2._v(" "), n2("el-table-column", { key: Math.random(), attrs: { align: "center", label: "楼层", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.storey))])];
|
||
} }], null, false, 3109273216) }), e2._v(" "), n2("el-table-column", { key: Math.random(), attrs: { align: "center", label: "房间号", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.roomNum))])];
|
||
} }], null, false, 2917815535) }), e2._v(" "), n2("el-table-column", { key: Math.random(), attrs: { align: "center", label: "收费面积(㎡)", "min-width": "120", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.chargeArea ? t3.row.chargeArea : "-"))])];
|
||
} }], null, false, 1422988398) }), e2._v(" "), n2("el-table-column", { key: Math.random(), attrs: { align: "center", label: "建筑面积(㎡)", "min-width": "120", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.floorage ? t3.row.floorage : "-"))])];
|
||
} }], null, false, 3443487854) }), e2._v(" "), n2("el-table-column", { key: Math.random(), attrs: { align: "center", label: "使用面积(㎡)", "min-width": "120", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.useArea ? t3.row.useArea : "-"))])];
|
||
} }], null, false, 2913768302) }), e2._v(" "), n2("el-table-column", { key: Math.random(), attrs: { align: "center", label: "公摊面积(㎡)", "min-width": "120", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.publicArea ? t3.row.publicArea : "-"))])];
|
||
} }], null, false, 3397946254) }), e2._v(" "), n2("el-table-column", { key: Math.random(), attrs: { align: "center", label: "房间类型", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(e2._f("getItemType")(t3.row.type, e2.houseTypeList)))])];
|
||
} }], null, false, 3535128942) }), e2._v(" "), n2("el-table-column", { key: Math.random(), attrs: { align: "center", label: "房屋状态", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(e2._f("getItemType")(t3.row.status, e2.houseStatusList)))])];
|
||
} }], null, false, 3904253806) }), e2._v(" "), n2("el-table-column", { key: Math.random(), attrs: { align: "center", label: "产权人", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [t3.row.propertyOwner ? n2("span", [e2._v(e2._s(t3.row.propertyOwner.realName))]) : e2._e()];
|
||
} }], null, false, 1013350314) }), e2._v(" "), n2("el-table-column", { key: Math.random(), attrs: { align: "center", label: "产权人手机", "min-width": "150" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [t3.row.propertyOwner ? n2("span", [e2._v(e2._s(t3.row.propertyOwner.mobile))]) : e2._e()];
|
||
} }], null, false, 1488655863) }), e2._v(" "), n2("el-table-column", { key: Math.random(), attrs: { align: "center", label: "房屋房号", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.remark))])];
|
||
} }], null, false, 186672324) }), e2._v(" "), n2("el-table-column", { key: Math.random(), attrs: { align: "center", label: "最佳缴费方式", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(e2._f("getItemType")(t3.row.urgeType, e2.urgeTypeList)))])];
|
||
} }], null, false, 3027293610) }), e2._v(" "), e2.isRecycleBin ? n2("el-table-column", { key: Math.random(), attrs: { align: "center", label: "核定状态", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(1 == t3.row.isCheck ? "已核定" : "未核定"))])];
|
||
} }], null, false, 626889846) }) : e2._e(), e2._v(" "), n2("el-table-column", { key: Math.random(), attrs: { align: "center", label: "负责人", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.managerName || "-"))])];
|
||
} }], null, false, 4270743615) }), e2._v(" "), n2("el-table-column", { key: Math.random(), attrs: { align: "center", label: "操作人", "show-overflow-tooltip": "", "min-width": "100" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.updateName || "-"))])];
|
||
} }], null, false, 1898086013) }), e2._v(" "), n2("el-table-column", { key: Math.random(), attrs: { align: "center", label: "操作时间", "show-overflow-tooltip": "", "min-width": "160" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.updateTime || "-"))])];
|
||
} }], null, false, 2423168815) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", width: "240", label: "操作", fixed: "right" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(n3) {
|
||
return e2.houseDetail(t3.row);
|
||
} } }, [e2._v("查看")]), e2._v(" "), e2.isRecycleBin ? e2._e() : n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(n3) {
|
||
return e2.houseEdit(t3.row);
|
||
} } }, [e2._v("编辑")]), e2._v(" "), e2.isRecycleBin ? e2._e() : n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(n3) {
|
||
return e2.houseDelete(t3.row);
|
||
} } }, [e2._v("删除")]), e2._v(" "), e2.isRecycleBin ? n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(n3) {
|
||
return e2.recoveryhouse(t3.row);
|
||
} } }, [e2._v("恢复")]) : e2._e(), e2._v(" "), t3.row.managerId ? n2("el-button", { attrs: { type: "text" }, on: { click: function(n3) {
|
||
return e2.unbindClick(t3.row);
|
||
} } }, [e2._v("解绑负责人")]) : n2("el-button", { attrs: { type: "text" }, on: { click: function(n3) {
|
||
return e2.bindClick(t3.row, "single");
|
||
} } }, [e2._v("绑定负责人")])];
|
||
} }], null, false, 2927185540) })], 1), e2._v(" "), n2("div", { staticClass: "paginations" }, [n2("el-pagination", { attrs: { background: "", "current-page": e2.query.pageNumber, "page-sizes": [10, 30, 50, 100, 200], "page-size": e2.query.pageSize, layout: "total, sizes, prev, pager, next, jumper", total: e2.total }, on: { "update:currentPage": function(t3) {
|
||
return e2.$set(e2.query, "pageNumber", t3);
|
||
}, "update:current-page": function(t3) {
|
||
return e2.$set(e2.query, "pageNumber", t3);
|
||
}, "size-change": e2.handleSizeChange, "current-change": e2.handleCurrentChange } })], 1)], 1), e2._v(" "), n2("el-dialog", { staticClass: "dialogHead", attrs: { title: "查看导入详情", "show-close": true, "close-on-press-escape": false, "close-on-click-modal": false, visible: e2.viewImport }, on: { "update:visible": function(t3) {
|
||
e2.viewImport = t3;
|
||
} } }, [n2("div", { staticClass: "center2" }, [n2("span", [e2._v("上传成功!共上传")]), e2._v(" "), n2("span", { staticClass: "color1" }, [e2._v(e2._s(e2.totalCount))]), e2._v(" "), n2("span", [e2._v("条,成功")]), e2._v(" "), n2("span", { staticClass: "color2" }, [e2._v(e2._s(e2.successCount))]), e2._v(" "), n2("span", [e2._v("条,失败")]), e2._v(" "), n2("span", { staticClass: "color3" }, [e2._v(e2._s(e2.errorCount))]), e2._v(" "), n2("span", [e2._v("条")]), e2._v(" "), n2("span", [n2("el-button", { staticStyle: { "font-size": "16px" }, attrs: { type: "text" }, on: { click: e2.download } }, [e2._v("\n 查看导入详情")])], 1)]), e2._v(" "), n2("div", { staticClass: "btnStsy" }, [n2("el-button", { attrs: { type: "info" }, on: { click: function(t3) {
|
||
e2.viewImport = false;
|
||
} } }, [e2._v("取消")])], 1)]), e2._v(" "), n2("add-device", { ref: "addDevice", attrs: { show: e2.add }, on: { closeDialog: e2.closeAdd } }), e2._v(" "), n2("batchSelect", { ref: "batchSelect", attrs: { show: e2.showBatch, dialogType: e2.batchType }, on: { close: function(t3) {
|
||
return e2.batchClose();
|
||
}, callback: function(t3) {
|
||
return e2.batchCallback();
|
||
} } }), e2._v(" "), e2.houseDetailShow ? n2("el-page-header", { staticClass: "recycleBinPageHeader", attrs: { content: "房间详情" }, on: { back: e2.goBackHouseList } }) : e2._e(), e2._v(" "), e2.houseDetailShow ? n2("HouseDetailEs", { ref: "HouseDetailEs" }) : e2._e()], 1);
|
||
}, k = [], S = n("9192"), I = n("d760b"), C = n.n(I), N = n("3b5e"), x = n.n(N), j = n("0b4b"), L = function() {
|
||
var e2 = this, t2 = e2.$createElement, n2 = e2._self._c || t2;
|
||
return n2("div", [n2("el-dialog", { staticClass: "dialogHead", attrs: { title: "bind" === e2.dialogType ? "批量绑定负责人" : "unbind" === e2.dialogType ? "批量解绑负责人" : "single" === e2.dialogType ? "绑定负责人" : "-", "modal-append-to-body": true, "append-to-body": true, "close-on-click-modal": false, "close-on-press-escape": false, width: "500px", height: "300px", "destroy-on-close": "", visible: e2.show }, on: { "update:visible": function(t3) {
|
||
e2.show = t3;
|
||
}, close: e2.closeVisible } }, ["single" === e2.dialogType ? n2("div", { staticClass: "singleTitle" }, [e2._v(" " + e2._s(e2.singleInfo.precinctName + "-" + e2.singleInfo.buildingName + "-" + e2.singleInfo.unitName + "-" + e2.singleInfo.storey + "-" + e2.singleInfo.roomNum))]) : e2._e(), e2._v(" "), n2("div", { staticClass: "checkInforSelct" }, [n2("el-form", { ref: "checkInfor", attrs: { model: e2.checkInfor, rules: e2.checkInforRules, "label-width": "100px" } }, ["single" != e2.dialogType ? n2("div", [n2("el-form-item", { attrs: { label: "选择管理区", prop: "precinctId" } }, [n2("el-select", { attrs: { multiple: "", "collapse-tags": "", filterable: "", clearable: "", placeholder: "选择管理区名称" }, on: { change: e2.selectCheckChange }, model: { value: e2.checkInfor.precinctId, callback: function(t3) {
|
||
e2.$set(e2.checkInfor, "precinctId", t3);
|
||
}, expression: "checkInfor.precinctId" } }, [n2("el-option", { key: "allprecinctId", attrs: { "el-option": "", label: "全部管理区", value: "allprecinctId" } }), e2._v(" "), e2._l(e2.areaOptionsList, (function(e3) {
|
||
return n2("el-option", { key: e3.id, attrs: { label: e3.name, value: e3.id } });
|
||
}))], 2)], 1), e2._v(" "), 1 === e2.checkInfor.precinctId.length && e2.chackbuilding.length > 0 ? n2("el-form-item", { attrs: { label: "选择楼栋", prop: "buildingId" } }, [n2("el-select", { attrs: { multiple: "", "collapse-tags": "", filterable: "", clearable: "", placeholder: "选择楼栋" }, on: { change: e2.checkChangeBuild }, model: { value: e2.checkInfor.buildingId, callback: function(t3) {
|
||
e2.$set(e2.checkInfor, "buildingId", t3);
|
||
}, expression: "checkInfor.buildingId" } }, [n2("el-option", { key: "allbuildingId", attrs: { label: "全部楼栋", value: "allbuildingId" } }), e2._v(" "), e2._l(e2.chackbuilding, (function(e3) {
|
||
return n2("el-option", { key: e3.id, attrs: { label: e3.name, value: e3.id } });
|
||
}))], 2)], 1) : e2._e(), e2._v(" "), 1 === e2.checkInfor.precinctId.length && 1 === e2.checkInfor.buildingId.length && e2.chackUnitList.length > 0 ? n2("el-form-item", { attrs: { label: "选择单元", prop: "unitId" } }, [n2("el-select", { attrs: { multiple: "", "collapse-tags": "", filterable: "", clearable: "", placeholder: "选择单元" }, on: { change: e2.checkChangeUnit }, model: { value: e2.checkInfor.unitId, callback: function(t3) {
|
||
e2.$set(e2.checkInfor, "unitId", t3);
|
||
}, expression: "checkInfor.unitId" } }, [n2("el-option", { key: "allunitId", attrs: { label: "全部单元", value: "allunitId" } }), e2._v(" "), e2._l(e2.chackUnitList, (function(e3) {
|
||
return n2("el-option", { key: e3.id, attrs: { label: e3.name, value: e3.id } });
|
||
}))], 2)], 1) : e2._e(), e2._v(" "), 1 === e2.checkInfor.precinctId.length && 1 === e2.checkInfor.buildingId.length && 1 === e2.checkInfor.unitId.length && e2.houseList.length > 0 ? n2("el-form-item", { attrs: { label: "选择房间", prop: "houseId" } }, [n2("el-select", { attrs: { multiple: "", "collapse-tags": "", filterable: "", clearable: "", placeholder: "选择房间" }, on: { change: e2.checkHouseChange }, model: { value: e2.checkInfor.houseId, callback: function(t3) {
|
||
e2.$set(e2.checkInfor, "houseId", t3);
|
||
}, expression: "checkInfor.houseId" } }, [n2("el-option", { key: "allhouseId", attrs: { label: "全部房间", value: "allhouseId" } }), e2._v(" "), e2._l(e2.houseList, (function(e3) {
|
||
return n2("el-option", { key: e3.id, attrs: { label: e3.roomNum, value: e3.id } });
|
||
}))], 2)], 1) : e2._e(), e2._v(" "), 0 == e2.checkInfor.houseId.length ? n2("el-form-item", { attrs: { label: "房屋状态", prop: "houseStatusList" } }, [n2("el-select", { attrs: { multiple: "", "collapse-tags": "", filterable: "", clearable: "", placeholder: "选择房屋状态" }, on: { change: e2.selectHouseStatus }, model: { value: e2.checkInfor.houseStatusList, callback: function(t3) {
|
||
e2.$set(e2.checkInfor, "houseStatusList", t3);
|
||
}, expression: "checkInfor.houseStatusList" } }, [n2("el-option", { key: "allHouseStatusId", attrs: { label: "全部状态", value: "allHouseStatusId" } }), e2._v(" "), e2._l(e2.houseStatusList, (function(e3) {
|
||
return n2("el-option", { key: e3.value, attrs: { label: e3.label, value: e3.value } });
|
||
}))], 2)], 1) : e2._e()], 1) : e2._e(), e2._v(" "), "unbind" !== e2.dialogType ? n2("el-form-item", { attrs: { label: "选择负责人", prop: "manager" } }, [n2("el-select", { attrs: { filterable: "", clearable: "", "value-key": "id", placeholder: "选择负责人" }, model: { value: e2.checkInfor.manager, callback: function(t3) {
|
||
e2.$set(e2.checkInfor, "manager", t3);
|
||
}, expression: "checkInfor.manager" } }, e2._l(e2.memberList, (function(e3) {
|
||
return n2("el-option", { key: e3.id, attrs: { label: e3.name + (e3.postName ? "(" + e3.postName + ")" : ""), value: e3 } });
|
||
})), 1)], 1) : e2._e(), e2._v(" "), n2("el-form-item", [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary", loading: e2.checkInforbtnLoading }, on: { click: function(t3) {
|
||
return e2.submitForm("checkInfor");
|
||
} } }, [e2._v(e2._s("bind" === e2.dialogType ? "确定" : "unbind" === e2.dialogType ? "批量解绑" : "确定") + " ")]), e2._v(" "), n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: e2.closeVisible } }, [e2._v("取消")])], 1)], 1)], 1)])], 1);
|
||
}, O = [], B = n("dce5"), $ = { props: { show: { type: Boolean, default: false }, dialogType: { type: String, default: "bind" } }, data: function() {
|
||
return { houseTypeList: B["gb"], houseStatusList: B["fb"], projectCode: "", areaOptionsList: [], building: [], unit: [], chackbuilding: [], chackUnitList: [], houseList: [], memberList: [], checkInforbtnLoading: false, checkInfor: { precinctId: [], buildingId: [], unitId: [], houseId: [], houseStatusList: [], manager: "" }, checkInforRules: { precinctId: [{ required: true, message: "请选择管理区", trigger: "change" }], houseStatusList: [{ required: true, message: "请选择房屋状态", trigger: "change" }], manager: [{ required: true, message: "请选择负责人", trigger: "change" }] }, singleInfo: {} };
|
||
}, created: function() {
|
||
this.projectCode = this.$store.state.community_uuid, this.getMemberList(), this.getBuildList();
|
||
}, methods: { singleData: function(e2) {
|
||
this.singleInfo = e2;
|
||
}, getMemberList: function() {
|
||
var e2 = this, t2 = { projectUuid: this.projectCode, pageNumber: 1, pageSize: 999 };
|
||
Object(S["v"])(t2).then((function(t3) {
|
||
e2.memberList = t3.data.records;
|
||
}));
|
||
}, selectChange: function() {
|
||
this.getBuild(0);
|
||
}, selectCheckChange: function(e2) {
|
||
this.chackbuilding = [], this.chackUnitList = [], this.houseList = [], this.checkInfor.buildingId = "", this.checkInfor.unitId = "", this.checkInfor.houseId = "", e2.includes("allprecinctId") ? this.checkInfor.precinctId = this.areaOptionsList.map((function(e3) {
|
||
return e3["id"];
|
||
})) : this.getBuild(1);
|
||
}, getBuildList: function() {
|
||
var e2 = this, t2 = { projectUuid: this.$store.state.community_uuid, pageNumber: -1, pageSize: -1 };
|
||
Object(c["f"])(t2).then((function(t3) {
|
||
0 === t3.code && (e2.areaOptionsList = t3.data);
|
||
}));
|
||
}, getBuild: function(e2) {
|
||
var t2 = this;
|
||
if (1 === e2 && 1 !== this.checkInfor.precinctId.length) return false;
|
||
Object(c["x"])({ precinctId: 0 === e2 ? this.query.precinctId : this.checkInfor.precinctId[0], projectCode: this.$store.state.community_uuid, projectName: this.$store.state.community_name, pageNumber: -1, pageSize: -1 }).then((function(n2) {
|
||
0 === e2 ? t2.building = n2.data : t2.chackbuilding = n2.data;
|
||
}));
|
||
}, getUnit: function(e2) {
|
||
var t2 = this;
|
||
if (1 === e2 && 1 !== this.checkInfor.buildingId.length) return false;
|
||
Object(c["mb"])({ pageNumber: -1, pageSize: -1, projectCode: this.$store.state.community_uuid, buildingId: 0 === e2 ? this.query.buildingId : this.checkInfor.buildingId[0] }).then((function(n2) {
|
||
0 === e2 ? t2.unit = n2.data.records : t2.chackUnitList = n2.data.records;
|
||
}));
|
||
}, changeBuild: function(e2) {
|
||
this.query.buildingId = e2, this.getUnit(0);
|
||
}, checkChangeBuild: function(e2) {
|
||
this.chackUnitList = [], this.houseList = [], this.checkInfor.unitId = "", this.checkInfor.houseId = "", e2.includes("allbuildingId") ? this.checkInfor.buildingId = this.chackbuilding.map((function(e3) {
|
||
return e3["id"];
|
||
})) : this.getUnit(1);
|
||
}, checkChangeUnit: function(e2) {
|
||
var t2 = this;
|
||
this.houseList = [], this.checkInfor.houseId = "";
|
||
var n2 = { projectCode: this.checkInfor.projectUuid, precinctId: this.checkInfor.precinctId[0], buildingId: this.checkInfor.buildingId[0], unitId: this.checkInfor.unitId[0], pageNumber: -1, pageSize: -1 };
|
||
if (1 !== this.checkInfor.unitId.length) return false;
|
||
e2.includes("allunitId") ? this.checkInfor.unitId = this.chackUnitList.map((function(e3) {
|
||
return e3["id"];
|
||
})) : Object(c["bb"])(n2).then((function(e3) {
|
||
0 === e3.code && (t2.houseList = e3.data.records);
|
||
}));
|
||
}, checkHouseChange: function(e2) {
|
||
e2.includes("allhouseId") && (this.checkInfor.houseId = this.houseList.map((function(e3) {
|
||
return e3["id"];
|
||
}))), this.checkInfor.houseId.length > 0 && (this.checkInfor.houseStatusList = []);
|
||
}, selectHouseStatus: function(e2) {
|
||
e2.includes("allHouseStatusId") && (this.checkInfor.houseStatusList = this.houseStatusList.map((function(e3) {
|
||
return e3["value"];
|
||
}))), this.checkInfor.houseStatusList.length > 0 && (this.checkInfor.houseId = []);
|
||
}, submitForm: function() {
|
||
var e2 = this;
|
||
if (1 === this.checkInfor.precinctId.length && 0 === this.chackbuilding.length) return this.$message({ type: "error", message: "该管理区下无楼栋,无法设置负责人到房屋" }), false;
|
||
if (1 === this.checkInfor.buildingId.length && 0 === this.chackUnitList.length) return this.$message({ type: "error", message: "该楼栋下无单元,无法设置负责人到房屋" }), false;
|
||
if (1 === this.checkInfor.unitId.length && 0 === this.houseList.length) return this.$message({ type: "error", message: "该单元下无房屋,无法设置负责人到房屋" }), false;
|
||
var t2 = { projectUuid: this.$store.state.community_uuid, precinctIds: this.checkInfor.precinctId, buildingIds: this.checkInfor.buildingId.length > 0 ? this.checkInfor.buildingId : null, unitIds: this.checkInfor.unitId.length > 0 ? this.checkInfor.unitId : null, houseIds: this.checkInfor.houseId.length > 0 ? this.checkInfor.houseId : null };
|
||
this.$refs.checkInfor.validate((function(n2) {
|
||
if (!n2) return false;
|
||
if ("bind" === e2.dialogType) t2.managerName = e2.checkInfor.manager.name, t2.managerId = e2.checkInfor.manager.id, t2.houseStatusList = e2.checkInfor.houseStatusList.length > 0 ? e2.checkInfor.houseStatusList : null, e2.postBatchData(t2);
|
||
else if ("unbind" === e2.dialogType) t2.houseStatusList = e2.checkInfor.houseStatusList.length > 0 ? e2.checkInfor.houseStatusList : null, e2.postBatchData(t2);
|
||
else if ("single" === e2.dialogType) {
|
||
var a2 = { projectUuid: e2.$store.state.community_uuid, houseIds: [e2.singleInfo.id], managerName: e2.checkInfor.manager.name, managerId: e2.checkInfor.manager.id };
|
||
e2.postBatchData(a2);
|
||
}
|
||
}));
|
||
}, postBatchData: function(e2) {
|
||
var t2 = this;
|
||
Object(c["jb"])(e2).then((function(e3) {
|
||
0 === e3.code ? ("bind" === t2.dialogType ? t2.$message({ type: "success", message: "批量绑定成功!" }) : "unbind" === t2.dialogType ? t2.$message({ type: "success", message: "批量解绑成功!" }) : "single" === t2.dialogType && t2.$message({ type: "success", message: "绑定成功!" }), t2.closeVisible(), t2.batchCallback()) : t2.$message({ type: "error", message: "操作失败" });
|
||
})).catch((function(e3) {
|
||
}));
|
||
}, closeVisible: function() {
|
||
this.checkInfor = { precinctId: [], buildingId: [], unitId: [], houseId: [], houseSpaceTemplateList: [] }, this.checkInforbtnLoading = false, this.$refs.checkInfor.resetFields(), this.$emit("close");
|
||
}, batchCallback: function() {
|
||
this.$emit("callback");
|
||
} } }, q = $, T = (n("d37b"), Object(m["a"])(q, L, O, false, null, null, null)), F = T.exports, D = n("cfa2");
|
||
function R(e2) {
|
||
return R = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e3) {
|
||
return typeof e3;
|
||
} : function(e3) {
|
||
return e3 && "function" == typeof Symbol && e3.constructor === Symbol && e3 !== Symbol.prototype ? "symbol" : typeof e3;
|
||
}, R(e2);
|
||
}
|
||
function P(e2, t2, n2) {
|
||
return (t2 = z(t2)) in e2 ? Object.defineProperty(e2, t2, { value: n2, enumerable: true, configurable: true, writable: true }) : e2[t2] = n2, e2;
|
||
}
|
||
function z(e2) {
|
||
var t2 = A(e2, "string");
|
||
return "symbol" == R(t2) ? t2 : t2 + "";
|
||
}
|
||
function A(e2, t2) {
|
||
if ("object" != R(e2) || !e2) return e2;
|
||
var n2 = e2[Symbol.toPrimitive];
|
||
if (void 0 !== n2) {
|
||
var a2 = n2.call(e2, t2 || "default");
|
||
if ("object" != R(a2)) return a2;
|
||
throw new TypeError("@@toPrimitive must return a primitive value.");
|
||
}
|
||
return ("string" === t2 ? String : Number)(e2);
|
||
}
|
||
var U = { name: "houseList", components: { Pagination: s["a"], AddDevice: j["a"], batchSelect: F, HouseDetailEs: D["default"] }, filters: { formatColor: function(e2) {
|
||
var t2 = "color:#67C23A;", n2 = "color:#E6A23C;";
|
||
return 1 == e2 ? n2 : t2;
|
||
} }, data: function() {
|
||
var e2;
|
||
return e2 = { urgeTypeList: B["uc"], houseTypeList: B["gb"], houseStatusList: B["fb"], total: 0, id: 0, importDataBtn: false, add: false, list: [] }, P(P(P(P(P(P(P(P(P(P(e2, "total", 0), "building", []), "unit", []), "useState", []), "viewImport", false), "houseProperty", []), "multiInfoList", []), "areaOptions", []), "fileName", ""), "pmImage", C.a), P(P(P(P(P(P(P(P(P(P(e2, "dsImage", x.a), "downloadInfo", ""), "isShow", false), "listLoading", false), "dialogVisible", false), "dialogEditVisible", false), "deleteBtn", true), "importCustomerDataBtn", false), "importCustomerDeviceDataBtn", false), "memberList", []), P(P(P(P(P(P(P(P(P(P(e2, "query", { pageNumber: 1, pageSize: 10, precinctId: "", buildingId: "", unitId: "", roomNum: "", type: "", status: "", memberName: "", memberPhone: "", remark: "", managerId: "", isCheck: "" }), "residentInfoList", []), "carInfoList", []), "identityType", []), "gender", { 1: "男", 2: "女", 0: "未知" }), "residentState", []), "totalCount", ""), "successCount", ""), "errorCount", ""), "statisics", {}), P(P(P(P(e2, "isRecycleBin", false), "showBatch", false), "batchType", "bind"), "houseDetailShow", false);
|
||
}, methods: { getRowKey: function(e2) {
|
||
return e2.id || e2.houseNo;
|
||
}, getMemberList: function() {
|
||
var e2 = this, t2 = { projectUuid: JSON.parse(localStorage.getItem("store")).community_uuid, pageNumber: 1, pageSize: 999 };
|
||
Object(S["v"])(t2).then((function(t3) {
|
||
e2.memberList = t3 && t3.data && t3.data.records || [];
|
||
}));
|
||
}, downloadHouseList: function() {
|
||
this.query.projectCode = JSON.parse(localStorage.getItem("store")).community_uuid, this.query.projectName = JSON.parse(localStorage.getItem("store")).community_name, Object(c["w"])(this.query).then((function(e2) {
|
||
var t2 = "application/vnd.ms-excel", n2 = new Blob([e2], { type: t2 }), a2 = "房屋记录.xls";
|
||
if (window.navigator.msSaveOrOpenBlob) navigator.msSaveBlob(n2, a2);
|
||
else {
|
||
var i2 = document.createElement("a");
|
||
i2.download = a2, i2.style.display = "none", i2.href = URL.createObjectURL(n2), document.body.appendChild(i2), i2.click(), document.body.removeChild(i2);
|
||
}
|
||
}));
|
||
}, exportCustomerTemplate: function() {
|
||
try {
|
||
var e2 = "/static/template/roomCustomerDataTemplateV2.xlsx", t2 = JSON.parse(localStorage.getItem("store")).community_name, n2 = "".concat(t2, "_快速上线房间模版.xlsx");
|
||
console.log("fileName", n2);
|
||
var a2 = document.createElement("a");
|
||
a2.setAttribute("type", "download"), a2.setAttribute("download", n2), a2.style.display = "none", a2.href = e2, document.body.appendChild(a2), a2.click(), document.body.removeChild(a2);
|
||
} catch (i2) {
|
||
this.$message({ message: "导出模板失败,请稍后重试", type: "error" }), console.error("导出房间模板失败:", i2);
|
||
}
|
||
}, exportTemplate: function() {
|
||
var e2 = "/static/template/roomCustomerDataTemplate.xlsx", t2 = JSON.parse(localStorage.getItem("store")).community_name, n2 = "".concat(t2, "_房间客户资料模板.xlsx");
|
||
console.log("fileName", n2);
|
||
var a2 = document.createElement("a");
|
||
a2.setAttribute("type", "download"), a2.setAttribute("download", n2), a2.style.display = "none", a2.href = e2, document.body.appendChild(a2), a2.click(), document.body.removeChild(a2);
|
||
}, exportDeviceTemplate: function() {
|
||
this.query.projectCode = JSON.parse(localStorage.getItem("store")).community_uuid, this.query.projectName = JSON.parse(localStorage.getItem("store")).community_name, Object(c["u"])(this.query).then((function(e2) {
|
||
var t2 = "application/vnd.ms-excel", n2 = new Blob([e2], { type: t2 }), a2 = "房屋设备导入模板.xls";
|
||
if (window.navigator.msSaveOrOpenBlob) navigator.msSaveBlob(n2, a2);
|
||
else {
|
||
var i2 = document.createElement("a");
|
||
i2.download = a2, i2.style.display = "none", i2.href = URL.createObjectURL(n2), document.body.appendChild(i2), i2.click(), document.body.removeChild(i2);
|
||
}
|
||
}));
|
||
}, exportCustomerDeviceTemplateV2: function() {
|
||
var e2 = this;
|
||
this.query.projectCode = JSON.parse(localStorage.getItem("store")).community_uuid, this.query.projectName = JSON.parse(localStorage.getItem("store")).community_name, Object(c["v"])(this.query).then((function(e3) {
|
||
var t2 = "application/vnd.ms-excel", n2 = new Blob([e3], { type: t2 }), a2 = "快速上线房间设备模版.xls";
|
||
if (window.navigator.msSaveOrOpenBlob) navigator.msSaveBlob(n2, a2);
|
||
else {
|
||
var i2 = document.createElement("a");
|
||
i2.download = a2, i2.style.display = "none", i2.href = URL.createObjectURL(n2), document.body.appendChild(i2), i2.click(), document.body.removeChild(i2);
|
||
}
|
||
})).catch((function(t2) {
|
||
e2.$message({ message: "导出模板失败,请稍后重试", type: "error" }), console.error("导出设备模板失败:", t2);
|
||
}));
|
||
}, importCustomerDeviceDataV2: function(e2) {
|
||
var t2 = this, n2 = e2.file, a2 = n2.size / 1024 / 1024 < 10, i2 = n2.name.lastIndexOf("."), o2 = n2.name.length, r2 = n2.name.substring(i2 + 1, o2);
|
||
if ("xls" == r2 || "xlsx" == r2) if (a2) {
|
||
var s2 = new FormData();
|
||
s2.append("file", n2, n2.name);
|
||
var l2 = { projectUuid: this.$store.state.community_uuid, memberName: this.$store.state.user.userInfo.memberName };
|
||
Object(c["S"])(s2, l2).then((function(e3) {
|
||
console.log("response", e3);
|
||
var n3 = e3.headers, a3 = e3.data;
|
||
if (console.log(n3), console.log(a3), t2.downloadInfo = a3, n3.count) if (n3.count.includes(-1)) t2.importCustomerDeviceDataBtn = false, t2.teanslateResBlob(a3);
|
||
else {
|
||
var i3 = JSON.parse(n3.count);
|
||
i3 ? 0 == i3.code ? (t2.importCustomerDeviceDataBtn = false, i3.errorCount > 0 ? (t2.viewImport = true, t2.totalCount = i3.totalCount, t2.successCount = i3.successCount, t2.errorCount = i3.errorCount) : t2.$message({ message: "导入数据成功", type: "success" }), t2.query.pageNumber = 1, t2.multiInfoList.length > 0 && t2.$refs.multipleTable.clearSelection(), t2.getList(), t2.getStatisicRes()) : (t2.importCustomerDeviceDataBtn = false, t2.$message({ message: i3.message || "导入失败", type: "error" })) : t2.importCustomerDeviceDataBtn = false;
|
||
}
|
||
else t2.importCustomerDeviceDataBtn = false, t2.teanslateResBlob(a3);
|
||
})).catch((function(e3) {
|
||
t2.importCustomerDeviceDataBtn = false, t2.$message({ message: "导入失败,请稍后重试", type: "error" }), console.error("导入设备数据失败:", e3);
|
||
}));
|
||
} else this.$message("上传文件大小不能超过10M!");
|
||
else this.$message("只能上传Excel文件!");
|
||
}, importData: function(e2) {
|
||
var t2 = this, n2 = e2.file, a2 = n2.size / 1024 / 1024 < 10, i2 = n2.name.lastIndexOf("."), o2 = n2.name.length, r2 = n2.name.substring(i2 + 1, o2);
|
||
if ("xls" == r2 || "xlsx" == r2) if (a2) {
|
||
var s2 = new FormData();
|
||
this.fileName = n2.name, s2.append("file", n2, n2.name), s2.append("projectUuid", JSON.parse(localStorage.getItem("store")).community_uuid), s2.append("appId", 2), this.importDataBtn = true, Object(c["Q"])(s2).then((function(e3) {
|
||
console.log("response", e3);
|
||
var n3 = e3.headers, a3 = e3.data;
|
||
if (t2.downloadInfo = a3, n3.count) if (n3.count.includes(-1)) t2.importDataBtn = false, t2.teanslateResBlob(a3);
|
||
else {
|
||
var i3 = JSON.parse(n3.count);
|
||
i3 && (0 == i3.code ? (t2.importDataBtn = false, i3.errorCount > 0 ? (t2.viewImport = true, t2.totalCount = i3.totalCount, t2.successCount = i3.successCount, t2.errorCount = i3.errorCount) : t2.$message({ message: "导入数据成功", type: "success" }), t2.query.pageNumber = 1, t2.getList(), t2.getStatisicRes()) : t2.importDataBtn = false);
|
||
}
|
||
else t2.importDataBtn = false, t2.teanslateResBlob(a3);
|
||
})).catch((function() {
|
||
t2.importDataBtn = false;
|
||
}));
|
||
} else this.$message("上传文件大小不能超过10M!");
|
||
else this.$message("只能上传Excel文件!");
|
||
}, importCustomerData: function(e2) {
|
||
var t2 = this, n2 = e2.file, a2 = n2.size / 1024 / 1024 < 10, i2 = n2.name.lastIndexOf("."), o2 = n2.name.length, r2 = n2.name.substring(i2 + 1, o2);
|
||
if ("xls" == r2 || "xlsx" == r2) if (a2) {
|
||
var s2 = new FormData();
|
||
this.fileName = n2.name, s2.append("file", n2, n2.name), s2.append("appId", 2), this.importCustomerDataBtn = true;
|
||
var l2 = { projectUuid: this.$store.state.community_uuid, memberId: this.$store.state.user.userInfo.memberId, memberName: this.$store.state.user.userInfo.memberName };
|
||
Object(c["T"])(s2, l2).then((function(e3) {
|
||
console.log("response", e3);
|
||
var n3 = e3.headers, a3 = e3.data;
|
||
if (t2.downloadInfo = a3, n3.count) if (n3.count.includes(-1)) t2.importCustomerDataBtn = false, t2.teanslateResBlob(a3);
|
||
else {
|
||
var i3 = JSON.parse(n3.count);
|
||
i3 && (0 == i3.code ? (t2.importCustomerDataBtn = false, i3.errorCount > 0 ? (t2.viewImport = true, t2.totalCount = i3.totalCount, t2.successCount = i3.successCount, t2.errorCount = i3.errorCount) : t2.$message({ message: "导入数据成功", type: "success" }), t2.query.pageNumber = 1, t2.getList(), t2.getStatisicRes()) : t2.importCustomerDataBtn = false);
|
||
}
|
||
else t2.importCustomerDataBtn = false, t2.teanslateResBlob(a3);
|
||
})).catch((function() {
|
||
t2.importCustomerDataBtn = false;
|
||
}));
|
||
} else this.$message("上传文件大小不能超过10M!");
|
||
else this.$message("只能上传Excel文件!");
|
||
}, importDeviceData: function(e2) {
|
||
var t2 = this, n2 = e2.file, a2 = n2.size / 1024 / 1024 < 10, i2 = n2.name.lastIndexOf("."), o2 = n2.name.length, r2 = n2.name.substring(i2 + 1, o2);
|
||
if ("xls" == r2 || "xlsx" == r2) if (a2) {
|
||
var s2 = new FormData();
|
||
this.fileName = n2.name, s2.append("file", n2, n2.name), s2.append("appId", 2), this.importDataBtn = true, Object(c["R"])(s2).then((function(e3) {
|
||
console.log(e3), t2.$message({ message: "导入成功!", type: "success" }), t2.importDataBtn = false, t2.query.pageNumber = 1, t2.getList(), t2.getStatisicRes();
|
||
})).catch((function() {
|
||
t2.importDataBtn = false;
|
||
}));
|
||
} else this.$message("上传文件大小不能超过10M!");
|
||
else this.$message("只能上传Excel文件!");
|
||
}, teanslateResBlob: function(e2) {
|
||
var t2 = this, n2 = new FileReader();
|
||
n2.readAsText(e2), n2.onload = function() {
|
||
var e3 = this.result;
|
||
e3 && (e3 = JSON.parse(e3), -1 === e3.code && t2.$message({ message: e3.message, type: "error" }));
|
||
};
|
||
}, download: function() {
|
||
var e2 = "application/vnd.ms-excel", t2 = new Blob([this.downloadInfo], { type: e2 }), n2 = "导入房间信息.xls";
|
||
if (window.navigator.msSaveOrOpenBlob) navigator.msSaveBlob(t2);
|
||
else {
|
||
var a2 = document.createElement("a");
|
||
a2.download = n2, a2.style.display = "none", a2.href = URL.createObjectURL(t2), document.body.appendChild(a2), a2.click(), document.body.removeChild(a2);
|
||
}
|
||
}, handleSlow: function() {
|
||
this.isShow = !this.isShow;
|
||
}, resetForm: function(e2) {
|
||
this.query.pageNumber = 1, this.$refs[e2].resetFields(), this.isRecycleBin ? this.queryRecycleBinHouseList() : (this.multiInfoList.length > 0 && this.$refs.multipleTable.clearSelection(), this.getList(), this.getStatisicRes());
|
||
}, getBuildList: function() {
|
||
var e2 = this, t2 = { projectUuid: JSON.parse(localStorage.getItem("store")).community_uuid, pageNumber: -1, pageSize: -1 };
|
||
Object(c["f"])(t2).then((function(t3) {
|
||
0 === t3.code && (e2.areaOptions = t3.data);
|
||
}));
|
||
}, houseAdd: function() {
|
||
this.$router.push({ path: "/projectProfile/houseAdd" });
|
||
}, selectChange: function() {
|
||
this.getBuild();
|
||
}, getBuild: function() {
|
||
var e2 = this;
|
||
Object(c["x"])({ precinctId: this.query.precinctId, projectCode: JSON.parse(localStorage.getItem("store")).community_uuid, projectName: JSON.parse(localStorage.getItem("store")).community_name, pageNumber: -1, pageSize: -1 }).then((function(t2) {
|
||
e2.building = t2.data;
|
||
}));
|
||
}, getUnit: function() {
|
||
var e2 = this;
|
||
Object(c["mb"])({ pageNumber: -1, pageSize: -1, projectCode: JSON.parse(localStorage.getItem("store")).community_uuid, buildingId: this.query.buildingId }).then((function(t2) {
|
||
e2.unit = t2.data.records;
|
||
}));
|
||
}, changeBuild: function(e2) {
|
||
this.query.buildingId = e2, this.getUnit();
|
||
}, headClass: function() {
|
||
return "text-align:center;background:#FAFAFA;";
|
||
}, handleSizeChange: function(e2) {
|
||
this.query.pageSize = e2, this.isRecycleBin ? this.queryRecycleBinHouseList() : (this.getList(), this.getStatisicRes());
|
||
}, handleCurrentChange: function(e2) {
|
||
this.query.pageNumber = e2, this.isRecycleBin ? this.queryRecycleBinHouseList() : (this.getList(), this.getStatisicRes());
|
||
}, handleSelectionChange: function(e2) {
|
||
this.multiInfoList = e2, this.multiInfoList.length > 0 ? this.deleteBtn = false : this.deleteBtn = true;
|
||
}, updataInfo: function() {
|
||
var e2 = this;
|
||
Object(c["ob"])({ projectCode: JSON.parse(localStorage.getItem("store")).community_uuid }).then((function(t2) {
|
||
0 == t2.code && e2.$message({ type: "success", message: "同步成功" });
|
||
}));
|
||
}, onSearch: function() {
|
||
this.isRecycleBin ? (this.query.pageNumber = 1, this.queryRecycleBinHouseList()) : (this.query.pageNumber = 1, this.getList(), this.getStatisicRes());
|
||
}, getList: function() {
|
||
var e2 = this;
|
||
this.query.projectCode = JSON.parse(localStorage.getItem("store")).community_uuid, this.query.projectName = JSON.parse(localStorage.getItem("store")).community_name, Object(c["M"])(this.query).then((function(t2) {
|
||
e2.list = t2.data.records, e2.total = t2.data.rowsCount, e2.$nextTick((function() {
|
||
e2.memoryChecked(), sessionStorage.setItem(e2.$route.name, JSON.stringify(e2.query));
|
||
}));
|
||
}));
|
||
}, queryRecycleBinHouseList: function() {
|
||
var e2 = this;
|
||
this.query.projectCode = JSON.parse(localStorage.getItem("store")).community_uuid, this.query.projectName = JSON.parse(localStorage.getItem("store")).community_name, Object(c["fb"])(this.query).then((function(t2) {
|
||
e2.list = t2.data.records, e2.total = t2.data.rowsCount;
|
||
})), this.$nextTick((function() {
|
||
}));
|
||
}, getStatisicRes: function() {
|
||
var e2 = this;
|
||
this.query.projectCode = JSON.parse(localStorage.getItem("store")).community_uuid, this.query.projectName = JSON.parse(localStorage.getItem("store")).community_name, Object(c["N"])(this.query).then((function(t2) {
|
||
e2.statisics = t2.data;
|
||
}));
|
||
}, memoryChecked: function() {
|
||
var e2 = this, t2 = [];
|
||
this.multiInfoList.forEach((function(e3) {
|
||
t2.push(e3.houseNo);
|
||
})), t2.length && this.$nextTick((function() {
|
||
e2.list.forEach((function(n2, a2) {
|
||
t2.indexOf(n2.houseNo) >= 0 && e2.$refs.multipleTable.toggleRowSelection(n2, true);
|
||
}));
|
||
}));
|
||
}, getBuildUnit: function() {
|
||
var e2 = this;
|
||
this.query.projectCode = JSON.parse(localStorage.getItem("store")).community_uuid, this.query.projectName = JSON.parse(localStorage.getItem("store")).community_name, Object(c["l"])(this.query).then((function(t2) {
|
||
var n2 = t2.content;
|
||
e2.building = n2.buildingList, e2.unit = n2.unitList;
|
||
}));
|
||
}, houseDetail: function(e2) {
|
||
var t2 = this, n2 = this.$route;
|
||
this.$set(n2.query, "id", e2.id), this.$set(n2.query, "type", 0), this.houseDetailShow = true, this.$nextTick((function() {
|
||
t2.$refs.HouseDetailEs.initData(e2, 0);
|
||
}));
|
||
}, houseEdit: function(e2) {
|
||
this.$router.push({ path: "/projectProfile/editHouse", query: { data: e2 } });
|
||
}, batchDelete: function() {
|
||
var e2 = this, t2 = this.multiInfoList.map((function(e3) {
|
||
return e3.id;
|
||
}));
|
||
this.$confirm("确定删除选择的数据吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "info", center: true }).then((function() {
|
||
Object(c["g"])({ idList: t2 }).then((function(t3) {
|
||
0 == t3.code && (e2.$message({ message: "删除成功", type: "success" }), e2.query.pageNumber = 1, e2.getList(), e2.getStatisicRes(), e2.multiInfoList = [], e2.$refs.multipleTable.clearSelection());
|
||
}));
|
||
}));
|
||
}, houseDelete: function(e2) {
|
||
var t2 = this;
|
||
this.$confirm("删除房屋后,房屋放置于回收站,确定删除吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "info", center: true }).then((function() {
|
||
Object(c["s"])({ id: e2.id, updateName: t2.$store.state.user.name }).then((function(e3) {
|
||
0 == e3.code && (t2.$message({ message: "删除成功", type: "success" }), t2.query.pageNumber = 1, t2.getList(), t2.getStatisicRes());
|
||
}));
|
||
}));
|
||
}, recoveryhouse: function(e2) {
|
||
var t2 = this;
|
||
this.$confirm("确定恢复该房屋?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "info", center: true }).then((function() {
|
||
Object(c["gb"])({ ids: [e2.id] }).then((function(e3) {
|
||
0 == e3.code && (t2.$message({ message: "恢复成功", type: "success" }), t2.query.pageNumber = 1, t2.queryRecycleBinHouseList());
|
||
}));
|
||
}));
|
||
}, addDevice: function() {
|
||
this.add = true, this.$nextTick((function() {
|
||
this.$refs.addDevice.init();
|
||
}));
|
||
}, closeAdd: function() {
|
||
this.add = false;
|
||
}, showRecycel: function() {
|
||
this.isRecycleBin = true, this.query.pageNumber = 1, this.query.pageSize = 10, this.queryRecycleBinHouseList();
|
||
}, goBackHouseList: function() {
|
||
this.isRecycleBin = false, this.houseDetailShow = false, this.query.pageNumber = 1, this.query.pageSize = 10, this.getBuildList(), this.getBuild(), this.getList(), this.getStatisicRes();
|
||
}, batchBindManager: function(e2) {
|
||
this.showBatch = true, this.batchType = e2;
|
||
}, batchClose: function() {
|
||
this.showBatch = false;
|
||
}, batchCallback: function() {
|
||
this.showBatch = false, this.getList();
|
||
}, bindClick: function(e2, t2) {
|
||
this.showBatch = true, this.batchType = t2, this.$refs.batchSelect.singleData(e2);
|
||
}, unbindClick: function(e2) {
|
||
var t2 = this;
|
||
this.$confirm("此操作将移除该房屋绑定的负责人, 是否继续?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then((function() {
|
||
var n2 = { projectUuid: JSON.parse(localStorage.getItem("store")).community_uuid, houseIds: [e2.id] };
|
||
Object(c["jb"])(n2).then((function(e3) {
|
||
0 === e3.code && (t2.$message({ type: "success", message: "解绑成功!" }), t2.getList());
|
||
}));
|
||
})).catch((function() {
|
||
}));
|
||
} }, mounted: function() {
|
||
this.headClass(), console.log(this.query, "this.query"), this.getMemberList(), this.getBuildList(), this.getBuild(), this.getStatisicRes();
|
||
var e2 = JSON.parse(sessionStorage.getItem("communityBasicsInfo"));
|
||
e2 && e2.projectName == JSON.parse(localStorage.getItem("store")).community_name && (console.log("我是缓存信息搜索 我被触发"), this.query = e2, this.query.buildingId && this.getUnit()), this.onSearch();
|
||
} }, M = U, E = (n("12d3"), Object(m["a"])(M, w, k, false, null, "6187b164", null)), H = E.exports, J = function() {
|
||
var e2 = this, t2 = e2.$createElement, n2 = e2._self._c || t2;
|
||
return n2("div", [n2("div", [n2("el-form", { staticClass: "demo-form-inline", attrs: { model: e2.query, inline: true } }, [n2("el-form-item", [n2("el-input", { attrs: { placeholder: "管理区域名称", clearable: "" }, model: { value: e2.query.name, callback: function(t3) {
|
||
e2.$set(e2.query, "name", t3);
|
||
}, expression: "query.name" } })], 1), e2._v(" "), n2("el-form-item", [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.onSearch } }, [e2._v("查询")])], 1), e2._v(" "), n2("el-form-item", [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: e2.resetForm } }, [e2._v("重置")])], 1), e2._v(" "), n2("el-form-item", { staticStyle: { float: "right" } }, [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.addArea } }, [e2._v("添加管理区")])], 1)], 1)], 1), e2._v(" "), n2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: e2.listLoading, expression: "listLoading" }], staticStyle: { width: "100%" }, attrs: { border: "", data: e2.listData, "header-cell-style": e2.headClass, fit: "", "highlight-current-row": "" } }, [n2("el-table-column", { attrs: { label: "#", align: "center", width: "50" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.$index + (e2.query.pageNumber - 1) * e2.query.pageSize + 1) + "\n ")])];
|
||
} }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", label: "管理区编号" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.codeNumber))])];
|
||
} }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", label: "管理区名称" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.name))])];
|
||
} }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", label: "更新时间" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.updateDate))])];
|
||
} }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", label: "操作人" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.updaterName || "-"))])];
|
||
} }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", label: "操作时间" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.updateDate || "-"))])];
|
||
} }]) }), e2._v(" "), n2("el-table-column", { attrs: { label: "操作", width: "120", align: "center" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(n3) {
|
||
return e2.editClick(t3.row);
|
||
} } }, [e2._v("编辑")]), e2._v(" "), n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(n3) {
|
||
return e2.deleteClick(t3.row.id);
|
||
} } }, [e2._v("删除")])];
|
||
} }]) })], 1), e2._v(" "), n2("div", { staticClass: "paginations" }, [n2("el-pagination", { attrs: { background: "", "current-page": e2.query.pageNumber, "page-sizes": [10, 30, 50, 100, 200], "page-size": e2.query.pageSize, layout: "total, sizes, prev, pager, next, jumper", total: e2.total }, on: { "update:currentPage": function(t3) {
|
||
return e2.$set(e2.query, "pageNumber", t3);
|
||
}, "update:current-page": function(t3) {
|
||
return e2.$set(e2.query, "pageNumber", t3);
|
||
}, "size-change": e2.handleSizeChange, "current-change": e2.handleCurrentChange } })], 1)], 1);
|
||
}, V = [], K = { data: function() {
|
||
return { listData: [], listLoading: false, total: 0, query: { name: "", pageNumber: 1, pageSize: 10 } };
|
||
}, created: function() {
|
||
this.query.projectUuid = this.$store.state.community_uuid, this.headClass();
|
||
}, methods: { editClick: function(e2) {
|
||
this.$router.push({ path: "/projectProfile/editAreaManage", query: { data: e2 } });
|
||
}, deleteClick: function(e2) {
|
||
var t2 = this;
|
||
this.$confirm("确定删除该数据吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "info", center: true }).then((function() {
|
||
Object(c["V"])({ id: e2 }).then((function(e3) {
|
||
0 == e3.code && (t2.$message({ type: "success", message: "删除成功!" }), t2.getListData());
|
||
}));
|
||
}));
|
||
}, addArea: function() {
|
||
this.$router.push({ path: "/projectProfile/addAreaManage" });
|
||
}, getListData: function() {
|
||
var e2 = this;
|
||
this.listLoading = true, Object(c["d"])(this.query).then((function(t2) {
|
||
t2.data && t2.data.records && (e2.listData = t2.data.records, e2.total = t2.data.rowsCount);
|
||
})), this.listLoading = false;
|
||
}, onSearch: function() {
|
||
this.query.pageNumber = 1, this.getListData();
|
||
}, resetForm: function() {
|
||
this.query.pageNumber = 1, this.query.name = "", this.getListData();
|
||
}, handleSizeChange: function(e2) {
|
||
this.query.pageSize = e2, this.getListData();
|
||
}, handleCurrentChange: function(e2) {
|
||
this.query.pageNumber = e2, this.getListData();
|
||
}, headClass: function() {
|
||
return "text-align:center;background:#FAFAFA;";
|
||
} }, mounted: function() {
|
||
this.getListData();
|
||
} }, Q = K, W = (n("1859"), Object(m["a"])(Q, J, V, false, null, "08c0f6d4", null)), G = W.exports, X = function() {
|
||
var e2 = this, t2 = e2.$createElement, n2 = e2._self._c || t2;
|
||
return n2("div", [n2("div", { staticClass: "filter-container" }, [n2("el-form", { ref: "query", staticClass: "demo-form-inline", attrs: { inline: true, model: e2.query } }, [n2("el-form-item", { attrs: { prop: "houseNo" } }, [n2("el-input", { attrs: { placeholder: "房屋号", clearable: "" }, model: { value: e2.query.houseNo, callback: function(t3) {
|
||
e2.$set(e2.query, "houseNo", t3);
|
||
}, expression: "query.houseNo" } })], 1), e2._v(" "), n2("el-form-item", { attrs: { prop: "handled" } }, [n2("el-select", { attrs: { clearable: "", placeholder: "是否处理" }, model: { value: e2.query.handled, callback: function(t3) {
|
||
e2.$set(e2.query, "handled", t3);
|
||
}, expression: "query.handled" } }, [n2("el-option", { attrs: { label: "是", value: 1 } }), e2._v(" "), n2("el-option", { attrs: { label: "否", value: 0 } })], 1)], 1), e2._v(" "), n2("el-form-item", [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.onSearch } }, [e2._v("查询")])], 1), e2._v(" "), n2("el-form-item", [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
|
||
return e2.resetForm("query");
|
||
} } }, [e2._v("重置")])], 1)], 1)], 1), e2._v(" "), n2("div", { staticClass: "btnStys" }, [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary", loading: e2.checkLoading }, on: { click: e2.checkAnomaly } }, [e2._v("检查异常数据")]), e2._v(" "), n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "success", disabled: 0 === e2.selectedList.length }, on: { click: e2.batchHandled } }, [e2._v("批量标记为已处理")])], 1), e2._v(" "), n2("el-table", { directives: [{ name: "loading", rawName: "v-loading.body", value: e2.listLoading, expression: "listLoading", modifiers: { body: true } }], ref: "multipleTable", attrs: { border: "", data: e2.list, "row-key": "id", "header-cell-style": e2.headClass, fit: "", "highlight-current-row": "" }, on: { "selection-change": e2.handleSelectionChange } }, [n2("el-table-column", { attrs: { type: "selection", "reserve-selection": true, selectable: e2.checkSelectable, align: "center", width: "55" } }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", prop: "houseNo", label: "房屋号", "show-overflow-tooltip": "" } }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", prop: "houseId", label: "房屋ID", "show-overflow-tooltip": "" } }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", prop: "description", label: "异常信息描述", "min-width": "200", "show-overflow-tooltip": "" } }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", prop: "handled", label: "是否处理", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(1 === t3.row.handled ? "是" : "否"))])];
|
||
} }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", prop: "createTime", label: "创建时间", "min-width": "160", "show-overflow-tooltip": "" } }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", prop: "updateTime", label: "更新时间", "min-width": "160", "show-overflow-tooltip": "" } }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", width: "200", label: "操作", fixed: "right" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(n3) {
|
||
return e2.viewHouse(t3.row);
|
||
} } }, [e2._v("查看")]), e2._v(" "), n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text", disabled: 1 === t3.row.handled }, on: { click: function(n3) {
|
||
return e2.singleHandled(t3.row);
|
||
} } }, [e2._v("标记为已处理")])];
|
||
} }]) })], 1), e2._v(" "), n2("div", { staticClass: "paginations" }, [n2("el-pagination", { attrs: { background: "", "current-page": e2.query.pageNumber, "page-sizes": [10, 30, 50, 100, 200], "page-size": e2.query.pageSize, layout: "total, sizes, prev, pager, next, jumper", total: e2.total }, on: { "update:currentPage": function(t3) {
|
||
return e2.$set(e2.query, "pageNumber", t3);
|
||
}, "update:current-page": function(t3) {
|
||
return e2.$set(e2.query, "pageNumber", t3);
|
||
}, "size-change": e2.handleSizeChange, "current-change": e2.handleCurrentChange } })], 1)], 1);
|
||
}, Y = [], Z = { name: "houseAnomalyList", data: function() {
|
||
return { list: [], total: 0, listLoading: false, checkLoading: false, selectedList: [], query: { pageNumber: 1, pageSize: 10, projectUuid: "", houseNo: "", handled: "" } };
|
||
}, methods: { headClass: function() {
|
||
return "text-align:center;background:#FAFAFA;";
|
||
}, checkSelectable: function(e2) {
|
||
return 1 !== e2.handled;
|
||
}, handleSizeChange: function(e2) {
|
||
this.query.pageSize = e2, this.getList();
|
||
}, handleCurrentChange: function(e2) {
|
||
this.query.pageNumber = e2, this.getList();
|
||
}, onSearch: function() {
|
||
this.query.pageNumber = 1, this.getList();
|
||
}, resetForm: function(e2) {
|
||
this.query.pageNumber = 1, this.query.houseNo = "", this.query.handled = "", this.$refs[e2].resetFields(), this.getList();
|
||
}, getList: function() {
|
||
var e2 = this;
|
||
this.listLoading = true, this.query.projectUuid = JSON.parse(localStorage.getItem("store")).community_uuid, Object(c["K"])(this.query).then((function(t2) {
|
||
e2.list = t2.data.records || [], e2.total = t2.data.rowsCount || 0, e2.listLoading = false;
|
||
})).catch((function() {
|
||
e2.listLoading = false;
|
||
}));
|
||
}, viewHouse: function(e2) {
|
||
var t2 = this;
|
||
Object(c["y"])({ id: e2.houseId }).then((function(e3) {
|
||
0 === e3.code && e3.data ? t2.$router.push({ path: "/projectProfile/editHouse", query: { data: e3.data } }) : t2.$message({ message: "获取房屋信息失败", type: "error" });
|
||
})).catch((function() {
|
||
t2.$message({ message: "获取房屋信息失败", type: "error" });
|
||
}));
|
||
}, checkAnomaly: function() {
|
||
var e2 = this;
|
||
this.checkLoading = true;
|
||
var t2 = JSON.parse(localStorage.getItem("store")).community_uuid;
|
||
Object(c["I"])({ uuid: t2 }).then((function(t3) {
|
||
e2.checkLoading = false, 0 === t3.code ? (e2.$message({ message: t3.message || "检查异常数据成功", type: "success" }), e2.getList()) : e2.$message({ message: t3.message || "检查异常数据失败", type: "error" });
|
||
})).catch((function() {
|
||
e2.checkLoading = false, e2.$message({ message: "检查异常数据失败", type: "error" });
|
||
}));
|
||
}, handleSelectionChange: function(e2) {
|
||
this.selectedList = e2;
|
||
}, batchHandled: function() {
|
||
var e2 = this;
|
||
0 !== this.selectedList.length ? this.$confirm("确定要批量标记选中的数据为已处理吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "info", center: true }).then((function() {
|
||
var t2 = e2.selectedList.map((function(e3) {
|
||
return e3.id;
|
||
}));
|
||
Object(c["J"])({ ids: t2 }).then((function(t3) {
|
||
0 === t3.code ? (e2.$message({ message: t3.message || "批量标记成功", type: "success" }), e2.selectedList = [], e2.$refs.multipleTable.clearSelection(), e2.getList()) : e2.$message({ message: t3.message || "批量标记失败", type: "error" });
|
||
})).catch((function() {
|
||
e2.$message({ message: "批量标记失败", type: "error" });
|
||
}));
|
||
})).catch((function() {
|
||
})) : this.$message({ message: "请选择要标记的数据", type: "warning" });
|
||
}, singleHandled: function(e2) {
|
||
var t2 = this;
|
||
this.$confirm("确定要标记该数据为已处理吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "info", center: true }).then((function() {
|
||
Object(c["J"])({ ids: [e2.id] }).then((function(e3) {
|
||
0 === e3.code ? (t2.$message({ message: e3.message || "标记成功", type: "success" }), t2.getList()) : t2.$message({ message: e3.message || "标记失败", type: "error" });
|
||
})).catch((function() {
|
||
t2.$message({ message: "标记失败", type: "error" });
|
||
}));
|
||
})).catch((function() {
|
||
}));
|
||
} }, mounted: function() {
|
||
this.getList();
|
||
} }, ee = Z, te = (n("6230"), Object(m["a"])(ee, X, Y, false, null, "64daa53e", null)), ne = te.exports, ae = n("52c1");
|
||
function ie(e2) {
|
||
return ie = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e3) {
|
||
return typeof e3;
|
||
} : function(e3) {
|
||
return e3 && "function" == typeof Symbol && e3.constructor === Symbol && e3 !== Symbol.prototype ? "symbol" : typeof e3;
|
||
}, ie(e2);
|
||
}
|
||
function oe(e2, t2) {
|
||
var n2 = Object.keys(e2);
|
||
if (Object.getOwnPropertySymbols) {
|
||
var a2 = Object.getOwnPropertySymbols(e2);
|
||
t2 && (a2 = a2.filter((function(t3) {
|
||
return Object.getOwnPropertyDescriptor(e2, t3).enumerable;
|
||
}))), n2.push.apply(n2, a2);
|
||
}
|
||
return n2;
|
||
}
|
||
function re(e2) {
|
||
for (var t2 = 1; t2 < arguments.length; t2++) {
|
||
var n2 = null != arguments[t2] ? arguments[t2] : {};
|
||
t2 % 2 ? oe(Object(n2), true).forEach((function(t3) {
|
||
se(e2, t3, n2[t3]);
|
||
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(n2)) : oe(Object(n2)).forEach((function(t3) {
|
||
Object.defineProperty(e2, t3, Object.getOwnPropertyDescriptor(n2, t3));
|
||
}));
|
||
}
|
||
return e2;
|
||
}
|
||
function se(e2, t2, n2) {
|
||
return (t2 = le(t2)) in e2 ? Object.defineProperty(e2, t2, { value: n2, enumerable: true, configurable: true, writable: true }) : e2[t2] = n2, e2;
|
||
}
|
||
function le(e2) {
|
||
var t2 = ce(e2, "string");
|
||
return "symbol" == ie(t2) ? t2 : t2 + "";
|
||
}
|
||
function ce(e2, t2) {
|
||
if ("object" != ie(e2) || !e2) return e2;
|
||
var n2 = e2[Symbol.toPrimitive];
|
||
if (void 0 !== n2) {
|
||
var a2 = n2.call(e2, t2 || "default");
|
||
if ("object" != ie(a2)) return a2;
|
||
throw new TypeError("@@toPrimitive must return a primitive value.");
|
||
}
|
||
return ("string" === t2 ? String : Number)(e2);
|
||
}
|
||
var ue = { name: "houseManage", components: { buildingList: h, unitList: _, houseList: H, areaManage: G, houseAnomalyList: ne }, computed: re({}, Object(ae["c"])({ activeName: function(e2) {
|
||
return e2.basicInfo.houseManager.activeName;
|
||
} })), methods: { handleClick: function(e2) {
|
||
var t2 = e2.paneName;
|
||
this.$store.commit("UPDATE_ACTIVE_NAME", t2);
|
||
} } }, de = ue, me = Object(m["a"])(de, a, i, false, null, null, null);
|
||
t["default"] = me.exports;
|
||
}, 1623: function(e, t, n) {
|
||
}, 1859: function(e, t, n) {
|
||
"use strict";
|
||
n("cda0");
|
||
}, "3b5e": function(e, t, n) {
|
||
e.exports = n.p + "static/img/community-ds.0e266254.jpg";
|
||
}, 4808: function(e, t, n) {
|
||
}, 6230: function(e, t, n) {
|
||
"use strict";
|
||
n("4808");
|
||
}, 6396: function(e, t, n) {
|
||
"use strict";
|
||
Math.easeInOutQuad = function(e2, t2, n2, a) {
|
||
return e2 /= a / 2, e2 < 1 ? n2 / 2 * e2 * e2 + t2 : (e2--, -n2 / 2 * (e2 * (e2 - 2) - 1) + t2);
|
||
};
|
||
(function() {
|
||
window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame;
|
||
})();
|
||
}, 7522: function(e, t, n) {
|
||
}, "7b74": function(e, t, n) {
|
||
"use strict";
|
||
n("ab3d");
|
||
}, 9192: function(e, t, n) {
|
||
"use strict";
|
||
n.d(t, "z", (function() {
|
||
return i;
|
||
})), n.d(t, "b", (function() {
|
||
return o;
|
||
})), n.d(t, "j", (function() {
|
||
return r;
|
||
})), n.d(t, "l", (function() {
|
||
return s;
|
||
})), n.d(t, "v", (function() {
|
||
return l;
|
||
})), n.d(t, "y", (function() {
|
||
return c;
|
||
})), n.d(t, "A", (function() {
|
||
return u;
|
||
})), n.d(t, "a", (function() {
|
||
return d;
|
||
})), n.d(t, "q", (function() {
|
||
return m;
|
||
})), n.d(t, "o", (function() {
|
||
return p;
|
||
})), n.d(t, "p", (function() {
|
||
return h;
|
||
})), n.d(t, "u", (function() {
|
||
return f;
|
||
})), n.d(t, "s", (function() {
|
||
return g;
|
||
})), n.d(t, "t", (function() {
|
||
return b;
|
||
})), n.d(t, "e", (function() {
|
||
return v;
|
||
})), n.d(t, "B", (function() {
|
||
return y;
|
||
})), n.d(t, "n", (function() {
|
||
return _;
|
||
})), n.d(t, "w", (function() {
|
||
return w;
|
||
})), n.d(t, "k", (function() {
|
||
return k;
|
||
})), n.d(t, "x", (function() {
|
||
return S;
|
||
})), n.d(t, "h", (function() {
|
||
return I;
|
||
})), n.d(t, "g", (function() {
|
||
return C;
|
||
})), n.d(t, "m", (function() {
|
||
return N;
|
||
})), n.d(t, "f", (function() {
|
||
return x;
|
||
})), n.d(t, "r", (function() {
|
||
return j;
|
||
})), n.d(t, "i", (function() {
|
||
return L;
|
||
})), n.d(t, "d", (function() {
|
||
return O;
|
||
})), n.d(t, "c", (function() {
|
||
return B;
|
||
})), n.d(t, "C", (function() {
|
||
return $;
|
||
}));
|
||
var a = n("b775");
|
||
function i(e2) {
|
||
return Object(a["a"])({ url: "/appproject/PropertyCompany/pageList", method: "POST", data: e2 });
|
||
}
|
||
function o(e2) {
|
||
return Object(a["a"])({ url: "/appproject/PropertyCompany/create", method: "POST", data: e2 });
|
||
}
|
||
function r(e2) {
|
||
return Object(a["a"])({ url: "/appproject/PropertyCompany/update", method: "POST", data: e2 });
|
||
}
|
||
function s(e2) {
|
||
return Object(a["a"])({ url: "/appproject/PropertyCompany/findCompanyByCode", method: "POST", data: e2 });
|
||
}
|
||
function l(e2) {
|
||
return Object(a["a"])({ url: "/appproject/PropertyCompany/pageListByCode", method: "POST", data: e2 });
|
||
}
|
||
function c(e2) {
|
||
return Object(a["a"])({ url: "/appproject/OrderInfo/list", method: "POST", data: e2 });
|
||
}
|
||
function u(e2) {
|
||
return Object(a["a"])({ url: "/appproject/StaffEvaluate/listStaff", method: "POST", data: e2 });
|
||
}
|
||
function d(e2) {
|
||
return Object(a["a"])({ url: "/appproject/WorkOrder/listWork", method: "POST", data: e2 });
|
||
}
|
||
function m(e2) {
|
||
return Object(a["a"])({ url: "/project/FsCharges/create", method: "POST", data: e2 });
|
||
}
|
||
function p(e2) {
|
||
return Object(a["a"])({ url: "/project/FsCharges/findSubjectByUuid", method: "POST", data: e2 });
|
||
}
|
||
function h(e2) {
|
||
return Object(a["a"])({ url: "/project/FsCharges/findSubjectByUuid2", method: "POST", data: e2 });
|
||
}
|
||
function f(e2) {
|
||
return Object(a["a"])({ url: "/project/FsCharges/update", method: "POST", data: e2 });
|
||
}
|
||
function g(e2) {
|
||
return Object(a["a"])({ url: "/project/FsCharges/delete", method: "POST", data: e2 });
|
||
}
|
||
function b(e2) {
|
||
return Object(a["a"])({ url: "/project/FsCharges/resume", method: "POST", data: e2 });
|
||
}
|
||
function v(e2) {
|
||
return Object(a["a"])({ url: "/project/FsCharges/pageList", method: "POST", data: e2 });
|
||
}
|
||
function y(e2) {
|
||
return Object(a["a"])({ url: "/project/FsCharges/updateRel", method: "POST", data: e2 });
|
||
}
|
||
function _(e2) {
|
||
return Object(a["a"])({ url: "/project/FsCharges/findById", method: "POST", data: e2 });
|
||
}
|
||
function w(e2, t2) {
|
||
return Object(a["a"])({ url: "/project/FsCharges/importExcel" + t2, method: "post", isReturnResponse: true, responseType: "blob", headers: { "Content-Type": "multipart/form-data;charset=UTF-8" }, data: e2 });
|
||
}
|
||
function k(e2) {
|
||
return Object(a["a"])({ url: "/appproject/MemberEntryRecord/entryAndQuit", method: "POST", data: e2 });
|
||
}
|
||
function S(e2) {
|
||
return Object(a["a"])({ url: "/appproject/MemberEntryRecord/pageList", method: "POST", data: e2 });
|
||
}
|
||
function I(e2) {
|
||
return Object(a["a"])({ url: "/appproject/MemberEntryRecord/delete", method: "POST", data: e2 });
|
||
}
|
||
function C(e2) {
|
||
return Object(a["a"])({ url: "/project/FsCharges/pageList/company", method: "POST", data: e2 });
|
||
}
|
||
function N(e2) {
|
||
return Object(a["a"])({ url: "/project/FsCharges/findParkCharge", method: "POST", data: e2 });
|
||
}
|
||
function x(e2) {
|
||
return Object(a["a"])({ url: "/project/FsCharges/pageListV2", method: "POST", data: e2 });
|
||
}
|
||
function j(e2) {
|
||
return Object(a["a"])({ url: "/project/FsCharges/copy", method: "POST", data: e2 });
|
||
}
|
||
function L(e2) {
|
||
return Object(a["a"])({ url: "/project/FsCharges/deleteFsCharges", method: "POST", data: e2 });
|
||
}
|
||
function O(e2) {
|
||
return Object(a["a"])({ url: "/appproject/ChargePriceTemplate/pageList", method: "POST", data: e2 });
|
||
}
|
||
function B(e2) {
|
||
return Object(a["a"])({ url: "/appproject/ChargePriceTemplate/download", method: "POST", data: e2 });
|
||
}
|
||
function $(e2) {
|
||
return Object(a["a"])({ url: "/appproject/VideoImageCallback/pageList", method: "POST", data: e2 });
|
||
}
|
||
}, "9ae9": function(e, t, n) {
|
||
"use strict";
|
||
n("1623");
|
||
}, "9bf8": function(e, t, n) {
|
||
}, ab3d: function(e, t, n) {
|
||
}, cda0: function(e, t, n) {
|
||
}, d37b: function(e, t, n) {
|
||
"use strict";
|
||
n("7522");
|
||
}, d760b: function(e, t, n) {
|
||
e.exports = n.p + "static/img/community-pm.3d9a0e9b.jpg";
|
||
} }]);
|