site.php
25.2 KB
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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
<?php
return array (
//用户身份
//甲方员工
'a_staff' => 1,
//乙方员工
'b_staff' => 2,
//甲方领导
'a_leader' => 3,
//乙方领导
'b_leader' => 4,
//甲方总领导
'a_leaders' => 5,
//分页数据
'limit' => 10,
//巡检,日检
'service_inspect' => 1,
//月检
'service_check' => 2,
//改造
'service_reform' => 3,
//维修跟进
'service_repair' => 4,
//培训
'service_train' => 5,
//演习
'service_exercise' => 6,
//年检
'service_years' => 7,
//提示语
'tips' => '质量第一 精心检修 可守合同 永争一流',
//域名
'host' => 'http://app.tianjinhr.cn',
//甲方提交报修流程
'a_step' => ['甲方提交报修信息','乙方确认信息','乙方维修设备','乙方提交维修单','甲方验收维修结果','甲方验收完成'],
//乙方提交报修流程
'b_step' => ['乙方提交报修信息','甲方确认信息','乙方维修设备','乙方提交维修单','甲方验收维修结果','甲方验收完成'],
//甲方提交改造流程
'a_reform_step' => ['甲方提交改造信息','乙方确认信息','乙方改造设备','乙方提交维修单','甲方验收维修结果','甲方验收完成'],
//乙方提交改造流程
'b_reform_step' => ['乙方提交改造信息','甲方确认信息','乙方改造设备','乙方提交维修单','甲方验收维修结果','甲方验收完成'],
//验证规则
'v_code' => [
'rule' => [
'mobile' => ['require','regex'=>'/^0?1[3|4|5|6|7|8][0-9]\d{8}$/'],
'mobile_code' => 'require|number',
],
'msg' => [
'mobile.require' => '手机号不能为空',
'mobile' => '手机号格式不正确',
'mobile_code.require' => '验证码不能为空',
'mobile_code.number' => '验证码必须是数字',
]
],
'f_pass' => [
'rule' => [
'mobile' => ['require','regex'=>'/^0?1[3|4|5|6|7|8][0-9]\d{8}$/'],
'password' => 'require',
'password_again' => 'require',
],
'msg' => [
'mobile.require' => '手机号不能为空',
'mobile' => '手机号格式不正确',
'password.require' => '请输入密码',
'password_again.require' => '请再次输入密码',
]
],
'is_work' => [
'rule' => [
'is_work' => 'require|number',
],
'msg' => [
'is_work.require' => '工作状态不能为空',
'is_work.number' => '工作状态必须是数字',
]
],
'ins_add' => [
'rule' => [
'id' => 'require|number',
],
'msg' => [
'id.require' => 'id不能为空',
'id.number' => 'id必须是数字',
]
],
'type' => [
'rule' => [
'type' => 'require|number',
'page' => 'require|number',
],
'msg' => [
'type.require' => '工作类型不能为空',
'type.number' => '工作类型必须是数字',
'page.require' => '页码不能为空',
'page.number' => '页码必须是数字',
]
],
'ins_post' => [
'rule' => [
'point_id' => 'require|number',
'project_id' => 'require|number',
'status' => 'require|number',
'images' => 'require|array',
'create_time' => 'require|number',
],
'msg' => [
'point_id.require' => '巡检点id不能为空',
'point_id.number' => '巡检点id必须是数字',
'project_id.require' => '项目id不能为空',
'project_id.number' => '项目id必须是数字',
'status.require' => '巡检状态不能为空',
'status.number' => '巡检状态必须是数字',
'images.require' => '巡检图片不能为空',
'images.array' => '巡检图片必须为数组',
'create_time.require' => '巡检时间不能为空',
'create_time.number' => '巡检时间必须为数字',
]
],
'years_post' => [
'rule' => [
'spot_id' => 'require|number',
'project_id' => 'require|number',
'status' => 'require|number',
'images' => 'require|array',
'create_time' => 'require|number',
],
'msg' => [
'spot_id.require' => '年检点id不能为空',
'spot_id.number' => '年检点id必须是数字',
'project_id.require' => '项目id不能为空',
'project_id.number' => '项目id必须是数字',
'status.require' => '年检状态不能为空',
'status.number' => '年检状态必须是数字',
'images.require' => '年检图片不能为空',
'images.array' => '年检图片必须为数组',
'create_time.require' => '年检时间不能为空',
'create_time.number' => '年检时间必须为数字',
]
],
'pages' => [
'rule' => [
'page' => 'require|number',
],
'msg' => [
'page.require' => '页码不能为空',
'page.number' => '页码必须是数字',
]
],
'pages_list' => [
'rule' => [
'page' => 'require|number',
'status' => 'require|number',
],
'msg' => [
'page.require' => '页码不能为空',
'page.number' => '页码必须是数字',
'status.require' => '状态码不能为空',
'status.number' => '状态码必须是数字',
]
],
'repair_post' => [
'rule' => [
'images' => 'require|array',
// 'video' => 'require',
// 'audio' => 'require',
'description' => 'require',
],
'msg' => [
'images.require' => '图片凭证不能为空',
'images.array' => '图片凭证必须为数组',
// 'video.require' => '视频凭证不能为空',
// 'audio.require' => '音频凭证不能为空',
'description.require' => '故障问题不能为空',
]
],
'data' => [
'rule' => [
'id' => 'require|number',
],
'msg' => [
'id.require' => '列表id不能为空',
'id.number' => '列表id必须是数字',
]
],
'improve_post' => [
'rule' => [
'id' => 'require|number',
'repair_images' => 'require|array',
'repair_description' => 'require',
],
'msg' => [
'id.require' => '报修单id不能为空',
'id.number' => '报修单id必须为数字',
'repair_images.require' => '维修照片不能为空',
'repair_images.array' => '维修照片必须为数组',
'repair_description.require' => '维修备注不能为空',
]
],
'check_check' => [
'rule' => [
'id' => 'require|number',
'confirm_images' => 'require|array',
],
'msg' => [
'id.require' => '月检单id不能为空',
'id.number' => '月检单id必须为数字',
'confirm_images.require' => '验收照片不能为空',
'confirm_images.array' => '验收照片必须为数组',
]
],
'check_post' => [
'rule' => [
'id' => 'require|number',
'confirm_images' => 'require|array',
],
'msg' => [
'id.require' => '报修单id不能为空',
'id.number' => '报修单id必须为数字',
'confirm_images.require' => '验收照片不能为空',
'confirm_images.array' => '验收照片必须为数组',
]
],
'check_reform' => [
'rule' => [
'id' => 'require|number',
'confirm_images' => 'require|array',
],
'msg' => [
'id.require' => '改造单id不能为空',
'id.number' => '改造单id必须为数字',
'confirm_images.require' => '验收照片不能为空',
'confirm_images.array' => '验收照片必须为数组',
]
],
'check_train' => [
'rule' => [
'id' => 'require|number',
'confirm_images' => 'require|array',
],
'msg' => [
'id.require' => '培训单id不能为空',
'id.number' => '培训单id必须为数字',
'confirm_images.require' => '验收照片不能为空',
'confirm_images.array' => '验收照片必须为数组',
]
],
'check_exercise' => [
'rule' => [
'id' => 'require|number',
'confirm_images' => 'require|array',
],
'msg' => [
'id.require' => '演习单id不能为空',
'id.number' => '演习单id必须为数字',
'confirm_images.require' => '验收照片不能为空',
'confirm_images.array' => '验收照片必须为数组',
]
],
'ins_m_post' => [
'rule' => [
'ins_m_time' => 'require|number',
'address' => 'require',
'a_uid' => 'require|number',
'remark' => 'require',
],
'msg' => [
'ins_m_time.require' => '月检时间不能为空',
'ins_m_time.number' => '月检时间必须为数字',
'address.require' => '月检地点不能为空',
'a_uid.require' => '月检甲方负责人不能为空',
'a_uid.number' => '月检甲方负责人必须是数字',
'remark.require' => '月检申请备注不能为空',
]
],
'confirm' => [
'rule' => [
'id' => 'require|number',
'type' => 'require|number',
],
'msg' => [
'id.require' => '列表id不能为空',
'id.number' => '列表id必须是数字',
'type.require' => '工作类型不能为空',
'type.number' => '工作类型必须是数字',
]
],
'ins_re_post' => [
'rule' => [
'id' => 'require|number',
'ins_m_time' => 'require|number',
'address' => 'require',
'a_uid' => 'require|number',
'remark' => 'require',
],
'msg' => [
'id.require' => '月检id不能为空',
'id.number' => '月检id必须是数字',
'ins_m_time.require' => '月检时间不能为空',
'ins_m_time.number' => '月检时间必须为数字',
'address.require' => '月检地点不能为空',
'a_uid.require' => '月检甲方负责人不能为空',
'a_uid.number' => '月检甲方负责人必须是数字',
'remark.require' => '月检申请备注不能为空',
]
],
'train_post' => [
'rule' => [
'train_time' => 'require|number',
'address' => 'require',
'remark' => 'require',
],
'msg' => [
'train_time.require' => '培训时间不能为空',
'train_time.number' => '培训时间必须为数字',
'address.require' => '培训地点不能为空',
'remark.require' => '培训备注不能为空',
]
],
'exercise_post' => [
'rule' => [
'exercise_time' => 'require|number',
'address' => 'require',
'remark' => 'require',
],
'msg' => [
'exercise_time.require' => '演习时间不能为空',
'exercise_time.number' => '演习时间必须为数字',
'address.require' => '演习地点不能为空',
'remark.require' => '演习备注不能为空',
]
],
'improve_check_post' => [
'rule' => [
'id' => 'require|number',
'images' => 'require|array'
],
'msg' => [
'id.require' => '列表id不能为空',
'id.number' => '列表id必须是数字',
'images.require' => '完善图片不能为空',
'images.array' => '完善图片必须是数组'
]
],
're_train_post' => [
'rule' => [
'id' => 'require|number',
'train_time' => 'require|number',
'address' => 'require',
'remark' => 'require',
],
'msg' => [
'id.require' => '培训id不能为空',
'id.number' => '培训id必须是数字',
'train_time.require' => '培训时间不能为空',
'train_time.number' => '培训时间必须为数字',
'address.require' => '培训地点不能为空',
'remark.require' => '培训备注不能为空',
]
],
're_exercise_post' => [
'rule' => [
'id' => 'require|number',
'exercise_time' => 'require|number',
'address' => 'require',
'remark' => 'require',
],
'msg' => [
'id.require' => '演习id不能为空',
'id.number' => '演习id必须是数字',
'exercise_time.require' => '演习时间不能为空',
'exercise_time.number' => '演习时间必须为数字',
'address.require' => '演习地点不能为空',
'remark.require' => '演习备注不能为空',
]
],
'reform1_post' => [
'rule' => [
'reform_time' => 'require|number',
'address' => 'require',
'a_uid' => 'require|number',
'remark' => 'require',
],
'msg' => [
'reform_time.require' => '改造时间不能为空',
'reform_time.number' => '改造时间必须为数字',
'address.require' => '改造地点不能为空',
'a_uid.require' => '改造甲方负责人不能为空',
'a_uid.number' => '改造甲方负责人必须是数字',
'remark.require' => '改造申请备注不能为空',
]
],
're_reform1_post' => [
'rule' => [
'id' => 'require|number',
'reform_time' => 'require|number',
'address' => 'require',
'a_uid' => 'require|number',
'remark' => 'require',
],
'msg' => [
'id.require' => '改造id不能为空',
'id.number' => '改造id必须是数字',
'reform_time.require' => '改造时间不能为空',
'reform_time.number' => '改造时间必须为数字',
'address.require' => '改造地点不能为空',
'a_uid.require' => '改造甲方负责人不能为空',
'a_uid.number' => '改造甲方负责人必须是数字',
'remark.require' => '改造申请备注不能为空',
]
],
'reform_post' => [
'rule' => [
'id' => 'require|number',
'reform_images' => 'require|array',
'reform_description' => 'require',
],
'msg' => [
'id.require' => '改造单id不能为空',
'id.number' => '改造单id必须为数字',
'reform_images.require' => '改造照片不能为空',
'reform_images.array' => '改造照片必须为数组',
'reform_description.require' => '改造备注不能为空',
]
],
'train_advice_time' => [
'rule' => [
'id' => 'require|number',
'type' => 'require|number',
'advice_time' => 'require|number',
],
'msg' => [
'id.require' => '列表id不能为空',
'id.number' => '列表id必须为数字',
'type.require' => '工作类型不能为空',
'type.number' => '工作类型必须是数字',
'advice_time.require' => '建议时间不能为空',
'advice_time.number' => '建议时间必须为数字',
]
],
'pages_type' => [
'rule' => [
'type' => 'require|number',
'page' => 'require|number',
],
'msg' => [
'type.require' => '工作类型不能为空',
'type.number' => '工作类型必须是数字',
'page.require' => '页码不能为空',
'page.number' => '页码必须是数字',
]
],
'data_type' => [
'rule' => [
'id' => 'require|number',
'type' => 'require|number',
],
'msg' => [
'id.require' => '列表id不能为空',
'id.number' => '列表id必须是数字',
'type.require' => '工作类型不能为空',
'type.number' => '工作类型必须是数字',
]
],
'pages_service' => [
'rule' => [
'service_id' => 'require|number',
'page' => 'require|number',
],
'msg' => [
'service_id.require' => '服务id不能为空',
'service_id.number' => '服务id必须是数字',
'page.require' => '页码不能为空',
'page.number' => '页码必须是数字',
]
],
'add_spot' => [
'rule' => [
'test_id' =>'require|number',
'spot_name' => 'require',
'project_id' =>'require|number'
],
'msg' => [
'test_id.require' => '检测id不能为空',
'test_id.number' => '检测id必须是数字',
'spot_name.require' => '巡检点名称不能为空',
'project_id.require' => '项目id不能为空',
'project_id.number' => '项目id必须是数字',
]
],
'comment' => [
'rule' => [
'id' => 'require|number',
'service_id' => 'require|number',
'comment' => 'require',
],
'msg' => [
'id.require' => '列表id不能为空',
'id.number' => '列表id必须是数字',
'service_id.require' => '服务id不能为空',
'service_id.number' => '服务id必须是数字',
'comment.require' => '评论内容不能为空',
]
],
'subject_post' => [
'rule' => [
'subject_name' => 'require',
'handler' => 'require',
'mobile' => ['require','regex'=>'/^0?1[3|4|5|6|7|8][0-9]\d{8}$/'],
'address' => 'require',
'remark' => 'require',
],
'msg' => [
'subject_name.require' => '项目名称不能为空',
'handler.require' => '甲方负责人不能为空',
'mobile.require' => '联系方式不能为空',
'mobile' => '联系方式格式不正确',
'address.require' => '项目地址不能为空',
'remark.require' => '项目备注不能为空',
]
],
'visit_post' => [
'rule' => [
'sub_id' => 'require|number',
'create_time' => 'require|number',
'visit_user' => 'require',
'address' => 'require',
'remark' => 'require',
'images' => 'require|array',
],
'msg' => [
'sub_id.require' => '拜访项目id不能为空',
'sub_id.number' => '拜访项目id必须为数字',
'create_time.require' => '拜访时间不能为空',
'create_time.number' => '拜访时间必须为数字',
'visit_user.require' => '拜访人员不能为空',
'address.require' => '拜访地点不能为空',
'remark.require' => '拜访备注不能为空',
'images.require' => '拜访图片不能为空',
'images.array' => '拜访图片必须为数组',
]
],
'add_year_test' => [
'rule' => [
'test_time' => 'require|number',
'address' => 'require',
'remark' => 'require',
],
'msg' => [
'test_time.require' => '检测时间不能为空',
'test_time.number' => '检测时间必须为数字',
'address.require' => '检测地点不能为空',
'remark.require' => '检测备注不能为空',
]
],
'add_status' => [
'rule' => [
'spot_id' => 'require|number',
'project_id' => 'require|number',
'test_id' => 'require|number',
'status' => 'require|number',
'images' => 'require|array',
],
'msg' => [
'spot_id.require' => '检测点id不能为空',
'spot_id.number' => '检测点id必须为数字',
'project_id.require' => '项目id不能为空',
'project_id.number' => '项目id必须为数字',
'test_id.require' => '检测id不能为空',
'test_id.number' => '检测id必须为数字',
'status.require' => '检测状态不能为空',
'status.number' => '检测状态必须为数字',
'images.require' => '检测图片不能为空',
'images.array' => '检测图片必须为数组',
]
],
'test_status' => [
'rule' => [
'spot_id' => 'require|number',
'status' => 'require|number',
'images' => 'require|array',
],
'msg' => [
'spot_id.require' => '检测点id不能为空',
'spot_id.number' => '检测点id必须为数字',
'status.require' => '检测状态不能为空',
'status.number' => '检测状态必须为数字',
'images.require' => '检测图片不能为空',
'images.array' => '检测图片必须为数组',
]
],
'mp4_src' => [
'rule' => [
'mp4_src' => 'require',
],
'msg' => [
'mp4_src.require' => 'MP4路径不能为空',
]
],
);