From dbfd4bc96205dd957827ee16c1149058fc2b88bb Mon Sep 17 00:00:00 2001
From: zhuguifei <312353457@qq.com>
Date: 星期三, 04 三月 2026 15:31:14 +0800
Subject: [PATCH] perf:

---
 ruoyi-plus-soybean/src/views/analy/feed-match/modules/feed-match-operate-drawer.vue |  222 +++++++++++++++++++++++++++++++------------------------
 1 files changed, 126 insertions(+), 96 deletions(-)

diff --git a/ruoyi-plus-soybean/src/views/analy/feed-match/modules/feed-match-operate-drawer.vue b/ruoyi-plus-soybean/src/views/analy/feed-match/modules/feed-match-operate-drawer.vue
index 77b0221..8f41345 100644
--- a/ruoyi-plus-soybean/src/views/analy/feed-match/modules/feed-match-operate-drawer.vue
+++ b/ruoyi-plus-soybean/src/views/analy/feed-match/modules/feed-match-operate-drawer.vue
@@ -45,45 +45,41 @@
 
 function createDefaultModel(): Model {
   return {
-      time: null,
-      key: '',
-      dacUpTime: '',
-      fs11: '',
-      fs12: '',
-      fs21: '',
-      fs22: '',
-      fs31: '',
-      fs32: '',
-      fs41: '',
-      fs42: '',
-      pipe01: null,
-      pipe02: null,
-      pipe03: null,
-      pipe04: null,
-      pipe05: null,
-      pipe06: null,
-      pipe07: null,
-      pipe08: null,
-      pipe09: null,
-      pipe10: null,
-      pipe11: null,
-      pipe12: null,
-      wsjState: null,
-      shift: null,
-      equNo: null,
-      remark: ''
+    time: null,
+    key: '',
+    dacUpTime: '',
+    fs11: '',
+    fs12: '',
+    fs21: '',
+    fs22: '',
+    fs31: '',
+    fs32: '',
+    fs41: '',
+    fs42: '',
+    pipe01: null,
+    pipe02: null,
+    pipe03: null,
+    pipe04: null,
+    pipe05: null,
+    pipe06: null,
+    pipe07: null,
+    pipe08: null,
+    pipe09: null,
+    pipe10: null,
+    pipe11: null,
+    pipe12: null,
+    wsjState: null,
+    shift: null,
+    equNo: null,
+    remark: ''
   };
 }
 
-type RuleKey = Extract<
-  keyof Model,
-  | 'time'
-  | 'key'
->;
+type RuleKey = Extract<keyof Model, 'time' | 'key'>;
 
 const rules: Record<RuleKey, App.Global.FormRule> = {
   time: createRequiredRule('鏃堕棿鎴充笉鑳戒负绌�'),
-  key: createRequiredRule('鐝+鏈哄彴涓嶈兘涓虹┖'),
+  key: createRequiredRule('鐝+鏈哄彴涓嶈兘涓虹┖')
 };
 
 function handleUpdateModelWhenEdit() {
@@ -101,16 +97,100 @@
 async function handleSubmit() {
   await validate();
 
-  const { time, key, dacUpTime, fs11, fs12, fs21, fs22, fs31, fs32, fs41, fs42, pipe01, pipe02, pipe03, pipe04, pipe05, pipe06, pipe07, pipe08, pipe09, pipe10, pipe11, pipe12, wsjState, shift, equNo, remark } = model.value;
+  const {
+    time,
+    key,
+    dacUpTime,
+    fs11,
+    fs12,
+    fs21,
+    fs22,
+    fs31,
+    fs32,
+    fs41,
+    fs42,
+    pipe01,
+    pipe02,
+    pipe03,
+    pipe04,
+    pipe05,
+    pipe06,
+    pipe07,
+    pipe08,
+    pipe09,
+    pipe10,
+    pipe11,
+    pipe12,
+    wsjState,
+    shift,
+    equNo,
+    remark
+  } = model.value;
 
   // request
   if (props.operateType === 'add') {
-    const { error } = await fetchCreateFeedMatch({ time, key, dacUpTime, fs11, fs12, fs21, fs22, fs31, fs32, fs41, fs42, pipe01, pipe02, pipe03, pipe04, pipe05, pipe06, pipe07, pipe08, pipe09, pipe10, pipe11, pipe12, wsjState, shift, equNo, remark });
+    const { error } = await fetchCreateFeedMatch({
+      time,
+      key,
+      dacUpTime,
+      fs11,
+      fs12,
+      fs21,
+      fs22,
+      fs31,
+      fs32,
+      fs41,
+      fs42,
+      pipe01,
+      pipe02,
+      pipe03,
+      pipe04,
+      pipe05,
+      pipe06,
+      pipe07,
+      pipe08,
+      pipe09,
+      pipe10,
+      pipe11,
+      pipe12,
+      wsjState,
+      shift,
+      equNo,
+      remark
+    });
     if (error) return;
   }
 
   if (props.operateType === 'edit') {
-    const { error } = await fetchUpdateFeedMatch({ time, key, dacUpTime, fs11, fs12, fs21, fs22, fs31, fs32, fs41, fs42, pipe01, pipe02, pipe03, pipe04, pipe05, pipe06, pipe07, pipe08, pipe09, pipe10, pipe11, pipe12, wsjState, shift, equNo, remark });
+    const { error } = await fetchUpdateFeedMatch({
+      time,
+      key,
+      dacUpTime,
+      fs11,
+      fs12,
+      fs21,
+      fs22,
+      fs31,
+      fs32,
+      fs41,
+      fs42,
+      pipe01,
+      pipe02,
+      pipe03,
+      pipe04,
+      pipe05,
+      pipe06,
+      pipe07,
+      pipe08,
+      pipe09,
+      pipe10,
+      pipe11,
+      pipe12,
+      wsjState,
+      shift,
+      equNo,
+      remark
+    });
     if (error) return;
   }
 
@@ -140,84 +220,34 @@
           />
         </NFormItem>
         <NFormItem label="鐝+鏈哄彴" path="key">
-          <NInput
-            v-model:value="model.key"
-            :rows="3"
-            type="textarea"
-            placeholder="璇疯緭鍏ョ彮娆�+鏈哄彴"
-          />
+          <NInput v-model:value="model.key" :rows="3" type="textarea" placeholder="璇疯緭鍏ョ彮娆�+鏈哄彴" />
         </NFormItem>
         <NFormItem label="鏁版嵁鏇存柊鏃堕棿" path="dacUpTime">
-          <NInput
-            v-model:value="model.dacUpTime"
-            :rows="3"
-            type="textarea"
-            placeholder="璇疯緭鍏ユ暟鎹洿鏂版椂闂�"
-          />
+          <NInput v-model:value="model.dacUpTime" :rows="3" type="textarea" placeholder="璇疯緭鍏ユ暟鎹洿鏂版椂闂�" />
         </NFormItem>
         <NFormItem label="1#鍠備笣鏈哄搴旂殑绗竴涓偍涓濇煖" path="fs11">
-          <NInput
-            v-model:value="model.fs11"
-            :rows="3"
-            type="textarea"
-            placeholder="璇疯緭鍏�1#鍠備笣鏈哄搴旂殑绗竴涓偍涓濇煖"
-          />
+          <NInput v-model:value="model.fs11" :rows="3" type="textarea" placeholder="璇疯緭鍏�1#鍠備笣鏈哄搴旂殑绗竴涓偍涓濇煖" />
         </NFormItem>
         <NFormItem label="1#鍠備笣鏈哄搴旂殑绗簩涓偍涓濇煖" path="fs12">
-          <NInput
-            v-model:value="model.fs12"
-            :rows="3"
-            type="textarea"
-            placeholder="璇疯緭鍏�1#鍠備笣鏈哄搴旂殑绗簩涓偍涓濇煖"
-          />
+          <NInput v-model:value="model.fs12" :rows="3" type="textarea" placeholder="璇疯緭鍏�1#鍠備笣鏈哄搴旂殑绗簩涓偍涓濇煖" />
         </NFormItem>
         <NFormItem label="2#鍠備笣鏈哄搴旂殑绗竴涓偍涓濇煖" path="fs21">
-          <NInput
-            v-model:value="model.fs21"
-            :rows="3"
-            type="textarea"
-            placeholder="璇疯緭鍏�2#鍠備笣鏈哄搴旂殑绗竴涓偍涓濇煖"
-          />
+          <NInput v-model:value="model.fs21" :rows="3" type="textarea" placeholder="璇疯緭鍏�2#鍠備笣鏈哄搴旂殑绗竴涓偍涓濇煖" />
         </NFormItem>
         <NFormItem label="2#鍠備笣鏈哄搴旂殑绗簩涓偍涓濇煖" path="fs22">
-          <NInput
-            v-model:value="model.fs22"
-            :rows="3"
-            type="textarea"
-            placeholder="璇疯緭鍏�2#鍠備笣鏈哄搴旂殑绗簩涓偍涓濇煖"
-          />
+          <NInput v-model:value="model.fs22" :rows="3" type="textarea" placeholder="璇疯緭鍏�2#鍠備笣鏈哄搴旂殑绗簩涓偍涓濇煖" />
         </NFormItem>
         <NFormItem label="3#鍠備笣鏈哄搴旂殑绗竴涓偍涓濇煖" path="fs31">
-          <NInput
-            v-model:value="model.fs31"
-            :rows="3"
-            type="textarea"
-            placeholder="璇疯緭鍏�3#鍠備笣鏈哄搴旂殑绗竴涓偍涓濇煖"
-          />
+          <NInput v-model:value="model.fs31" :rows="3" type="textarea" placeholder="璇疯緭鍏�3#鍠備笣鏈哄搴旂殑绗竴涓偍涓濇煖" />
         </NFormItem>
         <NFormItem label="3#鍠備笣鏈哄搴旂殑绗簩涓偍涓濇煖" path="fs32">
-          <NInput
-            v-model:value="model.fs32"
-            :rows="3"
-            type="textarea"
-            placeholder="璇疯緭鍏�3#鍠備笣鏈哄搴旂殑绗簩涓偍涓濇煖"
-          />
+          <NInput v-model:value="model.fs32" :rows="3" type="textarea" placeholder="璇疯緭鍏�3#鍠備笣鏈哄搴旂殑绗簩涓偍涓濇煖" />
         </NFormItem>
         <NFormItem label="4#鍠備笣鏈哄搴旂殑绗竴涓偍涓濇煖" path="fs41">
-          <NInput
-            v-model:value="model.fs41"
-            :rows="3"
-            type="textarea"
-            placeholder="璇疯緭鍏�4#鍠備笣鏈哄搴旂殑绗竴涓偍涓濇煖"
-          />
+          <NInput v-model:value="model.fs41" :rows="3" type="textarea" placeholder="璇疯緭鍏�4#鍠備笣鏈哄搴旂殑绗竴涓偍涓濇煖" />
         </NFormItem>
         <NFormItem label="4#鍠備笣鏈哄搴旂殑绗簩涓偍涓濇煖" path="fs42">
-          <NInput
-            v-model:value="model.fs42"
-            :rows="3"
-            type="textarea"
-            placeholder="璇疯緭鍏�4#鍠備笣鏈哄搴旂殑绗簩涓偍涓濇煖"
-          />
+          <NInput v-model:value="model.fs42" :rows="3" type="textarea" placeholder="璇疯緭鍏�4#鍠備笣鏈哄搴旂殑绗簩涓偍涓濇煖" />
         </NFormItem>
         <NFormItem label="1#鏈虹粍瀵瑰簲鐨勫杺涓濇満鍜岀閬�" path="pipe01">
           <NInput v-model:value="model.pipe01" placeholder="璇疯緭鍏�1#鏈虹粍瀵瑰簲鐨勫杺涓濇満鍜岀閬�" />

--
Gitblit v1.9.3