12
zhang
2025-05-28 a414e6a34bda6879da10eda44f7fffe3b90273fa
pages/basics/order.vue
@@ -439,14 +439,23 @@
                  if (mat.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'})
                     }
                  }
                  
               }