| | |
| | | return http.request({ |
| | | url: '/blade-system/user/update', |
| | | method: 'POST', |
| | | data: data |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | |
| | | }) |
| | | } |
| | | |
| | | // 获取人员类型 |
| | | export const getPeopleType = (params) => { |
| | | return http.request({ |
| | | url: '/blade-system/user/getPeopleType', |
| | | method: 'GET', |
| | | params: params |
| | | }) |
| | | } |
| | | |
| | | |
| | | |
| | | export default { |
| | | token, |
| | |
| | | // 版本号 |
| | | version: '2.0.0', |
| | | // 开发环境接口Url |
| | | devUrl: 'http://z4042833u6.wicp.vip', |
| | | // devUrl: 'http://z4042833u6.wicp.vip', |
| | | // devUrl: 'http://192.168.0.106:9528', |
| | | // devUrl: 'https://srgdjczzxtpt.com:2080/api', |
| | | // devUrl:'https://kt39592615.goho.co', |
| | | devUrl: 'https://kt39592615.goho.co', |
| | | minioBaseUrl: "https://srgdjczzxtpt.com:2080/gminio/jczz/", |
| | | // minioBaseUrl:"http://192.168.0.103:9528/", |
| | | // 数据中台接口url |
| | |
| | | <u-input v-model="info.phone" border="none" placeholder="请输入" placeholderClass="f-28 c-99"
|
| | | inputAlign="right"></u-input>
|
| | | </u-form-item>
|
| | | <u-form-item label="事发位置" prop="address" :borderBottom="false" >
|
| | | <u-form-item label="事发位置" prop="address" :borderBottom="false">
|
| | | <view class="address-row flex">
|
| | | <view class="address-content f-28" v-if="info.address">
|
| | | {{info.address}}
|
| | |
| | | <view class="address-content f-28 c-99" v-if="!info.address">
|
| | | 请选择地址
|
| | | </view>
|
| | | <view class="location-btn c-main f-24" @click="getLocation()">
|
| | | <view class="location-btn c-main f-24" @click="getLocation()">
|
| | | 获取地址
|
| | | </view>
|
| | | </view>
|
| | |
| | | phone: "",
|
| | | remark: "",
|
| | | type: -1,
|
| | | address:"",
|
| | | lat:"",
|
| | | lng:""
|
| | | address: "",
|
| | | lat: "",
|
| | | lng: ""
|
| | | },
|
| | | rules: {
|
| | | 'realName': {
|
| | |
| | | },
|
| | | onShow() {
|
| | | this.curSelectSite = uni.getStorageSync('siteInfo')
|
| | | this.info.addressCode = this.curSelectSite.id |
| | | this.info.addressCode = this.curSelectSite.houseCode
|
| | | console.log(this.curSelectSite);
|
| | | },
|
| | | methods: {
|
| | | |
| | | getLocation(){
|
| | |
|
| | | getLocation() {
|
| | | uni.chooseLocation({
|
| | | success:(res)=>{
|
| | | this.$set(this.info,"address",res.address);
|
| | | this.$set(this.info,"lat",res.latitude);
|
| | | this.$set(this.info,"lng",res.longitude)
|
| | | success: (res) => {
|
| | | this.$set(this.info, "address", res.address);
|
| | | this.$set(this.info, "lat", res.latitude);
|
| | | this.$set(this.info, "lng", res.longitude)
|
| | | }
|
| | | })
|
| | | },
|
| | | |
| | | |
| | |
|
| | |
|
| | | sumitInfo() {
|
| | | const that = this
|
| | | this.$refs.form.validate().then(valid => {
|
| | |
| | | color: #fff;
|
| | | margin-top: 50rpx;
|
| | | }
|
| | | .address-row{
|
| | | flex:1;
|
| | |
|
| | | .address-row {
|
| | | flex: 1;
|
| | | justify-content: flex-end;
|
| | | align-items:center;
|
| | | align-items: center;
|
| | | }
|
| | | .address-content{
|
| | | width:calc(100% - 116rpx - 20rpx);
|
| | | margin-right:20rpx;
|
| | |
|
| | | .address-content {
|
| | | width: calc(100% - 116rpx - 20rpx);
|
| | | margin-right: 20rpx;
|
| | | }
|
| | | .location-btn{
|
| | | width:116rpx;
|
| | | height:46rpx;
|
| | |
|
| | | .location-btn {
|
| | | width: 116rpx;
|
| | | height: 46rpx;
|
| | | line-height: 46rpx;
|
| | | border-radius: 4rpx;
|
| | | border:1px solid currentColor;
|
| | | padding:0;
|
| | | border: 1px solid currentColor;
|
| | | padding: 0;
|
| | | background-color: #fff;
|
| | | text-align: center;
|
| | | }
|
| | |
| | | <view class="item">
|
| | | <box-title title="门牌号信息"></box-title>
|
| | | <line-item :list="houseNumberData"></line-item>
|
| | | <view class="cell flex j-c-s-b a-i-c" @click="navToEventDetail()" v-if="eventType">
|
| | | <view class="cell flex j-c-s-b a-i-c" @click="navToEventDetail()" v-if="eventType">
|
| | | <view class="cell-title">历史事件</view>
|
| | | <view class="flex a-i-c">
|
| | | <view class="cell-value mr-20">{{eventType ==1?"邻里纠纷":"噪音扰民"}}</view>
|
| | |
| | | </view>
|
| | | </template>
|
| | | </line-item>
|
| | | <view class="cell flex j-c-s-b a-i-c" @click="navTo(1)">
|
| | | <view class="cell-title">历史事件</view>
|
| | | <view class="flex a-i-c">
|
| | | <view class="cell-value mr-20"></view>
|
| | | <u-icon name="arrow-right"></u-icon>
|
| | | </view>
|
| | | </view>
|
| | | </view>
|
| | | <view class="item">
|
| | | <view class="box-title">
|
| | |
| | | </view>
|
| | | <line-item :list="policeData"></line-item>
|
| | | <line-item :list="firemanData"></line-item>
|
| | | <view class="cell flex j-c-s-b a-i-c" @click="navTo(2)">
|
| | | <view class="cell-title">历史事件</view>
|
| | | <view class="flex a-i-c">
|
| | | <view class="cell-value mr-20"></view>
|
| | | <u-icon name="arrow-right"></u-icon>
|
| | | </view>
|
| | | </view>
|
| | | </view>
|
| | | </view> |
| | | </view>
|
| | | <u-toast ref="uToast"></u-toast>
|
| | | <view class="btn-box">
|
| | | <view class="sl-box" @click="csjlClick">
|
| | |
| | | getPlaceDetail
|
| | | } from '@/api/place/place.js'
|
| | | import boxTitle from '../components/boxTitle/index2.vue'
|
| | | import { minioBaseUrl } from "../../../common/setting";
|
| | | import {
|
| | | minioBaseUrl
|
| | | } from "../../../common/setting";
|
| | | export default {
|
| | | components: {
|
| | | lineItem,
|
| | |
| | | value: '未完善'
|
| | | }
|
| | | ],
|
| | | collectData: [{
|
| | | title: '场所照片',
|
| | | name: 'imageUrls',
|
| | | isUseSlot: true,
|
| | | value: '未完善'
|
| | | },
|
| | | {
|
| | | title: '场所负责人',
|
| | | name: 'username',
|
| | | value: '未完善'
|
| | | },
|
| | | {
|
| | | title: '采集人',
|
| | | name: 'createUser',
|
| | | value: '未完善'
|
| | | },
|
| | | {
|
| | | title: '采集时间',
|
| | | name: 'createTime',
|
| | | value: '未完善'
|
| | | },
|
| | | collectData: [
|
| | | // {
|
| | | // title: '场所照片',
|
| | | // name: 'imageUrls',
|
| | | // isUseSlot: true,
|
| | | // value: '未完善'
|
| | | // // },
|
| | | // {
|
| | | // title: '场所负责人',
|
| | | // name: 'username',
|
| | | // value: '未完善'
|
| | | // },
|
| | | // {
|
| | | // title: '采集人',
|
| | | // name: 'createUser',
|
| | | // value: '未完善'
|
| | | // },
|
| | | // {
|
| | | // title: '采集时间',
|
| | | // name: 'createTime',
|
| | | // value: '未完善'
|
| | | // },
|
| | | // {
|
| | | // title: '历史事件',
|
| | | // value: '未完善'
|
| | |
| | | value: '未完善'
|
| | | }
|
| | | ],
|
| | | firemanData: [{
|
| | | title: '消防照片',
|
| | | value: '未完善'
|
| | | },
|
| | | {
|
| | | title: '采集人',
|
| | | value: '未完善'
|
| | | },
|
| | | {
|
| | | title: '消防责任人',
|
| | | value: '未完善'
|
| | | },
|
| | | {
|
| | | title: '采集时间',
|
| | | value: '未完善'
|
| | | },
|
| | | {
|
| | | title: '历史事件',
|
| | | value: '未完善'
|
| | | }
|
| | | firemanData: [
|
| | | // {
|
| | | // title: '消防照片',
|
| | | // value: '未完善'
|
| | | // },
|
| | | // {
|
| | | // title: '采集人',
|
| | | // value: '未完善'
|
| | | // },
|
| | | // {
|
| | | // title: '消防责任人',
|
| | | // value: '未完善'
|
| | | // },
|
| | | // {
|
| | | // title: '采集时间',
|
| | | // value: '未完善'
|
| | | // },
|
| | | // {
|
| | | // title: '历史事件',
|
| | | // value: '未完善'
|
| | | // }
|
| | | ],
|
| | | id: 1,
|
| | | lngLat: {
|
| | |
| | | lng: ''
|
| | | },
|
| | | marker: [],
|
| | | addressType:2,
|
| | | placeId:"",
|
| | | eventType:0 ,//历史事件类型 1邻里纠纷 2噪音扰民 |
| | | neiName:"" ,//社区名称
|
| | | placeName:"" //场所名称
|
| | | addressType: 2,
|
| | | placeId: "",
|
| | | eventType: 0, //历史事件类型 1邻里纠纷 2噪音扰民 |
| | | neiName: "", //社区名称
|
| | | placeName: "" //场所名称
|
| | | }
|
| | | },
|
| | | onLoad(option) {
|
| | | console.log("oload=>",option)
|
| | | console.log("oload=>", option)
|
| | | this.stdId = option.stdId
|
| | | if(option.addressType){
|
| | | if (option.addressType) {
|
| | | this.addressType = option.addressType
|
| | | }
|
| | | if(this.addressType ==4){
|
| | | if (this.addressType == 4) {
|
| | | this.placeId = this.stdId
|
| | | }
|
| | | if(option.eventType){
|
| | | if (option.eventType) {
|
| | | this.eventType = option.eventType;
|
| | | }
|
| | | this.getBuildingDetail()
|
| | | },
|
| | | |
| | | watch:{
|
| | | id(newVal,oldVal){
|
| | |
|
| | | watch: {
|
| | | id(newVal, oldVal) {
|
| | | console.log(newVal)
|
| | | }
|
| | | },
|
| | | |
| | |
|
| | | methods: {
|
| | | async getBuildingDetail() {
|
| | | // this.$nextTick(() => {
|
| | |
| | | code,
|
| | | data
|
| | | } = await getPlaceDetail({
|
| | | houseCode: this.addressType==4?"":this.stdId,
|
| | | houseCode: this.addressType == 4 ? "" : this.stdId,
|
| | | addressType: this.addressType,
|
| | | id: this.placeId
|
| | | })
|
| | |
| | | })
|
| | | return
|
| | | }
|
| | | if(data){
|
| | | if (data) {
|
| | | this.placeName = data.placeName;
|
| | | const doorplateAddressEntity = data?.doorplateAddressEntity || {}
|
| | | const placePoiLabelVOList = data?.placePoiLabelVOList || {}
|
| | | |
| | |
|
| | | this.neiName = doorplateAddressEntity.neiName || '未完善'
|
| | | |
| | |
|
| | | this.houseNumberData.forEach(item => {
|
| | | if (!data[item.name]) {
|
| | | item.value = data.doorplateAddressEntity[item.name] || '未完善'
|
| | | } else {
|
| | | item.value = data[item.name] || '未完善'
|
| | | }
|
| | | |
| | |
|
| | | if (item.name == 'label' && data.label) {
|
| | | |
| | |
|
| | | let labelArr = []
|
| | | placePoiLabelVOList.forEach(item => {
|
| | | labelArr.push(item.labelName)
|
| | | })
|
| | | |
| | |
|
| | | item.value = labelArr.join('、')
|
| | | }
|
| | | })
|
| | | |
| | | if(data.grid){
|
| | |
|
| | | if (data.grid) {
|
| | | this.gridData.forEach(item => {
|
| | | if (!data.grid[item.name]) {
|
| | | item.value = data.grid[item.name] || '未完善'
|
| | |
| | | }
|
| | | })
|
| | | }
|
| | | |
| | |
|
| | | this.collectData.forEach(item => {
|
| | | if (!data.doorplateAddressEntity[item.name]) {
|
| | | item.value = data.doorplateAddressEntity[item.name] || '未完善'
|
| | | } else {
|
| | | item.value = data.doorplateAddressEntity[item.name] || '未完善'
|
| | | if(item.name == "imageUrls" ){
|
| | | if (item.name == "imageUrls") {
|
| | | item.value = minioBaseUrl + data.doorplateAddressEntity[item.name] || '未完善'
|
| | | }
|
| | | }
|
| | | })
|
| | | |
| | |
|
| | | this.policeData.forEach(item => {
|
| | | if (!data.doorplateAddressEntity[item.name]) {
|
| | | item.value = data.doorplateAddressEntity[item.name] || '未完善'
|
| | |
| | | item.value = data.doorplateAddressEntity[item.name] || '未完善'
|
| | | }
|
| | | })
|
| | | |
| | |
|
| | | const {
|
| | | lat,
|
| | | lng
|
| | |
| | | },
|
| | | cscjClick() {
|
| | | // this.$u.func.globalNavigator('/subPackage/workbench/views/cscj?stdId=' + this.stdId)
|
| | | this.$u.func.globalNavigator(`/subPackage/workbench/views/cscj?houseCode=${this.stdId}&addressType=${this.addressType}`)
|
| | | this.$u.func.globalNavigator(
|
| | | `/subPackage/workbench/views/cscj?houseCode=${this.stdId}&addressType=${this.addressType}`)
|
| | | },
|
| | | csjlClick() {
|
| | | let url = `/subPackage/workbench/views/csjl?stdId=${this.stdId}&name=${this.placeName}&from=place`
|
| | | // this.$u.func.globalNavigator('/subPackage/workbench/views/csjl?stdId=' + this.stdId)
|
| | | this.$u.func.globalNavigator(url)
|
| | | },
|
| | | |
| | | navToEventDetail(){
|
| | |
|
| | | navToEventDetail() {
|
| | | this.$u.func.globalNavigator(`eventDetail?type=${this.eventType}`)
|
| | | },
|
| | |
|
| | | navTo(type) {
|
| | | if (type == 1) {
|
| | | this.$u.func.globalNavigator(`/subPackage/workbench/views/report?code=${this.stdId}`)
|
| | | } else {
|
| | | this.$u.func.globalNavigator(`/subPackage/workbench/views/audit?code=${this.stdId}`)
|
| | | }
|
| | | }
|
| | | },
|
| | | }
|
| | |
| | | background-color: green;
|
| | | border-radius: 0rpx 10rpx 10rpx 0rpx;
|
| | | }
|
| | | |
| | | |
| | |
|
| | |
|
| | | .cell {
|
| | | padding: 25rpx 20rpx;
|
| | | font-size: 32rpx;
|
| | | background-color: #fff;
|
| | | border-bottom: 1rpx solid #f6f6f6;
|
| | |
|
| | | .cell-title {
|
| | | flex-shrink: 0;
|
| | | width: 200rpx;
|
| | | }
|
| | |
|
| | | .cell-value {
|
| | | color: #989898;
|
| | | word-wrap: break-word;
|
| | |
| | | navTo() { |
| | | let data = JSON.parse(JSON.stringify(this.form)); |
| | | this.$u.func.globalNavigator( |
| | | `/subPackage/bs/views/bsList?data=${JSON.stringify(data)}`) |
| | | `householdLabel?data=${JSON.stringify(data)}`) |
| | | } |
| | | } |
| | | } |
| | |
| | | frequency: '', |
| | | reportType: "", |
| | | selectDate: [], |
| | | houseCode: "" |
| | | } |
| | | }, |
| | | |
| | |
| | | this.tabIndex = 1; |
| | | this.currentStatus = 1; |
| | | } |
| | | if (option.code) { |
| | | this.houseCode = option.code; |
| | | } |
| | | this.getList() |
| | | |
| | | |
| | | }, |
| | | onReachBottom() { |
| | | this.currentPage++ |
| | |
| | | frequency: this.frequency, |
| | | } |
| | | if (this.selectDate.length) { |
| | | params.startTime = this.selectDate[0], |
| | | params.endTime = this.selectDate[1] |
| | | params.startTime = this.selectDate[0] |
| | | params.endTime = this.selectDate[1] |
| | | } |
| | | if (this.houseCode) { |
| | | params.houseCode = this.houseCode; |
| | | } |
| | | |
| | | if (this.reportType) { |
| | |
| | | <u-input border="none" v-model="categoryValue" disabled disabledColor="#ffffff"
|
| | | placeholder="请选择">
|
| | | </u-input>
|
| | | <u-icon v-if="!currentId" slot="right" name="arrow-right"></u-icon>
|
| | | <u-icon slot="right" name="arrow-right"></u-icon>
|
| | | </u-form-item>
|
| | | <!-- <view v-if="showLabelList.length" class="label" style="border-bottom:1px solid eff1f3;">
|
| | | <view v-for="(item,index) in showLabelList" :key="index" class="activeLabel">
|
| | |
| | | this.form.location = address
|
| | | this.form.lat = latitude;
|
| | | this.form.lng = longitude;
|
| | | this.jwd = `${Number(longitude).toFixed(6)},${Number(data.latitude).toFixed(6)}`
|
| | | this.jwd = `${Number(longitude).toFixed(6)},${Number(latitude).toFixed(6)}`
|
| | | }
|
| | | })
|
| | | },
|
| | |
| | | <view class="tab">
|
| | | <u-tabs :list="tabList" :scrollable="false" :current="tabIndex" @click="changeTab"
|
| | | :inactiveStyle="{color:'#999999'}" :activeStyle="{color:'#017BFC'}">
|
| | | |
| | |
|
| | | <view class="tab-filter flex j-c-c a-i-c" slot="right" @click="showDateModal">
|
| | | <text class="f-28">时间筛选</text>
|
| | | <u-icon name="arrow-down"></u-icon>
|
| | | </view>
|
| | | |
| | | </u-tabs>
|
| | |
|
| | | </u-tabs>
|
| | | <view class="search">
|
| | | <u-search placeholder="请输入需要查询信息的姓名" v-model="keyWord" :clearabled="true" :showAction="true"
|
| | | :animation="true" @search="searchConfirm" @clear="clearConfirm"></u-search>
|
| | |
| | | <view class="list-item bgc-ff mb-20" v-for="item in reportList" :key="item.id" @click="pushPage(item)">
|
| | | <view class="item-title flex a-i-c j-c-s-b mb-20">
|
| | | <text class="f-32 fw">{{ findObjValue(item.type, typeList, 'type').name }}</text>
|
| | | <u-tag class="u_tag" size="mini" plain plainFill :text="findObjValue(item.confirmFlag, tabList, 'status').name" :type="findObjValue(item.confirmFlag, tabList, 'status').type"></u-tag> |
| | | <u-tag class="u_tag" size="mini" plain plainFill
|
| | | :text="findObjValue(item.confirmFlag, tabList, 'status').name"
|
| | | :type="findObjValue(item.confirmFlag, tabList, 'status').type"></u-tag>
|
| | | </view>
|
| | | <view class="item-row flex a-i-c j-c-s-b">
|
| | | <text class="f-28">姓名</text>
|
| | |
| | | <view class="item-row flex a-i-c j-c-s-b">
|
| | | <text class="f-28">手机</text>
|
| | | <text class="f-28 c-66">{{ item.phone }}</text>
|
| | | </view> |
| | | <view class="item-row flex a-i-c j-c-s-b"> |
| | | <text class="f-28">事发地</text> |
| | | <text class="address f-28 c-66">{{ item.address || "" }}</text> |
| | | </view>
|
| | | <view class="item-row flex a-i-c j-c-s-b">
|
| | | <text class="f-28">事发地</text>
|
| | | <text class="address f-28 c-66">{{ item.address || "" }}</text>
|
| | | </view>
|
| | | <view class="item-row flex a-i-c j-c-s-b f-28">
|
| | | <text>时间</text>
|
| | |
| | | </view>
|
| | | </view>
|
| | | <u-loadmore :status="loadingStatus" loadmoreText="开始加载" loadingText="数据加载中" nomoreText="没有更多了" line />
|
| | | <date-range-modal ref="dateRane" @comfirm="handleComfirmDate" @rest="handleRestDate" />
|
| | | <date-range-modal ref="dateRane" @comfirm="handleComfirmDate" @rest="handleRestDate" />
|
| | | </view>
|
| | | </template>
|
| | |
|
| | |
| | | } from '@/api/task/taskReportForRepairs.js'
|
| | | import dateRangeModal from '@/components/dateRangeModal/modal.vue';
|
| | | export default {
|
| | | components:{
|
| | | components: {
|
| | | dateRangeModal
|
| | | },
|
| | | data() {
|
| | |
| | | size: 10
|
| | | },
|
| | | tabList: [
|
| | | |
| | |
|
| | | {
|
| | | name: "全部",
|
| | | status: "",
|
| | | },
|
| | | name: "全部",
|
| | | status: "",
|
| | | },
|
| | | {
|
| | | name: "待处理",
|
| | | status: 1, |
| | | status: 1,
|
| | | type: 'warning'
|
| | | },
|
| | | {
|
| | | name: "处理中",
|
| | | status: 2, |
| | | status: 2,
|
| | | type: 'success'
|
| | | },
|
| | | {
|
| | | name: "已处理",
|
| | | status: 3, |
| | | status: 3,
|
| | | type: 'error'
|
| | | },
|
| | | ], |
| | | typeList: [ |
| | | { |
| | | name: "公共维修", |
| | | type: 1 |
| | | }, |
| | | { |
| | | name: "居家维修", |
| | | type: 2 |
| | | }, |
| | | { |
| | | name: "矛盾纠纷", |
| | | type: 3 |
| | | }, |
| | | { |
| | | name: "投诉举报", |
| | | type: 4 |
| | | }, |
| | | { |
| | | name: "企业商户上报", |
| | | type: 5 |
| | | } |
| | | ],
|
| | | typeList: [{
|
| | | name: "公共维修",
|
| | | type: 1
|
| | | },
|
| | | {
|
| | | name: "居家维修",
|
| | | type: 2
|
| | | },
|
| | | {
|
| | | name: "矛盾纠纷",
|
| | | type: 3
|
| | | },
|
| | | {
|
| | | name: "投诉举报",
|
| | | type: 4
|
| | | },
|
| | | {
|
| | | name: "企业商户上报",
|
| | | type: 5
|
| | | }
|
| | | ],
|
| | | tabIndex: 0,
|
| | | tabStatus:"",
|
| | | tabStatus: "",
|
| | | keyWord: '',
|
| | | loadingStatus: 'nomore',
|
| | | selectDate:[]
|
| | | selectDate: [],
|
| | | houseCode: ""
|
| | | }
|
| | | },
|
| | | |
| | |
|
| | | onLoad(option) {
|
| | | if(option.from){
|
| | | if (option.from) {
|
| | | this.tabIndex = 1;
|
| | | this.tabStatus = 1;
|
| | | }
|
| | | if (option.code) {
|
| | | this.houseCode = option.code;
|
| | | }
|
| | | },
|
| | | |
| | | onShow() { |
| | | this.currentRole = uni.getStorageSync("activeRole") |
| | |
|
| | | onShow() {
|
| | | this.currentRole = uni.getStorageSync("activeRole")
|
| | | this.reportList = []
|
| | | this.getPageList()
|
| | | },
|
| | |
| | | realName: this.keyWord,
|
| | | confirmFlag: this.tabStatus
|
| | | }
|
| | | if(this.selectDate.length){
|
| | | params.startTime = this.selectDate[0],
|
| | | params.endTime = this.selectDate[1]
|
| | | } |
| | | const { roleName } = this.currentRole
|
| | | if (this.selectDate.length) {
|
| | | params.startTime = this.selectDate[0],
|
| | | params.endTime = this.selectDate[1]
|
| | | }
|
| | | if (this.houseCode) {
|
| | | params.addressCode = this.houseCode;
|
| | | }
|
| | | const {
|
| | | roleName
|
| | | } = this.currentRole
|
| | | const res = await getPage({
|
| | | ...params, |
| | | ...params,
|
| | | roleName,
|
| | | ...this.pagingParams
|
| | | })
|
| | |
| | | } = res
|
| | | if (code !== 200) {
|
| | | uni.showToast({
|
| | | title: '数据请求失败', |
| | | title: '数据请求失败',
|
| | | icon: 'error'
|
| | | })
|
| | | return
|
| | |
| | | this.getPageList()
|
| | | },
|
| | | clearConfirm() {
|
| | | this.keyWord = '' |
| | | this.keyWord = ''
|
| | | this.searchConfirm()
|
| | | },
|
| | | resetParams() {
|
| | |
| | | })
|
| | | return res
|
| | | },
|
| | | pushPage(item) { |
| | | pushPage(item) {
|
| | | const data = JSON.stringify(item)
|
| | | // this.$u.func.globalNavigator('/subPackage/workbench/views/reportAudit?id='+id) |
| | | this.$u.func.globalNavigator('/subPackage/workbench/views/reportAudit?data='+data)
|
| | | // this.$u.func.globalNavigator('/subPackage/workbench/views/reportAudit?id='+id)
|
| | | this.$u.func.globalNavigator('/subPackage/workbench/views/reportAudit?data=' + data)
|
| | | },
|
| | | |
| | | showDateModal(){
|
| | |
|
| | | showDateModal() {
|
| | | this.$refs.dateRane.open();
|
| | | },
|
| | | |
| | | handleRestDate(){
|
| | |
|
| | | handleRestDate() {
|
| | | this.selectDate = [];
|
| | | this.resetParams();
|
| | | this.getPageList()
|
| | | },
|
| | | handleComfirmDate(val){
|
| | | handleComfirmDate(val) {
|
| | | this.selectDate = val;
|
| | | this.resetParams();
|
| | | this.getPageList()
|
| | |
| | |
|
| | | .hander {
|
| | | background-color: #fff;
|
| | | .tab {
|
| | |
|
| | | .tab {
|
| | | width: 100%;
|
| | | }
|
| | |
|
| | | .tab-filter {
|
| | | padding: 0 20rpx;
|
| | | }
|
| | |
|
| | | .search {
|
| | | padding: 20rpx 70rpx;
|
| | | }
|
| | |
| | |
|
| | | .item-row {
|
| | | padding: 10rpx 0;
|
| | |
|
| | | .address {
|
| | | width: 75%;
|
| | | text-align: right;
|
| | |
| | | <view class="line"></view>
|
| | | <view class="text">基本信息</view>
|
| | | </view> -->
|
| | | <caption-row title="基本信息" />
|
| | | <caption-row title="基本信息" />
|
| | | <view class="basic-data">
|
| | | <lineItem :dataInfo="basicData"></lineItem>
|
| | | </view>
|
| | | </view>
|
| | | <view class="pic-box" v-if="imgUrls.length">
|
| | | <view class="pic-box" v-if="imgUrls.length">
|
| | | <!-- <view class="title-box">
|
| | | <view class="line"></view>
|
| | | <view class="text">事件照片</view>
|
| | | </view> -->
|
| | | <caption-row title="事件照片" />
|
| | | <caption-row title="事件照片" />
|
| | | <view class="pic-data">
|
| | | <view class="mr-20 " v-for="(i,k) in imgUrls" :key="k">
|
| | | <u-image class="img" :src="i" width="80" height="80" @click="previewImg(i)"></u-image>
|
| | | <view class="mr-20 " v-for="(i,k) in imgUrls" :key="k">
|
| | | <u-image class="img" :src="i" width="80" height="80" @click="previewImg(i)"></u-image>
|
| | | </view>
|
| | | </view>
|
| | | </view>
|
| | |
| | | <view class="line"></view>
|
| | | <view class="text">审核信息</view>
|
| | | </view> -->
|
| | | <caption-row title="审核信息" />
|
| | | <caption-row title="审核信息" />
|
| | | <view class="audit-form">
|
| | | <u-form labelWidth="70" :model="form" class="form" ref="form">
|
| | | <u-form-item label="事件状态" @click="showPicker" class="form-item">
|
| | | <!-- <u-form-item label="事件状态" @click="showPicker" class="form-item">
|
| | | <u--input v-model="form.confirmFlag" disabled disabledColor="#ffffff" placeholder="请选择审核状态"
|
| | | border="none" :placeholder="defaultPlaceholder" inputAlign="right" color="#333"></u--input>
|
| | | <u-icon slot="right" name="arrow-right" v-show="from == 'list'"></u-icon>
|
| | | </u-form-item>
|
| | | <u-form-item label="处理情况" class="form-item" v-if="from == 'list' || (from == 'record' && form.confirmNotion)">
|
| | | <u--input v-model="form.confirmNotion" :border="from == 'list'?'surround':'none'" inputAlign="right" color="#333" :disabled="from == 'record'?true:false"></u--input>
|
| | | </u-form-item> -->
|
| | | <u-form-item label="处理情况" class="form-item"
|
| | | v-if="from == 'list' || (from == 'record' && form.confirmNotion)">
|
| | | <u--input v-model="form.confirmNotion" :border="from == 'list'?'surround':'none'"
|
| | | inputAlign="right" color="#333" :disabled="from == 'record'?true:false"></u--input>
|
| | | </u-form-item>
|
| | | </u-form>
|
| | | </view>
|
| | |
| | | <!-- <view class="bottom" v-if="from == 'list'">
|
| | | <u-button type="primary" @click="submit">提交处理</u-button>
|
| | | </view> -->
|
| | | |
| | | <footer-btn @click="submit" v-if="from == 'list'"></footer-btn>
|
| | | |
| | | <u-picker :defaultIndex="[defaultColums]" :closeOnClickOverlay="true" @close="isPickerShow = false" :show="isPickerShow" ref="uPicker"
|
| | | :columns="columns" keyName="name" @cancel="isPickerShow = false" @confirm="handleConfirm"></u-picker>
|
| | |
|
| | | <!-- <footer-btn @click="submit" v-if="from == 'list'"></footer-btn> -->
|
| | |
|
| | |
|
| | | <view class="footer flex a-i-c j-c-s-b" v-if="from == 'list'">
|
| | | <button class="footer-btn" @click="submit()">处置</button>
|
| | | <button class="footer-btn">转办</button>
|
| | | </view>
|
| | |
|
| | | <u-picker :defaultIndex="[defaultColums]" :closeOnClickOverlay="true" @close="isPickerShow = false"
|
| | | :show="isPickerShow" ref="uPicker" :columns="columns" keyName="name" @cancel="isPickerShow = false"
|
| | | @confirm="handleConfirm"></u-picker>
|
| | | </view>
|
| | | </template>
|
| | |
|
| | |
| | | import {
|
| | | checkReportForRepairsData
|
| | | } from '@/api/task/taskReportForRepairs.js'
|
| | | import { minioBaseUrl } from "@/common/setting.js"
|
| | | import {
|
| | | getPeopleType
|
| | | } from '@/api/user.js'
|
| | | import {
|
| | | minioBaseUrl
|
| | | } from "@/common/setting.js"
|
| | | export default {
|
| | | components: {
|
| | | captionRow,
|
| | |
| | | data() {
|
| | | return {
|
| | | basicData: [{
|
| | | label: '事发地', |
| | | label: '事发地',
|
| | | name: 'address',
|
| | | value: '未完善'
|
| | | },
|
| | | {
|
| | | label: '姓名', |
| | | label: '姓名',
|
| | | name: 'realName',
|
| | | value: '未完善'
|
| | | },
|
| | | {
|
| | | label: '手机号码', |
| | | label: '手机号码',
|
| | | name: 'phone',
|
| | | value: '未完善'
|
| | | },
|
| | | {
|
| | | label: '事件类型', |
| | | label: '事件类型',
|
| | | name: 'type',
|
| | | value: '未完善'
|
| | | },
|
| | | {
|
| | | label: '事件描述', |
| | | label: '事件描述',
|
| | | name: 'remark',
|
| | | value: '未完善'
|
| | | }
|
| | |
| | | form: {
|
| | | confirmFlag: '',
|
| | | confirmNotion: ''
|
| | | }, |
| | | defaultPlaceholder: "", |
| | | defaultColums: 0, |
| | | },
|
| | | defaultPlaceholder: "",
|
| | | defaultColums: 0,
|
| | | imgUrls: [],
|
| | | currentId: '',
|
| | | defaultData: {},
|
| | |
| | | },
|
| | | ]
|
| | | ],
|
| | | from:"list"
|
| | | from: "list",
|
| | | peopleList: [
|
| | | [{
|
| | | name: "网格员",
|
| | | type: 1
|
| | | },
|
| | | {
|
| | | name: "物业人员",
|
| | | type: 2
|
| | | }
|
| | | ],
|
| | |
|
| | | ]
|
| | |
|
| | | }
|
| | | },
|
| | | onLoad(option) {
|
| | | // const { id } = option
|
| | | // this.currentId = id
|
| | | if(option.from){
|
| | | if (option.from) {
|
| | | this.from = option.from;
|
| | | }
|
| | | const {
|
| | |
| | | this.setDefaultValue()
|
| | | },
|
| | | methods: {
|
| | | |
| | | showPicker(){
|
| | | if(this.from == "list"){
|
| | |
|
| | | getPeopleList() {
|
| | | getPeopleType().then(res => {
|
| | |
|
| | | })
|
| | | },
|
| | |
|
| | | showPicker() {
|
| | | if (this.from == "list") {
|
| | | this.isPickerShow = true;
|
| | | }
|
| | | },
|
| | | |
| | | |
| | | setImgUrl(url){
|
| | |
|
| | |
|
| | | setImgUrl(url) {
|
| | | return `${minioBaseUrl}${url}`
|
| | | },
|
| | | |
| | |
|
| | | async checkReportForRepairs() {
|
| | | const {
|
| | | confirmFlag,
|
| | | confirmNotion
|
| | | } = this.form
|
| | | const res = await checkReportForRepairsData({
|
| | | // id: this.currentId, |
| | | // id: this.currentId,
|
| | | id: this.defaultData.id,
|
| | | confirmFlag: this.findObjValue(confirmFlag, this.columns[0], 'name').status,
|
| | | // confirmFlag: this.findObjValue(confirmFlag, this.columns[0], 'name').status,
|
| | | confirmFlag: 3,
|
| | | confirmNotion
|
| | | })
|
| | |
|
| | |
| | | })
|
| | |
|
| | | },
|
| | | setDefaultValue() { |
| | | console.log(this.defaultData); |
| | | this.basicData.forEach(item => { |
| | | item.value = this.defaultData[item.name] || '未完善' |
| | | if (item.name === 'type') { |
| | | item.value = this.findObjValue(item.value, this.typeList, 'type').name || '未完善' |
| | | } |
| | | setDefaultValue() {
|
| | | console.log(this.defaultData);
|
| | | this.basicData.forEach(item => {
|
| | | item.value = this.defaultData[item.name] || '未完善'
|
| | | if (item.name === 'type') {
|
| | | item.value = this.findObjValue(item.value, this.typeList, 'type').name || '未完善'
|
| | | }
|
| | | })
|
| | | this.imgUrls = this.$setImageUrl(this.defaultData.imageUrls);
|
| | | //if(this.defaultData.imageUrls){
|
| | | // let list = this.defaultData.imageUrls.split(",")
|
| | | // let arr = []
|
| | | // for(let i of list){
|
| | | // arr.push(`${minioBaseUrl}${i}`);
|
| | | // }
|
| | | //} |
| | | |
| | | let columns = this.columns[0] |
| | | this.defaultColums = columns.findIndex(item => item.status == this.defaultData.confirmFlag) |
| | | this.defaultPlaceholder = columns[this.defaultColums].name |
| | | // let list = this.defaultData.imageUrls.split(",")
|
| | | // let arr = []
|
| | | // for(let i of list){
|
| | | // arr.push(`${minioBaseUrl}${i}`);
|
| | | // }
|
| | | //}
|
| | |
|
| | | let columns = this.columns[0]
|
| | | this.defaultColums = columns.findIndex(item => item.status == this.defaultData.confirmFlag)
|
| | | this.defaultPlaceholder = columns[this.defaultColums].name
|
| | | },
|
| | | |
| | |
|
| | | submit() {
|
| | | this.checkReportForRepairs()
|
| | | },
|
| | |
| | | })
|
| | | return res
|
| | | },
|
| | | |
| | | previewImg(url){
|
| | |
|
| | | previewImg(url) {
|
| | | uni.previewImage({
|
| | | urls:this.imgUrls,
|
| | | current:url
|
| | | urls: this.imgUrls,
|
| | | current: url
|
| | | })
|
| | | },
|
| | | |
| | |
|
| | | }
|
| | | }
|
| | | </script>
|
| | |
| | | }
|
| | |
|
| | | .pic-box {
|
| | |
|
| | | // margin-top: 20rpx;
|
| | | .pic-data {
|
| | | padding:0 20rpx;
|
| | | padding: 0 20rpx;
|
| | | display: flex;
|
| | | flex-wrap: wrap;
|
| | | margin-top: 20rpx;
|
| | |
| | | // margin-top: 20rpx;
|
| | |
|
| | | .audit-form {
|
| | | padding:0 20rpx;
|
| | | padding: 0 20rpx;
|
| | |
|
| | | .form {
|
| | | font-size: 30rpx;
|
| | |
|
| | |
| | | border-top: 1rpx solid #f6f6f6;
|
| | | }
|
| | |
|
| | | .title-box { |
| | | display: flex; |
| | | .title-box {
|
| | | display: flex;
|
| | | align-items: center;
|
| | | font-size: 30rpx;
|
| | |
|
| | | .line { |
| | | width: 6rpx; |
| | | height: 30rpx; |
| | | margin-right: 10rpx; |
| | | .line {
|
| | | width: 6rpx;
|
| | | height: 30rpx;
|
| | | margin-right: 10rpx;
|
| | | background-color: #017BFC;
|
| | | }
|
| | |
|
| | |
| | | /deep/ .uni-input-placeholder {
|
| | | font-size: 30rpx;
|
| | | }
|
| | |
|
| | | .footer {
|
| | | width: 100%;
|
| | | padding: 20rpx 30rpx;
|
| | | box-sizing: border-box;
|
| | | position: fixed;
|
| | | bottom: 0;
|
| | | left: 0;
|
| | | background-color: #fff;
|
| | | z-index: 10;
|
| | | padding-bottom: calc(env(safe-area-inset-bottom) + 20rpx);
|
| | | z-index: 999;
|
| | | background-color: #fff;
|
| | | box-shadow: 0rpx 0rpx 10rpx 1rpx rgba(0, 0, 0, 0.1);
|
| | |
|
| | | .footer-btn {
|
| | | width: 300rpx;
|
| | | height: 78rpx;
|
| | | border-radius: 8rpx;
|
| | | font-size: 32rpx;
|
| | | color: #fff;
|
| | | border: none;
|
| | | background: linear-gradient(163deg, #01BDFC 0%, #017BFC 100%);
|
| | | }
|
| | |
|
| | | .footer-btn:after {
|
| | | border: none;
|
| | | }
|
| | |
|
| | | }
|
| | | </style> |