Utlp.vue 20.4 KB
Newer Older
liushikai committed
1 2
<template>
  <div class="eibs-tab">
3
    <c-col :span="11">
liushikai committed
4
      <c-col :span="13">
liushikai committed
5
        <el-form-item label="信用证参考号" prop="didgrp.rec.ownref">
6 7 8 9
          <c-input
            v-model="model.didgrp.rec.ownref"
            maxlength="16"
            placeholder="请输入信用证参考号"
10
            disabled
11 12 13
          ></c-input>
        </el-form-item>
      </c-col>
liushikai committed
14
      <c-col :span="2"
15 16
        ><c-button
          type="primary"
liushikai committed
17 18 19 20
          style="margin: 0 10px; padding: 0 10px"
        >
        <span style="font-size:15px;font-family:'宋体';font-weight:bold">i</span>
        </c-button
21 22 23 24 25 26 27 28 29 30 31 32
      ></c-col>
      <c-col :span="9">
        <el-form-item
          label="到期日"
          prop="didgrp.rec.expdat"
          label-width="70px"
        >
          <c-date-picker
            type="date"
            v-model="model.didgrp.rec.expdat"
            style="width: 100%"
            placeholder="请选择Date of Expiry"
33
            disabled
34 35 36 37 38 39
          ></c-date-picker>
        </el-form-item>
      </c-col>
    </c-col>
    <c-col :span="11" :offset="1">
      <c-col :span="13">
wangguangchao committed
40
        <el-form-item label="信用证余额" prop="didgrp.cbs.opn1.cur">
41 42 43 44 45
          <c-input
            v-model="model.didgrp.cbs.opn1.cur"
            style="width: 95%"
            maxlength="3"
            placeholder="请输入Currency"
46
            disabled
47 48 49 50 51 52 53 54 55
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="11">
        <el-form-item label="" prop="didgrp.cbs.opn1.amt" label-width="0">
          <c-input
            v-model="model.didgrp.cbs.opn1.amt"
            placeholder="请输入Balance"
56
            disabled
57 58 59 60
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>
liushikai committed
61 62 63
    <c-col :span="24" style="height:13px">
           <el-divider></el-divider>
       </c-col>
64 65

    <c-col :span="11">
liushikai committed
66
      <c-col :span="13">
liushikai committed
67
        <el-form-item label="单据参考号" prop="bddgrp.rec.ownref">
68 69 70 71
          <c-input
            v-model="model.bddgrp.rec.ownref"
            maxlength="16"
            placeholder="请输入单据参考号"
72
            disabled
73 74 75 76 77 78
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="2" style="text-align: right">
        <c-button
          type="primary"
liushikai committed
79 80 81 82
          style="margin: 0 10px; padding: 0 10px"
        >
        <span style="font-size:15px;font-family:'宋体';font-weight:bold">i</span>
        </c-button>
83 84 85 86
      </c-col>
    </c-col>

    <c-col :span="11" :offset="1">
liushikai committed
87
      <el-form-item label="单据摘要" prop="bddgrp.rec.nam">
88 89 90 91
        <c-input
          v-model="model.bddgrp.rec.nam"
          maxlength="40"
          placeholder="请输入Name of Bill Contract"
92
          disabled
93 94 95 96 97 98 99 100 101 102 103 104 105
        ></c-input>
      </el-form-item>
    </c-col>

    <!-- ==========middle-left======== -->
    <c-col :span="11">
      <c-col :span="24">
        <c-col :span="13">
          <el-form-item label="单据金额" prop="bddgrp.cbs.max.cur">
            <c-select
              v-model="model.bddgrp.cbs.max.cur"
              style="width: 95%"
              placeholder="请选择单据金额"
106
              disabled
107 108 109 110 111 112 113 114 115 116
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="11">
          <el-form-item label="" prop="bddgrp.cbs.max.amt" label-width="0">
            <c-input
              v-model="model.bddgrp.cbs.max.amt"
              placeholder="请输入单据金额"
117
              disabled
118 119 120 121 122 123 124 125 126 127 128 129
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="13">
          <el-form-item label="单据余额" prop="bddgrp.cbs.opn1.cur">
            <c-select
              v-model="model.bddgrp.cbs.opn1.cur"
              style="width: 95%"
              placeholder="请选择单据余额"
130
              disabled
131 132 133 134 135 136 137 138 139
            ></c-select>
          </el-form-item>
        </c-col>

        <c-col :span="11">
          <el-form-item label="" prop="bddgrp.cbs.opn1.amt" label-width="0">
            <c-input
              v-model="model.bddgrp.cbs.opn1.amt"
              placeholder="请输入Balance"
140
              disabled
141 142 143 144 145 146 147 148 149 150 151 152
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
        <c-col :span="13">
          <el-form-item label="到单日期" prop="bddgrp.rec.rcvdat">
            <c-date-picker
              type="date"
              v-model="model.bddgrp.rec.rcvdat"
              style="width: 95%"
              placeholder="请选择到单日期"
153
              disabled
154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
            ></c-date-picker>
          </el-form-item>
        </c-col>

        <c-col :span="11">
          <el-form-item
            label="远期起算日"
            prop="bddgrp.rec.stadat"
            label-width="110px"
          >
            <c-date-picker
              type="date"
              v-model="model.bddgrp.rec.stadat"
              style="width: 100%"
              placeholder="请选择Start Date"
169
              disabled
170 171 172 173 174 175 176 177 178 179 180 181 182
            ></c-date-picker>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="13">
          <el-form-item label="单据到期日" prop="bddgrp.rec.matdat">
            <c-date-picker
              type="date"
              v-model="model.bddgrp.rec.matdat"
              style="width: 95%"
              placeholder="请选择Maturity Date"
183
              disabled
184 185 186 187 188 189 190 191 192 193 194 195 196
            ></c-date-picker>
          </el-form-item>
        </c-col>

        <c-col :span="11">
          <el-form-item
            label="远期期限"
            prop="bddgrp.rec.tenmaxday"
            label-width="110px"
          >
            <c-input
              v-model="model.bddgrp.rec.tenmaxday"
              placeholder="请输入单据到期日"
197
              disabled
198 199 200 201 202 203 204 205 206 207
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
        <el-form-item label="单据类型" prop="bddgrp.rec.docflg">
          <c-select
            v-model="model.bddgrp.rec.docflg"
            style="width: 100%"
            placeholder="请选择单据类型"
208
            disabled
209
          >
210 211 212 213 214 215 216
           <el-option
              v-for="item in codes.brdtyp"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
217 218 219 220 221 222 223 224 225
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="单据状态" prop="bddgrp.rec.docsta">
          <c-select
            v-model="model.bddgrp.rec.docsta"
            style="width: 100%"
            placeholder="请选择单据状态"
226
            disabled
227
          >
228 229 230 231 232 233 234
          <el-option
              v-for="item in codes.docsta"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
             </el-option>
235 236 237 238 239 240 241
          </c-select>
        </el-form-item>
      </c-col>
    </c-col>
    <!-- ==========middle-right======== -->
    <c-col :span="11" :offset="1">
      <c-col :span="24">
wangguangchao committed
242
        <el-form-item label="申请人编号" prop="bddgrp.apl.pts.ref">
243 244 245 246
          <c-input
            v-model="model.bddgrp.apl.pts.ref"
            maxlength="16"
            placeholder="请输入申请人"
247
            disabled
248
          ></c-input>
liushikai committed
249
        </el-form-item>
250 251 252
      </c-col>

      <c-col :span="24">
liushikai committed
253
        <el-form-item label="申请人名称" prop="bddgrp.apl.pts.nam">
254 255 256 257
          <c-input
            v-model="model.bddgrp.apl.pts.nam"
            maxlength="40"
            placeholder="请输入Name of Party"
258
            disabled
259
          ></c-input>
liushikai committed
260
        </el-form-item>
261 262 263
      </c-col>

      <c-col :span="24">
wangguangchao committed
264
        <el-form-item label="受益人编号" prop="bddgrp.ben.pts.ref">
265 266 267 268
          <c-input
            v-model="model.bddgrp.ben.pts.ref"
            maxlength="16"
            placeholder="请输入受益人"
269
            disabled
270
          ></c-input>
liushikai committed
271
        </el-form-item>
272 273 274
      </c-col>

      <c-col :span="24">
liushikai committed
275
        <el-form-item label="受益人名称" prop="bddgrp.ben.pts.nam">
276 277 278 279
          <c-input
            v-model="model.bddgrp.ben.pts.nam"
            maxlength="40"
            placeholder="请输入远期期限"
280
            disabled
281 282 283 284 285
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
wangguangchao committed
286
        <el-form-item label="交单行编号" prop="bddgrp.prb.pts.ref">
287 288 289 290
          <c-input
            v-model="model.bddgrp.prb.pts.ref"
            maxlength="16"
            placeholder="请输入交单行"
291
            disabled
292
          ></c-input>
liushikai committed
293
        </el-form-item>
294 295 296
      </c-col>

      <c-col :span="24">
liushikai committed
297
        <el-form-item label="交单行名称" prop="bddgrp.prb.pts.nam">
298 299 300 301
          <c-input
            v-model="model.bddgrp.prb.pts.nam"
            maxlength="40"
            placeholder="请输入Name of Party"
302
            disabled
303 304 305 306 307
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>

308
    <c-col :span="24" style="height:10px">
liushikai committed
309 310 311
           <el-divider></el-divider>
       </c-col>

312 313
    <!-- =========bottom-left======== -->
    <c-col :span="11">
liushikai committed
314 315 316 317 318 319 320 321
      <c-col :span="22" :offset="2" style="height:24px">
            <el-form-item
                class="formItemLabel"
                label="表外信息"
                label-width="300px"
            >
            </el-form-item>
        </c-col>
322
      <c-col :span="22" :offset="2">
liushikai committed
323
        <c-istream-table :list="stmData.data" :columns="stmData.columns" :paginationShow="false">
324 325
        </c-istream-table>
      </c-col>
liushikai committed
326 327
      

328 329 330 331 332 333 334 335
      <c-col :span="24" style="margin-top: 20px">
        <c-col :span="13">
          <el-form-item label="付款金额" prop="setmod.doccur">
            <c-input
              v-model="model.setmod.doccur"
              maxlength="3"
              style="width: 95%"
              placeholder="请输入document currency"
wangguangchao committed
336
              disabled
337 338
            ></c-input>
          </el-form-item>
liushikai committed
339
        </c-col>
340 341 342 343 344 345

        <c-col :span="11">
          <el-form-item label="" prop="setmod.docamt" label-width="0">
            <c-input
              v-model="model.setmod.docamt"
              placeholder="请输入document amount"
wangguangchao committed
346
               @keyup.enter.native="commonExecuteRule('setmod.docamt')"
347 348 349 350
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>
liushikai committed
351 352 353 354 355 356 357 358

      <c-col :span="24">
        <c-col :span="13">
          <el-form-item label="扣减金额" prop="setmod.doccur">
            <c-input
              v-model="model.setmod.doccur"
              style="width: 95%"
              placeholder="请输入扣减金额"
wangguangchao committed
359
              disabled
liushikai committed
360 361 362 363 364 365 366 367 368
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="11">
          <el-form-item label="" prop="setmod.redamt" label-width="0">
            <c-input
              v-model="model.setmod.redamt"
              placeholder="请输入扣减金额"
wangguangchao committed
369
              @keyup.enter.native="commonExecuteRule('setmod.redamt')"
liushikai committed
370 371 372 373 374
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>
      
375 376 377 378 379 380 381 382
      <c-col :span="24">
        <c-col :span="13">
          <el-form-item label="扣费后付款金额" prop="setmod.doccur">
            <c-input
              v-model="model.setmod.doccur"
              maxlength="3"
              style="width: 95%"
              placeholder="请输入document currency"
wangguangchao committed
383
              disabled
384 385 386 387 388 389 390 391 392
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="11">
          <el-form-item label="" prop="setmod.setamt" label-width="0">
            <c-input
              v-model="model.setmod.setamt"
              placeholder="请输入扣费后付款金额"
wangguangchao committed
393
              disabled
394 395 396 397
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>
liushikai committed
398
      
399
      <c-col :span="24">
wangguangchao committed
400 401 402
        <el-form-item label="清算方式" prop="bddgrp.rec.clrmtd">
       
          <c-select
403
            v-model="model.bddgrp.rec.clrmtd"
wangguangchao committed
404 405
            style="width: 100%"
            placeholder="请选择清算方式"
406
            disabled
wangguangchao committed
407 408 409 410 411 412 413 414 415
          >
           <el-option
              v-for="item in codes.clrtyp"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
416 417
        </el-form-item>
      </c-col>
liushikai committed
418

419
      <c-col :span="22" :offset="2">
liushikai committed
420
        <div class="e-table-wrapper">
liushikai committed
421
          <c-table :data="model.bptbck.bptbckg" style="width: 100%" :paginationShow="false">
422 423 424 425 426 427 428 429 430 431 432 433
            <el-table-column prop="ownref" label="Reference" width="auto">
            </el-table-column>
            <el-table-column prop="opncur" label="Cur." width="auto">
            </el-table-column>
            <el-table-column prop="opnamt" label="Open Amount" width="auto">
            </el-table-column>
            <el-table-column prop="bckamt" label="Amount Paid" width="auto">
            </el-table-column>
            <el-table-column prop="butcal" label="Cal." width="auto">
            </el-table-column>
          </c-table>
          <!-- <el-pagination
liushikai committed
434 435
                 layout="prev, pager, next"
                 :total="pager.bptbck_bptbckg.total">
436 437 438
              </el-pagination> -->
        </div>
      </c-col>
liushikai committed
439
      
440 441 442
    </c-col>
    <!-- =========bottom-right======== -->
    <c-col :span="11" :offset="1">
liushikai committed
443 444
      <c-col :span="24" style="margin-top:10px;text-align:right">
        <el-form-item label-width="40px">
wangguangchao committed
445 446
          <c-checkbox v-model="model.trtcre.crefinflg" style="margin-left: 50px">融资</c-checkbox>
          <c-checkbox v-model="model.mtabut.clsflg" >闭卷</c-checkbox>
447
          <c-checkbox v-model="model.paypsb">垫款</c-checkbox>
wangguangchao committed
448 449 450
          <c-checkbox v-model="model.bddgrp.rec.frepayflg" >无偿放单</c-checkbox>
          <c-checkbox v-model="model.dftcre.dfflag" style="margin-left: 50px">同业代付</c-checkbox>
          
451 452 453
        </el-form-item>
      </c-col>

454
      <c-col :span="24">
455 456 457 458 459
        <el-form-item label="交单行" prop="bddgrp.rec.docprbrol">
          <c-select
            v-model="model.bddgrp.rec.docprbrol"
            style="width: 100%"
            placeholder="请选择Presented by"
460 461
            :code="getValues('bddgrp.rec.docprbrol')"
            @change="docprbrolChange"
462 463 464 465
          >
          </c-select>
        </el-form-item>
      </c-col>
466 467
       <c-col :span="24">
        <el-form-item label="交单行BIC" prop="bddgrp.prb.pts.extkey">
468 469 470
          <c-input
            v-model="model.bddgrp.prb.pts.extkey"
            maxlength="16"
471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514
            style="width: 100%"
            placeholder="请输入交单行BIC"
            :disabled="model.bddgrp.rec.docprbrol == 'PRB' ? false : true"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="交单行联行行号" prop="bddgrp.prb.pts.bankno">
          <c-input
            v-model="model.bddgrp.prb.pts.bankno"
            maxlength="20"
            style="width: 100%"
            placeholder="请输入交单行联行行号"
            :disabled="model.bddgrp.rec.docprbrol == 'PRB' ? false : true"
            @keyup.enter.native="showGridPromptDialog('bddgrp.prb.pts.bankno')"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="交单行联行名称(电证用)">
          <c-input
            type="textarea"
            v-model="model.bddgrp.prb.pts.jigomc"
            style="width: 100%"
            maxlength="35"
            show-word-limit
            placeholder="请输入联行名称"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="交单行地址(电证用)">
          <c-input
            type="textarea"
            v-model="model.bddgrp.prb.pts.dizhii"
            style="width: 100%"
            maxlength="35"
            show-word-limit
            placeholder="请输入交单行地址"
            :disabled="model.bddgrp.rec.docprbrol == 'PRB' ? false : true"
515 516 517
          ></c-input>
        </el-form-item>
      </c-col>
518
      <!-- <c-ptapdome
519 520 521 522
        :disabledJigomc="true"
        :disabledDizhii="true"
        :model="model"
        :argadr="{
liushikai committed
523
          title: '交单行',
524 525 526
          rol: 'apl',
          grp: 'bddgrp',
        }"
527
      ></c-ptapdome> -->
liushikai committed
528 529 530 531 532 533 534

      

      

      
      
535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640
    </c-col>

    <!-- <c-col :span="12">
      <el-form-item label="Drag  Drop Sender" prop="bdtp.didget.sdamod.dadsnd">
        <c-input
          v-model="model.bdtp.didget.sdamod.dadsnd"
          placeholder="请输入Drag  Drop Sender"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="" prop="bdtp.didget.sdamod.seainf">
        <c-input
          v-model="model.bdtp.didget.sdamod.seainf"
          placeholder="请输入"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="Drag  Drop Sender" prop="bdtp.recget.sdamod.dadsnd">
        <c-input
          v-model="model.bdtp.recget.sdamod.dadsnd"
          placeholder="请输入Drag  Drop Sender"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="" prop="bdtp.recget.sdamod.seainf">
        <c-input
          v-model="model.bdtp.recget.sdamod.seainf"
          placeholder="请输入"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <span v-text="model.bdtp.matp.mattxtlab" data-path=".bdtp.matp.mattxtlab">
      </span>
    </c-col>

    <c-col :span="12">
      <el-form-item label="Tenor Stream" prop="liaall.tenstm">
        <c-input
          v-model="model.liaall.tenstm"
          placeholder="请输入Tenor Stream"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="清算方式" prop="bddgrp.rec.clrmtd">
        <c-select
          v-model="model.bddgrp.rec.clrmtd"
          style="width: 100%"
          placeholder="请选择清算方式"
        >
        </c-select>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="Number of bank" prop="bddgrp.prb.pts.bankno">
        <c-input
          v-model="model.bddgrp.prb.pts.bankno"
          maxlength="20"
          placeholder="请输入Number of bank"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="联行名称  电证用" prop="bddgrp.prb.pts.jigomc">
        <c-input
          type="textarea"
          v-model="model.bddgrp.prb.pts.jigomc"
          maxlength="35"
          show-word-limit
          placeholder="请输入联行名称  电证用"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="currency discount paid back" prop="bptbck.dscbckcur">
        <c-input
          v-model="model.bptbck.dscbckcur"
          maxlength="3"
          placeholder="请输入currency discount paid back"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="地址  电证用" prop="bddgrp.prb.pts.dizhii">
        <c-input
          type="textarea"
          v-model="model.bddgrp.prb.pts.dizhii"
          maxlength="35"
          show-word-limit
          placeholder="请输入地址  电证用"
        ></c-input>
      </el-form-item>
    </c-col> -->
liushikai committed
641 642 643
  </div>
</template>
<script>
644
import Api from "~/service/Api";
liushikai committed
645
import CommonProcess from "~/mixin/CommonProcess";
646 647 648
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Bdtset/Event";
import PtapDome from "~/views/Public/PtapDome";
649
import Utils from "~/utils";
liushikai committed
650 651

export default {
652 653 654 655 656 657 658 659 660 661 662 663 664
  components: { "c-ptapdome": PtapDome },
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [CommonProcess],
  data() {
    return {
      stmData: {
        columns: [
          '1 1 "Type" 0 ',
          '2 2 "Dbt" 0 ',
          '3 3 "Cdt" 0 ',
          '4 4 "Cur" 0 ',
          '5 5 "Amt" 0 ',
665
          '6 6 "Mat Dat" 0 ',
666 667 668 669 670
        ],
        data: [],
      },
    };
  },
671 672 673 674
  methods: { ...Event,
   docprbrolChange(){
      this.executeRule("bddgrp.rec.docprbrol").then((res) => {
        if ((res.respCode = SUCCESS)) {
wangguangchao committed
675 676 677 678 679 680 681
          Utils.copyValueFromVO(this.model, res.data);
        }
      });
    },
    commonExecuteRule(ruleName){
     this.executeRule(ruleName).then((res) => {
        if ((res.respCode = SUCCESS)) {
682 683 684 685 686
          Utils.copyValueFromVO(this.model, res.data);
        }
      });
    },
   },
687 688
  created: function () {},
};
liushikai committed
689
</script>
liushikai committed
690 691 692 693 694 695 696 697 698 699 700 701 702
<style scoped>
.el-checkbox{
  margin-left:40px;
  margin-right:0;
}
.formItemLabel >>> .el-form-item__label{
    text-align: left;
    font-weight:bold;
}
.el-col >>> .el-divider--horizontal {
    margin-top: 1px;
}
</style>>
liushikai committed
703
</style>