Davp.vue 17.1 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 24
            <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"
                  @click="onSeainf"
                >
                <span style="font-family:'宋体';font-weight:bold">i</span>
                </c-button>
              </template>
           </c-fullbox>
zxg committed
25 26 27 28 29 30
                </el-form-item>
            </c-col>
                             
            <c-col :span="12">
                    <el-form-item label="摘要" prop="didgrp.rec.nam">
                        <c-input  
31
                        disabled
zxg committed
32 33 34 35 36 37 38 39
                            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>
         <!--左部-->
40
         <c-row>
zxg committed
41 42 43 44 45
        <c-col :span="12">
            <c-col :span="24">
                <c-col :span="12">
                    <el-form-item label="信用证金额" prop="didgrp.cbs.nom1.cur">
                        <c-select 
46
                        disabled
zxg committed
47 48 49
                            v-model="model.didgrp.cbs.nom1.cur" 
                            style="width:100%" 
                            placeholder="请选择金额类型"
50 51 52 53 54 55 56 57 58
                        >
                        <el-option
                    v-for="item in codes.cur"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
            >
            </el-option>
                        </c-select>
zxg committed
59 60 61 62
                    </el-form-item>
                </c-col>
                            
                <c-col :span="12">
63
                    <el-form-item label="" prop="didgrp.cbs.nom1.amt" label-width="5px">
zxg committed
64
                        <c-input  
65
                        disabled
zxg committed
66 67 68 69 70 71 72 73 74
                            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  
75
                        disabled
zxg committed
76 77 78
                            v-model="model.didgrp.cbs.opn1.cur" 
                            maxlength="3"  
                            placeholder="请选择金额类型"
79 80 81 82 83 84 85 86 87
                        >
                        <el-option
                    v-for="item in codes.cur"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
            >
            </el-option>
                        </c-select>
zxg committed
88 89 90
                    </el-form-item>
                </c-col>
                <c-col :span="12">
91 92 93
                    <el-form-item label="" prop="didgrp.cbs.opn1.amt" label-width="5px">
                        <c-input 
                        disabled 
zxg committed
94 95 96 97 98 99 100 101 102 103
                            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  
104
                    disabled
zxg committed
105 106 107 108 109 110 111 112 113 114
                        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 
115
                    disabled
zxg committed
116 117 118
                        v-model="model.didgrp.rec.avbby" 
                        style="width:100%" 
                        placeholder="请选择兑付方式"
119 120
                    >
                    <el-option
121
                    v-for="item in codes.avbby0"
122 123 124 125 126 127
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
            >
            </el-option>
                    </c-select>
zxg committed
128 129 130
                </el-form-item>
            </c-col>

131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153
            <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
154

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

167 168 169 170 171 172 173 174 175 176
        <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
177 178 179 180

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

198 199
            
            <!--右边-->
zxg committed
200 201 202 203
            <c-col :span="12">
            <c-col :span="24">
                    <el-form-item label="申请人" prop="bddgrp.apl.pts.ref">
                        <c-input  
204
                        disabled
zxg committed
205 206 207 208 209 210 211 212 213 214
                            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  
215
                    disabled
zxg committed
216 217 218 219 220 221 222 223 224 225
                        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  
226
                    disabled
zxg committed
227 228 229 230 231 232 233 234 235 236
                        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  
237
                    disabled
zxg committed
238 239 240 241 242 243 244 245 246 247
                        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  
248
                    disabled
zxg committed
249 250 251 252 253 254 255 256 257 258
                        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  
259
                    disabled
zxg committed
260 261 262 263 264 265
                        v-model="model.bddgrp.prb.pts.nam" 
                        maxlength="40"  
                        placeholder="请输入Reference"
                    ></c-input>
                </el-form-item>
            </c-col>
266 267 268 269 270
        </c-col>
        </c-row>

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

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

            <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"
307
                    :code="advtyp"
308 309 310 311 312 313 314 315
                ></c-select>
                </el-form-item>
            </c-col>
                                        
                                        
            <c-col :span="12">
                <el-form-item label="Payment" prop="bddgrp.rec.advdat">
                    <c-date-picker 
316
                    :disabled="model.bddgrp.rec.advtyp=='750' || model.bddgrp.rec.advtyp=='oth'"
317 318 319 320 321 322 323 324 325 326
                        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">
327 328
                    <c-date-picker
                    :disabled="model.bddgrp.rec.advtyp=='754' || model.bddgrp.rec.advtyp=='oth'" 
329 330 331 332 333 334 335 336
                        type="date"  
                        v-model="model.bddgrp.rec.disdat" 
                        style="width:100%"  
                        placeholder="请选择Discrep. advised on"
                    ></c-date-picker>
                </el-form-item>
            </c-col>
                        
337
            <!-- <c-col :span="24">
338 339 340 341 342 343 344 345 346
                <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>   
347
            </c-col>  -->
348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365
            </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" >
zxg committed
366 367 368 369 370
                <el-form-item label="Presented" prop="bddgrp.rec.docprbrol">
                    <c-select 
                    v-model="model.bddgrp.rec.docprbrol" 
                    style="width:100%" 
                    placeholder="请选择Presented by"
371 372 373 374 375 376 377 378 379
                >
                <el-option
              v-for="item in codes.docprbrol"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
                </c-select>
zxg committed
380 381 382
                </el-form-item>
            </c-col>

383
            <!-- <c-col :span="24" >
zxg committed
384 385 386 387 388 389 390
                <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>
391
            </c-col> -->
zxg committed
392

393 394 395 396 397 398 399 400 401 402 403 404 405 406 407

            <c-col :span="24">
        <c-ptap
          :model="model"
          :argadr="{
            title: 'ExtKey',
            grp: 'bddgrp',
            rol: 'prb',
          }"
          :disabled="true"
          :onlySearch="true"
        >
        </c-ptap>
      </c-col>
            <!-- <c-col :span="24" >
408
            <c-col :span="19">
zxg committed
409 410 411 412 413
                <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>

414 415 416 417 418 419 420 421 422 423
            <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
424 425
                    Details
                </c-button>
426
                </c-col>
427
                </c-col> -->
428

zxg committed
429
                  
430
            <c-col :span="24" >
zxg committed
431
                <el-form-item label="名称" prop="bddgrp.prb.namelc">
432
                    <c-input disabled type="textarea" v-model="model.bddgrp.prb.namelc" maxlength="35" show-word-limit placeholder="请输入名称" ></c-input>
zxg committed
433 434 435
                </el-form-item>
            </c-col>

436
            <c-col :span="24" class="change">
zxg committed
437 438 439 440
                <el-form-item label="地址" prop="bddgrp.prb.adrelc">
                    <c-input type="textarea" v-model="model.bddgrp.prb.adrelc" maxlength="35" show-word-limit placeholder="请输入地址" ></c-input>
                </el-form-item>
            </c-col>
441 442 443 444
            </c-col>
            </el-row>


zxg committed
445 446 447 448 449

    </div>
</template>
<script>
import Api from "~/service/Api"
450
import commonProcess from "~/mixin/commonProcess";
zxg committed
451 452
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Ditdav/Event"
453
import Ptap from "~/views/Public/Ptap";
zxg committed
454 455

export default {
456
    components: { "c-ptap": Ptap },
zxg committed
457 458
    inject: ['root'],
    props:["model","codes"],
459
    mixins: [commonProcess],
zxg committed
460 461
    data(){
        return {
462 463 464 465 466
            advtyp: [
        { label: "Advice of Discrepancy (MT750)", value: "750" },
        { label: "Advice of Payment (MT754)", value: "754" },
        { label: "Other", value: "oth" },
    ],
zxg committed
467

jianglong committed
468
        };
zxg committed
469
    },
huangxin committed
470 471 472 473 474 475 476 477 478 479 480 481 482 483 484
    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="";
            }
        },

    },
zxg committed
485 486 487 488 489 490 491
    methods:{...Event},
    created:function(){

    }
}
</script>
<style>
492 493 494 495 496 497 498 499
/* .change1{
    position: relative;
    margin-top: 52px;
}
.change{
    position: relative;
    background-color: #ccc;
 } */
zxg committed
500
</style>