From 443767a83e5158a918c785f0a6ee2a5c6744fe25 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周二, 13 5月 2025 06:44:22 +0800
Subject: [PATCH] 第一版提交

---
 Weben_CMS专用代码生成器/Weben_CMS_TemplateDemo/templatedemo_web/src/utils/commonOptionConstants.js                             |    5 +++++
 Weben_CMS专用代码生成器/Weben_CMS_TemplateDemo/templatedemo_web/src/components/DyFormForHighQuery/DyFormForHighQueryOptions.js |   19 +++++++++++++++++++
 Weben_CMS专用代码生成器/Weben_CMS_TemplateDemo/templatedemo_web/src/widgets/WmsMaterial/Controllers/WmsMaterialQueryDrawer.tsx |   19 +++++++++++++++++--
 3 files changed, 41 insertions(+), 2 deletions(-)

diff --git "a/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Weben_CMS_TemplateDemo/templatedemo_web/src/components/DyFormForHighQuery/DyFormForHighQueryOptions.js" "b/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Weben_CMS_TemplateDemo/templatedemo_web/src/components/DyFormForHighQuery/DyFormForHighQueryOptions.js"
new file mode 100644
index 0000000..e70f08b
--- /dev/null
+++ "b/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Weben_CMS_TemplateDemo/templatedemo_web/src/components/DyFormForHighQuery/DyFormForHighQueryOptions.js"
@@ -0,0 +1,19 @@
+// 瀛楃涓茬被鏌ヨ
+export const FILTER_MODE_OPTIONS_STRING = [
+    { label: '妯$硦鏌ヨ', value: 1 },
+    { label: '绮惧噯鏌ヨ', value: 2 },
+  ];
+  // 鏁板瓧绫绘煡璇�
+export const FILTER_MODE_OPTIONS_NUM = [
+    { label: '绮惧噯鏌ヨ', value: 2 },
+    { label: '澶т簬绛変簬', value: 3 },
+    { label: '灏忎簬绛変簬', value: 4 },
+    { label: '澶т簬', value: 5 },
+    { label: '灏忎簬', value: 6 },
+    { label: '涓嶇瓑浜�', value: 7 },
+  ];
+    // bool鏌ヨ
+export const FILTER_MODE_OPTIONS_BOOL = [
+    { label: '绮惧噯鏌ヨ', value: 2 },
+    { label: '涓嶇瓑浜�', value: 7 },
+  ];
diff --git "a/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Weben_CMS_TemplateDemo/templatedemo_web/src/utils/commonOptionConstants.js" "b/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Weben_CMS_TemplateDemo/templatedemo_web/src/utils/commonOptionConstants.js"
new file mode 100644
index 0000000..5bb488c
--- /dev/null
+++ "b/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Weben_CMS_TemplateDemo/templatedemo_web/src/utils/commonOptionConstants.js"
@@ -0,0 +1,5 @@
+// 鏄� 鍚�
+  export const BOOLEAN_OPTIONS = [
+    { label: '鏄�', value: true },
+    { label: '鍚�', value: false },
+  ];
diff --git "a/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Weben_CMS_TemplateDemo/templatedemo_web/src/widgets/WmsMaterial/Controllers/WmsMaterialQueryDrawer.tsx" "b/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Weben_CMS_TemplateDemo/templatedemo_web/src/widgets/WmsMaterial/Controllers/WmsMaterialQueryDrawer.tsx"
index 3ee0c8d..72b5535 100644
--- "a/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Weben_CMS_TemplateDemo/templatedemo_web/src/widgets/WmsMaterial/Controllers/WmsMaterialQueryDrawer.tsx"
+++ "b/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Weben_CMS_TemplateDemo/templatedemo_web/src/widgets/WmsMaterial/Controllers/WmsMaterialQueryDrawer.tsx"
@@ -14,6 +14,15 @@
 import isEqual from 'lodash/isEqual' 
 import { ConfirmBox } from '@/components/ConfirmBox/ConfirmBox' 
 import { cloneDeep } from 'lodash' 
+// 寮曞叆鍏叡閫夐」閰嶇疆
+import { 
+  FILTER_MODE_OPTIONS_STRING, 
+  FILTER_MODE_OPTIONS_NUM,
+  FILTER_MODE_OPTIONS_BOOL
+} from '@/components/DyFormForHighQuery/DyFormForHighQueryOptions';
+import { 
+  BOOLEAN_OPTIONS
+} from '@/utils/commonOptionConstants';
  
 export const useWmsMaterialQueryDrawer = (props: any, ctx?: any) => { 
   const wmsMaterialDrawer = injectModel<WmsMaterialDrawer>('WmsMaterialDrawer') 
@@ -88,7 +97,7 @@
                      prop: 'materialCode_FilterMode',
                      el: 'select', 
                      placeholder: '璇烽�夋嫨', 
-                     options:[{label: '妯$硦鏌ヨ',value: 1}, {label: '绮惧噯鏌ヨ',value: 2}],
+                     options:FILTER_MODE_OPTIONS_STRING,
                    }
                 }, 
                 { 
@@ -112,6 +121,12 @@
                 { 
                    label: '鏁伴噺', 
                    prop: 'num', 
+                   highSelectAttrs:{
+                    prop: 'num_FilterMode',
+                    el: 'select', 
+                    placeholder: '璇烽�夋嫨', 
+                    options:FILTER_MODE_OPTIONS_NUM,
+                  },
                    el: (props: any, { attrs }: SetupContext) => { 
                      return h(inputNumber, {  
                        ...props,  
@@ -305,7 +320,7 @@
                    el: 'select', 
                    //disabled: disabled, 
                    placeholder: '璇疯緭鍏ユ槸鍚︾鐢�', 
-                 options: [{label: '鏄�',value: true}, {label: '鍚�',value: false}] 
+                 options:BOOLEAN_OPTIONS
                 }, 
                 { 
                    label: '鎵╁睍灞炴��', 

--
Gitblit v1.9.3