Lou
2023-11-11 03eaa258e9f6ae5aceb9e26989cd1025d35de147
merge
16 files modified
147 ■■■■ changed files
pages.json 2 ●●● patch | view | raw | blame | history
pages/home/index.vue 1 ●●●● patch | view | raw | blame | history
subPackage/bs/views/addRepair.vue 2 ●●● patch | view | raw | blame | history
subPackage/bs/views/repair.vue 2 ●●● patch | view | raw | blame | history
subPackage/house/family/index.vue 2 ●●● patch | view | raw | blame | history
subPackage/house/houseNumber/index.vue 42 ●●●● patch | view | raw | blame | history
subPackage/house/list/index.vue 2 ●●● patch | view | raw | blame | history
subPackage/house/roomControl/index.vue 7 ●●●● patch | view | raw | blame | history
subPackage/house/roomDetails/index.vue 2 ●●● patch | view | raw | blame | history
subPackage/workbench/components/formItem.vue 2 ●●● patch | view | raw | blame | history
subPackage/workbench/views/cscj.vue 20 ●●●●● patch | view | raw | blame | history
subPackage/workbench/views/cshw.vue 4 ●●● patch | view | raw | blame | history
subPackage/workbench/views/csjl.vue 9 ●●●● patch | view | raw | blame | history
subPackage/workbench/views/editExamine.vue 36 ●●●● patch | view | raw | blame | history
subPackage/workbench/views/rental.vue 11 ●●●● patch | view | raw | blame | history
subPackage/workbench/views/report.vue 3 ●●●●● patch | view | raw | blame | history
pages.json
@@ -246,7 +246,7 @@
                {
                    "path": "views/report",
                    "style": {
                        "navigationBarTitleText": "报事报修",
                        "navigationBarTitleText": "保修报事",
                        "enablePullDownRefresh": false,
                        "navigationBarBackgroundColor": "#fff",
                        "navigationBarTextStyle": "black"
pages/home/index.vue
@@ -117,7 +117,6 @@
                        <text class="f-32 fw">我的任务</text>
                    </view>
                </view>
                <view class="row flex j-c-s-b">
                <view class="row-item flex_base"   @click="navigatorPage(`/subPackage/workbench/views/audit?type=1`)">
                        <u-icon name="/static/icon/nav-07.png" width="90rpx" height="90rpx"></u-icon>
subPackage/bs/views/addRepair.vue
@@ -86,7 +86,7 @@
            this.info.type = option.type
        },
        onShow() {
            this.curSelectSite = uni.getStorageSync('siteInfo')
            this.curSelectSite = uni.getStorageSync('curSelectSite')
            this.info.addressCode = this.curSelectSite.id
            console.log(this.curSelectSite);
        },
subPackage/bs/views/repair.vue
@@ -114,7 +114,7 @@
        },
        onShow() {
            this.getStatistics()
            this.curSelectSite = uni.getStorageSync('siteInfo')
            this.curSelectSite = uni.getStorageSync('curSelectSite')
            console.log(this.curSelectSite);
        },
subPackage/house/family/index.vue
@@ -117,7 +117,7 @@
        },
        onShow() {
            this.getBuildingList()
            this.curSelectSite = uni.getStorageSync('siteInfo')
            this.curSelectSite = uni.getStorageSync('curSelectSite')
        },
        methods: {
            async getBuildingList() {
subPackage/house/houseNumber/index.vue
@@ -21,7 +21,8 @@
            <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>
@@ -56,6 +57,9 @@
    import {
        getDoorplateAddressDetail
    } from "@/api/doorplateAddress/doorplateAddress";
    import {
        getPlaceDetail
    } from '@/api/place/place.js'
    export default {
        components: {
            lineItem
@@ -191,12 +195,19 @@
        },
        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: "数据请求失败",
@@ -205,17 +216,29 @@
                    })
                    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] || '未完善'
                    }
@@ -223,16 +246,19 @@
                
                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 => {
                    if (!data[item.name]) {
                        item.value = data.doorplateAddressEntity[item.name] || '未完善'
                    } else {
                    item.value = data[item.name] || '未完善'
                    }
                })
            },
            imgPreview(value) {
@@ -259,11 +285,13 @@
            height: calc(100% - 110rpx);
            padding-bottom: 20rpx;
            overflow: auto;
            .map {
                width: 100%;
                height: 240rpx;
                background-color: #fff;
            }
            .box-title {
                padding: 10px 0;
subPackage/house/list/index.vue
@@ -62,7 +62,7 @@
        },
        onShow() {
            this.getHouseInfo()
            this.curSelectSite = uni.getStorageSync('siteInfo')
            this.curSelectSite = uni.getStorageSync('curSelectSite')
        },
        methods: {
subPackage/house/roomControl/index.vue
@@ -57,7 +57,7 @@
                    {{ labelModelInfo.title }}
                </view>
                <u-radio-group class="mt-40" v-model="labelValue" placement="row">
                <u-radio-group v-model="" class="mt-40" v-model="labelValue" placement="row">
                    <u-radio :customStyle="{marginBottom: '8px'}" v-for="(item, index) in labelList" :key="index"
                        :label="item.name" :labelColor="item.color" :name="item.name" :activeColor="item.color" @change="radioChange(item)">
                    </u-radio>
@@ -178,10 +178,11 @@
                    title: '',
                    selectedColor: ''
                },
                labelValue: '',
                labelValue: "",
                remark: '',
                // 标记
                number: 0
            }
        },
        created() {
@@ -307,8 +308,10 @@
                this.currentLabelInfo = item
                // 遍历标签集合
                this.labelList.forEach(e => {
                    console.log(e.color,item.color);
                    if (e.color == item.color) {
                        this.labelValue = e.name
                        console.log(e);
                        this.remark = item.remark
                        this.number = 1
                    }
subPackage/house/roomDetails/index.vue
@@ -62,7 +62,7 @@
                        <view class="l flex">
                            <u-icon name="/static/icon/selected.png" size="16"></u-icon>
                            <!-- u-icon name="photo"></u-icon> -->
                            <view class="owner-img-box">主</view>
                            <view class="owner-img-box" v-if="item.relationship == 1">主</view>
                        </view>
                        <view class="r">
                            <u-icon name="/static/icon/delete.png" size="16" @click="removeHouseholdSub(item)"></u-icon>
subPackage/workbench/components/formItem.vue
@@ -7,7 +7,7 @@
            <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>
subPackage/workbench/views/cscj.vue
@@ -265,7 +265,7 @@
                        },
                        {
                            label: "采集人",
                            name: 'createUser',
                            name: 'createUserName',
                            value: "未完善"
                        },
                        {
@@ -367,7 +367,8 @@
        onLoad(option) {
            const {
                houseCode,
                id
                id,
                type
            } = option
            this.houseCode = houseCode
            this.currentId = id
@@ -375,7 +376,11 @@
                this.getBuildingDetail()
            }
            if (!!type || type != void 0) {
                uni.setNavigationBarTitle({
                    title: '详情'
                })
            }
        },
        onShow() {
            this.getLabel()
@@ -502,6 +507,7 @@
                    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)
                    })
@@ -544,16 +550,16 @@
                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)
            },
subPackage/workbench/views/cshw.vue
@@ -71,9 +71,9 @@
            }
        },
        onShow() {
            this.currentRole = uni.getStorageSync("activeRole")
            this.resetParams()
            this.getSiteList()
            this.currentRole = uni.getStorageSync("activeRole")
        },
        onReachBottom() {
            this.pagingParams.current++
@@ -86,8 +86,10 @@
                    placeName: this.keyWord,
                    confirmFlag: this.tabStatus
                }
                const { roleName } = this.currentRole
                const res = await getSiteMaintenanceData({
                    ...params,
                    roleName,
                    ...this.pagingParams
                })
                console.log(res);
subPackage/workbench/views/csjl.vue
@@ -61,11 +61,13 @@
                    size: 10
                },
                tabsType: 1,
                status: 'nomore'
                status: 'nomore',
                currentRole: {}
            }
        },
        onShow() {
            this.recordsData = []
            this.currentRole = uni.getStorageSync('activeRole')
            this.getrRecordList()
        },
        onReachBottom() {
@@ -75,6 +77,8 @@
        methods: {
            async getrRecordList(placeName = this.iptContext, isPerfect = this.tabsType) {
                this.status = 'loadmore'
                const { roleName } = this.currentRole
                console.log(this.currentRole);
                const {
                    code,
                    data: {
@@ -83,6 +87,7 @@
                } = await getLocationRecord({
                    placeName,
                    isPerfect,
                    roleName,
                    ...this.pagingParams
                })
                if (code !== 200) {
@@ -126,7 +131,7 @@
                    })
                    return
                }
                let url = "/subPackage/workbench/views/cscj?id=" + id
                let url = "/subPackage/workbench/views/cscj?id=" + id + "&type=1"
                this.$u.func.globalNavigator(url)
            }
        }
subPackage/workbench/views/editExamine.vue
@@ -99,13 +99,24 @@
        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: '数据请求失败',
@@ -118,9 +129,18 @@
                        this.form[key] = data[key]
                        if(key === 'imageUrls' || key === 'planImageUrls') {
                            this.form[key] = []
                            !!data[key] && this.form[key].push()
                            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])
                            }
                        }
                    })
                    console.log(this.form);
                    this.personNum = placePractitioner.length
                    this.$nextTick(() => {
                        console.log(placePractitioner);
@@ -131,10 +151,14 @@
                })
            },
            updatePlaceExt(data) {
                data['imageUrls'] = JSON.stringify(data['imageUrls'])
                data['planImageUrls'] = JSON.stringify(data['planImageUrls'])
                updatePlaceExtData({...data}).then(res => {
                    const { code } = res
                data['imageUrls'] = data['imageUrls'].join('、')
                data['planImageUrls'] = data['planImageUrls'].join('、')
                updatePlaceExtData({
                    ...data
                }).then(res => {
                    const {
                        code
                    } = res
                    if (code !== 200) {
                        uni.showToast({
                            title: '提交失败',
subPackage/workbench/views/rental.vue
@@ -159,6 +159,7 @@
            }
        },
        onLoad() {
            this.currentRole = uni.getStorageSync('activeRole')
            this.getStatistics()
        },
        onShow() {
@@ -194,10 +195,14 @@
                });
            },
            getStatistics(auditStatus = '') {
                let params = {}
                const { roleName } = this.currentRole
                let params = {
                    roleName
                }
                if (auditStatus) {
                    params = {
                        auditStatus
                        auditStatus,
                        roleName
                    }
                }
                getStatistics(params).then(res => {
@@ -213,6 +218,7 @@
            },
            async getRentalHouseInfo(params = {}) {
                this.loadingStatus = 'loadmore'
                const { roleName } = this.currentRole
                const {
                    code,
                    data: {
@@ -221,6 +227,7 @@
                } = await getRentalHouseContent({
                    tenantName: this.keyword,
                    ...this.pagingParams,
                    roleName,
                    ...this.selectParams
                })
                if (code !== 200) {
subPackage/workbench/views/report.vue
@@ -93,6 +93,7 @@
            }
        },
        onShow() {
            this.currentRole = uni.getStorageSync("activeRole")
            this.reportList = []
            this.getPageList()
        },
@@ -107,8 +108,10 @@
                    realName: this.keyWord,
                    confirmFlag: this.tabStatus
                }
                const { roleName } = this.currentRole
                const res = await getPage({
                    ...params,
                    roleName,
                    ...this.pagingParams
                })
                const {