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
<template>
<div class="eibs-tab">
<c-col :span="24">
<c-col :span="24" style="text-align: right">
<el-button
type="primary"
icon="el-icon-search"
size="small"
@click="onSearch()"
>查询
</el-button>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="" label-width="0" prop="ECIFList">
<c-table :columnsConfig="columns" :list="ECIFList">
</c-table>
</el-form-item>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
export default {
name: "ECIF",
inject: ["root"],
props: ["model"],
data() {
return {
ECIFList: [],
operate: "",
operateIdx: 0,
columns: [
{ label: '客户号', prop: 'orgno', width: 'auto' },
{ label: '客户类别', prop: 'orgclasscd', width: 'auto' },
{ label: '客户名称', prop: 'orglegalname', width: 'auto' },
{ label: '英文名称', prop: 'ennam', width: 'auto' },
{ label: '所属国家地区代码', prop: 'regcountry', width: 'auto' },
{ label: '组织机构代码', prop: 'nationalorgcode', width: 'auto' },
{ label: '组织机构代码有效日期', prop: 'nationalorgeffectdt', width: 'auto' },
{ label: '营业执照号', prop: 'buslicenceno', width: 'auto' },
{ label: '外汇许可证号', prop: 'foreignlicenceno', width: 'auto' },
{ label: '企业外管代码', prop: 'enterexternalno', width: 'auto' },
{ label: '进出口经营权许可证书', prop: 'foreigntradelicence', width: 'auto' },
{ label: '是否自贸区客户', prop: 'freetradecustflag', width: 'auto' },
{ label: '是否正式客户', prop: 'orglifecyclecd', width: 'auto' },
{ label: '所属地区代码', prop: 'regareacode', width: 'auto' },
{ label: '角色的ECIF客户号', prop: 'ecifno', width: 'auto' },
{ label: '是否为光大股东客户', prop: 'isstockholder', width: 'auto' },
{ label: '是否为光大集团关联单位', prop: 'isrelated', width: 'auto' },
{ label: '客户状态', prop: 'orgstate', width: 'auto' },
{ label: '是否为NRA账户', prop: 'isnra', width: 'auto' },
{ label: 'SWIFT编号', prop: 'swiftno', width: 'auto' },
{ label: '统一社会信用代码', prop: 'unifiedsocialcreditcode', width: 'auto' },
{ label: '金融机构类型', prop: 'finorgtype', width: 'auto' },
],
//客户类别
orgclasscd: [
{ label: "对公", value: "1" },
{ label: "同业", value: "2" },
],
//‘是/否’标志
//是否自贸区客户,是否正式客户,是否为光大股东客户,是否为光大集团关联单位,是否为NRA账户
transIf: [
{ label: "否", value: "0" },
{ label: "是", value: "1" },
{ label: "", value: "空"},
],
//客户状态
orgstate: [
{ label: "有效", value: "0" },
{ label: "无效", value: "1" },
{ label: "睡眠", value: "2" },
],
};
},
created() {
},
methods: {
init() {
this.onSearch()
// const ptyinr = this.$route.query.inr;
// Api.post(`/manager/pty/getPtyListInfoByEcif0904`, {"ptyinr": ptyinr}).then((res)=> {
// if (res.respCode == "AAAAAA") {
// this.$set(this, "ECIFList", res.data.res)
// } else {
// this.$notify.error(res.errorMsg)
// }
// });
},
onSearch() {
const ptyinr = this.$route.query.inr;
Api.post(`/manager/pty/getPtyListInfoByEcif0904`, {"ptyinr": ptyinr}).then((res)=> {
if (res.respCode == "AAAAAA") {
if (res.data.cod == "Y"){
this.ECIFList = res.data.res
this.$notify.success({
title: '成功:',
message: res.data.msg,
dangerouslyUseHTMLString: true
});
const list = res.data.res
Object.keys(list).forEach((item) => {
let obj = list[item]
//orgclasscd映射
let codTb = this.orgclasscd.filter((i) => {
return i.value == obj.orgclasscd
})
if(codTb.length > 0){
obj.orgclasscd = codTb[0].label
}
//freetradecustflag映射
codTb = this.transIf.filter((i) => {
return i.value == obj.freetradecustflag
})
if(codTb.length > 0){
obj.freetradecustflag = codTb[0].label
}
//orglifecyclecd
codTb = this.transIf.filter((i) => {
return i.value == obj.orglifecyclecd
})
if(codTb.length > 0){
obj.orglifecyclecd = codTb[0].label
}
//isrelated
codTb = this.transIf.filter((i) => {
return i.value == obj.isrelated
})
if(codTb.length > 0){
obj.isrelated = codTb[0].label
}
//isnra
codTb = this.transIf.filter((i) => {
return i.value == obj.isnra
})
if(codTb.length > 0){
obj.isnra = codTb[0].label
}
//orgstate
codTb = this.orgstate.filter((i) => {
return i.value == obj.orgstate
})
if(codTb.length > 0){
obj.orgstate = codTb[0].label
}
//isstockholder
codTb = this.transIf.filter((i) => {
return i.value == obj.isstockholder
})
if(codTb.length > 0){
obj.isstockholder = codTb[0].label
}
// enterexternalno映射
codTb = this.transIf.filter((i) => {
return i.value == obj.enterexternalno
})
if(codTb.length > 0){
obj.enterexternalno = codTb[0].label
}
})
}else{
this.ECIFList = null
this.$notify.error({
title: '提示:',
message: res.data.msg,
dangerouslyUseHTMLString: true
});
}
}
})
},
cancel() {
this.handleClose();
},
handleClose(done) {
this.adrDialog = false;
if (done && typeof done === "function") {
done();
}
},
},
};
</script>
<style>
.paginationLable {
display:none;
}
</style>