|
|
|
@ -3165,27 +3165,27 @@ export default {
|
|
|
|
|
console.log('orderList-------------》', this.orderList); |
|
|
|
|
if (this.orderList.length === 0) return this.$message.warning('最少选择一条数据!!!'); |
|
|
|
|
const list = [...this.orderList]; |
|
|
|
|
let _name = removeZeroWidth(list[0].customerName.trim()); |
|
|
|
|
let _address = removeZeroWidth(list[0].customerAddress.trim()); |
|
|
|
|
let _phone = removeZeroWidth(list[0].customerTelephone.trim()); |
|
|
|
|
if (this.marketName === '') this.marketName = removeZeroWidth(list[0].mallName.trim()); |
|
|
|
|
let _name = removeZeroWidth(list[0]?.customerName?.trim()); |
|
|
|
|
let _address = removeZeroWidth(list[0]?.customerAddress?.trim()); |
|
|
|
|
let _phone = removeZeroWidth(list[0]?.customerTelephone?.trim()); |
|
|
|
|
if (this.marketName === '') this.marketName = removeZeroWidth(list[0]?.mallName?.trim()); |
|
|
|
|
const _markeName = this.marketName |
|
|
|
|
? removeZeroWidth(list[0].mallName.trim()) |
|
|
|
|
? removeZeroWidth(list[0]?.mallName?.trim()) |
|
|
|
|
: this.marketName; |
|
|
|
|
|
|
|
|
|
let message = ''; |
|
|
|
|
// 循环查看数据是否符合要求 |
|
|
|
|
for (let i = 0; i < list.length; i++) { |
|
|
|
|
const item = list[i]; |
|
|
|
|
if (item.mallName.trim() !== _markeName) { |
|
|
|
|
if (item.mallName?.trim() !== _markeName) { |
|
|
|
|
message = '请选择统一商场!!!'; |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ( |
|
|
|
|
removeZeroWidth(item.customerName.trim()) !== _name || |
|
|
|
|
removeZeroWidth(item.customerAddress.trim()) !== _address || |
|
|
|
|
removeZeroWidth(item.customerTelephone.trim()) !== _phone |
|
|
|
|
removeZeroWidth(item.customerName?.trim()) !== _name || |
|
|
|
|
removeZeroWidth(item.customerAddress?.trim()) !== _address || |
|
|
|
|
removeZeroWidth(item.customerTelephone?.trim()) !== _phone |
|
|
|
|
) { |
|
|
|
|
console.log('i :>> ', i); |
|
|
|
|
message = '请选择统一顾客订单!!!'; |
|
|
|
|