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
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
<template>
<div class="eibs-tab">
<!-- =====================左========================== -->
<el-col :span="11">
<c-col :span="24">
<el-form-item label="Reference" prop="lidgrp.rec.ownref">
<c-fullbox>
<c-input
v-model="model.lidgrp.rec.ownref"
maxlength="16"
placeholder="请输入Reference"
:disabled="true"
></c-input>
<template slot="footer">
<c-button
style="margin: 0 10px 0 10px; padding: 0 12px"
size="small"
type="primary"
@click=""
>
<span style="font-family: '宋体'; font-weight: bold">i</span>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="10">
<el-form-item label="L/C Amount" prop="lidgrp.cbs.nom1.cur">
<!-- <c-select :code="codes.cur" v-model="model.lidgrp.cbs.nom1.cur" style="width:100%" :disabled="true">
</c-select> -->
<c-input :disabled="true" v-model="model.lidgrp.cbs.nom1.cur" maxlength="3" placeholder=""></c-input>
</el-form-item>
</c-col>
<c-col :span="10" >
<el-form-item prop="lidgrp.cbs.nom1.amt" label-width="10px">
<c-input v-model="model.lidgrp.cbs.nom1.amt" placeholder="请输入信用证金额" :disabled="true"></c-input>
</el-form-item>
</c-col>
<c-col :span="4">
<c-checkbox v-model="model.brtp.aammod.addamtflg" :disabled="true">Add. Amount</c-checkbox>
</c-col>
</c-col>
<c-col :span="10">
<el-form-item label="Open Amount" prop="lidgrp.cbs.opn1.cur">
<c-input :disabled="true" v-model="model.lidgrp.cbs.opn1.cur" maxlength="3" placeholder=""></c-input>
</el-form-item>
</c-col>
<c-col :span="10" >
<el-form-item prop="lidgrp.cbs.opn1.amt" label-width="10px">
<c-input :disabled="true" v-model="model.lidgrp.cbs.opn1.amt" placeholder="请输入Balance"></c-input>
</el-form-item>
</c-col>
<c-col :span="4">
<c-checkbox :disabled="true" v-model="model.lidgrp.rec.revflg">Revolving L/C</c-checkbox>
</c-col>
<c-col :span="24">
<el-form-item label="Available with" prop="lidgrp.avbnam">
<c-input :disabled="true" v-model="model.lidgrp.avbnam" placeholder="请输入指定银行"></c-input>
</el-form-item>
</c-col>
<c-col :span="19">
<el-form-item label="Available by" prop="lidgrp.rec.avbby">
<c-select
:code="codes.avbby"
:disabled="true" v-model="model.lidgrp.rec.avbby" style="width:100%" placeholder="请选择Available by">
</c-select>
</el-form-item>
</c-col>
<c-col :span="5" >
<c-checkbox :disabled="true" v-model="model.lidgrp.rec.redclsflg">Red/Green Clause</c-checkbox>
</c-col>
<c-col :span="24">
<el-form-item label="Date Issued" prop="lidgrp.rec.opndat">
<c-date-picker :disabled="true" type="date" v-model="model.lidgrp.rec.opndat" style="width:100%" placeholder="请选择开证日期"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24" >
<el-form-item label="Shipment Date" prop="lidgrp.rec.shpdat">
<c-date-picker :disabled="true" type="date" v-model="model.lidgrp.rec.shpdat" style="width:100%" placeholder="请选择最迟装运日期"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Date of Expiry" prop="lidgrp.rec.expdat">
<c-date-picker :disabled="true" type="date" v-model="model.lidgrp.rec.expdat" style="width:100%" placeholder="请选择到期日/到期地点"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12" >
<el-form-item label="Place of Expiry" prop="lidgrp.rec.expplc" >
<c-input :disabled="true" v-model="model.lidgrp.rec.expplc" maxlength="29" placeholder="请输入到期日/到期地点"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Form of L/C" prop="lidgrp.rec.lcrtyp">
<c-select :code="codes.lcrtyp" :disabled="true" v-model="model.lidgrp.rec.lcrtyp" style="width:100%" placeholder="请选择信用证类型">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Document Reference" prop="brdgrp.rec.ownref">
<c-fullbox>
<c-input :disabled="true" v-model="model.brdgrp.rec.ownref" maxlength="16" placeholder="请输入Document Reference"></c-input>
<template slot="footer">
<c-button
style="margin: 0 10px 0 10px; padding: 0 12px"
size="small"
type="primary"
@click=""
>
<span style="font-family: '宋体'; font-weight: bold">i</span>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Type of Advice" prop="brdgrp.rec.advtyp">
<c-select :code="codes.advtyp" v-model="model.brdgrp.rec.advtyp" style="width:100%" placeholder="请选择Type of Advice">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Payment advised on" prop="brdgrp.rec.advdat">
<c-date-picker
:disabled=" (this.model.brdgrp.rec.advtyp == '750' || this.model.brdgrp.rec.advtyp == 'OTH') "
type="date" v-model="model.brdgrp.rec.advdat" style="width:100%" placeholder="请选择Payment advised on"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Discrep. advised on" prop="brdgrp.rec.disdat">
<c-date-picker
:disabled=" (this.model.brdgrp.rec.advtyp == '754' || this.model.brdgrp.rec.advtyp == 'OTH') "
type="date" v-model="model.brdgrp.rec.disdat" style="width:100%" placeholder="请选择Discrep. advised on"></c-date-picker>
</el-form-item>
</c-col>
</el-col>
<!-- ========================右======================= -->
<el-col :span="11" :offset="1">
<c-col :span="24" >
<el-form-item label="Name" prop="lidgrp.rec.nam">
<c-input
:disabled="true"
v-model="model.lidgrp.rec.nam"
maxlength="40"
placeholder="请输入概要"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Applicant Ref." prop="brdgrp.apl.pts.ref">
<c-input
disabled
v-model="model.brdgrp.apl.pts.ref" maxlength="16" placeholder="请输入申请人" :disabled="true"></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="Name of Party" prop="brdgrp.apl.pts.nam">
<c-input :disabled="true" v-model="model.brdgrp.apl.pts.nam" maxlength="40" placeholder="请输入Name of Party"></c-input>
</el-form-item>
</c-col>
<c-col :span="24" >
<el-form-item label="Beneficiary Ref." prop="brdgrp.ben.pts.ref">
<c-input :disabled="true" v-model="model.brdgrp.ben.pts.ref" maxlength="16" placeholder="请输入受益人"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item prop="brdgrp.ben.pts.nam" label="Name of Party">
<c-input :disabled="true" v-model="model.brdgrp.ben.pts.nam" maxlength="40" placeholder="请输入Name of Party"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Presented by Ref." prop="brdgrp.prb.pts.ref">
<c-input :disabled="true" v-model="model.brdgrp.prb.pts.ref" maxlength="16" placeholder="请输入Reference"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item prop="brdgrp.prb.pts.nam" label="Name of Party">
<c-input :disabled="true" v-model="model.brdgrp.prb.pts.nam" maxlength="40" placeholder="请输入Name of Party"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Name" prop="brdgrp.rec.nam">
<c-input :disabled="true" v-model="model.brdgrp.rec.nam" maxlength="40" placeholder="请输入Name"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Presented by" prop="brdgrp.rec.docprbrol">
<c-select v-model="model.brdgrp.rec.docprbrol"
style="width:100%"
placeholder="请选择Presented by"
:code="codes.docprbrol"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24" >
<el-form-item label="Reference" prop="brdgrp.prb.pts.ref">
<c-input v-model="model.brdgrp.prb.pts.ref" maxlength="16" placeholder="请输入Reference"></c-input>
</el-form-item>
</c-col>
<c-col :span="24" :offset="0">
<el-form-item label="External Key of Address" prop="brdgrp.prb.pts.extkey">
<c-fullbox>
<c-input
v-model="model.brdgrp.prb.pts.extkey"
maxlength="16"
placeholder="请输入External Key of Address"
@keyup.enter.native="showGridPromptDialog('brdgrp.prb.pts.extkey')"
></c-input>
<template slot="footer">
<c-button
style="margin: 0 10px 0 10px; padding: 0 12px"
size="small"
type="primary"
@click=""
>
<span style="font-family: '宋体'; font-weight: bold">i</span>
</c-button>
<c-button
style="margin: 0 0"
size="small"
type="primary"
@click=""
>
获取
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Address Block" prop="brdgrp.prb.pts.adrblk">
<c-input
:rows="4"
disabled type="textarea" v-model="model.brdgrp.prb.pts.adrblk" maxlength="80" show-word-limit placeholder="请输入Address Block" ></c-input>
</el-form-item>
</c-col>
</el-col>
<!-- <c-col :span="24"> -->
<!-- <c-col :span="3">
<c-button size="small" type="primary;width:10%" @click="onSeainf"
>i</c-button
>
</c-col> -->
<!-- </c-col> -->
<!-- <c-col :span="24"> -->
<!-- <c-col :span="24"> -->
<!-- </c-col> -->
<!-- <c-col> -->
<!-- </c-col> -->
<!-- <c-col> -->
<!-- </c-col> -->
<!-- </c-col> -->
<!-- <c-col :span="3">
<c-button size="small" type="primary;width:10%" @click="onSeainf"
>i</c-button
> -->
<!-- <c-col> -->
<!-- <c-col :span="24" :offset="0">
<c-checkbox v-model="model.brtp.setnowflg">Register to Send and Settle Document</c-checkbox>
</c-col> -->
<!-- <c-col :span="3">
<c-button size="small" type="primary" @click="onPrbpDet">
Details
</c-button>
</c-col> -->
<!-- </c-col>
<c-col> -->
<!-- <c-col :span="6" :offset="5">
<c-checkbox v-model="model.brtp.dcrflg">Register to Handle Discrepancies</c-checkbox>
</c-col> -->
<!-- <c-col :span="11" :offset="1">
<el-form-item v-if="1===0" label="名称" prop="brdgrp.prb.namelc">
<c-input type="textarea" v-model="model.brdgrp.prb.namelc" maxlength="40" show-word-limit placeholder="请输入名称" ></c-input>
</el-form-item>
</c-col>
<c-col v-if="1===0" :span="11" :offset="1">
<el-form-item label="Chinese address" prop="brdgrp.prb.dbfadrblkcn">
<c-input type="textarea" v-model="model.brdgrp.prb.dbfadrblkcn" maxlength="40" show-word-limit placeholder="请输入Chinese address" ></c-input>
</el-form-item>
</c-col>
<c-col v-if="1===0" :span="11" :offset="1">
<el-form-item label="地址" prop="brdgrp.prb.adrelc">
<c-input type="textarea" v-model="model.brdgrp.prb.adrelc" maxlength="40" show-word-limit placeholder="请输入地址" ></c-input>
</el-form-item>
</c-col>
</c-col> -->
</div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Litdav/Event";
import Utils from "~/utils";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {};
},
watch:{
"model.brdgrp.rec.advtyp":{
immediate:true,
handler(){
if(this.model.brdgrp.rec.advtyp == '750' ){
this.model.brdgrp.rec.advdat = ' '
this.model.brdgrp.blk.docdisflg= 'X'
}else if(this.model.brdgrp.rec.advtyp == '754'){
this.model.brdgrp.rec.disdat = ' '
// this.model.brdgrp.blk.docdisflg= ""
// this.model.brdgrp.blk.docdis= ''
}else if( this.model.brdgrp.rec.advtyp == 'OTH'){
this.model.brdgrp.rec.advdat = ' '
this.model.brdgrp.rec.disdat = ' '
// this.model.brdgrp.blk.docdisflg= ""
// this.model.brdgrp.blk.docdis= ''
}
}
}
},
methods: { ...Event },
created: function() {}
};
</script>
<style>
</style>