Merge branch 'master' of http://s16s652780.51mypc.cn:49896/r/jczz_app
| | |
| | | { |
| | | "path": "views/editExamine", |
| | | "style": { |
| | | "navigationBarTitleText": "场合维护", |
| | | "navigationBarTitleText": "场所维护", |
| | | "enablePullDownRefresh": false, |
| | | "navigationBarBackgroundColor": "#fff", |
| | | "navigationBarTextStyle": "black" |
| | |
| | | { |
| | | "path": "views/report", |
| | | "style": { |
| | | "navigationBarTitleText": "保修报事", |
| | | "navigationBarTitleText": "报事报修", |
| | | "enablePullDownRefresh": false, |
| | | "navigationBarBackgroundColor": "#fff", |
| | | "navigationBarTextStyle": "black" |
| | |
| | | this.info.type = option.type
|
| | | },
|
| | | onShow() {
|
| | | this.curSelectSite = uni.getStorageSync('curSelectSite')
|
| | | this.info.addressCode = this.curSelectSite.id |
| | | this.curSelectSite = uni.getStorageSync('siteInfo')
|
| | | this.info.addressCode = this.curSelectSite.id
|
| | | console.log(this.curSelectSite);
|
| | | },
|
| | | methods: {
|
| | |
| | | }, |
| | | onShow() { |
| | | this.getStatistics() |
| | | this.curSelectSite = uni.getStorageSync('curSelectSite') |
| | | this.curSelectSite = uni.getStorageSync('siteInfo') |
| | | console.log(this.curSelectSite); |
| | | }, |
| | | |
| | |
| | | <view class="h0 flex-1 build-list-box content">
|
| | | <u-collapse :border="false">
|
| | | <u-collapse-item v-show="isShowBuild" style="border: none;" :name="index"
|
| | | v-for="(item, index) in buildingList" :key="index"> |
| | | <!-- :title="item.unitName" --> |
| | | <view slot="title" class="flex"> |
| | | <u-icon name="/static/icon/group.png" size="16"></u-icon> |
| | | <view style="margin-left: 17rpx;">{{ item.unitName }}</view> |
| | | v-for="(item, index) in buildingList" :key="index">
|
| | | <!-- :title="item.unitName" -->
|
| | | <view slot="title" class="flex">
|
| | | <u-icon name="/static/icon/group.png" size="16"></u-icon>
|
| | | <view style="margin-left: 17rpx;">{{ item.unitName }}</view>
|
| | | </view>
|
| | | <view class="flex floor-content" v-for="(cItem, cIndex) in item.children" :key="cIndex">
|
| | | <view class="floor-num-box flex a-i-c j-c-c">
|
| | |
| | | </view>
|
| | | </u-collapse-item>
|
| | | <u-collapse-item class="sp-list" v-show="isShowShop" style="border: none;">
|
| | | <view slot="title" class="flex"> |
| | | <u-icon name="/static/icon/group.png" size="16"></u-icon> |
| | | <view style="margin-left: 17rpx;">商铺</view> |
| | | </view> |
| | | <view slot="title" class="flex">
|
| | | <u-icon name="/static/icon/group.png" size="16"></u-icon>
|
| | | <view style="margin-left: 17rpx;">商铺</view>
|
| | | </view>
|
| | | <view class="house-list-box flex" v-for="(item, index) in shopList" :name="index" :key="index"
|
| | | @click.native="pushShopPage(item)">
|
| | | <view class="l">
|
| | |
| | | },
|
| | | onShow() {
|
| | | this.getBuildingList()
|
| | | this.curSelectSite = uni.getStorageSync('curSelectSite')
|
| | | this.curSelectSite = uni.getStorageSync('siteInfo')
|
| | | },
|
| | | methods: {
|
| | | async getBuildingList() {
|
| | |
| | | height: 0;
|
| | | flex: 1;
|
| | | overflow-y: auto;
|
| | | |
| | | |
| | |
|
| | | |
| | |
|
| | | .content {
|
| | | margin-top: 20rpx;
|
| | | background-color: #fff; |
| | | background-color: #fff;
|
| | |
|
| | |
|
| | | .floor-info-box {
|
| | |
| | | align-items: center;
|
| | | width: calc(100% - 30rpx);
|
| | | min-height: 116rpx;
|
| | | box-sizing: border-box; |
| | | background-color: #FAFBFE; |
| | | box-sizing: border-box;
|
| | | background-color: #FAFBFE;
|
| | | margin: 15rpx;
|
| | |
|
| | | &>view {
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | .u-grid-item { |
| | | .u-grid-item {
|
| | | border: none;
|
| | | }
|
| | | }
|
| | |
| | | <template>
|
| | | <view class="container">
|
| | | <view class="header">
|
| | | <u-icon name="/static/icon/map.png" width="15" height="18"></u-icon> |
| | | <u-icon name="/static/icon/map.png" width="15" height="18"></u-icon>
|
| | | <text>{{ curSelectSite.name }}/{{ curHouseTitle }}</text>
|
| | | </view>
|
| | | <view class="flex f-d-c main">
|
| | |
| | | return {
|
| | | isShowAoi:false,
|
| | | isShowShop:false,
|
| | | currentId: '', |
| | | currentId: '',
|
| | | curSelectSite: {},
|
| | | curHouseTitle: '',
|
| | | houseList: [{
|
| | |
| | |
|
| | | },
|
| | | onShow() {
|
| | | this.getHouseInfo() |
| | | this.curSelectSite = uni.getStorageSync('curSelectSite')
|
| | | this.getHouseInfo()
|
| | | this.curSelectSite = uni.getStorageSync('siteInfo')
|
| | | },
|
| | |
|
| | | methods: {
|
| | |
| | | const aoiList = res.data.aoiList
|
| | | const shopList = res.data.shopList
|
| | | if(aoiList.length>0){
|
| | | this.isShowAoi =true |
| | | aoiList.forEach(item => { |
| | | item.title = item.name |
| | | this.isShowAoi =true
|
| | | aoiList.forEach(item => {
|
| | | item.title = item.name
|
| | | })
|
| | | this.houseList = aoiList || [{
|
| | | title: '-'
|
| | |
| | |
|
| | | },
|
| | | pushPage(value) {
|
| | | const { id, title,addressType } = value |
| | | if (!id) { |
| | | return |
| | | const { id, title,addressType } = value
|
| | | if (!id) {
|
| | | return
|
| | | }
|
| | | // addressType == 3 街路巷
|
| | | if(addressType == 1 || addressType == 3){
|
| | |
| | | }
|
| | | </script>
|
| | |
|
| | | <style lang="scss" scoped> |
| | | page { |
| | | background-color: #f5f5f5; |
| | | <style lang="scss" scoped>
|
| | | page {
|
| | | background-color: #f5f5f5;
|
| | | }
|
| | | .container {
|
| | | width: 100%;
|
| | |
| | | font-size: 26rpx;
|
| | |
|
| | | .header {
|
| | | background-color: #fff; |
| | | padding: 20rpx 30rpx; |
| | | display: flex; |
| | | color: #333333; |
| | | text { |
| | | margin-left: 15rpx; |
| | | background-color: #fff;
|
| | | padding: 20rpx 30rpx;
|
| | | display: flex;
|
| | | color: #333333;
|
| | | text {
|
| | | margin-left: 15rpx;
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | position: relative;
|
| | | height: 0;
|
| | | flex: 1;
|
| | | overflow-y: auto; |
| | | margin-top: 20rpx; |
| | | overflow-y: auto;
|
| | | margin-top: 20rpx;
|
| | | background-color: #fff;
|
| | |
|
| | | .house-container {
|
| | | flex-wrap: wrap; |
| | | flex-wrap: wrap;
|
| | | padding: 14rpx;
|
| | |
|
| | | .house-list-box {
|
| | |
| | | <u-form-item label="电话号码" class="form-item">
|
| | | <u--input v-model="form.telephone" border="none"></u--input>
|
| | | </u-form-item>
|
| | | <u-form-item label="咱据地" class="form-item">
|
| | | <u-form-item label="根据地" class="form-item">
|
| | | <u--input v-model="form.tempAddress" border="none"></u--input>
|
| | | </u-form-item>
|
| | | </u-form>
|
| | |
| | | tabStatus: 1,
|
| | | keyWord: '',
|
| | | loadingStatus: 'nomore', |
| | | clickInfo: {}
|
| | | clickInfo: {}, |
| | | currentRole: {}
|
| | | }
|
| | | },
|
| | | onShow() { |
| | | this.resetParams()
|
| | | this.getSiteList()
|
| | | this.getSiteList() |
| | | this.currentRole = uni.getStorageSync("activeRole")
|
| | | },
|
| | | onReachBottom() {
|
| | | this.pagingParams.current++
|
| | |
| | | })
|
| | | return res
|
| | | },
|
| | | pushPage(placeId, id) {
|
| | | pushPage(placeId, id) { |
| | | const { roleAlias } = this.currentRole |
| | | if (roleAlias === "inhabitant") { |
| | | return |
| | | }
|
| | | this.$u.func.globalNavigator(`/subPackage/workbench/views/examine?id=${id}&placeId=${placeId}`)
|
| | | }
|
| | | }
|
| | |
| | | padding: 10rpx 0;
|
| | |
|
| | | .address {
|
| | | width: 65%;
|
| | | width: 65%; |
| | | text-align: right;
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | <u-form-item label="场所位置" required class="form-item" prop="localtion">
|
| | | <u--input border="none" v-model="form.localtion"></u--input>
|
| | | </u-form-item>
|
| | | <u-form-item label="场所名称" required class="form-item" prop="placeName">
|
| | | <u-form-item label="场所名称" required class="form-item" prop="placeName">
|
| | | <u--input border="none" v-model="form.placeName"></u--input>
|
| | | </u-form-item>
|
| | | <u-form-item label="法人信息" required class="form-item" prop="legalPerson">
|
| | | <u-form-item label="法人信息" required class="form-item" prop="legalPerson">
|
| | | <u--input border="none" v-model="form.legalPerson"></u--input>
|
| | | </u-form-item>
|
| | | <u-form-item label="法人电话" class="form-item">
|
| | |
| | | <view class="">
|
| | | <box-title title="营业执照"></box-title>
|
| | | <view class="upload-img">
|
| | | <u-upload :fileList="form.images" :previewFullImage="uploadConfig.previewFullImage"
|
| | | <u-upload :fileList="form.imageUrls" :previewFullImage="uploadConfig.previewFullImage"
|
| | | :accept="uploadConfig.acceptImg" :multiple="uploadConfig.multiple" :maxCount="uploadConfig.maxCount"
|
| | | :capture="uploadConfig.capture" @afterRead="afterReadImg" @delete="deletePic">
|
| | | </u-upload>
|
| | |
| | | <view class="">
|
| | | <box-title title="场所平面图"></box-title>
|
| | | <view class="upload-img">
|
| | | <u-upload :fileList="form.images" :previewFullImage="uploadConfig.previewFullImage"
|
| | | <u-upload :fileList="form.planImageUrls" :previewFullImage="uploadConfig.previewFullImage"
|
| | | :accept="uploadConfig.acceptImg" :multiple="uploadConfig.multiple" :maxCount="uploadConfig.maxCount"
|
| | | :capture="uploadConfig.capture" @afterRead="afterReadImg" @delete="deletePic">
|
| | | </u-upload>
|
| | |
| | | <u-button type="success" plain class="add-person" @click="addPerson">在加一人</u-button>
|
| | | <view class="btn-group">
|
| | | <u-button class="btn-item" type="primary" @click="submit">提交</u-button>
|
| | | <u-button class="btn-item">我上报的事件</u-button>
|
| | | <u-button class="btn-item" @click="pushPage">我上报的事件</u-button>
|
| | | </view>
|
| | | </div>
|
| | | </template>
|
| | |
|
| | | <script> |
| | | import { updatePlaceExtData } from '@/api/placeExp/placeExp.js'
|
| | | <script>
|
| | | import {
|
| | | updatePlaceExtData, |
| | | getPlaceDetail
|
| | | } from '@/api/placeExp/placeExp.js'
|
| | | import uploadMixin from "@/mixin/uploadMixin";
|
| | | import boxTtitle from '@/components/boxTitle/index.vue'
|
| | | import formItem from '../components/formItem.vue'
|
| | |
| | | },
|
| | | data() {
|
| | | return {
|
| | | form: {
|
| | | form: { |
| | | id: '', |
| | | placeId: '',
|
| | | localtion: '',
|
| | | placeName: '',
|
| | | legalPerson: '',
|
| | |
| | | trigger: ['blur', 'change']
|
| | | }
|
| | | },
|
| | | personNum: 1
|
| | | personNum: 1,
|
| | | curSelectSite: {},
|
| | | }
|
| | | },
|
| | | onShow() {
|
| | | this.curSelectSite = uni.getStorageSync('siteInfo') |
| | | this.getCsDetails()
|
| | | },
|
| | | methods: { |
| | | updatePlaceExt() { |
| | | |
| | | getCsDetails() { |
| | | getPlaceDetail({ |
| | | placeId: this.curSelectSite.id |
| | | }).then(detailRes => { |
| | | const { code, data } = detailRes |
| | | if (code !== 200) { |
| | | uni.showToast({ |
| | | title: '数据请求失败', |
| | | icon: 'error' |
| | | }) |
| | | return |
| | | } |
| | | 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() |
| | | } |
| | | }) |
| | | this.personNum = placePractitioner.length |
| | | this.$nextTick(() => { |
| | | console.log(placePractitioner); |
| | | this.$refs.formItemRef.forEach((item, index) => { |
| | | item.form = placePractitioner[index] |
| | | }) |
| | | }) |
| | | }) |
| | | },
|
| | | 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 personList = []
|
| | | this.$refs.formItemRef.forEach(item => {
|
| | | personList.push(item.form)
|
| | | const placePractitioner = []
|
| | | this.$refs.formItemRef.forEach(item => { |
| | | item.form.placeId = this.form.placeId
|
| | | placePractitioner.push(item.form)
|
| | | })
|
| | | console.log(personList);
|
| | | this.form.placePractitioner = placePractitioner |
| | | this.updatePlaceExt(this.form)
|
| | | }, |
| | | pushPage() { |
| | | this.$u.func.globalNavigator('/subPackage/workbench/views/cshw') |
| | | }
|
| | | }
|
| | | }
|