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
import commonFunctions from '~/mixin/commonFunctions.js';
import Api from '~/service/Api';
import Utils from '~/utils';
import moment from "moment";
export default {
mixins: [commonFunctions],
methods: {
//初始化调用
getRolList () {
let docprbrolList = [];
if (this.model.nidgrp.ben.pts.ptainr != "") {
var benobj = {};
benobj.label = "受益人(BEN)";
benobj.value = this.model.nidgrp.ben.pts.rol;
docprbrolList.push(benobj);
}
if (this.model.nidgrp.atb.pts.ptainr != "") {
var atbobj = {};
atbobj.label = "1st Adv. thr. Bank(ATB)";
atbobj.value = this.model.nidgrp.atb.pts.rol;
docprbrolList.push(atbobj);
}
if (this.model.nidgrp.at2.pts.ptainr != "") {
var at2obj = {};
at2obj.label = "1st Adv. thr. Bank(AT2)";
at2obj.value = this.model.nidgrp.at2.pts.rol;
docprbrolList.push(at2obj);
}
if (this.model.nidgrp.adv.pts.ptainr != "") {
var advobj = {};
advobj.label = "通知行(ADV)";
advobj.value = this.model.nidgrp.adv.pts.rol;
docprbrolList.push(advobj);
}
if (this.model.nidgrp.iss.pts.ptainr != "" && this.model.nidgrp.rec.hndtyp == "OC") {
var issobj = {};
issobj.label = "转开行(ISS)";
issobj.value = this.model.nidgrp.iss.pts.rol;
docprbrolList.push(issobj);
}
var prbobj = {};
prbobj.label = "其他交单人(PRB)";
prbobj.value = "PRB";
docprbrolList.push(prbobj);
this.$set(this.codes, 'docprbrolList', docprbrolList);
if (this.model.ncdgrp.rec.docprbrol == "") {
if (this.model.nidgrp.iss.pts.ptainr != "") {
this.model.ncdgrp.rec.docprbrol = "ISS";
}
else if (this.model.nidgrp.adv.pts.ptainr != "") {
this.model.ncdgrp.rec.docprbrol = "ADV";
}
else if (this.model.nidgrp.atb.pts.ptainr != "") {
this.model.ncdgrp.rec.docprbrol = "ATB";
}
else if (this.model.nidgrp.ben.pts.ptainr != "") {
this.model.ncdgrp.rec.docprbrol = "BEN";
}
this.calcPrb();
}
//------------payrolList-------------------
//----BEN 、ISS、ATB、AT2、OWN 除外---
// if (this.model.nidgrp.ada.pts.ptainr != "") {
// var adaobj = new Object();
// adaobj.label = "Adv.Bank APL Side(ADA)";
// adaobj.value = this.model.nidgrp.ada.pts.rol;
// payrolList.push(adaobj);
// }
// if (this.model.nidgrp.adv.pts.ptainr != "") {
// var advobj2 = new Object();
// advobj2.label = "通知行(ADV)";
// advobj2.value = this.model.nidgrp.adv.pts.rol;
// payrolList.push(advobj2);
// }
let payrolList = [];
if (this.model.nidgrp.apl.pts.ptainr != "") {
var aplobj = {};
aplobj.label = "申请人(APL)";
aplobj.value = this.model.nidgrp.apl.pts.rol;
payrolList.push(aplobj);
}
if (this.model.nidgrp.iss.pts.ptainr != "" && this.model.nidgrp.rec.hndtyp == "OT") {
var issobj = {};
issobj.label = "反担保行(ISS)";
issobj.value = this.model.nidgrp.iss.pts.rol;
payrolList.push(issobj);
}
var othobj = {};
othobj.label = "其他赔付人(OTH)";
othobj.value = "OTH";
payrolList.push(othobj);
this.$set(this.codes, 'payrolList', payrolList);
if (this.model.ncdgrp.rec.payrol == "") {
if (this.model.nidgrp.iss.pts.ptainr != "" && this.model.nidgrp.rec.hndtyp == "OT") {
this.model.ncdgrp.rec.payrol = "ISS";
}
if (this.model.nidgrp.ada.pts.ptainr != "") {
this.model.ncdgrp.rec.payrol = "ADA";
}
else if (this.model.nidgrp.apl.pts.ptainr != "") {
this.model.ncdgrp.rec.payrol = "APL";
}
this.calcOth();
}
},
ncdgrpOthRefBlur () {
if (this.model.ncdgrp.rec.payrol == "APL") {
this.model.ncdgrp.apl.pts.ref = this.model.ncdgrp.oth.pts.ref;
}
},
changeRmbflg () {
if (this.isInDisplay) {
return;
}
//2111 控制
if (this.model.spt.inr) {
} else {
if (this.model.nidgrp.cbs.max.cur == "CNY") {
if (this.model.nidgrp.rec.fingua == "Y") {
this.model.rmbbop.rmb2111.rmbflg = "1";
} else {
// if(!this.model.rmbbop.rmb2111.modifySet.includes('rmbflg')) {
this.model.rmbbop.rmb2111.rmbflg = "2";
// }
}
}
// else if(this.model.nidgrp.cbs.max.cur != "" && this.model.nidgrp.cbs.max.cur != "CNY") {
// if(this.model.nidgrp.rec.fingua == "Y") {
// this.model.rmbbop.rmb2111.rmbflg = "";
// } else {
// // if(!this.model.rmbbop.rmb2111.modifySet.includes('rmbflg')) {
// this.model.rmbbop.rmb2111.rmbflg = "2";
// // }
// }
// }
else {
this.model.rmbbop.rmb2111.rmbflg = "2";
}
}
if (this.model.spt.inr) {
} else {
//2123 控制
let cfatyp = this.model.nidgrp.rec.cfaguatyp;
if (cfatyp != null && cfatyp != "") {
cfatyp = cfatyp.slice(0, 2);
}
if (this.model.nidgrp.cbs.max.cur == "CNY") {
if (this.model.nidgrp.rec.opndat < moment("2022-09-01")) {
this.model.rmbbop.rmb2123.rmbflg = "2";
} else if (this.model.nidgrp.rec.fingua == "Y") {
this.model.rmbbop.rmb2123.rmbflg = "1";
} else {
this.model.rmbbop.rmb2123.rmbflg = "2";
}
} else if (this.model.nidgrp.cbs.max.cur != "" && this.model.nidgrp.cbs.max.cur != "CNY") {
if (this.model.nidgrp.rec.opndat < moment("2022-09-01")) {
this.model.rmbbop.rmb2123.rmbflg = "2";
} else if (this.model.nidgrp.rec.fingua == "Y" && cfatyp == '11') {
this.model.rmbbop.rmb2123.rmbflg = "1";
} else {
this.model.rmbbop.rmb2123.rmbflg = "2";
}
} else {
this.model.rmbbop.rmb2123.rmbflg = "2";
}
}
},
ClsflgDefault () {
if (this.$route.query.businessInr) {
return;
}
if (((this.model.setmod.docamt == this.model.ncdgrp.cbs.opn1.amt + this.model.ncdgrp.cbs.opn2.amt) || (this.model.paypsb == ""))
&& Number(this.model.ncdgrp.cbs.opn1.amt) == Number(this.model.ncdgrp.cbs.max.amt)) {
this.model.clsflg = "C"
} else {
this.model.clsflg = "O"
}
},
transOrderDefault () {
//this.model.transOrderVo.kfr = "国结系统结算款项";
this.model.transOrderVo.qxr = new Date();
},
async defaultCipmod () {
let bchswf = '';
let bchnam = '';
let lhanum = '';
let lhanam = '';
const loading = this.loading();
let params = {
transName: "nitset",
userId: window.sessionStorage.userId ? window.sessionStorage.userId : '742549',
branchinr: this.model.nidgrp.rec.branchinr
};
let res = await Api.post('/business/gitset/getCipmodBranch', params);
loading.close();
if (res.respCode === SUCCESS) {
let data = res.data;
if (data != null) {
bchswf = data.bchswf;
bchnam = data.bchnam;
lhanum = data.lhanum;
lhanam = data.lhanam;
}
}
this.model.cipmodVo.staonebch = "EVERCNBJXXX";
this.model.cipmodVo.staonebchnam = "中国光大银行股份有限公司";
this.model.cipmodVo.dafnmc = "国结系统结算款项";
this.model.cipmodVo.fkrkhh = bchswf;
this.model.cipmodVo.fukrhm = bchnam;
this.model.cipmodVo.fkhkhh = bchswf;
this.model.cipmodVo.fkkhmc = bchnam;
this.model.cipmodVo.dddbsh = this.model.nidgrp.rec.ownref;
//this.model.cipmodVo.fkkhzh = this.model.cipmodVo.dafnzh
this.model.transOrderVo.fkhnam = lhanam;
this.model.transOrderVo.fkhnum = lhanum;
this.model.cipmodVo.ddbhao = 'NA';
this.model.cipmodVo.ddmisu = 'NA'
},
calActualMax () {
this.model.actualMax = Number(this.model.ncdgrp.cbs.opn1.amt)
},
}
}
//你可以添加自动default处理