From 259852463c9da81c7d7a035e9d10feecc19f7d45 Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期四, 16 十月 2025 13:37:16 +0800
Subject: [PATCH] 核磅录入不能选择相同的客户名称
---
pages/wareHouse/nuclearScale/createwriteoffform.vue | 34 +++++++++++++++++-----------------
1 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/pages/wareHouse/nuclearScale/createwriteoffform.vue b/pages/wareHouse/nuclearScale/createwriteoffform.vue
index c76cee3..8ac0329 100644
--- a/pages/wareHouse/nuclearScale/createwriteoffform.vue
+++ b/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;
@@ -607,7 +607,7 @@
const productType = this.form.productType;
const selectedWorkshop = storage[e.target.value];
-
+ console.log('閫夋嫨鐨勮溅闂�:', selectedWorkshop);
// 妫�鏌ヤ骇鍝佺被鍨嬫槸鍚︿负閾滄潌(鍊间负TG01)
if (productType === "TG01") {
// 閾滄潌鍙兘閫夋嫨閾滄潌鐩稿叧杞﹂棿
@@ -632,7 +632,7 @@
}
this.workshopIndex = e.target.value;
- this.form.workshop = selectedWorkshop.label;
+ this.form.workshop = selectedWorkshop.value;
},
// 鍙哥鍛�
weighmanChange(e, storage) {
--
Gitblit v1.9.3