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
<template>
<div class="eibs-tab">
<el-form class="m-table-search-form" ref="finselForm" label-position="right" label-width="110px" size="small" :model="model">
<el-row>
<c-col :span="8">
<el-form-item label="报表分类" style="width: 100%">
<c-select v-model="model.finsel.rpttyp" :code="rpttyps" style="width: 100%" placeholder="请选择报表分类" :clearable="true" >
</c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="日期" style="width: 100%">
<c-col :span="11">
<c-date-picker type="date" v-model="model.finsel.begdat" style="width: 100%" placeholder="请选择起始日期" value-format="yyyy-MM-dd"></c-date-picker>
</c-col>
<c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">-</label>
</c-col>
<c-col :span="11">
<c-date-picker type="date" v-model="model.finsel.enddat" style="width: 100%" placeholder="请选择截止日期" value-format="yyyy-MM-dd"></c-date-picker>
</c-col>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="选择机构号" style="width: 100%">
<c-select v-model="model.finsel.branch" style="width: 100%" placeholder="请选择机构号" :clearable="true" >
<el-option v-for="item in bchlst" :key="item.inr" :value ="item.branch" :label="item.branch + '-' + item.bchname">
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="总行导数" style="width: 100%">
<c-fullbox>
<c-select v-model="model.finsel.subrpt" :code="subrpts" style="width: 100%" placeholder="请选择报表分类" :clearable="true" >
</c-select>
<template slot="footer">
<c-button type="primary" style="margin: 0 0" size="small" @click="subrptexportExcel">总行导数</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="压力监控" style="width: 100%">
<c-fullbox>
<c-date-picker type="date" v-model="model.finsel.bgdat" style="width: 100%" placeholder="请选择起始日期" value-format="yyyy-MM-dd"></c-date-picker>
<template slot="footer">
<c-button type="primary" style="margin: 0 0" size="small" @click="monitorReport">监控</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12" style="text-align: right">
<el-button size="small" @click="handleReset">重置</el-button>
<el-button type="primary" icon="el-icon-export" size="small" @click="finselexportExcel()">导出报表
</el-button>
</c-col>
</c-col>
</el-row>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import event from "../event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins:[event],
components: {},
data() {
return {
//报表类型
rpttypLst:[],
//交易类型
sectorLst:[],
isShowSector:false,
isShowSmh:false,
isShowAmt:false,
isShowTendays:false,
isShowBranch:false,
tips:'',
//临时码表
rpttyps:[
{label:'远期信用证承兑付款报表',value:'a'},
{label:'融资业务(出口融资)',value:'b'},
{label:'出口信用证收汇交易',value:'c'},
{label:'出口托收收汇交易',value:'d'},
{label:'进口信用证付款交易',value:'e'},
{label:'进口代收付款交易',value:'f'},
{label:'汇出汇款交易',value:'g'},
{label:'汇入汇款交易',value:'h'},
// {label:'来委业务(非保函)',value:'i'},
// {label:'去委业务(非保函)',value:'k'},
// {label:'来委业务(保函项下)',value:'l'},
// {label:'去委业务(保函项下)',value:'m'},
// {label:'出口融资余额报表',value:'o'},
// {label:'进口融资余额报表',value:'p'},
// {label:'保函余额报表',value:'s'},
// {label:'信用证余额(即期和远期)',value:'t'},
// {label:'远期到单已承兑余额报表',value:'w'},
// {label:'保函报表(数据统计)',value:'u'},
{label:'汇出汇款报表(非202报文的业务)',value:'z'},
{label:'汇出汇款报表(202报文的业务)',value:'q'},
],
subrpts:[
{label:'信用证数据统计',value:'a'},
// {label:'保函数据统计',value:'b'},
// {label:'汇出汇款',value:'c'},
// {label:'远期信用证承兑付款',value:'d'},
// {label:'不申报的业务(上海)',value:'e'},
// {label:'远期单据逾期承兑',value:'f'},
// {label:'远期单据逾期付款',value:'g'},
// {label:'即期单据逾期付款',value:'h'},
],
//机构列表
bchlst:[],
bchlsttpm:[],
//远期信用证承兑付款报表
finReportsA:[
{
prop: "trninr",
label: "业务编号",
}, {
prop: "ownref",
label: "业务编号",
},
{
prop: "udpdat",
label: "承兑日期",
},
{
prop: "cur",
label: "承兑币种",
},
{
prop: "amt",
label: "承兑金额",
},
{
prop: "tenday",
label: "宽限期",
},
],
//融资业务(出口融资)
finReportsB:[
{
prop:"bchname",
label:"机构名称(业务归属行)",
},{
prop:"branch",
label:"机构代码",
},{
prop:"ptyname",
label:"客户名称",
},{
prop:"extkey",
label:"客户号",
},{
prop:"ownref",
label:"参考号",
},{
prop:"inifrm",
label:"交易代码",
},{
prop:"extid",
label:"EXTID",
},{
prop:"cbt",
label:"CBT",
},{
prop:"cur",
label:"交易币种",
},{
prop:"amt",
label:"原交易金额",
},
],
//收汇/付款报表 cdef
finReportsCDEF: [
{
prop: "cpldattim",
label: "交易日期",
width: 170,
isShow: true
},
{
prop: "ownref",
label: "参考号",
width: 70,
isShow: true
},
{
prop: "ptyname",
label: "客户名称",
width: 150,
isShow: true
},
{
prop: "extkey",
label: "客户号",
isShow: true,
width: 150
},
{
prop: "cur",
label: "交易币种",
isShow: true,
width: 100
},
{
prop: "amt",
label: "交易金额",
isShow: true,
width: 100
},
],
//汇出/汇入汇款交易报表
finReportsGH: [
{
prop: "cpldattim",
label: "交易日期",
width: 170,
isShow: true
},
{
prop: "ownref",
label: "参考号",
width: 70,
isShow: true
},
{
prop: "ptyname",
label: "客户名称",
width: 150,
isShow: true
},
{
prop: "extkey",
label: "客户号",
isShow: true,
width: 150
},
{
prop: "cur",
label: "交易币种",
isShow: true,
width: 100
},
{
prop: "amt",
label: "交易金额",
isShow: true,
width: 100
},
{
prop: "trntyp",
label: "汇款性质",
isShow: true,
width: 100
},
],
//汇出汇款报表(非202来报)
finReportsZ: [
{
prop: "bchname",
label: "分行名称",
width: 170,
isShow: true
},
{
prop: "opndat",
label: "汇款日期",
width: 170,
isShow: true
},
{
prop: "cur",
label: "汇款币种",
isShow: true,
width: 100
},
{
prop: "amt",
label: "汇款金额",
isShow: true,
width: 100
},
{
prop: "ptyname",
label: "汇出汇款人名称",
width: 70,
isShow: true
},
{
prop: "adrblk",
label: "收款人名称",
width: 150,
isShow: true
},
{
prop: "ownref",
label: "业务编号",
isShow: true,
width: 150
},
],
//汇出汇款报表(202来报)
finReportsQ: [
{
prop: "bchname",
label: "分行名称",
width: 170,
isShow: true
},
{
prop: "opndat",
label: "汇款日期",
width: 170,
isShow: true
},
{
prop: "cur",
label: "汇款币种",
isShow: true,
width: 100
},
{
prop: "amt",
label: "汇款金额",
isShow: true,
width: 100
},
{
prop: "ptyname",
label: "汇出汇款人名称",
width: 70,
isShow: true
},
{
prop: "ownref",
label: "业务编号",
isShow: true,
width: 150
},
],
//信用证数据统计
reportForA: [
{
prop: "bchname",
label: "机构名称",
width: 170,
isShow: true
},
{
prop: "extkey",
label: "客户号",
width: 170,
isShow: true
},
{
prop: "ptyname",
label: "客户名称",
isShow: true,
width: 100
},
{
prop: "cshpct",
label: "保证金应收比例",
isShow: true,
width: 100
},
{
prop: "tenmaxday",
label: "远期期限",
width: 70,
isShow: true
},
{
prop: "ownref",
label: "业务编号",
isShow: true,
width: 150
},
{
prop: "opndat",
label: "开立日期",
isShow: true,
width: 150
},
{
prop: "expdat",
label: "到期日",
isShow: true,
width: 150
},
{
prop: "cur",
label: "币种",
isShow: true,
width: 150
},
{
prop: "amt",
label: "金额",
isShow: true,
width: 150
},
{
prop: "xrfamt",
label: "折算金额",
isShow: true,
width: 150
},
{
prop: "ccvamt",
label: "保证金金额",
isShow: true,
width: 150
},
{
prop: "add_sum2",
label: "承兑余额",
isShow: true,
width: 150
},
{
prop: "add_sum3",
label: "承兑折算余额",
isShow: true,
width: 150
},
],
//保函数据统计
reportForB: [
{
prop: "bchname",
label: "机构名称",
width: 170,
isShow: true
},
{
prop: "extkey",
label: "客户号",
width: 170,
isShow: true
},
{
prop: "ptyname",
label: "客户名称",
isShow: true,
width: 100
},
{
prop: "ownref",
label: "业务编号",
isShow: true,
width: 150
},
{
prop: "gartyp",
label: "保函类型",
isShow: true,
width: 150
},
{
prop: "opndat",
label: "开立日期",
isShow: true,
width: 150
},
{
prop: "expdat",
label: "到期日",
isShow: true,
width: 150
},
{
prop: "cur",
label: "币种",
isShow: true,
width: 150
},
{
prop: "amt",
label: "金额",
isShow: true,
width: 150
},
{
prop: "add_sum",
label: "费用",
isShow: true,
width: 150
},
{
prop: "rat",
label: "费用利率",
isShow: true,
width: 150
},
],
//汇出汇款、
reportForC: [
{
prop: "ownref",
label: "业务编号",
isShow: true,
width: 150
},
{
prop: "opndat",
label: "汇款日期",
isShow: true,
width: 150
},
{
prop: "cur",
label: "汇款币种",
isShow: true,
width: 150
},
{
prop: "amt",
label: "汇款金额",
isShow: true,
width: 150
},
{
prop: "pyeName",
label: "收款人",
width: 170,
isShow: true
},
{
prop: "orcName",
label: "汇款人名称",
isShow: true,
width: 100
},
{
prop: "bchname",
label: "机构名称",
width: 170,
isShow: true
},
],
//远期信用证承兑及付款报表
reportForD: [
{
prop: "ownref",
label: "业务编号",
isShow: true,
width: 150
},
{
prop: "udpdat",
label: "承兑日期",
isShow: true,
width: 150
},
{
prop: "matdat",
label: "到期日",
isShow: true,
width: 150
},
{
prop: "udpcur",
label: "承兑币别",
isShow: true,
width: 150
},
{
prop: "udpamt",
label: "承兑金额",
isShow: true,
width: 150
},
{
prop: "setdat",
label: "付款日期",
isShow: true,
width: 150
},
{
prop: "setcur",
label: "付款币别",
isShow: true,
width: 150
},
{
prop: "setamt",
label: "付款金额",
isShow: true,
width: 150
},
],
//远期单据逾期承兑
reportForF:[
{
prop: "ownref",
label: "单据号",
isShow: true,
width: 150
},
{
prop: "rcvdat",
label: "到单日",
isShow: true,
width: 150
},
{
prop: "cpldattim",
label: "实际承兑日",
isShow: true,
width: 150
},
{
prop: "matdat",
label: "付款到期日",
isShow: true,
width: 150
},
{
prop: "branch",
label: "机构号",
isShow: true,
width: 150
},
{
prop: "inifrm",
label: "逾期交易类型",
isShow: true,
width: 150
},
{
prop: "opndat",
label: "开证日期",
isShow: true,
width: 150
},
],
//远期单据逾期付款
reportForG:[
{
prop: "ownref",
label: "单据号",
isShow: true,
width: 150
},
{
prop: "rcvdat",
label: "到单日",
isShow: true,
width: 150
},
{
prop: "matdat",
label: "付款到期日",
isShow: true,
width: 150
},
{
prop: "cpldattim",
label: "实际付款日",
isShow: true,
width: 150
},
{
prop: "branch",
label: "机构号",
isShow: true,
width: 150
},
{
prop: "inifrm",
label: "逾期交易类型",
isShow: true,
width: 150
},
{
prop: "opndat",
label: "开证日期",
isShow: true,
width: 150
},
],
//即期单据逾期付款
reportForH:[
{
prop: "ownref",
label: "单据号",
isShow: true,
width: 150
},
{
prop: "rcvdat",
label: "到单日",
isShow: true,
width: 150
},
{
prop: "cpldattim",
label: "实际付款日",
isShow: true,
width: 150
},
{
prop: "branch",
label: "机构号",
isShow: true,
width: 150
},
{
prop: "inifrm",
label: "逾期交易类型",
isShow: true,
width: 150
},
{
prop: "opndat",
label: "开证日期",
isShow: true,
width: 150
},
],
//业务压力统计报表
reportForI:[
{
prop:"begdat",
label:"交易日期",
},
{
prop:"hours",
label:"时间点",
},
{
prop:"frm",
label:"交易代码",
},
{
prop:"bchname",
label:"机构名称",
},
]
};
},
mounted() {
this.getBranchList();
this.changeDlselect();
this.getdbCode('gartyp','CN','gartyp');
this.model.finsel.branch = JSON.parse(sessionStorage.getItem('currentOrg')).departmentNumber
},
computed: {
},
methods: {
}
};
</script>
<style scoped>
</style>