1 line
38 KiB
JavaScript
1 line
38 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-67424817"],{"2c53":function(e,t,n){},"3b5e":function(e,t,n){e.exports=n.p+"static/img/community-ds.0e266254.jpg"},"4ade":function(e,t,n){"use strict";n.r(t);var i=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),e._v(" "),n("el-tab-pane",{attrs:{label:"核定记录",name:"check"}},["check"===e.activeName?n("checkList"):e._e()],1)],1)],1)},a=[],r=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:"编号","min-width":"200","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:"所属管理区","min-width":"200","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":"200","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("8737"),n("829d")),h=Object(d["a"])(u,r,o,!1,null,"35cc89c0",null),p=h.exports,m=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:"编号","min-width":"200","show-overflow-tooltip":""},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:"单元名称","min-width":"200","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:"所属管理区","min-width":"200","show-overflow-tooltip":""},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:"所属楼栋","min-width":"200","show-overflow-tooltip":""},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=[],g={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()}},b=g,v=(n("f740"),Object(d["a"])(b,m,f,!1,null,"4eb50baf",null)),_=v.exports,w=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){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,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){return n("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),n("el-form-item",{attrs:{prop:"id"}},[n("el-select",{attrs:{filterable:"",clearable:"",placeholder:"选择房间"},model:{value:e.query.id,callback:function(t){e.$set(e.query,"id",t)},expression:"query.id"}},e._l(e.selectHouseList,(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){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,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"},[n("span",[n("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"success"},on:{click:e.openCheckInforDialog}},[e._v("核定资料")])],1)]),e._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading.body",value:e.listLoading,expression:"listLoading",modifiers:{body:!0}}],attrs:{border:"",data:e.list,"header-cell-style":e.headClass}},[n("el-table-column",{attrs:{label:"#",align:"center",width:"50","show-overflow-tooltip":""},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:"100",prop:"id",label:"房屋ID"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",width:"210",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":"80","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":"70","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":"70","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":"80","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[n("span",[e._v(e._s(e._f("getItemType")(t.row.status,e.houseStatusList)))])]}}])}),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(e._f("getItemType")(t.row.isDelete,e.houseAttr)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"收费户","min-width":"70","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{attrs:{"active-color":"#13ce66","active-value":1,"inactive-value":2,"inactive-color":"#ff4949"},on:{change:function(n){return e.switchChange(n,t.row)}},model:{value:t.row.isfee,callback:function(n){e.$set(t.row,"isfee",n)},expression:"scope.row.isfee"}})]}}])}),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:"-"))]):e._e()]}}])}),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:"-"))]):e._e()]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",width:"60",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("查看")])]}}])})],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:"precinctIds"}},[n("el-select",{attrs:{multiple:"","collapse-tags":"",filterable:"",clearable:"",placeholder:"选择管理区名称"},on:{change:e.selectCheckChange},model:{value:e.checkInfor.precinctIds,callback:function(t){e.$set(e.checkInfor,"precinctIds",t)},expression:"checkInfor.precinctIds"}},[e.areaOptions.length>1?n("el-option",{key:"allprecinctId",attrs:{label:"全部管理区",value:"allprecinctId"}}):e._e(),e._v(" "),e._l(e.areaOptions,(function(e){return n("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],2)],1),e._v(" "),1===e.checkInfor.precinctIds.length&&e.chackbuilding.length>0?n("el-form-item",{attrs:{label:"选择楼栋",prop:"buildingIds"}},[n("el-select",{attrs:{multiple:"","collapse-tags":"",filterable:"",clearable:"",placeholder:"选择楼栋"},on:{change:e.checkChangeBuild},model:{value:e.checkInfor.buildingIds,callback:function(t){e.$set(e.checkInfor,"buildingIds",t)},expression:"checkInfor.buildingIds"}},[e.chackbuilding.length>1?n("el-option",{key:"allbuildingId",attrs:{label:"全部楼栋",value:"allbuildingId"}}):e._e(),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.precinctIds.length&&1===e.checkInfor.buildingIds.length&&e.chackUnitList.length>0?n("el-form-item",{attrs:{label:"选择单元",prop:"unitIds"}},[n("el-select",{attrs:{multiple:"","collapse-tags":"",filterable:"",clearable:"",placeholder:"选择单元"},on:{change:e.checkChangeUnit},model:{value:e.checkInfor.unitIds,callback:function(t){e.$set(e.checkInfor,"unitIds",t)},expression:"checkInfor.unitIds"}},[e.chackUnitList.length>1?n("el-option",{key:"allunitId",attrs:{label:"全部单元",value:"allunitId"}}):e._e(),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.precinctIds.length&&1===e.checkInfor.buildingIds.length&&1===e.checkInfor.unitIds.length&&e.houseList.length>0?n("el-form-item",{attrs:{label:"选择房间",prop:"houseIds"}},[n("el-select",{attrs:{multiple:"","collapse-tags":"",filterable:"",clearable:"",placeholder:"选择房间"},model:{value:e.checkInfor.houseIds,callback:function(t){e.$set(e.checkInfor,"houseIds",t)},expression:"checkInfor.houseIds"}},[e.houseList.length>1?n("el-option",{key:"allhouseId",attrs:{label:"全部房间",value:"allhouseId"}}):e._e(),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(" "),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)},y=[],k=n("d760b"),I=n.n(k),S=n("3b5e"),N=n.n(S),C=n("dce5"),L={name:"houseList",components:{Pagination:s["a"]},filters:{formatColor:function(e){var t="color:#67C23A;",n="color:#E6A23C;";return 1==e?n:t}},data:function(){return{houseTypeList:C["gb"],houseStatusList:C["fb"],total:0,id:0,importDataBtn:!1,add:!1,list:[],building:[],unit:[],useState:[],viewImport:!1,houseProperty:[],multiInfoList:[],areaOptions:[],fileName:"",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:"",id:"",roomNum:"",type:"",memberName:"",memberPhone:"",remark:""},residentInfoList:[],carInfoList:[],identityType:[],gender:{1:"男",2:"女",0:"未知"},residentState:[],totalCount:"",successCount:"",errorCount:"",checkInforVisible:!1,checkInforbtnLoading:!1,chackbuilding:[],chackUnitList:[],houseList:[],selectHouseList:[],checkInfor:{projectUuid:"",precinctIds:[],buildingIds:[],unitIds:[],houseIds:[],operatorId:"",operatorName:"",operatorUuid:""},checkInforRules:{precinctId:[{required:!0,message:"请选择核定管理区",trigger:"change"}]},houseAttr:[{label:"正常",value:0},{label:"已删除",value:1}]}},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,i=n.size/1024/1024<10,a=n.name.lastIndexOf("."),r=n.name.length,o=n.name.substring(a+1,r);if("xls"==o||"xlsx"==o)if(i){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,i=e.data;if(t.downloadInfo=i,n.count){var a=JSON.parse(n.count);a&&(0==a.code?(t.importDataBtn=!1,t.viewImport=!0,t.totalCount=a.totalCount,t.successCount=a.successCount,t.errorCount=a.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 i=document.createElement("a");i.download=n,i.style.display="none",i.href=URL.createObjectURL(t),document.body.appendChild(i),i.click(),document.body.removeChild(i)}},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};Object(l["f"])(t).then((function(t){0===t.code&&(e.areaOptions=t.data)}))},houseAdd:function(){this.$router.push({path:"/projectProfile/houseAdd"})},selectChange:function(){this.query.buildingId="",this.building=[],this.query.unitId="",this.unit=[],this.query.id="",this.selectHouseList=[],this.getBuild(0)},openCheckInforDialog:function(){this.checkInforVisible=!0},selectCheckChange:function(e){this.chackbuilding=[],this.chackUnitList=[],this.houseList=[],this.checkInfor.buildingIds=[],this.checkInfor.unitIds=[],this.checkInfor.houseIds=[],e.includes("allprecinctId")?this.checkInfor.precinctIds=this.areaOptions.map((function(e){return e["id"]})):this.getBuild(1)},getBuild:function(e){var t=this;Object(l["x"])({precinctId:0===e?this.query.precinctId:this.checkInfor.precinctIds[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;Object(l["mb"])({pageNumber:-1,pageSize:-1,projectCode:this.$store.state.community_uuid,buildingId:0===e?this.query.buildingId:this.checkInfor.buildingIds[0]}).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.selectHouseList=[],this.getUnit(0)},changeUnit:function(){this.selectHouseList=[],this.query.id="",this.getHouseList()},checkChangeBuild:function(e){this.chackUnitList=[],this.houseList=[],this.checkInfor.unitIds=[],this.checkInfor.houseIds=[],e.includes("allbuildingId")?this.checkInfor.buildingIds=this.chackbuilding.map((function(e){return e["id"]})):this.getUnit(1)},getHouseList:function(){var e=this,t={projectCode:this.query.projectUuid,precinctId:this.query.precinctId,buildingId:this.query.buildingId,unitId:this.query.unitId,pageNumber:-1,pageSize:-1};Object(l["M"])(t).then((function(t){0===t.code&&(e.selectHouseList=t.data.records)}))},checkChangeUnit:function(e){var t=this;this.houseList=[],this.checkInfor.houseIds=[];var n={projectCode:this.checkInfor.projectUuid,precinctId:this.checkInfor.precinctIds[0],buildingId:this.checkInfor.buildingIds[0],unitId:this.checkInfor.unitIds[0],pageNumber:-1,pageSize:-1};if(1!==this.checkInfor.unitIds.length)return!1;e.includes("allunitId")?this.checkInfor.unitIds=this.chackUnitList.map((function(e){return e["id"]})):Object(l["M"])(n).then((function(e){0===e.code&&(t.houseList=e.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}))},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,i){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){this.$router.push({path:"/viewInfo/roomDetails",query:{id:e.id,type:1}})},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;0!=this.checkInfor.precinctIds.length?this.$refs[e].validate((function(e){if(!e)return console.log("error submit!!"),!1;var n=Object.assign({},t.checkInfor),i={};i=n.houseIds.includes("allhouseId")?Object.assign(n,{houseIds:[]}):Object.assign(n),console.log("params",i),t.checkInforbtnLoading=!0,Object(l["Y"])(i).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}))})):this.$message.error("请选择管理区")},resetFormDialog:function(e){this.$refs[e].resetFields(),this.checkInforVisible=!1},switchChange:function(e,t){var n=this;Object(l["nb"])({id:t.id,isfee:e}).then((function(e){0===e.code?n.$message({message:"更新成功",type:"success"}):n.$message({message:"更新失败",type:"error"}),n.getList()}))}},mounted:function(){this.getBuildList(),this.getBuild(),this.getList()}},q=L,x=(n("6e74"),Object(d["a"])(q,w,y,!1,null,"1606875c",null)),$=x.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)],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","show-overflow-tooltip":""},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","min-width":"200",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","min-width":"200",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","min-width":"200",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)},F=[],O={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()}},z=O,D=(n("9cfb"),Object(d["a"])(z,j,F,!1,null,"3361254e",null)),A=D.exports,U=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"filter-container"}),e._v(" "),n("el-table",{attrs:{border:"",fit:"","highlight-current-row":"",data:e.listData,"header-cell-style":e.headClass}},[n("el-table-column",{attrs:{label:"#",align:"center",width:"50","show-overflow-tooltip":""},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:"核定管理区","min-width":"150","show-overflow-tooltip":""},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:"核定楼栋","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.buildingName?t.row.buildingName:"全部"))])]}}])}),e._v(" "),n("el-table-column",{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.unitName?t.row.unitName:"全部"))])]}}])}),e._v(" "),n("el-table-column",{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.houseNo?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.approvedNum))])]}}])}),e._v(" "),n("el-table-column",{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.approvedUser))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"核定开始时间",width:"200","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.approvedDate))])]}}])})],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)},P=[],B={data:function(){return{listLoading:!1,listData:[],total:0,query:{projectCode:"",pageNumber:1,pageSize:10}}},mounted:function(){this.query.projectCode=this.$store.state.community_uuid,this.headClass(),this.getListData()},methods:{getListData:function(){var e=this;this.listLoading=!0,Object(l["Z"])(this.query).then((function(t){t.data&&t.data.records&&(e.listData=t.data.records,e.total=t.data.rowsCount)})),this.listLoading=!1},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;"}}},T=B,E=Object(d["a"])(T,U,P,!1,null,null,null),H=E.exports,V=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 R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){Q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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=Y(e,"string");return"symbol"==M(t)?t:t+""}function Y(e,t){if("object"!=M(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=M(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Z={name:"houseManage",components:{buildingList:p,unitList:_,houseList:$,areaManage:A,checkList:H},computed:J({},Object(V["c"])({activeName:function(e){return e.basicInfo.businessTaxCank.activeName}})),methods:{handleClick:function(e){var t=e.paneName;this.$store.commit("UPDATE_ACTIVE_NAME_BUSINESS",t)}}},G=Z,K=Object(d["a"])(G,i,a,!1,null,null,null);t["default"]=K.exports},"55ed":function(e,t,n){},6396:function(e,t,n){"use strict";Math.easeInOutQuad=function(e,t,n,i){return e/=i/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};(function(){window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame})()},"6e74":function(e,t,n){"use strict";n("f7c0")},8737:function(e,t,n){"use strict";n("55ed")},"9cfb":function(e,t,n){"use strict";n("2c53")},d760b:function(e,t,n){e.exports=n.p+"static/img/community-pm.3d9a0e9b.jpg"},f740:function(e,t,n){"use strict";n("f857")},f7c0:function(e,t,n){},f857:function(e,t,n){}}]); |