tom
2023-12-06 9e968679ed2e6937aeb7b50a6c450d5d19251f42
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
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
<!doctype html>
<html>
    <head>
        <meta charset="utf-8"><meta http-equiv="Expires" content="0"><meta http-equiv="Pragma" content="no-cache"><meta http-equiv="Cache-control" content="no-cache"><meta http-equiv="Cache" content="no-cache">
        <title>折让计算</title>
        <script src="../../../jsnew/elementDefault.js?v=20220425"></script>
        <script src="../../../jsnew/vue/vue.js"></script>
        <script src="../../../jsnew/vue/element-ui/element-ui_15/index.js"></script>
        <script src="../../../jsnew/myelement.js?v=20220425"></script>
        <script src="../../../jsnew/page.js?v=20220425"></script>
        <!-- <script src="../../../setting.js"></script> -->
        
        <link href="../../../jsnew/vue/element-ui/element-ui_15/theme-chalk/index.css" rel="stylesheet">
        <link href="../../../jsnew/myelement.css?v=20220426" rel="stylesheet">
        <link href="../../../jsnew/theme.css?v=20220426" rel="stylesheet">
        <link href="../../../css/iconfont.css" rel="stylesheet">
        <link href="../../../jsnew/page.css?v=20220425" rel="stylesheet">
        <link href="//at.alicdn.com/t/font_2374495_13ltsxm2eor.css" rel="stylesheet">
    </head>
 
    <style>
        /*  在vue.js中 v-cloak 这个指令是防止页面加载时出现 vuejs 的变量名而设计的 */
        [v-cloak] {
            display: none !important;
        }
    </style>
 
    <body  style="margin: 0px;">
        <div v-cloak id="vbody">
            <div id="page_root">
                <div ref="popup_body" style="padding: 0 20px;">
                    <div class="el-dialog__header">
                        <div class="dialog-title">
                          <i class="iconfont icon-customermanagement"></i>
                          <span> {{title}}</span>
                        </div>
                    </div>    
 
                    <div style=" text-align: right; padding: 5px 30px 0px 0px;"  v-if="isedit">
                        <h-form
                            ref="form1"
                            :form-attr="formAttr"
                            :table-fields="formFields"
                            :form-data="formData"
                            :table-field-click="formfieldClick"
                            >
                        </h-form>
                    </div>
 
                    <div style=" text-align: right; padding: 5px 30px 0px 0px;"  v-if="!isedit">
                        <el-button size="small" v-if="state == '待计算'" type="primary" @click="reCalculate">试算</el-button>
                        <el-button size="small" v-if="state == '待确认'" type="primary" @click="">审 批</el-button>
                        <el-button size="small" v-if="state == '待确认'" type="primary" @click="">批量审批</el-button>
                        <el-button size="small" v-if="state == '待确认'" type="primary" @click="">导 入</el-button>
                        <el-button size="small" v-if="state == '待确认'" type="primary" @click="">导 出</el-button>
                        <el-button size="small" v-if="state == '待确认'" type="primary" @click="">保 存</el-button>
                        <el-button size="small" v-if="state == '待确认'" type="primary" @click="">编 辑</el-button>
                        <el-button size="small" v-if="state == '已确认'" type="primary" @click="distribute">分 发</el-button>
                        <el-button size="small" v-if="state == '已确认'" type="primary" @click="getReply">获取反馈</el-button>
                        <el-button size="small" v-if="state == '已确认'" type="primary" @click="">封 版</el-button>
                        <!-- <el-button size="small" v-if="state == '已封版'" type="primary" @click="">红冲计算</el-button> -->
                        <!-- <el-button size="small" v-if="state == '已封版'" type="primary" @click="">作 废</el-button> -->
                        <el-button size="small" type="default" @click="closeDialog">取 消</el-button>
                    </div>
 
                    <div :style="{height: t_height +'px', 'overflow-y': 'auto'}">
                        <!-- <h-form
                            ref="form1"
                            :form-attr="formAttr"
                            :table-fields="formFields"
                            :form-data="formData"
                            :table-field-click="formfieldClick"
                            >
                        </h-form> -->
 
                        <div class="topbar-line" style="padding-top: 5px;">
                            <div class="query-bar">
                                <h-form-filter ref="form1" 
                                    :form-attr="filterAttr" 
                                    :table-fields="filterFields" 
                                    :form-data="filterObj" 
                                    :table-field-click="filterfieldClick"
                                    :isdraggableorder="false"
                                    >
                                </h-form-filter>
                            </div>
                        </div>
 
                        <el-tabs v-model="activeName" type="border-card" style="margin-top: 15px;"><!-- type="border-card" -->
                            <el-tab-pane label="已匹配" name="Matched">
                                <div class="el-dialog__body">
                                    <div class="h_dialog__body">
                                        <div v-if="isedit || isrefuseedit" style="display: flex; padding-top: 5px;">
                                            <!-- 工具栏 -->
                                            <div  style="margin-left: auto;">
                                                <el-button-group style="display: flex;">
                                                    <el-button @click="addTableData">新增明细</el-button>
                                                    <el-button @click="">模板下载</el-button>
                                                    <el-button @click="">导 入</el-button>
                                                </el-button-group>
                                            </div>
                                        </div>
 
                                        <h-table
                                            v-if="isRefresh && tableFields.length"
                                            ref="table1"
                                            :table-fields="tableFields" 
                                            :table-data="tableData" 
                                            :is-edit-table-data="false"
                                            :is-within-edit-table-data="true"
                                            :is-pagination="true"
                                            :table-field-click="tablefieldClick"
                                            :is-show-index="true"
                                            :edit-table-button="editTableButton"
                                            :isdraggableorder="true"
 
                                            :select-table-data="selectedrows"
                                            :is-selection="!isedit"
                                            :isshow-shoppingcart="false"
                                            v-on:selection-change="selectionChange"
                                            v-on:save-shoppingcart="saveShoppingcart"
 
                                            v-on:get-data="getData"
                                            v-on:del-data="delData"
                                            >
                                        </h-table>
                                    </div>
                                </div>
                            </el-tab-pane>
 
                            <el-tab-pane label="未匹配流向" name="Flow">
                                <div class="el-dialog__body">
                                    <div class="h_dialog__body">
                                        <h-table
                                            v-if="isRefresh && tableFieldsFlow.length"
                                            ref="table1"
                                            :table-fields="tableFieldsFlow" 
                                            :table-data="tableDataFlow" 
                                            :is-edit-table-data="false"
                                            :is-within-edit-table-data="true"
                                            :is-pagination="true"
                                            :table-field-click="tablefieldClick"
                                            :is-show-index="true"
                                            :edit-table-button="editTableButton"
                                            :isdraggableorder="true"
 
                                            :select-table-data="selectedrows"
                                            :is-selection="false"
                                            :isshow-shoppingcart="false"
                                            v-on:selection-change="selectionChange"
                                            v-on:save-shoppingcart="saveShoppingcart"
 
                                            v-on:get-data="getData"
                                            v-on:del-data="delData"
                                            >
                                        </h-table>
                                    </div>
                                </div>
                            </el-tab-pane>
 
                            <el-tab-pane label="未匹配政策" name="Policy">
                                <div class="el-dialog__body">
                                    <div class="h_dialog__body">
                                        <h-table
                                            v-if="isRefresh && tableFieldsPolicy.length"
                                            ref="table1"
                                            :table-fields="tableFieldsPolicy" 
                                            :table-data="tableDataPolicy" 
                                            :is-edit-table-data="false"
                                            :is-within-edit-table-data="true"
                                            :is-pagination="true"
                                            :table-field-click="tablefieldClick"
                                            :is-show-index="true"
                                            :edit-table-button="editTableButton"
                                            :isdraggableorder="true"
 
                                            :select-table-data="selectedrows"
                                            :is-selection="false"
                                            :isshow-shoppingcart="false"
                                            v-on:selection-change="selectionChange"
                                            v-on:save-shoppingcart="saveShoppingcart"
 
                                            v-on:get-data="getData"
                                            v-on:del-data="delData"
                                            >
                                        </h-table>
                                    </div>
                                </div>
                            </el-tab-pane>
                        </el-tabs>
                    </div>
 
                    <div class="el-dialog__footer" v-if="isedit || isrefuseedit">
                        <el-button size="small" type="default" @click="closeDialog">取 消</el-button>
                        <el-button size="small" type="primary" @click="">保 存</el-button>
                        <el-button size="small" type="success" @click="">确 认</el-button>
                    </div>
                </div>
            </div>
        </div>
        
        <div id="page_loading" style="position: absolute; top:0px; width: 100vw; height: 50vh;">
            <div class="spinner">
              <div class="cube1"></div>
              <div class="cube2"></div>
            </div>
        </div>
        
        <script type="text/javascript">
            function initVue() {
                new FormVue({
                    el: "#vbody",
                    data: {
                        dataname: "md_product_line",
                        table_dataname: "md_product_line.aaa_detail",
                        title: "折让计算",
 
                        filterAttr: {
                            columnnumber: 3,
                            labelwidth: "150px",
                            labelposition: "right",//"left",//"right",
                            size: "medium",
                            border: "0px solid #c6c6c600"
                        },
 
                        formAttr: {
                            columnnumber: 3,
                            labelwidth: "90px",
                            labelposition: "left",//"left",// right//top
                            size: "mini",
                            border: "0px solid #c6c6c600"
                        },
                        filterFields: [],
                        filterfieldClick: {},
                        filterObj: {},
 
                        default_filterFields: [
                            {isshow: "T", field: "process_no", name: "流程号", filterfield:"", filteroperator: "like", type: ""},
                            {isshow: "T", field: "apply_name", name: "申请人", filterfield:"", filteroperator: "like", type: ""},
                        ],
                        
                        default_tableFields: [
                            {isshow: "T", field: "warning", name: "test", width: "120", type:"span",},
                        ],
 
                        withdraw_filterFields: [
                            {isshow: "T", field: "process_no", name: "流程号", filterfield:"", filteroperator: "like", type: ""},
                            {isshow: "T", field: "apply_name", name: "申请人", filterfield:"", filteroperator: "like", type: ""},
                        ],
                        transfer_filterFields: [
                            {isshow: "T", field: "process_no", name: "流程号", filterfield:"", filteroperator: "like", type: ""},
                            {isshow: "T", field: "apply_name", name: "申请人", filterfield:"", filteroperator: "like", type: ""},
                        ],
                        current_filterFields: [
                            {isshow: "T", field: "process_no", name: "流程号", filterfield:"", filteroperator: "like", type: ""},
                            {isshow: "T", field: "apply_name", name: "申请人", filterfield:"", filteroperator: "like", type: ""},
                        ],
                        adjust_filterFields: [
                            {isshow: "T", field: "process_no", name: "流程号", filterfield:"", filteroperator: "like", type: ""},
                            {isshow: "T", field: "apply_name", name: "申请人", filterfield:"", filteroperator: "like", type: ""},
                        ],
                        good_filterFields: [
                            {isshow: "T", field: "process_no", name: "流程号", filterfield:"", filteroperator: "like", type: ""},
                            {isshow: "T", field: "apply_name", name: "申请人", filterfield:"", filteroperator: "like", type: ""},
                        ],
                        year_filterFields: [
                            {isshow: "T", field: "province", name: "省份", filterfield:"", filteroperator: "like", type: ""},
                            {isshow: "T", field: "customer_code", name: "客户编码", filterfield:"", filteroperator: "like", type: ""},
                        ],
                        otc_filterFields: [
                            {isshow: "T", field: "province", name: "省份", filterfield:"", filteroperator: "like", type: ""},
                            {isshow: "T", field: "customer_code", name: "客户编码", filterfield:"", filteroperator: "like", type: ""},
                        ],
                        front_filterFields: [
                            {isshow: "T", field: "field1", name: "流出方身份", filterfield:"", filteroperator: "like", type: ""},
                        ],
                        task_filterFields: [
                            {isshow: "T", field: "field1", name: "流出方身份", filterfield:"", filteroperator: "like", type: ""},
                        ],
                        net_filterFields: [
                            {isshow: "T", field: "field1", name: "流出连锁总部身份", filterfield:"", filteroperator: "like", type: ""},
                        ],
 
                        withdraw_tableFields: [
                            {isshow: "T", field: "warning", name: "test", width: "120", type:"span",},
                            {isshow: "T", field: "com_attr", name: "商业属性", width: "100", type:"span",},
                            {isshow: "T", field: "province", name: "省份", width: "100", type:"span",},
                            {isshow: "T", field: "operator_no", name: "商业操作人编号", width: "150", type: "span",},
                            {isshow: "T", field: "operator_name", name: "商业操作人名称", width: "150", type:"span",},
                            {isshow: "T", field: "unit", name: "业务部门", width: "150", type:"span",},
                            {isshow: "T", field: "customer_code", name: "客户编码", width: "150", type: "span",},
                            {isshow: "T", field: "customer_name", name: "客户名称", width: "200", type:"span",},
                            {isshow: "T", field: "production_code", name: "产品编码", width: "150", type: "span",},
                            {isshow: "T", field: "production_name", name: "产品名称", width: "100", type:"span",},
                            {isshow: "T", field: "production_spec", name: "产品规格", width: "150", type: "span",},
                            {isshow: "T", field: "delivery_date", name: "发货日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "delivery_no", name: "发货单号", width: "150", type: "span",},
                            {isshow: "T", field: "delivery_num", name: "发货单数量", width: "100", type: "span",},
                            {isshow: "T", field: "delivery_per", name: "发货单单价", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "delivey_amount", name: "发货单金额", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "refund_date", name: "回款日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "redemption_date", name: "兑付日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "writeoff_date", name: "销账单日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "writeoff_num", name: "核销数量", width: "100", type: "span",},
                            {isshow: "T", field: "writeoff_per", name: "核销单价", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "writeoff_amount", name: "核销金额", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "settle_type", name: "结算方式", width: "100", type:"span",},
                            {isshow: "T", field: "policy_code", name: "政策明细编码", width: "100", type:"span",},
                            {isshow: "T", field: "payment_day", name: "账期", width: "100", type:"span",},
                            {isshow: "T", field: "agreement_amount", name: "回笼履约金额", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "norm_amount", name: "商业规范操作折让金额", width: "150", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "basic_amount", name: "基础折让金额", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "inventory_amount", name: "库存管理金额", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "project_amount", name: "项目折让金额", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "amount_count", name: "金额小计", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "agreement", name: "回笼履约折让", width: "100", type: "span",formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "inventory", name: "库存管理折让", width: "100", type: "span",formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "project", name: "项目折让", width: "100", type: "span",formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "allowance_quota", name: "折让额度", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "exceed_days", name: "超期天数", width: "100", type: "span",},
                            {isshow: "T", field: "detain_quota", name: "扣留额度", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "adjust_detain", name: "调整扣留", width: "100", type: "input",formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "real_detain", name: "实际扣留", width: "100", type: "span",formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "remark", name: "备注", type: "input", width: "150"}, 
                        ],
                        withdraw_tableFieldsFlow: [
                            {isshow: "T", field: "warning", name: "编码", width: "120", type:"span",},
                            {isshow: "T", field: "com_attr", name: "年份", width: "100", type:"span",},
                            {isshow: "T", field: "unit", name: "月份", width: "150", type:"span",},
                            {isshow: "T", field: "province", name: "省份", width: "100", type:"span",},
                            {isshow: "T", field: "province", name: "城市", width: "100", type:"span",},
                            {isshow: "T", field: "customer_code", name: "客户编码", width: "150", type: "span",},
                            {isshow: "T", field: "customer_name", name: "客户名称", width: "200", type:"span",},
                            {isshow: "T", field: "stock_code", name: "订单编码", width: "150", type: "span",},
                            {isshow: "T", field: "stock_code1", name: "收款编码", width: "150", type: "span",},
                            {isshow: "T", field: "stock_code2", name: "回款编码", width: "150", type: "span",},
                            {isshow: "T", field: "refund_date", name: "回款日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "redemption_date", name: "兑付日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "delivey_amount", name: "发货单金额", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "delivery_date", name: "创建日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "writeoff_date", name: "更新日期", width: "150", type:"span", formatter: "formatter_date"},
                        ],
                        withdraw_tableFieldsPolicy: [
                            {isshow: "T", field: "test", name: "状态", width: "100", type:"span",},
                            {isshow: "T", field: "warning", name: "备案号", width: "150", type:"span",},
                            {isshow: "T", field: "warning1", name: "备案类型", width: "100", type:"span",},
                            {isshow: "T", field: "customer_code", name: "经销商编码", width: "150", type: "span",},
                            {isshow: "T", field: "customer_name", name: "经销商名称", width: "200", type:"span",},
                            {isshow: "T", field: "delivery_date", name: "生效日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "writeoff_date", name: "失效日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "creator", name: "创建人", width: "100", type:"span",},
                            {isshow: "T", field: "delivery_date", name: "创建日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "writeoff_date", name: "更新日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "province1", name: "版本号", width: "100", type:"span",},
                            {isshow: "T", field: "warning3", name: "备案批号", width: "150", type:"span",},
                            {isshow: "T", field: "province4", name: "区域省份", width: "100", type:"span",},
                            {isshow: "T", field: "production_spec", name: "阶梯折扣率名称", width: "150", type: "span",},
                        ],
                        transfer_tableFields: [
                            {isshow: "T", field: "com_type", name: "商业类型", width: "100", type:"span",},
                            {isshow: "T", field: "province", name: "省份", width: "100", type:"span",},
                            {isshow: "T", field: "receipt_date", name: "单据日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "outflow_code", name: "流出方编码", width: "150", type: "span",},
                            {isshow: "T", field: "outflow_name", name: "流出方名称", width: "200", type:"span",},
                            {isshow: "T", field: "salesman_code", name: "流出业务员编码", width: "150", type: "span",},
                            {isshow: "T", field: "salesman", name: "流出业务员", width: "200", type:"span",},
                            {isshow: "T", field: "inflow_code", name: "流入方编码", width: "150", type: "span",},
                            {isshow: "T", field: "inflow_name", name: "流入方名称", width: "200", type:"span",},
                            {isshow: "T", field: "inflow_type", name: "流入类型", width: "150", type:"span",},
                            {isshow: "T", field: "stock_code", name: "存货编码", width: "150", type: "span",},
                            {isshow: "T", field: "stock_name", name: "存货名称", width: "200", type:"span",},
                            {isshow: "T", field: "quantity", name: "数量", width: "100", type: "span",},
                            {isshow: "T", field: "redemption_date", name: "兑付日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "date", name: "日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "batch_number", name: "批号", width: "100", type: "span",},
                            {isshow: "T", field: "policy_code", name: "政策明细编码", width: "100", type:"span",},
                            {isshow: "T", field: "transfer_amount", name: "调拨金额", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "allowance_amount", name: "调拨折让金额", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                        ],
                        transfer_tableFieldsFlow: [
                            {isshow: "T", field: "warning", name: "编码", width: "120", type:"span",},
                            {isshow: "T", field: "com_attr", name: "年份", width: "100", type:"span",},
                            {isshow: "T", field: "unit", name: "月份", width: "150", type:"span",},
                            {isshow: "T", field: "province", name: "省份", width: "100", type:"span",},
                            {isshow: "T", field: "province", name: "城市", width: "100", type:"span",},
                            {isshow: "T", field: "customer_code", name: "客户编码", width: "150", type: "span",},
                            {isshow: "T", field: "customer_name", name: "客户名称", width: "200", type:"span",},
                            {isshow: "T", field: "stock_code", name: "订单编码", width: "150", type: "span",},
                            {isshow: "T", field: "delivey_amount", name: "订单金额", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "delivery_date", name: "创建日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "writeoff_date", name: "更新日期", width: "150", type:"span", formatter: "formatter_date"},
                        ],
                        transfer_tableFieldsPolicy: [
                            {isshow: "T", field: "test", name: "状态", width: "100", type:"span",},
                            {isshow: "T", field: "warning", name: "备案号", width: "150", type:"span",},
                            {isshow: "T", field: "warning1", name: "备案类型", width: "100", type:"span",},
                            {isshow: "T", field: "customer_code", name: "经销商编码", width: "150", type: "span",},
                            {isshow: "T", field: "customer_name", name: "经销商名称", width: "200", type:"span",},
                            {isshow: "T", field: "delivery_date", name: "生效日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "writeoff_date", name: "失效日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "creator", name: "创建人", width: "100", type:"span",},
                            {isshow: "T", field: "delivery_date", name: "创建日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "writeoff_date", name: "更新日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "province1", name: "版本号", width: "100", type:"span",},
                            {isshow: "T", field: "warning3", name: "备案批号", width: "150", type:"span",},
                            {isshow: "T", field: "province4", name: "区域省份", width: "100", type:"span",},
                        ],
                        current_tableFields: [
                            // {isshow: "T", field: "order_no", name: "序号", width: "120", type:"span",},
                            {isshow: "T", field: "province", name: "省份", width: "100", type:"span",},
                            {isshow: "T", field: "operator_no", name: "商业操作人编号", width: "150", type: "span",},
                            {isshow: "T", field: "operator_name", name: "商业操作人名称", width: "150", type:"span",},
                            {isshow: "T", field: "unit", name: "业务部门", width: "150", type:"span",},
                            {isshow: "T", field: "customer_code", name: "客户编码", width: "150", type: "span",},
                            {isshow: "T", field: "customer_name", name: "客户名称", width: "200", type:"span",},
                            {isshow: "T", field: "production_code", name: "产品编码", width: "150", type: "span",},
                            {isshow: "T", field: "production_name", name: "产品名称", width: "100", type:"span",},
                            {isshow: "T", field: "production_spec", name: "产品规格", width: "150", type: "span",},
                            {isshow: "T", field: "delivery_date", name: "发货日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "delivery_no", name: "发货单号", width: "150", type: "span",},
                            {isshow: "T", field: "delivery_num", name: "发货单数量", width: "100", type: "span",},
                            {isshow: "T", field: "delivery_per", name: "发货单单价", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "delivey_amount", name: "发货单金额", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "redemption_date", name: "兑付日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "settle_type", name: "结算方式", width: "100", type:"span",},
                            {isshow: "T", field: "policy_code", name: "政策明细编码", width: "100", type:"span",},
                            {isshow: "T", field: "current_amount", name: "当期折让金额", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "current_quota", name: "当期折让额度", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                        ],
                        current_tableFieldsFlow: [
                            {isshow: "T", field: "warning", name: "编码", width: "120", type:"span",},
                            {isshow: "T", field: "com_attr", name: "年份", width: "100", type:"span",},
                            {isshow: "T", field: "unit", name: "月份", width: "150", type:"span",},
                            {isshow: "T", field: "province", name: "省份", width: "100", type:"span",},
                            {isshow: "T", field: "province", name: "城市", width: "100", type:"span",},
                            {isshow: "T", field: "customer_code", name: "客户编码", width: "150", type: "span",},
                            {isshow: "T", field: "customer_name", name: "客户名称", width: "200", type:"span",},
                            {isshow: "T", field: "stock_code", name: "订单编码", width: "150", type: "span",},
                            {isshow: "T", field: "delivey_amount", name: "订单金额", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "delivery_date", name: "创建日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "writeoff_date", name: "更新日期", width: "150", type:"span", formatter: "formatter_date"},
                        ],
                        current_tableFieldsPolicy: [
                            {isshow: "T", field: "test", name: "状态", width: "100", type:"span",},
                            {isshow: "T", field: "warning", name: "备案号", width: "150", type:"span",},
                            {isshow: "T", field: "warning1", name: "备案类型", width: "100", type:"span",},
                            {isshow: "T", field: "customer_code", name: "经销商编码", width: "150", type: "span",},
                            {isshow: "T", field: "customer_name", name: "经销商名称", width: "200", type:"span",},
                            {isshow: "T", field: "delivery_date", name: "生效日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "writeoff_date", name: "失效日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "creator", name: "创建人", width: "100", type:"span",},
                            {isshow: "T", field: "delivery_date", name: "创建日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "writeoff_date", name: "更新日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "province1", name: "版本号", width: "100", type:"span",},
                            {isshow: "T", field: "warning3", name: "备案批号", width: "150", type:"span",},
                            {isshow: "T", field: "province4", name: "区域省份", width: "100", type:"span",},
                        ],
                        adjust_tableFields: [
                            {isshow: "T",field: "year", name: "年", width: "100", type:"span"},
                            {isshow: "T",field: "month", name: "月", width: "100", type:"span"},
                            {isshow: "T", field: "main", name: "主体", width: "100", type:"span",},
                            {isshow: "T", field: "department", name: "业务线/部门", width: "100", type:"span",},
                            {isshow: "T", field: "province", name: "省份", width: "100", type:"span",},
                            {isshow: "T", field: "receipt_type", name: "单据类型", width: "100", type:"span",},
                            {isshow: "T", field: "redemption_date", name: "兑付日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "date", name: "日期", width: "150", type:"span",},
                            {isshow: "T", field: "outflow_code", name: "流出方编码", width: "150", type: "span",},
                            {isshow: "T", field: "outflow_name", name: "流出方名称", width: "200", type:"span",},
                            {isshow: "T", field: "outflowdept_code", name: "流出部门编码", width: "150", type: "span",},
                            {isshow: "T", field: "outsalesman_code", name: "流出业务员编码", width: "150", type: "span",},
                            {isshow: "T", field: "out_salesman", name: "流出业务员", width: "150", type: "span",},
                            {isshow: "T", field: "inflow_code", name: "流入方编码", width: "150", type: "span",},
                            {isshow: "T", field: "inflow_name", name: "流入方名称", width: "200", type:"span",},
                            {isshow: "T", field: "inflowdept_code", name: "流入部门编码", width: "150", type: "span",},
                            {isshow: "T", field: "inflow——dept", name: "流入部门", width: "150", type: "span",},
                            {isshow: "T", field: "insalesman_code", name: "流入业务员编码", width: "150", type: "span",},
                            {isshow: "T", field: "in_salesman", name: "流入业务员", width: "150", type: "span",},
                            {isshow: "T", field: "inflow_type", name: "流入类型", width: "100", type:"span",},
                            {isshow: "T", field: "stock_code", name: "存货编码", width: "200", type:"span",},
                            {isshow: "T", field: "stock_name", name: "存货名称", width: "200", type:"span",},
                            {isshow: "T", field: "stock_spec", name: "存货规格", width: "200", type: "span",},
                            {isshow: "T", field: "inflow_date", name: "流入时间", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "quantity", name: "数量", width: "200", type: "span",},
                            {isshow: "T", field: "amount", name: "金额", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "medicine_batch", name: "药品批号", width: "200", type:"span",},
                            {isshow: "T", field: "remark", name: "明细备注", type: "span", width: "150"}, 
                            {isshow: "T", field: "allocate_zone", name: "划拨区域", width: "150", type:"span",},
                            {isshow: "T", field: "system_unit", name: "原系统-单价", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "insalesman_code", name: "流入业务员编码2", width: "150", type: "input",},
                            {isshow: "T", field: "in_salesman", name: "流入业务员名称2", width: "150", type: "input",},
                            {isshow: "T", field: "booking_code", name: "上帐一级编码", width: "150", type: "span",},
                            {isshow: "T", field: "booking_name", name: "上账一级名称", width: "200", type:"span",},
                            {isshow: "T", field: "adjust_unit", name: "补差单价", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "adjust_amount", name: "补差金额", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "pay_type", name: "支付方式", width: "100", type: "span"},
                            {isshow: "T", field: "policy_code", name: "终端政策明细编码", width: "150", type:"input",},
                            {isshow: "T", field: "remark", name: "备注", type: "input", width: "150"},
                        ],
                        adjust_tableFieldsFlow: [
                            {isshow: "T", field: "warning", name: "编码", width: "120", type:"span",},
                            {isshow: "T",field: "year", name: "年", width: "100", type:"span"},
                            {isshow: "T",field: "month", name: "月", width: "100", type:"span"},
                            {isshow: "T", field: "date", name: "流向日期", width: "150", type:"span",},
                            {isshow: "T", field: "outflow_code", name: "上游编码", width: "150", type: "span",},
                            {isshow: "T", field: "outflow_name", name: "上游名称", width: "200", type:"span",},
                            {isshow: "T", field: "outflowdept_code", name: "上游部门编码", width: "150", type: "span",},
                            {isshow: "T", field: "outsalesman_code", name: "上游业务员编码", width: "150", type: "span",},
                            {isshow: "T", field: "out_salesman", name: "上游业务员", width: "150", type: "span",},
                            {isshow: "T", field: "inflow_code", name: "下游编码", width: "150", type: "span",},
                            {isshow: "T", field: "inflow_name", name: "下游名称", width: "200", type:"span",},
                            {isshow: "T", field: "inflowdept_code", name: "下游部门编码", width: "150", type: "span",},
                            {isshow: "T", field: "inflow——dept", name: "下游部门", width: "150", type: "span",},
                            {isshow: "T", field: "insalesman_code", name: "下游业务员编码", width: "150", type: "span",},
                            {isshow: "T", field: "in_salesman", name: "下游业务员", width: "150", type: "span",},
                            {isshow: "T", field: "stock_code", name: "产品编码", width: "200", type:"span",},
                            {isshow: "T", field: "stock_name", name: "产品名称", width: "200", type:"span",},
                            {isshow: "T", field: "amount", name: "产品价格", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "delivery_date", name: "创建日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "writeoff_date", name: "更新日期", width: "150", type:"span", formatter: "formatter_date"},
                        ],
                        adjust_tableFieldsPolicy: [
                            {isshow: "T", field: "test", name: "状态", width: "100", type:"span",},
                            {isshow: "T", field: "warning", name: "备案号", width: "150", type:"span",},
                            {isshow: "T", field: "warning1", name: "备案类型", width: "100", type:"span",},
                            {isshow: "T", field: "customer_code", name: "经销商编码", width: "150", type: "span",},
                            {isshow: "T", field: "customer_name", name: "经销商名称", width: "200", type:"span",},
                            {isshow: "T", field: "outflow_code", name: "终端编码", width: "150", type: "span",},
                            {isshow: "T", field: "outflow_name", name: "终端名称", width: "200", type:"span",},
                            {isshow: "T", field: "stock_code", name: "产品编码", width: "150", type:"span",},
                            {isshow: "T", field: "stock_name", name: "产品名称", width: "200", type:"span",},
                            {isshow: "T", field: "warning2", name: "终端类型", width: "100", type:"span",},
                            {isshow: "T", field: "customer_code1", name: "终端省份", width: "150", type: "span",},
                            {isshow: "T", field: "adjust_unit", name: "销售单价", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "adjust_unit1", name: "折扣单价", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "delivery_date", name: "生效日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "writeoff_date", name: "失效日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "province1", name: "版本号", width: "100", type:"span",},
                            {isshow: "T", field: "production_spec", name: "规格", width: "150", type: "span",},
                            {isshow: "T", field: "province2", name: "终端城市", width: "100", type:"span",},
                            {isshow: "T", field: "warning3", name: "备案批号", width: "150", type:"span",},
                            {isshow: "T", field: "province4", name: "区域省份", width: "100", type:"span",},
                        ],
                        good_tableFields: [
                            {isshow: "T",field: "year", name: "年", width: "100", type:"span"},
                            {isshow: "T",field: "month", name: "月", width: "100", type:"span"},
                            {isshow: "T", field: "main", name: "主体", width: "100", type:"span",},
                            {isshow: "T", field: "department", name: "业务线/部门", width: "100", type:"span",},
                            {isshow: "T", field: "province", name: "省份", width: "100", type:"span",},
                            {isshow: "T", field: "receipt_type", name: "单据类型", width: "100", type:"span",},
                            {isshow: "T", field: "date", name: "日期", width: "150", type:"span",},
                            {isshow: "T", field: "outflow_code", name: "流出方编码", width: "150", type: "span",},
                            {isshow: "T", field: "outflow_name", name: "流出方名称", width: "200", type:"span",},
                            {isshow: "T", field: "outflowdept_code", name: "流出部门编码", width: "150", type: "span",},
                            {isshow: "T", field: "outsalesman_code", name: "流出业务员编码", width: "150", type: "span",},
                            {isshow: "T", field: "out_salesman", name: "流出业务员", width: "150", type: "span",},
                            {isshow: "T", field: "inflow_code", name: "流入方编码", width: "150", type: "span",},
                            {isshow: "T", field: "inflow_name", name: "流入方名称", width: "200", type:"span",},
                            {isshow: "T", field: "inflowdept_code", name: "流入部门编码", width: "150", type: "span",},
                            {isshow: "T", field: "inflow——dept", name: "流入部门", width: "150", type: "span",},
                            {isshow: "T", field: "insalesman_code", name: "流入业务员编码", width: "150", type: "span",},
                            {isshow: "T", field: "in_salesman", name: "流入业务员", width: "150", type: "span",},
                            {isshow: "T", field: "inflow_type", name: "流入类型", width: "100", type:"span",},
                            {isshow: "T", field: "stock_code", name: "存货编码", width: "200", type:"span",},
                            {isshow: "T", field: "stock_name", name: "存货名称", width: "200", type:"span",},
                            {isshow: "T", field: "stock_spec", name: "存货规格", width: "200", type: "span",},
                            {isshow: "T", field: "inflow_date", name: "流入时间", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "quantity", name: "数量", width: "200", type: "span",},
                            {isshow: "T", field: "amount", name: "金额", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "medicine_batch", name: "药品批号", width: "200", type:"span",},
                            {isshow: "T", field: "remark", name: "明细备注", type: "span", width: "150"}, 
                            {isshow: "T", field: "allocate_zone", name: "划拨区域", width: "150", type:"span",},
                            {isshow: "T", field: "system_unit", name: "原系统-单价", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "insalesman_code", name: "流入业务员编码2", width: "150", type: "select",},
                            {isshow: "T", field: "in_salesman", name: "流入业务员名称2", width: "150", type: "select",},
                            {isshow: "T", field: "booking_code", name: "上帐一级编码", width: "150", type: "span",},
                            {isshow: "T", field: "booking_name", name: "上账一级名称", width: "200", type:"span",},
                            {isshow: "T", field: "adjust_unit", name: "补差单价", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "adjust_amount", name: "补差金额", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "redemption_date", name: "兑付日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "pay_type", name: "支付方式", width: "100", type: "span"},
                            {isshow: "T", field: "policy_code", name: "终端政策明细编码", width: "150", type:"span",},
                            {isshow: "T", field: "remark", name: "备注", type: "input", width: "150"},
                        ],
                        good_tableFieldsFlow: [
                            {isshow: "T", field: "warning", name: "编码", width: "120", type:"span",},
                            {isshow: "T", field: "com_attr", name: "年份", width: "100", type:"span",},
                            {isshow: "T", field: "unit", name: "月份", width: "150", type:"span",},
                            {isshow: "T", field: "province", name: "省份", width: "100", type:"span",},
                            {isshow: "T", field: "province", name: "城市", width: "100", type:"span",},
                            {isshow: "T", field: "customer_code", name: "客户编码", width: "150", type: "span",},
                            {isshow: "T", field: "customer_name", name: "客户名称", width: "200", type:"span",},
                            {isshow: "T", field: "stock_code", name: "订单编码", width: "150", type: "span",},
                            {isshow: "T", field: "delivey_amount", name: "订单金额", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "delivery_date", name: "创建日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "writeoff_date", name: "更新日期", width: "150", type:"span", formatter: "formatter_date"},
                        ],
                        good_tableFieldsPolicy: [
                            {isshow: "T", field: "test", name: "状态", width: "100", type:"span",},
                            {isshow: "T", field: "warning", name: "备案号", width: "150", type:"span",},
                            {isshow: "T", field: "warning1", name: "备案类型", width: "100", type:"span",},
                            {isshow: "T", field: "customer_code", name: "经销商编码", width: "150", type: "span",},
                            {isshow: "T", field: "customer_name", name: "经销商名称", width: "200", type:"span",},
                            {isshow: "T", field: "delivery_date", name: "生效日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "writeoff_date", name: "失效日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "creator", name: "创建人", width: "100", type:"span",},
                            {isshow: "T", field: "delivery_date", name: "创建日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "writeoff_date", name: "更新日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "province1", name: "版本号", width: "100", type:"span",},
                            {isshow: "T", field: "warning3", name: "备案批号", width: "150", type:"span",},
                            {isshow: "T", field: "province4", name: "区域省份", width: "100", type:"span",},
                        ],
                        year_tableFields: [
                            {isshow: "T", field: "province", name: "省份", width: "100", type:"span",},
                            {isshow: "T", field: "department", name: "业务部门", width: "100", type:"span",},
                            {isshow: "T", field: "customer_code", name: "客户编码", width: "150", type: "span",},
                            {isshow: "T", field: "customer_name", name: "客户名称", width: "200", type:"span",},
                            {isshow: "T", field: "sales_amount", name: "销售金额", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            // {isshow: "T", field: "policy_code", name: "政策明细编码", width: "150", type:"span",},
                            // {isshow: "T", field: "year_discount_rate", name: "年度折让系数", width: "100", type: "span", aligh: "right",},
                            // {isshow: "T", field: "year_discount_amount", name: "年度折让额度", width: "100", type: "span", aligh: "right", formatter: "formatter_money",},
                            {isshow: "T", field: "year_target", name: "年度任务", width: "100", type:"span", aligh: "right", formatter: "formatter_money",},
                            {isshow: "T", field: "year_target_rate", name: "年度任务完成率", width: "150", type:"span", aligh: "right", formatter: "formatter_money",},
                            {isshow: "T", field: "year_discount_amount", name: "年度折让额度", width: "100", type: "span", aligh: "right", formatter: "formatter_money",},
                            {isshow: "T", field: "year_target_adjust", name: "年度折让调整", width: "100", type:"input", aligh: "right", formatter: "formatter_money",},
                            {isshow: "T", field: "year_target_minus", name: "年度任务扣减", width: "100", type:"span", aligh: "right", formatter: "formatter_money",},
                            {isshow: "T", field: "promise_minus", name: "承兑扣减", width: "100", type:"span", aligh: "right", formatter: "formatter_money",},
                            {isshow: "T", field: "compliance_minus", name: "合规扣减", width: "100", type:"input", aligh: "right", formatter: "formatter_money",},
                            {isshow: "T", field: "redemption_date", name: "兑付日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "sum_minus", name: "扣减小计", width: "100", type:"span", aligh: "right", formatter: "formatter_money",},
                            {isshow: "T", field: "year_discount_real", name: "年度实际折让", width: "100", type: "span", aligh: "right", formatter: "formatter_money",},
                            {isshow: "T", field: "remark", name: "备注", type: "input", width: "150"},
                        ],
                        year_tableFieldsFlow: [
                            {isshow: "T", field: "warning", name: "编码", width: "120", type:"span",},
                            {isshow: "T", field: "com_attr", name: "年份", width: "100", type:"span",},
                            {isshow: "T", field: "unit", name: "月份", width: "150", type:"span",},
                            {isshow: "T", field: "province", name: "省份", width: "100", type:"span",},
                            {isshow: "T", field: "province", name: "城市", width: "100", type:"span",},
                            {isshow: "T", field: "customer_code", name: "客户编码", width: "150", type: "span",},
                            {isshow: "T", field: "customer_name", name: "客户名称", width: "200", type:"span",},
                            {isshow: "T", field: "stock_code", name: "订单编码", width: "150", type: "span",},
                            {isshow: "T", field: "delivey_amount", name: "订单金额", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "delivery_date", name: "创建日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "writeoff_date", name: "更新日期", width: "150", type:"span", formatter: "formatter_date"},
                        ],
                        year_tableFieldsPolicy: [
                            {isshow: "T", field: "test", name: "状态", width: "100", type:"span",},
                            {isshow: "T", field: "warning", name: "备案号", width: "150", type:"span",},
                            {isshow: "T", field: "warning1", name: "备案类型", width: "100", type:"span",},
                            {isshow: "T", field: "customer_code", name: "经销商编码", width: "150", type: "span",},
                            {isshow: "T", field: "customer_name", name: "经销商名称", width: "200", type:"span",},
                            {isshow: "T", field: "delivery_date", name: "生效日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "writeoff_date", name: "失效日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "creator", name: "创建人", width: "100", type:"span",},
                            {isshow: "T", field: "delivery_date", name: "创建日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "writeoff_date", name: "更新日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "province1", name: "版本号", width: "100", type:"span",},
                            {isshow: "T", field: "warning3", name: "备案批号", width: "150", type:"span",},
                            {isshow: "T", field: "province4", name: "区域省份", width: "100", type:"span",},
                        ],
                        otc_tableFields: [
                            // {isshow: "T", field: "warning", name: "test", width: "120", type:"span",},
                            {isshow: "T", field: "com_attr", name: "商业属性", width: "100", type:"span",},
                            {isshow: "T", field: "province", name: "省份", width: "100", type:"span",},
                            {isshow: "T", field: "operator_no", name: "商业操作人编号", width: "150", type: "span",},
                            {isshow: "T", field: "operator_name", name: "商业操作人名称", width: "150", type:"span",},
                            {isshow: "T", field: "unit", name: "业务部门", width: "150", type:"span",},
                            {isshow: "T", field: "customer_code", name: "客户编码", width: "150", type: "span",},
                            {isshow: "T", field: "customer_name", name: "客户名称", width: "200", type:"span",},
                            {isshow: "T", field: "production_code", name: "产品编码", width: "150", type: "span",},
                            {isshow: "T", field: "production_name", name: "产品名称", width: "100", type:"span",},
                            {isshow: "T", field: "production_spec", name: "产品规格", width: "150", type: "span",},
                            {isshow: "T", field: "delivery_date", name: "发货日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "delivery_no", name: "发货单号", width: "150", type: "span",},
                            {isshow: "T", field: "delivery_num", name: "发货单数量", width: "100", type: "span",},
                            {isshow: "T", field: "delivery_per", name: "发货单单价", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "delivey_amount", name: "发货单金额", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "redemption_date", name: "兑付日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "settle_type", name: "结算方式", width: "100", type:"span",},
                            {isshow: "T", field: "policy_code", name: "政策明细编码", width: "100", type:"span",},
                            {isshow: "T", field: "norm_amount", name: "商业规范操作折让金额", width: "150", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "basic_amount", name: "基础折让金额", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "inventory_amount", name: "库存管理金额", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "project_amount", name: "项目折让金额", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "amount_count", name: "金额小计", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "inventory", name: "库存管理折让", width: "100", type: "span",formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "project", name: "项目折让", width: "100", type: "span",formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "allowance_quota", name: "折让额度", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "exceed_days", name: "超期天数", width: "100", type: "span",},
                            {isshow: "T", field: "detain_quota", name: "扣留额度", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "adjust_detain", name: "调整扣留", width: "100", type: "input",formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "real_detain", name: "实际扣留", width: "100", type: "span",formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "remark", name: "备注", type: "input", width: "150"}, 
                        ],
                        otc_tableFieldsFlow: [
                            {isshow: "T", field: "warning", name: "编码", width: "120", type:"span",},
                            {isshow: "T", field: "com_attr", name: "年份", width: "100", type:"span",},
                            {isshow: "T", field: "unit", name: "月份", width: "150", type:"span",},
                            {isshow: "T", field: "province", name: "省份", width: "100", type:"span",},
                            {isshow: "T", field: "province", name: "城市", width: "100", type:"span",},
                            {isshow: "T", field: "customer_code", name: "客户编码", width: "150", type: "span",},
                            {isshow: "T", field: "customer_name", name: "客户名称", width: "200", type:"span",},
                            {isshow: "T", field: "stock_code", name: "订单编码", width: "150", type: "span",},
                            {isshow: "T", field: "delivey_amount", name: "订单金额", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "delivery_date", name: "创建日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "writeoff_date", name: "更新日期", width: "150", type:"span", formatter: "formatter_date"},
                        ],
                        otc_tableFieldsPolicy: [
                            {isshow: "T", field: "test", name: "状态", width: "100", type:"span",},
                            {isshow: "T", field: "warning", name: "备案号", width: "150", type:"span",},
                            {isshow: "T", field: "warning1", name: "备案类型", width: "100", type:"span",},
                            {isshow: "T", field: "customer_code", name: "经销商编码", width: "150", type: "span",},
                            {isshow: "T", field: "customer_name", name: "经销商名称", width: "200", type:"span",},
                            {isshow: "T", field: "delivery_date", name: "生效日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "writeoff_date", name: "失效日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "creator", name: "创建人", width: "100", type:"span",},
                            {isshow: "T", field: "delivery_date", name: "创建日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "writeoff_date", name: "更新日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "province1", name: "版本号", width: "100", type:"span",},
                            {isshow: "T", field: "warning3", name: "备案批号", width: "150", type:"span",},
                            {isshow: "T", field: "province4", name: "区域省份", width: "100", type:"span",},
                        ],
                        front_tableFields: [
                            {isshow: "T", field: "field1", name: "流出方身份", width: "100", type: "span",},
                            {isshow: "T", field: "field2", name: "流出方编码",width: "150", type: "span",},
                            {isshow: "T", field: "field3", name: "流出方名称",width: "200", type: "span",},
                            {isshow: "T", field: "field4",name: "流入类型名称",width: "100", type: "span",},
                            {isshow: "T", field: "field5",name: "流入方编码",width: "150", type: "span", },
                            {isshow: "T", field: "field6",name: "流入方名称",width: "200", type: "span", },
                            {isshow: "T", field: "field7", name: "原始网点", width: "100", type:"span", },
                            {isshow: "T", field: "field8", name: "流水时间", width: "100", type:"span", formatter: "formatter_date", },
                            {isshow: "T", field: "field9", name: "存货编码", width: "150", type:"span", },
                            {isshow: "T", field: "field10", name: "存货名称", width: "200", type: "span", },
                            {isshow: "T", field: "field11", name: "存货规格", width: "100", type:"span",},
                            {isshow: "T", field: "field12", name: "批号", width: "100", type:"span", },
                            {isshow: "T", field: "field13", name: "原始数量", width: "100", type: "span", align: "left"},
                            {isshow: "T", field: "field14", name: "赠品数量", width: "100", type:"span", align: "left"},
                            {isshow: "T", field: "field15", name: "纯销计算价", width: "100", type:"span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "field16", name: "审核数量", width: "100", type: "span", align: "left",},
                            {isshow: "T", field: "field17", name: "单盒费用标准", width: "100", type: "span", },
                            {isshow: "T", field: "field18", name: "前台政策的金额", width: "150", type: "span", formatter: "formatter_money", align: "right"},
                        ],
                        front_tableFieldsFlow: [
                            {isshow: "T", field: "warning", name: "编码", width: "120", type:"span",},
                            {isshow: "T", field: "com_attr", name: "年份", width: "100", type:"span",},
                            {isshow: "T", field: "unit", name: "月份", width: "150", type:"span",},
                            {isshow: "T", field: "province", name: "省份", width: "100", type:"span",},
                            {isshow: "T", field: "province", name: "城市", width: "100", type:"span",},
                            {isshow: "T", field: "customer_code", name: "客户编码", width: "150", type: "span",},
                            {isshow: "T", field: "customer_name", name: "客户名称", width: "200", type:"span",},
                            {isshow: "T", field: "stock_code", name: "订单编码", width: "150", type: "span",},
                            {isshow: "T", field: "delivey_amount", name: "订单金额", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "delivery_date", name: "创建日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "writeoff_date", name: "更新日期", width: "150", type:"span", formatter: "formatter_date"},
                        ],
                        front_tableFieldsPolicy: [
                            {isshow: "T", field: "test", name: "状态", width: "100", type:"span",},
                            {isshow: "T", field: "warning", name: "备案号", width: "150", type:"span",},
                            {isshow: "T", field: "warning1", name: "备案类型", width: "100", type:"span",},
                            {isshow: "T", field: "customer_code", name: "经销商编码", width: "150", type: "span",},
                            {isshow: "T", field: "customer_name", name: "经销商名称", width: "200", type:"span",},
                            {isshow: "T", field: "delivery_date", name: "生效日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "writeoff_date", name: "失效日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "creator", name: "创建人", width: "100", type:"span",},
                            {isshow: "T", field: "delivery_date", name: "创建日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "writeoff_date", name: "更新日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "province1", name: "版本号", width: "100", type:"span",},
                            {isshow: "T", field: "warning3", name: "备案批号", width: "150", type:"span",},
                            {isshow: "T", field: "province4", name: "区域省份", width: "100", type:"span",},
                        ],
                        task_tableFields: [
                            {isshow: "T", field: "field1", name: "流出方身份", width: "100", type: "span",},
                            {isshow: "T", field: "field2", name: "流出方编码",width: "150", type: "span",},
                            {isshow: "T", field: "field3", name: "流出方名称",width: "200", type: "span",},
                            {isshow: "T", field: "field4",name: "流入类型名称",width: "100", type: "span",},
                            {isshow: "T", field: "field5",name: "流入方编码",width: "150", type: "span", },
                            {isshow: "T", field: "field6",name: "流入方名称",width: "200", type: "span", },
                            {isshow: "T", field: "field7", name: "原始网点", width: "100", type:"span", },
                            {isshow: "T", field: "field8", name: "流水时间", width: "100", type:"span", formatter: "formatter_date", },
                            {isshow: "T", field: "field9", name: "存货编码", width: "150", type:"span", },
                            {isshow: "T", field: "field10", name: "存货名称", width: "200", type: "span", },
                            {isshow: "T", field: "field11", name: "存货规格", width: "100", type:"span",},
                            {isshow: "T", field: "field12", name: "批号", width: "100", type:"span", },
                            {isshow: "T", field: "field13", name: "原始数量", width: "100", type: "span", align: "left"},
                            {isshow: "T", field: "field14", name: "赠品数量", width: "100", type:"span", align: "left"},
                            {isshow: "T", field: "field15", name: "纯销计算价", width: "100", type:"span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "field16", name: "审核数量", width: "100", type: "span", align: "left",},
                            {isshow: "T", field: "field17", name: "单盒费用标准", width: "100", type: "span", },
                            {isshow: "T", field: "field18", name: "月度/季度/年度折让", width: "150", type: "span", formatter: "formatter_money", align: "right"},
                        ],
                        task_tableFieldsFlow: [
                            {isshow: "T", field: "warning", name: "编码", width: "120", type:"span",},
                            {isshow: "T", field: "com_attr", name: "年份", width: "100", type:"span",},
                            {isshow: "T", field: "unit", name: "月份", width: "150", type:"span",},
                            {isshow: "T", field: "province", name: "省份", width: "100", type:"span",},
                            {isshow: "T", field: "province", name: "城市", width: "100", type:"span",},
                            {isshow: "T", field: "customer_code", name: "客户编码", width: "150", type: "span",},
                            {isshow: "T", field: "customer_name", name: "客户名称", width: "200", type:"span",},
                            {isshow: "T", field: "stock_code", name: "订单编码", width: "150", type: "span",},
                            {isshow: "T", field: "delivey_amount", name: "订单金额", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "delivery_date", name: "创建日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "writeoff_date", name: "更新日期", width: "150", type:"span", formatter: "formatter_date"},
                        ],
                        task_tableFieldsPolicy: [
                            {isshow: "T", field: "test", name: "状态", width: "100", type:"span",},
                            {isshow: "T", field: "warning", name: "备案号", width: "150", type:"span",},
                            {isshow: "T", field: "warning1", name: "备案类型", width: "100", type:"span",},
                            {isshow: "T", field: "customer_code", name: "经销商编码", width: "150", type: "span",},
                            {isshow: "T", field: "customer_name", name: "经销商名称", width: "200", type:"span",},
                            {isshow: "T", field: "delivery_date", name: "生效日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "writeoff_date", name: "失效日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "creator", name: "创建人", width: "100", type:"span",},
                            {isshow: "T", field: "delivery_date", name: "创建日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "writeoff_date", name: "更新日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "province1", name: "版本号", width: "100", type:"span",},
                            {isshow: "T", field: "warning3", name: "备案批号", width: "150", type:"span",},
                            {isshow: "T", field: "province4", name: "区域省份", width: "100", type:"span",},
                        ],
                        net_tableFields: [
                            {isshow: "T", field: "field1", name: "流出连锁总部身份", width: "150", type: "span",},
                            {isshow: "T", field: "field2", name: "流出总部编码",width: "150", type: "span",},
                            {isshow: "T", field: "field3", name: "流出总部名称",width: "200", type: "span",},
                            {isshow: "T", field: "field4",name: "流入方业务类型",width: "150", type: "span",},
                            {isshow: "T", field: "field5",name: "门店标准编码",width: "150", type: "span", },
                            // {isshow: "T", field: "field6",name: "流入方名称",width: "200", type: "span", },
                            {isshow: "T", field: "field6",name: "门店原始名称",width: "150", type: "span", },
                            {isshow: "T", field: "field7", name: "原始网点", width: "100", type:"span", },
                            {isshow: "T", field: "field8", name: "流水日期", width: "100", type:"span", formatter: "formatter_date", },
                            {isshow: "T", field: "field9", name: "药品编码", width: "150", type:"span", },
                            {isshow: "T", field: "field10", name: "药品名称", width: "200", type: "span", },
                            {isshow: "T", field: "field11", name: "药品规格", width: "100", type:"span",},
                            {isshow: "T", field: "field12", name: "批号", width: "100", type:"span", },
                            {isshow: "T", field: "field13", name: "原始数量", width: "100", type: "span", align: "left"},
                            {isshow: "T", field: "field14", name: "折算流出数量", width: "100", type:"span", align: "left"},
                            {isshow: "T", field: "field15", name: "负库存核减", width: "100", type:"span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "field19", name: "纯销计算价", width: "100", type:"span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "field16", name: "审核数量", width: "100", type: "span", align: "left",},
                            {isshow: "T", field: "field17", name: "单盒费用标准", width: "100", type: "span", },
                            {isshow: "T", field: "field18", name: "前台/月度/季度/年度政策的金额", width: "200", type: "span", formatter: "formatter_money", align: "right"},
                        ],
                        net_tableFieldsFlow: [
                            {isshow: "T", field: "warning", name: "编码", width: "120", type:"span",},
                            {isshow: "T", field: "com_attr", name: "年份", width: "100", type:"span",},
                            {isshow: "T", field: "unit", name: "月份", width: "150", type:"span",},
                            {isshow: "T", field: "province", name: "省份", width: "100", type:"span",},
                            {isshow: "T", field: "province", name: "城市", width: "100", type:"span",},
                            {isshow: "T", field: "customer_code", name: "客户编码", width: "150", type: "span",},
                            {isshow: "T", field: "customer_name", name: "客户名称", width: "200", type:"span",},
                            {isshow: "T", field: "stock_code", name: "订单编码", width: "150", type: "span",},
                            {isshow: "T", field: "delivey_amount", name: "订单金额", width: "100", type: "span", formatter: "formatter_money", align: "right"},
                            {isshow: "T", field: "delivery_date", name: "创建日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "writeoff_date", name: "更新日期", width: "150", type:"span", formatter: "formatter_date"},
                        ],
                        net_tableFieldsPolicy: [
                            {isshow: "T", field: "test", name: "状态", width: "100", type:"span",},
                            {isshow: "T", field: "warning", name: "备案号", width: "150", type:"span",},
                            {isshow: "T", field: "warning1", name: "备案类型", width: "100", type:"span",},
                            {isshow: "T", field: "customer_code", name: "经销商编码", width: "150", type: "span",},
                            {isshow: "T", field: "customer_name", name: "经销商名称", width: "200", type:"span",},
                            {isshow: "T", field: "delivery_date", name: "生效日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "writeoff_date", name: "失效日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "creator", name: "创建人", width: "100", type:"span",},
                            {isshow: "T", field: "delivery_date", name: "创建日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "writeoff_date", name: "更新日期", width: "150", type:"span", formatter: "formatter_date"},
                            {isshow: "T", field: "province1", name: "版本号", width: "100", type:"span",},
                            {isshow: "T", field: "warning3", name: "备案批号", width: "150", type:"span",},
                            {isshow: "T", field: "province4", name: "区域省份", width: "100", type:"span",},
                        ],
 
                        tableFields: [],
                        tableFieldsFlow: [],
                        tableFieldsPolicy: [],
                        newTableData: {
                            // create_time: createDatetime(),
                            // creator_name: window.top.vue.userinfo.name,
                        },
                        tableData: [
                            {
                                id: "01",
                                warning: "80",
                                customer_code: "10010064",
                                customer_name: "云南博泰药业有限公司",
                            },
                            {
                                id: "02",
                                warning: "80",
                                customer_code: "10010058",
                                customer_name: "合肥亿帆医药有限公司",
                            },
                        ],
                        tableDataFlow: [
                            {
                                id: "03",
                                warning: "80",
                                customer_code: "10010064",
                                customer_name: "云南博泰药业有限公司",
                            },
                            {
                                id: "04",
                                warning: "80",
                                customer_code: "10010058",
                                customer_name: "合肥亿帆医药有限公司",
                            },
                        ],
                        tableDataPolicy: [
                            {
                                id: "05",
                                warning: "80",
                                customer_code: "10010064",
                                customer_name: "云南博泰药业有限公司",
                            },
                            {
                                id: "06",
                                warning: "80",
                                customer_code: "10010058",
                                customer_name: "合肥亿帆医药有限公司",
                            },
                        ],
 
                        default_formFields: [
                            // {isshow: "T",field: "source",name: "来源",width: "150", type: "span"},
                            // {isshow: "T",field: "state_name",name: "状态",width: "150", type: "span"},
                            // {isshow: "T", field: "type",name: "类型",width: "150",align: "left", isminwidth: true, type: "span"},
                            // {isshow: "T", field: "create_time",name: "计算日期", width: "100", align: "center", isminwidth: true, type: "span", formatter: "formatter_date"},
                            // {isshow: "T",field: "remark",name: "备注",width: "100", type: "span",},
 
                            {isshow: "T",field: "calculate_date",name: "日期范围",width: "100", type: "daterange", buttonname:"试算",},
                        ],
                        formData: {},
                        
                        //字段设置
                        tablefieldClick: {},
                        formfieldClick: {},
 
                        //按键权限设置
                        isedit: false,//提交前编辑,保存/提交
                        isrefuseedit: false,//拒绝后编辑,保存/再次提交
                        isapproval: false,//审批,同意/拒绝/转办/退回
                        isend: false,
                        
                        iscommit: false,//提交标记
                        
                        //弹窗参数
                        popupParames: {},
 
                        flow_id: "c1355b3fd4b049f28135548d17f2071f",
                        t_height:null,
                        isRefresh: true,
 
                        selectedrows: [],
                        state: "",
                        type_name: "",
                        activeName: null,
                    },
                    created() {
                        this.popupParames = clone(Root.popupParames);
                        this.title = this.popupParames.title || this.popupParames.text;
                        if (this.popupParames.data) {
                            this.formData = clone(this.popupParames.data);
                            if (this.formData.state_name) {
                                this.state = clone(this.formData.state_name);
                            }
                            if (this.formData.type_name) {
                                this.type_name = clone(this.formData.type_name);
                            }
                        }
 
                        if (this.popupParames.delta && this.popupParames.delta.type_name) {
                            this.type_name = clone(this.popupParames.delta.type_name);
                        }
                        
                        if (this.popupParames.sceneCode) {
                            if (this.popupParames.sceneCode == "add") {//新增
                                // if (this.newformData) {
                                //     let formData_ = clone(this.formData);
                                    
                                //     for (var k in this.newformData) {
                                //         formData_[k] = this.newformData[k];
                                //     }
                                //     this.formData = formData_;
                                // }
                                
                                // if (this.newTableData) {
                                //     this.tableData.push(clone(this.newTableData));
                                // }
                                this.tableData = [];
                                this.isedit = true;
                            }
                            else if (this.popupParames.sceneCode == "browse") {//只读
                                this.formAttr.disabled = true;
                                // this.formAttr2.disabled = true;
                            }
                            else if (this.popupParames.sceneCode == "edit") {//编辑
                                this.isedit = true;
                            }
                            else if (this.popupParames.sceneCode == "approval") {//审批
                                this.formAttr.disabled = true;
                                // this.formAttr2.disabled = true;
                                this.isapproval = true;
                            }
                            else if (this.popupParames.sceneCode == "refuseedit") {//拒绝后的编辑
                                this.isrefuseedit = true;
                            }
                        }
                    },
                    
                    mounted() {
                        var me = this;
                        me.t_height = document.documentElement.clientHeight*1 - 140;
                        this.activeName = "Matched";
 
                        //预加载数据
                        if (this.dataRequest && this.dataRequest.length) {
                            var result = {};
                            this.loadRequestData(this.dataRequest, result, function(data) {
                                me.dataRequestObj = data;
                                //预加载数据后给哪些字段设置options或formatterjson
                                
                                me.initData();
                            });
                        }
                        else {
                            this.initData();
                        }
                        
                        // 以服务的方式调用的 Loading 需要异步关闭
                        this.$nextTick(() => { 
                            hideLoading();
                            
                            //重新设置弹窗宽高
                            this.$nextTick(function(){
                                let w_ = this.$refs.popup_body.offsetWidth + "px";
                                // let w_ = "900px";
                                let h_ = this.$refs.popup_body.offsetHeight + "px";
                                Root.setPopupWH(w_, h_);
                            })
                        });
                    },
                    
                    methods:{
                        //关闭弹窗
                        closeDialog() {
                            var me = this;
                            if (me.popupParames.totab){
                                Root.tab.removeItem(Root.tab.selected);
                                Root.tab.open(me.popupParames.parentOption, false); 
                            }
                            else {
                                Root.hidePopup();
                            }
                        },
                        //关闭前调回调
                        saveAfter() {
                            var me = this;
                            if(this.popupParames.callback) {
                                let obj = {
                                    //row: this.formData
                                }
                                this.popupParames.callback(obj, function() {
                                    me.closeDialog();
                                });
                            }
                            else {
                                me.closeDialog();
                            }
                        },
                        
                        initData() {
                            let me = this
                            var id_ = null;
                            if (!me.formFields || (me.formFields && me.formFields.length == 0)) {
                                me.formFields = clone(me.default_formFields);
                                if (me.type_name) {
                                    if (me.type_name == "商业回笼") {
                                        me.filterFields = clone(me.withdraw_filterFields);
                                        me.tableFields = clone(me.withdraw_tableFields);
                                        me.tableFieldsFlow = clone(me.withdraw_tableFieldsFlow);
                                        me.tableFieldsPolicy = clone(me.withdraw_tableFieldsPolicy);
                                    }
                                    else if (me.type_name == "商业当期") {
                                        me.filterFields = clone(me.current_filterFields);
                                        me.tableFields = clone(me.current_tableFields);
                                        me.tableFieldsFlow = clone(me.current_tableFieldsFlow);
                                        me.tableFieldsPolicy = clone(me.current_tableFieldsPolicy);
                                    }
                                    else if (me.type_name == "商业调拨") {
                                        me.filterFields = clone(me.transfer_filterFields);
                                        me.tableFields = clone(me.transfer_tableFields);
                                        me.tableFieldsFlow = clone(me.transfer_tableFieldsFlow);
                                        me.tableFieldsPolicy = clone(me.transfer_tableFieldsPolicy);
                                    }
                                    else if (me.type_name == "终端补差") {
                                        me.filterFields = clone(me.adjust_filterFields);
                                        me.tableFields = clone(me.adjust_tableFields);
                                        me.tableFieldsFlow = clone(me.adjust_tableFieldsFlow);
                                        me.tableFieldsPolicy = clone(me.adjust_tableFieldsPolicy);
                                    }
                                    else if (me.type_name == "终端货抵") {
                                        me.filterFields = clone(me.good_filterFields);
                                        me.tableFields = clone(me.good_tableFields);
                                        me.tableFieldsFlow = clone(me.good_tableFieldsFlow);
                                        me.tableFieldsPolicy = clone(me.good_tableFieldsPolicy);
                                    }
                                    else if (me.type_name == "年度任务计算") {
                                        me.filterFields = clone(me.year_filterFields);
                                        me.tableFields = clone(me.year_tableFields);
                                        me.tableFieldsFlow = clone(me.year_tableFieldsFlow);
                                        me.tableFieldsPolicy = clone(me.year_tableFieldsPolicy);
                                    }
                                    else if (me.type_name == "OTC经销折让") {
                                        me.filterFields = clone(me.otc_filterFields);
                                        me.tableFields = clone(me.otc_tableFields);
                                        me.tableFieldsFlow = clone(me.otc_tableFieldsFlow);
                                        me.tableFieldsPolicy = clone(me.otc_tableFieldsPolicy);
                                    }
                                    else if (me.type_name == "前台费用-前台" || me.type_name == "前台费用-年" || me.type_name == "前台费用-季" || me.type_name == "前台费用-月") {
                                        me.filterFields = clone(me.front_filterFields);
                                        me.tableFields = clone(me.front_tableFields);
                                        me.tableFieldsFlow = clone(me.front_tableFieldsFlow);
                                        me.tableFieldsPolicy = clone(me.front_tableFieldsPolicy);
                                    }
                                    else if (me.type_name == "任务折让-前台" || me.type_name == "任务折让-年" || me.type_name == "任务折让-季" || me.type_name == "任务折让-月") {
                                        me.filterFields = clone(me.task_filterFields);
                                        me.tableFields = clone(me.task_tableFields);
                                        me.tableFieldsFlow = clone(me.task_tableFieldsFlow);
                                        me.tableFieldsPolicy = clone(me.task_tableFieldsPolicy);
                                    }
                                    else if (me.type_name == "净销任务-前台" || me.type_name == "净销任务-年" || me.type_name == "净销任务-季" || me.type_name == "净销任务-月") {
                                        me.filterFields = clone(me.net_filterFields);
                                        me.tableFields = clone(me.net_tableFields);
                                        me.tableFieldsFlow = clone(me.net_tableFieldsFlow);
                                        me.tableFieldsPolicy = clone(me.net_tableFieldsPolicy);
                                    }
                                } 
                                else {
                                    me.filterFields = clone(me.default_filterFields);
                                    me.tableFields = clone(me.default_tableFields);
                                    me.tableFieldsFlow = clone(me.default_tableFields);
                                    me.tableFieldsPolicy = clone(me.default_tableFields);
                                }
 
                                //字段数组转字段obj
                                me.fieldsToFieldsObj();
                                //设置字段事件
                                me.tableFieldClick();
                            }
 
                            // if (this.formData.id) {
                            //     id_ = this.formData.id;
                            // }
                            // this.getRowDataById(id_, function(result) {//查询后的回调,用于获取字段的
                            //     if (result.meta && result.meta[me.dataname] && result.meta[me.dataname].fields) {
                            //         var metas = clone(result.meta[me.dataname].fields);
                            //         var table_dataname_ = "";
                            //         for (var dataname_ in result.meta) {
                            //             if (dataname_ != me.dataname && !table_dataname_) {
                            //                 table_dataname_ = dataname_;
                            //             }
                            //         }
                            //         var table_metas = [];
                            //         if (table_dataname_) {
                            //             me.table_dataname = table_dataname_;
                            //             table_metas = clone(result.meta[table_dataname_].fields);
 
                            //         }
                                    
                            //         var formFields_ = [];
                            //         var tableFields_ = [];
                            //         metas.map(f=>{
                            //             f.isshow = "T";
                            //             formFields_.push(clone(f));
                            //         })
                            //         table_metas.map(f=>{
                            //             f.isshow = "T";
                            //             tableFields_.push(clone(f));
                            //         })
                                    
                            //         if (!me.formFields || (me.formFields && me.formFields.length == 0)) {
                            //             me.formFields = clone(formFields_);
                            //             me.tableFields = clone(tableFields_);
                                        
                            //             //字段数组转字段obj
                            //             me.fieldsToFieldsObj();
                                        
                            //             //设置字段事件
                            //             me.tableFieldClick();
                            //         }
                            //     }
                                
                            //     if (me.rowData[me.dataname]) {
                            //         me.formData = me.rowData[me.dataname];
                            //     }
                            //     if (me.rowData[me.table_dataname]) {
                            //         me.tableData = me.rowData[me.table_dataname];
                            //     }
                            // })
                        },
 
                        getReply() {
                            var me = this;
 
                            var config = {
                                totab: false, //true: 以Tab导航的方式打开
                                width: "900px",
                                height: "900px",
                                icon: "icon-product",
                                text: "反馈详情",
                                id: "popup_replies",//totab: true时需设置,用于判断是否已打开此页面
                                url: "../tradeDiscount/discount/popup_replies.html",
                                data: "",
                                delta: {},
                                sceneCode: "browse",//"refuseedit",//"approval", //"add"//"browse",
                                callback: function(obj, callback) {
                                    if (callback) {
                                        callback();
                                    }
                                }
                            };
                            me.doPopupByPublic(config);
                        },
                        
                        distribute() {
                            var me = this;
 
                            var config = {
                                totab: false, //true: 以Tab导航的方式打开
                                width: "900px",
                                height: "900px",
                                icon: "icon-product",
                                text: "分发",
                                id: "popup_distribute_list",//totab: true时需设置,用于判断是否已打开此页面
                                url: "../tradeDiscount/discount/popup_distribute_list.html",
                                data: "",
                                delta: {},
                                sceneCode: "add",//"refuseedit",//"approval", //"add"//"browse",
                                callback: function(obj, callback) {
                                    if (callback) {
                                        callback();
                                    }
                                }
                            };
                            me.doPopupByPublic(config);
                        },
 
                        reCalculate() {
                            var me = this;
                            
                            var config = {
                                totab: false, //true: 以Tab导航的方式打开
                                width: "900px",
                                height: "900px",
                                icon: "icon-product",
                                text: "计算进度",
                                id: "popup_recalculate",//totab: true时需设置,用于判断是否已打开此页面
                                url: "../tradeDiscount/discount/popup_recalculate.html",
                                data: "",
                                delta: {},
                                sceneCode: "browse",//"refuseedit",//"approval", //"add"//"browse",
                                callback: function(obj, callback) {
                                    if (callback) {
                                        callback();
                                    }
                                }
                            };
                            me.doPopupByPublic(config);
                        },
 
                        newEndDeatil() {
                            var me = this;
                            
                            var config = {
                                totab: false, //true: 以Tab导航的方式打开
                                width: "900px",
                                height: "900px",
                                icon: "icon-product",
                                text: "请选择要终止的商业回笼明细数据",
                                id: "popup_terminal_policy_info_list",//totab: true时需设置,用于判断是否已打开此页面
                                url: "../agreement/policy/popup_terminal_policy_info_list.html",
                                data: {},
                                delta: {},
                                sceneCode: "add",//"refuseedit",//"approval", //"add"//"browse",
                                callback: function(obj, callback) {
                                    if (callback) {
                                        callback();
                                    }
                                }
                            };
                            me.doPopupByPublic(config);
                        },
                        
                        tableFieldClick() {
                            var me = this;
                            //筛选字段事件设置
                            this.filterfieldClick = {
                                
                            };
                            //表单字段事件设置
                            this.formfieldClick = {
                                calculate_date: {
                                    button: {
                                        onclick: function(obj) {//按键点击事件
                                            me.reCalculate();
                                        }
                                    },
                                },
                                
                            };
                            
                            //表格字段事件设置
                            this.tablefieldClick = {
                                warning: {//字段事件设置
                                    prefixclass: {
                                        setclass: function(row, field){
                                            // 根据逻辑返回class名称
                                            if (row.warning * 1 >= 60) {
                                                // return "prefixclass";
                                                return 'el-icon-warning-outline';
                                                // return '<i class="el-icon-time"></i>';
                                            } else {
                                                return 'whitefixclass';
                                            }
                                        }
                                    },
                                },
                                year_discount_amount: {
                                    defaultval: {
                                        val: "查看",//空值时的显示值
                                        onclick: function(obj) {//默认值点击事件,此事件需要设置val才有效
                                            me.showDetail(obj);
                                        }
                                    },
                                },
                            };
                        
                        },
 
                        showDetail(obj) {
                            var me = this;
 
                            var config = {
                                totab: false, //true: 以Tab导航的方式打开
                                width: "900px",
                                height: "900px",
                                icon: "icon-product",
                                text: "年度折让金额",
                                id: "popup_year_discount",//totab: true时需设置,用于判断是否已打开此页面
                                url: "../tradeDiscount/discount/popup_year_discount.html",
                                data: "",
                                delta: {},
                                sceneCode: "browse",//"refuseedit",//"approval", //"add"//"browse",
                                callback: function(obj, callback) {
                                    if (callback) {
                                        callback();
                                    }
                                }
                            };
                            me.doPopupByPublic(config);
                        },
                        
                        addTableData() {
                            var table_row = clone(this.newTableData);
                            this.rowChange(table_row, "add", this.table_dataname);
                        },
                        
                        delData(scope) {
                            let me = this;
                            let row = scope.row;
                            let index_ = scope.$index;
                            
                            Root.confirm('确定删除数据【' + JSON.stringify(row) + '】吗?', '删除提示', {
                              confirmButtonText: '删除',
                              cancelButtonText: '取消',
                              type: 'warning'
                            }).then(() => {
                                me.rowChange(row, "del", me.table_dataname);
                            }).catch(() => {
                                Root.message({
                                    type: 'info',
                                    message: '已取消删除'
                                });          
                            });
                        },
                        
                        rowChange(row, type, tablename) {
                            var me = this;
                            if (type == "add") {
                                this.tableData.unshift(row);
                            }
                            else if (type == "del") {
                                if (row.id) {
                                    let param = {
                                        dataname: tablename,
                                        id: row.id
                                    }
                                    
                                    Server.call("root/data/deleteEntity", param, function(result) {
                                        console.log(result);
                                        if (result && result.data) {
                                            me.tableData.remove(row);
                                            
                                            Root.message({
                                                type: 'success',
                                                message: '删除成功!'
                                            });
                                        }
                                    });
                                }
                                else {
                                    this.tableData.remove(row);
                                }
                            }
                            else {
                            
                            }
                        },
                        
                        //提交
                        submitRowTable() {
                            this.iscommit = true;
                            this.saveRowTable();
                        },
                        
                        //保存
                        saveRowTable() {
                            var me = this;
                            var operator_ = "save";//保存
                            if(me.iscommit) {
                                operator_ = "commit";//提交
                            }
                            
                            var entity_ = clone(this.formData);
                            var entity = {};
                            for (var r in entity_) {
                                if (entity_[r]) {
                                    entity[r] = entity_[r];
                                }
                            }
                            
                            var tableData_ = [];
                            this.tableData.map(r=>{
                                var row_ = {};
                                for (var k in r) {
                                    if (r[k]) {
                                        row_[k] = r[k];
                                    }
                                }
                                tableData_.push(row_);
                            })
                            
                            if (tableData_.length == 0) {
                                Root.message({
                                    type: 'warning',
                                    message: '请先添加明细数据'
                                });
                                return
                            }
                            
                            let param = {
                                dataname: this.dataname,
                                operator: operator_,
                                data: {},
                            }
                            param.data[this.dataname] = entity;
                            param.data[this.table_dataname] = tableData_;
                            
                            Server.call("root/data/saveEntity", param, function(result) {
                                console.log(result);
                                if (result.success) {
                                    if(me.iscommit){
                                        me.iscommit = false;
                                        Root.message({
                                            type: 'success',
                                            message: '提交成功'
                                        }); 
                                        me.saveAfter();
                                    }
                                    else {
                                        Root.message({
                                            type: 'success',
                                            message: '保存成功'
                                        }); 
                                        me.saveAfter();
                                    }
                                }
                            });
                        },
                        selectionChange(obj){
                            var me = this;
                            me.selectedrows = obj;
                        },
                        saveShoppingcart(list) {
                            var me = this;
                            me.selectedrows = list;
                        },
                    }
                });
            };
 
            initVue();
        </script>
        
        <style>
            .a:hover{
                background-color: #FFFFFF;
            }
            .el-input__inner{
                padding: 0 2px;
            }
            .header {
                height: 21px;
            }
            .el-dialog_header {
                padding: 10px 20px;
                border-bottom: 1px solid #ccc;
                right: 10px;
                left: 10px;
                top: 0px;
                position: fixed;
            }
            .el-dialog_body{
                padding: 20px;
                
                overflow-y: auto;
                right: 10px;
                left: 10px;
                top: 42px;
                bottom: 50px;    
                position: fixed;
            }
            .el-dialog_footer {
                padding: 10px 20px;
                border-top: 1px solid #ccc;
                right: 10px;
                left: 10px;
                bottom: 0px;
                position: fixed;
                background-color: #fff;
                z-index: 10;
                text-align: right;
            }
            html{
                overflow-y: hidden;
            }
 
            /* .el-button--mini {
                color: #FFF;
                background-color: #2984e2;
                border-color: #409EFF;
            } */
 
            .prefixclass {
                width: 10px;
                height: 10px;
                border-radius: 5px;
                background-color: #087e13;
                display: inline-block;
            }
 
            .whitefixclass {
                width: 10px;
                height: 10px;
                border-radius: 5px;
                display: inline-block;
            }
 
            .el-icon-warning-outline {
                color: darkorange;
            }
        </style>
        
    </body>
</html>