GULIMMO
2023-11-12 617abfbb0287f647b81a0fce1500886b996bed05
场所维护、标签管理更新
3 files modified
37 ■■■■■ changed files
subPackage/house/member/householdLabel.vue 5 ●●●●● patch | view | raw | blame | history
subPackage/house/roomDetails/index.vue 3 ●●●● patch | view | raw | blame | history
subPackage/workbench/views/editExamine.vue 29 ●●●●● patch | view | raw | blame | history
subPackage/house/member/householdLabel.vue
@@ -121,10 +121,11 @@
            const data = JSON.parse(option.data);
            this.householdInfo = data;
            this.houseCode = data.houseCode
            this.getDoorPlateAddressDetail()
            // this.getDoorPlateAddressDetail()
        },
        onShow() {
            this.getLabelList()
            this.getLabelList()
            this.getDoorPlateAddressDetail()
        },
        methods: {
            // 获取房屋详情
subPackage/house/roomDetails/index.vue
@@ -244,7 +244,8 @@
                    houseRentalList,
                    householdList,
                    subAoi
                } = res.data
                } = res.data
                console.log(res.data);
                this.houseCode = addressCode
                this.rentOutList = houseRentalList
                this.ownerInfoList = householdList
subPackage/workbench/views/editExamine.vue
@@ -44,7 +44,7 @@
                    <view class="title">人员信息-#{{ i }}</view>
                    <formItem ref="formItemRef"></formItem>
                </view>
                <view class="add-person">
                    <u-button type="success" plain @click="addPerson">在加一人</u-button>
                </view>
@@ -122,7 +122,8 @@
            //         }
            //     })
            // },
            getCsDetails() {
            getCsDetails() {
                const that = this
                getPlaceDetail({
                    placeId: this.curSelectSite.id
                }).then(detailRes => {
@@ -137,32 +138,34 @@
                        })
                        return
                    }
                    const placePractitioner = data?.placePractitioner || []
                    const placePractitioner = data?.placePractitioner || []
                    console.log(data);
                    Object.keys(this.form).forEach(key => {
                        this.form[key] = data[key]
                        if (key === 'imageUrls' || key === 'planImageUrls') {
                        if (key === 'imageUrls' || key === 'planImageUrls') {
                            data[key] = data[key] || ''
                            this.form[key] = []
                            if (!!data[key]) {
                                data[key] = JSON.parse(data[key])
                                if (Array.isArray(data[key])) {
                                    this.form[key] = data[key]
                                } else {
                                    this.form[key].push(data[key])
                                } else {
                                    this.form[key].push(data[key])
                                }
                            }
                        }
                    })
                    console.log(this.form);
                    this.personNum = placePractitioner.length
                    this.$nextTick(() => {
                    that.personNum = placePractitioner.length
                    // that.$nextTick(() => {
                        console.log(placePractitioner);
                        this.$refs.formItemRef.forEach((item, index) => {
                            item.form = placePractitioner[index]
                        })
                    })
                        setTimeout(() => {
                            const componetns = this.$refs.formItemRef || []
                            componetns.forEach((item, index) => {
                                item.form = placePractitioner[index]
                            })
                        }, 0)
                    // })
                })
            },
            updatePlaceExt(data) {