Ben Lin
2025-02-25 fee83fc57f553595cc3a4891b8a692fa66cd77fe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
/*
 * @Description: file content
 * @Author: Ben Lin
 * @version:
 * @Date: 2024-06-18 15:09:48
 * @LastEditors: Ben Lin
 * @LastEditTime: 2024-07-17 11:12:34
 */
import { BasicColumn, FormSchema } from '/@/components/Table';
 
//列表显示
export const dtlColumns: BasicColumn[] = [
  {
    title: '字段名',
    dataIndex: 'FieldName',
    ifShow: false,
    width: 180,
  },
];
 
/**
 * @description: 查询字段结构
 * @return {*}
 */
export const newFormSchema: FormSchema[] = [
  {
    field: 'ASSEMBLY_NAME',
    label: '实体类名',
    component: 'Input',
    colProps: { span: 8 },
  },
  {
    field: '00',
    component: 'Input',
    label: '1',
    colSlot: 'add',
    colProps: {
      span: 2,
    },
  },
  {
    field: '0',
    component: 'Input',
    label: '1',
    colSlot: 'condAdd',
    colProps: {
      span: 4,
    },
  },
  {
    field: 'IsSearch',
    label: '是否查询',
    component: 'Select',
    defaultValue: 'Y',
    colProps: { span: 8 },
    componentProps: ({ schema, tableAction, formActionType, formModel }) => {
      return {
        options: [
          {
            label: '是',
            value: 'Y',
          },
          {
            label: '否',
            value: 'N',
          },
        ],
        onChange: (e) => {
            
        },
      };
    },
  },
];
 
/**
 * @description: 增删改字段结构
 * @return {*}
 */
export const crudSchemas: FormSchema[] = [
  {
    field: 'crudAssemblyName',
    label: '实体类名',
    component: 'Input',
    colProps: { span: 8 },
  },
  {
    field: '00',
    component: 'Input',
    label: '1',
    colSlot: 'add',
    colProps: {
      span: 2,
    },
  },
  {
    field: '0',
    component: 'Input',
    label: '1',
    colSlot: 'crudCondAdd',
    colProps: {
      span: 10,
    },
  },
];
 
/**
 * @description: 表格字段结构
 * @return {*}
 */
export const mainSchemas: FormSchema[] = [
  {
    field: 'CODE_NAME',
    label: '代码名称',
    component: 'Input',
    colProps: { span: 12 },
  },
  {
    field: 'MainAssemblyName',
    label: '实体类名',
    component: 'Input',
    colProps: { span: 10 },
  },
  {
    field: '00',
    component: 'Input',
    label: '1',
    colSlot: 'add',
    colProps: {
      span: 2,
    },
  },
  {
    field: 'BY_ORG',
    label: '是否按组织查询',
    component: 'Select',
    defaultValue: 'N',
    colProps: { span: 7 },
    componentProps: {
      options: [
        {
          label: '是',
          value: 'Y',
        },
        {
          label: '否',
          value: 'N',
        },
      ],
    },
  },
  {
    field: 'BY_PROD',
    label: '是否按工厂查询',
    component: 'Select',
    defaultValue: 'N',
    colProps: { span: 7 },
    componentProps: {
      options: [
        {
          label: '是',
          value: 'Y',
        },
        {
          label: '否',
          value: 'N',
        },
      ],
    },
  },
  {
    field: 'BY_WH',
    label: '是否按仓库查询',
    component: 'Select',
    defaultValue: 'N',
    colProps: { span: 7 },
    componentProps: {
      options: [
        {
          label: '是',
          value: 'Y',
        },
        {
          label: '否',
          value: 'N',
        },
      ],
    },
  },
  {
    field: '0',
    component: 'Input',
    label: '1',
    colSlot: 'mainCondAdd',
    colProps: {
      span: 3,
    },
  },
];