diff --git a/src/views/distribution/reservation/reservationAddFrom.vue b/src/views/distribution/reservation/reservationAddFrom.vue index 87d57335..0e83c60c 100644 --- a/src/views/distribution/reservation/reservationAddFrom.vue +++ b/src/views/distribution/reservation/reservationAddFrom.vue @@ -2688,7 +2688,16 @@ this.form.deliveryAddress = _address; this.form.deliveryPhone = _phone; this.orderData = this.orderList; - this.orderData = Array.from(new Set([this.orderData,...this.orderList])) + + let _arr = [this.orderData,...this.orderList] + + // 将数组内对象转为字符串 + _arrJAONSTR = _arr.map(val => JSON.stringify(val)) + // 对数组进行去重 + _newSetArr = Array.from(new Set(_arrJAONSTR)) + + // 将数组内对象还原 + this.orderData = _newSetArr.map(val => JSON.parse(val)) //这里需要对选择的订单进行筛选 // const info = [];