Detp.vue 18 KB
Newer Older
1 2 3 4
<template>
  <div class="eibs-tab">
        <!-- ========================左边======================== -->
        <c-col :span="11">
5
            <c-col :span="24">
6
                <el-form-item label="Available with" prop="lidgrp.rec.avbwth">
7 8 9 10
                    <c-select v-model="model.lidgrp.rec.avbwth" 
                    style="width:100%" placeholder="请选择Available with"
                    :code="codes.avbwth"
                    >
11 12 13 14
                    </c-select>
                </el-form-item>
            </c-col>
                        
15
            <c-col :span="24" v-if="this.flag4">
16
                <el-form-item label="Extkey" prop="lidgrp.avb.pts.extkey">
17
                    <c-fullbox>
18 19
                    <c-input 
                    :disabled="this.flag5" 
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
                    v-model="model.lidgrp.avb.pts.extkey" 
                    maxlength="16"  
                    placeholder="请输入External Key of Address"
                    @keyup.enter.native="showGridPromptDialog('lidgrp.avb.pts.extkey')"
                    ></c-input>
                    <template slot="footer">
                <c-button
                style="margin:0 10px 0 10px;padding: 0 12px;"
                  size="small"
                  type="primary"
                >
                <span style="font-family:'宋体';font-weight:bold">i</span>
                </c-button>
                <c-button
                style="margin:0 0"
                  size="small"
                  type="primary"
                  @click="onAvbpDet"
                >
                  详情
                </c-button>
              </template>
                    </c-fullbox>
43 44 45
                </el-form-item>
            </c-col>

46
            <!-- <c-col :span="8">
47 48 49 50 51 52 53 54 55 56 57
                <el-form-item label="" label-width="15px">
                    <c-button
                        size="small"
                        type="primary;width:10%"
                        @click="onSeainf('lidgrp.avb.pts.extkey')"
                        >i</c-button
                    >
                    <c-button size="small" type="primary" @click="onAvbpDet">
                        Details
                    </c-button>
                </el-form-item>
58
            </c-col> -->
59

60
            <c-col :span="24" v-if="this.flag4">
wangren committed
61 62
                <el-form-item label="Available in" prop="lidgrp.avb.pts.adrblk">
                    <c-input 
63
                    :disabled="this.flag6"
wangren committed
64
                    type="textarea" v-model="model.lidgrp.avb.pts.adrblk" maxlength="135" :rows="4" show-word-limit placeholder="请输入Available in" ></c-input>
65 66
                </el-form-item>
            </c-col>
67 68 69 70 71 72 73

             <c-col :span="24" v-if="!this.flag4">
                <el-form-item label="Available in" prop="lidgrp.blk.avbwthtxt">
                    <c-input 
                    type="textarea" v-model="model.lidgrp.blk.avbwthtxt" maxlength="135" :rows="4" show-word-limit placeholder="请输入Available in" ></c-input>
                </el-form-item>
            </c-col>
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
            <!--                           
            <c-col :span="24">
                <el-form-item label="Address Block" prop="lidgrp.avb.pts.adrblk">
                    <c-input type="textarea" v-model="model.lidgrp.avb.pts.adrblk" maxlength="35" :rows="4" show-word-limit placeholder="请输入Address Block" ></c-input>
                </el-form-item>
            </c-col>        
            <c-col :span="12">
                <el-form-item label="Chinese address" prop="lidgrp.avb.dbfadrblkcn">
                    <c-input type="textarea" v-model="model.lidgrp.avb.dbfadrblkcn" maxlength="35" show-word-limit placeholder="请输入Chinese address" ></c-input>
                </el-form-item>
            </c-col>
                                          
            <c-col :span="12">
                <el-form-item label="名称" prop="lidgrp.avb.namelc">
                    <c-input type="textarea" v-model="model.lidgrp.avb.namelc" maxlength="35" show-word-limit placeholder="请输入名称" ></c-input>
                </el-form-item>
            </c-col>
                              
            <c-col :span="12">
                <el-form-item label="地址" prop="lidgrp.avb.adrelc">
                    <c-input type="textarea" v-model="model.lidgrp.avb.adrelc" maxlength="35" show-word-limit placeholder="请输入地址" ></c-input>
                </el-form-item>
            </c-col>
            -->
                                               
99
            <c-col :span="24">
100
                <el-form-item label="Available by" prop="lidgrp.rec.avbby">
101 102 103 104 105 106
                    <c-select 
                    v-model="model.lidgrp.rec.avbby" 
                    style="width:100%" 
                    placeholder="请选择Available by"
                    :code="codes.avbby"
                    >
107 108 109 110 111 112
                    </c-select>
                </el-form-item>
            </c-col>
                              
            <c-col :span="24">
                <el-form-item label="Negotiation / Deferred Payment Details" prop="lidgrp.blk.defdet">
113 114 115
                    <c-input type="textarea" 
                    v-model="model.lidgrp.blk.defdet" 
                    maxlength="50" 
116
                    :rows="3" 
117 118 119 120
                    show-word-limit 
                    placeholder="请输入Deferred Payment Details" 
                    :disabled="this.flag1"
                    ></c-input>
121 122 123 124 125
                </el-form-item>
            </c-col>
                                               
            <c-col :span="24">
                <el-form-item label="Drafts at" prop="lidgrp.blk.dftat">
126 127 128 129 130 131 132 133
                    <c-input type="textarea" 
                    v-model="model.lidgrp.blk.dftat" 
                    maxlength="50" 
                    :rows="3" 
                    show-word-limit 
                    placeholder="请输入Drafts at" 
                    :disabled="this.flag2"
                    ></c-input>
134 135 136
                </el-form-item>
            </c-col>
                                        
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
            <c-col :span="24">
                <el-form-item label="Drawee" prop="lidgrp.drw.pts.extkey">
                    <c-fullbox>
                    <c-input  
                    v-model="model.lidgrp.drw.pts.extkey" 
                    maxlength="16"  
                    placeholder="请输入External Key of Address"
                    @keyup.enter.native="showGridPromptDialog('lidgrp.drw.pts.extkey')"
                    :disabled="this.flag2"
                    ></c-input>

                    <template slot="footer">
                <c-button
                style="margin:0 10px 0 10px;padding: 0 12px;"
                  size="small"
                  type="primary"
                 @click="onSeainf('lidgrp.drw.pts.extkey')"
                >
                <span style="font-family:'宋体';font-weight:bold">i</span>
                </c-button>
                <c-button
                style="margin:0 0"
                  size="small"
                  type="primary"
                  :disabled="this.flag2"
                  @click="onDrwpDet"
                >
                  详情
                </c-button>
              </template>
                    </c-fullbox>
168 169 170
                </el-form-item>
            </c-col>

171
            <!-- <c-col :span="8">
172 173 174 175 176 177 178 179 180 181 182
                <el-form-item label="" label-width="15px">
                    <c-button
                        size="small"
                        type="primary;width:10%"
                        @click="onSeainf('lidgrp.drw.pts.extkey')"
                        >i</c-button
                    >
                    <c-button size="small" type="primary" @click="onDrwpDet">
                        Details
                    </c-button>
                </el-form-item>
183
            </c-col> -->
184 185 186
                        
            <c-col :span="24">
                <el-form-item label="Address Block" prop="lidgrp.drw.pts.adrblk">
187
                    <c-input type="textarea" 
188 189
                    :disabled="this.flag2"
                    v-model="model.lidgrp.drw.pts.adrblk" maxlength="135" :rows="4" show-word-limit placeholder="请输入Address Block" ></c-input>
190 191 192 193
                </el-form-item>
            </c-col>

                                                  
194 195 196 197 198
            <c-col :span="24">
                <el-form-item label="Dispatch from" prop="lidgrp.rec.shpfro">
                    <c-input  v-model="model.lidgrp.rec.shpfro" maxlength="65"  placeholder="请输入Dispatch from"></c-input>
                </el-form-item>
            </c-col>
199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216
                        
            
                                                            
            <c-col :span="24">
                <el-form-item label="Air-/Port of Departure" prop="lidgrp.rec.porloa">
                    <c-input  v-model="model.lidgrp.rec.porloa" maxlength="65"  placeholder="请输入Air-/Port of Departure"></c-input>
                </el-form-item>
            </c-col>
                                        
            <c-col :span="24">
                <el-form-item label="Air-/Port of Destination" prop="lidgrp.rec.pordis">
                    <c-input  v-model="model.lidgrp.rec.pordis" maxlength="65"  placeholder="请输入Air-/Port of Destination"></c-input>
                </el-form-item>
            </c-col>
                                        
            <c-col :span="24">
                <el-form-item label="Final Destination" prop="lidgrp.rec.shpto">
                    <c-input  v-model="model.lidgrp.rec.shpto" maxlength="65"  placeholder="请输入Final Destination"></c-input>
217 218
                </el-form-item>
            </c-col>
219 220 221 222 223 224 225
                                        
            <c-col :span="24">
                <el-form-item label="Shipment Period" prop="lidgrp.blk.shpper">
                    <c-input type="textarea" v-model="model.lidgrp.blk.shpper" maxlength="65" :rows="6" show-word-limit placeholder="请输入Shipment Period" ></c-input>
                </el-form-item>
                </c-col>
        
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
            <!--            
            <c-col :span="12">
                <el-form-item label="Chinese address" prop="lidgrp.drw.dbfadrblkcn">
                    <c-input type="textarea" v-model="model.lidgrp.drw.dbfadrblkcn" maxlength="35" show-word-limit placeholder="请输入Chinese address" ></c-input>
                </el-form-item>
            </c-col> 

                <c-col :span="12">
                <el-form-item label="名称" prop="lidgrp.drw.namelc">
                    <c-input type="textarea" v-model="model.lidgrp.drw.namelc" maxlength="35" show-word-limit placeholder="请输入名称" ></c-input>
                </el-form-item>
            </c-col>
                                
            <c-col :span="12">
                <el-form-item label="地址" prop="lidgrp.drw.adrelc">
                    <c-input type="textarea" v-model="model.lidgrp.drw.adrelc" maxlength="35" show-word-limit placeholder="请输入地址" ></c-input>
                </el-form-item>
            </c-col>
            -->        


        </c-col>

        <!-- ========================右边======================== -->
        <c-col :span="11" :offset="1">
                                    
252 253 254 255 256
            <c-col :span="24">
                <el-form-item label="Period for Presentation in Days" prop="lidgrp.rec.prepers18">
                    <c-input  v-model="model.lidgrp.rec.prepers18" 
                    style="width:100%" 
                    placeholder="请输入Period for Presentation in Days"></c-input>
257 258 259
                </el-form-item>
            </c-col>

260
            <c-col :span="24">
261
                <el-form-item label="Presentation Period" prop="lidgrp.blk.preper">
262
                    <c-fullbox>
263
                    <c-input type="textarea" v-model="model.lidgrp.blk.preper" maxlength="35" show-word-limit placeholder="请输入Presentation Period" ></c-input>
264 265 266 267 268 269 270 271
                <template slot="footer">
                    <c-button 
                    size="small" 
                    type="primary" 
                    icon="el-icon-search" 
                    @click="onPreperButtxmsel"></c-button>
                    </template>
                    </c-fullbox>
272 273 274
                </el-form-item>
            </c-col>
                                                    
275
           
276

277
            <!-- <c-col :span="24">
278 279 280
                <el-form-item label="Presentation period text" prop="lidgrp.rec.prepertxts18">
                    <c-input  v-model="model.lidgrp.rec.prepertxts18" maxlength="35"  placeholder="请输入Presentation period text"></c-input>
                </el-form-item>
281
            </c-col> -->
282
                       
283
            <!-- <c-col :span="18" class="centerLable marginLable">
284
                <c-checkbox v-model="model.lidgrp.blk.preperflg">Presentation Period modified</c-checkbox>
285
            </c-col> -->
286
                                               
287 288 289 290 291 292 293 294 295 296
            <c-col :span="24">
                <el-form-item label="Details of Charges" prop="lidgrp.blk.feetxt">
                    <c-fullbox>
                    <c-input type="textarea" v-model="model.lidgrp.blk.feetxt" maxlength="80" :rows="6" show-word-limit placeholder="请输入Additional Details to Code for Charges" ></c-input>
                   <template slot="footer">
                 <c-button size="small" type="primary" icon="el-icon-search" @click="onChariaButtxmsel"></c-button>

                   </template>
                   
                    </c-fullbox>
297
                </el-form-item>
298

299 300
            </c-col>
                                    
301 302
                                      
            <!-- <c-col :span="24">
303 304 305 306
                <el-form-item label="Drafts at" prop="lidgrp.rec.chato">
                    <c-select v-model="model.lidgrp.rec.chato" style="width:100%" placeholder="请选择Drafts at">
                    </c-select>
                </el-form-item>
307
            </c-col> -->
308 309
                                                   
            <c-col :span="24">
310 311 312 313 314 315 316
                <el-form-item label="Country Or Region Code " prop="lidgrp.rec.stacty">
                    <c-select 
                    v-model="model.lidgrp.rec.stacty" 
                    style="width:100%" 
                    :code="codes.stacty"
                    placeholder="请选择Country Or Region Code"
                    >
317 318 319 320 321 322 323
                    </c-select>
                </el-form-item>
            </c-col>

                        
            <c-col :span="24">
                <el-form-item label="Mixed Payment Details" prop="lidgrp.blk.mixdet">
324 325 326 327 328 329 330 331
                    <c-input 
                    type="textarea" 
                    v-model="model.lidgrp.blk.mixdet" 
                    maxlength="35" :rows="4" 
                    show-word-limit 
                    placeholder="请输入Mixed Payment Details"
                    :disabled="this.flag3"
                     ></c-input>
332 333 334
                </el-form-item>
            </c-col>

335
            
336 337
            <c-col :span="24">
                <el-form-item label="Tenor day" prop="lidgrp.rec.tenmaxday">
338 339 340
                    <c-input  
                    :disabled=" !(!(this.model.lidgrp.rec.avbby == 'P')) "
                    v-model="model.lidgrp.rec.tenmaxday"  placeholder="请输入Maximum tenor in days"></c-input>
341 342
                </el-form-item>
            </c-col>
343 344 345 346 347

        </c-col>   

        
        
348 349 350 351
  </div>
</template>
<script>
import Api from "~/service/Api"
wangren committed
352
import commonProcess from "~/mixin/commonProcess";
353 354 355 356 357 358
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Litopn/Event"

export default {
    inject: ['root'],
    props:["model","codes"],
wangren committed
359
    mixins: [commonProcess],
360 361
    data(){
        return {
362 363 364
        flag1:true,
        flag2:true,
        flag3:true,
wangren committed
365
        flag4:true,
366
        flag5:false,
367
        flag6:false
368 369
        }
    },
370 371 372
    methods:{...Event,
    onAvbpDet(){
        console.log(this.model.lidgrp.rec.avbby)
373
    }
374 375 376 377 378
    },
    created:function(){
        
    },
    watch:{
wangren committed
379 380 381
        "model.lidgrp.rec.avbwth":{
            immediate:true,
            handler(val,oldVal){
382
                //Any Bank
wangren committed
383 384
                if(val == 'O'){
                    this.flag4=false;
385 386
                    this.changeFormItemRequired('lidgrp.avb.pts.adrblk',false)
                    this.flag6=false
387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403
                }//Advising Bank
                else if(val == 'A'){
                    this.flag4=true;
                    this.flag5=true;
                    this.flag6=true;
                }//Issuing Bank
                else if(val == 'I'){
                    this.flag4=true;
                    this.flag5=false;
                    this.flag6=true;
                }//Confirming Bank
                else if(val == 'C'){
                    this.flag4=true;
                    this.flag5=true;
                    this.flag6=true;
                }//Specified Bank
                else if(val == 'S'){
wangren committed
404
                    this.flag4=true;
405 406
                    this.flag5=false;
                    this.flag6=false;
wangren committed
407 408 409 410 411
                }
            }
        },


412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442
        "model.lidgrp.rec.avbby": {
            immediate:true,
            handler(val,oldVal){
                if (val=="D") {
                    this.flag1=false
                    this.flag2=true
                    this.flag3=true
                }
                if(val=="N"){
                    this.flag1=false
                    this.flag2=false
                    this.flag3=true
                }
                if (val=="P") {
                    this.flag1=true
                    this.flag2=false
                    this.flag3=true
                }
                if (val=="M") {
                    this.flag1=true
                    this.flag2=true
                    this.flag3=false
                }
                if (val=="A") {
                    this.flag1=true
                    this.flag2=false
                    this.flag3=true
                }
            },  
        },
    },
443 444 445 446 447 448 449 450 451 452 453 454
}
</script>
<style>
.centerLable {
  margin-left: -10px;
  height: 32px;
  line-height: 32px;
}
.marginLable {
  padding-left: 160px;
}
</style>