From 366ba040d2447bacd3455299425e3166f1f992bb Mon Sep 17 00:00:00 2001
From: huang <1532065656@qq.com>
Date: 星期四, 20 十一月 2025 14:38:32 +0800
Subject: [PATCH] 添加大车、大理片笼以及多设备串行/并行执行写入基础逻辑

---
 mes-web/src/views/device/DeviceEditDialog.vue |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/mes-web/src/views/device/DeviceEditDialog.vue b/mes-web/src/views/device/DeviceEditDialog.vue
index 881ab73..888cc2b 100644
--- a/mes-web/src/views/device/DeviceEditDialog.vue
+++ b/mes-web/src/views/device/DeviceEditDialog.vue
@@ -284,11 +284,25 @@
           </el-row>
           <el-row :gutter="20">
             <el-col :span="12">
+              <el-form-item label="榛樿鐜荤拑闀垮害(mm)">
+                <el-input-number
+                  v-model="deviceLogicParams.defaultGlassLength"
+                  :min="100"
+                  :max="10000"
+                  :step="100"
+                  style="width: 100%;"
+                />
+                <span class="form-tip">褰撶幓鐠冩湭鎻愪緵闀垮害鏃朵娇鐢ㄧ殑榛樿鍊�</span>
+              </el-form-item>
+            </el-col>
+            <el-col :span="12">
               <el-form-item label="鑷姩涓婃枡">
                 <el-switch v-model="deviceLogicParams.autoFeed" />
                 <span class="form-tip">鏄惁鑷姩瑙﹀彂涓婃枡璇锋眰</span>
               </el-form-item>
             </el-col>
+          </el-row>
+          <el-row :gutter="20">
             <el-col :span="12">
               <el-form-item label="鏈�澶ч噸璇曟鏁�">
                 <el-input-number
@@ -524,6 +538,7 @@
   // 涓婂ぇ杞﹀弬鏁�
   vehicleCapacity: 6000,
   glassIntervalMs: 1000,
+  defaultGlassLength: 2000,
   autoFeed: true,
   maxRetryCount: 5,
   positionMapping: {},
@@ -812,6 +827,7 @@
   if (deviceType === '涓婂ぇ杞�') {
     deviceLogicParams.vehicleCapacity = deviceLogic.vehicleCapacity ?? 6000
     deviceLogicParams.glassIntervalMs = deviceLogic.glassIntervalMs ?? 1000
+    deviceLogicParams.defaultGlassLength = deviceLogic.defaultGlassLength ?? 2000
     deviceLogicParams.autoFeed = deviceLogic.autoFeed ?? true
     deviceLogicParams.maxRetryCount = deviceLogic.maxRetryCount ?? 5
     deviceLogicParams.positionMapping = deviceLogic.positionMapping || {}
@@ -860,6 +876,7 @@
   // 閲嶇疆璁惧閫昏緫鍙傛暟
   deviceLogicParams.vehicleCapacity = 6000
   deviceLogicParams.glassIntervalMs = 1000
+  deviceLogicParams.defaultGlassLength = 2000
   deviceLogicParams.autoFeed = true
   deviceLogicParams.maxRetryCount = 5
   deviceLogicParams.positionMapping = {}
@@ -951,6 +968,7 @@
     if (deviceForm.deviceType === '涓婂ぇ杞�') {
       deviceLogic.vehicleCapacity = deviceLogicParams.vehicleCapacity
       deviceLogic.glassIntervalMs = deviceLogicParams.glassIntervalMs
+      deviceLogic.defaultGlassLength = deviceLogicParams.defaultGlassLength
       deviceLogic.autoFeed = deviceLogicParams.autoFeed
       deviceLogic.maxRetryCount = deviceLogicParams.maxRetryCount
       deviceLogic.positionMapping = deviceLogicParams.positionMapping

--
Gitblit v1.8.0