| | |
| | | { |
| | | "path": "views/report", |
| | | "style": { |
| | | "navigationBarTitleText": "报事报修", |
| | | "navigationBarTitleText": "保修报事", |
| | | "enablePullDownRefresh": false, |
| | | "navigationBarBackgroundColor": "#fff", |
| | | "navigationBarTextStyle": "black" |
| | |
| | | <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>
|
| | |
| | | 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);
|
| | | },
|
| | |
| | | }, |
| | | onShow() { |
| | | this.getStatistics() |
| | | this.curSelectSite = uni.getStorageSync('siteInfo') |
| | | this.curSelectSite = uni.getStorageSync('curSelectSite') |
| | | console.log(this.curSelectSite); |
| | | }, |
| | | |
| | |
| | | },
|
| | | onShow() {
|
| | | this.getBuildingList()
|
| | | this.curSelectSite = uni.getStorageSync('siteInfo')
|
| | | this.curSelectSite = uni.getStorageSync('curSelectSite')
|
| | | },
|
| | | methods: {
|
| | | async getBuildingList() {
|
| | |
| | | <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>
|
| | |
| | | import {
|
| | | getDoorplateAddressDetail
|
| | | } from "@/api/doorplateAddress/doorplateAddress";
|
| | | import {
|
| | | getPlaceDetail
|
| | | } from '@/api/place/place.js'
|
| | | export default {
|
| | | components: {
|
| | | lineItem
|
| | |
| | | },
|
| | | 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: "数据请求失败",
|
| | |
| | | })
|
| | | 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] || '未完善'
|
| | | }
|
| | |
| | |
|
| | | 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) {
|
| | |
| | | height: calc(100% - 110rpx);
|
| | | padding-bottom: 20rpx;
|
| | | overflow: auto;
|
| | |
|
| | | .map {
|
| | | width: 100%;
|
| | | height: 240rpx;
|
| | | background-color: #fff;
|
| | | }
|
| | |
|
| | | .box-title {
|
| | | padding: 10px 0;
|
| | |
|
| | |
| | | },
|
| | | onShow() {
|
| | | this.getHouseInfo()
|
| | | this.curSelectSite = uni.getStorageSync('siteInfo')
|
| | | this.curSelectSite = uni.getStorageSync('curSelectSite')
|
| | | },
|
| | |
|
| | | methods: {
|
| | |
| | | {{ 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>
|
| | |
| | | title: '',
|
| | | selectedColor: ''
|
| | | },
|
| | | labelValue: '',
|
| | | labelValue: "",
|
| | | remark: '',
|
| | | // 标记
|
| | | number: 0
|
| | | |
| | | }
|
| | | },
|
| | | created() {
|
| | |
| | | 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
|
| | | }
|
| | |
| | | <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>
|
| | |
| | | <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>
|
| | |
| | | },
|
| | | {
|
| | | label: "采集人",
|
| | | name: 'createUser',
|
| | | name: 'createUserName',
|
| | | value: "未完善"
|
| | | },
|
| | | {
|
| | |
| | | onLoad(option) {
|
| | | const {
|
| | | houseCode,
|
| | | id
|
| | | id,
|
| | | type
|
| | | } = option
|
| | | this.houseCode = houseCode
|
| | | this.currentId = id
|
| | |
| | | this.getBuildingDetail()
|
| | | }
|
| | |
|
| | |
|
| | | if (!!type || type != void 0) {
|
| | | uni.setNavigationBarTitle({
|
| | | title: '详情'
|
| | | })
|
| | | }
|
| | | },
|
| | | onShow() {
|
| | | this.getLabel()
|
| | |
| | |
|
| | | 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)
|
| | | })
|
| | |
| | | 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)
|
| | | },
|
| | |
|
| | |
| | | }
|
| | | },
|
| | | onShow() { |
| | | this.currentRole = uni.getStorageSync("activeRole") |
| | | this.resetParams()
|
| | | this.getSiteList() |
| | | this.currentRole = uni.getStorageSync("activeRole")
|
| | | },
|
| | | onReachBottom() {
|
| | | this.pagingParams.current++
|
| | |
| | | placeName: this.keyWord,
|
| | | confirmFlag: this.tabStatus
|
| | | }
|
| | | const { roleName } = this.currentRole
|
| | | const res = await getSiteMaintenanceData({
|
| | | ...params,
|
| | | roleName,
|
| | | ...this.pagingParams
|
| | | }) |
| | | console.log(res);
|
| | |
| | | size: 10
|
| | | },
|
| | | tabsType: 1,
|
| | | status: 'nomore'
|
| | | status: 'nomore', |
| | | currentRole: {}
|
| | | }
|
| | | },
|
| | | onShow() { |
| | | this.recordsData = []
|
| | | this.currentRole = uni.getStorageSync('activeRole')
|
| | | this.getrRecordList()
|
| | | },
|
| | | onReachBottom() {
|
| | |
| | | methods: {
|
| | | async getrRecordList(placeName = this.iptContext, isPerfect = this.tabsType) {
|
| | | this.status = 'loadmore'
|
| | | const { roleName } = this.currentRole |
| | | console.log(this.currentRole);
|
| | | const {
|
| | | code,
|
| | | data: {
|
| | |
| | | } = await getLocationRecord({
|
| | | placeName,
|
| | | isPerfect,
|
| | | roleName,
|
| | | ...this.pagingParams
|
| | | })
|
| | | if (code !== 200) {
|
| | |
| | | })
|
| | | return
|
| | | }
|
| | | let url = "/subPackage/workbench/views/cscj?id=" + id
|
| | | let url = "/subPackage/workbench/views/cscj?id=" + id + "&type=1"
|
| | | this.$u.func.globalNavigator(url)
|
| | | }
|
| | | }
|
| | |
| | | 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: '数据请求失败', |
| | |
| | | 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); |
| | |
| | | }) |
| | | },
|
| | | 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: '提交失败', |
| | |
| | | }
|
| | | },
|
| | | onLoad() {
|
| | | this.currentRole = uni.getStorageSync('activeRole')
|
| | | this.getStatistics()
|
| | | },
|
| | | onShow() {
|
| | |
| | | });
|
| | | },
|
| | | getStatistics(auditStatus = '') {
|
| | | let params = {}
|
| | | const { roleName } = this.currentRole
|
| | | let params = { |
| | | roleName |
| | | }
|
| | | if (auditStatus) {
|
| | | params = {
|
| | | auditStatus
|
| | | auditStatus, |
| | | roleName
|
| | | }
|
| | | }
|
| | | getStatistics(params).then(res => {
|
| | |
| | | },
|
| | | async getRentalHouseInfo(params = {}) {
|
| | | this.loadingStatus = 'loadmore'
|
| | | const { roleName } = this.currentRole
|
| | | const {
|
| | | code,
|
| | | data: {
|
| | |
| | | } = await getRentalHouseContent({
|
| | | tenantName: this.keyword,
|
| | | ...this.pagingParams,
|
| | | roleName,
|
| | | ...this.selectParams
|
| | | })
|
| | | if (code !== 200) {
|
| | |
| | | }
|
| | | },
|
| | | onShow() { |
| | | this.currentRole = uni.getStorageSync("activeRole") |
| | | this.reportList = []
|
| | | this.getPageList()
|
| | | },
|
| | |
| | | realName: this.keyWord,
|
| | | confirmFlag: this.tabStatus
|
| | | }
|
| | | const { roleName } = this.currentRole
|
| | | const res = await getPage({
|
| | | ...params,
|
| | | roleName,
|
| | | ...this.pagingParams
|
| | | })
|
| | | const {
|