12
zhang
2025-05-28 a414e6a34bda6879da10eda44f7fffe3b90273fa
12
1个文件已修改
9 ■■■■■ 已修改文件
pages/basics/order.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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'})
                            }
                        }
                        
                    }