qingyiay
2023-09-25 47c3668aaab9d5f772c7d7e317d2bfa4b1cbeb28
修改首页数据不刷新 超出预约时间提示
2个文件已修改
25 ■■■■■ 已修改文件
pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/tabbar-page/index-tabbar/index-tabbar.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue
@@ -256,7 +256,6 @@
    import combinedTitle from '@/components/combined-title/combined-title.vue';
    import BigNumber from "bignumber.js"
    const dayjs = require('dayjs')
    import isBetween from 'dayjs/plugin/isBetween'
    export default {
        components: {
            combinedTitle
@@ -270,7 +269,6 @@
                this.getWeightHouseObj.overTmWaixiao = value.overTmWaixiao
            }
            this.fileList1 = []
            dayjs.extend(isBetween)
            if (this.globalIsFirstWeighing === 1) {
                this.getTakeCoal(); //获取提煤单详情
            }
@@ -517,19 +515,11 @@
                        this.primarySkin = this.coalDetailsData.skinTwo;
                        this.primaryHair = this.coalDetailsData.hairTwo;
                        this.primaryClean = this.coalDetailsData.cleanTwo;
                        // 判断当前时间是否超出预约时间
                        let endTime = this.coalDetailsData.yuYueSection.slice(0, 10) + ' ' + this.coalDetailsData
                            .yuYueSection.slice(-5);
                        if (dayjs(this.currentTime).isAfter(endTime) && this.coalDetailsData.status <= 1) {
                            this.$u.toast('已超出预约时间,可点击入场申请重新入场')
                            this.timeout = '1'
                        }
                        // 入门证 和 出门证 是否显示
                        this.ablePrintInduction = this.coalDetailsData.hair || this.coalDetailsData.skin
                        this.ablePrintOut = this.coalDetailsData.hair && this.coalDetailsData.skin || this
                            .coalDetailsData.status === 6
                        // 原发信息回显以及控制是否可修改
                        this.haveInputOrigin = !this.coalDetailsData.skinTwo && this.coalDetailsData.orderType ===
                            '外购'
                        this.deletable = this.isModifyoriginInfo = this.coalDetailsData.status > 3
@@ -566,6 +556,17 @@
                    }
                }).then(() => {
                    this.getgetService(); //获取客服
                }).then(() => {
                    // 判断当前时间是否超出预约时间
                    setTimeout(() => {
                        let endTime = this.coalDetailsData.yuYueSection.slice(0, 10) + ' ' + this
                            .coalDetailsData
                            .yuYueSection.slice(-5);
                        if (dayjs(this.currentTime).isAfter(endTime) && this.coalDetailsData.status <= 1) {
                            this.$u.toast('已超出预约时间,可点击入场申请重新入场')
                            this.timeout = '1'
                        }
                    }, 1000)
                })
            },
            // 日志查询
pages/tabbar-page/index-tabbar/index-tabbar.vue
@@ -124,8 +124,10 @@
            clearInterval(this.globalIntervalId);
            this.changeisconnect(false)
        },
        onLoad() {
        onShow() {
            this.init();
        },
        onLoad() {
            this.$store.dispatch('websocketInit')
            this.$store.commit('changeisLogin', true)
            console.log(this.globalisconnect, 'index的ws数据');