From 3500a34fc17827eef64ca0b7e4b2a3121b24ab5b Mon Sep 17 00:00:00 2001
From: zs <zhousong@weben-smart.com>
Date: 周二, 29 4月 2025 17:33:29 +0800
Subject: [PATCH] 去掉生成的代码
---
HIAWms/web/src/widgets/HIAWms/Views/Pages/WmsMaterial/Config.ts | 86 +++++++++++++++++++++++++++++++++++++++++++
1 files changed, 86 insertions(+), 0 deletions(-)
diff --git a/HIAWms/web/src/widgets/HIAWms/Views/Pages/WmsMaterial/Config.ts b/HIAWms/web/src/widgets/HIAWms/Views/Pages/WmsMaterial/Config.ts
new file mode 100644
index 0000000..7b9e98c
--- /dev/null
+++ b/HIAWms/web/src/widgets/HIAWms/Views/Pages/WmsMaterial/Config.ts
@@ -0,0 +1,86 @@
+export const columns = [
+ {
+ type: 'seq',
+ width: 60,
+ title: '搴忓彿',
+ },
+ {
+ field: 'materialCode',
+ title: '鐗╂枡缂栫爜',
+ },
+ {
+ field: 'materialName',
+ title: '鐗╂枡鍚嶇О',
+ },
+ {
+ field: 'purchaseType',
+ title: '閲囪喘绫诲瀷',
+ formatter: ({ cellValue }) => {
+ // You'll need to map the enum values to display text
+ const purchaseTypeMap = {
+ 0: '绫诲瀷1',
+ 1: '绫诲瀷2',
+ // Add all enum values
+ }
+ return purchaseTypeMap[cellValue] || cellValue
+ },
+ },
+ {
+ field: 'materialType',
+ title: '鐗╂枡绫诲瀷',
+ formatter: ({ cellValue }) => {
+ // Map material type enum to display text
+ const materialTypeMap = {
+ 0: '绫诲瀷A',
+ 1: '绫诲瀷B',
+ // Add all enum values
+ }
+ return materialTypeMap[cellValue] || cellValue
+ },
+ },
+ {
+ field: 'primaryUnit',
+ title: '涓诲崟浣�',
+ },
+ {
+ field: 'standard',
+ title: '瑙勬牸/鏍囧噯',
+ },
+ {
+ field: 'outerDiameter',
+ title: '澶栧緞(mm)',
+ },
+ {
+ field: 'wallThickness',
+ title: '澹佸帤(mm)',
+ },
+ {
+ field: 'materialQuality',
+ title: '鏉愯川',
+ },
+ {
+ field: 'length',
+ title: '闀垮害(m)',
+ },
+ {
+ field: 'isMainBranch',
+ title: '涓绘敮绠�',
+ formatter: ({ cellValue }) => (cellValue ? '鏄�' : '鍚�'),
+ },
+ {
+ field: 'factory',
+ title: '鐢熶骇宸ュ巶',
+ },
+ {
+ field: 'certification',
+ title: '璇佷功缂栧彿',
+ },
+ {
+ field: 'sort',
+ title: '鎺掑簭',
+ },
+ {
+ field: 'remark',
+ title: '澶囨敞',
+ },
+]
--
Gitblit v1.9.3