| | |
| | | <u-icon name="/static/icon/map.png" width="15" height="18"></u-icon>
|
| | | <view>{{ curSelectSite.name }}/{{housingName}}{{buildingName}}</view>
|
| | | </view>
|
| | | <block v-if="addressName">
|
| | | <view class="cur-header">
|
| | | <u-icon name="/static/icon/map.png" width="15" height="18"></u-icon>
|
| | | <view>{{neiName}}/{{housingName}}{{buildingName}}</view>
|
| | | </view>
|
| | | <view class="house-address f-26 bgc-ff">
|
| | | <text>标准地址:</text>
|
| | | <text>{{addressName}}</text>
|
| | | </view>
|
| | | |
| | | <view class="cell flex j-c-s-b flex-wrap " v-if="addressName">
|
| | | <view class="cell-item">
|
| | | <text class="f-28 mb-20 c-99">房屋数(套)</text>
|
| | | <text class="f-30 fw">{{houseData.result2}}</text>
|
| | | <image class="cell-item-icon" src="/static/icon/statistics-nav-02.png" mode="aspectFill"></image>
|
| | | </view>
|
| | | <view class="cell-item">
|
| | | <text class="f-28 mb-20 c-99">住户数(人)</text>
|
| | | <text class="f-30 fw">{{houseData.result3}}</text>
|
| | | <image class="cell-item-icon" src="/static/icon/statistics-nav-03.png" mode="aspectFill"></image>
|
| | | </view>
|
| | | <view class="cell-item" v-if="!unitName">
|
| | | <text class="f-28 mb-20 c-99">单元数</text>
|
| | | <text class="f-30 fw">{{houseData.result4}}</text>
|
| | | <image class="cell-item-icon" src="/static/icon/statistics-nav-01.png" mode="aspectFill"></image>
|
| | | </view>
|
| | | </view>
|
| | | |
| | | |
| | | <block v-if="addressName">
|
| | | <view class="cur-header">
|
| | | <u-icon name="/static/icon/map.png" width="15" height="18"></u-icon>
|
| | | <view>{{neiName}}/{{housingName}}{{buildingName}}</view>
|
| | | </view>
|
| | | <view class="house-address f-26 bgc-ff">
|
| | | <text>标准地址:</text>
|
| | | <text>{{addressName}}</text>
|
| | | </view>
|
| | |
|
| | | <view class="cell flex j-c-s-b flex-wrap " v-if="addressName">
|
| | | <view class="cell-item">
|
| | | <text class="f-28 mb-20 c-99">房屋数(套)</text>
|
| | | <text class="f-30 fw">{{houseData.result2}}</text>
|
| | | <image class="cell-item-icon" src="/static/icon/statistics-nav-02.png" mode="aspectFill">
|
| | | </image>
|
| | | </view>
|
| | | <view class="cell-item">
|
| | | <text class="f-28 mb-20 c-99">住户数(人)</text>
|
| | | <text class="f-30 fw">{{houseData.result3}}</text>
|
| | | <image class="cell-item-icon" src="/static/icon/statistics-nav-03.png" mode="aspectFill">
|
| | | </image>
|
| | | </view>
|
| | | <view class="cell-item" v-if="!unitName">
|
| | | <text class="f-28 mb-20 c-99">单元数</text>
|
| | | <text class="f-30 fw">{{houseData.result4}}</text>
|
| | | <image class="cell-item-icon" src="/static/icon/statistics-nav-01.png" mode="aspectFill">
|
| | | </image>
|
| | | </view>
|
| | | </view>
|
| | |
|
| | |
|
| | | </block>
|
| | | |
| | | <view class="search-box mt-20 around-p-20 flex a-i-c j-c-c bgc-ff" v-if="buildingList.length">
|
| | | <u-search placeholder="请输入人员名" :showAction="false" @search="getBuildingList" @clear="getBuildingList" v-model="searchKey" :clearabled="true"></u-search>
|
| | |
|
| | | <view class="search-box mt-20 around-p-20 flex a-i-c j-c-c bgc-ff" v-if="buildingList.length">
|
| | | <u-search placeholder="请输入人员名" :showAction="false" @search="getBuildingList" @clear="getBuildingList"
|
| | | v-model="searchKey" :clearabled="true"></u-search>
|
| | | </view>
|
| | | |
| | |
|
| | | <view class="mt-20 h0 flex-1 build-list-box content">
|
| | | <u-collapse :value="buildingList.length == 1?['0']:''">
|
| | | <u-collapse-item v-if="isShowBuild" style="border: none;" :name="index" :title="item.unitName"
|
| | |
| | | <!-- <view v-show="!!scItem.roleType == 1">
|
| | | <u-icon name="/static/icon/selected.png" size="16"></u-icon>
|
| | | </view> -->
|
| | |
|
| | |
|
| | | </view>
|
| | | </view>
|
| | | <view class="flex floor-info-box">
|
| | |
| | | <text class="r floor-box">
|
| | | {{scItem.houseNo}}
|
| | | </text>
|
| | | </view>
|
| | | <view style="margin-top:5rpx;">
|
| | | <block>
|
| | | <view class="mr-10" style="display: inline-block;">
|
| | | <u-tag text="测试" size="mini">
|
| | | </u-tag>
|
| | | </view>
|
| | | </block>
|
| | | </view>
|
| | | </view>
|
| | | </view>
|
| | |
| | | import {
|
| | | getHouseList
|
| | | } from "@/api/doorplateAddress/doorplateAddress";
|
| | | import { getHouseStatistics } from "@/api/statistics/statistics.js"
|
| | | import { codeName } from "../../../common/setting"; |
| | | import {
|
| | | getHouseStatistics
|
| | | } from "@/api/statistics/statistics.js"
|
| | | import {
|
| | | codeName
|
| | | } from "../../../common/setting";
|
| | | export default {
|
| | | components: {},
|
| | |
|
| | |
| | | isShowBuild: false,
|
| | | isShowShop: false,
|
| | | currentId: '',
|
| | | housingName: '', //楼盘名称
|
| | | buildingName: 1, //楼栋名称
|
| | | housingName: '', //楼盘名称
|
| | | buildingName: 1, //楼栋名称
|
| | | addressType: 1,
|
| | | // 社区编号
|
| | | neiCode: "",
|
| | |
| | | searchKey: '',
|
| | | shopList: [],
|
| | | curSelectSite: {},
|
| | | addressName:"" ,//详细地址
|
| | | neiName:"" ,//居委会名称
|
| | | unitName:"" ,//单元名称
|
| | | houseData:{}
|
| | | addressName: "", //详细地址
|
| | | neiName: "", //居委会名称
|
| | | unitName: "", //单元名称
|
| | | houseData: {}
|
| | | }
|
| | | },
|
| | | onLoad(e) {
|
| | |
| | | this.currentId = id
|
| | | this.housingName = housingName
|
| | | this.buildingName = buildingName
|
| | | if(addressType){
|
| | | if (addressType) {
|
| | | this.addressType = addressType
|
| | | }
|
| | | |
| | |
|
| | | this.neiCode = neiCode
|
| | | |
| | | if(e.address){ //扫码跳入
|
| | |
|
| | | if (e.address) { //扫码跳入
|
| | | this.addressName = e.address;
|
| | | this.neiName = e.neiName;
|
| | | this.currentId = e.buildingCode;
|
| | | if(e.unitName){
|
| | | if (e.unitName) {
|
| | | this.unitName = e.unitName;
|
| | | uni.setNavigationBarTitle({
|
| | | title:`${housingName}${buildingName}${e.unitName}`
|
| | | title: `${housingName}${buildingName}${e.unitName}`
|
| | | })
|
| | | this.getHouseData(neiCode,e.unitCode,1)
|
| | | }else{
|
| | | this.getHouseData(neiCode, e.unitCode, 1)
|
| | | } else {
|
| | | uni.setNavigationBarTitle({
|
| | | title:`${housingName}${buildingName}`
|
| | | title: `${housingName}${buildingName}`
|
| | | })
|
| | | this.getHouseData(neiCode,e.buildingCode,2)
|
| | | this.getHouseData(neiCode, e.buildingCode, 2)
|
| | | }
|
| | | }
|
| | | },
|
| | |
| | | if (aoiList.length) {
|
| | | this.isShowBuild = true
|
| | | // 正常展示户室数据
|
| | | |
| | | if(this.unitName){ //扫单元码进入过滤其它单元
|
| | |
|
| | | if (this.unitName) { //扫单元码进入过滤其它单元
|
| | | this.buildingList = aoiList.filter(e => e.unitName == this.unitName);
|
| | | }else {
|
| | | aoiList.forEach(item => {
|
| | | item.children && item.children.sort((a, b) => a.floor - b.floor)
|
| | | })
|
| | | this.buildingList = aoiList || []
|
| | | } else {
|
| | | aoiList.forEach(item => {
|
| | | item.children && item.children.sort((a, b) => a.floor - b.floor)
|
| | | })
|
| | | this.buildingList = aoiList || []
|
| | | }
|
| | | }
|
| | | if (shopList.length) {
|
| | |
| | | let url = `/subPackage/house/houseNumber/index?stdId=${addressCode}&addressType=${addressType}`
|
| | | this.$u.func.globalNavigator(url, "navTo")
|
| | | },
|
| | | getHouseData(code,code2,type) {
|
| | | getHouseData(code, code2, type) {
|
| | | let params = {
|
| | | code,
|
| | | roleType:1
|
| | | roleType: 1
|
| | | }
|
| | | if(type == 1){
|
| | | if (type == 1) {
|
| | | params.unitCode = code2
|
| | | }else {
|
| | | } else {
|
| | | params.buildingCode = code2
|
| | | }
|
| | | getHouseStatistics(params).then(res => {
|
| | |
| | | padding: 20rpx;
|
| | |
|
| | | }
|
| | |
|
| | | .cell {
|
| | | padding: 20rpx 20rpx 0;
|
| | |
|
| | | .cell-item {
|
| | | // width: 220rpx;
|
| | | width: calc(50% - 20rpx);
|
| | |
| | | position: relative;
|
| | | box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 0, 0, 0.1);
|
| | | }
|
| | | |
| | |
|
| | | .cell-item-icon {
|
| | | width: 64rpx;
|
| | | height: 64rpx;
|
| | |
| | | right: 20rpx;
|
| | | top: 20rpx;
|
| | | }
|
| | |
|
| | | .cell-item:nth-last-child(-n+2) {
|
| | | margin-bottom:0;
|
| | | } |
| | | margin-bottom: 0;
|
| | | }
|
| | | }
|
| | | .search-box{
|
| | | padding:20rpx;
|
| | |
|
| | | .search-box {
|
| | | padding: 20rpx;
|
| | | }
|
| | | </style> |