| | |
| | | <view class="title">合同上传</view>
|
| | | <u-upload :fileList="form.images" :previewFullImage="uploadConfig.previewFullImage"
|
| | | :accept="uploadConfig.acceptImg" :multiple="uploadConfig.multiple" |
| | | uploadIcon="/static/icon/upload.png"
|
| | | :maxCount="uploadConfig.maxCount" :capture="uploadConfig.capture" @afterRead="afterReadImg"
|
| | | @delete="deletePic">
|
| | | uploadIcon="/static/icon/upload.png" :maxCount="uploadConfig.maxCount"
|
| | | :capture="uploadConfig.capture" @afterRead="afterReadImg" @delete="deletePic">
|
| | | </u-upload>
|
| | | </view>
|
| | | </view>
|
| | |
| | | </view>
|
| | | </u-form>
|
| | | <!-- 事件类型下拉框 -->
|
| | | <select-bus v-if="typeShow" :show="typeShow" v-model="form[selectBusModel]" type="radio"
|
| | | <!-- <select-bus v-if="typeShow" :show="typeShow" v-model="form[selectBusModel]" type="radio"
|
| | | :popupTitle="selectBusTitle" :dataLists="selectBusList" @cancel="typeShow = false" @submit="typeSelect">
|
| | | </select-bus>
|
| | | </select-bus> -->
|
| | | <u-picker :closeOnClickOverlay="true" v-if="typeShow" :show="typeShow" :columns="[selectBusList]"
|
| | | @close="typeShow = false" @cancel="typeShow = false" keyName="name" @confirm="typeSelect"></u-picker>
|
| | | <!--出租时间选择-->
|
| | | <u-datetime-picker v-model="currentTime" v-if="rentTimeShow" :closeOnClickOverlay="true"
|
| | | @close="rentTimeShow = false" :show="rentTimeShow" mode="date" @confirm="rentTimeConfirm"
|
| | |
| | | this.typeShow = true
|
| | | },
|
| | | //类型选择确认
|
| | | typeSelect(item) {
|
| | | this[this.selectBusModel] = item.name
|
| | | this.form[this.selectBusKey] = item.value
|
| | | typeSelect(e) { |
| | | const [ result ] = e.value
|
| | | this[this.selectBusModel] = result.name
|
| | | this.form[this.selectBusKey] = result.value
|
| | | this.typeShow = !this.typeShow
|
| | | },
|
| | | rentTimeClick() {
|
| | |
| | | background-color: #ffffff;
|
| | | margin-top: 30rpx; |
| | | border-radius: 8rpx;
|
| | |
|
| | | .box-title {
|
| | | display: flex;
|
| | | justify-content: space-between;
|
| | |
| | | }
|
| | | }
|
| | | } |
| | |
|
| | | /deep/ .u-form-item { |
| | | padding: 5rpx 20rpx; |
| | | border-bottom: 1px solid #eff1f3; |
| | |
| | | <u-divider text="已经到底了"></u-divider>
|
| | | </view>
|
| | | </view>
|
| | | <u-toast ref="uToast"></u-toast>
|
| | | </view>
|
| | | </template>
|
| | |
|
| | |
| | | },
|
| | | methods: {
|
| | | async getBuildingList() { |
| | | uni.showToast({ |
| | | title: '数据加载中', |
| | | icon: 'loading' |
| | | this.$refs.uToast.show({
|
| | | type: 'loading',
|
| | | message: '正在加载',
|
| | | duration: 9999999
|
| | | })
|
| | | this.isShowBuild = false
|
| | | this.isShowShop = false
|
| | |
| | | this.isShowShop = true
|
| | | this.shopList = shopList || []
|
| | | }
|
| | | this.$nextTick(() => {
|
| | | this.$refs.uToast.isShow = false
|
| | | })
|
| | | },
|
| | | pushPage(name, scItem) {
|
| | | const {
|
| | |
| | | <line-item :list="firemanData"></line-item>
|
| | | </view>
|
| | | </view>
|
| | | <u-toast ref="uToast"></u-toast>
|
| | | <view class="btn-box">
|
| | | <view class="sl-box" @click="csjlClick">
|
| | | <u-icon name="/static/icon/menu-01.png" size="30"></u-icon>
|
| | |
| | | },
|
| | | methods: {
|
| | | async getBuildingDetail() {
|
| | | this.$refs.uToast.show({
|
| | | type: 'loading',
|
| | | message: '正在加载', |
| | | duration: 9999999
|
| | | })
|
| | | // const {
|
| | | // code,
|
| | | // data
|
| | |
| | | latitude: lat,
|
| | | longitude: lng,
|
| | | }]
|
| | | this.$nextTick(() => { |
| | | this.$refs.uToast.isShow = false |
| | | })
|
| | | },
|
| | | imgPreview(value) {
|
| | | uni.previewImage({
|
| | |
| | | </view>
|
| | | </view>
|
| | | </view>
|
| | |
|
| | | <u-toast ref="uToast"></u-toast>
|
| | | <u-divider text="已经到底了"></u-divider>
|
| | | </view>
|
| | | </view>
|
| | |
| | | },
|
| | | methods: {
|
| | | async getHouseInfo() {
|
| | | this.$refs.uToast.show({
|
| | | type: 'loading',
|
| | | message: '正在加载',
|
| | | duration: 9999999
|
| | | })
|
| | | const param = {
|
| | | type: 2,
|
| | | code: this.currentId,
|
| | |
| | | title: '-'
|
| | | }]
|
| | | }
|
| | |
|
| | | this.$nextTick(() => {
|
| | | this.$refs.uToast.isShow = false
|
| | | })
|
| | | },
|
| | | pushPage(value) {
|
| | | const {
|
| | |
| | | <newBoxTitle :title="item.name"></newBoxTitle>
|
| | | <view class="label-btn-box">
|
| | | <view v-for="(item, k) in item.children" :key="k">
|
| | | <u-button size="mini" type="primary" |
| | | :color="item.color" |
| | | :style="{color: item.color && '#fff'}"
|
| | | :text="item.name" @click="showLabelPopup(item)"></u-button>
|
| | | <u-button size="mini" type="primary" :color="item.color"
|
| | | :style="{color: item.color && '#fff'}" :text="item.name"
|
| | | @click="showLabelPopup(item)"></u-button>
|
| | | </view>
|
| | | </view>
|
| | | </view>
|
| | |
| | | created() {},
|
| | | mounted() { |
| | | this.getDoorPlateAddressDetail() |
| | | this.$nextTick(() => { |
| | | if (this.labelBtnList.length === 0) { |
| | | this.getLabelList() |
| | | } |
| | | })
|
| | | },
|
| | | onLoad(option) {
|
| | | const data = JSON.parse(option.data);
|
| | |
| | | } |
| | | </style>
|
| | | <style scoped lang="scss"> |
| | | |
| | | .container {
|
| | | position: relative;
|
| | | width: 100%;
|
| | |
| | | </view> |
| | | |
| | | <!-- 事件类型下拉框 --> |
| | | <select-bus v-if="typeShow" :show="typeShow" v-model="form[selectBusModel]" type="radio" |
| | | <!-- <select-bus v-if="typeShow" :show="typeShow" v-model="form[selectBusModel]" type="radio" |
| | | :popupTitle="selectBusTitle" :dataLists="selectBusList" @cancel="typeShow = false" @submit="typeSelect"> |
| | | </select-bus> |
| | | </select-bus> --> |
| | | <u-picker :closeOnClickOverlay="true" v-if="typeShow" :show="typeShow" :columns="[selectBusList]" |
| | | @close="typeShow = false" @cancel="typeShow = false" keyName="name" @confirm="typeSelect"></u-picker> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | }, |
| | | //类型选择确认 |
| | | typeSelect(item) { |
| | | this[this.selectBusModel] = item.name |
| | | this.form[this.selectBusModel] = item.value |
| | | const [ result ] = e.value |
| | | this[this.selectBusModel] = result.name |
| | | this.form[this.selectBusKey] = result.value |
| | | this.typeShow = !this.typeShow |
| | | }, |
| | | //表单提交 |
| | |
| | | flex-direction: column; |
| | | background: #F5F5F5; |
| | | |
| | | |
| | | .main { |
| | | position: relative; |
| | | height: 0; |
| | |
| | | height: 0; |
| | | flex: 1; |
| | | overflow-y: auto; |
| | | padding-bottom: 36rpx; |
| | | padding-bottom: 120rpx; |
| | | // padding-bottom: 36rpx; |
| | | } |
| | | |
| | | |
| | |
| | | justify-content: space-around; |
| | | align-items: center; |
| | | height: 116rpx; |
| | | position: fixed; |
| | | left: 0; |
| | | bottom: 0; |
| | | width: 100%; |
| | | } |
| | | } |
| | | |
| | |
| | | </view>
|
| | | </u-sticky>
|
| | | <view class="list">
|
| | | <view class="list-item bgc-ff mb-20" v-for="item in siteList" :key="item.id" @click="pushPage(item.placeId, item.id)">
|
| | | <view class="list-item bgc-ff mb-20" v-for="item in siteList" :key="item.id"
|
| | | @click="pushPage(item.placeId, item.id)">
|
| | | <view class="item-title flex a-i-c j-c-s-b mb-20">
|
| | | <text class="f-32 fw">{{ item.placeName ? item.placeName : '场所信息未完善' }}</text>
|
| | | <!-- <u-tag text="待审批" type="warning" plain plainFill></u-tag> -->
|
| | | <u-tag class="u_tag" size="mini" :text="findObjValue(item.confirmFlag, tabList).name" :type="findObjValue(item.confirmFlag, tabList).type" plain plainFill></u-tag>
|
| | | <u-tag class="u_tag" size="mini" :text="findObjValue(item.confirmFlag, tabList).name"
|
| | | :type="findObjValue(item.confirmFlag, tabList).type" plain plainFill></u-tag>
|
| | | <!-- <u-tag text="审核拒绝" type="error" plain plainFill></u-tag> -->
|
| | | </view>
|
| | | <view class="item-row flex a-i-c j-c-s-b">
|
| | |
| | | </view>
|
| | | </view>
|
| | | </view>
|
| | | <u-toast ref="uToast"></u-toast>
|
| | | <u-loadmore :status="loadingStatus" loadmoreText="开始加载" loadingText="数据加载中" nomoreText="没有更多了" line />
|
| | | </view>
|
| | | </template>
|
| | |
| | | },
|
| | | methods: {
|
| | | async getSiteList() {
|
| | | this.$refs.uToast.show({
|
| | | type: 'loading',
|
| | | message: '正在加载',
|
| | | duration: 9999999
|
| | | })
|
| | | this.loadingStatus = 'loadingmore'
|
| | | const params = {
|
| | | placeName: this.keyWord,
|
| | | confirmFlag: this.tabStatus
|
| | | } |
| | | const { roleName } = this.currentRole
|
| | | const {
|
| | | roleName
|
| | | } = this.currentRole
|
| | | const res = await getSiteMaintenanceData({
|
| | | ...params, |
| | | roleName,
|
| | |
| | | return
|
| | | }
|
| | | this.siteList = [...this.siteList, ...records]
|
| | | this.$nextTick(() => {
|
| | | this.$refs.uToast.isShow = false
|
| | | })
|
| | | this.loadingStatus = 'nomore'
|
| | | },
|
| | | changeTab(e) {
|
| | |
| | | return res
|
| | | },
|
| | | pushPage(placeId, id) { |
| | | const { roleAlias } = this.currentRole |
| | | const {
|
| | | roleAlias
|
| | | } = this.currentRole
|
| | | if (roleAlias === "inhabitant") { |
| | | return |
| | | }
|
| | |
| | | </view>
|
| | | <view class="search">
|
| | | <u-search placeholder="请输入场所名称" v-model="iptContext" :clearabled="true" :showAction="true"
|
| | | :animation="true" @change="keyWordChange" @search="searchConfirm" @clear="clearConfirm"></u-search>
|
| | | :animation="true" @change="keyWordChange" @search="searchConfirm"
|
| | | @clear="clearConfirm"></u-search>
|
| | | </view>
|
| | | </view>
|
| | | </u-sticky>
|
| | |
| | | </view>
|
| | | </view>
|
| | | </view>
|
| | | <u-toast ref="uToast"></u-toast>
|
| | | <u-loadmore :status="status" loadmoreText="开始加载" loadingText="数据加载中" nomoreText="没有更多了" line />
|
| | | </view>
|
| | | </template>
|
| | |
| | | },
|
| | | methods: {
|
| | | async getrRecordList(placeName = this.iptContext, isPerfect = this.tabsType) {
|
| | | this.$refs.uToast.show({
|
| | | type: 'loading',
|
| | | message: '正在加载',
|
| | | duration: 9999999
|
| | | })
|
| | | this.status = 'loadmore' |
| | | const { roleName } = this.currentRole |
| | | const {
|
| | | roleName
|
| | | } = this.currentRole
|
| | | console.log(this.currentRole);
|
| | | const {
|
| | | code,
|
| | |
| | | return
|
| | | }
|
| | | this.recordsData = [...this.recordsData, ...records]
|
| | | this.$nextTick(() => {
|
| | | this.$refs.uToast.isShow = false
|
| | | })
|
| | | this.status = 'nomore'
|
| | | },
|
| | | tabClick({
|
| | |
| | | this.iptContext = ''
|
| | | this.searchConfirm()
|
| | | },
|
| | | pushPage({ id }) {
|
| | | pushPage({
|
| | | id
|
| | | }) {
|
| | | if (!id) {
|
| | | uni.showToast({
|
| | | title: "关键参数为空",
|
| | |
| | |
|
| | | .info-box { |
| | | padding: 20rpx 30rpx; |
| | |
|
| | | // background-color: #f6f6f6;
|
| | | .records-card {
|
| | | background: #fff;
|
| | |
| | | </view>
|
| | | </view>
|
| | | </view>
|
| | |
|
| | | <u-toast ref="uToast"></u-toast>
|
| | | <u-loadmore :status="loadingStatus" loadmoreText="开始加载" loadingText="数据加载中" nomoreText="已经到底了" line />
|
| | | </view>
|
| | | </template>
|
| | |
| | | });
|
| | | },
|
| | | getStatistics(auditStatus = '') { |
| | | const { roleName } = this.currentRole
|
| | | const {
|
| | | roleName
|
| | | } = this.currentRole
|
| | | let params = { |
| | | roleName |
| | | }
|
| | |
| | | },
|
| | | async getRentalHouseInfo(params = {}) {
|
| | | this.loadingStatus = 'loadmore' |
| | | const { roleName } = this.currentRole
|
| | | this.$refs.uToast.show({
|
| | | type: 'loading',
|
| | | message: '正在加载',
|
| | | duration: 9999999
|
| | | })
|
| | | const {
|
| | | roleName
|
| | | } = this.currentRole
|
| | | const {
|
| | | code,
|
| | | data: {
|
| | |
| | | return
|
| | | }
|
| | | this.tenantList = [...this.tenantList, ...records]
|
| | | this.$nextTick(() => {
|
| | | this.$refs.uToast.isShow = false
|
| | | })
|
| | | this.loadingStatus = 'nomore'
|
| | | },
|
| | | search() {
|