From f06865d85275928a2f93db0931d627a4b4779320 Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期一, 22 五月 2023 20:43:16 +0800
Subject: [PATCH] #

---
 pages/basics/pakin.vue |   25 ++++++++++++++++++++-----
 1 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/pages/basics/pakin.vue b/pages/basics/pakin.vue
index afa398f..fc4e53c 100644
--- a/pages/basics/pakin.vue
+++ b/pages/basics/pakin.vue
@@ -147,8 +147,8 @@
 				checkedData:[],
 				batch:'',
 				memo: '',
-				ck1: false,
-				ck2: true,
+				ck1: true,
+				ck2: false,
 				frozen: 0,
 			}
 		},
@@ -179,6 +179,7 @@
 				} else {
 					this.frozen = 0
 				}
+				console.log(this.frozen);
 			},
 			// 鑾峰彇url
 			getUrl() {
@@ -324,6 +325,16 @@
 			},
 			findMat() {
 				let that = this
+				for (var i = 0; i < that.matList.length; i++) {
+					if (that.matnr == that.matList[i].matnr) {
+						uni.showToast({title: that.matnr + "褰撳墠鐗╂枡鎻愬彇锛岃鍕块噸澶嶆壂鎻�!", icon: "none",position: 'top'})
+						setTimeout(()=>{
+							that.matnr = '';
+							that.focus = true;
+						}, 100);
+						return;
+					}
+				}
 				uni.request({
 				    url: that.commonUrl + '/mat/auth',
 				    data: {
@@ -361,12 +372,15 @@
 								});
 							}, 1000);
 						} else {
-							uni.showToast({title: res.msg, icon: "none",position: 'top'})
+							// setTimeout(()=>{
+							// 	that.matnr = '';
+							// 	that.focus = true;
+							// }, 100);
+							// uni.showToast({title: res.msg, icon: "none",position: 'top'})
 						}
 						
 					}
 				});
-				
 			},
 		
 			// 娣诲姞鍟嗗搧
@@ -380,7 +394,8 @@
 				var today = date.getFullYear() + '/' + (date.getMonth()+1) + '/' + date.getDate()
 				for (var i = 0; i < len; i++) {
 					if (mat.matnr == this.matList[i].matnr) {
-						this.matList[i].anfme += mat.anfme 
+						uni.showToast({title: mat.matnr + "褰撳墠鐗╂枡鎻愬彇锛岃鍕块噸澶嶆壂鎻�!", icon: "none",position: 'top'})
+						// this.matList[i].anfme += mat.anfme 
 						this.$forceUpdate() // 寮哄埗鍒锋柊
 						add = false
 					}

--
Gitblit v1.9.1