wjt
2024-06-21 93d6a77c5f9a1e8b796db773c36533e6d8f2cf07
执法相关接口对接
1个文件已删除
8个文件已修改
65 ■■■■■ 已修改文件
api/policy.js 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
policy/translate/translate.scss 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
policy/translate/translate.vue 48 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
policy/translateRecord/translateRecord.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/i01.png 补丁 | 查看 | 原始文档 | blame | 历史
static/i02.png 补丁 | 查看 | 原始文档 | blame | 历史
static/i03.png 补丁 | 查看 | 原始文档 | blame | 历史
static/qiye/q05.png 补丁 | 查看 | 原始文档 | blame | 历史
static/qiye/q07.png 补丁 | 查看 | 原始文档 | blame | 历史
api/policy.js
@@ -23,8 +23,12 @@
export function orderDetails(data) {
    return http.get(`/enforce/order/${data.orderId}`, {params: data}, { custom: { loading: true }});
}
// 执法审批
// 执法审批列表
export function checkLogList(data) {
    return http.get(`/enforce/check/log/list`, {params: data}, { custom: { loading: true }});
}
}
// 执法审批 /enforce/check/log/upd
export function checkUpd(data) {
    return http.get(`/enforce/check/log/upd`, {params: data}, { custom: { loading: true }});
}
policy/translate/translate.scss
@@ -1,4 +1,5 @@
.page-box{
    padding-bottom: 140rpx;
    .list{
        margin: 20rpx 32rpx;
        .select-image{
policy/translate/translate.vue
@@ -8,13 +8,13 @@
                </view>
                <view class="list-item">
                    <view class="top-title">
                        <text>24年5月突击检查消防安全</text>
                        <text>{{item.checkReason}}</text>
                        <text class="status">待审批</text>
                    </view>
                    <view class="user-info">
                        <text>王思雨</text>
                        <view class="driver"></view>
                        <text>执法一大队</text>
                        <text>{{item.checkDeptName}}</text>
                    </view>
                    <view class="set-line">
                        <text>执法对象:</text>河南觉醒科技有限公司
@@ -35,6 +35,7 @@
                    </view>
                </view>
            </view>
            <u-empty v-if="!list.length"></u-empty>
        </view>
        <view class="down" v-if="!isJudege">
            <view class="button" @click="goRecord">审批记录</view>
@@ -54,30 +55,44 @@
<script>
    import popupCom from '@/policy/components/popup.vue'
    import { checkLogList,checkUpd } from '@/api/policy.js'
    export default {
        components: {
            popupCom
        },
        data() {
            return {
                list1: [{
                    name: '待上报',
                }, {
                    name: '已上报',
                }],
                isJudege: false,
                list: [
                    {
                        isSelect: false
                    }
                ],
                total: 1,
                queryms: {
                    pageNum: 1,
                    pageSize: 10,
                    checkStatus: 0
                }
            }
        },
        computed: {
            isAllSelect(){
                const value = this.list.every(item => item.isSelect)
                return value
                if(this.list.length) {
                    const value = this.list.every(item => item.isSelect)
                    return value
                } else {
                    return false
                }
            }
        },
        onLoad() {
            this.checkLogList()
        },
        onReachBottom() {
            if(this.total == this.list.length) {
                return
            }
            this.queryms.pageNum++
            this.checkLogList()
        },
        methods: {
            goRecord() {
@@ -121,6 +136,15 @@
            cancelSelect() {
                this.isJudege = false
                this.list.map(item => item.isSelect = false)
            },
            checkLogList() {
                checkLogList(this.queryms).then(val => {
                    val.data.rows.map(item => {
                        item.isSelect = false
                    })
                    this.list = [...this.list,...val.data.rows ]
                    this.total = val.data.total
                })
            }
        }
    }
policy/translateRecord/translateRecord.vue
@@ -45,13 +45,7 @@
    export default {
        data() {
            return {
                list1: [{
                    name: '全部',
                }, {
                    name: '通过',
                }, {
                    name: '拒绝',
                }]
            }
        },
        methods: {
static/i01.png

static/i02.png

static/i03.png

static/qiye/q05.png
Binary files differ
static/qiye/q07.png