From 94e602cc5fac654ed9abe2dbea518a0300b8c6aa Mon Sep 17 00:00:00 2001 From: 819527061@qq.com <123456> Date: 星期二, 06 八月 2024 18:09:20 +0800 Subject: [PATCH] 质检页面问题修改 --- pages/customer-page/customer-index/customer-index.vue | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/pages/customer-page/customer-index/customer-index.vue b/pages/customer-page/customer-index/customer-index.vue index e36dc28..6b4038f 100644 --- a/pages/customer-page/customer-index/customer-index.vue +++ b/pages/customer-page/customer-index/customer-index.vue @@ -8,9 +8,9 @@ style="background: url('https://mx.jzeg.cn:9096/appimg/image/banner/customerbanner.png') no-repeat;background-size:contain"> </view> <!-- 鑷富閰嶉�佺晫闈� --> - <view class="self-deliver"> + <view class="self-deliver" v-if="personnelType === 1"> <view class="self-deliver_text"> - 鍒涘缓鏃ヨ鍒掕鍗� + 鍒涘缓鏃ヨ鍒掕鍗� </view> <view class="self-deliver_btn"> <u-button text="鍘诲垱寤�" @@ -200,6 +200,7 @@ data() { return { orderPlanData: [], + personnelType:'', // 鐢ㄦ埛绫诲瀷 show: false, // 棰嗗彇鏀跺彂鍗曞脊鍑烘 receiveNum: null, getOrderNum: { @@ -233,6 +234,7 @@ init() { this.GetOrderPlan(); this.getJhOrderPlanDataPage(); + this.getType(); }, // 鑾峰彇鍙戣繍璁″垝鍒楄〃 GetOrderPlan() { @@ -359,6 +361,17 @@ uni.navigateTo({ url: '/subPages/addDailyPlan/addDailyPlan' }) + }, + //鑾峰彇鐢ㄦ埛鏍囪瘑 + getType(){ + this.$reqGetId('getPersonnelType',uni.getStorageSync('customerId')).then(res=>{ + console.log(res,'ressss') + if(res.code === 0){ + this.personnelType = res.data.personnelType; + }else{ + this.personnelType = ''; + } + }) } } }; -- Gitblit v1.9.1