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
<template>
<div class="eibs-tab">
<c-row>
<c-col :span="12" style="padding-right: 20px;">
<!-- ================左边================ -->
<!-- <c-col :span="24" style="margin-bottom: 35px">
<c-istream-table
ref="table"
:list="model.liaall.tenstm.rows || []"
:columns="stmData.columns"
:showSelection="true"
prop="liaall.tenstm"
>
</c-istream-table>
</c-col> -->
<c-col :span="24">
<c-ptap-commons :cols="65" :rows="20" :minRows="8" :maxRows="8" :model="model"
:extCodes="['btdgrp','blk']"
lastModel="setinsbt"
title="Settlement Instructions">
</c-ptap-commons>
</c-col>
<!-- SG000054 : Less comm. -->
<c-col :span="24">
<el-form-item label="Less comm." prop="btdgrp.rec.lescom">
<c-input-currency v-model="model.btdgrp.rec.lescom" ></c-input-currency>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12" style="pedding-left: 20px;">
<!-- =================右边================== -->
<c-col :span="24" >
<el-form-item class="checkbox-left">
<c-checkbox
v-model="model.rmbclm.clmrmbflg"
true-label="X"
false-label="">{{$t('Send MT 742')}}</c-checkbox>
</el-form-item>
</c-col>
<c-col :span="24" class="custom-box-wrap">
<div style="width: 280px;">
<el-form-item label="Doc Amount part" prop="btdgrp.cbs.opn2.cur">
<c-select-cur
v-model="model.btdgrp.cbs.opn2.cur"
disabled
style="width: 100%"
placeholder="请选择币种"
dbCode="curtxt"
sort="SRT"
></c-select-cur>
</el-form-item>
</div>
<div style="width: calc(100% - 280px);">
<el-form-item label-width="5px" prop="aamset.utlamt">
<c-input-currency
v-model="model.aamset.utlamt"
:currency="model.btdgrp.cbs.opn2.cur"
:disabled="Number(this.model.btdgrp.cbs.opn2.amt)-Number(0) == 0"
@change="changeUtlamt"
style="width:100%"
placeholder="请输入金额"
></c-input-currency>
</el-form-item>
</div>
</c-col>
<c-col :span="24" class="custom-box-wrap">
<div style="width: 280px;">
<el-form-item label="Add Amount part" prop="btdgrp.cbs.opn2.cur">
<c-select-cur
v-model="model.btdgrp.cbs.opn2.cur"
disabled
style="width: 100%"
placeholder="请选择币种"
dbCode="curtxt"
sort="SRT"
></c-select-cur>
</el-form-item>
</div>
<div style="width: calc(100% - 280px);">
<el-form-item label-width="5px" prop="aamset.utlamt2">
<c-input-currency
v-model="model.aamset.utlamt2"
:currency="model.btdgrp.cbs.opn2.cur"
:disabled="Number(this.model.btdgrp.cbs.opn2.amt)-Number(0) == 0 && !this.model.liaall.tensetmatdat "
@change="changeUtlamt2"
style="width:100%"
placeholder="请输入金额"
></c-input-currency>
</el-form-item>
</div>
</c-col>
<!-- SF000049 : Narrative :77A: -->
<c-col :span="24">
<el-form-item label="Narrative :77A:" prop="nar754">
<!-- 35*20, max 700, view line 4: -->
<c-input type="textarea" v-model="model.nar754"
:rows="4"
maxlength="700" show-word-limit ></c-input>
</el-form-item>
</c-col>
</c-col>
</c-row>
</div>
</template>
<script>
import event from "../event";
import BigNumber from 'bignumber.js';
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
stmData: {
columns: [
'1 1 "Typ" 250',
'2 2 "Dbt" 250',
'3 3 "Cdt" 250',
'4 4 "Cur" 250',
'5 5 "Amt" 250 2 8 1 4',
'6 6 "Mat.Dat." 250 4 7 1',
],
data: [],
},
};
},
methods: {},
created: function() {},
computed: {},
watch:{
"model.setmod.docamt":{
handler(val,oldval){
this.model.aamset.utlamt = new BigNumber(this.model.setmod.docamt).minus(new BigNumber(this.model.aamset.utlamt2))
}
}
}
};
</script>
<style>
</style>