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