Lou
2023-11-11 d29d2c6e64ea80a3794e9f69e31f2e35cac097ac
取保候审审核问题修复
9 files modified
1 files deleted
851 ■■■■ changed files
pages/home/index.vue 2 ●●● patch | view | raw | blame | history
subPackage/article/list.vue 23 ●●●●● patch | view | raw | blame | history
subPackage/label/bail.vue 2 ●●● patch | view | raw | blame | history
subPackage/label/bailList.vue 36 ●●●● patch | view | raw | blame | history
subPackage/label/formList.vue 36 ●●●● patch | view | raw | blame | history
subPackage/label/hotel.vue 1 ●●●● patch | view | raw | blame | history
subPackage/label/hotel2.vue 665 ●●●●● patch | view | raw | blame | history
subPackage/label/hotelList.vue 36 ●●●● patch | view | raw | blame | history
subPackage/workbench/views/audit.vue 18 ●●●● patch | view | raw | blame | history
subPackage/workbench/views/bailReportDetail.vue 32 ●●●● patch | view | raw | blame | history
pages/home/index.vue
@@ -158,7 +158,7 @@
                                    <text class="f-24 c-99 ml-10">{{item.countNumber}}</text>
                                </view> -->
                                <view class="flex a-i-c">
                                    <u-icon name="eye-fill" size="22" color="#CECECE"></u-icon>
                                    <u-icon name="eye-fill" size="20" color="#CECECE"></u-icon>
                                    <text class="f-24 c-99 ml-10">{{item.viewNumber}}</text>
                                </view>
                            </view>
subPackage/article/list.vue
@@ -1,10 +1,11 @@
<template>
    <view class="">
        <view class="tab">
            <u-tabs :list="tabList"   :current="tabIndex" keyName="dictValue"   @change="changeTab"  :inactiveStyle="{color:'#999999'}"  :activeStyle="{color:'#017BFC'}"></u-tabs>
            <u-tabs :list="tabList" :current="tabIndex" keyName="dictValue" @change="changeTab"
                :inactiveStyle="{color:'#999999'}" :activeStyle="{color:'#017BFC'}"></u-tabs>
        </view>
    <view v-for="(item,index) in noticeList" :key="index"  class="list">
        <view class="notic-list bgc-ff"   @click="navTo(item.id)">
        <view class="list">
            <view class="notic-list bgc-ff" v-for="(item,index) in noticeList" key="index" @click="navTo(item.id)">
            <view class="f-28 mb-30">
                {{item.title}}
            </view>
@@ -15,15 +16,15 @@
                        <text class="f-24 c-99 ml-10">{{item.countNumber}}</text>
                    </view> -->
                    <view class="flex a-i-c">
                        <u-icon name="eye-fill" size="22" color="#CECECE"></u-icon>
                            <u-icon name="eye-fill" size="20" color="#CECECE"></u-icon>
                        <text class="f-24 c-99 ml-10">{{item.viewNumber}}</text>
                    </view>
                </view>
                <text class="f-24 c-99">{{item.createTime}}</text>
            </view>
        </view>
    </view>
    <u-loadmore :status="loadingStatus" loadmoreText="开始加载" loadingText="数据加载中" nomoreText="没有更多了" line />
        </view>
    </view>
</template>
@@ -67,8 +68,13 @@
                    parentId:'1722966265111248897'
                }).then(res=>{
                    console.log(res)
                    this.tabList = res.data;
                    this.tabId = res.data[0].dictKey;
                    let data = res.data;
                    data.unshift({
                        dictKey: "",
                        dictValue: "全部"
                    })
                    this.tabList = data;
                    // this.tabId = data[0].dictKey;
                    this.getNoticeList()
                })
            },
@@ -109,6 +115,7 @@
    page{
        background-color:#f5f5f5;
    }
    .tab{
        width:100%;
        height:88rpx;
@@ -126,9 +133,11 @@
        z-index: 999;
        
    }
    .list{
        margin-top:108rpx;
    }
    .notic-list {
        padding: 30rpx;
        border-bottom: 1px solid #f5f5f5;
subPackage/label/bail.vue
@@ -42,7 +42,7 @@
            </view>
        </u-form>
        <button class="submit-btn" @click="sumitInfo">提交</button>
        <button class="list-btn" @click="navigatorPage">我上报的事件</button>
        <button class="list-btn mb-20" @click="navigatorPage">我上报的事件</button>
         <u-datetime-picker ref="datetimePicker" :show="showSelectDate" v-model="applyTime" mode="datetime"
             :formatter="formatter" @confirm="confirmDate"  @cancel="showSelectDate = false"></u-datetime-picker>
    </view>
subPackage/label/bailList.vue
@@ -10,35 +10,52 @@
                     </view>
                     <view class="item-row flex a-i-c j-c-s-b">
                         <text class="f-28">时间</text>
                         <text class="f-28 c-66">{{i.createTime}}</text>
                    <text class="f-28 c-66">{{i.applyTime}}</text>
                     </view>
                 </view>
             </view>    
        <u-loadmore :status="loadingStatus" loadmoreText="开始加载" loadingText="数据加载中" nomoreText="没有更多了" line />
    </view>
</template>
<script>
    import {getBailReportingList} from "@/api/reporting/reporting.js"
    import {
        getBailReportingList
    } from "@/api/reporting/reporting.js"
    export default {
        data(){
            return {
                list:[]
                list: [],
                currentPage: 1,
                loadingStatus: 'nomore',
            }
        },
        
        onLoad(){
            this.getList()
        },
        onReachBottom() {
            this.currentPage++
            this.getPageList()
        },
        
        methods:{
            getList(){
                getBailReportingList({
                    checkUserId:uni.getStorageSync("userInfo").user_id,
                    page:1,
                    size:20
                    page: this.currentPage,
                    size: 10
                }).then(res=>{
                    console.log(res)
                    this.list = res.data.records;
                    if (res.code != 200) {
                        uni.showToast({
                            title: '数据请求失败',
                            icon: 'error'
                        })
                        return
                    }
                    let records = res.data.records;
                    this.list = [...this.list, ...records]
                    this.loadingStatus = 'nomore'
                })
            },
            
@@ -56,18 +73,23 @@
    page{
        background-color:#F5F5F5;
    }
    .list{
        margin:20rpx 30rpx 0;
    }
    .list-item{
        padding:0 30rpx 20rpx;
        border-radius: 8rpx;
        .item-title{
            padding:30rpx 0;
            border-bottom:1px solid #F5F5F5;
        }
        .item-row{
            padding:10rpx 0;
            .address{
                width:65%;
            }
subPackage/label/formList.vue
@@ -12,36 +12,53 @@
                     </view>
                     <view class="item-row flex a-i-c j-c-s-b">
                         <text class="f-28">时间</text>
                         <text class="f-28 c-66">{{i.createTime}}</text>
                    <text class="f-28 c-66">{{i.applyTime}}</text>
                     </view>
                 </view>
             </view>    
        <u-loadmore :status="loadingStatus" loadmoreText="开始加载" loadingText="数据加载中" nomoreText="没有更多了" line />
    </view>
</template>
<script>
    import {getLabelReportingList} from "@/api/reporting/reporting.js"
    import {
        getLabelReportingList
    } from "@/api/reporting/reporting.js"
    export default {
        data(){
            return {
                list:[]
                list: [],
                currentPage: 1,
                loadingStatus: 'nomore',
            }
        },
        
        onLoad(option){
            this.getList(option.type)
        },
        onReachBottom() {
            this.currentPage++
            this.getList()
        },
        
        methods:{
            getList(type){
                getLabelReportingList({
                    userId:uni.getStorageSync("userInfo").user_id,
                    page:1,
                    size:20,
                    page: this.currentPage,
                    size: 10,
                    eventType:type
                }).then(res=>{
                    console.log(res)
                    this.list = res.data.records;
                    if (res.code != 200) {
                        uni.showToast({
                            title: '数据请求失败',
                            icon: 'error'
                        })
                        return
                    }
                    let records = res.data.records;
                    this.list = [...this.list, ...records]
                    this.loadingStatus = 'nomore'
                })
            },
            navTo(id){
@@ -57,18 +74,23 @@
    page{
        background-color:#F5F5F5;
    }
    .list{
        margin:20rpx 30rpx 0;
    }
    .list-item{
        padding:0 30rpx 20rpx;
        border-radius: 8rpx;
        .item-title{
            padding:30rpx 0;
            border-bottom:1px solid #F5F5F5;
        }
        .item-row{
            padding:10rpx 0;
            .address{
                width:65%;
            }
subPackage/label/hotel.vue
@@ -488,6 +488,7 @@
        font-size: 32rpx;
        color: #fff;
        margin-top: 50rpx;
        margin-bottom:20rpx;
    }
    .mb-20 {
subPackage/label/hotel2.vue
File was deleted
subPackage/label/hotelList.vue
@@ -10,23 +10,32 @@
                     </view>
                     <view class="item-row flex a-i-c j-c-s-b">
                         <text class="f-28">时间</text>
                         <text class="f-28 c-66">{{i.createTime}}</text>
                    <text class="f-28 c-66">{{i.applyTime}}</text>
                     </view>
                 </view>
             </view>    
        <u-loadmore :status="loadingStatus" loadmoreText="开始加载" loadingText="数据加载中" nomoreText="没有更多了" line />
    </view>
</template>
<script>
    import {getHotelReportingList} from "@/api/reporting/reporting.js"
    import {
        getHotelReportingList
    } from "@/api/reporting/reporting.js"
    export default {
        data(){
            return {
                list:[]
                list: [],
                currentPage: 1,
                loadingStatus: 'nomore',
            }
        },
        
        onLoad(){
            this.getList()
        },
        onReachBottom() {
            this.currentPage++
            this.getList()
        },
        
@@ -34,11 +43,19 @@
            getList(){
                getHotelReportingList({
                    checkUserId:uni.getStorageSync("userInfo").user_id,
                    page:1,
                    size:20
                    page: this.currentPage,
                    size: 10
                }).then(res=>{
                    console.log(res)
                    this.list = res.data.records;
                    if (res.code != 200) {
                        uni.showToast({
                            title: '数据请求失败',
                            icon: 'error'
                        })
                        return
                    }
                    let records = res.data.records;
                    this.list = [...this.list, ...records]
                    this.loadingStatus = 'nomore'
                })
            },
            navTo(id){
@@ -54,18 +71,23 @@
    page{
        background-color:#F5F5F5;
    }
    .list{
        margin:20rpx 30rpx 0;
    }
    .list-item{
        padding:0 30rpx 20rpx;
        border-radius: 8rpx;
        .item-title{
            padding:30rpx 0;
            border-bottom:1px solid #F5F5F5;
        }
        .item-row{
            padding:10rpx 0;
            .address{
                width:65%;
            }
subPackage/workbench/views/audit.vue
@@ -1,8 +1,8 @@
<template>
    <view>
        <view class="tab">
            <u-tabs :list="tabList"  :current="tabIndex"  @click="changeTab"  :inactiveStyle="{color:'#999999'}"  :activeStyle="{color:'#017BFC'}"></u-tabs>
            <u-tabs :list="tabList" :current="tabIndex" @click="changeTab" :inactiveStyle="{color:'#999999'}"
                :activeStyle="{color:'#017BFC'}"></u-tabs>
        </view>
        <view class="list">
            <view class="list-item bgc-ff mb-20"  v-for="(i,k) in list"  :key="k"    @click="navTo(i.name,i.id)">
@@ -27,12 +27,13 @@
</template>
<script>
    import { getAuditReportingList } from "@/api/reporting/reporting"
    import {
        getAuditReportingList
    } from "@/api/reporting/reporting"
    export default {
        data(){
            return {
                tabList:[
                    {
                tabList: [{
                    name:"待审核",
                    status:1
                },
@@ -104,6 +105,7 @@
    page{
        background-color:#F5F5F5;
    }
    .tab{
        width:100%;
        height:88rpx;
@@ -121,21 +123,27 @@
        z-index: 999;
        
    }
    .tab /deep/.u-tabs__wrapper__nav__item{
        flex:1;
    }
    .list{
        margin:118rpx 30rpx 0;
    }
    .list-item{
        padding:0 30rpx 20rpx;
        border-radius: 8rpx;
        .item-title{
            padding:30rpx 0;
            border-bottom:1px solid #F5F5F5;
        }
        .item-row{
            padding:10rpx 0;
            .address{
                width:65%;
            }
subPackage/workbench/views/bailReportDetail.vue
@@ -52,7 +52,7 @@
                            inputAlign="right"></u-input>
                        <u-icon slot="right" name="arrow-right"></u-icon>
                    </u-form-item>
                    <u-form-item label="报备位置" prop="checkUserName" borderBottom  @click="getLocation('returnLocation')">
                    <u-form-item label="报备位置" prop="checkUserName" borderBottom  @click="getLocation('startLocation')">
                        <u-input v-model="goOutInfo.startLocation" disabled disabledColor="#ffffff"
                            border="none" placeholder="请获取当前位置" placeholderClass="f-28 c-99"
                            inputAlign="right"></u-input>
@@ -66,7 +66,7 @@
                            inputAlign="right"></u-input>
                        <u-icon slot="right" name="arrow-right"></u-icon>
                    </u-form-item>
                    <u-form-item label="到达位置" prop="reachLocation" borderBottom  @click="getLocation('returnLocation')">
                    <u-form-item label="到达位置" prop="reachLocation" borderBottom  @click="getLocation('reachLocation')">
                        <u-input v-model="goOutInfo.reachLocation" disabled disabledColor="#ffffff"
                            border="none" placeholder="请获取当前位置" placeholderClass="f-28 c-99"
                            inputAlign="right"></u-input>
@@ -124,8 +124,11 @@
        </view>
        <view class="bottom-btn"    v-if="(roleType == 1 && status == 1) || (roleType == 2 && status == 2)">
        <view class="bottom-btn"    v-if="roleType == 1 && status == 1">
            <u-button type="primary" @click="submit">提交审核</u-button>
        </view>
        <view class="bottom-btn"    v-if="roleType == 2 && status == 2">
            <u-button type="primary" @click="submit">提交</u-button>
        </view>
        <u-datetime-picker ref="datetimePicker" :show="showSelectDate" v-model="goOutDate[tabIndex]" mode="datetime"
            :formatter="formatter" @confirm="confirmDate" @cancel="cancelPickerDate"></u-datetime-picker>
@@ -229,7 +232,7 @@
                    }
                ],
                tabIndex:0,
                goOutDate:["","",""],
                goOutDate:[new Date(),new Date(),new Date()],
                showSelectDate:false,
                status:1     ,//当前状态   1待审核  2审核通过   3审核不通过
                id:""
@@ -247,6 +250,9 @@
            } else {
                this.roleType = 1;
            }
            // this.goOutDate.forEach(item=>{
            //     item = new Date()
            // })
        },
        methods: {
@@ -256,14 +262,14 @@
            },
            
            showPickerDate(){
                if(this.roleType == 2) return;
                if(this.roleType == 2 && this.status != 2) return;
                this.showSelectDate = true;
            },
            cancelPickerDate(){
                this.showSelectDate = false;
            },
            showPicker(){
                if(this.roleType == 2) return;
                if(this.roleType == 2 && this.status != 2) return;
                this.isPickerShow = true
            },
            
@@ -291,7 +297,8 @@
            },
            
            getLocation(key){
                if(this.roleType == 2) return;
                console.log(key)
                if(this.roleType == 2 &&  this.status != 2) return;
                uni.chooseLocation({
                    success:(res)=>{
                        console.log(res);
@@ -362,7 +369,7 @@
            
            checkImages() {
                if (this.startImageUrls.length) {
                    this.$set(this.goOutInfo, "startImageUrls", this.setGoOutImages(this.fireImageUrls))
                    this.$set(this.goOutInfo, "startImageUrls", this.setGoOutImages(this.startImageUrls))
                }
                if (this.reachImageUrls.length) {
                    this.$set(this.goOutInfo, "reachImageUrls", this.setGoOutImages(this.reachImageUrls))
@@ -401,6 +408,10 @@
                            icon: 'error'
                        })
                    }else {
                        uni.showToast({
                            title: '提交成功!',
                            icon: 'success'
                        })
                        this.getDetailInfo(this.taskId)
                    }
                    // uni.navigateBack()
@@ -465,5 +476,10 @@
    
    
    }
    .upload-item {
        width: 140rpx;
        height: 140rpx;
        border: 1px solid #EEEEEE;
    }
    
</style>