From 331eef7c57b435f4c8bedb31b3ef6daf68a18db0 Mon Sep 17 00:00:00 2001
From: yangan <yangan0921@163.com>
Date: 星期五, 02 八月 2024 11:41:44 +0800
Subject: [PATCH] feat:PVC改为聚氯乙烯树脂

---
 pages/customer-page/customer-index/customer-index.vue |   26 ++++++++++++++++++--------
 1 files changed, 18 insertions(+), 8 deletions(-)

diff --git a/pages/customer-page/customer-index/customer-index.vue b/pages/customer-page/customer-index/customer-index.vue
index 0de4f52..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="鍘诲垱寤�"
@@ -172,9 +172,7 @@
 </template>
 
 <script>
-	import card from '@/components/card/card.vue';
 	import combinedTitle from '@/components/combined-title/combined-title.vue';
-	import { customerId } from '@/utils/status';
 	export default {
 		props: {
 			orderPlanDataStore: {
@@ -183,7 +181,6 @@
 			}
 		},
 		components: {
-			card,
 			combinedTitle
 		},
 		watch: {
@@ -203,6 +200,7 @@
 		data() {
 			return {
 				orderPlanData: [],
+				personnelType:'', // 鐢ㄦ埛绫诲瀷
 				show: false, // 棰嗗彇鏀跺彂鍗曞脊鍑烘
 				receiveNum: null,
 				getOrderNum: {
@@ -236,6 +234,7 @@
 			init() {
 				this.GetOrderPlan();
 				this.getJhOrderPlanDataPage();
+				this.getType();
 			},
 			// 鑾峰彇鍙戣繍璁″垝鍒楄〃
 			GetOrderPlan() {
@@ -343,12 +342,12 @@
 			// 锛堥《閮級鍙戣繍璁″垝璇︽儏
 			cardBodyClick(v) {
 				uni
-					.navigateTo({ url: `/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails?orderPlanId=${v.id}&code=${v.code}&cars2=${v.cars2}` });
+					.navigateTo({ url: `/subPages/fayunPlanDetails/fayunPlanDetails?orderPlanId=${v.id}&code=${v.code}&cars2=${v.cars2}` });
 			},
 			// 鐐瑰嚮鍘嗗彶鏀跺彂鍗曡幏鍙栬鎯�
 			faYundetail(v) {
 				uni.navigateTo({
-					url: `/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails?orderPlanId=${v.id}&cars2=${v.cars2}&productNames=${v.productNames || v.productName}&deptName=${v.deptName}`
+					url: `/subPages/fayunPlanDetails/fayunPlanDetails?orderPlanId=${v.id}&cars2=${v.cars2}&productNames=${v.productNames || v.productName}&deptName=${v.deptName}`
 				});
 			},
 			// 杞彂
@@ -360,7 +359,18 @@
 			// 鑷富閰嶉��
 			selfDeliver() {
 				uni.navigateTo({
-					url: '/pages/customer-page/addDailyPlan/addDailyPlan'
+					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