| | |
| | | // 发起投诉 |
| | | export function orderComplaint(param) { |
| | | return http.post('/enforce/order/orderComplaint', param, { custom: { loading: true }}); |
| | | } |
| | | |
| | | // 投诉列表 |
| | | export function logList(data){ |
| | | return http.get('/enforce/complaint/log/list', {params: data}, { custom: { loading: true }}); |
| | | } |
| | | |
| | | // 投诉详情 |
| | | export function complaint(id){ |
| | | return http.get('/enforce/complaint/'+id, { custom: { loading: true }}); |
| | | } |
| | |
| | | } |
| | | }, |
| | | onShow() { |
| | | this.list1 = [] |
| | | this.queryParams.pageNum = 1 |
| | | this.getList() |
| | | }, |
| | | onReachBottom() { |
| | |
| | | } |
| | | }, |
| | | onShow() { |
| | | this.list1 = [] |
| | | this.queryParams.pageNum = 1 |
| | | this.getList() |
| | | }, |
| | | onReachBottom() { |
| | |
| | | <u-search placeholder="请输入" @search="search" @blur="search" shape="square" :showAction="false"></u-search> |
| | | </view> |
| | | <view class="border"></view> |
| | | <u-tabs :list="list1" @click="click" :current="current" :scrollable="false" bgColor="white"></u-tabs> |
| | | <u-tabs :list="list" @change="click" :current="current" :scrollable="false" bgColor="white"></u-tabs> |
| | | </u-sticky> |
| | | <view class="item"> |
| | | <view class="item" v-for="(item,index) in list1"> |
| | | <img src="/static/i05.png" class="img" alt="" /> |
| | | <view class="right"> |
| | | <view class="name"> |
| | | <view class="l"> |
| | | 北京尚策互动科技有限公司北京尚策互动科技有限公司北京尚策互动科技有限公司北京尚策互动科技有限公司北京尚策互动科技有限公司 |
| | | {{item.companyName}} |
| | | </view> |
| | | <view class="r color1"> |
| | | <template v-if="item.complaintStatus==0"> |
| | | <view class="r color3"> |
| | | 待响应 |
| | | </view> |
| | | </template> |
| | | <template v-if="item.complaintStatus==1"> |
| | | <view class="r color2"> |
| | | 处理中 |
| | | </view> |
| | | </template> |
| | | <template v-if="item.complaintStatus==2"> |
| | | <view class="r color1"> |
| | | 已办结 |
| | | </view> |
| | | </template> |
| | | <!-- <view class="r color1"> |
| | | 待评价 |
| | | </view> |
| | | </view> --> |
| | | </view> |
| | | <view class="box"> |
| | | <view class="l"> |
| | | <p>执法单位:农业农村局</p> |
| | | <p>执法时间:2024-06-03 12:30:67</p> |
| | | <p>执法单位:{{item.executeDeptName}}</p> |
| | | <p>执法时间:{{item.executeTime}}</p> |
| | | </view> |
| | | <view class="r"> |
| | | <view class="r" @click="chakan()"> |
| | | 去查看 |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="item"> |
| | | <!-- <view class="item"> |
| | | <img src="/static/i05.png" class="img" alt="" /> |
| | | <view class="right"> |
| | | <view class="name"> |
| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | | <view style="height: 50rpx;"></view> |
| | | |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | import { logList } from '@/api/qiye.js' |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | current: 0, |
| | | list1: [{ |
| | | list: [{ |
| | | name: '全部', |
| | | value: '' |
| | | }, { |
| | | name: '待响应', |
| | | value: 1 |
| | | value: 0 |
| | | }, { |
| | | name: '处理中', |
| | | value: 2 |
| | | value: 1 |
| | | }, { |
| | | name: '已办结', |
| | | value: 3 |
| | | value: 2 |
| | | }], |
| | | list1:[], |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | companyId:'', |
| | | }, |
| | | total: 1, |
| | | } |
| | | }, |
| | | onShow() { |
| | | this.list1 = [] |
| | | this.queryParams.pageNum = 1 |
| | | this.getList() |
| | | }, |
| | | onReachBottom() { |
| | | if(this.list1.length == this.total) { |
| | | return |
| | | } |
| | | this.queryParams.pageNum++ |
| | | this.getList() |
| | | }, |
| | | methods: { |
| | | chakan(id){ |
| | | uni.navigateTo({ |
| | | url: `/qiye/complaint/details?id=${id}` |
| | | }) |
| | | }, |
| | | getList() { |
| | | let data = uni.getStorageSync("qiyedata") |
| | | //this.queryParams.companyId = data.companyId |
| | | logList({...this.queryParams}).then(val => { |
| | | // console.log(val.data) |
| | | this.total = val.data.total |
| | | this.list1 = [...this.list1,...val.data.rows] |
| | | }) |
| | | }, |
| | | search(e){ |
| | | // this.queryParams.pageNum =1 |
| | | // this.queryParams.companyName = e |
| | | // this.orderList() |
| | | this.queryParams.pageNum =1 |
| | | this.queryParams.companyName = e |
| | | this.getList() |
| | | }, |
| | | click(i) { |
| | | |
| | | this.list1 = [] |
| | | this.queryParams.pageNum = 1 |
| | | this.queryParams.complaintStatus = this.list[i.index].value |
| | | |
| | | this.getList() |
| | | } |
| | | } |
| | | } |
| | |
| | | <text>{{msg.companyPhone}}</text> |
| | | </view> |
| | | <view class="wbox"> |
| | | <view class="item"> |
| | | <view class="item" @click="tousu()"> |
| | | <view class="set-flex"> |
| | | <image src="/static/qiye/q06.png" mode="widthFix"></image> |
| | | <text class="change">投诉记录</text> |
| | |
| | |
|
| | |
|
| | | </view> -->
|
| | | <view class="logout">
|
| | | <view class="logout" @click="logout()">
|
| | | 退出登录
|
| | | </view> |
| | | <tabsCom :activeNumber.sync="activeNumber"></tabsCom> |
| | |
| | | uni.navigateTo({
|
| | | url: '/policy/changePhone/changePhone?code=02'
|
| | | })
|
| | | }, |
| | | tousu(){ |
| | | uni.navigateTo({ |
| | | url: '/qiye/complaint/complaint' |
| | | }) |
| | | }, |
| | | logout(){ |
| | | uni.showModal({ |
| | | title: '提示', |
| | | content: '确认退出登录?', |
| | | success: res => { |
| | | if(res.confirm) { |
| | | uni.clearStorageSync() |
| | | uni.redirectTo({ |
| | | url: '/pages/index/index' |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | }
|
| | | }
|
| | | }
|
| | |
| | | companyCode: 'code===', |
| | | uqrcodeImage: '', |
| | | list1:[], |
| | | companyId:33,//todo |
| | | companyId:'', |
| | | msg:{} |
| | | } |
| | | }, |
| | |
| | | } |
| | | }); |
| | | }, |
| | | onLoad(options) { |
| | | this.companyId = options.id||33 |
| | | }, |
| | | methods: { |
| | | more1(){ |
| | | uni.navigateTo({ |
| | |
| | | {{item.companyName}} |
| | | </view> |
| | | <template v-if="item.orderStatus==2"> |
| | | <view class="r color2"> |
| | | <view class="r color3"> |
| | | 未执法 |
| | | </view> |
| | | </template> |
| | |
| | | }
|
| | | }, |
| | | onShow() { |
| | | this.list1 = [] |
| | | this.queryParams.pageNum = 1 |
| | | this.getList() |
| | | }, |
| | | onReachBottom() { |