From 2b31fa203f3435a582be51f45899d99164c9917a Mon Sep 17 00:00:00 2001
From: zhuguifei <312353457@qq.com>
Date: 星期四, 09 四月 2026 13:34:59 +0800
Subject: [PATCH] Merge branch 'master' of http://lanpucloud.cn:1111/r/SC/gfzl

---
 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
index 6316192..3b02c1e 100755
--- 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