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
<template>
<div class="eibs">
<c-row>
<!-- left -->
<c-col :span="12" style="padding-right: 20px;">
<!-- 被授权的银行当事人 -->
<c-col :span="24">
<el-form-item label="被授权的银行当事人" prop="ltdgrp.rec.avbwth">
<c-select
v-model="model.ltdgrp.rec.avbwth"
style="width: 100%"
placeholder="请选择被授权的银行当事人"
:code="codes.avbwth"
@change="avbwthEvent"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<c-ptap
v-if="model.ltdgrp.rec.avbwth!='O'"
:model="model"
:argadr="{
title: '',
grp: 'ltdgrp',
rol: 'avt',
}"
:noRef="true"
:onlySearch="true"
@onSeainf="onSeainf"
@onAplpDet="onAvbpDet"
:disabled="model.ltdgrp.rec.avbwth=='A'||model.ltdgrp.rec.avbwth=='C'||model.ltdgrp.rec.avbwth=='I'"
>
</c-ptap>
</c-col>
<c-col :span="24">
<el-form-item label="名称地址" prop="ltdgrp.avt.pts.adrblk">
<c-input
type="textarea"
:rows="3"
v-model="model.ltdgrp.avt.pts.adrblk"
maxlength="140"
show-word-limit
placeholder="请输入名称地址"
:disabled="model.ltdgrp.rec.avbwth != 'O'"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="信用证兑付方式" prop="ltdgrp.rec.avbby">
<c-select
v-model="model.ltdgrp.rec.avbby"
style="width: 100%"
placeholder="请选择信用证兑付方式"
:code="codes.avbby"
@change="avbbykeyEvent"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="延期付款指示"
prop="ltdgrp.blk.defdet"
>
<c-input
type="textarea"
:rows="3"
v-model="model.ltdgrp.blk.defdet"
maxlength="35"
show-word-limit
placeholder="请输入延期付款指示"
:disabled="defdetFlag"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="汇票期限"
prop="ltdgrp.blk.dftat"
>
<c-input
type="textarea"
:rows="3"
v-model="model.ltdgrp.blk.dftat"
maxlength="35"
show-word-limit
placeholder="请输入汇票期限"
:disabled="blkDftatFlag"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-ptap
:model="model"
:argadr="{
title: '付款人',
grp: 'ltdgrp',
rol: 'drw',
}"
:noRef="true"
:onlySearch="false"
@onSeainf="onSeainf"
@onAplpDet="onDrwpDet"
:disabled="blkDftatFlag"
:disabledExtkey="model.ltdgrp.rec.avbby=='D'||model.ltdgrp.rec.avbby=='M'||model.ltdgrp.rec.avbby==''"
>
</c-ptap>
</c-col>
<!-- 从...发送 -->
<c-col :span="24">
<el-form-item label="从...发送" prop="ltdgrp.rec.shpfro">
<c-input
type="textarea"
show-word-limit
v-model="model.ltdgrp.rec.shpfro"
maxlength="65"
placeholder="请输入从...发送"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="始发(航空)站" prop="ltdgrp.rec.porloa">
<c-input
type="textarea"
v-model="model.ltdgrp.rec.porloa"
maxlength="65"
show-word-limit
placeholder="请输入始发(航空)站"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="终点(航空)站"
prop="ltdgrp.rec.pordis"
>
<c-input
type="textarea"
v-model="model.ltdgrp.rec.pordis"
maxlength="65"
show-word-limit
placeholder="请输入终点(航空)站"
></c-input>
</el-form-item>
</c-col>
<!-- 最终目的地 -->
<c-col :span="24">
<el-form-item label="最终目的地" prop="ltdgrp.rec.shpto">
<c-input
type="textarea"
v-model="model.ltdgrp.rec.shpto"
maxlength="65"
show-word-limit
placeholder="请输入最终目的地"
></c-input>
</el-form-item>
</c-col>
<!-- 装运期限 -->
<c-col :span="24">
<el-form-item label="装运期限" prop="ltdgrp.blk.shpper">
<c-input
type="textarea"
v-model="model.ltdgrp.blk.shpper"
maxlength="65"
show-word-limit
placeholder="请输入装运期限"
></c-input>
</el-form-item>
</c-col>
</c-col>
<!-- right -->
<c-col :span="12" style="padding-left: 20px;">
<c-col :span="24">
<el-form-item label="混合支付" prop="ltdgrp.blk.mixdet">
<c-input
type="textarea"
:rows="4"
v-model="model.ltdgrp.blk.mixdet"
maxlength="140"
show-word-limit
placeholder="请输入混合支付"
:disabled="model.ltdgrp.rec.avbby != 'M'"
></c-input>
</el-form-item>
</c-col>
<!-- Days of 交单期 -->
<c-col :span="24">
<el-form-item label="交单期" prop="ltdgrp.rec.prepers18">
<c-fullbox>
<c-input
v-model.number="model.ltdgrp.rec.prepers18"
placeholder="请输入交单期"
disabled
></c-input>
<template slot="footer">
<c-button
size="small"
type="primary"
@click="showGridPromptDialog('lttp.detp', null, null,{TXT:
'ltdgrp.rec.prepertxts18'}, {TXT: false},'doxpDialog')"
disabled
>
...
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="" prop="ltdgrp.rec.prepertxts18">
<c-input
v-model="model.ltdgrp.rec.prepertxts18"
placeholder="请输入"
disabeld
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="收费附加详情"
prop="ltdgrp.blk.feetxt"
>
<c-fullbox>
<c-input
type="textarea"
:rows="6"
v-model="model.ltdgrp.blk.feetxt"
maxlength="210"
show-word-limit
placeholder="请输入收费附加详情"
></c-input>
<template slot="footer">
<c-button
size="small"
type="primary"
@click="showGridPromptDialog('lttp.charia.buttxmsel', null, null,{TXT:
'ltdgrp.blk.feetx'}, {TXT: false},'doxpDialog')"
>
...
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<!-- Own Charges Borne by -->
<c-col :span="24">
<el-form-item label="收费条款" prop="ltdgrp.rec.chato">
<c-select
v-model="model.ltdgrp.rec.chato"
style="width: 100%"
placeholder="请选择收费条款"
:code="codes.chadet"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="国家或地区代码" prop="ltdgrp.rec.stacty">
<c-select
v-model="model.ltdgrp.rec.stacty"
style="width: 100%"
placeholder="请选择国家或地区代码"
:code="codes.ctytxt"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="最长期限" prop="ltdgrp.rec.tenmaxday">
<c-input
v-model.number="model.ltdgrp.rec.tenmaxday"
placeholder="请输入最长期限"
:disabled="model.ltdgrp.rec.avbby == 'P'"
@keyup.enter.native="
defaultFunction(
'ltdgrp.rec.tenmaxday',
model.ltdgrp.rec.tenmaxday
)
"
></c-input>
</el-form-item>
</c-col>
</c-col>
</c-row>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Lttame/Event"
import Ptap from "~/views/Public/Ptap";
export default {
inject: ["root"],
components: { "c-ptap": Ptap },
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {};
},
methods: {
...Event,
avbwthEvent(){
if (this.model.ltdgrp.rec.avbwth != 'A'||this.model.ltdgrp.rec.avbwth != 'O') {
this.model.ltdgrp.avb.pts.extkey = ''
this.model.ltdgrp.blk.avbwthtxt = ''
}
},
avbbykeyEvent() {
if (this.model.ltdgrp.rec.avbby == 'P') {
this.model.ltdgrp.rec.tenmaxday = 0;
this.model.ltdgrp.blk.defdet = '';
}
if (
this.model.ltdgrp.rec.avbby == 'D'||
this.model.ltdgrp.rec.avbby == 'M'
) {
this.model.ltdgrp.blk.defdet = ''; //汇票期限置空
this.model.ltdgrp.drw.pts.extkey = ''; //付款人置空
this.model.ltdgrp.drw.pts.adrblk = ''; //名称地址置空.pts.adrblk
}
this.executeCheck("ltdgrp.rec.avbby").then((res) => {
if (res.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, res.data);
}
});
},
},
computed: {
avbFlag: {
get() {
return (
this.model.ltdgrp.rec.avbwth == 'A' ||
this.model.ltdgrp.rec.avbwth == 'S'
)
},
},
defdetFlag: {
get() {
return (
this.model.ltdgrp.rec.avbby != 'D' &&
this.model.ltdgrp.rec.avbby != 'N'
)
},
},
blkDftatFlag: {
get() {
return (
this.model.ltdgrp.rec.avbby == 'D' ||
this.model.ltdgrp.rec.avbby == 'M' ||
this.model.ltdgrp.rec.avbby == ''
)
},
},
},
created: function () {},
watch: {
"model.ltdgrp.avb.pts.adrblk": {
handler(val, oldVal) {
this.model.ltdgrp.blk.avbwthtxt = val;
},
immediate: true,
},
},
}
</script>
<style>
</style>