From fecaf0050852d71e42444e2216a8844474f0de29 Mon Sep 17 00:00:00 2001
From: zhuguifei <312353457@qq.com>
Date: 星期五, 10 四月 2026 14:18:20 +0800
Subject: [PATCH] fix: 1.储丝单柜卷包产量处理包装机换班后产量不清零导致重复计算问题(2026.04.04后数据新增dac_up_time生效)  2.前端请求超时时间修改为20s

---
 ruoyi-plus-soybean/src/views/qm/std/modules/std-operate-drawer.vue |   90 +++++++++++++++++++++++++++++++++-----------
 1 files changed, 67 insertions(+), 23 deletions(-)

diff --git a/ruoyi-plus-soybean/src/views/qm/std/modules/std-operate-drawer.vue b/ruoyi-plus-soybean/src/views/qm/std/modules/std-operate-drawer.vue
old mode 100644
new mode 100755
index 6316192..3b02c1e
--- a/ruoyi-plus-soybean/src/views/qm/std/modules/std-operate-drawer.vue
+++ b/ruoyi-plus-soybean/src/views/qm/std/modules/std-operate-drawer.vue
@@ -45,30 +45,27 @@
 
 function createDefaultModel(): Model {
   return {
-      id: '',
-      stdCode: '',
-      stdName: '',
-      cdate: null,
-      ver: null,
-      enable: null,
-      itemCod: '',
-      itemNam: '',
-      typ: null,
-      stdDes: '',
-      checkLevel: null,
-      category: null,
-      matfltype: '',
-      matflname: ''
+    id: '',
+    stdCode: '',
+    stdName: '',
+    cdate: null,
+    ver: null,
+    enable: null,
+    itemCod: '',
+    itemNam: '',
+    typ: null,
+    stdDes: '',
+    checkLevel: null,
+    category: null,
+    matfltype: '',
+    matflname: ''
   };
 }
 
-type RuleKey = Extract<
-  keyof Model,
-  | 'id'
->;
+type RuleKey = Extract<keyof Model, 'id'>;
 
 const rules: Record<RuleKey, App.Global.FormRule> = {
-  id: createRequiredRule('缂栫爜涓嶈兘涓虹┖'),
+  id: createRequiredRule('缂栫爜涓嶈兘涓虹┖')
 };
 
 function handleUpdateModelWhenEdit() {
@@ -86,16 +83,60 @@
 async function handleSubmit() {
   await validate();
 
-  const { id, stdCode, stdName, cdate, ver, enable, itemCod, itemNam, typ, stdDes, checkLevel, category, matfltype, matflname } = model.value;
+  const {
+    id,
+    stdCode,
+    stdName,
+    cdate,
+    ver,
+    enable,
+    itemCod,
+    itemNam,
+    typ,
+    stdDes,
+    checkLevel,
+    category,
+    matfltype,
+    matflname
+  } = model.value;
 
   // request
   if (props.operateType === 'add') {
-    const { error } = await fetchCreateStd({ stdCode, stdName, cdate, ver, enable, itemCod, itemNam, typ, stdDes, checkLevel, category, matfltype, matflname });
+    const { error } = await fetchCreateStd({
+      stdCode,
+      stdName,
+      cdate,
+      ver,
+      enable,
+      itemCod,
+      itemNam,
+      typ,
+      stdDes,
+      checkLevel,
+      category,
+      matfltype,
+      matflname
+    });
     if (error) return;
   }
 
   if (props.operateType === 'edit') {
-    const { error } = await fetchUpdateStd({ id, stdCode, stdName, cdate, ver, enable, itemCod, itemNam, typ, stdDes, checkLevel, category, matfltype, matflname });
+    const { error } = await fetchUpdateStd({
+      id,
+      stdCode,
+      stdName,
+      cdate,
+      ver,
+      enable,
+      itemCod,
+      itemNam,
+      typ,
+      stdDes,
+      checkLevel,
+      category,
+      matfltype,
+      matflname
+    });
     if (error) return;
   }
 
@@ -143,7 +184,10 @@
           <NInput v-model:value="model.itemNam" placeholder="璇疯緭鍏ユ楠岄」鐩悕绉�" />
         </NFormItem>
         <NFormItem label="鍒ゅ畾绫诲瀷  0-鎵嬪姩鍒ゅ畾,1-涓婁笅闄愬垽瀹�,2-骞冲潎鍊煎垽瀹�,3-SD鍊煎垽瀹�,4-CV鍊煎垽瀹�,5-瓒呮爣鏁板垽瀹�" path="typ">
-          <NInput v-model:value="model.typ" placeholder="璇疯緭鍏ュ垽瀹氱被鍨�  0-鎵嬪姩鍒ゅ畾,1-涓婁笅闄愬垽瀹�,2-骞冲潎鍊煎垽瀹�,3-SD鍊煎垽瀹�,4-CV鍊煎垽瀹�,5-瓒呮爣鏁板垽瀹�" />
+          <NInput
+            v-model:value="model.typ"
+            placeholder="璇疯緭鍏ュ垽瀹氱被鍨�  0-鎵嬪姩鍒ゅ畾,1-涓婁笅闄愬垽瀹�,2-骞冲潎鍊煎垽瀹�,3-SD鍊煎垽瀹�,4-CV鍊煎垽瀹�,5-瓒呮爣鏁板垽瀹�"
+          />
         </NFormItem>
         <NFormItem label="澶囨敞" path="stdDes">
           <NInput v-model:value="model.stdDes" placeholder="璇疯緭鍏ュ娉�" />

--
Gitblit v1.9.3