Detp.vue 14 KB
Newer Older
1 2
<template>
  <div class="eibs-tab">
3 4 5
        <!-- ========================左边======================== -->
        <c-col :span="11">
            <c-col :span="24">
jianglong committed
6
                <el-form-item label="可用银行" prop="lidgrp.rec.avbwth">
7 8 9 10 11 12 13 14 15
                    <c-select v-model="model.lidgrp.rec.avbwth" 
                    style="width:100%" placeholder="请选择Available with"
                    :code="codes.avbwth"
                    >
                    </c-select>
                </el-form-item>
            </c-col>
                        
            <c-col :span="24" v-if="this.flag4">
jianglong committed
16
                <el-form-item label="" prop="lidgrp.avb.pts.extkey">
17 18 19 20 21
                    <c-fullbox>
                    <c-input 
                    :disabled="this.flag5" 
                    v-model="model.lidgrp.avb.pts.extkey" 
                    maxlength="16"  
jianglong committed
22
                    placeholder="请输入地址编码"
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
                    @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>
                </el-form-item>
            </c-col>
45

jianglong committed
46
            
47

48
            <c-col :span="24" v-if="this.flag4">
jianglong committed
49
                <el-form-item label="名称地址" prop="lidgrp.avb.pts.adrblk">
50 51
                    <c-input 
                    :disabled="this.flag6"
jianglong committed
52
                    type="textarea" v-model="model.lidgrp.avb.pts.adrblk" maxlength="135" :rows="4" show-word-limit placeholder="请输入名称地址" ></c-input>
53 54
                </el-form-item>
            </c-col>
55 56 57 58 59 60 61

             <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>
jianglong committed
62
           
63 64
                                               
            <c-col :span="24">
jianglong committed
65
                <el-form-item label="兑付方式" prop="lidgrp.rec.avbby">
66 67 68 69 70 71 72 73 74 75 76
                    <c-select 
                    v-model="model.lidgrp.rec.avbby" 
                    style="width:100%" 
                    placeholder="请选择Available by"
                    :code="codes.avbby"
                    >
                    </c-select>
                </el-form-item>
            </c-col>
                              
            <c-col :span="24">
jianglong committed
77
                <el-form-item label="延期付款指示" prop="lidgrp.blk.defdet">
78 79 80
                    <c-input type="textarea" 
                    v-model="model.lidgrp.blk.defdet" 
                    maxlength="50" 
81
                    :rows="3" 
82
                    show-word-limit 
jianglong committed
83
                    placeholder="请输入延期付款指示" 
84 85 86 87
                    :disabled="this.flag1"
                    ></c-input>
                </el-form-item>
            </c-col>
88
                                               
89
            <c-col :span="24">
jianglong committed
90
                <el-form-item label="汇票期限" prop="lidgrp.blk.dftat">
91 92 93 94 95
                    <c-input type="textarea" 
                    v-model="model.lidgrp.blk.dftat" 
                    maxlength="50" 
                    :rows="3" 
                    show-word-limit 
jianglong committed
96
                    placeholder="请输入汇票期限" 
97 98 99 100 101 102
                    :disabled="this.flag2"
                    ></c-input>
                </el-form-item>
            </c-col>
                                        
            <c-col :span="24">
jianglong committed
103
                <el-form-item label="受票人" prop="lidgrp.drw.pts.extkey">
104 105 106 107
                    <c-fullbox>
                    <c-input  
                    v-model="model.lidgrp.drw.pts.extkey" 
                    maxlength="16"  
jianglong committed
108
                    placeholder=""
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
                    @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>
                </el-form-item>
            </c-col>

jianglong committed
136
            
137 138
                        
            <c-col :span="24">
jianglong committed
139
                <el-form-item label="地址信息" prop="lidgrp.drw.pts.adrblk">
140
                    <c-input type="textarea" 
141
                    :disabled="this.flag2"
jianglong committed
142
                    v-model="model.lidgrp.drw.pts.adrblk" maxlength="135" :rows="4" show-word-limit placeholder="请输入地址信息" ></c-input>
143 144 145 146
                </el-form-item>
            </c-col>

                                                  
147
            <c-col :span="24">
jianglong committed
148 149
                <el-form-item label="装运地点" prop="lidgrp.rec.shpfro">
                    <c-input  v-model="model.lidgrp.rec.shpfro" maxlength="65"  placeholder="请输入地点"></c-input>
150 151
                </el-form-item>
            </c-col>
152 153 154 155
                        
            
                                                            
            <c-col :span="24">
jianglong committed
156
                <el-form-item label="始发(航空)站" prop="lidgrp.rec.porloa">
157 158 159 160 161
                    <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">
jianglong committed
162
                <el-form-item label="终点(航空)站" prop="lidgrp.rec.pordis">
163 164 165 166 167
                    <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">
jianglong committed
168
                <el-form-item label="最终目的地" prop="lidgrp.rec.shpto">
169 170 171 172 173
                    <c-input  v-model="model.lidgrp.rec.shpto" maxlength="65"  placeholder="请输入Final Destination"></c-input>
                </el-form-item>
            </c-col>
                                        
            <c-col :span="24">
jianglong committed
174
                <el-form-item label="装运期限" prop="lidgrp.blk.shpper">
175 176 177 178
                    <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>
        
jianglong committed
179
            
180

181 182

        </c-col>
183 184 185 186 187

        <!-- ========================右边======================== -->
        <c-col :span="11" :offset="1">
                                    
            <c-col :span="24">
jianglong committed
188
                <el-form-item label="提交期限(天)" prop="lidgrp.rec.prepers18">
189 190 191 192 193 194 195
                    <c-input  v-model="model.lidgrp.rec.prepers18" 
                    style="width:100%" 
                    placeholder="请输入Period for Presentation in Days"></c-input>
                </el-form-item>
            </c-col>

            <c-col :span="24">
jianglong committed
196
                <el-form-item label="寄单期限" prop="lidgrp.blk.preper">
197
                    <c-fullbox>
jianglong committed
198
                    <c-input type="textarea" v-model="model.lidgrp.blk.preper" maxlength="35" show-word-limit placeholder="请输入寄单期限" ></c-input>
199 200 201 202 203 204 205 206 207 208
                <template slot="footer">
                    <c-button 
                    size="small" 
                    type="primary" 
                    icon="el-icon-search" 
                    @click="onPreperButtxmsel"></c-button>
                    </template>
                    </c-fullbox>
                </el-form-item>
            </c-col>
209
                                                    
210 211
           

jianglong committed
212
                           
213
            <c-col :span="24">
jianglong committed
214
                <el-form-item label="银行费用负担" prop="lidgrp.blk.feetxt">
215 216 217 218 219 220 221 222 223 224 225
                    <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>
                </el-form-item>

            </c-col>
huangxin committed
226 227 228 229 230 231 232 233 234 235 236 237 238

            <c-col :span="24">
                <el-form-item label="收费条件" prop="lidgrp.rec.chato">
                    <c-select 
                    v-model="model.lidgrp.rec.chato" 
                    style="width:100%" 
                    :code="chato"
                    placeholder="请选择"
                    >
                    </c-select>
                </el-form-item>
            </c-col>

239
                                    
jianglong committed
240
                       
241
            <c-col :span="24">
jianglong committed
242
                <el-form-item label="国家地区代码" prop="lidgrp.rec.stacty">
243 244 245 246
                    <c-select 
                    v-model="model.lidgrp.rec.stacty" 
                    style="width:100%" 
                    :code="codes.stacty"
jianglong committed
247
                    placeholder="请选择"
248 249 250 251 252 253 254
                    >
                    </c-select>
                </el-form-item>
            </c-col>

                        
            <c-col :span="24">
jianglong committed
255
                <el-form-item label="混合付款详情" prop="lidgrp.blk.mixdet">
256 257 258 259 260
                    <c-input 
                    type="textarea" 
                    v-model="model.lidgrp.blk.mixdet" 
                    maxlength="35" :rows="4" 
                    show-word-limit 
jianglong committed
261
                    placeholder="请输入内容"
262 263 264 265 266
                    :disabled="this.flag3"
                     ></c-input>
                </el-form-item>
            </c-col>

267
            
268
            <c-col :span="24">
jianglong committed
269
                <el-form-item label="期限日" prop="lidgrp.rec.tenmaxday">
270 271 272 273 274 275 276 277
                    <c-input  v-model="model.lidgrp.rec.tenmaxday"  placeholder="请输入Maximum tenor in days"></c-input>
                </el-form-item>
            </c-col>

        </c-col>   

        
        
278 279 280 281 282 283 284 285 286 287 288 289 290 291
  </div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Litame/Event"

export default {
    inject: ['root'],
    props:["model","codes"],
    mixins: [commonProcess],
    data(){
        return {
huangxin committed
292 293 294 295 296 297
            chato: [
        { label: `OUR FEES BORNE BY ABROAD`, value: `B` },
        { label: `OTHER`, value: `O` },
        { label: `SPLIT FEES`, value: `S` },
        { label: `OUR FEES BORNE BY CLIENT`, value: `U` },
    ],
298 299 300
        flag1:true,
        flag2:true,
        flag3:true,
301 302
        flag4:true,
        flag5:false,
303
        flag6:false
304 305
        }
    },
306 307 308 309 310
    methods:{...Event,
    onAvbpDet(){
        console.log(this.model.lidgrp.rec.avbby)
    }
    },
311
    created:function(){
312
        
313 314
    },
    watch:{
315 316 317
        "model.lidgrp.rec.avbwth":{
            immediate:true,
            handler(val,oldVal){
318
                //Any Bank
319 320 321 322
                if(val == 'O'){
                    this.flag4=false;
                    this.changeFormItemRequired('lidgrp.avb.pts.adrblk',false)
                    this.flag6=false
323 324
                }//Advising Bank
                else if(val == 'A'){
325 326 327
                    this.flag4=true;
                    this.flag5=true;
                    this.flag6=true;
328 329
                }//Issuing Bank
                else if(val == 'I'){
330
                    this.flag4=true;
331
                    this.flag5=false;
332
                    this.flag6=true;
333 334
                }//Confirming Bank
                else if(val == 'C'){
335
                    this.flag4=true;
336
                    this.flag5=true;
337
                    this.flag6=true;
338 339
                }//Specified Bank
                else if(val == 'S'){
340 341 342 343 344 345 346 347
                    this.flag4=true;
                    this.flag5=false;
                    this.flag6=false;
                }
            }
        },


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
        "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
                }
            },  
        },
    },
}
</script>
<style>
382 383 384 385 386 387 388 389
.centerLable {
  margin-left: -10px;
  height: 32px;
  line-height: 32px;
}
.marginLable {
  padding-left: 160px;
}
390
</style>