Browse Source

修改新增预约市配数组新增时数组去重方法

fix_bug_pro20231227
qb 1 year ago
parent
commit
5981678ffd
  1. 11
      src/views/distribution/reservation/reservationAddFrom.vue

11
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 = [];

Loading…
Cancel
Save