|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+import type { FormSchemaGetter } from '#/adapter/form';
|
|
|
2
|
+import type { VxeGridProps } from '#/adapter/vxe-table';
|
|
|
3
|
+
|
|
|
4
|
+// 访客新增数据类型定义
|
|
|
5
|
+export interface VisitorAddData {
|
|
|
6
|
+ id: number;
|
|
|
7
|
+ taskName: string; // 任务名称
|
|
|
8
|
+ station: string; // 油站
|
|
|
9
|
+ executor: string; // 执行人
|
|
|
10
|
+ position: string; // 岗位
|
|
|
11
|
+ comment: string; // 评论
|
|
|
12
|
+ deadline: string; // 截止时间
|
|
|
13
|
+ processTime: string; // 处理时间
|
|
|
14
|
+ status: string; // 完成状态
|
|
|
15
|
+ creator: string; // 创建人
|
|
|
16
|
+}
|
|
|
17
|
+
|
|
|
18
|
+// 访客新增表格配置
|
|
|
19
|
+export const tableColumns: VxeGridProps['columns'] = [
|
|
|
20
|
+ { title: '任务名称', field: 'taskName', minWidth: 150, align: 'center' },
|
|
|
21
|
+ { title: '油站', field: 'station', minWidth: 120, align: 'center' },
|
|
|
22
|
+ { title: '执行人', field: 'executor', minWidth: 100, align: 'center' },
|
|
|
23
|
+ { title: '岗位', field: 'position', minWidth: 100, align: 'center' },
|
|
|
24
|
+ { title: '评论', field: 'comment', minWidth: 150, align: 'center' },
|
|
|
25
|
+ { title: '截止时间', field: 'deadline', minWidth: 150, align: 'center' },
|
|
|
26
|
+ { title: '处理时间', field: 'processTime', minWidth: 150, align: 'center' },
|
|
|
27
|
+ { title: '完成状态', field: 'status', minWidth: 100, align: 'center' },
|
|
|
28
|
+ { title: '创建人', field: 'creator', minWidth: 100, align: 'center' },
|
|
|
29
|
+ {
|
|
|
30
|
+ title: '操作',
|
|
|
31
|
+ minWidth: 100,
|
|
|
32
|
+ align: 'center',
|
|
|
33
|
+ fixed: 'right',
|
|
|
34
|
+ slots: {
|
|
|
35
|
+ default: 'action',
|
|
|
36
|
+ },
|
|
|
37
|
+ },
|
|
|
38
|
+];
|
|
|
39
|
+
|
|
|
40
|
+// 访客新增虚拟数据
|
|
|
41
|
+export const WORK_REPORT_MOCK_DATA: VisitorAddData[] = [
|
|
|
42
|
+ {
|
|
|
43
|
+ id: 1,
|
|
|
44
|
+ taskName: '访客信息录入',
|
|
|
45
|
+ station: '北京东加油站',
|
|
|
46
|
+ executor: '张三',
|
|
|
47
|
+ position: '站长',
|
|
|
48
|
+ comment: '已完成访客信息录入',
|
|
|
49
|
+ deadline: '2024-01-15 18:00:00',
|
|
|
50
|
+ processTime: '2024-01-15 16:30:00',
|
|
|
51
|
+ status: '已完成',
|
|
|
52
|
+ creator: '李四',
|
|
|
53
|
+ },
|
|
|
54
|
+ {
|
|
|
55
|
+ id: 2,
|
|
|
56
|
+ taskName: '访客权限设置',
|
|
|
57
|
+ station: '北京西加油站',
|
|
|
58
|
+ executor: '王五',
|
|
|
59
|
+ position: '安全员',
|
|
|
60
|
+ comment: '已为访客设置临时权限',
|
|
|
61
|
+ deadline: '2024-01-16 12:00:00',
|
|
|
62
|
+ processTime: '2024-01-16 10:45:00',
|
|
|
63
|
+ status: '已完成',
|
|
|
64
|
+ creator: '赵六',
|
|
|
65
|
+ },
|
|
|
66
|
+ {
|
|
|
67
|
+ id: 3,
|
|
|
68
|
+ taskName: '访客引导服务',
|
|
|
69
|
+ station: '机场油站',
|
|
|
70
|
+ executor: '孙七',
|
|
|
71
|
+ position: '服务员',
|
|
|
72
|
+ comment: '已完成访客引导',
|
|
|
73
|
+ deadline: '2024-01-17 14:00:00',
|
|
|
74
|
+ processTime: '2024-01-17 13:20:00',
|
|
|
75
|
+ status: '已完成',
|
|
|
76
|
+ creator: '周八',
|
|
|
77
|
+ },
|
|
|
78
|
+ {
|
|
|
79
|
+ id: 4,
|
|
|
80
|
+ taskName: '访客记录归档',
|
|
|
81
|
+ station: '北京南加油站',
|
|
|
82
|
+ executor: '吴九',
|
|
|
83
|
+ position: '资料员',
|
|
|
84
|
+ comment: '正在整理访客记录',
|
|
|
85
|
+ deadline: '2024-01-18 17:00:00',
|
|
|
86
|
+ processTime: '',
|
|
|
87
|
+ status: '进行中',
|
|
|
88
|
+ creator: '郑十',
|
|
|
89
|
+ },
|
|
|
90
|
+ {
|
|
|
91
|
+ id: 5,
|
|
|
92
|
+ taskName: '访客车辆登记',
|
|
|
93
|
+ station: '北京北加油站',
|
|
|
94
|
+ executor: '冯一',
|
|
|
95
|
+ position: '保安',
|
|
|
96
|
+ comment: '已完成车辆登记',
|
|
|
97
|
+ deadline: '2024-01-19 09:00:00',
|
|
|
98
|
+ processTime: '2024-01-19 08:30:00',
|
|
|
99
|
+ status: '已完成',
|
|
|
100
|
+ creator: '陈二',
|
|
|
101
|
+ },
|
|
|
102
|
+ {
|
|
|
103
|
+ id: 6,
|
|
|
104
|
+ taskName: '访客培训',
|
|
|
105
|
+ station: '龙飞虎加油站',
|
|
|
106
|
+ executor: '褚三',
|
|
|
107
|
+ position: '培训员',
|
|
|
108
|
+ comment: '已安排访客培训',
|
|
|
109
|
+ deadline: '2024-01-20 15:00:00',
|
|
|
110
|
+ processTime: '',
|
|
|
111
|
+ status: '进行中',
|
|
|
112
|
+ creator: '卫四',
|
|
|
113
|
+ },
|
|
|
114
|
+ {
|
|
|
115
|
+ id: 7,
|
|
|
116
|
+ taskName: '访客离场确认',
|
|
|
117
|
+ station: '法站加油站',
|
|
|
118
|
+ executor: '蒋五',
|
|
|
119
|
+ position: '管理员',
|
|
|
120
|
+ comment: '已确认访客离场',
|
|
|
121
|
+ deadline: '2024-01-21 11:00:00',
|
|
|
122
|
+ processTime: '2024-01-21 10:15:00',
|
|
|
123
|
+ status: '已完成',
|
|
|
124
|
+ creator: '沈六',
|
|
|
125
|
+ },
|
|
|
126
|
+ {
|
|
|
127
|
+ id: 8,
|
|
|
128
|
+ taskName: '访客满意度调查',
|
|
|
129
|
+ station: '河北油站',
|
|
|
130
|
+ executor: '韩七',
|
|
|
131
|
+ position: '客服',
|
|
|
132
|
+ comment: '正在收集满意度反馈',
|
|
|
133
|
+ deadline: '2024-01-22 16:00:00',
|
|
|
134
|
+ processTime: '',
|
|
|
135
|
+ status: '进行中',
|
|
|
136
|
+ creator: '杨八',
|
|
|
137
|
+ },
|
|
|
138
|
+];
|
|
|
139
|
+
|
|
|
140
|
+export const queryFormSchema: FormSchemaGetter = () => QUERY_FORM_SCHEMA;
|
|
|
141
|
+
|
|
|
142
|
+// 查询表单模式配置
|
|
|
143
|
+const QUERY_FORM_SCHEMA = [
|
|
|
144
|
+ {
|
|
|
145
|
+ component: 'Select',
|
|
|
146
|
+ fieldName: 'area',
|
|
|
147
|
+ label: '片区',
|
|
|
148
|
+ componentProps: {
|
|
|
149
|
+ placeholder: '请选择片区',
|
|
|
150
|
+ options: [
|
|
|
151
|
+ { label: '默认片区', value: '默认片区' },
|
|
|
152
|
+ { label: '片区1', value: '片区1' },
|
|
|
153
|
+ { label: '片区2', value: '片区2' },
|
|
|
154
|
+ { label: '片区3', value: '片区3' },
|
|
|
155
|
+ ],
|
|
|
156
|
+ },
|
|
|
157
|
+ },
|
|
|
158
|
+ {
|
|
|
159
|
+ component: 'Select',
|
|
|
160
|
+ fieldName: 'station',
|
|
|
161
|
+ label: '油站',
|
|
|
162
|
+ componentProps: {
|
|
|
163
|
+ placeholder: '请选择油站',
|
|
|
164
|
+ options: [
|
|
|
165
|
+ { label: '机场油站', value: '机场油站' },
|
|
|
166
|
+ { label: '北京东加油站', value: '北京东加油站' },
|
|
|
167
|
+ { label: '北京西加油站', value: '北京西加油站' },
|
|
|
168
|
+ { label: '北京南加油站', value: '北京南加油站' },
|
|
|
169
|
+ { label: '北京北加油站', value: '北京北加油站' },
|
|
|
170
|
+ { label: '河北油站', value: '河北油站' },
|
|
|
171
|
+ { label: '龙飞虎加油站', value: '龙飞虎加油站' },
|
|
|
172
|
+ { label: '法站加油站', value: '法站加油站' },
|
|
|
173
|
+ ],
|
|
|
174
|
+ },
|
|
|
175
|
+ },
|
|
|
176
|
+ {
|
|
|
177
|
+ component: 'Select',
|
|
|
178
|
+ fieldName: 'status',
|
|
|
179
|
+ label: '完成状态',
|
|
|
180
|
+ componentProps: {
|
|
|
181
|
+ placeholder: '请选择完成状态',
|
|
|
182
|
+ options: [
|
|
|
183
|
+ { label: '已完成', value: '已完成' },
|
|
|
184
|
+ { label: '进行中', value: '进行中' },
|
|
|
185
|
+ { label: '未开始', value: '未开始' },
|
|
|
186
|
+ ],
|
|
|
187
|
+ },
|
|
|
188
|
+ },
|
|
|
189
|
+ {
|
|
|
190
|
+ component: 'Select',
|
|
|
191
|
+ fieldName: 'position',
|
|
|
192
|
+ label: '岗位',
|
|
|
193
|
+ componentProps: {
|
|
|
194
|
+ placeholder: '请选择岗位',
|
|
|
195
|
+ options: [
|
|
|
196
|
+ { label: '站长', value: '站长' },
|
|
|
197
|
+ { label: '安全员', value: '安全员' },
|
|
|
198
|
+ { label: '服务员', value: '服务员' },
|
|
|
199
|
+ { label: '资料员', value: '资料员' },
|
|
|
200
|
+ { label: '保安', value: '保安' },
|
|
|
201
|
+ { label: '培训员', value: '培训员' },
|
|
|
202
|
+ { label: '管理员', value: '管理员' },
|
|
|
203
|
+ { label: '客服', value: '客服' },
|
|
|
204
|
+ ],
|
|
|
205
|
+ },
|
|
|
206
|
+ },
|
|
|
207
|
+ {
|
|
|
208
|
+ component: 'Select',
|
|
|
209
|
+ fieldName: 'comment',
|
|
|
210
|
+ label: '评论',
|
|
|
211
|
+ componentProps: {
|
|
|
212
|
+ placeholder: '请选择评论',
|
|
|
213
|
+ options: [
|
|
|
214
|
+ { label: '已完成访客信息录入', value: '已完成访客信息录入' },
|
|
|
215
|
+ { label: '已为访客设置临时权限', value: '已为访客设置临时权限' },
|
|
|
216
|
+ { label: '已完成访客引导', value: '已完成访客引导' },
|
|
|
217
|
+ { label: '正在整理访客记录', value: '正在整理访客记录' },
|
|
|
218
|
+ { label: '已完成车辆登记', value: '已完成车辆登记' },
|
|
|
219
|
+ ],
|
|
|
220
|
+ },
|
|
|
221
|
+ },
|
|
|
222
|
+ {
|
|
|
223
|
+ component: 'Select',
|
|
|
224
|
+ fieldName: 'creator',
|
|
|
225
|
+ label: '创建人',
|
|
|
226
|
+ componentProps: {
|
|
|
227
|
+ placeholder: '请选择创建人',
|
|
|
228
|
+ options: [
|
|
|
229
|
+ { label: '李四', value: '李四' },
|
|
|
230
|
+ { label: '赵六', value: '赵六' },
|
|
|
231
|
+ { label: '周八', value: '周八' },
|
|
|
232
|
+ { label: '郑十', value: '郑十' },
|
|
|
233
|
+ { label: '陈二', value: '陈二' },
|
|
|
234
|
+ ],
|
|
|
235
|
+ },
|
|
|
236
|
+ },
|
|
|
237
|
+ {
|
|
|
238
|
+ component: 'DatePicker',
|
|
|
239
|
+ fieldName: 'processTimeRange',
|
|
|
240
|
+ label: '处理时间',
|
|
|
241
|
+ componentProps: {
|
|
|
242
|
+ placeholder: '请选择时间范围',
|
|
|
243
|
+ type: 'daterange',
|
|
|
244
|
+ rangeSeparator: '至',
|
|
|
245
|
+ startPlaceholder: '开始时间',
|
|
|
246
|
+ endPlaceholder: '结束时间',
|
|
|
247
|
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
|
|
248
|
+ },
|
|
|
249
|
+ },
|
|
|
250
|
+ {
|
|
|
251
|
+ component: 'Input',
|
|
|
252
|
+ fieldName: 'executor',
|
|
|
253
|
+ label: '执行人',
|
|
|
254
|
+ componentProps: {
|
|
|
255
|
+ placeholder: '请输入执行人',
|
|
|
256
|
+ },
|
|
|
257
|
+ },
|
|
|
258
|
+ {
|
|
|
259
|
+ component: 'Input',
|
|
|
260
|
+ fieldName: 'taskName',
|
|
|
261
|
+ label: '任务名称',
|
|
|
262
|
+ componentProps: {
|
|
|
263
|
+ placeholder: '请输入任务名称',
|
|
|
264
|
+ },
|
|
|
265
|
+ },
|
|
|
266
|
+];
|