Files
wysite/hc-pos.sqygj.cn/static/js/chunk-742201d9.199551d2.js

1 line
32 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-742201d9"],{"34fa":function(e,t,n){"use strict";n.r(t);var r=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:"area"}},["area"===e.activeName?n("area-Manage"):e._e()],1),e._v(" "),n("el-tab-pane",{attrs:{label:"楼栋",name:"building"}},["building"===e.activeName?n("building-List"):e._e()],1),e._v(" "),n("el-tab-pane",{attrs:{label:"单元",name:"unit"}},["unit"===e.activeName?n("unit-List"):e._e()],1),e._v(" "),n("el-tab-pane",{attrs:{label:"房间",name:"house"}},["house"===e.activeName?n("house-List"):e._e()],1)],1)],1)},i=[],a=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",[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)],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:"编号","show-overflow-tooltip":""},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:"所属管理区","show-overflow-tooltip":""},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:"楼栋名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.name))])]}}])})],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)},o=[],s=n("333d"),l=(n("e10e"),n("2b74")),c={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:{getList:function(){var e=this;Object(l["X"])(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.getList()}},u=c,d=(n("49efd"),n("829d")),m=Object(d["a"])(u,a,o,!1,null,"03f9a25d",null),h=m.exports,p=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)],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.precinctName?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.buildingName))])]}}])})],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)},f=[],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:{getList:function(){var e=this;this.searchForm.projectCode=this.$store.state.community_uuid,Object(l["db"])(this.searchForm).then((function(t){e.unitList=t.data.records,e.total=t.data.rowsCount}))},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="",this.getList()},headClass:function(){return"text-align:center;background:#FAFAFA;"}},mounted:function(){this.getList()}},g=b,v=(n("e220"),Object(d["a"])(g,p,f,!1,null,"12edf3e2",null)),y=v.exports,_=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:"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,t){return n("el-option",{key:t,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,t){return n("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),n("el-form-item",{attrs:{prop:"unitId"}},[n("el-select",{attrs:{filterable:"",clearable:"",placeholder:"所有单元"},on:{change:e.changeUnit},model:{value:e.query.unitId,callback:function(t){e.$set(e.query,"unitId",t)},expression:"query.unitId"}},e._l(e.unit,(function(e,t){return n("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),n("el-form-item",{attrs:{prop:"id"}},[n("el-select",{staticClass:"form-item-content",attrs:{filterable:"",clearable:"",placeholder:"选择房间"},model:{value:e.query.id,callback:function(t){e.$set(e.query,"id",t)},expression:"query.id"}},e._l(e.houseList,(function(e){return n("el-option",{key:e.id,attrs:{label:e.roomNum,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,t){return n("el-option",{key:t,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:"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,expression:"isShow"}],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,expression:"isShow"}],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)],1)],1),e._v(" "),n("div",{staticClass:"btnStys"}),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:{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",width:"200",label:"编号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.houseNo))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"所属管理区","min-width":"100","show-overflow-tooltip":""},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:"楼栋","min-width":"80","show-overflow-tooltip":""},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:"单元","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.unitName))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"楼层","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.storey))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"房间号","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.roomNum))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"收费面积(㎡)","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.chargeArea?t.row.chargeArea:"-"))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"建筑面积(㎡)","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.floorage?t.row.floorage:"-"))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"使用面积(㎡)","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.useArea?t.row.useArea:"-"))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"公摊面积(㎡)","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.publicArea?t.row.publicArea:"-"))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"房间类型","min-width":"90","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)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"产权人","min-width":"80","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?t.row.propertyOwner.realName:"-"))]):n("span",[e._v("-")])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"产权人手机",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.propertyOwner?n("span",[e._v(e._s(t.row.propertyOwner.mobile?t.row.propertyOwner.mobile:"-"))]):n("span",[e._v("-")])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",width:"80",label:"操作",fixed:"right","show-overflow-tooltip":""},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("查看")])]}}])})],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),e._v(" "),n("el-dialog",{staticClass:"dialogHead",attrs:{title:"选择核定范围","modal-append-to-body":!0,"append-to-body":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,width:"500px",height:"300px",visible:e.checkInforVisible},on:{"update:visible":function(t){e.checkInforVisible=t}}},[n("div",{staticClass:"checkInforSelct"},[n("el-form",{ref:"checkInfor",attrs:{model:e.checkInfor,rules:e.checkInforRules,"label-width":"100px"}},[n("el-form-item",{attrs:{label:"选择管理区",prop:"precinctId"}},[n("el-select",{attrs:{filterable:"",clearable:"",placeholder:"选择管理区名称"},on:{change:e.selectCheckChange},model:{value:e.checkInfor.precinctId,callback:function(t){e.$set(e.checkInfor,"precinctId",t)},expression:"checkInfor.precinctId"}},e._l(e.areaOptions,(function(e,t){return n("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),n("el-form-item",{attrs:{label:"选择楼栋",prop:"buildingId"}},[n("el-select",{attrs:{filterable:"",clearable:"",placeholder:"选择楼栋"},on:{change:e.checkChangeBuild},model:{value:e.checkInfor.buildingId,callback:function(t){e.$set(e.checkInfor,"buildingId",t)},expression:"checkInfor.buildingId"}},e._l(e.chackbuilding,(function(e,t){return n("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),n("el-form-item",{attrs:{label:"选择单元",prop:"unitId"}},[n("el-select",{attrs:{filterable:"",clearable:"",placeholder:"选择单元"},on:{change:e.checkChangeUnit},model:{value:e.checkInfor.unitId,callback:function(t){e.$set(e.checkInfor,"unitId",t)},expression:"checkInfor.unitId"}},e._l(e.chackUnitList,(function(e,t){return n("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),n("el-form-item",{attrs:{label:"选择房间",prop:"houseNo"}},[n("el-select",{attrs:{filterable:"",clearable:"",placeholder:"选择房间"},model:{value:e.checkInfor.houseNo,callback:function(t){e.$set(e.checkInfor,"houseNo",t)},expression:"checkInfor.houseNo"}},e._l(e.houseListArray,(function(e,t){return n("el-option",{key:t+e.id,attrs:{label:e.roomNum,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",loading:e.checkInforbtnLoading},on:{click:function(t){return e.submitForm("checkInfor")}}},[e._v("确定")]),e._v(" "),n("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],on:{click:function(t){return e.resetFormDialog("checkInfor")}}},[e._v("取消")])],1)],1)],1)])],1)},w=[],k=n("d760b"),I=n.n(k),S=n("3b5e"),N=n.n(S),C=n("dce5");function L(e){return L="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},L(e)}function q(e,t,n){return(t=x(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e){var t=$(e,"string");return"symbol"==L(t)?t:t+""}function $(e,t){if("object"!=L(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=L(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var F={components:{Pagination:s["a"]},filters:{formatColor:function(e){var t="color:#67C23A;",n="color:#E6A23C;";return 1==e?n:t}},data:function(){var e;return e={houseTypeList:C["gb"],total:0,id:0,importDataBtn:!1,add:!1,list:[]},q(q(q(q(q(q(q(q(q(q(e,"total",0),"building",[]),"unit",[]),"houseList",[]),"useState",[]),"viewImport",!1),"houseProperty",[]),"multiInfoList",[]),"areaOptions",[]),"fileName",""),q(q(q(q(q(q(q(q(q(q(e,"pmImage",I.a),"dsImage",N.a),"downloadInfo",""),"isShow",!1),"listLoading",!1),"dialogVisible",!1),"dialogEditVisible",!1),"deleteBtn",!0),"query",{pageNumber:1,pageSize:10,precinctId:"",buildingId:"",unitId:"",roomNum:"",type:"",memberName:"",memberPhone:"",remark:"",houseNo:"",id:""}),"residentInfoList",[]),q(q(q(q(q(q(q(q(q(q(e,"carInfoList",[]),"identityType",[]),"gender",{1:"男",2:"女",0:"未知"}),"residentState",[]),"totalCount",""),"successCount",""),"errorCount",""),"checkInforVisible",!1),"checkInforbtnLoading",!1),"chackbuilding",[]),q(q(q(q(e,"chackUnitList",[]),"houseListArray",[]),"checkInfor",{projectUuid:"",precinctId:"",buildingId:"",unitId:"",houseId:"",operatorId:"",operatorName:"",operatorUuid:""}),"checkInforRules",{precinctId:[{required:!0,message:"请选择核定管理区",trigger:"change"}]})},created:function(){this.query.projectCode=this.$store.state.community_uuid,this.checkInfor.projectUuid=this.$store.state.community_uuid,this.checkInfor.operatorUuid=this.$store.state.user.userInfo.memberUuid,this.checkInfor.operatorId=this.$store.state.user.userInfo.postUuid,this.checkInfor.operatorName=this.$store.state.user.userInfo.memberName,this.headClass()},methods:{exportTemplate:function(){window.location.href="https://sqy-oss-test.oss-cn-guangzhou.aliyuncs.com/test/92ce775d-c754-4613-8144-eaa6ac51d265.xlsx"},importData:function(e){var t=this,n=e.file,r=n.size/1024/1024<10,i=n.name.lastIndexOf("."),a=n.name.length,o=n.name.substring(i+1,a);if("xls"==o||"xlsx"==o)if(r){var s=new FormData;this.fileName=n.name,s.append("file",n,n.name),s.append("appId",2),this.importDataBtn=!0,Object(l["Q"])(s).then((function(e){var n=e.headers,r=e.data;if(t.downloadInfo=r,n.count){var i=JSON.parse(n.count);i&&(0==i.code?(t.importDataBtn=!1,t.viewImport=!0,t.totalCount=i.totalCount,t.successCount=i.successCount,t.errorCount=i.errorCount,t.query.pageNumber=1,t.multiInfoList.length>0&&t.$refs.multipleTable.clearSelection(),t.getList()):t.importDataBtn=!1)}})).catch((function(){t.importDataBtn=!1}))}else this.$message("上传文件大小不能超过10M!");else this.$message("只能上传Excel文件!")},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 r=document.createElement("a");r.download=n,r.style.display="none",r.href=URL.createObjectURL(t),document.body.appendChild(r),r.click(),document.body.removeChild(r)}},handleSlow:function(){this.isShow=!this.isShow},resetForm:function(e){this.query.pageNumber=1,this.$refs[e].resetFields(),this.multiInfoList.length>0&&this.$refs.multipleTable.clearSelection(),this.getList()},getBuildList:function(){var e=this,t={projectUuid:this.$store.state.community_uuid,pageNumber:-1,pageSize:-1};Object(l["f"])(t).then((function(t){0===t.code&&(e.areaOptions=t.data)}))},changeUnit:function(){this.houseList=[],this.query.id="",this.getHouseList()},getHouseList:function(){var e=this,t={projectCode:this.query.projectUuid,precinctId:this.query.precinctId,buildingId:this.query.buildingId,unitId:this.query.unitId,pageSize:-1};Object(l["M"])(t).then((function(t){0===t.code&&(e.houseList=t.data.records)}))},houseAdd:function(){this.$router.push({path:"/projectProfile/houseAdd"})},selectChange:function(){this.query.buildingId="",this.building=[],this.query.unitId="",this.unit=[],this.query.id="",this.houseList=[],this.getBuild(0)},openCheckInforDialog:function(){},selectCheckChange:function(){this.getBuild(1)},getBuild:function(e){var t=this;Object(l["x"])({precinctId:0===e?this.query.precinctId:this.checkInfor.precinctId,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;Object(l["mb"])({pageNumber:-1,pageSize:-1,projectCode:this.$store.state.community_uuid,buildingId:0===e?this.query.buildingId:this.checkInfor.buildingId}).then((function(n){0===e?t.unit=n.data.records:t.chackUnitList=n.data.records}))},changeBuild:function(e){this.query.buildingId=e,this.query.unitId="",this.unit=[],this.query.id="",this.houseList=[],this.getUnit(0)},checkChangeBuild:function(){this.getUnit(1)},checkChangeUnit:function(){var e=this,t={projectCode:this.checkInfor.projectUuid,precinctId:this.checkInfor.precinctId,buildingId:this.checkInfor.buildingId,unitId:this.checkInfor.unitId};Object(l["M"])(t).then((function(t){0===t.code&&(e.houseListArray=t.data.records)}))},headClass:function(){return"text-align:center;background:#FAFAFA;"},handleSizeChange:function(e){this.query.pageSize=e,this.getList()},handleCurrentChange:function(e){this.query.pageNumber=e,this.getList()},handleSelectionChange:function(e){this.multiInfoList=e,this.multiInfoList.length>0?this.deleteBtn=!1:this.deleteBtn=!0},updataInfo:function(){var e=this;Object(l["ob"])({projectCode:this.$store.state.community_uuid}).then((function(t){0==t.code&&e.$message({type:"success",message:"同步成功"})}))},onSearch:function(){this.query.pageNumber=1,this.getList()},getList:function(){var e=this;Object(l["bb"])(this.query).then((function(t){e.list=t.data.records,e.total=t.data.rowsCount,e.$nextTick((function(){e.memoryChecked()}))}))},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,r){t.indexOf(n.houseNo)>=0&&e.$refs.multipleTable.toggleRowSelection(n,!0)}))}))},getBuildUnit:function(){var e=this;Object(l["l"])(this.query).then((function(t){var n=t.content;e.building=n.buildingList,e.unit=n.unitList}))},houseDetail:function(e){sessionStorage.setItem("houseItem",JSON.stringify(e)),this.$router.push({path:"/viewInfo/roomDetails",query:{id:e.id,type:2}})},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(l["g"])({idList:t}).then((function(t){0==t.code&&(e.$message({message:"删除成功",type:"success"}),e.query.pageNumber=1,e.getList(),e.multiInfoList=[],e.$refs.multipleTable.clearSelection())}))}))},houseDelete:function(e){var t=this;this.$confirm("确定删除该数据吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"info",center:!0}).then((function(){Object(l["s"])({id:e.id}).then((function(e){0==e.code&&(t.$message({message:"删除成功",type:"success"}),t.query.pageNumber=1,t.getList())}))}))},addDevice:function(){this.add=!0,this.$nextTick((function(){this.$refs.addDevice.init()}))},closeAdd:function(){this.add=!1},submitForm:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return console.log("error submit!!"),!1;var n=Object.assign(t.checkInfor);console.log("params",n),t.checkInforbtnLoading=!0,Object(l["Y"])(n).then((function(e){0===e.code?(t.$message({message:"核定成功",type:"success"}),t.checkInforVisible=!1):t.$message({message:"核定失败",type:"error"}),t.checkInforbtnLoading=!1})).catch((function(){t.checkInforbtnLoading=!1}))}))},resetFormDialog:function(e){this.$refs[e].resetFields(),this.checkInforVisible=!1}},mounted:function(){this.getBuildList(),this.getBuild(),this.getList()}},j=F,O=(n("e46d"),Object(d["a"])(j,_,w,!1,null,"1ade33ce",null)),z=O.exports,A=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)],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:"管理区编号","show-overflow-tooltip":""},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:"管理区名称","show-overflow-tooltip":""},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:"更新时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.updateDate))])]}}])})],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)},D=[],P={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:{getListData:function(){var e=this;this.listLoading=!0,Object(l["cb"])(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()}},B=P,U=(n("79a0"),Object(d["a"])(B,A,D,!1,null,"b7a35278",null)),T=U.exports,E=n("52c1");function M(e){return M="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},M(e)}function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach((function(t){H(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function H(e,t,n){return(t=J(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J(e){var t=Q(e,"string");return"symbol"==M(t)?t:t+""}function Q(e,t){if("object"!=M(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=M(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Y={name:"houseManage",components:{buildingList:h,unitList:y,houseList:z,areaManage:T},computed:R({},Object(E["c"])({activeName:function(e){return e.basicInfo.payerManage.activeName}})),methods:{handleClick:function(e){var t=e.paneName;this.$store.commit("UPDATE_ACTIVE_NAME_PAYER",t)}}},X=Y,G=Object(d["a"])(X,r,i,!1,null,null,null);t["default"]=G.exports},"3b5e":function(e,t,n){e.exports=n.p+"static/img/community-ds.0e266254.jpg"},"49efd":function(e,t,n){"use strict";n("6a44")},6396:function(e,t,n){"use strict";Math.easeInOutQuad=function(e,t,n,r){return e/=r/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};(function(){window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame})()},"6a44":function(e,t,n){},"79a0":function(e,t,n){"use strict";n("c38e")},c2d1:function(e,t,n){},c38e:function(e,t,n){},d760b:function(e,t,n){e.exports=n.p+"static/img/community-pm.3d9a0e9b.jpg"},e220:function(e,t,n){"use strict";n("c2d1")},e46d:function(e,t,n){"use strict";n("e6e5")},e6e5:function(e,t,n){}}]);