pages/order/orderPickConfirm2.vue
@@ -206,10 +206,28 @@ }) }, events: { sMat: function(data) { _this.dataList.push(data.data) console.log(data); pickList: function(data) { for (let k of data.data) { let add = true if (_this.dataList.length == 0) { _this.dataList.push(k) continue } for (let m of _this.dataList) { if (k.matnr == m.matnr && k.orderNo == k.orderNo) { add = false } } if (add) { k['maxCount'] = k.anfme _this.dataList.push(k) } } } // sMat: function(data) { // _this.dataList.push(data.data) // console.log(data); // } } }) },