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
<template>
<div class="eibs-tab">
<!-- <c-row> -->
<c-col :span="24">
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<div class="custom-box-wrap">
<div style="width: 280px;">
<el-form-item :label="$t('getopn.保函文本交付')" prop="gidgrp.rec.delori">
<c-select :disabled="
model.gidgrp.rec.purpos == 'ICCO' ||
model.gidgrp.rec.purpos == 'ISCO'
" v-model="model.gidgrp.rec.delori" dbCode="delori" isShowKeyAndLabel style="width: 100%" placeholder="请选择保函文本交付">
</c-select>
</el-form-item>
</div>
<div style="width: calc(100% - 280px);">
<el-form-item label-width="5px" prop="gidgrp.rec.deloritxt">
<c-input :disabled="!(model.gidgrp.rec.delori == 'OTHR' || model.gidgrp.rec.delori == 'COUR')" v-model="model.gidgrp.rec.deloritxt" maxlength="35" placeholder="请输入保函文本交付"></c-input>
</el-form-item>
</div>
</div>
</c-col>
<c-col :span="24">
<el-form-item :label="$t('getopn.发送保函文本')" prop="gidgrp.rec.sndto">
<c-select :rolDscKey="rolDscKey" v-model="model.gidgrp.rec.sndto" style="width: 100%" placeholder="请选择发送保函文本" >
<el-option v-for="item in sndtoList" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item :label="$t('getopn.交付收款人')" prop="gidgrp.rec.delto">
<c-select :disabled="
model.gidgrp.rec.purpos == 'ICCO' ||
model.gidgrp.rec.purpos == 'ISCO'
" v-model="model.gidgrp.rec.delto" style="width: 100%" placeholder="请选择交付收款人" :filterKey="deltoFilterKey" dbCode="delto" @change="handleChangeDelto">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item :rules="[{required:model.gidgrp.rec.delto=='OTHR',message:'必填项',trigger:'change'}]" :label="$t('getopn.交付地址')" prop="gidgrp.blk.deltoadr">
<c-mul-row-input :autosize="{ minRows: 4, maxRows: 4}" :charmod="3" :cols="65" :disabled="model.gidgrp.rec.delto != 'OTHR'" :rows="12" placeholder="请输入交付地址" v-model="model.gidgrp.blk.deltoadr"></c-mul-row-input>
</el-form-item>
</c-col>
<c-col :span="24">
<div class="custom-box-wrap">
<div style="width: calc(100% - 120px);">
<el-form-item v-if="model.gitp.prepermodflg == ''" :label="$t('getopn.演示说明')" prop="gidgrp.blk.preper">
<c-input disabled type="textarea" :rows="7" v-model="model.gidgrp.blk.preper" maxlength="6500" show-word-limit placeholder="请输入演示说明"></c-input>
</el-form-item>
<el-form-item v-if="model.gitp.prepermodflg == 'X'" :label="$t('getopn.演示说明')" prop="gidgrp.blk.atxpreper">
<c-input type="textarea" :rows="7" v-model="model.gidgrp.blk.atxpreper" maxlength="6500" show-word-limit placeholder="请输入演示说明"></c-input>
</el-form-item>
</div>
<div style="width: 100px;margin-left: 10px;display: flex;align-items: flex-start;">
<c-checkbox v-model="model.gitp.prepermodflg" style="margin: 0 0 0 10px" class="checkbox-left" true-label="X" false-label="">Modify Text
</c-checkbox>
</div>
</div>
</c-col>
</c-col>
<c-col :span="12" style="padding-left: 20px">
<c-col :span="24">
<el-form-item :label="$t('getopn.收费条件')" prop="gidgrp.rec.chato">
<c-select v-model="model.gidgrp.rec.chato" style="width: 100%" placeholder="请选择费用承担人" dbCode="chato">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item :label="$t('getopn.收费')" prop="gidgrp.blk.feetxt">
<c-input type="textarea" rows="4" v-model="model.gidgrp.blk.feetxt" maxlength="210" show-word-limit placeholder="请输入收费代码的附加详情"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item :label="$t('getopn.转让条件')" prop="gidgrp.blk.trfcond">
<c-input type="textarea" rows="5" v-model="model.gidgrp.blk.trfcond" maxlength="6630" show-word-limit placeholder="请输入转让条件"></c-input>
</el-form-item>
</c-col>
</c-col>
</c-col>
<!-- </c-row> -->
</div>
</template>
<script>
import event from "../event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
computed: {
rolDscKey() {
this.sndtoList = [];
if (this.model.gidgrp.ben.pts.extkey ) {
this.sndtoList.push({ label: "Beneficiary"+" : "+ (this.model.gidgrp.ben.pts.nam).replace(/\n/g, ' ') , value: "BEN" });
}
if (this.model.gidgrp.apl.pts.extkey) {
this.sndtoList.push({ label: "Applicant"+" : "+ (this.model.gidgrp.apl.pts.nam).replace(/\n/g, ' ') , value: "APL" });
}
if (this.model.gidgrp.iss.pts.extkey){
this.sndtoList.push({ label: "Issuing Bank"+" : "+ (this.model.gidgrp.iss.pts.nam).replace(/\n/g, ' ') , value: "ISS" });
}
if (this.model.gidgrp.con.pts.extkey ){
this.sndtoList.push({ label: "Confirming Bank"+" : "+ (this.model.gidgrp.con.pts.nam).replace(/\n/g, ' ') , value: "CON" });
}
if (this.model.gidgrp.at2.pts.extkey ){
this.sndtoList.push({ label: "2nd Adv.thr.Bank"+" : "+ (this.model.gidgrp.at2.pts.nam).replace(/\n/g, ' ') , value: "AT2" });
}
let modifyList = this.model.gidgrp.rec.modifySet
if (!modifyList || (!!modifyList && !modifyList.includes('sndto'))) {
if(this.model.gidgrp.rec.hndtyp=="FA"){
for(let i = 0; i < this.sndtoList.length; i++){
if(this.sndtoList[i].value=='BEN'){
this.model.gidgrp.rec.sndto="BEN"
}
}
}
}
},
deltoFilterKey() {
let filterKey = ["OTHR"];
if ( this.model.gidgrp.ben.pts.extkey ) {
filterKey.push("BENE");
}
if (
this.model.gidgrp.apl.pts.adrblk != null &&
this.model.gidgrp.apl.pts.adrblk != ""
) {
filterKey.push("APPL");
}
return filterKey;
}
},
data() {
return {
sndtoList:[],
};
},
methods: {},
created() {}
};
</script>
<style lang="less" scoped>
.custom-box-wrap {
width: 100%;
display: flex;
justify-content: flex-start;
.box-1 {
width: calc(100% - 120px);
display: flex;align-items: center;
justify-content: flex-start;
}
.box-2 {
width: 100px;margin-left: 20px;display: flex;align-items: flex-start;
}
}
</style>