wjt
2024-06-22 2b8de2aa1416cb61d2bea4004c738a36c29738fb
Merge branch 'master' of http://218.28.192.34:9999/r/sqys/sqys_xcx
3个文件已添加
4个文件已修改
198 ■■■■ 已修改文件
api/qiye.js 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
qiye/components/bottom.vue 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
qiye/my/my.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
qiye/qiyeIndex/qiyeIndex.vue 56 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
qiye/record/record.vue 96 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/i07.jpg 补丁 | 查看 | 原始文档 | blame | 历史
static/qiye/q05.png 补丁 | 查看 | 原始文档 | blame | 历史
api/qiye.js
New file
@@ -0,0 +1,16 @@
import Vue from 'vue';
import { config } from '@/common/config.js'
const http = uni.$u.http
// 企业详情
export function company(id){
    return http.get('/system/company/'+id, { custom: { loading: true }});
}
// 执法记录列表
export function companyList(data){
    return http.get('/enforce/order/companyList', {params: data}, { custom: { loading: true }});
}
// 执法记录详情
export function order(id){
    return http.get('/enforce/order/'+id, { custom: { loading: true }});
}
qiye/components/bottom.vue
@@ -33,7 +33,25 @@
        methods: {
            
            activeClick(number) {
                if(this.active == number){
                    return
                }
                this.active = number
                if(number==0){
                    uni.navigateTo({
                        url: `/qiye/qiyeIndex/qiyeIndex`
                    })
                }
                if(number==1){
                    uni.navigateTo({
                        url: `/qiye/record/record`
                    })
                }
                if(number==2){
                    uni.navigateTo({
                        url: `/qiye/my/my`
                    })
                }
                this.$emit('update:activeNumber', number)
            }
        }
qiye/my/my.vue
@@ -8,16 +8,16 @@
                <image src="/static/policy/header.png" mode="widthFix"></image>
                <view class="user-info">
                    <view class="user-name">
                        <view class="inckname">刘小雅</view>
                        <view class="inckname">{{msg.companyUser}}</view>
                    </view>
                    <view class="dept-name">
                        环保局--第一部门
                        {{msg.companyName}}
                    </view>
                </view>
            </view>
            <view class="show-phone-number">
                <text class="label">联系电话</text>
                <text>168****4164</text>
                <text>{{msg.companyPhone}}</text>
            </view>
            <view class="wbox">
                <view class="item">
@@ -27,7 +27,7 @@
                    </view>
                    <u-icon name="arrow-right"></u-icon>
                </view>
                <view class="item">
                <view class="item" @click="goChangePhone()">
                    <view class="set-flex">
                        <image src="/static/policy/phone.png" mode="widthFix"></image>
                        <text class="change">修改手机号</text>
@@ -68,14 +68,14 @@
        data() {
            return {
                activeNumber: 2,
                msg:uni.getStorageSync("qiyedata"),
                src: '/static/policy/header.png'
            }
        },
        methods: {
            goChangePhone() {
                uni.navigateTo({
                    url: '/policy/changePhone/changePhone'
                    url: '/policy/changePhone/changePhone?code=02'
                })
            }
        }
qiye/qiyeIndex/qiyeIndex.vue
@@ -5,21 +5,18 @@
            <img src="/static/hqzc.png" class="img" alt="" />
            <view class="line"></view>
            <view class="font">
                <p>海关总署贸易持续发展2024年立法...</p>
                <p>国家医疗保障局办公室关于发布管理... </p>
                <p v-for="(item,index) in list1" :key="index">{{item.docTitle}}</p>
            </view>
            <img src="/static/i06.png" class="more" alt="" />
            <img src="/static/i06.png" class="more" @click="more1()" alt="" />
        </view>
        <view class="wbox">
            <view class="name">
                瑞韵达贸易有限公司
                {{msg.companyUser}}
            </view>
            <view class="imgbox">
                <image :src="uqrcodeImage" mode="widthFix" class="qrcode-1"></image>
            </view>
        <!--     <view class="">
            </view> -->
            <img src="/static/qiye/q05.png" style="width: 100%;height: 201rpx;" alt="" />
            
        </view>
@@ -32,16 +29,24 @@
<script>
    import tabsCom from '@/qiye/components/bottom.vue'
    import {  docList } from '@/api/index.js'
    import {  company } from '@/api/qiye.js'
    
    export default {
        components: {
            tabsCom
        },
        onShow() {
            this.getInfo()
        },
        data() {
            return {
                activeNumber: 0,
                companyCode: 'code===',
                uqrcodeImage: ''
                uqrcodeImage: '',
                list1:[],
                companyId:33,//todo
                msg:{}
            }
        },
        onReady() {
@@ -52,7 +57,37 @@
            });
        },
        methods: {
            more1(){
                uni.navigateTo({
                    url: `/pages/hqzc/list`
                })
            },
            getInfo() {
                docList({pageNum:1,pageSize:2}).then(val =>{
                    let data = val.data.rows
                    for(let i = 0;i<data.length;i++){
                        if(data[i].docTitle.length>17){
                            data[i].docTitle = data[i].docTitle.slice(0, 17) + '...'
                        }
                    }
                    this.list1 = data
                })
                company(this.companyId).then(val => {
                    this.msg = val.data.data
                    console.log(this.msg)
                    this.companyCode = this.msg.companyCode
                    uni.setStorageSync('qiyedata', this.msg)
                    // this.msg.createTime = this.msg.createTime.slice(0, 10)
                    // this.msg.docContent = decodeURIComponent(this.msg.docContent)
                    // console.log(this.msg.docContent)
                    // getDicts('doc_type').then(val => {
                    //     console.log(this.msg.docType)
                    //     const value = val.data.data.find(item => item.dictValue == this.msg.docType)
                    //     this.type = value.dictLabel
                    // })
                })
            },
        }
    }
</script>
@@ -97,7 +132,8 @@
            font-size: 26rpx;
            color: #4A4E60;
            margin-right: 50rpx;
            width: 450rpx;
            text-align: center;
        }
    }
    .hide-canvas{
qiye/record/record.vue
@@ -1,31 +1,43 @@
<template>
    <view>
        <u-sticky bgColor="white">
            <u-tabs :list="list1" @click="click" :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">
                        待评价
                    </view>
                    <template v-if="item.orderStatus==2">
                        <view class="r color2">
                            未执法
                        </view>
                    </template>
                    <template v-if="item.isEva==0">
                        <view class="r color2">
                            待评价
                        </view>
                    </template>
                    <template v-if="item.isEva==1">
                        <view class="r color1">
                            已评价
                        </view>
                    </template>
                </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(item.orderId)">
                        去查看
                    </view>
                </view>
            </view>
        </view>
        <view class="item">
        <!-- <view class="item">
            <img src="/static/i05.png" class="img" alt="" />
            <view class="right">
                <view class="name">
@@ -68,7 +80,7 @@
                    </view>
                </view>
            </view>
        </view>
        </view> -->
        <view style="height: 150rpx;"></view>
        <tabsCom :activeNumber.sync="activeNumber"></tabsCom>
@@ -77,6 +89,7 @@
<script>
    import tabsCom from '@/qiye/components/bottom.vue'
    import { companyList } from '@/api/qiye.js'
    export default {
        components: {
@@ -85,7 +98,7 @@
        data() {
            return {
                activeNumber: 1,
                list1: [{
                list: [{
                    name: '全部',
                }, {
                    name: '待评价',
@@ -93,12 +106,59 @@
                    name: '未执法',
                }, {
                    name: '已评价',
                }]
                }],
                current: 0,
                list1:[],
                queryParams: {
                    pageNum: 1,
                    pageSize: 10,
                    companyId:'',
                },
                total: 1,
            }
        },
        onShow() {
            this.getList()
        },
        onReachBottom() {
            if(this.list1.length == this.total) {
                return
            }
            this.queryParams.pageNum++
            this.getList()
        },
        methods: {
            click() {
        methods: {
            chakan(id){
                uni.navigateTo({
                    url: `/qiye/record/details?id=${id}`
                })
            },
            getList() {
                let data = uni.getStorageSync("qiyedata")
                this.queryParams.companyId = data.companyId
                companyList({...this.queryParams}).then(val => {
                    // console.log(val.data)
                    this.total = val.data.total
                    this.list1 = [...this.list1,...val.data.rows]
                })
            },
            click(i) {
                this.list1 = []
                this.queryParams.pageNum = 1
                console.log(i.index)
                // if(i.index==0){
                // }
                if(i.index==1){
                    this.queryParams.isEva = 0
                }
                if(i.index==2){
                    this.queryParams.orderStatus = 2
                }
                if(i.index==3){
                    this.queryParams.isEva = 1
                }
                this.getList()
            }
        }
    }
@@ -164,13 +224,15 @@
    }
    .color1{
        color: #FE7B32;
        //cheng
    }
    .color2{
        color: #EB4746;
        
        //hong
    }
    .color3{
        color: #3EB47A;
        //lv
    }
</style>
static/i07.jpg
static/qiye/q05.png