yyb
2025-10-16 259852463c9da81c7d7a035e9d10feecc19f7d45
核磅录入不能选择相同的客户名称
已修改1个文件
30 ■■■■ 文件已修改
pages/wareHouse/nuclearScale/createwriteoffform.vue 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/wareHouse/nuclearScale/createwriteoffform.vue
@@ -567,21 +567,21 @@
      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;