From a414e6a34bda6879da10eda44f7fffe3b90273fa Mon Sep 17 00:00:00 2001
From: zhang <zc857179121@qq.com>
Date: 星期三, 28 五月 2025 19:19:36 +0800
Subject: [PATCH] 12
---
pages/basics/order.vue | 19 ++++++++++++++-----
1 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/pages/basics/order.vue b/pages/basics/order.vue
index 34c9053..1d23cb3 100644
--- a/pages/basics/order.vue
+++ b/pages/basics/order.vue
@@ -437,16 +437,25 @@
for (var i = 0; i < len; i++) {
if (mat.matnr == this.matList[i].matnr) {
if (mat.batch){
- if( mat.batch == this.matList[i].batch){
+ if(mat.batch == this.matList[i].batch){
+ this.matList[i].times +=1
+ if (this.matList[i].anfme + mat.anfme <=this.matList[i].count){
+ this.matList[i].anfme += mat.anfme
+ this.$forceUpdate() // 寮哄埗鍒锋柊
+ add = false
+ }
+ }else{
+ uni.showToast({title: '缁勬墭鏁伴噺瓒呰繃璁㈠崟鏁伴噺', icon: "none",position: 'top'})
+ }
+ }else{
+ if (this.matList[i].anfme + mat.anfme <=this.matList[i].count){
this.matList[i].times +=1
this.matList[i].anfme += mat.anfme
this.$forceUpdate() // 寮哄埗鍒锋柊
add = false
+ }else{
+ uni.showToast({title: '缁勬墭鏁伴噺瓒呰繃璁㈠崟鏁伴噺', icon: "none",position: 'top'})
}
- }else{
- this.matList[i].anfme += mat.anfme
- this.$forceUpdate() // 寮哄埗鍒锋柊
- add = false
}
}
--
Gitblit v1.9.1