From cd1ce9f919db0a2d7a588cedc81ce4310c3310c4 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期二, 18 十一月 2025 16:29:10 +0800
Subject: [PATCH] fix: PDA芯线层可以扫码单丝二维码
---
src/pages/production/twist/receive/steelCore/index.vue | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/pages/production/twist/receive/steelCore/index.vue b/src/pages/production/twist/receive/steelCore/index.vue
index fd54201..1e6b91c 100644
--- a/src/pages/production/twist/receive/steelCore/index.vue
+++ b/src/pages/production/twist/receive/steelCore/index.vue
@@ -172,6 +172,15 @@
try {
const parseData = JSON.parse(code.code);
+ // 妫�鏌ュ繀闇�瀛楁锛歮odel銆乻upplier銆乨iskMaterial
+ const requiredFields = ["model", "supplier", "diskMaterial"];
+ const missingFields = requiredFields.filter((field) => !parseData[field]);
+
+ if (missingFields.length > 0) {
+ toast.error(`浜岀淮鐮侀敊璇紝璇锋洿鎹簩缁寸爜锛乣);
+ return;
+ }
+
// 鎵撳紑鏂板寮规骞跺~鍏呮壂鐮佽幏鍙栫殑淇℃伅
addDialog.visible = true;
--
Gitblit v1.9.3