From 7d2aef47acf12de222b649f402af206a8abf29cc Mon Sep 17 00:00:00 2001 From: whycq <you@example.com> Date: 星期日, 21 五月 2023 18:18:45 +0800 Subject: [PATCH] Merge branch 'jfwms' of http://47.97.1.152:5880/r/wms_app into jfwms --- pages/basics/pakin.vue | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-) diff --git a/pages/basics/pakin.vue b/pages/basics/pakin.vue index de44ba2..78b4d0c 100644 --- a/pages/basics/pakin.vue +++ b/pages/basics/pakin.vue @@ -325,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: { @@ -362,12 +372,15 @@ }); }, 1000); } else { + setTimeout(()=>{ + that.matnr = ''; + that.focus = true; + }, 100); uni.showToast({title: res.msg, icon: "none",position: 'top'}) } } }); - }, // 娣诲姞鍟嗗搧 @@ -381,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