| | |
| | | const selectedIndex = e.target.value; |
| | | const selectedCustomer = storage[selectedIndex]; |
| | | |
| | | // // 检查是否选择了相同的客户 |
| | | // if (code === "customerName1" && this.selClientIndex2 === selectedIndex) { |
| | | // uni.showToast({ |
| | | // title: "不能选择相同的客户", |
| | | // icon: "none", |
| | | // }); |
| | | // return; |
| | | // } |
| | | // if (code === "customerName2" && this.selClientIndex1 === selectedIndex) { |
| | | // uni.showToast({ |
| | | // title: "不能选择相同的客户", |
| | | // icon: "none", |
| | | // }); |
| | | // return; |
| | | // } |
| | | // 检查是否选择了相同的客户 |
| | | if (code === "customerName1" && this.selClientIndex2 === selectedIndex) { |
| | | uni.showToast({ |
| | | title: "不能选择相同的客户", |
| | | icon: "none", |
| | | }); |
| | | return; |
| | | } |
| | | if (code === "customerName2" && this.selClientIndex1 === selectedIndex) { |
| | | uni.showToast({ |
| | | title: "不能选择相同的客户", |
| | | icon: "none", |
| | | }); |
| | | return; |
| | | } |
| | | |
| | | if (code === "customerName2") { |
| | | this.selClientIndex2 = selectedIndex; |