Davp.vue 17.7 KB
Newer Older
zxg committed
1 2 3
<template>
    <div class="eibs-tab">       
        <!--顶部-->
4
        <c-col :span="24">
zxg committed
5 6
            <c-col :span="12">
                <el-form-item label="参考号" prop="didgrp.rec.ownref">
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
            <c-fullbox>
              <c-input
              disabled
                  v-model="model.didgrp.rec.ownref"
                  maxlength="16"
                  placeholder="请输入Reference"
              ></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>
              </template>
           </c-fullbox>
zxg committed
24 25 26 27 28 29
                </el-form-item>
            </c-col>
                             
            <c-col :span="12">
                    <el-form-item label="摘要" prop="didgrp.rec.nam">
                        <c-input  
30
                        disabled
zxg committed
31 32 33 34 35 36 37 38
                            v-model="model.didgrp.rec.nam" 
                            maxlength="40"  
                            placeholder="请输入Externally Displayed Name to Identify the Contract"
                        ></c-input>
                    </el-form-item>
            </c-col>
        </c-col>
         <!--左部-->
39
         <c-row>
zxg committed
40 41 42 43 44
        <c-col :span="12">
            <c-col :span="24">
                <c-col :span="12">
                    <el-form-item label="信用证金额" prop="didgrp.cbs.nom1.cur">
                        <c-select 
45
                        disabled
zxg committed
46 47 48
                            v-model="model.didgrp.cbs.nom1.cur" 
                            style="width:100%" 
                            placeholder="请选择金额类型"
49 50 51 52 53 54 55 56 57
                        >
                        <el-option
                    v-for="item in codes.cur"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
            >
            </el-option>
                        </c-select>
zxg committed
58 59 60 61
                    </el-form-item>
                </c-col>
                            
                <c-col :span="12">
62
                    <el-form-item label="" prop="didgrp.cbs.nom1.amt" label-width="5px">
zxg committed
63
                        <c-input  
64
                        disabled
zxg committed
65 66 67 68 69 70 71 72 73
                            v-model="model.didgrp.cbs.nom1.amt"  
                            placeholder="请输入信用证金额"
                        ></c-input>
                    </el-form-item>
                </c-col>

                <c-col :span="12">
                    <el-form-item label="单据余额" prop="didgrp.cbs.opn1.cur">
                        <c-select  
74
                        disabled
zxg committed
75 76 77
                            v-model="model.didgrp.cbs.opn1.cur" 
                            maxlength="3"  
                            placeholder="请选择金额类型"
78 79 80 81 82 83 84 85 86
                        >
                        <el-option
                    v-for="item in codes.cur"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
            >
            </el-option>
                        </c-select>
zxg committed
87 88 89
                    </el-form-item>
                </c-col>
                <c-col :span="12">
90 91 92
                    <el-form-item label="" prop="didgrp.cbs.opn1.amt" label-width="5px">
                        <c-input 
                        disabled 
zxg committed
93 94 95 96 97 98 99 100 101 102
                            v-model="model.didgrp.cbs.opn1.amt"  
                            placeholder="请输入单据余额"
                        ></c-input>
                    </el-form-item>
                </c-col>   
            </c-col>

            <c-col :span="24">
                <el-form-item label="指定银行" prop="didgrp.avbnam">
                    <c-input  
103
                    disabled
zxg committed
104 105 106 107 108 109 110 111 112 113
                        v-model="model.didgrp.avbnam" 
                        maxlength="40"  
                        placeholder="请输入指定银行"
                    ></c-input>
                </el-form-item>
            </c-col>

            <c-col :span="24">
                <el-form-item label="兑付方式" prop="didgrp.rec.avbby">
                    <c-select 
114
                    disabled
zxg committed
115 116 117
                        v-model="model.didgrp.rec.avbby" 
                        style="width:100%" 
                        placeholder="请选择兑付方式"
118 119
                    >
                    <el-option
120
                    v-for="item in codes.avbby0"
121 122 123 124 125 126
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
            >
            </el-option>
                    </c-select>
zxg committed
127 128 129
                </el-form-item>
            </c-col>

130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152
            <c-col :span="12">
        <el-form-item label="开证日期" prop="didgrp.rec.opndat">
          <c-date-picker
          disabled
            type="date"
            v-model="model.didgrp.rec.opndat"
            style="width: 100%"
            placeholder="请选择Date L/C Opened/Issued"
          ></c-date-picker>
        </el-form-item>
      </c-col>

      <c-col :span="12">
        <el-form-item label="最迟装运日期" prop="didgrp.rec.shpdat">
          <c-date-picker
          disabled
            type="date"
            v-model="model.didgrp.rec.shpdat"
            style="width: 100%"
            placeholder="请选择Shipment Date"
          ></c-date-picker>
        </el-form-item>
      </c-col>
zxg committed
153

154
            <c-col :span="12">
zxg committed
155 156
                <el-form-item label="到期日/到期地点" prop="didgrp.rec.expdat">
                    <c-date-picker 
157
                    disabled
zxg committed
158 159 160
                        type="date"  
                        v-model="model.didgrp.rec.expdat" c
                        style="width:100%"  
161
                        placeholder="请选择到期日"
zxg committed
162 163 164 165
                    ></c-date-picker>
                </el-form-item>
            </c-col>

166 167 168 169 170 171 172 173 174 175
        <c-col :span="12">
        <el-form-item label="" prop="didgrp.rec.expplc" label-width="5px">
          <c-input
          disabled
            v-model="model.didgrp.rec.expplc"
            maxlength="35"
            placeholder="请输入Place of Expiry"
          ></c-input>
        </el-form-item>
        </c-col>
zxg committed
176 177 178 179

            <c-col :span="24">
                <el-form-item label="信用证类型" prop="didgrp.rec.lcrtyp">
                    <c-select 
180
                    disabled
zxg committed
181 182 183
                        v-model="model.didgrp.rec.lcrtyp" 
                        style="width:100%" 
                        placeholder="请选择Form of Documentary Credit"
184 185 186 187 188 189 190 191 192
                    >
                    <el-option
                    v-for="item in codes.lcrtyp"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
            >
            </el-option>
                    </c-select>
zxg committed
193 194 195 196
                </el-form-item>
            </c-col>
            </c-col>

197 198
            
            <!--右边-->
zxg committed
199 200 201 202
            <c-col :span="12">
            <c-col :span="24">
                    <el-form-item label="申请人" prop="bddgrp.apl.pts.ref">
                        <c-input  
203
                        disabled
zxg committed
204 205 206 207 208 209 210 211 212 213
                            v-model="model.bddgrp.apl.pts.ref" 
                            maxlength="16"  
                            placeholder="请输入申请人"
                        ></c-input>
                    </el-form-item>
            </c-col>

            <c-col :span="24">
                <el-form-item label="" prop="bddgrp.apl.pts.nam">
                    <c-input  
214
                    disabled
zxg committed
215 216 217 218 219 220 221 222 223 224
                        v-model="model.bddgrp.apl.pts.nam" 
                        maxlength="40"  
                        placeholder="请输入Name of Party"
                    ></c-input>
                </el-form-item>
            </c-col>

            <c-col :span="24">
                <el-form-item label="受益人" prop="bddgrp.ben.pts.ref">
                    <c-input  
225
                    disabled
zxg committed
226 227 228 229 230 231 232 233 234 235
                        v-model="model.bddgrp.ben.pts.ref" 
                        maxlength="16"  
                        placeholder="请输入受益人"
                    ></c-input>
                </el-form-item>
            </c-col>       

            <c-col :span="24">
                <el-form-item label="" prop="bddgrp.ben.pts.nam">
                    <c-input  
236
                    disabled
zxg committed
237 238 239 240 241 242 243 244 245 246
                        v-model="model.bddgrp.ben.pts.nam" 
                        maxlength="40"  
                        placeholder="请选择Available by"
                    ></c-input>
                </el-form-item>
            </c-col>

            <c-col :span="24">
                <el-form-item label="交单行" prop="bddgrp.prb.pts.ref">
                    <c-input  
247
                    disabled
zxg committed
248 249 250 251 252 253 254 255 256 257
                        v-model="model.bddgrp.prb.pts.ref" 
                        maxlength="16"  
                        placeholder="请输入Reference"
                    ></c-input>
                </el-form-item>
            </c-col>

            <c-col :span="24">
                <el-form-item label="" prop="bddgrp.prb.pts.nam">
                    <c-input  
258
                    disabled
zxg committed
259 260 261 262 263 264
                        v-model="model.bddgrp.prb.pts.nam" 
                        maxlength="40"  
                        placeholder="请输入Reference"
                    ></c-input>
                </el-form-item>
            </c-col>
265 266 267 268 269
        </c-col>
        </c-row>

                <div class="line" />
                <hr />
huangxin committed
270

271 272 273 274 275 276
                
    <el-row>
        <!--左边-->
        <c-col :span="12">
    <el-row>
    <c-col :span="22">
zxg committed
277 278
                <el-form-item label="Document Reference" prop="bddgrp.rec.ownref">
                    <c-input  
279
                    disabled
zxg committed
280 281 282 283 284 285
                        v-model="model.bddgrp.rec.ownref" 
                        maxlength="16"  
                        placeholder="请输入Document Reference"
                    ></c-input>
                </el-form-item>
            </c-col>
286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305

            <c-col :span="2" style="text-align: right">
        <el-form-item label-width="0">
          <c-button
            size="small"
            type="primary"
            icon="el-icon-search"
            style="margin-left: 0"
          ></c-button>
        </el-form-item>
      </c-col>
            </el-row>


            <c-col :span="24">
                <el-form-item label="Type of Advice" prop="bddgrp.rec.advtyp">
                    <c-select 
                    v-model="model.bddgrp.rec.advtyp" 
                    style="width:100%" 
                    placeholder="请选择Type of Advice"
huangxin committed
306 307 308 309 310 311 312 313 314
                >
                <el-option
              v-for="item in codes.advtyp0"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
                </c-select>
315 316 317 318 319 320 321
                </el-form-item>
            </c-col>
                                        
                                        
            <c-col :span="12">
                <el-form-item label="Payment" prop="bddgrp.rec.advdat">
                    <c-date-picker 
322
                    :disabled="model.bddgrp.rec.advtyp=='750' || model.bddgrp.rec.advtyp=='oth'"
323 324 325 326 327 328 329 330 331 332
                        type="date"  
                        v-model="model.bddgrp.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" prop="bddgrp.rec.disdat">
333 334
                    <c-date-picker
                    :disabled="model.bddgrp.rec.advtyp=='754' || model.bddgrp.rec.advtyp=='oth'" 
335 336 337 338 339 340 341 342
                        type="date"  
                        v-model="model.bddgrp.rec.disdat" 
                        style="width:100%"  
                        placeholder="请选择Discrep. advised on"
                    ></c-date-picker>
                </el-form-item>
            </c-col>
                        
343
            <!-- <c-col :span="24">
344 345 346 347 348 349 350 351 352
                <el-form-item label="">
                    <c-checkbox v-model="model.bdtp.setnowflg">Register to Send and Settle Document</c-checkbox>
                    </el-form-item>   
            </c-col>

            <c-col :span="24">
                <el-form-item label="">
                    <c-checkbox v-model="model.bdtp.dcrflg" >Register to Handle Discrepancies</c-checkbox>
                    </el-form-item>   
353
            </c-col>  -->
354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371
            </c-col>    


        <!--右部-->
        <c-col :span="12">
            <c-col :span="24" >
                <el-form-item label="name" prop="bddgrp.rec.nam">
                    <c-input  
                    disabled
                        v-model="model.bddgrp.rec.nam" 
                        maxlength="40"  
                        placeholder="请输入Name"
                    ></c-input>
                </el-form-item>
            </c-col>
                                                               
                                
            <c-col :span="24" >
huangxin committed
372
                <el-form-item label="Presented by" prop="bddgrp.rec.docprbrol">
zxg committed
373 374 375 376
                    <c-select 
                    v-model="model.bddgrp.rec.docprbrol" 
                    style="width:100%" 
                    placeholder="请选择Presented by"
huangxin committed
377
                    @change="selectOrCheckboxRule('bddgrp.rec.docprbrol')"
378 379
                >
                <el-option
380
              v-for="item in docprbrol"
381 382 383 384 385 386
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
                </c-select>
zxg committed
387 388 389
                </el-form-item>
            </c-col>

390
            <!-- <c-col :span="24" >
zxg committed
391 392 393 394 395 396 397
                <el-form-item label="Reference" prop="bddgrp.prb.pts.ref">
                    <c-input  
                        v-model="model.bddgrp.prb.pts.ref"
                        maxlength="16"  
                        placeholder="请输入Reference"
                    ></c-input>
                </el-form-item>
398
            </c-col> -->
zxg committed
399

400 401 402 403 404

            <c-col :span="24">
        <c-ptap
          :model="model"
          :argadr="{
huangxin committed
405
            title: '',
406 407 408
            grp: 'bddgrp',
            rol: 'prb',
          }"
huangxin committed
409
          :disabledExtkey="this.flag"
410 411 412 413 414
          :onlySearch="true"
        >
        </c-ptap>
      </c-col>
            <!-- <c-col :span="24" >
415
            <c-col :span="19">
zxg committed
416 417 418 419 420
                <el-form-item label="ExtKey" prop="bddgrp.prb.pts.extkey">
                    <c-input  v-model="model.bddgrp.prb.pts.extkey" maxlength="16"  placeholder="请输入External Key of Address"></c-input>
                </el-form-item>
            </c-col>

421 422 423 424 425 426 427 428 429 430
            <c-col :span="5">
            <c-button
                style="margin:0 10px 0 10px;padding: 0 12px;"
                  size="small"
                  type="primary"
                  @click="onSeainf"
                >
                <span style="font-family:'宋体';font-weight:bold">i</span>
                </c-button>
            <c-button size="small" type="primary"  @click="onPrbpDet">
zxg committed
431 432
                    Details
                </c-button>
433
                </c-col>
434
                </c-col> -->
435

zxg committed
436
                  
437
            <c-col :span="24" >
zxg committed
438
                <el-form-item label="名称" prop="bddgrp.prb.namelc">
439
                    <c-input disabled type="textarea" v-model="model.bddgrp.prb.namelc" maxlength="35" show-word-limit placeholder="请输入名称" ></c-input>
zxg committed
440 441 442
                </el-form-item>
            </c-col>

443
            <c-col :span="24" class="change">
zxg committed
444
                <el-form-item label="地址" prop="bddgrp.prb.adrelc">
huangxin committed
445
                    <c-input type="textarea" disabled v-model="model.bddgrp.prb.adrelc" maxlength="35" show-word-limit placeholder="请输入地址" ></c-input>
zxg committed
446 447
                </el-form-item>
            </c-col>
448 449 450 451
            </c-col>
            </el-row>


zxg committed
452 453 454 455 456

    </div>
</template>
<script>
import Api from "~/service/Api"
457
import commonProcess from "~/mixin/commonProcess";
zxg committed
458 459
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Ditdav/Event"
460
import Ptap from "~/views/Public/Ptap";
zxg committed
461 462

export default {
463
    components: { "c-ptap": Ptap },
zxg committed
464 465
    inject: ['root'],
    props:["model","codes"],
466
    mixins: [commonProcess],
zxg committed
467 468
    data(){
        return {
huangxin committed
469
            flag:true,
470 471 472 473 474
            docprbrol: [
        { label: "Advising Bank", value: "ADV" },
        { label: "Beneficiary", value: "BEN" },
        { label: "Presenter(PRP)", value: "PRB" },
    ],
zxg committed
475

jianglong committed
476
        };
zxg committed
477
    },
huangxin committed
478 479 480 481 482 483 484 485 486 487 488 489 490
    watch:{
        "model.bddgrp.rec.advtyp":function(){
            if(this.model.bddgrp.rec.advtyp=='750'){
                this.model.bddgrp.rec.advdat="";
            }
            else if(this.model.bddgrp.rec.advtyp=='754'){
                this.model.bddgrp.rec.disdat="";
            }
            else if (this.model.bddgrp.rec.advtyp=='oth'){
                this.model.bddgrp.rec.disdat="";
                this.model.bddgrp.rec.advdat="";
            }
        },
491 492 493 494 495 496 497
        "model.bddgrp.rec.docprbrol":function(){
            if(this.model.bddgrp.rec.docprbrol=='ADV'){
                this.flag=true;
            }
            else if(this.model.bddgrp.rec.docprbrol=='BEN'){
                this.flag=true;
            }
huangxin committed
498 499 500
            else if(this.model.bddgrp.rec.docprbrol=='PRB'){
                this.flag=false;
            }
501 502

        },
huangxin committed
503 504

    },
zxg committed
505 506 507 508 509 510 511
    methods:{...Event},
    created:function(){

    }
}
</script>
<style>
512 513 514 515 516 517 518 519
/* .change1{
    position: relative;
    margin-top: 52px;
}
.change{
    position: relative;
    background-color: #ccc;
 } */
zxg committed
520
</style>