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
<template>
<c-row>
<!--=================顶部================= -->
<c-col :span="24">
<c-col :span="12">
<el-form-item label="单据编号" prop="trdgrp.rec.pntref">
<c-fullbox>
<c-input
v-model="model.trdgrp.rec.pntref"
maxlength="16"
style="width: 78%"
disabled
placeholder="请输入单据编号"
>
</c-input>
<c-button
size="small"
type="primary;width:10%"
style="width: 10%"
@click="onSeainf"
>
i
</c-button>
</c-fullbox>
</el-form-item>
</c-col>
<!-- <c-col :span="4">
<el-form-item label="" label-width="15px">
</el-form-item>
</c-col> -->
<c-col :span="11">
<el-form-item label="单据名称" prop="trdgrp.rec.pntnam">
<c-input
align="middle"
v-model="model.trdgrp.rec.pntnam"
maxlength="40"
disabled
placeholder="请输入单据名称"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="融资编号" prop="trdgrp.rec.ownref">
<c-fullbox>
<c-input
v-model="model.trdgrp.rec.ownref"
maxlength="16"
disabled
style="width: 57%"
></c-input>
<c-button
size="small"
type="primary;width:10%"
style="width: 10%"
@click="onSeainf"
>
i</c-button
>
<c-button
size="small"
type="primary"
:disabled="
model.trdgrp.rec.fintyp == '' ||
model.trdgrp.fip.pts.adrblk == '' ||
// model.trdgrp.rec.branchinr == ''||
model.trdgrp.rec.ownref != ''
"
@click="onTrtpButgetref"
style="width: 20%"
>
Get Ref</c-button
>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="11">
<el-form-item label="借款合同名称" prop="trdgrp.rec.nam">
<c-input
align="middle"
v-model="model.trdgrp.rec.nam"
maxlength="40"
disabled
placeholder="请输入借款合同名称"
></c-input>
</el-form-item>
</c-col>
</c-col>
<!--=================中部-左================= -->
<c-col :span="11">
<c-col :span="24">
<el-form-item label="客户经理" prop="trtp.usr.extkey">
<c-fullbox>
<c-input
v-model="model.trtp.usr.extkey"
maxlength="8"
placeholder="请输入客户经理"
style="width: 88%"
></c-input>
<c-button
size="small"
type="primary;width:10%"
style="width: 10%"
@click="onExtkey"
>
i
</c-button>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="开立日期" prop="trdgrp.rec.issdat">
<c-date-picker
type="date"
v-model="model.trdgrp.rec.issdat"
style="width: 100%"
placeholder="请选择开立日期"
>
</c-date-picker>
</el-form-item>
</c-col>
<c-col :span="17">
<el-form-item label="融资品种" prop="trdgrp.rec.fintyp">
<c-select
v-model="model.trdgrp.rec.fintyp"
style="width: 100%"
placeholder="请选择融资品种"
>
<el-option
v-for="item in codes.fintyp1"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="6" :offset="1">
<c-checkbox v-model="model.trtp.dfflag">同业代付</c-checkbox>
</c-col>
<c-col :span="24">
<el-form-item label="货押标识" prop="trdgrp.rec.guaflg">
<c-select
v-model="model.trdgrp.rec.guaflg"
style="width: 100%"
placeholder="请选择货押标识"
>
<el-option
v-for="item in codes.guaflg"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="货物代码" prop="trdgrp.rec.stagod">
<c-select
v-model="model.trdgrp.rec.stagod"
style="width: 100%"
placeholder="请选择货物代码"
>
<el-option
v-for="item in codes.godcod"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="融资金额" prop="trdgrp.cbs.max.cur">
<c-select
v-model="model.trdgrp.cbs.max.cur"
style="width: 100%"
placeholder="请选择Currency"
@keyup.enter.native="maxCurEvent"
>
<el-option
v-for="item in codes.curtxt1"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="7">
<el-form-item
style="text-align: left"
label-width="20px"
prop="trdgrp.cbs.max.amt"
>
<c-input
v-model="model.trdgrp.cbs.max.amt"
style="width: 100%"
placeholder="请输入融资金额"
></c-input>
</el-form-item>
</c-col>
<c-col :span="5">
<el-form-item prop="trdgrp.rec.pctfin" label-width="20px">
<c-input
v-model="model.trdgrp.rec.pctfin"
style="width: 80%"
:disabled="true"
></c-input
>%
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="计息周期" prop="trtmod.finmod.intprd">
<c-select
v-model="model.trtmod.finmod.intprd"
style="width: 100%"
placeholder="请选择计息周期"
>
<el-option
v-for="item in codes.intprd"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="利率调整方式" prop="trtmod.finmod.ratchgtyp">
<c-select
v-model="model.trtmod.finmod.ratchgtyp"
style="width: 100%"
placeholder="请选择利率调整方式"
>
<el-option
v-for="item in codes.ratchgtyp"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="13">
<el-form-item label="开户日期" prop="trdgrp.rec.stttendat">
<c-date-picker
type="date"
v-model="model.trdgrp.rec.stttendat"
style="width: 100%"
placeholder="请选择开户日期"
value-format="yyyy-MM-dd"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="11">
<el-form-item
label="到期日(非节假日)"
prop="trdgrp.rec.matdat"
label-width="110px"
>
<c-date-picker
type="date"
v-model="model.trdgrp.rec.matdat"
style="width: 100%"
placeholder="非节假日"
:picker-options="pickerOptions"
value-format="yyyy-MM-dd"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="基准利率" prop="trdgrp.rec.intrat">
<c-fullbox>
<c-input
v-model="model.trdgrp.rec.intrat"
placeholder="请输入基准利率"
:disabled="true"
style="width: 82%"
>
</c-input>
<c-button
size="small"
type="primary"
@click="onFinmodButget"
style="width: 15%"
>
Get
</c-button>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="基准利率规则" prop="trtmod.finmod.dinmod.jzllgz">
<c-select
v-model="model.trtmod.finmod.dinmod.jzllgz"
style="width: 100%"
placeholder="请选择基准利率规则"
>
<el-option
v-for="item in codes.jzllgz"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="执行利率" prop="trdgrp.rec.actrat">
<c-input
v-model="model.trdgrp.rec.actrat"
placeholder="请输入执行利率"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item
label="是否定向收付"
prop="trdgrp.rec.flowflag"
v-if="zmqflg == 'x'"
>
<c-select
v-model="model.trdgrp.rec.flowflag"
style="width: 100%"
placeholder="请选择是否定向收付"
>
<el-option
v-for="item in codes.flowflag"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="第一还款账号" prop="trtmod.finmod.act1">
<c-select
v-model="model.trtmod.finmod.act1"
style="width: 100%"
placeholder="请选择第一还款账号"
>
<el-option
v-for="(item, idx) in codes.codeSet['trtmod.finmod.act1']"
:key="idx"
:label="item.split('\t')[1]"
:value="item.split('\t')[0]"
></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="预收息金额" prop="trtmod.finmod.intamt">
<c-fullbox>
<c-input
v-model="model.trtmod.finmod.intamt"
style="width: 77%"
:disabled="true"
placeholder="请输入预收息金额"
>
</c-input>
<c-button
size="small"
type="primary"
@click="onFinmodButcal"
:disabled="model.trtmod.finmod.intprd != '7'"
style="width: 20%"
>
计算
</c-button>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="14">
<el-form-item label="预扣息方式" prop="trtmod.finmod.inttyp">
<c-select
v-model="model.trtmod.finmod.inttyp"
style="width: 100%"
placeholder="请选择预扣息方式"
:disabled="model.trtmod.finmod.intprd != '7'"
>
<el-option
v-for="item in codes.inttyp"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="10">
<el-form-item
label="税率"
label-width="110px"
prop="trtmod.finmod.shuilv"
>
<c-input
v-model="model.trtmod.finmod.shuilv"
:disabled="true"
placeholder="请输入税率"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="定价审批代码" prop="trtmod.finmod.dinjdm">
<c-fullbox>
<c-input
v-model="model.trtmod.finmod.dinjdm"
maxlength="20"
placeholder="请输入定价审批代码"
style="width: 82%"
>
</c-input>
<c-button
size="small"
type="primary"
@click="onDinmodDget"
:disabled="true"
style="width: 15%"
>
Get
</c-button>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="市场LPR期限品种" prop="trdgrp.rec.lprtyp">
<c-select
v-model="model.trdgrp.rec.lprtyp"
style="width: 100%"
placeholder="请选择市场LPR期限品种"
>
<el-option
v-for="item in codes.lprtyp"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="审批流程发起标识"
prop="trtmod.finmod.dinmod.rmbsbs"
>
<c-select
v-model="model.trtmod.finmod.dinmod.rmbsbs"
style="width: 100%"
placeholder="请选择审批流程发起标识"
:disabled="true"
>
<el-option
v-for="item in codes.jzllgz"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="发票类型" prop="trdgrp.rec.invtyp">
<c-select
v-model="model.trdgrp.rec.invtyp"
style="width: 100%"
placeholder="请选择发票类型"
>
<el-option
v-for="item in codes.invtyp"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
<!--=================中部-右================= -->
<c-col :span="11" :offset="1">
<c-col :span="24">
<c-ptap
:model="model"
:argadr="{
title: '融资客户',
grp: 'trdgrp',
rol: 'fip',
}"
:isAdrblk="true"
:disabled="true"
@onSeainf="onSeainf"
>
</c-ptap>
</c-col>
<!--
<c-col :span="24">
<el-form-item label="Chinese address" prop="trdgrp.fip.dbfadrblkcn">
<c-input type="textarea" v-model="model.trdgrp.fip.dbfadrblkcn" maxlength="35" show-word-limit placeholder="请输入Chinese address"></c-input>
</el-form-item>
</c-col> -->
<c-col :span="24">
<el-form-item label="借据号" prop="trtmod.finmod.fincod">
<c-input
v-model="model.trtmod.finmod.fincod"
maxlength="17"
placeholder="请输入借据号"
:disabled="true"
></c-input>
</el-form-item>
</c-col>
<c-col :span="14">
<el-form-item label="计息日期" prop="trtmod.finmod.intdat">
<c-input
v-model="model.trtmod.finmod.intdat"
maxlength="2"
placeholder="请输入计息日期"
:disabled="
model.trtmod.finmod.intprd == '6' ||
model.trtmod.finmod.intprd == '7' ||
model.trtmod.finmod.intprd == 'B'
"
></c-input>
</el-form-item>
</c-col>
<c-col :span="9" :offset="1">
<c-checkbox v-model="model.trtmod.finmod.wjdkfl" :disabled="true"
>是否到期主动扣收款</c-checkbox
>
</c-col>
<c-col :span="12">
<el-form-item label="利率调整周期" prop="trtmod.finmod.ratchgprd">
<c-select
v-model="model.trtmod.finmod.ratchgprd"
style="width: 100%"
placeholder="请选择利率调整周期"
:disabled="
model.trtmod.finmod.ratchgtyp != '7' &&
model.trtmod.finmod.ratchgtyp != '8' &&
model.trtmod.finmod.ratchgtyp != '9'
"
>
<el-option
v-for="item in codes.ratchgprd"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="利率调整月日数" prop="trtmod.finmod.ratchgdat">
<c-input
v-model="model.trtmod.finmod.ratchgdat"
maxlength="4"
placeholder="请输入利率调整月日数"
:disabled="
model.trtmod.finmod.ratchgtyp != '4' &&
model.trtmod.finmod.ratchgtyp != '5'
"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="融资天数" prop="trdgrp.rec.tenday">
<c-input
v-model="model.trdgrp.rec.tenday"
style="width: 100%"
:disabled="true"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="宽限期" prop="trtmod.finmod.graday">
<c-input
v-model="model.trtmod.finmod.graday"
style="width: 100%"
:disabled="true"
placeholder="请输入宽限期"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="浮动方式" prop="trtmod.finmod.flttyp">
<c-select
v-model="model.trtmod.finmod.flttyp"
style="width: 100%"
placeholder="请选择浮动方式"
>
<el-option
v-for="item in codes.flttyp"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="浮动值" prop="trtmod.finmod.fltval">
<c-input
v-model="model.trtmod.finmod.fltval"
placeholder="请输入浮动值"
:disabled="model.trtmod.finmod.flttyp == '0'"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="逾期计息方式" prop="trtmod.finmod.ovdinttyp">
<c-select
v-model="model.trtmod.finmod.ovdinttyp"
style="width: 100%"
placeholder="请选择逾期计息方式"
>
<el-option
v-for="item in codes.ovdinttyp"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="罚息比率" prop="trtmod.finmod.ovdintrat">
<c-input
v-model="model.trtmod.finmod.ovdintrat"
placeholder="请输入罚息比率"
style="width: 85%"
:disabled="model.trtmod.finmod.ovdinttyp == '0'"
></c-input
>%
</el-form-item>
</c-col>
<!-- <c-col :span="1">
<el-form-item label="">
</el-form-item>
</c-col> -->
<c-col :span="12">
<el-form-item label="第三方还款方式" prop="trtmod.finmod.acttyp">
<c-select
v-model="model.trtmod.finmod.acttyp"
style="width: 100%"
placeholder="请选择第三方还款方式"
>
<el-option
v-for="item in codes.acttyp1"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="入账机构" prop="trtmod.finmod.accbch">
<c-select
v-model="model.trtmod.finmod.accbch"
style="width: 100%"
placeholder="请选择入账机构"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="第三方还款账号" prop="trtmod.finmod.act3">
<c-select
filterable
allow-create
v-model="model.trtmod.finmod.act3"
style="width: 100%"
:disabled="model.trtmod.finmod.acttyp == ''"
placeholder="请选择第三方还款账号"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.trntyp" data-path=".trntyp"> </span>
</c-col>
<!-- <c-col :span="12">
<el-form-item label="交易性质" prop="trdgrp.rec.trntyp">
<c-input v-model="model.trdgrp.rec.trntyp" maxlength="6" placeholder="请输入交易性质" :disabed="true"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" icon="el-icon-search" @click="onCodselSelbut">
?
</c-button>
</c-col> -->
<c-col :span="24">
<el-form-item label="利息付款账号" prop="trtmod.finmod.intact">
<c-input
v-model="model.trtmod.finmod.intact"
style="width: 100%"
placeholder="请选择利息付款账号"
:disabled="true"
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.oppacc" data-path=".oppacc"> </span>
</c-col>
<!-- <c-col :span="24">
<el-form-item label="对方账号" prop="trdgrp.rec.oppacc">
<c-input v-model="model.trdgrp.rec.oppacc" maxlength="35" placeholder="请输入对方账号"></c-input>
</el-form-item>
</c-col> -->
<c-col :span="24">
<el-form-item label="贸易合同号" prop="trdgrp.rec.mycontno">
<c-input
v-model="model.trdgrp.rec.mycontno"
maxlength="35"
placeholder="请输入贸易合同号"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="外币贷款专户清单" prop="trtp.act">
<c-select
v-model="model.trtp.act"
style="width: 100%"
placeholder="请选择外币贷款专户清单"
:disabled="model.trdgrp.cbs.max.cur === 'CNY'"
>
</c-select>
</el-form-item>
</c-col>
</c-col>
</c-row>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Utils from "~/utils";
import Event from "~/model/Trtopn/Event";
import Ptap from "~/views/Public/Ptap";
export default {
components: { "c-ptap": Ptap },
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
zmqflg: null,
pickerOptions: {
disabledDate(time) {
return time.getDay() === 0 || time.getDay() === 6;
},
},
flag: false,
};
},
watch: {},
methods: {
...Event,
},
created: function () {},
};
</script>
<style></style>