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
<template>
<div class="eibs-tab">
<el-row>
<!-- ==================左边================ -->
<!-- S0000076 : 头寸调拨业务参考号 -->
<c-col :span="12" style="padding-right: 20px">
<c-form-item :label="$t('fttpcm.头寸调拨业务参考号')" prop="ftdgrp.rec.ownref">
<c-fullbox>
<c-input v-model="model.ftdgrp.rec.ownref" maxlength="16"></c-input>
<template slot="footer">
<c-button size="small" style="margin-left: 5px" type="primary"
@click="getOwnref">
获取
</c-button>
</template>
</c-fullbox>
</c-form-item>
</c-col>
<!-- S0000077 : 名称 -->
<c-col :span="12">
<c-form-item label=名称 prop="ftdgrp.rec.nam">
<c-input v-model="defaultNam950" maxlength="40" disabled></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<el-divider></el-divider>
</c-col>
<c-col :span="12">
<!-- S0000080 : 资金部负责人 -->
<c-col :span="24">
<c-form-item
:label="$t('fttp.资金部负责人')"
prop="ftdgrp.rec.usr"
>
<c-fullbox>
<c-input v-model="model.ftdgrp.rec.usr" maxlength="8"></c-input>
<template slot="footer">
<c-button size="small" style="margin-left: 5px" type="primary">
i
</c-button>
</template>
</c-fullbox>
</c-form-item>
</c-col>
<!-- S0000088 : 清算中心负责人 -->
<c-col :span="24">
<c-form-item
:label="$t('fttp.清算中心负责人')"
prop="ftdgrp.rec.usr"
>
<c-fullbox>
<c-input v-model="model.ftdgrp.rec.usr" maxlength="8" placeholder="请输入清算中心负责人"></c-input>
<template slot="footer">
<c-button size="small" style="margin-left: 5px" type="primary">
i
</c-button>
</template>
</c-fullbox>
</c-form-item>
</c-col>
<!-- S0000083 : 头寸调拨金额 -->
<c-col :span="24">
<c-col :span="10">
<c-form-item
:label="$t('fttp.头寸调拨金额')"
prop="ftdgrp.cbs.max.cur"
>
<c-select-cur
v-model="model.ftdgrp.cbs.max.cur"
style="width: 100%"
dbCode="curtxt">
</c-select-cur>
<!-- </c-select> -->
</c-form-item>
</c-col>
<c-col :span="14">
<c-form-item label-width="20px" prop="ftdgrp.cbs.max.amt">
<c-input-currency
v-model="model.ftdgrp.cbs.max.amt"
:currency="model.ftdgrp.cbs.max.cur"
></c-input-currency>
</c-form-item>
</c-col>
</c-col>
<!-- S0000084 : 调拨日期 -->
<c-col :span="24">
<c-form-item
:label="$t('fttp.调拨日期')"
prop="ftdgrp.rec.opndat"
>
<c-date-picker
type="date"
v-model="model.ftdgrp.rec.opndat"
style="width: 100%"
></c-date-picker>
</c-form-item>
</c-col>
<!-- S0000085 : 起息日 -->
<c-col :span="24">
<c-form-item :label="$t('fttp.起息日')" prop="ftdgrp.rec.valdat">
<c-date-picker
type="date"
v-model="model.ftdgrp.rec.valdat"
style="width: 100%"
></c-date-picker>
</c-form-item>
</c-col>
<!-- S0000025 : 备注 -->
<c-col :span="24">
<c-form-item :label="$t('fttp.备注')" prop="ftdgrp.blk.remark">
<c-input
type="textarea"
v-model="model.ftdgrp.blk.remark"
:rows="3"
maxlength="35"
show-word-limit
></c-input>
</c-form-item>
</c-col>
<!---beneficiary受益人-->
<c-col :span="24">
<el-card class="box-card">
<c-ptap :model="model" :requiredExtkey="true" :disabledExtkey="false" :disabled="false"
:isAdrblk="true" :haveAdrLabel="true"
:isShowCard="false" :argadr="{title: '头寸调拨受益人',grp: 'ftdgrp', rol: 'ben',}"
:label="{labelExtkey:'头寸调拨受益人',labelNam:'名称',labelAdrblk:'地址'}" ptytyp="C">
</c-ptap>
</el-card>
</c-col>
<!-- <c-col :span="24">
<c-form-item
:label="$t('fttp.受益人')"
prop="ftdgrp.ben.pts.extkey"
>
<c-fullbox>
<c-input
v-model="model.ftdgrp.ben.pts.extkey"
maxlength="34"
></c-input>
<template slot="footer">
<c-button size="small" style="margin-left: 5px" type="primary">
i
</c-button>
<c-button size="small" style="margin-left: 5px" type="primary">
详情
</c-button>
</template>
</c-fullbox>
</c-form-item>
</c-col> -->
<c-col :span="24">
<c-form-item prop="ftdgrp.ben.pts.nam">
<c-input
v-model="model.ftdgrp.ben.pts.nam"
maxlength="40"
></c-input>
</c-form-item>
</c-col>
<!-- S0000104 : 报文类型 -->
<c-col :span="24">
<c-form-item :label="$t('fttp.报文类型')" prop="fttp.msgtyp">
<c-select
v-model="model.fttp.msgtyp"
:code="codes.swftyp1"
style="width: 100%"
>
</c-select>
</c-form-item>
</c-col>
</c-col>
<c-col :span="12">
<!-- ==================右边================ -->
<!-- <c-col :span="24">
<c-form-item
:label="$t('fttp.头寸调出行')"
prop="ftdgrp.tro.pts.ref"
>
<c-input
v-model="model.ftdgrp.tro.pts.ref"
maxlength="20"
></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="" prop="ftdgrp.tro.pts.extkey">
<c-fullbox>
<c-input
v-model="model.ftdgrp.tro.pts.extkey"
maxlength="8"
></c-input>
<template slot="footer">
<c-button size="small" style="margin-left: 5px" type="primary">
i
</c-button>
<c-button size="small" style="margin-left: 5px" type="primary">
详情
</c-button>
</template>
</c-fullbox>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="" prop="ftdgrp.tro.pts.adrblk">
<c-input
type="textarea"
v-model="model.ftdgrp.tro.pts.adrblk"
:rows="3"
maxlength="35"
show-word-limit
></c-input>
</c-form-item>
</c-col> -->
<!-- S0000078 : 头寸调出行 -->
<c-col :span="24">
<el-card class="box-card">
<c-ptap :model="model" :requiredExtkey="true" :disabledExtkey="false" :disabled="false"
:isAdrblk="true" :haveAdrLabel="true"
:isShowCard="false" :argadr="{title: '头寸调出行',grp: 'ftdgrp', rol: 'tro',}"
:label="{labelExtkey:'头寸调出行',labelNam:'名称',labelAdrblk:'地址'}" ptytyp="B">
</c-ptap>
</el-card>
</c-col>
<c-col :span="24">
<c-form-item label="" prop="fttp.troact">
<c-select
v-model="model.fttp.troact"
:code="[{ label: '7026141140101010009', value: '1' }]"
style="width: 100%"
>
</c-select>
</c-form-item>
</c-col>
<!--头寸调入行Short Position Bank-->
<c-col :span="24">
<el-card class="box-card">
<c-ptap :model="model" :requiredExtkey="true" :disabledExtkey="false" :disabled="false"
:isAdrblk="true" :haveAdrLabel="true"
:isShowCard="false" :argadr="{title: '头寸调入行',grp: 'ftdgrp', rol: 'tri',}"
:label="{labelExtkey:'头寸调入行',labelNam:'名称',labelAdrblk:'地址'}" ptytyp="B">
</c-ptap>
</el-card>
</c-col>
<!-- <c-col :span="24">
<c-form-item
label="头寸调入行"
prop="fttp.trop.ptsget.sdamod.dadsnd"
>
<c-input v-model="model.fttp.trop.ptsget.sdamod.dadsnd"></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item prop="ftdgrp.tri.pts.extkey">
<c-fullbox>
<c-input
v-model="model.ftdgrp.tri.pts.extkey"
maxlength="16"
></c-input>
<template slot="footer">
<c-button size="small" style="margin-left: 5px" type="primary">
i
</c-button>
<c-button size="small" style="margin-left: 5px" type="primary">
详情
</c-button>
</template>
</c-fullbox>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item prop="ftdgrp.tri.pts.adrblk">
<c-input
type="textarea"
v-model="model.ftdgrp.tri.pts.adrblk"
:rows="3"
maxlength="35"
show-word-limit
></c-input>
</c-form-item>
</c-col> -->
<c-col :span="24">
<c-form-item prop="fttp.triact">
<c-select
v-model="model.fttp.triact"
:code="[{ label: '7026141140101010009', value: '1' }]"
style="width: 100%"
>
</c-select>
</c-form-item>
</c-col>
</c-col>
</el-row>
</div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import event from "../event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event,commonProcess],
data() {
return {};
},
computed: {
defaultNam950: function () {
let amount = this.moneyFormat(this.model.ftdgrp.cbs.max.amt, this.model.ftdgrp.cbs.max.cur);
let nam = this.getCodelabel(this.model.ftdgrp.rec.fttyp, "ftt_fttyp") + ","
+ this.model.ftdgrp.cbs.max.cur + " " + amount
this.model.ftdgrp.rec.nam = nam;
return nam;
},
},
methods: { //获取码值
getCodelabel(value, codenam) {
const codeobj = this.codes[codenam].find(obj => obj.value === value)
return codeobj ? codeobj.label : value;
},},
created: function () {},
}
</script>
<style></style>