From 4456f43c6c73185a9f7ce46cdcdf94ab2053f02e Mon Sep 17 00:00:00 2001
From: zs <zhousong@weben-smart.com>
Date: 周三, 07 5月 2025 14:19:43 +0800
Subject: [PATCH] 修改生成器及出入库记录页面

---
 HIAWms/web/src/widgets/WmsInOutStockRecord/Views/WmsInOutStockRecord.tsx |  160 ++++++++++++++++++++++++++--------------------------
 1 files changed, 80 insertions(+), 80 deletions(-)

diff --git a/HIAWms/web/src/widgets/WmsInOutStockRecord/Views/WmsInOutStockRecord.tsx b/HIAWms/web/src/widgets/WmsInOutStockRecord/Views/WmsInOutStockRecord.tsx
index 0ad15f2..39abbb5 100644
--- a/HIAWms/web/src/widgets/WmsInOutStockRecord/Views/WmsInOutStockRecord.tsx
+++ b/HIAWms/web/src/widgets/WmsInOutStockRecord/Views/WmsInOutStockRecord.tsx
@@ -1,80 +1,80 @@
-import {
-  Component,
-  DefineComponent,
-  defineComponent,
-  markRaw,
-  ref,
-  SetupContext,
-  onMounted,
-} from 'vue'
-import styles from './WmsInOutStockRecord.module.scss'
-import Tab from '@/components/Tab/Tab'
-import { useProvideModels } from '@/libs/Provider/app'
-import { usePermission } from '@/libs/Permission/Permission'
-import { permissionCodes } from '../enum'
-import { ModuleType, TabItem } from '../type/Type'
-import { getEntityNames } from '@/hooks/hook'
-import TabPane from '@/components/Tab/TabPane'
-
-const Models: ModuleType = import.meta.glob('./config/*.json', {
-  eager: true,
-})
-
-const entityNames = getEntityNames(Models)
-
-const nameToLabelMap = [{ name: 'WmsInOutStockRecord', label: '鍑哄叆搴撹褰�' }]
-
-export default defineComponent({
-  name: 'WmsInOutStockRecord',
-
-  setup(props, ctx: SetupContext) {
-    useProvideModels()
-    usePermission(props, permissionCodes)
-
-    const rf = ref<{
-      [key: string]: any
-    }>({})
-
-    const tabData = ref<TabItem[]>([])
-
-    const onTabChange = (v: string) => {
-      rf.value?.[v]?.reloadList()
-    }
-
-    const initTableData = async () => {
-      for (const i in entityNames) {
-        const name = entityNames[i]
-        const module = await import(`./Pages/${name}/${name}.tsx`)
-        const WmsInOutStockRecord = markRaw(module.default)
-        const foundLabel =
-          nameToLabelMap.find((item) => item.name === name)?.label || name
-        tabData.value.push({
-          label: foundLabel,
-          name,
-          component: WmsInOutStockRecord,
-        })
-      }
-    }
-
-    initTableData()
-
-    return () => {
-      return (
-        <div class={styles.WmsInOutStockRecord}>
-          <Tab data={tabData.value} type="list" onTab={onTabChange}>
-            {tabData.value.map((widgetInfo) => {
-              const Widget: any = widgetInfo.component
-              return (
-                <TabPane label={widgetInfo.label} name={widgetInfo.name}>
-                  <Widget
-                    ref={(r: any) => (rf.value['WmsInOutStockRecord'] = r)}
-                  ></Widget>
-                </TabPane>
-              )
-            })}
-          </Tab>
-        </div>
-      )
-    }
-  },
-})
+import { 
+  Component, 
+  DefineComponent, 
+  defineComponent, 
+  markRaw, 
+  ref, 
+  SetupContext, 
+  onMounted, 
+} from 'vue' 
+import styles from './WmsInOutStockRecord.module.scss' 
+import Tab from '@/components/Tab/Tab' 
+import { useProvideModels } from '@/libs/Provider/app' 
+import { usePermission } from '@/libs/Permission/Permission' 
+import { permissionCodes } from '../enum' 
+import { ModuleType, TabItem } from '../type/Type' 
+import { getEntityNames } from '@/hooks/hook' 
+import TabPane from '@/components/Tab/TabPane' 
+ 
+const Models: ModuleType = import.meta.glob('./config/*.json', { 
+  eager: true, 
+}) 
+ 
+const entityNames = getEntityNames(Models) 
+ 
+const nameToLabelMap = [{ name: 'WmsInOutStockRecord', label: '鍑哄叆搴撹褰�' }] 
+ 
+export default defineComponent({ 
+  name: 'WmsInOutStockRecord', 
+ 
+  setup(props, ctx: SetupContext) { 
+    useProvideModels() 
+    usePermission(props, permissionCodes) 
+ 
+    const rf = ref<{ 
+      [key: string]: any 
+    }>({}) 
+ 
+    const tabData = ref<TabItem[]>([]) 
+ 
+    const onTabChange = (v: string) => { 
+      rf.value?.[v]?.reloadList() 
+    } 
+ 
+    const initTableData = async () => { 
+      for (const i in entityNames) { 
+        const name = entityNames[i] 
+        const module = await import(`./Pages/${name}/${name}.tsx`) 
+        const WmsInOutStockRecord = markRaw(module.default) 
+        const foundLabel = 
+          nameToLabelMap.find((item) => item.name === name)?.label || name 
+        tabData.value.push({ 
+          label: foundLabel, 
+          name, 
+          component: WmsInOutStockRecord, 
+        }) 
+      } 
+    } 
+ 
+    initTableData() 
+ 
+    return () => { 
+      return ( 
+        <div class={styles.WmsInOutStockRecord}> 
+          <Tab data={tabData.value} type="list" onTab={onTabChange}> 
+            {tabData.value.map((widgetInfo) => { 
+              const Widget: any = widgetInfo.component 
+              return ( 
+                <TabPane label={widgetInfo.label} name={widgetInfo.name}> 
+                  <Widget 
+                    ref={(r: any) => (rf.value['WmsInOutStockRecord'] = r)} 
+                  ></Widget> 
+                </TabPane> 
+              ) 
+            })} 
+          </Tab> 
+        </div> 
+      ) 
+    } 
+  }, 
+}) 

--
Gitblit v1.9.3