|
@@ -2,45 +2,30 @@
|
|
<view class="list_s">
|
|
<view class="list_s">
|
|
<view class="header_s">
|
|
<view class="header_s">
|
|
<u-popup v-model="show" mode="top">
|
|
<u-popup v-model="show" mode="top">
|
|
- <view class="popup">
|
|
|
|
- <view style="margin-top: 120rpx;">
|
|
|
|
|
|
+ <scroll-view scroll-y="true" style="height: 100vh; text-align: center" class="popup">
|
|
|
|
+ <view>
|
|
|
|
+ <view class="font-fifty-six SourceHanSansCN choose" @click="openHouse('district')">
|
|
|
|
+ {{districtName ? districtName :'选择行政区'}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
<view>
|
|
<view>
|
|
<view class="font-fifty-six SourceHanSansCN choose" @click="openHouse('xiaoqu')">
|
|
<view class="font-fifty-six SourceHanSansCN choose" @click="openHouse('xiaoqu')">
|
|
- {{house ? house :'选择小区'}}
|
|
|
|
- <u-popup v-model="pop" mode="top" height="1000rpx">
|
|
|
|
- <view style="margin: 20rpx;">
|
|
|
|
- <u-search placeholder="请输入搜索内容" v-model="keyword" :action-style="{'font-size':'40rpx'}" @custom="searchinfo(selectType)"></u-search>
|
|
|
|
- </view>
|
|
|
|
- <view>
|
|
|
|
- <scroll-view scroll-y="true" style="height: 600rpx; text-align: center;">
|
|
|
|
- <view v-for="(item,index) in chooseHouseList" :key="item.value" >
|
|
|
|
- <view :class="current === index ? 'active' : '' " style="color: #000000;" @click="active(item,index)">
|
|
|
|
- {{item.label}}
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </scroll-view>
|
|
|
|
- <view class="">
|
|
|
|
- <button type="default" class="font-fifty-six" @click="search(selectType)">确定</button>
|
|
|
|
- </view>
|
|
|
|
- <view class="">
|
|
|
|
- <button type="default" @click="pop = false;" class="font-fifty-six">取消</button>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </u-popup>
|
|
|
|
|
|
+ {{house ? house : '选择小区'}}
|
|
</view>
|
|
</view>
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
<view>
|
|
<view>
|
|
<view class="font-fifty-six SourceHanSansCN choose" @click="openHouse('louyu')">
|
|
<view class="font-fifty-six SourceHanSansCN choose" @click="openHouse('louyu')">
|
|
{{bulid ? bulid : '选择楼宇'}}
|
|
{{bulid ? bulid : '选择楼宇'}}
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
<view>
|
|
<view>
|
|
<view class="font-fifty-six SourceHanSansCN choose" @click="openHouse('danyuan')">
|
|
<view class="font-fifty-six SourceHanSansCN choose" @click="openHouse('danyuan')">
|
|
{{unit ? unit : '选择单元'}}
|
|
{{unit ? unit : '选择单元'}}
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
<view>
|
|
<view>
|
|
<view class="font-fifty-six SourceHanSansCN choose" @click="openHouse('menpai')">
|
|
<view class="font-fifty-six SourceHanSansCN choose" @click="openHouse('menpai')">
|
|
@@ -48,12 +33,6 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view>
|
|
<view>
|
|
- <!-- <view class="font-fifty-six SourceHanSansCN choose" @click="openType('shows')">
|
|
|
|
- 上门类型 <text class="font-fifty-six SourceHanSansCN" style="color: #232146;">
|
|
|
|
- {{type ? '----' + type : ''}}</text>
|
|
|
|
- <u-select v-model="shows" :list="mounicipalList" @confirm="confirm"></u-select>
|
|
|
|
- </view> -->
|
|
|
|
- <view>
|
|
|
|
<view class="font-fifty-six SourceHanSansCN choose" @click="showStart = true">
|
|
<view class="font-fifty-six SourceHanSansCN choose" @click="showStart = true">
|
|
{{form.starTime ? form.starTime : '开始时间'}}
|
|
{{form.starTime ? form.starTime : '开始时间'}}
|
|
<u-picker v-model="showStart" mode="time" @confirm="confirmStart"></u-picker>
|
|
<u-picker v-model="showStart" mode="time" @confirm="confirmStart"></u-picker>
|
|
@@ -65,23 +44,25 @@
|
|
<u-picker v-model="showEnd" mode="time" @confirm="confirmEnd"></u-picker>
|
|
<u-picker v-model="showEnd" mode="time" @confirm="confirmEnd"></u-picker>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view style="display: flex;">
|
|
|
|
- <view style="height: 100rpx; font-size: 64rpx; width: 180rpx; font-weight: 600;">工号</view>
|
|
|
|
- <u-input
|
|
|
|
- style="font-size: 64rpx!important; font-weight: 600; width: 400rpx!important;"
|
|
|
|
- placeholder="请输入工号"
|
|
|
|
- placeholder-style="font-size: 64rpx;"
|
|
|
|
- v-model="form.jobNum"
|
|
|
|
- maxlength = '4'
|
|
|
|
- :type='numberType'
|
|
|
|
- :border="border" />
|
|
|
|
- </view>
|
|
|
|
- <view class="font-fifty-six SourceHanSansCN total background-color1" @click="submit()">
|
|
|
|
- 提交数据
|
|
|
|
|
|
+ <view>
|
|
|
|
+ <!-- <view class="font-fifty-six SourceHanSansCN choose" @click="openType('shows')">
|
|
|
|
+ 上门类型 <text class="font-fifty-six SourceHanSansCN" style="color: #232146;">
|
|
|
|
+ {{type ? '----' + type : ''}}</text>
|
|
|
|
+ <u-select v-model="shows" :list="mounicipalList" @confirm="confirm"></u-select>
|
|
|
|
+ </view> -->
|
|
|
|
+ <view style="display: flex;">
|
|
|
|
+ <view style="height: 100rpx; font-size: 64rpx; width: 180rpx; font-weight: 600;">工号
|
|
|
|
+ </view>
|
|
|
|
+ <u-input style="font-size: 64rpx!important; font-weight: 600; width: 400rpx!important;"
|
|
|
|
+ placeholder="请输入工号" placeholder-style="font-size: 64rpx;" v-model="form.jobNum"
|
|
|
|
+ maxlength='4' :type='numberType' :border="border" />
|
|
|
|
+ </view>
|
|
|
|
+ <view class="font-fifty-six SourceHanSansCN total background-color1" @click="submit()">
|
|
|
|
+ 提交数据
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
|
|
+
|
|
|
|
+ </scroll-view>
|
|
</u-popup>
|
|
</u-popup>
|
|
<view style="display: flex;">
|
|
<view style="display: flex;">
|
|
<view class="btn_s" @click="show = true">查询</view>
|
|
<view class="btn_s" @click="show = true">查询</view>
|
|
@@ -93,7 +74,7 @@
|
|
<view class="item-title">地址: {{item.house}}</view>
|
|
<view class="item-title">地址: {{item.house}}</view>
|
|
<view class="item-title">职工: {{item.userName}}</view>
|
|
<view class="item-title">职工: {{item.userName}}</view>
|
|
<view class="item-title">时间: {{item.time}}</view>
|
|
<view class="item-title">时间: {{item.time}}</view>
|
|
- <view class="item-title">备注:
|
|
|
|
|
|
+ <view class="item-title">备注:
|
|
<text class="" v-if="item.remark != null">
|
|
<text class="" v-if="item.remark != null">
|
|
{{item.remark}}
|
|
{{item.remark}}
|
|
</text>
|
|
</text>
|
|
@@ -102,12 +83,14 @@
|
|
</text>
|
|
</text>
|
|
</view>
|
|
</view>
|
|
<view class="item-img">
|
|
<view class="item-img">
|
|
- <view class="img-view" v-for="img in item.picUrl">
|
|
|
|
- <image :src="img" mode="" @tap="preAvatar(img)" v-if="img.substring(img.length - 3) == 'png' || img.substring(img.length - 3) == 'jpg' "></image>
|
|
|
|
- <video :src="img" controls v-else ></video>
|
|
|
|
|
|
+ <view class="img-view" v-for="img in item.picUrl">
|
|
|
|
+ <image :src="img" mode="" @tap="preAvatar(img)"
|
|
|
|
+ v-if="img.substring(img.length - 3) == 'png' || img.substring(img.length - 3) == 'jpg' ">
|
|
|
|
+ </image>
|
|
|
|
+ <video :src="img" controls v-else></video>
|
|
</view>
|
|
</view>
|
|
<!-- <image v-for="img in item.picUrl" :src="img" @tap="preAvatar(img)"></image> -->
|
|
<!-- <image v-for="img in item.picUrl" :src="img" @tap="preAvatar(img)"></image> -->
|
|
-
|
|
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
<view class="main-list-icon"></view>
|
|
<view class="main-list-icon"></view>
|
|
</view>
|
|
</view>
|
|
@@ -115,6 +98,33 @@
|
|
<view class="footer_s" style="padding-top: 100rpx;" v-else>
|
|
<view class="footer_s" style="padding-top: 100rpx;" v-else>
|
|
<u-empty text="暂无数据" mode="list"></u-empty>
|
|
<u-empty text="暂无数据" mode="list"></u-empty>
|
|
</view>
|
|
</view>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <u-popup v-model="pop" mode="top">
|
|
|
|
+ <view style="margin: 20rpx;">
|
|
|
|
+ <u-search v-show="inputShow" placeholder="请输入搜索内容" v-model="keyword"
|
|
|
|
+ :action-style="{'font-size':'40rpx'}" @custom="searchinfo(selectType)">
|
|
|
|
+ </u-search>
|
|
|
|
+ </view>
|
|
|
|
+ <view>
|
|
|
|
+ <scroll-view scroll-y="true" style="height: 600rpx; text-align: center;">
|
|
|
|
+ <view v-for="(item,index) in chooseHouseList" :key="item.value">
|
|
|
|
+ <view :class="current === index ? 'active' : '' "
|
|
|
|
+ style="color: #000000;font-size: 56rpx;" @click="active(item,index)">
|
|
|
|
+ {{item.label}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </scroll-view>
|
|
|
|
+ <view class="">
|
|
|
|
+ <button type="default" class="font-fifty-six"
|
|
|
|
+ @click="search(selectType)">确定</button>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="">
|
|
|
|
+ <button type="default" @click="pop = false;"
|
|
|
|
+ class="font-fifty-six">取消</button>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </u-popup>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -127,13 +137,14 @@
|
|
numberType: 'number',
|
|
numberType: 'number',
|
|
name: '',
|
|
name: '',
|
|
address: '',
|
|
address: '',
|
|
- keyword:'',
|
|
|
|
- selectType:'',
|
|
|
|
|
|
+ keyword: '',
|
|
|
|
+ selectType: '',
|
|
|
|
+ inputShow: false,
|
|
pop: false,
|
|
pop: false,
|
|
show: false,
|
|
show: false,
|
|
border: false,
|
|
border: false,
|
|
typeValue: '',
|
|
typeValue: '',
|
|
- current:-1,
|
|
|
|
|
|
+ current: -1,
|
|
labelPosition: 'left',
|
|
labelPosition: 'left',
|
|
errorType: ['message'],
|
|
errorType: ['message'],
|
|
list: [],
|
|
list: [],
|
|
@@ -153,6 +164,8 @@
|
|
listTypeShow: false,
|
|
listTypeShow: false,
|
|
tubeTypeShow: false,
|
|
tubeTypeShow: false,
|
|
tubeLongShow: false,
|
|
tubeLongShow: false,
|
|
|
|
+ districtId: 0,
|
|
|
|
+ districtName: '选择行政区',
|
|
house: '选择小区',
|
|
house: '选择小区',
|
|
bulid: '选择楼宇',
|
|
bulid: '选择楼宇',
|
|
unit: '选择单元',
|
|
unit: '选择单元',
|
|
@@ -161,11 +174,11 @@
|
|
// mounicipalList: [],
|
|
// mounicipalList: [],
|
|
tubeTypeLongList: [],
|
|
tubeTypeLongList: [],
|
|
tubeTypeList: [],
|
|
tubeTypeList: [],
|
|
- houseid:'',
|
|
|
|
|
|
+ houseid: '',
|
|
type: '',
|
|
type: '',
|
|
- buildid:'',
|
|
|
|
- unitid:'',
|
|
|
|
- numberid:'',
|
|
|
|
|
|
+ buildid: '',
|
|
|
|
+ unitid: '',
|
|
|
|
+ numberid: '',
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(e) {
|
|
onLoad(e) {
|
|
@@ -173,7 +186,7 @@
|
|
this.name = e.name;
|
|
this.name = e.name;
|
|
this.address = e.address
|
|
this.address = e.address
|
|
this.getListFn();
|
|
this.getListFn();
|
|
- this.getArea();
|
|
|
|
|
|
+ // this.getArea();
|
|
// this.select();
|
|
// this.select();
|
|
this.getProjectType();
|
|
this.getProjectType();
|
|
this.getTubeType();
|
|
this.getTubeType();
|
|
@@ -184,12 +197,12 @@
|
|
},
|
|
},
|
|
onPullDownRefresh() {
|
|
onPullDownRefresh() {
|
|
this.getListFn();
|
|
this.getListFn();
|
|
- setTimeout(function () {
|
|
|
|
|
|
+ setTimeout(function() {
|
|
uni.stopPullDownRefresh();
|
|
uni.stopPullDownRefresh();
|
|
}, 1000);
|
|
}, 1000);
|
|
},
|
|
},
|
|
- methods:{
|
|
|
|
- kong(){
|
|
|
|
|
|
+ methods: {
|
|
|
|
+ kong() {
|
|
this.houseid = '';
|
|
this.houseid = '';
|
|
this.buildid = '';
|
|
this.buildid = '';
|
|
this.unitid = '';
|
|
this.unitid = '';
|
|
@@ -199,11 +212,11 @@
|
|
this.form.jobNum = '';
|
|
this.form.jobNum = '';
|
|
this.getListFn();
|
|
this.getListFn();
|
|
},
|
|
},
|
|
- confirmStart(e){
|
|
|
|
|
|
+ confirmStart(e) {
|
|
console.log(e)
|
|
console.log(e)
|
|
this.form.starTime = `${e.year}-${e.month}-${e.day}`
|
|
this.form.starTime = `${e.year}-${e.month}-${e.day}`
|
|
},
|
|
},
|
|
- confirmEnd(e){
|
|
|
|
|
|
+ confirmEnd(e) {
|
|
console.log(e)
|
|
console.log(e)
|
|
this.form.endTime = `${e.year}-${e.month}-${e.day}`
|
|
this.form.endTime = `${e.year}-${e.month}-${e.day}`
|
|
},
|
|
},
|
|
@@ -218,7 +231,7 @@
|
|
confirm(e) {
|
|
confirm(e) {
|
|
this.type = e[0].label
|
|
this.type = e[0].label
|
|
this.typeValue = e[0].value
|
|
this.typeValue = e[0].value
|
|
-
|
|
|
|
|
|
+
|
|
this.imgArr = [];
|
|
this.imgArr = [];
|
|
this.tubeType = null;
|
|
this.tubeType = null;
|
|
this.tubeLong = null;
|
|
this.tubeLong = null;
|
|
@@ -245,7 +258,7 @@
|
|
} else {
|
|
} else {
|
|
this.tubeLongShow = !this.tubeLongShow
|
|
this.tubeLongShow = !this.tubeLongShow
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
tubeTypeConfirm(e) {
|
|
tubeTypeConfirm(e) {
|
|
this.tubeType = e[0].label
|
|
this.tubeType = e[0].label
|
|
@@ -286,24 +299,52 @@
|
|
label: item.valveType
|
|
label: item.valveType
|
|
})
|
|
})
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+
|
|
})
|
|
})
|
|
},
|
|
},
|
|
projectType() {
|
|
projectType() {
|
|
this.listTypeShow = !this.listTypeShow
|
|
this.listTypeShow = !this.listTypeShow
|
|
},
|
|
},
|
|
- search(selectType){
|
|
|
|
- console.log('this.housename', this.housename)
|
|
|
|
- console.log('this.selectType', this.selectType)
|
|
|
|
- if(selectType == 'xiaoqu'){
|
|
|
|
- this.house = this.housename;
|
|
|
|
- service.getBuilding({areaId: this.houseid}).then(res => {
|
|
|
|
|
|
+ search(selectType) {
|
|
|
|
+ // console.log('this.housename', this.housename)
|
|
|
|
+ // console.log('this.selectType', this.selectType)
|
|
|
|
+ if (selectType == 'district') {
|
|
|
|
+ this.districtName = this.housename;
|
|
|
|
+ service.getArea({
|
|
|
|
+ district: this.districtId
|
|
|
|
+ }).then(res => {
|
|
|
|
+ this.chooseHouseList = [];
|
|
|
|
+ res.forEach(item => {
|
|
|
|
+ this.chooseHouseList.push({
|
|
|
|
+ value: item.dictValue,
|
|
|
|
+ label: item.dictLabel,
|
|
|
|
+ selectType: 'xiaoqu'
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ this.current = -1;
|
|
|
|
+ this.house = null;
|
|
|
|
+ this.bulid = null;
|
|
|
|
+ this.unit = null;
|
|
|
|
+ this.houseNumber = null;
|
|
|
|
+
|
|
|
|
+ this.houseid = 0;
|
|
|
|
+ this.buildid = 0;
|
|
|
|
+ this.unitid = 0;
|
|
|
|
+ this.housedata = 0;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ } else if (selectType == 'xiaoqu') {
|
|
|
|
+ this.house = this.housename;
|
|
|
|
+ service.getBuilding({
|
|
|
|
+ areaId: this.houseid
|
|
|
|
+ }).then(res => {
|
|
this.chooseHouseList = [];
|
|
this.chooseHouseList = [];
|
|
res.forEach(item => {
|
|
res.forEach(item => {
|
|
this.chooseHouseList.push({
|
|
this.chooseHouseList.push({
|
|
value: item.id,
|
|
value: item.id,
|
|
label: item.name,
|
|
label: item.name,
|
|
- selectType:'louyu'
|
|
|
|
|
|
+ selectType: 'louyu'
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
@@ -311,37 +352,49 @@
|
|
this.bulid = null;
|
|
this.bulid = null;
|
|
this.unit = null;
|
|
this.unit = null;
|
|
this.houseNumber = null;
|
|
this.houseNumber = null;
|
|
- }else if(selectType == 'louyu'){
|
|
|
|
|
|
+
|
|
|
|
+ this.buildid = 0;
|
|
|
|
+ this.unitid = 0;
|
|
|
|
+ this.housedata = 0;
|
|
|
|
+ } else if (selectType == 'louyu') {
|
|
this.bulid = this.housename;
|
|
this.bulid = this.housename;
|
|
- service.getUnit({buildingId: this.buildid}).then(res => {
|
|
|
|
|
|
+ service.getUnit({
|
|
|
|
+ buildingId: this.buildid
|
|
|
|
+ }).then(res => {
|
|
this.chooseHouseList = [];
|
|
this.chooseHouseList = [];
|
|
res.forEach(item => {
|
|
res.forEach(item => {
|
|
this.chooseHouseList.push({
|
|
this.chooseHouseList.push({
|
|
value: item.id,
|
|
value: item.id,
|
|
label: item.name,
|
|
label: item.name,
|
|
- selectType:'danyuan'
|
|
|
|
|
|
+ selectType: 'danyuan'
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
this.unit = null;
|
|
this.unit = null;
|
|
this.houseNumber = null;
|
|
this.houseNumber = null;
|
|
this.current = -1;
|
|
this.current = -1;
|
|
- }else if(selectType == 'danyuan'){
|
|
|
|
|
|
+
|
|
|
|
+ this.unitid = 0;
|
|
|
|
+ this.housedata = 0;
|
|
|
|
+ } else if (selectType == 'danyuan') {
|
|
this.unit = this.housename;
|
|
this.unit = this.housename;
|
|
- service.getAllHouse({unitId: this.unitid}).then(res => {
|
|
|
|
|
|
+ service.getAllHouse({
|
|
|
|
+ unitId: this.unitid
|
|
|
|
+ }).then(res => {
|
|
this.chooseHouseList = [];
|
|
this.chooseHouseList = [];
|
|
res.forEach(item => {
|
|
res.forEach(item => {
|
|
this.chooseHouseList.push({
|
|
this.chooseHouseList.push({
|
|
value: item.id,
|
|
value: item.id,
|
|
label: item.name,
|
|
label: item.name,
|
|
- selectType:'menpai'
|
|
|
|
|
|
+ selectType: 'menpai'
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
this.houseNumber = null;
|
|
this.houseNumber = null;
|
|
this.current = -1;
|
|
this.current = -1;
|
|
-
|
|
|
|
- }else if(selectType == 'menpai'){
|
|
|
|
|
|
+
|
|
|
|
+ this.housedata = 0;
|
|
|
|
+ } else if (selectType == 'menpai') {
|
|
this.houseNumber = this.housename;
|
|
this.houseNumber = this.housename;
|
|
this.housedata = this.numberid;
|
|
this.housedata = this.numberid;
|
|
this.current = -1;
|
|
this.current = -1;
|
|
@@ -349,138 +402,188 @@
|
|
this.pop = false;
|
|
this.pop = false;
|
|
},
|
|
},
|
|
openHouse(selectType) {
|
|
openHouse(selectType) {
|
|
- if(selectType === 'xiaoqu'){
|
|
|
|
|
|
+ if (selectType === 'district') {
|
|
|
|
+ this.inputShow = false
|
|
|
|
+ //选择行政区
|
|
|
|
+ this.housename = null;
|
|
|
|
+ this.selectType = 'district'
|
|
|
|
+ service.getDistrict().then(res => {
|
|
|
|
+ // console.log(res);
|
|
|
|
+ this.chooseHouseList = [];
|
|
|
|
+ res.forEach((item, index) => {
|
|
|
|
+ this.chooseHouseList.push({
|
|
|
|
+ value: item.dictValue,
|
|
|
|
+ label: item.dictLabel,
|
|
|
|
+ selectType: 'district'
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ } else if (selectType === 'xiaoqu') {
|
|
|
|
+ this.inputShow = false
|
|
//选择小区
|
|
//选择小区
|
|
this.selectType = 'xiaoqu';
|
|
this.selectType = 'xiaoqu';
|
|
- this.getArea();
|
|
|
|
- }else if(selectType === 'louyu'){
|
|
|
|
|
|
+ service.getArea({
|
|
|
|
+ district: this.districtId
|
|
|
|
+ }).then(res => {
|
|
|
|
+ this.chooseHouseList = [];
|
|
|
|
+ res.forEach((item, index) => {
|
|
|
|
+ this.chooseHouseList.push({
|
|
|
|
+ value: item.id,
|
|
|
|
+ label: item.name,
|
|
|
|
+ selectType: 'xiaoqu'
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ } else if (selectType === 'louyu') {
|
|
|
|
+ this.inputShow = false
|
|
//选择楼宇
|
|
//选择楼宇
|
|
this.selectType = 'louyu'
|
|
this.selectType = 'louyu'
|
|
- service.getBuilding({areaId: this.houseid}).then(res => {
|
|
|
|
|
|
+ service.getBuilding({
|
|
|
|
+ areaId: this.houseid
|
|
|
|
+ }).then(res => {
|
|
this.chooseHouseList = [];
|
|
this.chooseHouseList = [];
|
|
res.forEach(item => {
|
|
res.forEach(item => {
|
|
this.chooseHouseList.push({
|
|
this.chooseHouseList.push({
|
|
value: item.id,
|
|
value: item.id,
|
|
label: item.name,
|
|
label: item.name,
|
|
- selectType:'louyu'
|
|
|
|
|
|
+ selectType: 'louyu'
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
- }else if(selectType === 'danyuan'){
|
|
|
|
|
|
+ } else if (selectType === 'danyuan') {
|
|
|
|
+ this.inputShow = false
|
|
//选择单元
|
|
//选择单元
|
|
this.selectType = 'danyuan'
|
|
this.selectType = 'danyuan'
|
|
- service.getUnit({buildingId: this.buildid}).then(res => {
|
|
|
|
|
|
+ service.getUnit({
|
|
|
|
+ buildingId: this.buildid
|
|
|
|
+ }).then(res => {
|
|
this.chooseHouseList = [];
|
|
this.chooseHouseList = [];
|
|
res.forEach(item => {
|
|
res.forEach(item => {
|
|
this.chooseHouseList.push({
|
|
this.chooseHouseList.push({
|
|
value: item.id,
|
|
value: item.id,
|
|
label: item.name,
|
|
label: item.name,
|
|
- selectType:'danyuan'
|
|
|
|
|
|
+ selectType: 'danyuan'
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
- }else if(selectType === 'menpai'){
|
|
|
|
|
|
+ } else if (selectType === 'menpai') {
|
|
|
|
+ this.inputShow = false
|
|
//选择门牌
|
|
//选择门牌
|
|
this.selectType = 'menpai'
|
|
this.selectType = 'menpai'
|
|
- service.getAllHouse({unitId: this.unitid}).then(res => {
|
|
|
|
|
|
+ service.getAllHouse({
|
|
|
|
+ unitId: this.unitid
|
|
|
|
+ }).then(res => {
|
|
this.chooseHouseList = [];
|
|
this.chooseHouseList = [];
|
|
res.forEach(item => {
|
|
res.forEach(item => {
|
|
this.chooseHouseList.push({
|
|
this.chooseHouseList.push({
|
|
value: item.id,
|
|
value: item.id,
|
|
label: item.name,
|
|
label: item.name,
|
|
- selectType:'menpai'
|
|
|
|
|
|
+ selectType: 'menpai'
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
}
|
|
}
|
|
this.pop = !this.pop;
|
|
this.pop = !this.pop;
|
|
},
|
|
},
|
|
- searchinfo(selectType){
|
|
|
|
- if(selectType == 'xiaoqu'){
|
|
|
|
- console.log('ssss',this.selectType)
|
|
|
|
- service.getArea({name:this.keyword}).then(res => {
|
|
|
|
|
|
+ searchinfo(selectType) {
|
|
|
|
+ if (selectType == 'xiaoqu') {
|
|
|
|
+ console.log('ssss', this.selectType)
|
|
|
|
+ service.getArea({
|
|
|
|
+ name: this.keyword
|
|
|
|
+ }).then(res => {
|
|
this.chooseHouseList = [];
|
|
this.chooseHouseList = [];
|
|
res.forEach((item, index) => {
|
|
res.forEach((item, index) => {
|
|
this.chooseHouseList.push({
|
|
this.chooseHouseList.push({
|
|
value: item.id,
|
|
value: item.id,
|
|
label: item.name,
|
|
label: item.name,
|
|
- selectType:'xiaoqu'
|
|
|
|
|
|
+ selectType: 'xiaoqu'
|
|
})
|
|
})
|
|
})
|
|
})
|
|
- })
|
|
|
|
|
|
+ })
|
|
this.keyword = '';
|
|
this.keyword = '';
|
|
- }else if(selectType == 'louyu'){
|
|
|
|
- console.log('ssss',this.selectType)
|
|
|
|
- service.getBuilding({areaId: this.houseid,name:this.keyword}).then(res => {
|
|
|
|
|
|
+ } else if (selectType == 'louyu') {
|
|
|
|
+ console.log('ssss', this.selectType)
|
|
|
|
+ service.getBuilding({
|
|
|
|
+ areaId: this.houseid,
|
|
|
|
+ name: this.keyword
|
|
|
|
+ }).then(res => {
|
|
this.chooseHouseList = [];
|
|
this.chooseHouseList = [];
|
|
res.forEach((item, index) => {
|
|
res.forEach((item, index) => {
|
|
this.chooseHouseList.push({
|
|
this.chooseHouseList.push({
|
|
value: item.id,
|
|
value: item.id,
|
|
label: item.name,
|
|
label: item.name,
|
|
- selectType:'louyu'
|
|
|
|
|
|
+ selectType: 'louyu'
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
this.keyword = '';
|
|
this.keyword = '';
|
|
- }else if(selectType == 'danyuan'){
|
|
|
|
- console.log('ssss',this.selectType)
|
|
|
|
- service.getUnit({buildingId: this.buildid,name:this.keyword}).then(res => {
|
|
|
|
|
|
+ } else if (selectType == 'danyuan') {
|
|
|
|
+ console.log('ssss', this.selectType)
|
|
|
|
+ service.getUnit({
|
|
|
|
+ buildingId: this.buildid,
|
|
|
|
+ name: this.keyword
|
|
|
|
+ }).then(res => {
|
|
this.chooseHouseList = [];
|
|
this.chooseHouseList = [];
|
|
res.forEach((item, index) => {
|
|
res.forEach((item, index) => {
|
|
this.chooseHouseList.push({
|
|
this.chooseHouseList.push({
|
|
value: item.id,
|
|
value: item.id,
|
|
label: item.name,
|
|
label: item.name,
|
|
- selectType:'danyuan'
|
|
|
|
|
|
+ selectType: 'danyuan'
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
this.keyword = '';
|
|
this.keyword = '';
|
|
- }else if(selectType == 'menpai'){
|
|
|
|
- console.log('ssss',this.selectType)
|
|
|
|
- service.getAllHouse({unitId: this.unitid,name:this.keyword}).then(res => {
|
|
|
|
|
|
+ } else if (selectType == 'menpai') {
|
|
|
|
+ console.log('ssss', this.selectType)
|
|
|
|
+ service.getAllHouse({
|
|
|
|
+ unitId: this.unitid,
|
|
|
|
+ name: this.keyword
|
|
|
|
+ }).then(res => {
|
|
this.chooseHouseList = [];
|
|
this.chooseHouseList = [];
|
|
res.forEach((item, index) => {
|
|
res.forEach((item, index) => {
|
|
this.chooseHouseList.push({
|
|
this.chooseHouseList.push({
|
|
value: item.id,
|
|
value: item.id,
|
|
label: item.name,
|
|
label: item.name,
|
|
- selectType:'menpai'
|
|
|
|
|
|
+ selectType: 'menpai'
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
this.keyword = '';
|
|
this.keyword = '';
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
- active(item,index){
|
|
|
|
|
|
+ active(item, index) {
|
|
this.current = index;
|
|
this.current = index;
|
|
this.housename = item.label;
|
|
this.housename = item.label;
|
|
- if(item.selectType == 'xiaoqu'){
|
|
|
|
|
|
+ if (item.selectType == 'district') { //行政区
|
|
|
|
+ this.districtId = item.value;
|
|
|
|
+ } else if (item.selectType == 'xiaoqu') {
|
|
this.houseid = item.value;
|
|
this.houseid = item.value;
|
|
- }else if(item.selectType == 'louyu'){
|
|
|
|
|
|
+ } else if (item.selectType == 'louyu') {
|
|
this.buildid = item.value;
|
|
this.buildid = item.value;
|
|
- }else if(item.selectType == 'danyuan'){
|
|
|
|
|
|
+ } else if (item.selectType == 'danyuan') {
|
|
this.unitid = item.value;
|
|
this.unitid = item.value;
|
|
- }else if(item.selectType == 'menpai'){
|
|
|
|
|
|
+ } else if (item.selectType == 'menpai') {
|
|
this.numberid = item.value
|
|
this.numberid = item.value
|
|
}
|
|
}
|
|
this.selectType = item.selectType;
|
|
this.selectType = item.selectType;
|
|
},
|
|
},
|
|
- //获取小区
|
|
|
|
- getArea() {
|
|
|
|
- service.getArea().then(res => {
|
|
|
|
- this.chooseHouseList = [];
|
|
|
|
- res.forEach((item, index) => {
|
|
|
|
- this.chooseHouseList.push({
|
|
|
|
- value: item.id,
|
|
|
|
- label: item.name,
|
|
|
|
- selectType:'xiaoqu'
|
|
|
|
- })
|
|
|
|
- })
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
- getListFn(){
|
|
|
|
|
|
+ // //获取小区
|
|
|
|
+ // getArea() {
|
|
|
|
+ // service.getArea().then(res => {
|
|
|
|
+ // this.chooseHouseList = [];
|
|
|
|
+ // res.forEach((item, index) => {
|
|
|
|
+ // this.chooseHouseList.push({
|
|
|
|
+ // value: item.id,
|
|
|
|
+ // label: item.name,
|
|
|
|
+ // selectType:'xiaoqu'
|
|
|
|
+ // })
|
|
|
|
+ // })
|
|
|
|
+ // })
|
|
|
|
+ // },
|
|
|
|
+ getListFn() {
|
|
let that = this;
|
|
let that = this;
|
|
- let params ={
|
|
|
|
|
|
+ let params = {
|
|
areaId: this.houseid,
|
|
areaId: this.houseid,
|
|
buildingId: this.buildid,
|
|
buildingId: this.buildid,
|
|
unitId: this.unitid,
|
|
unitId: this.unitid,
|
|
@@ -493,16 +596,16 @@
|
|
serviceType: this.id
|
|
serviceType: this.id
|
|
}
|
|
}
|
|
console.log('params', params)
|
|
console.log('params', params)
|
|
- service.getOtherList(params).then(res =>{
|
|
|
|
|
|
+ service.getOtherList(params).then(res => {
|
|
console.log("999", res)
|
|
console.log("999", res)
|
|
that.list = res.records;
|
|
that.list = res.records;
|
|
that.total = res.total || 0;
|
|
that.total = res.total || 0;
|
|
that.params.pageNum = res.current + 1;
|
|
that.params.pageNum = res.current + 1;
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- getNextListFn(){
|
|
|
|
|
|
+ getNextListFn() {
|
|
let that = this;
|
|
let that = this;
|
|
- let params={
|
|
|
|
|
|
+ let params = {
|
|
areaId: this.houseid,
|
|
areaId: this.houseid,
|
|
buildingId: this.buildid,
|
|
buildingId: this.buildid,
|
|
unitId: this.unitid,
|
|
unitId: this.unitid,
|
|
@@ -517,7 +620,7 @@
|
|
if (this.list.length < this.total) {
|
|
if (this.list.length < this.total) {
|
|
service.getOtherList(params).then(response => {
|
|
service.getOtherList(params).then(response => {
|
|
that.params.pageNum = response.current + 1
|
|
that.params.pageNum = response.current + 1
|
|
- response.records.forEach(item =>{
|
|
|
|
|
|
+ response.records.forEach(item => {
|
|
that.list.push(item)
|
|
that.list.push(item)
|
|
})
|
|
})
|
|
})
|
|
})
|
|
@@ -528,11 +631,11 @@
|
|
console.log('url', url)
|
|
console.log('url', url)
|
|
wx.previewImage({
|
|
wx.previewImage({
|
|
current: url, // 当前显示图片的 http 链接
|
|
current: url, // 当前显示图片的 http 链接
|
|
- urls: [url] ,// 需要预览的图片 http 链接列表
|
|
|
|
|
|
+ urls: [url], // 需要预览的图片 http 链接列表
|
|
})
|
|
})
|
|
},
|
|
},
|
|
submit() {
|
|
submit() {
|
|
- console.log('submit',this.houseid,this.buildid,this.unitid,this.numberid);
|
|
|
|
|
|
+ console.log('submit', this.houseid, this.buildid, this.unitid, this.numberid);
|
|
this.show = false;
|
|
this.show = false;
|
|
this.getListFn()
|
|
this.getListFn()
|
|
}
|
|
}
|
|
@@ -541,37 +644,43 @@
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
- /deep/ .u-input__input{
|
|
|
|
- font-size: 64rpx!important;
|
|
|
|
|
|
+ /deep/ .u-input__input {
|
|
|
|
+ font-size: 64rpx !important;
|
|
color: #303133;
|
|
color: #303133;
|
|
- width: calc(100% - 200rpx)!important;
|
|
|
|
|
|
+ width: calc(100% - 200rpx) !important;
|
|
}
|
|
}
|
|
- /deep/ .u-column-item{
|
|
|
|
|
|
+
|
|
|
|
+ /deep/ .u-column-item {
|
|
display: flex;
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
align-items: center;
|
|
justify-content: center;
|
|
justify-content: center;
|
|
- font-size: 64rpx!important;
|
|
|
|
|
|
+ font-size: 64rpx !important;
|
|
color: #303133;
|
|
color: #303133;
|
|
padding: 8rpx;
|
|
padding: 8rpx;
|
|
}
|
|
}
|
|
|
|
+
|
|
/deep/ .u-btn-picker.data-v-70102400 {
|
|
/deep/ .u-btn-picker.data-v-70102400 {
|
|
- padding: 16rpx;
|
|
|
|
- box-sizing: border-box;
|
|
|
|
- text-align: center;
|
|
|
|
- text-decoration: none;
|
|
|
|
- font-size: 64rpx!important;
|
|
|
|
|
|
+ padding: 16rpx;
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+ text-align: center;
|
|
|
|
+ text-decoration: none;
|
|
|
|
+ font-size: 64rpx !important;
|
|
}
|
|
}
|
|
- .list_s{
|
|
|
|
|
|
+
|
|
|
|
+ .list_s {
|
|
min-height: 100vh;
|
|
min-height: 100vh;
|
|
background-color: #F9F9F9;
|
|
background-color: #F9F9F9;
|
|
}
|
|
}
|
|
- .header_s{
|
|
|
|
|
|
+
|
|
|
|
+ .header_s {
|
|
padding: 30rpx 30rpx 0rpx 30rpx;
|
|
padding: 30rpx 30rpx 0rpx 30rpx;
|
|
- .popup{
|
|
|
|
- padding: 0rpx 30rpx;
|
|
|
|
|
|
+
|
|
|
|
+ .popup {
|
|
|
|
+ // padding: 0rpx 30rpx;
|
|
}
|
|
}
|
|
- .btn_s{
|
|
|
|
|
|
+
|
|
|
|
+ .btn_s {
|
|
margin: 0 15rpx;
|
|
margin: 0 15rpx;
|
|
width: calc(50% - 15px);
|
|
width: calc(50% - 15px);
|
|
height: 100rpx;
|
|
height: 100rpx;
|
|
@@ -583,23 +692,27 @@
|
|
border-radius: 16rpx;
|
|
border-radius: 16rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .footer_s{
|
|
|
|
|
|
+
|
|
|
|
+ .footer_s {
|
|
padding: 30rpx;
|
|
padding: 30rpx;
|
|
- .footer-item{
|
|
|
|
|
|
+
|
|
|
|
+ .footer-item {
|
|
background: #FFFFFF;
|
|
background: #FFFFFF;
|
|
height: auto;
|
|
height: auto;
|
|
border-radius: 8rpx;
|
|
border-radius: 8rpx;
|
|
margin-bottom: 30rpx;
|
|
margin-bottom: 30rpx;
|
|
padding: 20rpx 0rpx 20rpx 66rpx;
|
|
padding: 20rpx 0rpx 20rpx 66rpx;
|
|
position: relative;
|
|
position: relative;
|
|
- .item-title{
|
|
|
|
|
|
+
|
|
|
|
+ .item-title {
|
|
font-size: 48rpx;
|
|
font-size: 48rpx;
|
|
font-family: PingFangSC-Medium, PingFang SC;
|
|
font-family: PingFangSC-Medium, PingFang SC;
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
color: #333333;
|
|
color: #333333;
|
|
padding-bottom: 20rpx;
|
|
padding-bottom: 20rpx;
|
|
}
|
|
}
|
|
- .main-list-icon{
|
|
|
|
|
|
+
|
|
|
|
+ .main-list-icon {
|
|
position: absolute;
|
|
position: absolute;
|
|
top: 43rpx;
|
|
top: 43rpx;
|
|
left: 30rpx;
|
|
left: 30rpx;
|
|
@@ -608,20 +721,24 @@
|
|
background: #3857F3;
|
|
background: #3857F3;
|
|
border-radius: 2rpx;
|
|
border-radius: 2rpx;
|
|
}
|
|
}
|
|
- .item-img{
|
|
|
|
|
|
+
|
|
|
|
+ .item-img {
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
justify-content: flex-start;
|
|
flex-wrap: wrap;
|
|
flex-wrap: wrap;
|
|
- .img-view{
|
|
|
|
|
|
+
|
|
|
|
+ .img-view {
|
|
width: calc(50% - 20rpx);
|
|
width: calc(50% - 20rpx);
|
|
height: 200rpx;
|
|
height: 200rpx;
|
|
padding-bottom: 20rpx;
|
|
padding-bottom: 20rpx;
|
|
padding-right: 20rpx;
|
|
padding-right: 20rpx;
|
|
- image{
|
|
|
|
|
|
+
|
|
|
|
+ image {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
- video{
|
|
|
|
|
|
+
|
|
|
|
+ video {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
@@ -629,6 +746,7 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
.choose {
|
|
.choose {
|
|
text-align: center;
|
|
text-align: center;
|
|
padding: 20rpx;
|
|
padding: 20rpx;
|
|
@@ -637,9 +755,11 @@
|
|
background: #43CEB1;
|
|
background: #43CEB1;
|
|
border-radius: 64rpx;
|
|
border-radius: 64rpx;
|
|
}
|
|
}
|
|
- .active{
|
|
|
|
- background-color: #1890FF;
|
|
|
|
|
|
+
|
|
|
|
+ .active {
|
|
|
|
+ background-color: #1890FF;
|
|
}
|
|
}
|
|
|
|
+
|
|
.select-type {
|
|
.select-type {
|
|
border: 2rpx solid #3857F3;
|
|
border: 2rpx solid #3857F3;
|
|
text-align: center;
|
|
text-align: center;
|
|
@@ -648,6 +768,7 @@
|
|
color: #3857F3;
|
|
color: #3857F3;
|
|
border-radius: 64rpx;
|
|
border-radius: 64rpx;
|
|
}
|
|
}
|
|
|
|
+
|
|
.total {
|
|
.total {
|
|
width: 100%;
|
|
width: 100%;
|
|
padding: 40rpx 30rpx;
|
|
padding: 40rpx 30rpx;
|