From 32678f5c24c7681a198b517fa72db1de2e98646d Mon Sep 17 00:00:00 2001
From: huanghongfeng <huanghongfeng@hnkhzn.com>
Date: 星期一, 08 七月 2024 22:00:42 +0800
Subject: [PATCH] PCS平面图检测线段

---
 代码管理/太重PDA/pages/feeding/feeding.vue |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/\345\244\252\351\207\215PDA/pages/feeding/feeding.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/\345\244\252\351\207\215PDA/pages/feeding/feeding.vue"
index 4b54a7e..c5166ec 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/\345\244\252\351\207\215PDA/pages/feeding/feeding.vue"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/\345\244\252\351\207\215PDA/pages/feeding/feeding.vue"
@@ -4,7 +4,7 @@
 			class="login__info__item__input tn-flex tn-flex-direction-row tn-flex-nowrap tn-flex-col-center tn-flex-row-left">
 			<view class="login__info__item__input__content">
 				<input maxlength="500" :disabled="isfill" v-model="barcode" placeholder-class="input-placeholder"
-					focus="true" @input="barcodeInput" placeholder="璇锋壂鎻忔潯鐮�"   />
+					focus="focu" @input="barcodeInput" placeholder="璇蜂粠涓嬪線涓婃壂鎻忔潯鐮�"   />
 					
 			</view>
 			<button class="" size="mini" @click="clearSN" > 娓呯┖</button>
@@ -35,6 +35,7 @@
 				show: false,
 				station: '',
 				stationNo: '',
+				focu:true,
 				selectorObj: [{
 						cateName: '1鍙蜂笅鏂欏彛',
 						id: "W01001004"
@@ -52,14 +53,14 @@
 					this.barcode = e.detail.value;
 				} else {
 					var len = this.barcode.split(',').length;
-					if (len <= 4) {
+					if (len <= 5) {
 						this.barcode = this.barcode + ',';
 					}
-					else if(len < 5){
+					else if(len < 6){ 
 						this.barcode = this.barcode;
 					}
 					 else {
-						this.$t.message.toast('鏁伴噺鏈�澶氫负5涓�');
+						this.$t.message.toast('鏁伴噺鏈�澶氫负6涓�');
 						this.isfill=true;
 						return;
 					}
@@ -72,12 +73,17 @@
 				this.stationNo = x.id
 			},
 			clearSN:function(e){
+				
 				this.barcode="";
 				this.isfill=false;
 			},
 			submit() {
 				if (this.barcode == '') {
-					this.$t.message.toast('鏉$爜涓嶈兘涓虹┖')
+					this.$t.message.toast('鏉$爜涓嶈兘涓虹┖锛�')
+					return;
+				}
+				if(this.station==''){
+					this.$t.message.toast('璇烽�夋嫨涓嬫枡鍙o紒')
 					return;
 				}
 

--
Gitblit v1.9.3