yanghb
2023-04-14 cd8e73d4dad311de76fc9a7db3b74e8c88afe78e
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
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
@layout("/common/_container.html"){
<style>
    .newWidth, .single-line{
        max-width:150px !important;display: initial !important;
    }
    .lab{
        display: block;
        width: 150px;
        height: 45px;
        text-align: center;
        line-height: 45px;
        cursor: pointer;
        font-size: 16px;
        background-color: #F8F8F8;
        margin: 0;
    }
    .lab:hover{
        background-color: #F3F4F5;
    }
    .checked{
        background-color: #FFF !important;
        border-left: 10px solid #077CCB;
    }
    table{
        width: 100%;
    }
    tr{
        height: 40px;
    }
    th, td{
        text-align: center;
        border: 1px solid #F4F4F4;
    }
</style>
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">
            <div class="row">
                <div class="col-sm-11">
                    <div class="ibox-title">
                        <h3>系统设置:</h3>
                    </div>
                    <div>
                        <div style="float: left;">
                            <label class="lab checked" onclick="checkedLable(this)" tag="pushOrderSettings">推单设置</label>
                            <label class="lab" onclick="checkedLable(this)" tag="cancelOrderSettings">取消订单设置</label>
                            <label class="lab" onclick="checkedLable(this)" tag="cancelTheReservationOrderSetting">预约单取消设置</label>
                            <label class="lab" onclick="checkedLable(this)" tag="spellOrderSetting">拼单派单设置</label>
                            <label class="lab" onclick="checkedLable(this)" tag="timeoutDeductionSettings">超时扣款设置</label>
                            <label class="lab" onclick="checkedLable(this)" tag="reassigningSet">改派设置</label>
                            <label class="lab" onclick="checkedLable(this)" tag="faceRecognitionSettings">人脸识别设置</label>
                            <label class="lab" onclick="checkedLable(this)" tag="integralSet">积分设置</label>
                            <label class="lab" onclick="checkedLable(this)" tag="withdrawalFeeSetting">提现手续费设置</label>
                            <label class="lab" onclick="checkedLable(this)" tag="phoneSettings">电话设置</label>
                            <label class="lab" onclick="checkedLable(this)" tag="holidayServiceFeeSetting">节假日服务费设置</label>
                            <label class="lab" onclick="checkedLable(this)" tag="95128TheOnCall">95128电召</label>
                            <label class="lab" onclick="checkedLable(this)" tag="moduleManagement">模块管理</label>
                        </div>
                        <div style="float: left;width: 1200px;margin-left: 50px;">
                            <div class="pushOrderSettings">
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">快车推单:</label>
                                    <div class="col-sm-10">
                                        第一轮推单:推单距离为&nbsp;<input type="text" oninput="checkIsDouble(this)"
                                                                @if(isNotEmpty(zcOne)){
                                                                value="${zcOne.pushDistance}"
                                                                @}else{
                                                                value=""
                                                                @}
                                                                name="zc1" id="zc1" class="form-control newWidth" />&nbsp;公里,
                                        推单时间为&nbsp;<input type="text" oninput="checkIsInt(this)"
                                                          @if(isNotEmpty(zcOne)){
                                                          value="${zcOne.pushTime}"
                                                          @}else{
                                                          value=""
                                                          @}
                                                          name="zc2" id="zc2" class="form-control newWidth" />&nbsp;秒钟;
                                        每次推所有司机的&nbsp;<input type="text" oninput="checkIsDouble(this)"
                                                             @if(isNotEmpty(zcOne)){
                                                             value="${zcOne.driverProportion}"
                                                             @}else{
                                                             value=""
                                                             @}
                                                             name="zc3" id="zc3" class="form-control newWidth" />&nbsp;%
                                        <br/>
                                        <br/>
                                        第二轮推单:推单距离为&nbsp;<input type="text" oninput="checkIsDouble(this)"
                                                                @if(isNotEmpty(zcTwo)){
                                                                value="${zcTwo.pushDistance}"
                                                                @}else{
                                                                value=""
                                                                @}
                                                                name="zc4" id="zc4" class="form-control newWidth" />&nbsp;公里,
                                        推单时间为&nbsp;<input type="text" oninput="checkIsInt(this)"
                                                          @if(isNotEmpty(zcTwo)){
                                                          value="${zcTwo.pushTime}"
                                                          @}else{
                                                          value=""
                                                          @}
                                                          name="zc5" id="zc5" class="form-control newWidth" />&nbsp;秒钟;
                                        每次推所有司机的&nbsp;<input type="text" oninput="checkIsDouble(this)"
                                                             @if(isNotEmpty(zcTwo)){
                                                             value="${zcTwo.driverProportion}"
                                                             @}else{
                                                             value=""
                                                             @}
                                                             name="zc6" id="zc6" class="form-control newWidth" />&nbsp;%
                                        <br/>
                                        <br/>
                                        第三轮推单:推单距离为&nbsp;<input type="text" oninput="checkIsDouble(this)"
                                                                @if(isNotEmpty(zcThree)){
                                                                value="${zcThree.pushDistance}"
                                                                @}else{
                                                                value=""
                                                                @}
                                                                name="zc7" id="zc7" class="form-control newWidth" />&nbsp;公里,
                                        推单时间为&nbsp;<input type="text" oninput="checkIsInt(this)"
                                                          @if(isNotEmpty(zcThree)){
                                                          value="${zcThree.pushTime}"
                                                          @}else{
                                                          value=""
                                                          @}
                                                          name="zc8" id="zc8" class="form-control newWidth" />&nbsp;秒钟;
                                        每次推所有司机的&nbsp;<input type="text" oninput="checkIsDouble(this)"
                                                             @if(isNotEmpty(zcThree)){
                                                             value="${zcThree.driverProportion}"
                                                             @}else{
                                                             value=""
                                                             @}
                                                             name="zc9" id="zc9" class="form-control newWidth" />&nbsp;%
                                        <br/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">出租车推单:</label>
                                    <div class="col-sm-10">
                                        第一轮推单:推单距离为&nbsp;<input type="text" oninput="checkIsDouble(this)"
                                                                @if(isNotEmpty(czcOne)){
                                                                value="${czcOne.pushDistance}"
                                                                @}else{
                                                                value=""
                                                                @}
                                                                name="czc1" id="czc1" class="form-control newWidth" />&nbsp;公里,
                                        推单时间为&nbsp;<input type="text" oninput="checkIsInt(this)"
                                                          @if(isNotEmpty(czcOne)){
                                                          value="${czcOne.pushTime}"
                                                          @}else{
                                                          value=""
                                                          @}
                                                          name="czc2" id="czc2" class="form-control newWidth" />&nbsp;秒钟;
                                        每次推所有司机的&nbsp;<input type="text" oninput="checkIsDouble(this)"
                                                             @if(isNotEmpty(czcOne)){
                                                             value="${czcOne.driverProportion}"
                                                             @}else{
                                                             value=""
                                                             @}
                                                             name="czc3" id="czc3" class="form-control newWidth" />&nbsp;%
                                        <br/>
                                        <br/>
                                        第二轮推单:推单距离为&nbsp;<input type="text" oninput="checkIsDouble(this)"
                                                                @if(isNotEmpty(czcTwo)){
                                                                value="${czcTwo.pushDistance}"
                                                                @}else{
                                                                value=""
                                                                @}
                                                                name="czc4" id="czc4" class="form-control newWidth" />&nbsp;公里,
                                        推单时间为&nbsp;<input type="text" oninput="checkIsInt(this)"
                                                          @if(isNotEmpty(czcTwo)){
                                                          value="${czcTwo.pushTime}"
                                                          @}else{
                                                          value=""
                                                          @}
                                                          name="czc5" id="czc5" class="form-control newWidth" />&nbsp;秒钟;
                                        每次推所有司机的&nbsp;<input type="text" oninput="checkIsDouble(this)"
                                                             @if(isNotEmpty(czcTwo)){
                                                             value="${czcTwo.driverProportion}"
                                                             @}else{
                                                             value=""
                                                             @}
                                                             name="czc6" id="czc6" class="form-control newWidth" />&nbsp;%
                                        <br/>
                                        <br/>
                                        第三轮推单:推单距离为&nbsp;<input type="text" oninput="checkIsDouble(this)"
                                                                @if(isNotEmpty(czcThree)){
                                                                value="${czcThree.pushDistance}"
                                                                @}else{
                                                                value=""
                                                                @}
                                                                name="czc7" id="czc7" class="form-control newWidth" />&nbsp;公里,
                                        推单时间为&nbsp;<input type="text" oninput="checkIsInt(this)"
                                                          @if(isNotEmpty(czcThree)){
                                                          value="${czcThree.pushTime}"
                                                          @}else{
                                                          value=""
                                                          @}
                                                          name="czc8" id="czc8" class="form-control newWidth" />&nbsp;秒钟;
                                        每次推所有司机的&nbsp;<input type="text" oninput="checkIsDouble(this)"
                                                             @if(isNotEmpty(czcThree)){
                                                             value="${czcThree.driverProportion}"
                                                             @}else{
                                                             value=""
                                                             @}
                                                             name="czc9" id="czc9" class="form-control newWidth" />&nbsp;%
                                        <br/>
                                    </div>
                                </div>
 
                                <div class="row btn-group-m-t">
                                    <div class="col-sm-10 col-sm-offset-5">
                                        <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="setUp('pushOrderSettings')"/>
                                    </div>
                                </div>
                            </div>
                            <div class="cancelOrderSettings" hidden>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">取消设置:</label>
                                    <div class="col-sm-10">
                                        快车订单取消规则:快车订单在司机接单&nbsp;<input type="text" oninput="checkIsInt(this)"
                                                                       @if(isNotEmpty(ptCancel1)){
                                                                       value="${ptCancel1.minuteNum}"
                                                                       @}else{
                                                                       value=""
                                                                       @}
                                                                       name="ptCancel1" id="ptCancel1" class="form-control newWidth" />&nbsp;分钟后,
                                        取消订单收取&nbsp;<input type="text" oninput="checkIsDouble(this)"
                                                           @if(isNotEmpty(ptCancel1)){
                                                           value="${ptCancel1.money}"
                                                           @}else{
                                                           value=""
                                                           @}
                                                           name="ptCancel2" id="ptCancel2" class="form-control newWidth" />&nbsp;元取消费用;
                                        <br/>
                                        <br/>
                                        出租车订单取消规则:出租车订单在司机接单&nbsp;<input type="text" oninput="checkIsInt(this)"
                                                                         @if(isNotEmpty(ptCancel2)){
                                                                         value="${ptCancel2.minuteNum}"
                                                                         @}else{
                                                                         value=""
                                                                         @}
                                                                         name="ptCancel3" id="ptCancel3" class="form-control newWidth" />&nbsp;分钟后,
                                        取消订单收取&nbsp;<input type="text" oninput="checkIsDouble(this)"
                                                           @if(isNotEmpty(ptCancel2)){
                                                           value="${ptCancel2.money}"
                                                           @}else{
                                                           value=""
                                                           @}
                                                           name="ptCancel4" id="ptCancel4" class="form-control newWidth" />&nbsp;元取消费用;
                                        <br/>
                                        <br/>
                                        跨城出行取消规则:跨城订单在司机接单&nbsp;<input type="text" oninput="checkIsInt(this)"
                                                                       @if(isNotEmpty(ptCancel3)){
                                                                       value="${ptCancel3.minuteNum}"
                                                                       @}else{
                                                                       value=""
                                                                       @}
                                                                       name="ptCancel5" id="ptCancel5" class="form-control newWidth" />&nbsp;分钟后,
                                        取消订单收取&nbsp;<input type="text" oninput="checkIsDouble(this)"
                                                           @if(isNotEmpty(ptCancel3)){
                                                           value="${ptCancel3.money}"
                                                           @}else{
                                                           value=""
                                                           @}
                                                           name="ptCancel6" id="ptCancel6" class="form-control newWidth" />&nbsp;元取消费用;
                                        <br/>
                                    </div>
                                </div>
 
                                <div class="row btn-group-m-t">
                                    <div class="col-sm-10 col-sm-offset-5">
                                        <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="setUp('cancelOrderSettings')"/>
                                    </div>
                                </div>
                            </div>
                            <div class="cancelTheReservationOrderSetting" hidden>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">预约单取消设置:</label>
                                    <div class="col-sm-10">
                                        快车订单取消规则:快车订单在司机接单&nbsp;<input type="text" oninput="checkIsInt(this)"
                                                                       @if(isNotEmpty(yyCancel1)){
                                                                       value="${yyCancel1.minuteNum}"
                                                                       @}else{
                                                                       value=""
                                                                       @}
                                                                       name="yyCancel1" id="yyCancel1" class="form-control newWidth" />&nbsp;分钟后,
                                        取消订单收取&nbsp;<input type="text" oninput="checkIsDouble(this)"
                                                           @if(isNotEmpty(yyCancel1)){
                                                           value="${yyCancel1.money}"
                                                           @}else{
                                                           value=""
                                                           @}
                                                           name="yyCancel2" id="yyCancel2" class="form-control newWidth" />&nbsp;元取消费用;
                                        <br/>
                                        <br/>
                                        出租车订单取消规则:出租车订单在司机接单&nbsp;<input type="text" oninput="checkIsInt(this)"
                                                                         @if(isNotEmpty(yyCancel2)){
                                                                         value="${yyCancel2.minuteNum}"
                                                                         @}else{
                                                                         value=""
                                                                         @}
                                                                         name="yyCancel3" id="yyCancel3" class="form-control newWidth" />&nbsp;分钟后,
                                        取消订单收取&nbsp;<input type="text" oninput="checkIsDouble(this)"
                                                           @if(isNotEmpty(yyCancel2)){
                                                           value="${yyCancel2.money}"
                                                           @}else{
                                                           value=""
                                                           @}
                                                           name="yyCancel4" id="yyCancel4" class="form-control newWidth" />&nbsp;元取消费用;
                                        <br/>
                                    </div>
                                </div>
 
                                <div class="row btn-group-m-t">
                                    <div class="col-sm-10 col-sm-offset-5">
                                        <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="setUp('cancelTheReservationOrderSetting')"/>
                                    </div>
                                </div>
                            </div>
                            <div class="spellOrderSetting" hidden>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">实时拼单:</label>
                                    <div class="col-sm-10">
                                        满足用户起点位置&nbsp;<input type="text"
                                                                  @if(isNotEmpty(spellOrderRule)){
                                                                  value="${spellOrderRule.num1}"
                                                                  @}else{
                                                                  value=""
                                                                  @}
                                                                  id="pdpd1" class="form-control newWidth" />&nbsp;公里范围内,
                                        且满足终点位置&nbsp;<input type="text"
                                                               @if(isNotEmpty(spellOrderRule)){
                                                               value="${spellOrderRule.num2}"
                                                               @}else{
                                                               value=""
                                                               @}
                                                               id="pdpd2" class="form-control newWidth" />&nbsp;公里范围内的拼车用户匹配订单
                                        <br>
                                        <br>
                                        满足司机当前位置&nbsp;<input type="text"
                                                       @if(isNotEmpty(spellOrderRule)){
                                                       value="${spellOrderRule.num3}"
                                                       @}else{
                                                       value=""
                                                       @}
                                                       id="pdpd3" class="form-control newWidth" />&nbsp;公里范围内,
                                        且终点满足当前服务用户终点位置的&nbsp;<input type="text"
                                                            @if(isNotEmpty(spellOrderRule)){
                                                            value="${spellOrderRule.num4}"
                                                            @}else{
                                                            value=""
                                                            @}
                                                            id="pdpd4" class="form-control newWidth" />&nbsp;公里范围内的拼车用户匹配订单
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">预约拼车:</label>
                                    <div class="col-sm-10">
                                        用户的出发时间前&nbsp;<input type="text"
                                               @if(isNotEmpty(spellOrderRule)){
                                               value="${spellOrderRule.num5}"
                                               @}else{
                                               value=""
                                               @}
                                               id="pdpd5" class="form-control newWidth" />&nbsp;分钟,
                                        后&nbsp;<input type="text"
                                                               @if(isNotEmpty(spellOrderRule)){
                                                               value="${spellOrderRule.num6}"
                                                               @}else{
                                                               value=""
                                                               @}
                                                               id="pdpd6" class="form-control newWidth" />&nbsp;分钟的订单,可匹配一起
                                    </div>
                                </div>
 
                                <div class="row btn-group-m-t">
                                    <div class="col-sm-10 col-sm-offset-5">
                                        <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="setUp('spellOrderSetting')"/>
                                    </div>
                                </div>
                            </div>
                            <div class="timeoutDeductionSettings" hidden>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">超过:</label>
                                    &nbsp;<input type="text"
                                                 @if(isNotEmpty(tSysTimeoutMoney)){
                                                 value="${tSysTimeoutMoney.timeOut}"
                                                 @}else{
                                                 value=""
                                                 @}
                                                 id="timeOut" class="form-control newWidth" />&nbsp;分钟,
                                    小件物流超时扣除金额&nbsp;<input type="text"
                                                           @if(isNotEmpty(tSysTimeoutMoney)){
                                                           value="${tSysTimeoutMoney.deductMoney}"
                                                           @}else{
                                                           value=""
                                                           @}
                                                           id="deductMoney" class="form-control newWidth" />&nbsp;%
                                </div>
 
                                <div class="row btn-group-m-t">
                                    <div class="col-sm-10 col-sm-offset-5">
                                        <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="setUp('timeoutDeductionSettings')"/>
                                    </div>
                                </div>
                            </div>
                            <div class="reassigningSet" hidden>
                                <div class="col-sm-3">
                                    改派费用为&nbsp;<input type="text" oninput="checkIsDouble(this)"
                                                      @if(isNotEmpty(reformist)){
                                                      value="${reformist.money}"
                                                      @}else{
                                                      value=""
                                                      @}
                                                      name="one" id="one" class="form-control newWidth" />&nbsp;元;<br/>
                                </div>
                                <div class="col-sm-3">
                                    <label class="col-sm-5 control-label">快车改派:</label>
                                    <div class="col-sm-7">
                                        <div class="form-group">
                                            <div class="col-sm-9">
                                                <input type="checkbox" class="js-switch" id="isSpecialCar"
                                                       @if(isNotEmpty(reformist)){
                                                       ${1 == reformist.isSpecialCar ? '' : 'checked=checked'}
                                                @}
                                                />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-sm-3">
                                    <label class="col-sm-5 control-label">出租车改派:</label>
                                    <div class="col-sm-7">
                                        <div class="form-group">
                                            <div class="col-sm-9">
                                                <input type="checkbox" class="js-switch1" id="isTaxiCar"
                                                       @if(isNotEmpty(reformist)){
                                                       ${1 == reformist.isTaxiCar ? '' : 'checked=checked'}
                                                @}
                                                />
                                            </div>
                                        </div>
                                    </div>
                                </div>
 
                                <div class="row btn-group-m-t">
                                    <div class="col-sm-10 col-sm-offset-5">
                                        <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="setUp('reassigningSet')"/>
                                    </div>
                                </div>
                            </div>
                            <div class="faceRecognitionSettings" hidden>
                                <div class="form-group" style="height: 70px;">
                                    <label class="col-sm-2 control-label">人脸识别:</label>
                                    <div class="col-sm-10">
                                        <div class="radio radio-danger">
                                            <input type="radio" name="three" id="three1" value="2"
                                                   ${isNotEmpty(faceDistinguish) && 2 == faceDistinguish.isOpen  ? 'checked=checked' : ''}
                                            onclick="threeClick(2)">
                                            <label for="three1">
                                                关闭
                                            </label>
                                        </div>
                                        <div class="radio radio-danger">
                                            <input type="radio" name="three" id="three2" value="1"
                                                   ${isNotEmpty(faceDistinguish) && 1 == faceDistinguish.isOpen  ? 'checked=checked' : ''}
                                            onclick="threeClick(1)">
                                            <label for="three2">
                                                打开
                                                <div id="openDiv" style="position: relative;top: -26px;margin-left: 50px;display: none;">
                                                    <span style="margin-left: 20px;">上班中每隔</span>
                                                    <input type="text" oninput="checkIsInt(this)" class="form-control newWidth"
                                                           ${isNotEmpty(faceDistinguish) && 1 == faceDistinguish.isOpen  ? 'value='+faceDistinguish.minuteNum : ''}
                                                    id="openValue" name="openValue">
                                                    <span>分钟,进行一次人脸识别;</span>
                                                </div>
                                            </label>
                                        </div>
                                    </div>
                                </div>
 
                                <div class="row btn-group-m-t">
                                    <div class="col-sm-10 col-sm-offset-5">
                                        <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="setUp('faceRecognitionSettings')"/>
                                    </div>
                                </div>
                            </div>
                            <div class="integralSet" hidden>
                                <div class="form-group">
                                    <div class="col-sm-10">
                                        消费一元积&nbsp;<input type="text" oninput="checkIsInt(this)"
                                                          @if(isNotEmpty(integral)){
                                                          value="${integral.integral}"
                                                          @}else{
                                                          value=""
                                                          @}
                                                          name="two" id="two" class="form-control newWidth" />&nbsp;积分;<br/>
                                    </div>
                                </div>
 
                                <div class="row btn-group-m-t">
                                    <div class="col-sm-10 col-sm-offset-5">
                                        <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="setUp('integralSet')"/>
                                    </div>
                                </div>
                            </div>
                            <div class="withdrawalFeeSetting" hidden>
                                <div class="form-group" style="border: 0">
                                    <label class="col-sm-2 control-label">提现手续费:</label>
                                    &nbsp;<input type="text"
                                                 @if(isNotEmpty(tSysWithdrawalPoundage)){
                                                 value="${tSysWithdrawalPoundage.percentage}"
                                                 @}else{
                                                 value=""
                                                 @}
                                                 id="percentage" class="form-control newWidth" />&nbsp;%
                                </div>
                                <div class="row btn-group-m-t">
                                    <div class="col-sm-10 col-sm-offset-5">
                                        <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="setUp('withdrawalFeeSetting')"/>
                                    </div>
                                </div>
                            </div>
                            <div class="phoneSettings" hidden>
                                <div class="form-group">
                                    <div class="col-sm-10">
                                        报警电话:&nbsp;<input type="text"
                                                          @if(isNotEmpty(phone1)){
                                                          value="${phone1.phone}"
                                                          @}else{
                                                          value=""
                                                          @}
                                                          name="phone1" id="phone1" class="form-control newWidth" />&nbsp;
                                        <br/>
                                        <br/>
                                        客服电话:&nbsp;<input type="text"
                                                          @if(isNotEmpty(phone2)){
                                                          value="${phone2.phone}"
                                                          @}else{
                                                          value=""
                                                          @}
                                                          name="phone2" id="phone2" class="form-control newWidth" />&nbsp;
                                        <br/>
                                        <br/>
                                        包车调度电话:&nbsp;<input type="text"
                                                            @if(isNotEmpty(phone3)){
                                                            value="${phone3.phone}"
                                                            @}else{
                                                            value=""
                                                            @}
                                                            name="phone3" id="phone3" class="form-control newWidth" />&nbsp;
                                        <br/>
                                        <br/>
                                        招聘电话:&nbsp;<input type="text"
                                                            @if(isNotEmpty(phone5)){
                                                            value="${phone5.phone}"
                                                            @}else{
                                                            value=""
                                                            @}
                                                            name="phone3" id="phone5" class="form-control newWidth" />&nbsp;
                                    </div>
                                </div>
 
                                <div class="row btn-group-m-t">
                                    <div class="col-sm-10 col-sm-offset-5">
                                        <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="setUp('phoneSettings')"/>
                                    </div>
                                </div>
                            </div>
                            <div class="holidayServiceFeeSetting" hidden>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">节假日服务费:</label>
                                    <div class="col-sm-2">
                                        <input class="form-control" id="holidayFee"
                                               @if(isNotEmpty(holidayFee)){
                                               value="${holidayFee}"
                                               @}else{
                                               value=""
                                               @}
                                        />
                                    </div>
                                </div>
                                <div class="row btn-group-m-t">
                                    <div class="col-sm-10 col-sm-offset-5">
                                        <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="setUp('holidayServiceFeeSetting')"/>
                                    </div>
                                </div>
                            </div>
                            <div class="95128TheOnCall" hidden>
                                95128电召电话:&nbsp;<input type="text"
                                                       @if(isNotEmpty(phone4)){
                                                       value="${phone4.phone}"
                                                       @}else{
                                                       value=""
                                                       @}
                                                       name="phone4" id="phone4" class="form-control newWidth" />&nbsp;
                                <br/>
 
                                <div class="row btn-group-m-t">
                                    <div class="col-sm-10 col-sm-offset-5">
                                        <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="setUp('95128TheOnCall')"/>
                                    </div>
                                </div>
                            </div>
                            <div class="moduleManagement" hidden>
                                <table>
                                    <thead>
                                        <tr><th>序号</th><th>模块名</th><th>用户端是否显示</th><th>司机端是否显示</th></tr>
                                    </thead>
                                    <tbody>
                                        <tr><td>1</td><td>司机招聘</td><td><input type="checkbox" class="js-switch1-1" id="sjzp1" ${2 == showModulars.sjzp1 ? '' : 'checked=checked'}/></td><td><input type="checkbox" class="js-switch1-2" id="sjzp2" ${2 == showModulars.sjzp2 ? '' : 'checked=checked'}/></td></tr>
                                        <tr><td>2</td><td>租车</td><td><input type="checkbox" class="js-switch2-1" id="zuc1" ${2 == showModulars.zuc1 ? '' : 'checked=checked'}/></td><td><input type="checkbox" class="js-switch2-2" id="zuc2" ${2 == showModulars.zuc2 ? '' : 'checked=checked'}/></td></tr>
                                        <tr><td>3</td><td>买车</td><td><input type="checkbox" class="js-switch3-1" id="mc1" ${2 == showModulars.mc1 ? '' : 'checked=checked'}/></td><td><input type="checkbox" class="js-switch3-2" id="mc2" ${2 == showModulars.mc2 ? '' : 'checked=checked'}/></td></tr>
                                        <tr><td>4</td><td>出租个人车辆</td><td><input type="checkbox" class="js-switch4-1" id="czgrcl1" ${2 == showModulars.czgrcl1 ? '' : 'checked=checked'}/></td><td><input type="checkbox" class="js-switch4-2" id="czgrcl2" ${2 == showModulars.czgrcl2 ? '' : 'checked=checked'}/></td></tr>
                                        <tr><td>5</td><td>卖车</td><td><input type="checkbox" class="js-switch5-1" id="mac1" ${2 == showModulars.mac1 ? '' : 'checked=checked'}/></td><td><input type="checkbox" class="js-switch5-2" id="mac2" ${2 == showModulars.mac2 ? '' : 'checked=checked'}/></td></tr>
                                        <tr><td>6</td><td>商家中心</td><td><input type="checkbox" class="js-switch6-1" id="sjzx1" ${2 == showModulars.sjzx1 ? '' : 'checked=checked'}/></td><td><input type="checkbox" class="js-switch6-2" id="sjzx2" ${2 == showModulars.sjzx2 ? '' : 'checked=checked'}/></td></tr>
                                        <tr><td>7</td><td>打车卡</td><td><input type="checkbox" class="js-switch7-1" id="dck1" ${2 == showModulars.dck1 ? '' : 'checked=checked'}/></td><td> - </td></tr>
                                    </tbody>
                                </table>
                                <div class="row btn-group-m-t">
                                    <div class="col-sm-10 col-sm-offset-5">
                                        <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="setUp('moduleManagement')"/>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
 
    </div>
</div>
<script type="text/javascript">
    $(function() {
        var elem = document.querySelector(".js-switch");
        var init = new Switchery(elem);
        var elem1 = document.querySelector(".js-switch1");
        var init1 = new Switchery(elem1);
        var elem1_1 = document.querySelector(".js-switch1-1");
        var init1 = new Switchery(elem1_1);
        var elem1_2 = document.querySelector(".js-switch1-2");
        var init1 = new Switchery(elem1_2);
        var elem2_1 = document.querySelector(".js-switch2-1");
        var init1 = new Switchery(elem2_1);
        var elem2_2 = document.querySelector(".js-switch2-2");
        var init1 = new Switchery(elem2_2);
        var elem3_1 = document.querySelector(".js-switch3-1");
        var init1 = new Switchery(elem3_1);
        var elem3_2 = document.querySelector(".js-switch3-2");
        var init1 = new Switchery(elem3_2);
        var elem4_1 = document.querySelector(".js-switch4-1");
        var init1 = new Switchery(elem4_1);
        var elem4_2 = document.querySelector(".js-switch4-2");
        var init1 = new Switchery(elem4_2);
        var elem5_1 = document.querySelector(".js-switch5-1");
        var init1 = new Switchery(elem5_1);
        var elem5_2 = document.querySelector(".js-switch5-2");
        var init1 = new Switchery(elem5_2);
        var elem6_1 = document.querySelector(".js-switch6-1");
        var init1 = new Switchery(elem6_1);
        var elem6_2 = document.querySelector(".js-switch6-2");
        var init1 = new Switchery(elem6_2);
        var elem7_1 = document.querySelector(".js-switch7-1");
        var init1 = new Switchery(elem7_1);
        var elem7_2 = document.querySelector(".js-switch7-2");
        var init1 = new Switchery(elem7_2);
 
        var three = $("input[name='three']:checked").val();
        if (three == "" || three == null || three == undefined){
            $("#three1").attr("checked","checked");
        }
        threeClick($("input[name='three']:checked").val());
    });
 
    //人脸识别打开按钮被点击
    function threeClick(obj) {
        if (obj == 1){
            $("#openDiv").show();
        } else {
            $("#openDiv").hide();
        }
    }
 
    var regDouble = /^[0-9]\d*(\.\d*[0-9])?$/;
    function checkIsDouble(obj){
        var num = $(obj).val();
        if(!regDouble.test(num)){
            layer.msg("小数/正整数格式");
        }
    }
 
    //验证是否输入正整数
    var regInt = /^[0-9]\d*$/;
    function checkIsInt(obj){
        var num = $(obj).val();
        if(!regInt.test(num)){
            layer.msg("正整数格式");
        }
    }
 
    function checkedLable(e) {
        $(e).attr('class', 'lab checked');
        let tag = $(e).attr('tag');
        $('.' + tag).show();
        $(e).siblings().each(function (i, el) {
            $(el).attr('class', 'lab');
            let tag1 = $(el).attr('tag');
            $('.' + tag1).hide();
        })
    }
 
 
 
    /**
     * 提交操作
     */
    function setUp(type) {
        var one = $("#one").val().trim();
        var two = $("#two").val().trim();
        var three = $("input[name='three']:checked").val();
        var openValue = $("#openValue").val();
        var percentage = $("#percentage").val();
        var timeOut = $("#timeOut").val();
        var deductMoney = $("#deductMoney").val();
 
        var isSpecialCar = $("#isSpecialCar").is(":checked");
        if (isSpecialCar){
            isSpecialCar = 2;
        } else {
            isSpecialCar = 1;
        }
        var isTaxiCar = $("#isTaxiCar").is(":checked");
        if (isTaxiCar){
            isTaxiCar = 2;
        } else {
            isTaxiCar = 1;
        }
        if(type == 'faceRecognitionSettings'){
            if (1 == three){
                if ("" == openValue || null == openValue || undefined == openValue){
                    Feng.info("人脸识别分钟数不能为空!");
                    return;
                }else if (!regInt.test(openValue)) {
                    Feng.info("人脸识别分钟数格式不正确!");
                    return;
                }
            }
        }
 
        var zc1 = $("#zc1").val().trim();
        var zc2 = $("#zc2").val().trim();
        var zc3 = $("#zc3").val().trim();
        var zc4 = $("#zc4").val().trim();
        var zc5 = $("#zc5").val().trim();
        var zc6 = $("#zc6").val().trim();
        var zc7 = $("#zc7").val().trim();
        var zc8 = $("#zc8").val().trim();
        var zc9 = $("#zc9").val().trim();
 
        var czc1 = $("#czc1").val().trim();
        var czc2 = $("#czc2").val().trim();
        var czc3 = $("#czc3").val().trim();
        var czc4 = $("#czc4").val().trim();
        var czc5 = $("#czc5").val().trim();
        var czc6 = $("#czc6").val().trim();
        var czc7 = $("#czc7").val().trim();
        var czc8 = $("#czc8").val().trim();
        var czc9 = $("#czc9").val().trim();
        if(type == 'pushOrderSettings'){
            if("" == zc1 || "" == zc2 || "" == zc3 || "" == zc4 || "" == zc5 || "" == zc6 || "" == zc7 || "" == zc8 || "" == zc9
                || "" == czc1 || "" == czc2 || "" == czc3 || "" == czc4 || "" == czc5 || "" == czc6 || "" == czc7 || "" == czc8 || "" == czc9){
                Feng.info("输入框不能为空!");
                return;
            }
            if(!regDouble.test(zc1) || !regInt.test(zc2) || !regDouble.test(zc3)
                || !regDouble.test(zc4) || !regInt.test(zc5) || !regDouble.test(zc6)
                || !regDouble.test(zc7) || !regInt.test(zc8) || !regDouble.test(zc9)
 
                || !regDouble.test(czc1) || !regInt.test(czc2) || !regDouble.test(czc3)
                || !regDouble.test(czc4) || !regInt.test(czc5) || !regDouble.test(czc6)
                || !regDouble.test(czc7) || !regInt.test(czc8) || !regDouble.test(czc9)){
                Feng.info("格式不正确!");
                return ;
            }
        }
 
        var ptCancel1 = $("#ptCancel1").val().trim();
        var ptCancel2 = $("#ptCancel2").val().trim();
        var ptCancel3 = $("#ptCancel3").val().trim();
        var ptCancel4 = $("#ptCancel4").val().trim();
        var ptCancel5 = $("#ptCancel5").val().trim();
        var ptCancel6 = $("#ptCancel6").val().trim();
        if(type == 'cancelOrderSettings'){
            if("" == ptCancel1 || "" == ptCancel2 || "" == ptCancel3 || "" == ptCancel4 || "" == ptCancel5 || "" == ptCancel6){
                Feng.info("输入框不能为空!");
                return;
            }
            if(!regInt.test(ptCancel1) || !regDouble.test(ptCancel2) || !regInt.test(ptCancel3) || !regDouble.test(ptCancel4) || !regInt.test(ptCancel5) || !regDouble.test(ptCancel6)){
                Feng.info("格式不正确!");
                return ;
            }
        }
 
        var yyCancel1 = $("#yyCancel1").val().trim();
        var yyCancel2 = $("#yyCancel2").val().trim();
        var yyCancel3 = $("#yyCancel3").val().trim();
        var yyCancel4 = $("#yyCancel4").val().trim();
        if(type == 'cancelTheReservationOrderSetting'){
            if("" == yyCancel1 || "" == yyCancel2 || "" == yyCancel3 || "" == yyCancel4){
                Feng.info("输入框不能为空!");
                return;
            }
            if(!regInt.test(yyCancel1) || !regDouble.test(yyCancel2) || !regInt.test(yyCancel3) || !regDouble.test(yyCancel4)){
                Feng.info("格式不正确!");
                return ;
            }
        }
        var pdpd1 = $('#pdpd1').val().trim();
        var pdpd2 = $('#pdpd2').val().trim();
        var pdpd3 = $('#pdpd3').val().trim();
        var pdpd4 = $('#pdpd4').val().trim();
        var pdpd5 = $('#pdpd5').val().trim();
        var pdpd6 = $('#pdpd6').val().trim();
        if(type == 'spellOrderSetting'){
            if("" == pdpd1 || "" == pdpd2 || "" == pdpd3 || "" == pdpd4 || "" == pdpd5 || "" == pdpd6){
                Feng.info("输入框不能为空!");
                return;
            }
            if(!regInt.test(pdpd1) || !regDouble.test(pdpd2) || !regInt.test(pdpd3) || !regDouble.test(pdpd4) || !regDouble.test(pdpd5) || !regDouble.test(pdpd6)){
                Feng.info("格式不正确!");
                return ;
            }
        }
 
        var phone1 = $("#phone1").val().trim();
        var phone2 = $("#phone2").val().trim();
        var phone3 = $("#phone3").val().trim();
        var phone5 = $("#phone5").val().trim();
        if(type == "phoneSettings"){
            if('' == phone1 || '' == phone2 || '' == phone3 || '' == phone5){
                Feng.info("输入框不能为空!");
                return;
            }
        }
 
        var phone4 = $("#phone4").val().trim();
        if(type == "95128TheOnCall"){
            if('' == phone4){
                Feng.info("输入框不能为空!");
                return;
            }
        }
 
        var holidayFee = $("#holidayFee").val().trim();
        if(type == 'holidayServiceFeeSetting'){
            if('' == holidayFee){
                Feng.info("输入框不能为空!");
                return;
            }
            if(!regDouble.test(holidayFee)){
                Feng.info("格式不正确!");
                return ;
            }
        }
 
        var sjzp1 = $("#sjzp1").is(":checked");
        if (sjzp1){sjzp1 = 1;} else {sjzp1 = 2;}
        var sjzp2 = $("#sjzp2").is(":checked");
        if (sjzp2){sjzp2 = 1;} else {sjzp2 = 2;}
 
        var zuc1 = $("#zuc1").is(":checked");
        if (zuc1){zuc1 = 1;} else {zuc1 = 2;}
        var zuc2 = $("#zuc2").is(":checked");
        if (zuc2){zuc2 = 1;} else {zuc2 = 2;}
 
        var mc1 = $("#mc1").is(":checked");
        if (mc1){mc1 = 1;} else {mc1 = 2;}
        var mc2 = $("#mc2").is(":checked");
        if (mc2){mc2 = 1;} else {mc2 = 2;}
 
        var czgrcl1 = $("#czgrcl1").is(":checked");
        if (czgrcl1){czgrcl1 = 1;} else {czgrcl1 = 2;}
        var czgrcl2 = $("#czgrcl2").is(":checked");
        if (czgrcl2){czgrcl2 = 1;} else {czgrcl2 = 2;}
 
        var mac1 = $("#mac1").is(":checked");
        if (mac1){mac1 = 1;} else {mac1 = 2;}
        var mac2 = $("#mac2").is(":checked");
        if (mac2){mac2 = 1;} else {mac2 = 2;}
 
        var sjzx1 = $("#sjzx1").is(":checked");
        if (sjzx1){sjzx1 = 1;} else {sjzx1 = 2;}
        var sjzx2 = $("#sjzx2").is(":checked");
        if (sjzx2){sjzx2 = 1;} else {sjzx2 = 2;}
 
        var dck1 = $("#dck1").is(":checked");
        if (dck1){dck1 = 1;} else {dck1 = 2;}
        var dck2 = $("#dck2").is(":checked");
        if (dck2){dck2 = 1;} else {dck2 = 2;}
 
 
        //提交信息
        var ajax = new $ax(Feng.ctxPath + "/tSysReformist/setUp", function(data){
            Feng.success("操作成功!");
            location.reload();
        },function(data){
            Feng.error("操作失败!" + data.responseJSON.message + "!");
        });
 
        if(type == 'integralSet'){
            ajax.set("two", two);
        }
 
        if(type == 'faceRecognitionSettings'){
            ajax.set("three", three);
            if (1 == three){
                ajax.set("openValue",openValue);
            } else if (2 == three){
                ajax.set("openValue",0);
            }
        }
 
        if(type == 'withdrawalFeeSetting'){
            ajax.set("percentage", percentage);
        }
 
        if(type == 'timeoutDeductionSettings'){
            ajax.set("timeOut", timeOut);
            ajax.set("deductMoney", deductMoney);
        }
 
        if(type == 'reassigningSet'){
            ajax.set("one", one);
            ajax.set("isSpecialCar", isSpecialCar);
            ajax.set("isTaxiCar", isTaxiCar);
        }
 
        if(type == 'pushOrderSettings'){
            ajax.set("zc1", zc1);
            ajax.set("zc2", zc2);
            ajax.set("zc3", zc3);
            ajax.set("zc4", zc4);
            ajax.set("zc5", zc5);
            ajax.set("zc6", zc6);
            ajax.set("zc7", zc7);
            ajax.set("zc8", zc8);
            ajax.set("zc9", zc9);
 
            ajax.set("czc1", czc1);
            ajax.set("czc2", czc2);
            ajax.set("czc3", czc3);
            ajax.set("czc4", czc4);
            ajax.set("czc5", czc5);
            ajax.set("czc6", czc6);
            ajax.set("czc7", czc7);
            ajax.set("czc8", czc8);
            ajax.set("czc9", czc9);
        }
 
        if(type == 'cancelOrderSettings'){
            ajax.set("ptCancel1", ptCancel1);
            ajax.set("ptCancel2", ptCancel2);
            ajax.set("ptCancel3", ptCancel3);
            ajax.set("ptCancel4", ptCancel4);
            ajax.set("ptCancel5", ptCancel5);
            ajax.set("ptCancel6", ptCancel6);
        }
        if(type == 'cancelTheReservationOrderSetting'){
            ajax.set("yyCancel1", yyCancel1);
            ajax.set("yyCancel2", yyCancel2);
            ajax.set("yyCancel3", yyCancel3);
            ajax.set("yyCancel4", yyCancel4);
        }
        if(type == 'spellOrderSetting'){
            ajax.set("pdpd1", pdpd1);
            ajax.set("pdpd2", pdpd2);
            ajax.set("pdpd3", pdpd3);
            ajax.set("pdpd4", pdpd4);
            ajax.set("pdpd5", pdpd5);
            ajax.set("pdpd6", pdpd6);
        }
        if(type == "phoneSettings"){
            ajax.set("phone1", phone1);
            ajax.set("phone2", phone2);
            ajax.set("phone3", phone3);
            ajax.set("phone5", phone5);
        }
        if(type == "95128TheOnCall"){
            ajax.set("phone4", phone4);
        }
        if(type == 'holidayServiceFeeSetting'){
            ajax.set("holidayFee", holidayFee);
        }
 
        if(type == 'moduleManagement'){
            ajax.set("sjzp1", sjzp1);
            ajax.set("sjzp2", sjzp2);
            ajax.set("zuc1", zuc1);
            ajax.set("zuc2", zuc2);
            ajax.set("mc1", mc1);
            ajax.set("mc2", mc2);
            ajax.set("czgrcl1", czgrcl1);
            ajax.set("czgrcl2", czgrcl2);
            ajax.set("mac1", mac1);
            ajax.set("mac2", mac2);
            ajax.set("sjzx1", sjzx1);
            ajax.set("sjzx2", sjzx2);
            ajax.set("dck1", dck1);
            ajax.set("dck2", dck2);
        }
        ajax.set("type", type);
        ajax.start();
 
    }
 
</script>
@}