yangan
2025-01-20 bcf7914e7b55e72cc453b559086255a56fe53a64
feat:电子提煤单下载显示
2个文件已修改
36 ■■■■■ 已修改文件
api/globalApi.js 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
api/globalApi.js
@@ -573,7 +573,13 @@
    downLoadTm:{
        url:'/wrzs/e-task',
        method: 'GET'
    },
    //查询需要使用电子磅单的矿
    getIsOpenTm:{
        url:'/dict/type/app_tmorder_use',
        method: 'GET'
    }
}
pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue
@@ -231,7 +231,9 @@
                    type="primary"
                    shape="circle"></u-button></view>
                    <!-- 电子磅单下载 -->
                    <view class="weigh-button"><u-button text="下载电子磅单"
                    <view class="weigh-button"
                    v-if="isBtnShow"
                    ><u-button text="下载电子磅单"
                    @click="downloadFileFun"
                    type="primary"
                    shape="circle"></u-button></view>
@@ -361,6 +363,7 @@
                swiperList:[],
                orderPlanId: null,
                radioValue:'煤场',
                isBtnShow:true,
                currentNum:0,
                guideLineshow:false,
                yyId: null,
@@ -641,7 +644,30 @@
                        }
                    }, 1000)
                    }
                    //查询当前单位是否有电子提煤单功能
                    // this.$reqGet('getIsOpenTm').then(res=>{
                    //     console.log(res,'查询查询')
                    // })
                    uni.request({
                    url: `${BaseUrl}/admin/dict/type/app_tmorder_use`,
                    method: 'GET',
                    success: (res) => {
                        console.log(res.data.data, '查询字典项');
                        let falseArr = res.data.data.map(item=>{
                            return item.value
                        });
                        if (falseArr.length){
                            if(falseArr.includes(this.coalDetailsData.deptId)){
                                this.isBtnShow = true;
                            }else{
                                this.isBtnShow = false;
                            }
                        }else{
                            this.isBtnShow = false;
                        }
                    }
                })
                })
            },
            // 日志查询