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 | 44 +++++++++++++++++++++++++++----------------- 1 files changed, 27 insertions(+), 17 deletions(-) diff --git a/pages/customer-page/customer-index/customer-index.vue b/pages/customer-page/customer-index/customer-index.vue index 0ca0de2..6b4038f 100644 --- a/pages/customer-page/customer-index/customer-index.vue +++ b/pages/customer-page/customer-index/customer-index.vue @@ -3,14 +3,14 @@ <view class="customer-index"> <view class="customer-index-body"> - <!-- 寰呴鍙栧拰杞彂鎻愮叅鍗� --> + <!-- 寰呴鍙栧拰杞彂鏀跺彂鍗� --> <view class="wait-collection" 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="鍘诲垱寤�" @@ -80,9 +80,9 @@ </view> </view> - <!-- 鍘嗗彶鎻愮叅鍗� --> + <!-- 鍘嗗彶鏀跺彂鍗� --> <view class="history-numbers"> - <combined-title title="鍘嗗彶鎻愮叅鍗�"></combined-title> + <combined-title title="鍘嗗彶鏀跺彂鍗�"></combined-title> <scroll-view :scroll-top="scrollTop" scroll-y="true" class="scroll-Y" @@ -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,7 +200,8 @@ data() { return { orderPlanData: [], - show: false, // 棰嗗彇鎻愮叅鍗曞脊鍑烘 + personnelType:'', // 鐢ㄦ埛绫诲瀷 + show: false, // 棰嗗彇鏀跺彂鍗曞脊鍑烘 receiveNum: null, getOrderNum: { num: '', @@ -223,7 +221,7 @@ showMoreData: false, cars2: "", //棰嗗彇鏃ヨ鍒掔殑杞︽暟 carNum: "", //鏃ヨ鍒掔殑鎬昏溅鏁� - // 鍓╀綑鐨勬彁鐓ゅ崟鏁伴噺 + // 鍓╀綑鐨勬敹鍙戝崟鏁伴噺 carNumSurplus: '', canClick: false, popupDetermineClickLoading: false @@ -236,6 +234,7 @@ init() { this.GetOrderPlan(); this.getJhOrderPlanDataPage(); + this.getType(); }, // 鑾峰彇鍙戣繍璁″垝鍒楄〃 GetOrderPlan() { @@ -247,7 +246,7 @@ } }); }, - // 鑾峰彇鍘嗗彶鎻愮叅鍗� + // 鑾峰彇鍘嗗彶鏀跺彂鍗� getJhOrderPlanDataPage() { uni.showLoading({ title: '鍔犺浇涓�' @@ -272,7 +271,7 @@ this.pageCurrent++; this.getJhOrderPlanDataPage(); }, - //fix 鐐瑰嚮鎻愮叅鍗曡繑鍥炰細澧炲姞閲嶅鏁版嵁 + //fix 鐐瑰嚮鏀跺彂鍗曡繑鍥炰細澧炲姞閲嶅鏁版嵁 ArrSet(Arr, id) { var obj = {}; const arrays = Arr.reduce((setArr, item) => { @@ -324,7 +323,7 @@ */ receiveClick(item) { this.show = true; - this.getOrderNum.id = item.id; // 鑾峰彇棰嗗彇鎻愮叅鍗曠殑id + this.getOrderNum.id = item.id; // 鑾峰彇棰嗗彇鏀跺彂鍗曠殑id this.cars2 = item.cars2 this.carNum = item.carNum }, @@ -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