| | |
| | | <line-item :list="collectData">
|
| | | <template #other="{ sdate }">
|
| | | <view style="padding: 20rpx 0;" v-if="sdate.name === 'imageUrls' && sdate.value !== '未完善' ">
|
| | | <u--image :src="sdate.value" width="80px" height="80px" @click="imgPreview(sdate.value)"></u--image>
|
| | | <u--image :src="sdate.value" width="80px" height="80px"
|
| | | @click="imgPreview(sdate.value)"></u--image>
|
| | | </view>
|
| | | </template>
|
| | | </line-item>
|
| | |
| | | import {
|
| | | getDoorplateAddressDetail
|
| | | } from "@/api/doorplateAddress/doorplateAddress";
|
| | | import {
|
| | | getPlaceDetail
|
| | | } from '@/api/place/place.js'
|
| | | export default {
|
| | | components: {
|
| | | lineItem
|
| | |
| | | },
|
| | | methods: {
|
| | | async getBuildingDetail() {
|
| | | // const {
|
| | | // code,
|
| | | // data
|
| | | // } = await getDoorplateAddressDetail({
|
| | | // stdId: this.stdId
|
| | | // })
|
| | | const {
|
| | | code,
|
| | | data
|
| | | } = await getDoorplateAddressDetail({
|
| | | stdId: this.stdId
|
| | | } = await getPlaceDetail({
|
| | | houseCode: this.stdId
|
| | | })
|
| | | console.log(data);
|
| | | if (code !== 200) {
|
| | | uni.showToast({
|
| | | title: "数据请求失败",
|
| | |
| | | })
|
| | | return
|
| | | }
|
| | | const doorplateAddressEntity = data?.doorplateAddressEntity || {}
|
| | | const placePoiLabelVOList = data?.placePoiLabelVOList || {}
|
| | | this.houseNumberData.forEach(item => {
|
| | | if (!data[item.name]) {
|
| | | item.value = data.place[item.name] || '未完善'
|
| | | item.value = data.doorplateAddressEntity[item.name] || '未完善'
|
| | | } else {
|
| | | item.value = data[item.name] || '未完善'
|
| | | }
|
| | |
|
| | | if (item.name == 'label') {
|
| | |
|
| | | let labelArr = []
|
| | | placePoiLabelVOList.forEach(item => {
|
| | | labelArr.push(item.labelName)
|
| | | })
|
| | | |
| | | item.value = labelArr.join('、')
|
| | | }
|
| | | })
|
| | | |
| | |
|
| | | this.gridData.forEach(item => {
|
| | | if (!data[item.name]) {
|
| | | item.value = data.place[item.name] || '未完善'
|
| | | item.value = data.doorplateAddressEntity[item.name] || '未完善'
|
| | | } else {
|
| | | item.value = data[item.name] || '未完善'
|
| | | }
|
| | | })
|
| | | |
| | |
|
| | | this.collectData.forEach(item => {
|
| | | if (!data[item.name]) {
|
| | | item.value = data.place[item.name] || '未完善'
|
| | | item.value = data.doorplateAddressEntity[item.name] || '未完善'
|
| | | } else {
|
| | | item.value = data[item.name] || '未完善'
|
| | | }
|
| | | })
|
| | | |
| | |
|
| | |
|
| | | this.policeData.forEach(item => {
|
| | | item.value = data[item.name] || '未完善'
|
| | | if (!data[item.name]) {
|
| | | item.value = data.doorplateAddressEntity[item.name] || '未完善'
|
| | | } else {
|
| | | item.value = data[item.name] || '未完善'
|
| | | }
|
| | | })
|
| | | },
|
| | | imgPreview(value) {
|
| | |
| | | height: calc(100% - 110rpx);
|
| | | padding-bottom: 20rpx;
|
| | | overflow: auto;
|
| | |
|
| | | .map {
|
| | | width: 100%;
|
| | | height: 240rpx;
|
| | | background-color: #fff;
|
| | | }
|
| | |
|
| | | .box-title {
|
| | | padding: 10px 0;
|
| | |
|
| | |
| | |
|
| | | data.placePoiLabelVOList.forEach(item => {
|
| | | let label = this.labelList[0].children.find(sl => sl.text === item.labelName) || {}
|
| | | console.log(label); |
| | | label['isClose'] = false
|
| | | this.showLabelList.push(label)
|
| | | })
|
| | |
| | | const townStreet = await this.getDoorplateAddressList(null, "townStreet")
|
| | | this.setColumn(townStreet, 0)
|
| | | //设置社区
|
| | | const nei = await this.getDoorplateAddressList(townStreet[0].code, "nei")
|
| | | const nei = await this.getDoorplateAddressList(townStreet[0]?.code, "nei")
|
| | | this.setColumn(nei, 1)
|
| | | //设置路
|
| | | const streetRu = await this.getDoorplateAddressList(nei[0].code, "streetRu")
|
| | | const streetRu = await this.getDoorplateAddressList(nei[0]?.code, "streetRu")
|
| | | this.setColumn(streetRu, 2)
|
| | | //设置地区
|
| | | const district = await this.getDoorplateAddressList(streetRu[0].code, "district")
|
| | | const district = await this.getDoorplateAddressList(streetRu[0]?.code, "district")
|
| | | this.setColumn(district, 3)
|
| | | //设置楼栋
|
| | | const building = await this.getDoorplateAddressList(district[0].code, "building")
|
| | | const building = await this.getDoorplateAddressList(district[0]?.code, "building")
|
| | | this.setColumn(building, 4)
|
| | | },
|
| | |
|
| | |
| | | }
|
| | | },
|
| | | onShow() { |
| | | this.currentRole = uni.getStorageSync("activeRole") |
| | | this.resetParams()
|
| | | this.getSiteList() |
| | | this.currentRole = uni.getStorageSync("activeRole")
|
| | | this.getSiteList()
|
| | | },
|
| | | onReachBottom() {
|
| | | this.pagingParams.current++
|
| | |
| | | const params = {
|
| | | placeName: this.keyWord,
|
| | | confirmFlag: this.tabStatus
|
| | | }
|
| | | } |
| | | const { roleName } = this.currentRole
|
| | | const res = await getSiteMaintenanceData({
|
| | | ...params,
|
| | | ...params, |
| | | roleName,
|
| | | ...this.pagingParams
|
| | | }) |
| | | console.log(res);
|
| | |
| | | size: 10
|
| | | },
|
| | | tabsType: 1,
|
| | | status: 'nomore'
|
| | | status: 'nomore', |
| | | currentRole: {}
|
| | | }
|
| | | },
|
| | | onShow() { |
| | | this.recordsData = []
|
| | | this.recordsData = [] |
| | | this.currentRole = uni.getStorageSync('activeRole')
|
| | | this.getrRecordList()
|
| | | },
|
| | | onReachBottom() {
|
| | |
| | | },
|
| | | methods: {
|
| | | async getrRecordList(placeName = this.iptContext, isPerfect = this.tabsType) {
|
| | | this.status = 'loadmore'
|
| | | this.status = 'loadmore' |
| | | const { roleName } = this.currentRole |
| | | console.log(this.currentRole);
|
| | | const {
|
| | | code,
|
| | | data: {
|
| | |
| | | }
|
| | | } = await getLocationRecord({
|
| | | placeName,
|
| | | isPerfect,
|
| | | isPerfect, |
| | | roleName,
|
| | | ...this.pagingParams
|
| | | })
|
| | | if (code !== 200) {
|
| | |
| | | onShow() {
|
| | | this.curSelectSite = uni.getStorageSync('siteInfo')
|
| | | this.getCsDetails()
|
| | | // this.getLocation()
|
| | | },
|
| | | methods: {
|
| | | getLocation() {
|
| | | uni.chooseLocation({
|
| | | success: (res) => {
|
| | | console.log(res);
|
| | | }
|
| | | })
|
| | | },
|
| | | getCsDetails() {
|
| | | getPlaceDetail({
|
| | | placeId: this.curSelectSite.id
|
| | | }).then(detailRes => {
|
| | | const { code, data } = detailRes
|
| | | const {
|
| | | code,
|
| | | data
|
| | | } = detailRes
|
| | | if (code !== 200) {
|
| | | uni.showToast({
|
| | | title: '数据请求失败',
|
| | |
| | | const placePractitioner = data?.placePractitioner || []
|
| | | Object.keys(this.form).forEach(key => {
|
| | | this.form[key] = data[key]
|
| | | if(key === 'imageUrls' || key === 'planImageUrls') {
|
| | | this.form[key] = []
|
| | | !!data[key] && this.form[key].push()
|
| | | if (key === 'imageUrls' || key === 'planImageUrls') {
|
| | | this.form[key] = [] |
| | | !!data[key] && this.form[key].push(data[key])
|
| | | }
|
| | | })
|
| | | this.personNum = placePractitioner.length
|
| | |
| | | })
|
| | | })
|
| | | })
|
| | | },
|
| | | updatePlaceExt(data) {
|
| | | data['imageUrls'] = JSON.stringify(data['imageUrls'])
|
| | | data['planImageUrls'] = JSON.stringify(data['planImageUrls'])
|
| | | updatePlaceExtData({...data}).then(res => {
|
| | | const { code } = res
|
| | | if (code !== 200) {
|
| | | uni.showToast({
|
| | | title: '提交失败',
|
| | | icon: 'error'
|
| | | })
|
| | | return
|
| | | }
|
| | | uni.showToast({
|
| | | title: '提交成功',
|
| | | icon: 'success',
|
| | | complete() {
|
| | | setTimeout(() => {
|
| | | uni.navigateBack()
|
| | | }, 1500)
|
| | | }
|
| | | })
|
| | | })
|
| | | },
|
| | | addPerson() {
|
| | | this.personNum++
|
| | | },
|
| | | submit() {
|
| | | const placePractitioner = []
|
| | | this.$refs.formItemRef.forEach(item => {
|
| | | item.form.placeId = this.form.placeId
|
| | | placePractitioner.push(item.form)
|
| | | })
|
| | | this.form.placePractitioner = placePractitioner
|
| | | this.updatePlaceExt(this.form)
|
| | | },
|
| | | pushPage() {
|
| | | this.$u.func.globalNavigator('/subPackage/workbench/views/cshw')
|
| | | }
|
| | | },
|
| | | updatePlaceExt(data) {
|
| | | data['imageUrls'] = JSON.stringify(data['imageUrls'])
|
| | | data['planImageUrls'] = JSON.stringify(data['planImageUrls'])
|
| | | updatePlaceExtData({
|
| | | ...data
|
| | | }).then(res => {
|
| | | const {
|
| | | code
|
| | | } = res
|
| | | if (code !== 200) {
|
| | | uni.showToast({
|
| | | title: '提交失败',
|
| | | icon: 'error'
|
| | | })
|
| | | return
|
| | | }
|
| | | uni.showToast({
|
| | | title: '提交成功',
|
| | | icon: 'success',
|
| | | complete() {
|
| | | setTimeout(() => {
|
| | | uni.navigateBack()
|
| | | }, 1500)
|
| | | }
|
| | | })
|
| | | })
|
| | | },
|
| | | addPerson() {
|
| | | this.personNum++
|
| | | },
|
| | | submit() {
|
| | | const placePractitioner = []
|
| | | this.$refs.formItemRef.forEach(item => {
|
| | | item.form.placeId = this.form.placeId
|
| | | placePractitioner.push(item.form)
|
| | | })
|
| | | this.form.placePractitioner = placePractitioner
|
| | | this.updatePlaceExt(this.form)
|
| | | },
|
| | | pushPage() {
|
| | | this.$u.func.globalNavigator('/subPackage/workbench/views/cshw')
|
| | | }
|
| | | }
|
| | | </script>
|
| | |
| | | })
|
| | | }
|
| | | },
|
| | | onLoad() {
|
| | | onLoad() { |
| | | this.currentRole = uni.getStorageSync('activeRole')
|
| | | this.getStatistics()
|
| | | },
|
| | | onShow() {
|
| | |
| | | scrollTop: 0, // 滚动到页面的目标位置(单位px)
|
| | | });
|
| | | },
|
| | | getStatistics(auditStatus = '') {
|
| | | let params = {}
|
| | | getStatistics(auditStatus = '') { |
| | | const { roleName } = this.currentRole
|
| | | let params = { |
| | | roleName |
| | | }
|
| | | if (auditStatus) {
|
| | | params = {
|
| | | auditStatus
|
| | | auditStatus, |
| | | roleName
|
| | | }
|
| | | }
|
| | | getStatistics(params).then(res => {
|
| | |
| | | return res.name
|
| | | },
|
| | | async getRentalHouseInfo(params = {}) {
|
| | | this.loadingStatus = 'loadmore'
|
| | | this.loadingStatus = 'loadmore' |
| | | const { roleName } = this.currentRole
|
| | | const {
|
| | | code,
|
| | | data: {
|
| | |
| | | }
|
| | | } = await getRentalHouseContent({
|
| | | tenantName: this.keyword,
|
| | | ...this.pagingParams,
|
| | | ...this.pagingParams, |
| | | roleName,
|
| | | ...this.selectParams
|
| | | })
|
| | | if (code !== 200) {
|
| | |
| | | }
|
| | | },
|
| | | onShow() { |
| | | this.currentRole = uni.getStorageSync("activeRole") |
| | | this.reportList = []
|
| | | this.getPageList()
|
| | | },
|
| | |
| | | const params = {
|
| | | realName: this.keyWord,
|
| | | confirmFlag: this.tabStatus
|
| | | }
|
| | | } |
| | | const { roleName } = this.currentRole
|
| | | const res = await getPage({
|
| | | ...params,
|
| | | ...params, |
| | | roleName,
|
| | | ...this.pagingParams
|
| | | })
|
| | | const {
|