From 373929a32aa4a3197260a106be3fdc21eb109afc Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期二, 04 三月 2025 08:38:11 +0800 Subject: [PATCH] feat:门卫页面修改状态传参 --- pages/public-page/forward/forward.vue | 25 +++++++++++++++++-------- 1 files changed, 17 insertions(+), 8 deletions(-) diff --git a/pages/public-page/forward/forward.vue b/pages/public-page/forward/forward.vue index 39b78d9..b542c0d 100644 --- a/pages/public-page/forward/forward.vue +++ b/pages/public-page/forward/forward.vue @@ -15,7 +15,7 @@ <u-notice-bar :text="text" :fontSize="30"></u-notice-bar> <view class="notice-icon" - style="background: url('https://mx.jzeg.cn:9096/appimg/image/banner/notice.png') no-repeat;background-size: cover; width: 42rpx;height: 42rpx;"> + style="background: url('https://mr1.res.jzeg.cn:9096/appimg/image/banner/notice.png') no-repeat;background-size: cover; width: 42rpx;height: 42rpx;"> </view> </view> <view v-else-if="roleType == 2" @@ -172,6 +172,7 @@ forwardSurplus: 0, paramsName: {}, huoDaiData: [], + isClickFlag:true,// true 鍙互 or false for forward and back to the direction of the car direction (default fleetData: [], // 鏃ヨ鍒抜d orderPlanId: '', @@ -181,7 +182,7 @@ carNum: null, xsUserId: 0, fleetId: 0, - checkboxValue1: '', + checkboxValue1: '', //鍏ㄩ儴杞彂 isSelected: false }], // 绱㈠紩锛屽埄鐢ㄧ储寮曟纭樉绀� @@ -198,7 +199,7 @@ formNum: 1, // 涓汉杞彂鏁版嵁 personalForward: {}, - whetherClick: false, + whetherClick: false, //娣诲姞鎸夐挳 whetherClick1: false, // 婊戝姩鍗曞厓鏍奸厤缃� options1: [{ @@ -209,10 +210,10 @@ }], loading: false, //鎻愪氦loading originForwardName: '', //鍘熻浆鍙戝璞� - laterForwardName: '', //鍚庤浆鍙戝璞� + laterForwardName: '', //鍚庤浆鍙戝璞� errorDataList: [], // 閿欒鏁版嵁 isDirectAdd: false, // 鏄惁鏄湪鍘熸潵鏈夊璞$殑item淇敼 鏄殑涓簍rue - forwardId: '' //鍘熸潵鏈夊璞� 鐐瑰嚮璧嬪�� + forwardId: '' //鍘熸潵鏈夊璞� 鐐瑰嚮璧嬪�� }; }, onShow() { @@ -364,11 +365,16 @@ }, // 杞彂 forwardObjectClick(index, name, id) { + if(!id){ this.selectPopupShow = true; this.index = index; this.originForwardName = name || '' this.isDirectAdd = this.originForwardName !== '' this.forwardId = id + }else{ + return + } + }, selectPopupClose() { this.selectPopupShow = false; @@ -462,12 +468,13 @@ return cur.carNum + prev; }, 0); console.log(total, '鎻愮叅鍗曚竴鍏辩殑鏁版嵁'); + //roleType 1瀹㈡埛 2 璐т唬 3鍙告満 5瑁呭嵏鍛� if (this.roleType == 1) { if (Number(this.cars2) > total) { this.carNumSurplus1 = Number(this.cars2) - total; this.whetherClick = false; this.whetherClick1 = false; - } else if (Number(this.cars2) == total) { + } else if (Number(this.cars2) == total) { //鍓╀綑鐨勬彁鐓ゅ崟涓�0锛堟坊鍔犮�佹彁浜ゆ寜閽笉鑳界偣鍑伙級 this.whetherClick = true; this.whetherClick1 = false; this.carNumSurplus1 = Number(this.cars2) - total; @@ -499,6 +506,7 @@ let time; let that = this; that.$set(that.jhOrderPlanForwardList[index], 'carNum', Number(value)); + //forWardType 杞彂绫诲瀷 1璐т唬 2杞﹂槦 that.$set(that.jhOrderPlanForwardList[index], 'forWardType', xsUserId ? 1 : 2); return (function() { if (!time) { @@ -591,11 +599,12 @@ return isPass; } }); + console.log(this.jhOrderPlanForwardList,'jhOderPlan') if (isPass) { this.loading = true; this.$reqPost('forward', this.jhOrderPlanForwardList, 'json').then(res => { console.log(res, 'zh'); - // res.data.length == 0 鎻愪氦鎴愬姛 鍚﹀垯鎻愪氦澶辫触 + // res.data.length == 0 鎻愪氦鎴愬姛 鍚﹀垯鎻愪氦澶辫触 if (res.data.length == 0) { this.loading = false this.$u.toast('鎻愪氦鎴愬姛'); @@ -832,4 +841,4 @@ } } } -</style> \ No newline at end of file +</style> -- Gitblit v1.9.1