From 7fc17d062bed6f99fd7860898f474dff5b51cf73 Mon Sep 17 00:00:00 2001
From: yangan <yangan0921@163.com>
Date: 星期二, 26 十一月 2024 14:47:59 +0800
Subject: [PATCH] feat:原发信息增加限制

---
 subPages/bill-of-lading-details/originInfo/originInfo.vue |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/subPages/bill-of-lading-details/originInfo/originInfo.vue b/subPages/bill-of-lading-details/originInfo/originInfo.vue
index faf99a4..36acb81 100644
--- a/subPages/bill-of-lading-details/originInfo/originInfo.vue
+++ b/subPages/bill-of-lading-details/originInfo/originInfo.vue
@@ -53,6 +53,7 @@
 									:class="{ disabledClass: isModifyoriginInfo }">
 									<u--input placeholder="鍑�閲�"
 										border="surround"
+										disabled
 										v-model="coalContactClean"></u--input>
 								</view>
 								<view class="unit">鍚�</view>
@@ -190,6 +191,7 @@
 				}
 			
 			},
+			
 		},
 		onLoad(params) {
 			this.orderPlanId = params.orderPlanId || ''
@@ -303,7 +305,13 @@
 					if (this.originInfoForm.coalContactSkin && this.originInfoForm.coalContactHair && this
 					.originInfoForm
 					.contactPicture) {
-					this.submitOriginInfoLoading = true
+						//鍘熷彂鍑�閲嶉檺鍒�
+						if(this.coalContactClean && this.coalContactClean > 200){
+							this.$u.toast('褰撳墠鍑�閲嶈秴杩囨甯稿�硷紝璇锋鏌ョ毊姣涢噸')
+							return
+							
+						}else{
+							this.submitOriginInfoLoading = true
 					this.$reqPost('appSaveContact', form, 'json').then(res => {
 						if (res.code === 0) {
 							this.$u.toast('鎻愪氦鎴愬姛')
@@ -318,6 +326,8 @@
 							this.$u.toast(res.msg ? res.msg : '鎻愪氦澶辫触')
 						}
 					})
+						}
+				
 				} else {
 					uni.$u.toast('璇峰~鍐欏畬鏁村師鍙戜俊鎭�')
 				}

--
Gitblit v1.9.1