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
<template>
<div class="eContainer">
<c-page title="进口保函赔付">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small"
:validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<!--PD000027 -->
<el-tab-pane label="业务信息" name="ovwp">
<c-content>
<m-ovwp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane :label="$t('commonModels.授信/表外')" name="liacombo">
<c-content>
<div class="eibs-tab">
<c-collapse ref="liacombo" v-model="activeNames" style="margin-bottom: 5px;">
<el-collapse-item :title="$t('commonCollapse.保证金')" name="ccvpan">
<m-ccvpan :model="model" :codes="codes" :xxxsetFlag="true" />
</el-collapse-item>
<el-collapse-item :title="$t('commonCollapse.统一授信')" name="limitbody">
<m-limitbody :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item :title="$t('commonCollapse.表外信息')" name="engp">
<m-engp :model="model" :codes="codes" />
</el-collapse-item>
</c-collapse>
</div>
</c-content>
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="费用/账务" name="setpan">
<c-content>
<m-setmod :model="model" :codes="codes" :docamtEnable="false" />
</c-content>
</el-tab-pane>
<el-tab-pane :label="$t('commonModels.对外担保')" name="cfagit" v-if="model.gidgrp.rec.fingua=='Y'">
<c-content>
<m-cfagit :model="model" :codes="codes" :cfagitConfig="{
vrfpp: {
isShow: model.cfagit.vrfflg == 'X' && model.cfagit.cfaflg == '5',
disabled: true
},
dclpp: {
isShow: model.cfagit.dclflg == 'X' && model.cfagit.cfaflg == '5',
disabled: false
},
}">
<el-collapse-item :title="$t('commonCollapse.对外担保数据采集')" name="cfap">
<m-cfap :model="model" :codes="codes" />
</el-collapse-item>
</m-cfagit>
</c-content>
</el-tab-pane>
<el-tab-pane label="外管信息" name="boppay" v-if="getWinBopflg">
<c-content>
<m-boppay :codes="codes" :model="model"/>
</c-content>
</el-tab-pane>
<el-tab-pane :label="$t('commonModels.跨境人民币')" name="rmbbop">
<c-content>
<m-rmbbop :codes="codes" :model="model" ref="rmbbop"></m-rmbbop>
</c-content>
</el-tab-pane>
<el-tab-pane label="付款报文" name="msdetail" v-if="model.gcdgrp.rec.frepayflg!='C'&&(
(model.gidgrp.cbs.opn1.cur=='CNY'&&model.cmtflg == 'P'&&model.gidgrp.rec.cmtflg=='X'&&pacs.length!=0)||
(model.gidgrp.cbs.opn1.cur!='CNY'&&model.swftyp===''&&pacs.length!=0)
)">
<c-content>
<m-mesdetail :model="model" :codes="codes" :pacs="pacs" :spcs="spcs"/>
</c-content>
</el-tab-pane>
<el-tab-pane :label="$t('commonModels.统一名单')" name="usrmd">
<c-content>
<m-usrmd :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!-- PD000529 -->
<el-tab-pane label="报文/面函" name="docpan">
<c-content>
<m-docpan :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<!-- 底部按钮 -->
<c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash" ref="commonBtn"
@handleSureWarning="handleSureWarning"></c-function-btn>
</c-page>
</div>
</template>
<script>
import Api from "~/service/Api";
import event from "../event";
import operationFunc from "~/mixin/operationFunc";
import commonDepend from "~/mixin/commonDepend";
import CodeTable from "~/config/CodeTable";
import Check from "../model/check";
import Default from "../model/default";
import buildFn from '../event/buildCommons.js';
import Gitset from "../model/index";
import Ovwp from "./Ovwp";
import MesDetail from "./MesDetail"
import Cnyp1 from "./Cnyp1";
import Cfap from "./Cfap";
import Rmbbop from "~/components/business/rmb/rmbbop/views";
import Cfagit from "~/components/business/Cfagit/views";
import Ccvpan from "~/components/business/ccvpan/views";
import Limitbody from "~/components/business/limitbody/views";
import Setmod from "~/components/business/setmod/views";
import Docpan from "~/components/business/docpan/views";
import Engp from "~/components/business/engp/views";
import Usrmd from "~/components/business/Usrmd/views";
import Boppay from "~/components/business/Boppay/views";
const tabNameToRulePathMapping = {
cips: "cipmod.cips"
};
export default {
name: "Gitset",
components: {
//界面
"m-cnyp1": Cnyp1,
"m-cfap": Cfap,
"m-ovwp": Ovwp,
// "m-addbcb": Addbcb,
//公共组件
"m-ccvpan": Ccvpan,
"m-limitbody": Limitbody,
"m-setmod": Setmod,
"m-docpan": Docpan,
"m-engp": Engp,
"m-rmbbop": Rmbbop,
"m-cfagit": Cfagit,
"m-usrmd": Usrmd,
"m-mesdetail": MesDetail,
"m-boppay": Boppay,
},
provide() {
return {
root: this,
};
},
mixins: [operationFunc, event, commonDepend, Default, buildFn],
computed: {
rawRules() {
return Check.apply(this);
},
},
data() {
return {
tabVal: "ovwp",
trnName: "gitset",
model: new Gitset().data,
codes: { ...CodeTable },
activeNames: ["ccvpan", "limitbody", "engp"],
rules: {},
};
},
created() {
this.rules = this.rawRules;
},
methods: {},
computed: {
pacs() {
const pa = [];
const setgll = this.model.setmod.setglg.setgll;
for (let i = 0; i < setgll.length; i++) {
const setg = setgll[i];
// 765和202页面出现条件(费用/账务页面:结算,处理方式是PAC时,756和202页面才能显示)
if (setg.dsp === "PAC") {
const temp = [];
temp.push(setg.rol);
temp.push(setg.acccur);
temp.push(setg.fmtaccamt);
this.model.cipmodVo.dafnzh = setg.act
if (this.model.cmtflg == 'P') {
pa.push({
idx: i,
title: "cips",
name: "cips",
type: "cips"
});
}else{
pa.push({
idx: i,
title: "头寸调拨(MT202 " + temp.join(" ") + ")",
name: "det202cv_" + temp.join("_"),
type: "202"
});
if(this.model.setmod.setglg.setgll[i].setgrp.snd756.ptainr != ''){
pa.push({
idx: i,
title: "通知付款(MT756 " + temp.join(" ") + ")",
name: "det756_" + temp.join("_"),
type: "756"
});
}
}
}
}
// if (pa.length !== 0) {
// tabNameToRulePathMapping[pa[0].name] =
// "setmod.setglg.setgll(2).sespay.det756";
// if (this.model.cmtflg != 'P') {
// tabNameToRulePathMapping[pa[1].name] =
// "setmod.setglg.setgll(2).sespay.det202cv";
// }
// }
console.log("pa------>", pa)
return pa;
},
spcs() {
const sp = [];
const setgll = this.model.setmod.setglg.setgll;
for (let i = 0; i < setgll.length; i++) {
const setg = setgll[i];
if ((this.model.gcdgrp.rec.frepayflg!='C'&&this.model.gidgrp.cbs.opn1.cur=='CNY')
&&(setg.dsp === "ARC"||setg.dsp === "SPC")) {
const reg20121 = /^\d{6}2120\d{6}1$/;
const reg20122 = /^\d{6}2120\d{6}2$/;
const reg21491 = /^\d{6}2149\d{6}1$/;
const reg21492 = /^\d{6}2149\d{6}2$/;
const reg21493 = /^\d{6}2149\d{6}3$/;
if(reg20121.test(setg.act)){
this.model.transOrderVo.kfr = "国结系统结算款项";
}
if(reg20122.test(setg.act)){
this.model.transOrderVo.kfr = "国结系统结算款项(国内)";
}
if(reg21491.test(setg.act)){
this.model.transOrderVo.kfr = "国结系统汇入汇出款";
}
if(reg21492.test(setg.act)){
this.model.transOrderVo.kfr = "待结转国结融资款项";
}
if(reg21493.test(setg.act)){
this.model.transOrderVo.kfr = "待结转国结其他款项";
}
sp.push({
idx: i
});
this.model.transOrderVo.fkzh = setg.act;
}else{
this.model.transOrderVo.fkzh = "";
}
}
return sp;
},
//判断收支申报开关是否打开
getWinBopflg() {
return window.sessionStorage.SW_BOPFLG !='N';
},
},
watch: {
"model.docpan.doceot"() {
let arr = this.model.docpan.doceot;
this.model.mt769SndFlg = '';
arr.forEach(item => {
if (item.id.substr(0, 7) == "TRNAPL1") {
if (item.cortyp == "SWT" && (item.adrbicaut == 'A' || item.adrbicaut == 'S')) {
this.model.mt769SndFlg = 'X';
}
}
})
if (this.model.mt769SndFlg == 'X') {
this.model.gidgrp.rec.reddat = new Date();
} else {
this.model.gidgrp.rec.reddat = '';
}
}
},
mounted() {
console.log("进入gitset交易");
let params = {
transName: this.trnName,
gcdgrp: {
rec: {
inr: this.$route.query.inr || ''
}
},
gidgrp: {
rec: {
inr: this.$route.query.gidinr || ''
}
},
};
this.init(params);
}
};
</script>
<style>
</style>