zhongrj
2023-11-05 6f2d171598d5edbd5276797f8783de89de352439
场所采集挂接,商铺链接到场所页面
5 files modified
60 ■■■■■ changed files
pages/home/index.vue 11 ●●●● patch | view | raw | blame | history
subPackage/house/family/index.vue 7 ●●●●● patch | view | raw | blame | history
subPackage/house/list/index.vue 4 ●●● patch | view | raw | blame | history
subPackage/house/roomControl/index.vue 13 ●●●● patch | view | raw | blame | history
subPackage/workbench/views/cscj.vue 25 ●●●●● patch | view | raw | blame | history
pages/home/index.vue
@@ -87,7 +87,7 @@
                    </view>
                </view>
                <u-grid :border="false" col="4">
                    <u-grid-item @click="navigatorPage(item.path)" v-for="(item, index) in jobList" :index="index"
                    <u-grid-item @click="navigatorPage(item)" v-for="(item, index) in jobList" :index="index"
                        :key="index" :customStyle="{paddingTop:20+'rpx'}">
                        <view class="grid-item flex f-d-c a-i-c" :style="{background:item.style.background}">
                            <u-icon :name="item.icon" width="60rpx" height="60rpx"></u-icon>
@@ -225,7 +225,7 @@
                        style: {
                            background: 'linear-gradient(133deg, #F9FAFE 0%, rgba(249,250,254,0) 100%)',
                        },
                        path:""
                        path:"/subPackage/workbench/views/cscj"
                    },
                    {
                        icon: "/static/icon/menu-03.png",
@@ -541,11 +541,10 @@
                this.$u.func.globalNavigator(`/subPackage/bs/views/zhsb?houseCode=${this.curHouseCode}`, "navTo")
            },
            navigatorPage(url) {
                if(url){
                    this.$u.func.globalNavigator(url, "navTo")
            navigatorPage(item) {
                if(item.path){
                    this.$u.func.globalNavigator(item.path, "navTo")
                }
            },
            scan() {
subPackage/house/family/index.vue
@@ -130,9 +130,10 @@
            },
            // 跳转到商铺页面
            pushShopPage(e){
                const { addressCode } = value
                // let url = `?id=${addressCode}`
                // this.$u.func.globalNavigator(url, "navTo")
                console.log(e,8888)
                const { addressCode } = e
                let url = `/subPackage/workbench/views/cscj?stdId=${addressCode}`
                this.$u.func.globalNavigator(url, "navTo")
            }
        }
    }
subPackage/house/list/index.vue
@@ -101,7 +101,9 @@
                    }
                }else{
                    // 跳转场所页面 addressType == 2
                    console.log(value,8888)
                    let url = `/subPackage/workbench/views/cscj?stdId=${id}`
                    this.$u.func.globalNavigator(url, "navTo")
                }
            }
        }
subPackage/house/roomControl/index.vue
@@ -179,6 +179,12 @@
                    houseCode : this.houseCode
                }
                const res = await getHouseDetail(param)
                // 房屋标签处理
                const paramLabel = {
                    parentId:1001
                }
                const resLabel = await getLabelListByParentId(paramLabel)
                this.labelBtnList = resLabel.data
                if(null != res.data){
                    const images = []
                    const {
@@ -199,12 +205,7 @@
                            })
                        })
                    }
                    // 房屋标签处理
                    const paramLabel = {
                        parentId:1001
                    }
                    const resLabel = await getLabelListByParentId(paramLabel)
                    this.labelBtnList = resLabel.data
                    if(houseLabelVOList.length>0){
                        that.labelBtnList.forEach(e=>{
                            houseLabelVOList.forEach(f=>{
subPackage/workbench/views/cscj.vue
@@ -5,20 +5,22 @@
                <box-title title="基础信息"></box-title>
            </view>
            <view class="item">
                <u-form-item @click="showPicker = true" class="form-item" labelWidth="100" label="楼栋:" required
                <u-form-item @click="showPicker = true" class="form-item" labelWidth="100" label="楼栋:"
                :required="isRequired" :disabled="isDisabled"
                    prop="buildingCode">
                    <u--input border="none" disabledColor="#ffffff" v-model="form.building" placeholder="请选择">
                    </u--input>
                    <u-icon slot="right" name="arrow-right"></u-icon>
                </u-form-item>
                <u-form-item class="form-item" labelWidth="100" label="场所名称:" required prop="placeName">
                <u-form-item class="form-item" labelWidth="100" label="场所名称:"
                 :required="isRequiredPlace" :disabled="isDisabled" prop="placeName">
                    <u--input border="none" v-model="form.placeName" placeholder="请输入">
                    </u--input>
                </u-form-item>
                <u-form-item @click="popup" class="form-item" labelWidth="100" label="标签:" required prop="label">
                <u-form-item @click="popup" class="form-item" labelWidth="100" label="标签:"
                :required="isRequired" :disabled="isDisabled" prop="label">
                    <u--input border="none" disabled disabledColor="#ffffff" placeholder="请选择">
                    </u--input>
                    <u-icon slot="right" name="arrow-right"></u-icon>
@@ -46,11 +48,13 @@
            </view>
            <view class="item">
                <u-form-item class="form-item" labelWidth="100" required label="场所负责人:" prop="username">
                <u-form-item class="form-item" labelWidth="100" :required="isRequired" :disabled="isDisabled"
                 label="场所负责人:" prop="username">
                    <u--input border="none" v-model="form.username" placeholder="请输入">
                    </u--input>
                </u-form-item>
                <u-form-item class="form-item" labelWidth="100" required label="手机号:" prop="phone">
                <u-form-item class="form-item" labelWidth="100" :required="isRequired" :disabled="isDisabled"
                 label="手机号:" prop="phone">
                    <u--input border="none" v-model="form.phone" placeholder="请输入">
                    </u--input>
                </u-form-item>
@@ -163,7 +167,9 @@
        },
        data() {
            return {
                isRequired:false,
                isRequiredPlace:true,
                isDisabled:true,
                showPicker: false,
                pickerLoading: false,
                pickColumns: [],
@@ -360,8 +366,6 @@
        methods: {
            getBuildingDetail(params = {}) {
                getDoorplateAddressDetail(Object.assign(params, {
                    stdId: this.stdId
                })).then(res => {
@@ -375,7 +379,6 @@
                        return e != null || e != ''
                    })
                    this.form.building = arr.join("")
                })
            },
@@ -603,7 +606,7 @@
            .form-item {
                background-color: #ffffff;
                padding: 2rpx 10px;
                border-bottom: 1px solid #eff1f3;
                border-bottom: 0.1px solid #eff1f3;
            }
            .label {