Browse Source

Merge branch 'dev' into pre-production

fix_bug_pro20231227
pref_mail@163.com 1 year ago
parent
commit
d3d5f78ecd
  1. 18
      src/views/distribution/reservation/reservationAddFrom.vue

18
src/views/distribution/reservation/reservationAddFrom.vue

@ -2762,22 +2762,24 @@ export default {
console.log('orderList-------------》', this.orderList); console.log('orderList-------------》', this.orderList);
if (this.orderList.length === 0) return this.$message.warning('最少选择一条数据!!!'); if (this.orderList.length === 0) return this.$message.warning('最少选择一条数据!!!');
const list = [...this.orderList, ...this.orderData]; const list = [...this.orderList, ...this.orderData];
let _name = list[0].customerName; let _name = list[0].customerName.trim();
let _address = list[0].customerAddress; let _address = list[0].customerAddress.trim();
let _phone = list[0].customerTelephone; let _phone = list[0].customerTelephone.trim();
let _marketName = list[0].mallName; let _marketName = list[0].mallName.trim();
// //
const isRturn = list.every(item => { const isRturn = list.every(item => {
if (item.mallName !== _marketName) { if (item.mallName.trim() !== _marketName) {
this.$message.warning('请选择统一商场!!!'); this.$message.warning('请选择统一商场!!!');
return false; return false;
} }
if ( if (
item.customerName !== _name || (item.customerName.trim() !== _name) ||
item.customerAddress !== _address || (item.customerAddress.trim() !== _address) ||
item.customerTelephone !== _phone (item.customerTelephone.trim() !== _phone)
) { ) {
console.log("123");
this.$message.warning('请选择统一顾客订单!!!'); this.$message.warning('请选择统一顾客订单!!!');
return false; return false;
} }

Loading…
Cancel
Save