346149741
2024-06-22 0a2589ad83ffe64d021b009e33f8ff93b27d8536
投诉列表
7个文件已修改
138 ■■■■ 已修改文件
api/qiye.js 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/hqzc/list.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/message/list.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
qiye/complaint/complaint.vue 92 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
qiye/my/my.vue 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
qiye/qiyeIndex/qiyeIndex.vue 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
qiye/record/record.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
api/qiye.js
@@ -21,4 +21,14 @@
// 发起投诉
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 }});
}
pages/hqzc/list.vue
@@ -75,6 +75,8 @@
            }
        },
        onShow() {
            this.list1 = []
            this.queryParams.pageNum = 1
            this.getList()
        },
        onReachBottom() {
pages/message/list.vue
@@ -41,6 +41,8 @@
            }
        },
        onShow() {
            this.list1 = []
            this.queryParams.pageNum = 1
            this.getList()
        },
        onReachBottom() {
qiye/complaint/complaint.vue
@@ -5,31 +5,46 @@
                <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">
@@ -72,37 +87,80 @@
                    </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()
            }
        }
    }
qiye/my/my.vue
@@ -20,7 +20,7 @@
                <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>
@@ -50,7 +50,7 @@
            
        
        </view> -->
        <view class="logout">
        <view class="logout" @click="logout()">
            退出登录
        </view>
        <tabsCom :activeNumber.sync="activeNumber"></tabsCom>
@@ -77,6 +77,25 @@
                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'
                       })
                      }
                     }
                    })
            }
        }
    }
qiye/qiyeIndex/qiyeIndex.vue
@@ -45,7 +45,7 @@
                companyCode: 'code===',
                uqrcodeImage: '',
                list1:[],
                companyId:33,//todo
                companyId:'',
                msg:{}
            }
        },
@@ -56,6 +56,9 @@
              }
            });
        },
        onLoad(options) {
            this.companyId = options.id||33
        },
        methods: {
            more1(){
                uni.navigateTo({
qiye/record/record.vue
@@ -11,7 +11,7 @@
                        {{item.companyName}}
                    </view>
                    <template v-if="item.orderStatus==2">
                        <view class="r color2">
                        <view class="r color3">
                            未执法
                        </view>
                    </template>
@@ -118,6 +118,8 @@
            }
        },
        onShow() {
            this.list1 = []
            this.queryParams.pageNum = 1
            this.getList()
        },
        onReachBottom() {