From a1274d448fa9fd59da39d94f5d91e54780fc8de1 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期五, 24 四月 2026 11:01:10 +0800
Subject: [PATCH] fix: 出入库只有吨和公斤才能转换单位,其他单位不用转换。
---
src/views/basicData/product/index.vue | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/views/basicData/product/index.vue b/src/views/basicData/product/index.vue
index f9cc6a2..8d47278 100644
--- a/src/views/basicData/product/index.vue
+++ b/src/views/basicData/product/index.vue
@@ -158,9 +158,9 @@
placeholder="璇烽�夋嫨鍗曚綅"
clearable
style="width: 100%"
- :filterable="isConsumablesBranch"
- :allow-create="isConsumablesBranch"
- :default-first-option="isConsumablesBranch"
+ filterable
+ allow-create
+ default-first-option
>
<el-option
v-for="u in unitSelectOptions"
@@ -280,9 +280,9 @@
/** 鍗曚綅涓嬫媺锛氳�楁潗鍒嗘敮鍚欢銆佷釜鏁颁笖鍙墜鍔ㄦ柊澧烇紱鍏朵粬鍒嗘敮浠呭惃銆佸叕鏂� */
const unitSelectOptions = computed(() => {
if (isConsumablesBranch.value) {
- return ["鍚�", "鍏枻", "浠�", "涓暟"];
+ return ["鍚�", "鍏枻", "浠�", "涓暟",'妗�'];
}
- return ["鍚�", "鍏枻"];
+ return ["鍚�", "鍏枻",'鍧�','鏂�','绠�','琚�','鐡�','妗�','鐩�','鍖�','浠�','涓暟'];
});
// 鏌ヨ浜у搧鏍�
--
Gitblit v1.9.3