list.html
51.5 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
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
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>Yoho!Buy运营平台</title>
<script src="/ufoPlatform/js/include.js"></script>
<script src="/ufoPlatform/js/clipboard.min.js"></script>
</head>
<body class="easyui-layout">
<input type="hidden" id="buyerOrderCode">
<input type="skup" id="skup">
<div region="north" style="height:355px;">
<script>
document.write(addHead('鉴定中心', '列表管理'));
</script>
<div style="width:1280px;">
<select id="depotNo" class="easyui-combobox" style="width:70px;">
<option value="1">南京</option>
<option value="0">北京</option>
</select>
</div>
<div id="tt" class="easyui-tabs">
<div id="tab_2" title="待收货" style="padding:20px;display:none;">
<div>
<label> 订单编号:</label>
<input id="orderCode_2" type="text" class="easyui-textbox" style="width:150px">
<label> 买家UID:</label>
<input id="buyerUid_2" type="text" class="easyui-textbox" style="width:150px"/>
<label>卖家快递单号:</label>
<input id="sellerWaybillCode_2" type="text" class="easyui-textbox" style="width:150px"/>
<label>订单状态:</label>
<select id="status_2" class="easyui-combobox" style="width:250px;" >
<option value="">全部</option>
<option value="2">卖家已发货</option>
<option value="31">平台质检中</option>
</select>
<br>
<br>
<label> 商品编码:</label>
<input id="productId_2" type="text" class="easyui-textbox" style="width:150px"/>
<label> 卖家UID:</label>
<input id="sellerUid_2" type="text" class="easyui-textbox" style="width:150px"/>
<label> SKU:</label>
<input id="sku_2" type="text" class="easyui-textbox" style="width:150px"/>
<label> SKU-P:</label>
<input id="skup_2" type="text" class="easyui-textbox" style="width:150px"/>
<a id="searchBtn_2" class="btn-info">查询</a>
<a id="allBtn_2" class="btn-success">全部</a>
<br>
<br>
<label>买家手机号:</label>
<input id="buyerMobile_2" type="text" class="easyui-textbox" style="width:150px"/>
<label>卖家手机号:</label>
<input id="sellerMobile_2" type="text" class="easyui-textbox" style="width:150px"/>
</div>
</div>
<div id="tab_1" title="待发货" style="padding:20px;display:none;">
<div>
<label> 订单编号:</label>
<input id="orderCode_1" type="text" class="easyui-textbox" style="width:150px">
<label> 买家UID:</label>
<input id="buyerUid_1" type="text" class="easyui-textbox" style="width:150px"/>
<label>卖家快递单号:</label>
<input id="sellerWaybillCode_1" type="text" class="easyui-textbox" style="width:150px"/>
<label>订单状态:</label>
<select id="status_1" class="easyui-combobox" style="width:250px;" >
<option value="">全部</option>
<option value="3">平台鉴定中</option>
<option value="13">已取消(商品鉴定不通过)</option>
<option value="17">已取消(买家在卖家发货后取消订单)</option>
</select>
<br><br>
<label> 商品编码:</label>
<input id="productId_1" type="text" class="easyui-textbox" style="width:150px"/>
<label> 卖家UID:</label>
<input id="sellerUid_1" type="text" class="easyui-textbox" style="width:150px"/>
<label> SKU:</label>
<input id="sku_1" type="text" class="easyui-textbox" style="width:150px"/>
<label> SKU-P:</label>
<input id="skup_1" type="text" class="easyui-textbox" style="width:150px"/>
<a id="searchBtn_1" class="btn-info">查询</a>
<a id="allBtn_1" class="btn-success">全部</a>
<br><br>
<label>买家手机号:</label>
<input id="buyerMobile_1" type="text" class="easyui-textbox" style="width:150px"/>
<label>卖家手机号:</label>
<input id="sellerMobile_1" type="text" class="easyui-textbox" style="width:150px"/>
</div>
</div>
<div id="tab_3" title="完成" style="padding:20px;display:none;">
<div>
<label> 订单编号:</label>
<input id="orderCode_3" type="text" class="easyui-textbox" style="width:150px">
<label> 买家UID:</label>
<input id="buyerUid_3" type="text" class="easyui-textbox" style="width:150px"/>
<label>卖家快递单号:</label>
<input id="sellerWaybillCode_3" type="text" class="easyui-textbox" style="width:150px"/>
<label>订单状态:</label>
<select id="status_3" class="easyui-combobox" style="width:250px;" >
<option value="">全部</option>
<option value="4">平台已发货</option>
<option value="5">订单完成</option>
<option value="13">已取消(商品鉴定不通过)</option>
<option value="17">已取消(买家在卖家发货后取消订单)</option>
</select>
<br><br>
<label> 商品编码:</label>
<input id="productId_3" type="text" class="easyui-textbox" style="width:150px"/>
<label> 卖家UID:</label>
<input id="sellerUid_3" type="text" class="easyui-textbox" style="width:150px"/>
<label> SKU:</label>
<input id="sku_3" type="text" class="easyui-textbox" style="width:150px"/>
<label> SKU-P:</label>
<input id="skup_3" type="text" class="easyui-textbox" style="width:150px"/>
<a id="searchBtn_3" class="btn-info">查询</a>
<a id="allBtn_3" class="btn-success">全部</a>
<br><br>
<label>买家手机号:</label>
<input id="buyerMobile_3" type="text" class="easyui-textbox" style="width:150px"/>
<label>卖家手机号:</label>
<input id="sellerMobile_3" type="text" class="easyui-textbox" style="width:150px"/>
<label>平台快递单号:</label>
<input id="platformWaybillCode_3" type="text" class="easyui-textbox" style="width:150px"/>
</div>
</div>
</div>
</div>
<div id="orderList" region="center">
<table id="orderListTable"></table>
</div>
<script>
const domain = document.location.href.indexOf('test3') > 0 ? 'http://java-ufo-platform.test3.ingress.dev.yohocorp.com' : '';
const tab_status_platform_receive="2,31";
const tab_status_platform_to_be_sending="3,13,17";
const tab_status_platform_finished="4,5,13,17";
$(function() {
//获取鉴定状态对应的记录数
getCountByJudgeStatus();
$("#depotNo").combobox({
onChange : function(newValue, oldValue){
getCountByJudgeStatus();
var tab = $('#tt').tabs('getSelected');
var index = $('#tt').tabs('getTabIndex',tab);
tabsSelected(index);
}
});
$("#searchBtn_2").linkbutton({
iconCls : "icon-search",
onClick : function() {
$("#orderListTable").datagrid("load", {
statusStr : tab_status_platform_receive,
status : $("#status_2").myCombobox("getValue"),
orderCode : $("#orderCode_2").val(),
uid : $("#buyerUid_2").val(),
sellerUid : $("#sellerUid_2").val(),
productId : $("#productId_2").val(),
skup : $("#skup_2").val(),
sellerWaybillCode : $("#sellerWaybillCode_2").val(),
buyerMobile : $("#buyerMobile_2").val(),
sellerMobile : $("#sellerMobile_2").val(),
depotNo : $("#depotNo").combobox("getValue")
});
//获取鉴定状态对应的记录数
getCountByJudgeStatus();
}
});
/*$("#searchBtn_2").linkbutton({
iconCls : "icon-search",
onClick : function() {
$("#orderListTable").datagrid("load", {
statusStr : tab_status_platform_receive,
status : $("#status_2").myCombobox("getValue"),
orderCode : $("#orderCode_2").val(),
uid : $("#buyerUid_2").val(),
sellerUid : $("#sellerUid_2").val(),
productId : $("#productId_2").val(),
skup : $("#skup_2").val(),
sellerWaybillCode : $("#sellerWaybillCode_2").val(),
buyerMobile : $("#buyerMobile_2").val(),
sellerMobile : $("#sellerMobile_2").val(),
depotNo : $("#depotNo").combobox("getValue")
});
}
});*/
$("#searchBtn_1").linkbutton({
iconCls : "icon-search",
onClick : function() {
$("#orderListTable").datagrid("load", {
statusStr : tab_status_platform_to_be_sending,
platformExpressInfoFlag:"haveNotExpress",
status : $("#status_1").myCombobox("getValue"),
orderCode : $("#orderCode_1").val(),
uid : $("#buyerUid_1").val(),
sellerUid : $("#sellerUid_1").val(),
productId : $("#productId_1").val(),
skup : $("#skup_1").val(),
sellerWaybillCode : $("#sellerWaybillCode_1").val(),
buyerMobile : $("#buyerMobile_1").val(),
sellerMobile : $("#sellerMobile_1").val(),
depotNo : $("#depotNo").combobox("getValue")
});
//获取鉴定状态对应的记录数
getCountByJudgeStatus();
}
});
$("#searchBtn_3").linkbutton({
iconCls : "icon-search",
onClick : function() {
$("#orderListTable").datagrid("load", {
statusStr : tab_status_platform_finished,
platformExpressInfoFlag:"haveExpress",
status : $("#status_3").myCombobox("getValue"),
orderCode : $("#orderCode_3").val(),
uid : $("#buyerUid_3").val(),
sellerUid : $("#sellerUid_3").val(),
productId : $("#productId_3").val(),
skup : $("#skup_3").val(),
sellerWaybillCode : $("#sellerWaybillCode_3").val(),
platformWaybillCode:$("#platformWaybillCode_3").val(),
buyerMobile : $("#buyerMobile_3").val(),
sellerMobile : $("#sellerMobile_3").val(),
depotNo : $("#depotNo").combobox("getValue")
});
//获取鉴定状态对应的记录数
getCountByJudgeStatus();
}
});
getToBeReceiveList();
$("#tt").tabs({
onSelect:function(title,index){
tabsSelected(index);
}
});
function tabsSelected(index) {
if(index == 0){
getToBeReceiveList();
}else if(index == 1){
getToBeSendOutList();
}else if(index == 2){
getAlreadyJudgedList();
}
}
//全部按钮
$("#allBtn_2").linkbutton({
iconCls: "icon-import",
onClick: function () {
$("#orderCode_2").textbox('setValue','');
$("#uid_2").textbox('setValue','');
$("#sellerUid_2").textbox('setValue','');
$("#sellerWaybillCode_2").textbox('setValue','');
$("#status_2").combobox('setValue','');
$("#productId_2").textbox('setValue','');
$("#sku_2").textbox('setValue','');
$("#buyerMobile_2").textbox('setValue','');
$("#sellerMobile_2").textbox('setValue','');
$("#skup_2").textbox('setValue','');
$("#orderListTable").datagrid("load", {
statusStr: tab_status_platform_receive,
depotNo: $("#depotNo").combobox("getValue")
});
//获取鉴定状态对应的记录数
getCountByJudgeStatus();
}
});
$("#allBtn_1").linkbutton({
iconCls: "icon-import",
onClick: function () {
$("#orderCode_1").textbox('setValue','');
$("#uid_1").textbox('setValue','');
$("#sellerUid_1").textbox('setValue','');
$("#sellerWaybillCode_1").textbox('setValue','');
$("#status_1").combobox('setValue','');
$("#productId_1").textbox('setValue','');
$("#sku_1").textbox('setValue','');
$("#buyerMobile_1").textbox('setValue','');
$("#sellerMobile_1").textbox('setValue','');
$("#skup_1").textbox('setValue','');
$("#orderListTable").datagrid("load", {
statusStr: tab_status_platform_to_be_sending,
platformExpressInfoFlag:"haveNotExpress",
depotNo: $("#depotNo").combobox("getValue")
});
//获取鉴定状态对应的记录数
getCountByJudgeStatus();
}
});
$("#allBtn_3").linkbutton({
iconCls: "icon-import",
onClick: function () {
$("#orderCode_3").textbox('setValue','');
$("#uid_3").textbox('setValue','');
$("#sellerUid_3").textbox('setValue','');
$("#sellerWaybillCode_3").textbox('setValue','');
$("#platformWaybillCode_3").textbox('setValue','');
$("#status_3").combobox('setValue','');
$("#productId_3").textbox('setValue','');
$("#sku_3").textbox('setValue','');
$("#buyerMobile_3").textbox('setValue','');
$("#sellerMobile_3").textbox('setValue','');
$("#skup_3").textbox('setValue','');
$("#orderListTable").datagrid("load", {
statusStr: tab_status_platform_finished,
platformExpressInfoFlag:"haveExpress",
depotNo: $("#depotNo").combobox("getValue")
});
//获取鉴定状态对应的记录数
getCountByJudgeStatus();
}
});
});
function getToBeReceiveList() {
getToBeReceiveListOrJudgedList(false,tab_status_platform_receive,null);
}
function getToBeSendOutList() {
getToBeReceiveListOrJudgedList(false,tab_status_platform_to_be_sending,"haveNotExpress");
}
function getAlreadyJudgedList(){
getToBeReceiveListOrJudgedList(true,tab_status_platform_finished,"haveExpress");
}
function getToBeReceiveListOrJudgedList(platformWaybillShowFlag,paramStatusStr,platformExpressInfoFlag){
var dynaColumns=getTableColumn(platformWaybillShowFlag);
var table_columns=[dynaColumns];
$("#orderListTable").myDatagrid({
fit: true,
fitColumns: true,
striped: true,
url: contextPath + "/buyerOrder/queryOrderList",
method: 'POST',
queryParams: {
statusStr: paramStatusStr,
platformExpressInfoFlag:platformExpressInfoFlag,
depotNo: $("#depotNo").combobox("getValue")
},
loadFilter: function (data) {
var temp = defaultLoadFilter(data);
temp=null==temp?[]:temp;
temp.rows = temp.list;
return temp;
},
columns: table_columns,
cache: false,
pagination: true,
pageSize: 10,
idField: "id",
singleSelect: true,
onLoadSuccess: function (data) {
//确认收货
$(this).datagrid("getPanel").find("a[role='confirm']").linkbutton({
onClick: function () {
var id = $(this).attr("dataId");
confirmReceive(id);
}
});
//质检通过-- 进入鉴定
$(this).datagrid("getPanel").find("a[role='qualityCheckPass']").linkbutton({
onClick: function () {
var id = $(this).attr("dataId");
qualityCheckPass(id);
}
});
//质检不通过-- 进入鉴定不通过状态
$(this).datagrid("getPanel").find("a[role='qualityCheckNotPass']").linkbutton({
onClick: function () {
var id = $(this).attr("dataId");
addOrQueryCheckNotPass(id,true);
}
});
//瑕疵确认
$(this).datagrid("getPanel").find("a[role='submitMiniFault']").linkbutton({
onClick: function () {
var id = $(this).attr("dataId");
addOrQueryminiFault(id,true);
}
});
//查看瑕疵
$(this).datagrid("getPanel").find("a[role='queryMiniFault']").linkbutton({
onClick: function () {
var id = $(this).attr("dataId");
addOrQueryminiFault(id,false);
}
});
//查看质检不通过
$(this).datagrid("getPanel").find("a[role='queryCheckNotPass']").linkbutton({
onClick: function () {
var id = $(this).attr("dataId");
addOrQueryCheckNotPass(id,false);
}
});
//录入鉴定结果:通过
$(this).datagrid("getPanel").find("a[role='pass']").linkbutton({
onClick: function () {
var skup = $(this).attr("skup");
$("#skup").val(skup);
var buyerOrderCode = $(this).attr("orderCode");
$("#buyerOrderCode").val(buyerOrderCode);
judgePass($(this).attr("dataId"));
}
});
//录入鉴定结果:不通过
$(this).datagrid("getPanel").find("a[role='reject']").linkbutton({
onClick: function () {
var buyerOrderCode = $(this).attr("orderCode");
$("#buyerOrderCode").val(buyerOrderCode);
var skup = $(this).attr("skup");
$("#skup").val(skup);
judgeReject($(this).attr("dataId"));
}
});
// 查看视频
$(this).datagrid("getPanel").find("a[role='query']").linkbutton({
onClick: function () {
var skup = $(this).attr("skup");
var order_code = $(this).attr("order_code");
$("#skup").val(skup);
addQueryPage(skup, order_code, $(this).attr("dataId"));
}
});
// 录制视频
$(this).datagrid("getPanel").find("a[role='record']").linkbutton({
onClick: function () {
var skup = $(this).attr("skup");
var order_code = $(this).attr("order_code");
$("#skup").val(skup);
addRecordPage(skup, order_code, $(this).attr("dataId"));
}
});
// 作废视频
$(this).datagrid("getPanel").find("a[role='discard']").linkbutton({
onClick: function () {
var skup = $(this).attr("skup");
var order_code = $(this).attr("order_code");
$("#skup").val(skup);
addDiscardPage(skup, order_code, $(this).attr("dataId"));
}
});
//鉴定不通过造成的退回
$(this).datagrid("getPanel").find("a[role='reback_cause_of_judge_failure']").linkbutton({
onClick: function () {
var skup = $(this).attr("skup");
$("#skup").val(skup);
addRejectPage($(this).attr("dataId"));
}
});
//买家取消造成的退回
$(this).datagrid("getPanel").find("a[role='reback_cause_of_buyer_cancel']").linkbutton({
onClick: function () {
var skup = $(this).attr("skup");
$("#skup").val(skup);
addRebackPage($(this).attr("dataId"));
}
});
$(this).datagrid("getPanel").find("a[role='platform_waybill_viewExpress']").linkbutton({
onClick: function () {
var buyerOrderCode = $(this).attr("dataId");
$("#buyerOrderCode").val(buyerOrderCode);
viewExpressPage(buyerOrderCode);
}
});
}
});
}
function getTableColumn(platformWaybillShowFlag) {
return [{
title: "卖家快递单号",
field: "sellerWaybillCode",
width: 30,
hidden:platformWaybillShowFlag,
align: "center"
},{
title: "平台快递单号",
field: "platformWaybillCode",
width: 30,
hidden:!platformWaybillShowFlag,
align: "center"
}, {
title: "收货仓库",
field: "depotNo",
width: 12,
align: "center",
formatter: function (value, rowData, rowIndex) {
if (value == 0) {
return "北京";
}else if(value == 1){
return "南京";
}
}
}, {
title: "件数",
field: "productNum",
width: 8,
align: "center"
}, {
title: "SKU",
field: "skuStr",
width: 10,
align: "center"
}, {
title: "订单编号",
field: "orderCode",
width: 25,
align: "center"
}, {
title: "订单状态",
field: "status",
width: 20,
align: "center",
formatter: function (value, rowData, rowIndex) {
if(rowData.statusStr){
return rowData.statusStr;
}
return value;
}
},{
title: "货号",
field: "productCode",
width: 20,
align: "center"
},{
title: "商品名称",
field: "productName",
width: 20,
align: "center"
},{
title: "尺码",
field: "sizeName",
width: 20,
align: "center"
},{
title: "下单时间",
field: "createTimeStr",
width: 20,
align: "center"
},{
title: "操作",
field: "asdf",
width: 40,
align: "center",
formatter: function (value, rowData, rowIndex) {
if (rowData.status == 2) {
return "<a role='confirm' dataId='"+ rowData.id +"' style='margin-left:10px;background-color: #5cb85c !important;'>确认收货</a>";
} else if (rowData.status == 31) {
var operateButton ="";
if(rowData.qualityCheckType!=null && rowData.qualityCheckType == 2){
//已经有瑕疵确认了 ,只能查看
operateButton += "<a role='queryMiniFault' dataId='"+ rowData.id +"' style='margin-left:10px;background-color: #5cb85c !important;color: #fff !important;'>查看瑕疵</a>";
}else{
operateButton += "<a role='qualityCheckPass' dataId='"+ rowData.id +"' style='margin-left:10px;background-color: #5cb85c !important;color: #fff !important;'>质检通过</a>";
operateButton += "";//<a role='qualityCheckNotPass' dataId='"+ rowData.id + "'" + " skup='"+rowData.skup +"' style='margin-left:10px;background-color: #d9534f !important; color: #fff !important;'>质检不通过</a>";
operateButton += "<a role='submitMiniFault' dataId='"+ rowData.id +"' style='margin-left:10px;background-color: #5bc0de !important;color: #fff !important;'>瑕疵确认</a>";
}
return operateButton ;
}else if (rowData.status == 3) {
var cameraText = window.localStorage.getItem('ufo:' + rowData.orderCode) ? getTimeStrFrom(window.localStorage.getItem('ufo:' + rowData.orderCode)) : '开始录制';
var operateButton = "<a role='pass' dataId='"+ rowData.id + "'" + " skup='"+rowData.skup + "' orderCode='"+rowData.orderCode +"' style='margin-left:10px;background-color: #5cb85c !important;'>鉴定通过</a>"+
"<a role='reject' dataId='"+ rowData.id + "'" + " skup='"+rowData.skup + "' orderCode='"+rowData.orderCode +"' style='margin-left:10px;background-color: #d9534f !important; color: #fff !important;'>鉴定不通过</a>"+
"<a role='record' dataId='"+ rowData.id + "' order_code='" + rowData.orderCode + "' skup='"+rowData.skup +"' style='margin-left:10px;background-color: #5bc0de !important; color: #fff !important;'>" + cameraText + "</a>";
if (rowData.containMp4Flag) {
operateButton += "<a role='query' dataId='"+ rowData.id + "' order_code='" + rowData.orderCode + "' skup='"+rowData.skup +"' style='margin-left:10px;background-color: #FFCC33 !important;color: #fff !important;'>查看视频</a>";
}
if(rowData.qualityCheckType!=null && rowData.qualityCheckType == 2){
operateButton += "<a role='queryMiniFault' dataId='"+ rowData.id +"' style='margin-left:10px;background-color: #5cb85c !important;color: #fff !important;'>查看瑕疵</a>";
}
if(rowData.qualityCheckType!=null && rowData.qualityCheckType == 1){
operateButton += "<a role='queryCheckNotPass' dataId='"+ rowData.id +"' style='margin-left:10px;background-color: #5cb85c !important;color: #fff !important;'>查看质检图片</a>";
}
return operateButton;
}else if (rowData.status == 4||rowData.status == 5) {
var operateButton = "<a role='platform_waybill_viewExpress' dataId='"+ rowData.orderCode + "' style='margin-left:10px;background-color: #5cb85c !important;'>查看物流</a>";
if (rowData.containMp4Flag) {
operateButton += "<a role='query' dataId='"+ rowData.id + "' order_code='" + rowData.orderCode + "' skup='"+rowData.skup +"' style='margin-left:10px;background-color: #FFCC33 !important;color: #fff !important;'>查看视频</a>";
operateButton += "<a role='discard' dataId='"+ rowData.id + "' order_code='" + rowData.orderCode + "' skup='"+rowData.skup +"' style='margin-left:10px;background-color: #d9534f !important;color: #fff !important;'>作废视频</a>";
}
if(rowData.qualityCheckType!=null && rowData.qualityCheckType == 2){
operateButton += "<a role='queryMiniFault' dataId='"+ rowData.id +"' style='margin-left:10px;background-color: #5cb85c !important;color: #fff !important;'>查看瑕疵</a>";
}
if(rowData.qualityCheckType!=null && rowData.qualityCheckType == 1){
operateButton += "<a role='queryCheckNotPass' dataId='"+ rowData.id +"' style='margin-left:10px;background-color: #5cb85c !important;color: #fff !important;'>查看质检图片</a>";
}
return operateButton;
} else if (rowData.status == 13||rowData.status == 17) {
var operateButton="";
if(rowData.platformWaybillCode){
operateButton += "<a role='platform_waybill_viewExpress' dataId='"+ rowData.orderCode + "' style='margin-left:10px;background-color: #5cb85c !important;'>查看物流</a>";
}else{
var roleName="reback_cause_of_buyer_cancel";
if(rowData.status == 13){
roleName="reback_cause_of_judge_failure"
}
operateButton += "<a role='"+roleName+"' dataId='"+ rowData.id + "'" + " skup='"+rowData.skup +"' style='margin-left:10px;background-color: #5cb85c !important;'>寄回</a>";
}
if (rowData.containMp4Flag) {
operateButton += "<a role='query' dataId='"+ rowData.id + "' order_code='" + rowData.orderCode + "' skup='"+rowData.skup +"' style='margin-left:10px;background-color: #FFCC33 !important;color: #fff !important;'>查看视频</a>";
}
if(rowData.qualityCheckType!=null && rowData.qualityCheckType == 2){
operateButton += "<a role='queryMiniFault' dataId='"+ rowData.id +"' style='margin-left:10px;background-color: #5cb85c !important;color: #fff !important;'>查看瑕疵</a>";
}
if(rowData.qualityCheckType!=null && rowData.qualityCheckType == 1){
operateButton += "<a role='queryCheckNotPass' dataId='"+ rowData.id +"' style='margin-left:10px;background-color: #5cb85c !important;color: #fff !important;'>查看质检图片</a>";
}
return operateButton;
}
}
}]
}
function viewExpressPage() {
var div = $("<div id='viewExpressDiv'>").appendTo($(document.body));
var url = contextPath + "/html/judgeCenter/viewExpress.html";
$(div).myDialog({
width: "50%",
height: "60%",
title: "平台发货物流信息",
href: url,
modal: true,
collapsible: true,
cache: false,
buttons: [{
text: "取消",
iconCls: "icon-cancel",
handler: function () {
$(div).dialog("close");
}
}]
});
}
//确认收货
function confirmReceive(id){
$.messager.confirm("确认收货提醒", "是否确认收货?确认收货前请务必确定货品已到达仓库。", function(flag) {
if (flag) {
$.post(contextPath + "/buyerOrder/confirmReceive", {
id : id
}, function(data) {
if (data.code == 200) {
reloadTableAndFreshCount();
window.self.$.messager.show({
title : "提示",
msg : "确认收货成功!"
});
}else {
window.self.$.messager.alert("失败", "失败!", "error");
}
});
}
});
}
//质检通过
function qualityCheckPass(id) {
$.messager.confirm("质检通过提醒", "是否质检通过?", function(flag) {
if (flag) {
$.post(contextPath + "/buyerOrder/qualityCheckPass", {
id : id
}, function(data) {
if (data.code == 200) {
reloadTableAndFreshCount();
window.self.$.messager.show({
title : "提示",
msg : "质检通过成功!"
});
}else {
window.self.$.messager.alert("失败", "失败!", "error");
}
});
}
});
}
//瑕疵确认--flag true:新建;flag false: 查看详情
function addOrQueryminiFault(id,flag) {
var data = [];
data.id = id;
var htmlUrl = contextPath + "/html/judgeCenter/addOrQueryminiFault.html?time_version=" + new Date().getTime();
if(flag){//新增,打开窗口即可
showMiniFaultDialog(data,"瑕疵确认",flag,htmlUrl);
}else{//查看,先去查找数据
$.post(contextPath + "/buyerOrder/queryQualityCheck", {
id : id
}, function(resp) {
if (resp.code == 200) {
data.imageUrlList = resp.data.imageUrlList;
data.checkText = resp.data.checkText;
var dialogTitle = "查看瑕疵<span style='color:red;font-size: 15px'> "+resp.data.timeStr+" "+resp.data.desc+"</span>";
showMiniFaultDialog(data,dialogTitle,flag,htmlUrl);
}else {
window.self.$.messager.alert("失败", "查询失败,请稍后重试", "error");
}
});
}
}
//质检不通过--flag true:新建;flag false: 查看详情
function addOrQueryCheckNotPass(id,flag) {
var data = [];
data.id = id;
var htmlUrl = contextPath + "/html/judgeCenter/checkNotPass.html?time_version=" + new Date().getTime();
if(flag){//新增,打开窗口即可
showCheckNotPassDialog(data,"质检不通过确认",flag,htmlUrl);
}else{//查看,先去查找数据
$.post(contextPath + "/buyerOrder/queryQualityCheck", {
id : id
}, function(resp) {
if (resp.code == 200) {
data.imageUrlList = resp.data.imageUrlList;
data.checkText = resp.data.checkText;
var dialogTitle = "查看质检<span style='color:red;font-size: 15px'> 质检不通过</span>";
showCheckNotPassDialog(data,dialogTitle,flag,htmlUrl);
}else {
window.self.$.messager.alert("失败", "查询失败,请稍后重试", "error");
}
});
}
}
//展示瑕疵窗口(确认or查看)
function showMiniFaultDialog(data,dialogTitle,flag,htmlUrl) {
var div = $("<div id='passDiv'>").appendTo($(document.body));
data.flag = flag;
if(flag){
data.imageLabel = "上传瑕疵图片";
}else{
data.imageLabel = "瑕疵图片";
}
//传递参数
window.self.paramObject.mkData = data;
$(div).myDialog({
width: "95%",
height: "80%",
title: dialogTitle,
href: htmlUrl,
modal: true,
collapsible: true,
cache: false,
buttons: [{
text: "取消",
iconCls: "icon-cancel",
handler: function () {
$(div).dialog("close");
}
}, {
text: "提交",
id: "saveBtn",
iconCls: "icon-save",
onClick: function () {
//提交信息
var imageUrlStr = "";
$('.goods-image .img').each(function(index, item) {
imageUrlStr +=$(item).data('url')+",";
});
if(imageUrlStr == ""){
window.self.$.messager.alert("失败", "提交失败,请至少上传一张图片!", "error");
return false;
}
var checkText = $("#checkText").textbox('getValue');
if(checkText == null || checkText == ""){
window.self.$.messager.alert("失败", "提交失败,备注必填!", "error");
return false;
}
$.post(contextPath + "/buyerOrder/miniFaultConfirm", {
id : data.id,
imageUrls : imageUrlStr,
checkText : checkText
}, function(data) {
if (data.code == 200) {
reloadTableAndFreshCount();
$("#passDiv").dialog("close");
window.self.$.messager.show({
title : "提示",
msg : "操作成功!"
});
}else {
window.self.$.messager.alert("失败", data.message, "error");
}
});
}
}]
});
}
//展示质检不通过窗口(确认or查看)
function showCheckNotPassDialog(data,dialogTitle,flag,htmlUrl) {
var div = $("<div id='passDiv'>").appendTo($(document.body));
data.flag = flag;
if(flag){
data.imageLabel = "上传质检图片";
}else{
data.imageLabel = "质检图片";
}
//传递参数
window.self.paramObject.mkData = data;
$(div).myDialog({
width: "95%",
height: "80%",
title: dialogTitle,
href: htmlUrl,
modal: true,
collapsible: true,
cache: false,
buttons: [{
text: "取消",
iconCls: "icon-cancel",
handler: function () {
$(div).dialog("close");
}
}, {
text: "提交",
id: "saveBtn",
iconCls: "icon-save",
onClick: function () {
//提交信息
var imageUrlStr = "";
$('.goods-image .img').each(function(index, item) {
imageUrlStr +=$(item).data('url')+",";
});
if(imageUrlStr == ""){
window.self.$.messager.alert("失败", "提交失败,请至少上传一张图片!", "error");
return false;
}
var checkText = $("#checkText").textbox('getValue');
if(checkText == null || checkText == ""){
window.self.$.messager.alert("失败", "提交失败,备注必填!", "error");
return false;
}
$.post(contextPath + "/buyerOrder/qualityCheckNotPass", {
id : data.id,
imageUrls : imageUrlStr,
checkText : checkText
}, function(data) {
if (data.code == 200) {
reloadTableAndFreshCount();
$("#passDiv").dialog("close");
window.self.$.messager.show({
title : "提示",
msg : "操作成功!"
});
}else {
window.self.$.messager.alert("失败", data.message, "error");
}
});
}
}]
});
}
//鉴定通过,并且发货
function judgePass(id) {
$.post(contextPath + "/live/generateMp4Vedio", {
depotNo: $("#depotNo").combobox("getValue") ,
orderCode : document.getElementById("buyerOrderCode").value,
skup : document.getElementById("skup").value,
startTime : window.localStorage.getItem('ufo:' + document.getElementById("buyerOrderCode").value)
}, function(data) {
window.localStorage.removeItem('ufo:' + document.getElementById("buyerOrderCode").value);
});
addPassPage(id);
}
//鉴定通过后发货
function addPassPage(id) {
var div = $("<div id='passDiv'>").appendTo($(document.body));
var url = contextPath + "/html/judgeCenter/pass.html?time_version=" + new Date().getTime();
$(div).myDialog({
width: "50%",
height: "60%",
title: "发货(鉴定通过)",
href: url,
modal: true,
collapsible: true,
cache: false,
buttons: [{
text: "取消",
iconCls: "icon-cancel",
handler: function () {
$(div).dialog("close");
}
},{
text: "发货",
id: "saveBtn",
iconCls: "icon-save",
onClick: function () {
$('#saveBtn').linkbutton('disable');
deliverGoods(id);
}
}]
});
}
//买家取消后,卖家已发货的商品直接退回
function addRebackPage(id) {
var div = $("<div id='rebackDiv'>").appendTo($(document.body));
var url = contextPath + "/html/judgeCenter/reject.html?time_version=" + new Date().getTime();
$(div).myDialog({
width: "50%",
height: "60%",
title: "商品寄回(买家已取消订单)",
href: url,
modal: true,
collapsible: true,
cache: false,
buttons: [{
text: "取消",
iconCls: "icon-cancel",
handler: function () {
$(div).dialog("close");
}
},{
text: "寄回",
id: "rebackBtn",
iconCls: "icon-save",
onClick: function () {
$('#rebackBtn').linkbutton('disable');
reBackGoods(id);
}
}]
});
}
//鉴定不通过,并且发货
function judgeReject(id) {
$.post(contextPath + "/live/generateMp4Vedio", {
depotNo: $("#depotNo").combobox("getValue") ,
orderCode : document.getElementById("buyerOrderCode").value,
skup : document.getElementById("skup").value,
startTime : window.localStorage.getItem('ufo:' + document.getElementById("buyerOrderCode").value)
}, function(data) {
window.localStorage.removeItem('ufo:' + document.getElementById("buyerOrderCode").value);
});
var div = $("<div id='rejectDiv'>").appendTo($(document.body));
var url = contextPath + "/html/judgeCenter/reject.html?time_version=" + new Date().getTime();;
$(div).myDialog({
width: "50%",
height: "60%",
title: "商品寄回(鉴定不通过)",
href: url,
modal: true,
collapsible: true,
cache: false,
buttons: [{
text: "取消",
iconCls: "icon-cancel",
handler: function () {
$(div).dialog("close");
}
},{
text: "寄回",
id: "rejectBtn",
iconCls: "icon-save",
onClick: function () {
$('#rejectBtn').linkbutton('disable');
sendBackGoods(id,true);
}
}]
});
}
//鉴定不通过后退回商品
function addRejectPage(id) {
var div = $("<div id='rejectDiv'>").appendTo($(document.body));
var url = contextPath + "/html/judgeCenter/reject.html?time_version=" + new Date().getTime();;
$(div).myDialog({
width: "50%",
height: "60%",
title: "商品寄回(鉴定不通过)",
href: url,
modal: true,
collapsible: true,
cache: false,
buttons: [{
text: "取消",
iconCls: "icon-cancel",
handler: function () {
$(div).dialog("close");
}
},{
text: "寄回",
id: "rejectBtn",
iconCls: "icon-save",
onClick: function () {
$('#rejectBtn').linkbutton('disable');
sendBackGoods(id,false);
}
}]
});
}
function addRecordPage(skup, order_code, id) {
$.ajax({
contentType: "application/json", dataType: "json", type: "GET",
url: contextPath + '/live/queryCurrentTime',
success: function (data) {
if (data.code == 400) { // 如果是400错误码,则代表需要选择摄像头
var div = $("<div id='recordDiv'>").appendTo($(document.body));
$(div).myDialog({
width: "45%", height: "35%", title: "选择摄像头",
href: contextPath + "/html/judgeCenter/record.html",
modal: true, collapsible: true, cache: false,
onClose : function() {$(this).dialog('destroy');},
buttons: [{
text: "保存", id: "recordBtn", iconCls: "icon-save",
onClick: function () {
if ($("#cameraCode").myCombobox("getValue") == undefined || $("#cameraCode").myCombobox("getValue") == '') {
window.self.$.messager.alert("失败", "先选择摄像头", "error");
return;
}
$.post(contextPath + "/live/saveInitCameraRecord", {
cameraCode : $("#cameraCode").myCombobox("getValue"),
}, function(data) {
if (data.code == 200) {
$("#recordDiv").dialog("close");
window.self.$.messager.show({title : "提示",msg : "保存默认摄像头成功!"});
}else { window.self.$.messager.alert("失败", "重新选择摄像头", "error"); }
});
}
},{
text: "取消", iconCls: "icon-cancel",
handler: function () { $(div).dialog("destroy");}
}]
});
} else if (data.code == 200){ // 保存开始时间
window.localStorage.setItem('ufo:' + order_code, data.data);
var timeStr = getTimeStrFrom(window.localStorage.getItem('ufo:' + order_code));
$('a[order_code=' + order_code +']:eq(0)').find('.l-btn-text').html(timeStr);
} else {
window.self.$.messager.alert("失败", "服务器异常,稍后再试", "error");
}
}
});
}
// 查询视频
function addQueryPage(skup, order_code, id) {
$.post(contextPath + "/live/queryMp4Vedio", {
skup : skup,
orderCode : order_code
}, function(data) {
if (data.code == 200) {
window.open(data.data);
}else {
window.self.$.messager.alert("查询失败", data.message, "error");
}
});
}
// 作废视频
function addDiscardPage(skup, order_code, id) {
$.post(contextPath + "/live/dicardVedio", {
skup : skup,
orderCode : order_code
}, function(data) {
if (data.code == 200) {
window.self.$.messager.show({
title : "提示",
msg : "作废成功!"
});
}else {
window.self.$.messager.alert("查询失败", data.message, "error");
}
});
}
//鉴定通过发货
function deliverGoods(id){
var expressCompanyId = $("#expressCompany").myCombobox("getValue");
var waybillCode = $("#waybillCode").textbox("getValue");
var mobile = $("#receiveInfo_mobile").val();
if(expressCompanyId==''){
alert("请选择快递公司!");
return;
}
if(waybillCode == ''){
alert("请填写快递单号!");
return;
}
if(!mobile){
alert("收货人手机号为空!");
return;
}
$.post(contextPath + "/buyerOrder/judgePass", {
id : id,
status : 4,
expressCompanyId : expressCompanyId,
waybillCode : waybillCode,
mobile:mobile,
depotNo: $("#depotNo").combobox("getValue")
}, function(data) {
if (data.code == 200) {
reloadTableAndFreshCount();
$("#passDiv").dialog("close");
window.self.$.messager.show({
title : "提示",
msg : "发货操作成功!"
});
}else {
window.self.$.messager.alert("失败", data.message, "error");
}
});
}
//卖家发货,但是买家已取消,直接寄回
function reBackGoods(id){
var expressCompanyId = $("#expressCompany").myCombobox("getValue");
var waybillCode = $("#waybillCode").textbox("getValue");
var mobile = $("#sendBackInfo_mobile").val();
if(expressCompanyId==''){
alert("请选择快递公司!");
return;
}
if(waybillCode == ''){
alert("请填写快递单号!");
return;
}
if(!mobile){
alert("收货人手机号为空!");
return;
}
$.post(contextPath + "/buyerOrder/returnBackOrder", {
id : id,
status : 17,
expressCompanyId : expressCompanyId,
waybillCode : waybillCode,
mobile:mobile,
depotNo: $("#depotNo").combobox("getValue")
}, function(data) {
if (data.code == 200) {
reloadTableAndFreshCount();
$("#rebackDiv").dialog("close");
window.self.$.messager.show({
title : "提示",
msg : "商品寄回操作成功!"
});
}else {
window.self.$.messager.alert("失败", data.message, "error");
}
});
}
//鉴定不通过寄回
function sendBackGoods(id,changeStateToReject){
var reqUrl="/buyerOrder/returnBackOrderCauseOfJudgeFailure";
if(changeStateToReject){
reqUrl="/buyerOrder/judgeReject";
}
var expressCompanyId = $("#expressCompany").myCombobox("getValue");
var waybillCode = $("#waybillCode").textbox("getValue");
var mobile = $("#sendBackInfo_mobile").val();
if(expressCompanyId==''){
alert("请选择快递公司!");
return;
}
if(waybillCode == ''){
alert("请填写快递单号!");
return;
}
if(!mobile){
alert("收货人手机号为空!");
return;
}
$.post(contextPath +reqUrl , {
id : id,
status : 13,
expressCompanyId : expressCompanyId,
waybillCode : waybillCode,
mobile:mobile,
depotNo: $("#depotNo").combobox("getValue")
}, function(data) {
if (data.code == 200) {
reloadTableAndFreshCount();
$("#rejectDiv").dialog("close");
window.self.$.messager.show({
title : "提示",
msg : "操作成功!"
});
}else {
window.self.$.messager.alert("失败", data.message, "error");
}
});
}
function reloadTableAndFreshCount(){
//获取鉴定状态对应的记录数
getCountByJudgeStatus();
$("#orderListTable").datagrid("reload");
}
function getTimeStrFrom(time) {
var timeInt = parseInt(time) * 1000;
var date = new Date(timeInt);
//var Y = date.getFullYear() + '-';
//var M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1) + '-';
var D = date.getDate() + '号';
var h = date.getHours() + ':';
var m = date.getMinutes() + ':';
var s = date.getSeconds();
return D+h+m+s;
}
function getCountByJudgeStatus(){
var form = new FormData();
form.append("depotNo", $("#depotNo").combobox("getValue"));
//发送请求
$.ajax({
type: "POST",
url: contextPath + '/buyerOrder/getCountByJudgeStatus',
data: form,
async: false,
cache: false,
contentType: false,
processData: false,
dataType: 'json',
success: function (result) {
if(result.code == 200) {
var tab_toBeReveived = $('#tt').tabs('getTab',0); // 取得第一个tab
$('#tt').tabs('update', {
tab: tab_toBeReveived,
options: {
title: '待收货('+ result.data.toBeReceivedNum + ")"
}
});
var tab_toBeSendOutNum = $('#tt').tabs('getTab',1); // 取得第一个tab
$('#tt').tabs('update', {
tab: tab_toBeSendOutNum,
options: {
title: '待发货('+ result.data.toBeSendOutNum + ")"
}
});
var tab_alreadyJudgedNum = $('#tt').tabs('getTab',2); // 取得第一个tab
$('#tt').tabs('update', {
tab: tab_alreadyJudgedNum,
options: {
title: '完成('+ result.data.alreadyJudgedNum + ")"
}
});
}
else {
$.messager.alert("失败", result.message, "error");
}
}
});
}
</script>
</body>
</html>