Files
wysite/hc-pos.sqygj.cn/static/js/chunk-2802ddd8.daaa706f.js

1 line
80 KiB
JavaScript
Raw Permalink Blame History

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