Utlp.vue 22.1 KB
Newer Older
jianglong committed
1
<template>
jianglong committed
2 3
  <div class="eibs-tab">
    <c-row>
4
      <!-- 顶端,从左往右 -->
jianglong committed
5 6 7 8
      <!-- <c-col :span="22" :offset="1"> -->
      <c-col :span="12">
        <c-row>
          <c-col :span="15">
9 10 11
            <el-form-item 
            label="信用证参考号" 
            prop="didgrp.rec.ownref">
jianglong committed
12 13 14 15 16
              <c-input
                :disabled="true"
                v-model="model.didgrp.rec.ownref"
                maxlength="16"
                placeholder="请输入参考号"
17
                style="width: 95%"
jianglong committed
18 19 20 21
              ></c-input>
            </el-form-item>
          </c-col>

22
          <c-col :span="9" >
jianglong committed
23 24 25 26 27 28
            <el-form-item
              label="到期日"
              prop="didgrp.rec.expdat"
            >
              <c-date-picker
                :disabled="true"
29
                style="width: 100%"
jianglong committed
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
                type="date"
                v-model="model.didgrp.rec.expdat"
                placeholder="请选择到期日"
              ></c-date-picker>
            </el-form-item>
          </c-col>
        </c-row>
      </c-col>

      <c-col :span="12">
        <c-col :span="13">
          <el-form-item label="信用证余额" prop="didgrp.cbs.opn1.cur">
            <c-select
              disabled
              v-model="model.didgrp.cbs.opn1.cur"
              style="width: 95%"
              placeholder="请选择币种"
            >
              <el-option
                v-for="item in codes.cur"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="11">
          <el-form-item
            style="text-align: left"
            label-width="0"
            prop="didgrp.cbs.opn1.amt"
          >
            <c-input-currency
              disabled
              v-model="model.didgrp.cbs.opn1.amt"
              style="text-align: left; width: 100%"
              placeholder="请输入信用证金额"
            ></c-input-currency>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="12">
        <el-form-item label="单据参考号" prop="bddgrp.rec.ownref">
          <c-input
            :disabled="true"
            v-model="model.bddgrp.rec.ownref"
            maxlength="16"
            placeholder="请输入单据参考号"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="12">
        <el-form-item label="摘要" prop="bddgrp.rec.nam">
          <c-input
            :disabled="true"
            v-model="model.bddgrp.rec.nam"
            maxlength="40"
            placeholder="请输入摘要"
          ></c-input>
        </el-form-item>
      </c-col>
    </c-row>

97
<!-- ---------------------------------------------------------------------------------------------------------------- -->
jianglong committed
98 99 100
    <c-row>
      <c-col :span="12">
        <c-row>
101 102 103 104 105 106 107 108 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
          <c-col :span="24">
            <c-col :span="13">
              <el-form-item label="单据金额" prop="bddgrp.cbs.max.cur">
                <c-select
                  disabled
                  v-model="model.bddgrp.cbs.max.cur"
                  style="width: 95%"
                  placeholder="请选择币种"
                >
                  <el-option
                    v-for="item in codes.cur"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  >
                  </el-option>
               </c-select>
              </el-form-item>
            </c-col>
            <c-col :span="11">
              <el-form-item
                style="text-align: left"
                label-width="0"
                prop="bddgrp.cbs.max.amt">
                <c-input-currency
                  disabled
                  v-model="model.bddgrp.cbs.max.amt"
                  style="text-align: left; width: 100%"
                  placeholder="请输入单据金额"
                ></c-input-currency>
              </el-form-item>
            </c-col>
          </c-col>
jianglong committed
134

135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
          <c-col :span="24">
            <c-col :span="13">
              <el-form-item label="单据余额" prop="bddgrp.cbs.opn1.cur">
                <c-select
                  disabled
                  v-model="model.bddgrp.cbs.opn1.cur"
                  style="width: 95%"
                  placeholder="请选择币种"
                >
                  <el-option
                    v-for="item in codes.cur"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  >
                  </el-option>
                </c-select>
              </el-form-item>
            </c-col>
            <c-col :span="11">
              <el-form-item
                style="text-align: left"
                label-width="0"
                prop="bddgrp.cbs.opn1.amt"
jianglong committed
159
              >
160 161 162 163 164 165 166 167 168 169 170 171 172 173
                <c-input-currency
                  disabled
                  v-model="model.bddgrp.cbs.opn1.amt"
                  style="text-align: left; width: 100%"
                  placeholder="请输入单据余额"
                ></c-input-currency>
              </el-form-item>
            </c-col>
          </c-col>
          
            
          
      
        </c-row>
jianglong committed
174
      </c-col>
175 176 177 178 179 180 181 182 183 184 185 186
      
      <c-col :span="12">
        <c-col :span="24">
                <el-form-item label="申请人编号" prop="bddgrp.apl.pts.ref">
                <c-input
                    v-model="model.bddgrp.apl.pts.ref"
                    maxlength="16"
                    disabled
                    placeholder="请输入申请人编号"
                ></c-input>
                </el-form-item>
            </c-col>
jianglong committed
187

188 189 190 191 192 193 194 195 196 197
            <c-col :span="24">
                <el-form-item label="申请人名称" prop="bddgrp.apl.pts.nam">
                <c-input
                    v-model="model.bddgrp.apl.pts.nam"
                    maxlength="40"
                    disabled
                    placeholder="申请人名称"
                ></c-input>
                </el-form-item>
            </c-col>
jianglong committed
198 199
      </c-col>

200
      <!-- <c-col :span="12">
jianglong committed
201 202 203 204 205
        <m-ptsmsg
          :model="model"
          :disabled="true"
          :argadr="{ title: '申请人', url: 'bddgrp.apl.pts' }"
        ></m-ptsmsg>
206 207
      </c-col> -->

jianglong committed
208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 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 252 253 254 255 256 257 258 259 260 261 262 263 264 265
    </c-row>

    <c-row>
      <c-col :span="12">
        <c-row>
          <c-col :span="12">
            <el-form-item label="到单日期" prop="bddgrp.rec.rcvdat">
              <c-date-picker
                :disabled="true"
                type="date"
                v-model="model.bddgrp.rec.rcvdat"
                style="width: 100%"
                placeholder="请选择到期日"
              ></c-date-picker>
            </el-form-item>
          </c-col>

          <c-col :span="12">
            <el-form-item label="远期起算日" prop="bddgrp.rec.stadat">
              <c-date-picker
                :disabled="true"
                type="date"
                v-model="model.bddgrp.rec.stadat"
                style="width: 100%"
                placeholder=""
              ></c-date-picker>
            </el-form-item>
          </c-col>
        </c-row>

        <c-row>
          <c-col :span="12">
            <el-form-item label="单据到期日" prop="bddgrp.rec.matdat">
              <c-date-picker
                :disabled="true"
                type="date"
                v-model="model.bddgrp.rec.matdat"
                style="width: 100%"
                placeholder="请选择单据到期日"
              ></c-date-picker>
            </el-form-item>
          </c-col>

          <c-col :span="12">
            <el-form-item label="远期期限" prop="bddgrp.rec.tenmaxday">
              <c-input
                :disabled="true"
                v-model.number="model.bddgrp.rec.tenmaxday"
                placeholder="请输入"
                style="width: 100%"
                maxlength="3"
              ></c-input>
            </el-form-item>
          </c-col>
        </c-row>
      </c-col>

      <c-col :span="12">
266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289
        <c-col :span="24">
          <el-form-item label="受益人编号" prop="bddgrp.ben.pts.ref">
            <c-input
                v-model="model.bddgrp.ben.pts.ref"
                maxlength="16"
                disabled
                placeholder="请输入受益人编号"
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="受益人名称" prop="bddgrp.ben.pts.nam">
            <c-input
              v-model="model.bddgrp.ben.pts.nam"
              maxlength="40"
              disabled
              placeholder="受益人名称"
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <!-- <c-col :span="12">
jianglong committed
290 291 292
        <m-ptsmsg
          :disabled="true"
          :model="model"
293 294 295 296 297
          :argadr="{ 
            title: '受益人', 
            rol: 'rec',
            grp: 'bddgrp'
            }"
jianglong committed
298
        ></m-ptsmsg>
299
      </c-col> -->
jianglong committed
300 301 302 303 304 305 306
    </c-row>

    <c-row>
      <c-col :span="12">
        <c-row>
          <c-col :span="24">
            <el-form-item label="单据类型" prop="bddgrp.rec.docflg">
307 308 309 310 311 312 313
              <c-select 
                  v-model="model.bddgrp.rec.docflg" 
                  style="width:100%" 
                  placeholder="请选择单据类型"
                  :code="codes.brdtyp"
                  disabled>
                  
jianglong committed
314 315 316 317 318 319 320 321 322 323
              </c-select>
            </el-form-item>
          </c-col>
          <c-col :span="24">
            <el-form-item label="单据状态" prop="bddgrp.rec.docsta">
              <c-select
                :disabled="true"
                v-model="model.bddgrp.rec.docsta"
                style="width: 100%"
                placeholder="请选择单据状态"
324
                :code="codes.docsta"
jianglong committed
325 326 327 328 329 330 331 332 333 334 335 336 337 338 339
              >
                <el-option
                  v-for="item in codes.bdd_docsta"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                >
                </el-option>
              </c-select>
            </el-form-item>
          </c-col>
        </c-row>
      </c-col>

      <c-col :span="12">
340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363
        <c-col :span="24">
          <el-form-item label="交易行编号" prop="bddgrp.prb.pts.ref">
              <c-input
              v-model="model.bddgrp.prb.pts.ref"
              maxlength="40"
              placeholder="请输入交易行编号"
              disabled
              ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="交易行名称" prop="bddgrp.prb.pts.nam">
              <c-input
              v-model="model.bddgrp.prb.pts.nam"
              maxlength="40"
              placeholder="请输入交易行名称"
              disabled>
              </c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <!-- <c-col :span="12">
jianglong committed
364 365 366 367 368
        <m-ptsmsg
          :disabled="true"
          :model="model"
          :argadr="{ title: '交单行', url: 'bddgrp.prb.pts' }"
        ></m-ptsmsg>
369
      </c-col> -->
jianglong committed
370 371
    </c-row>

372

jianglong committed
373 374 375 376

    <c-row>
      <c-col :span="12">
        <c-row>
377
          <!-- <m-ptsadr
jianglong committed
378 379 380 381 382 383
            :model="model"
            :argadr="{
              title: '交单行',
              url: 'bddgrp.prb.pts',
              rol: 'bddgrp.rec.docprbrol',
            }"
384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415
          ></m-ptsadr> -->
          <c-col :span="24">
            <el-form-item label="交单行" prop="bddgrp.rec.docprbrol">
                <c-select
                    v-model="model.bddgrp.rec.docprbrol"
                    placeholder="请输入受益人账号"
                    style="width: 100%"
                    :code="codes.docprbrol"
                    disabled
                >
                </c-select>
            </el-form-item>
          </c-col>
          <c-col>
            <el-form-item label="BIC" prop="bddgrp.prb.pts.extkey">
                <c-input
                v-model="model.bddgrp.prb.pts.extkey"
                maxlength="40"
                placeholder="请输入BIC"
            ></c-input>
            </el-form-item>
          </c-col>
            
          <c-ptapdome
            :model="model"
            :disabledJigomc="true"
            :argadr="{
            title: '交易行',
            rol: 'prb',
            grp: 'bddgrp'
            }">
            </c-ptapdome>
jianglong committed
416 417 418
        </c-row>
        <br />
        <c-row>
419 420
          <!--  有大问题 -->
          <!-- <m-ptsadr        
jianglong committed
421 422 423 424 425 426
            :model="model"
            :argadr="{
              title: '付款人',
              url: 'bdtp.oth.pts',
              rol: 'bddgrp.rec.payrol',
            }"
427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 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
          ></m-ptsadr> -->
          <c-col :span="24">
                <el-form-item label="付款人" prop="bddgrp.rec.payrol">
                    <c-select 
                        v-model="model.bddgrp.rec.payrol" 
                        style="width:100%" 
                        placeholder="请选择Payer"
                        disabled
                        :code="codes.payrol"
                        >
                        
                    </c-select>
                </el-form-item>
            </c-col>

            <c-col :span="20">
                <el-form-item label="External Key of Address" prop="bdtp.oth.pts.extkey">
                    <c-input  
                        v-model="model.bdtp.oth.pts.extkey" 
                        maxlength="16"  
                        style="width: 95%"
                        placeholder="请输入External Key of Address"
                        disabled></c-input>
                </el-form-item>
            </c-col>

            <c-col :span="1">
                <c-button
                    style="margin:0 10px 0 0;padding: 0 10px;"
                    class="searchButton"
                    size="small"
                    type="primary"
                    icon="el-icon-search"
                    @click="onSeainf(`bdtp.oth.pts.extkey`)"
                ></c-button>
            </c-col>
            <c-col :span="3" style="text-align: right">
                <c-button
                    style="margin:0 0"
                    class="detailsButton"
                    size="small"
                    type="primary"
                   
                >
                    详情
                </c-button>
            </c-col>

            <c-col :span="24">
                <el-form-item
                    prop="bdtp.oth.namelc"
                    :label="`付款人名称`"
                    :prop="`bdtp.oth.namelc`">
                    <c-input
                        type="textarea"
                        v-model="model.bdtp.oth.namelc"
                        :placeholder="'请输入付款人名称'"
                        :rows="2"
                        maxlength="35"
                        show-word-limit
                        disabled
                    ></c-input>
                </el-form-item>
            </c-col>

            <c-col :span="24">
                <el-form-item
                    label="付款人地址"
                    :prop="`bdtp.oth.pts.adrblk`"
                >
                    <c-input
                        type="textarea"
                        :rows="4"
                        v-model="model.bdtp.oth.pts.adrblk"
                        maxlength="35"
                        show-word-limit
                        placeholder="请输入付款人地址"
                        disabled
                        
                    ></c-input>
                </el-form-item>
            </c-col>
jianglong committed
509 510 511 512 513 514 515 516 517 518 519
        </c-row>
      </c-col>

      <c-col :span="12">
        <c-col>
          <el-form-item label="通知日期" prop="bddgrp.rec.orddat">
            <c-date-picker
              type="date"
              v-model="model.bddgrp.rec.orddat"
              style="width: 100%"
              placeholder=""
520 521
              :disabled="model.advrefflg != 'X' "
              
jianglong committed
522 523 524 525 526 527 528 529 530
            ></c-date-picker>
          </el-form-item>

          <el-form-item label="SWIFT发送时间" prop="swtdat">
            <c-date-picker
              type="date"
              v-model="model.swtdat"
              style="width: 100%"
              placeholder="请选择SWIFT发送时间"
531 532
              :disabled="model.bddgrp.rec.advdocflg !='X' "
              
jianglong committed
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
            ></c-date-picker>
          </el-form-item>

          <el-form-item label="寄单索款编号" prop="bddgrp.rec.sndref">
            <c-input
              v-model="model.bddgrp.rec.sndref"
              maxlength="20"
              placeholder="请输入寄单索款编号"
            ></c-input>
          </el-form-item>

          <c-row>
            <c-col :span="10">
              <el-form-item label="" prop="advrefflg">
                <c-checkbox v-model="model.advrefflg">出具拒付函</c-checkbox>
              </el-form-item>
            </c-col>

            <c-col :span="14">
              <el-form-item label="单据处理类型" prop="bddgrp.rec.bilpro">
                <c-select
                  v-model="model.bddgrp.rec.bilpro"
                  placeholder="请选择单据处理类型"
                >
                  <el-option
                    v-for="item in codes.test"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  >
                  </el-option>
                </c-select>
              </el-form-item>
            </c-col>
          </c-row>

          <c-row>
            <c-col :span="7">
              <el-form-item label="" prop="advbwdflg">
                <c-checkbox style="width: 100%" v-model="model.advbwdflg"
573
                disabled
jianglong committed
574 575 576 577 578 579
                  >是否发送213拒付报文</c-checkbox
                >
              </el-form-item>
            </c-col>
            <c-col :span="6">
              <el-form-item label="" prop="advdisflg">
580 581 582
                <c-checkbox 
                style="width: 100%" 
                v-model="advdisflg"
jianglong committed
583 584 585 586 587 588
                  >收到电提不符点</c-checkbox
                >
              </el-form-item>
            </c-col>
            <c-col :span="8">
              <el-form-item label="" prop="mtabut.clsflg">
589 590 591 592
                <c-checkbox 
                v-model="clsflg" 
                disabled 
                >闭卷</c-checkbox>
jianglong committed
593 594 595 596 597 598
              </el-form-item>
            </c-col>
          </c-row>

          <c-row>
            <c-col :span="6">
599
              <el-form-item label="" prop="bddgrp.rec.advdocflg">
jianglong committed
600 601
                <c-checkbox
                  style="width: 100%"
602
                  v-model="advdocflg"
jianglong committed
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
                  >退单</c-checkbox
                >
              </el-form-item>
            </c-col>

            <c-col :span="24 - 6">
              <el-form-item label="退单方式" prop="rejtype">
                <c-select
                  v-model="model.rejtype"
                  style="width: 100%"
                  placeholder="请选择退单方式"
                >
                  <el-option
                    v-for="item in codes.rejtype"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  >
                  </el-option>
                </c-select>
              </el-form-item>
            </c-col>
          </c-row>

          <el-form-item label="拒付声明">
            <c-input
              type="textarea"
              :cols="35"
              :rows="3"
              v-model="model.bddgrp.blk.disdoc"
              maxlength="105"
              show-word-limit
              placeholder="请输入拒付声明"
636
              :disabled = "model.bddgrp.blk.disdocflg!='X'"
jianglong committed
637 638 639 640 641 642 643 644 645
            ></c-input>
          </el-form-item>

          <c-row>
            <c-col :span="7">
              <el-form-item label="" prop="bddgrp.blk.disdocflg">
                <c-checkbox
                  style="width: 100%"
                  v-model="model.bddgrp.blk.disdocflg"
646
                  
jianglong committed
647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662
                  >拒付声明修改</c-checkbox
                >
              </el-form-item>
            </c-col>
            <c-col :span="6">
              <el-form-item label="" prop="rejpenins">
                <c-checkbox style="width: 100%" v-model="model.rejpenins"
                  >拒付且听候处理</c-checkbox
                >
              </el-form-item>
            </c-col>
          </c-row>
        </c-col>
      </c-col>
    </c-row>
  </div>
jianglong committed
663 664 665
</template>
<script>
import Api from "~/service/Api";
wangren committed
666
import commonProcess from "~/mixin/commonProcess";
jianglong committed
667 668
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Bdtdcr/Event";
jianglong committed
669 670 671 672 673

import Ptsmsg from "~/views/Public/Ptsmsg";
import Ptsadr from "~/views/Public/Ptsadr";
import Amtpanl from "~/views/Public/Amtpanl";
//import Utils from "~/utils";
jianglong committed
674
import Ptap from "~/views/Public/Ptap";
675
import PtapDome from "~/views/Public/PtapDome";
jianglong committed
676 677

export default {
jianglong committed
678 679 680 681 682
  components: {
    "c-ptap": Ptap,
    "m-ptsmsg": Ptsmsg,
    "m-ptsadr": Ptsadr,
    "c-amtpanl": Amtpanl,
683
    "c-ptapdome": PtapDome,
jianglong committed
684
  },
jianglong committed
685 686
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
687
  mixins: [commonProcess],
jianglong committed
688 689 690
  data() {
    return {};
  },
691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727
  computed: {
    //advdocflg,advdisflg互斥,但不会动态同时改变
    advdocflg: {
      get() {
        return this.model.bddgrp.rec.advdocflg === "X";
      },
      set(val) {
        this.model.bddgrp.rec.advdocflg = val ? "X" : "";
      },
    },
    advdisflg: {
      get(){
        if(
          this.model.bddgrp.rec.advdocflg==="X"){
          return false;
        }else {
          return this.model.advdisflg === "X";
        }
      },
      set(val){
        this.model.advdisflg = val ? "X" : "";
      },
    },
    rejpenins:{
      get() {
        return this.model.rejpenins === "X";
      },
      set(val) {
        this.model.rejpenins = val ? "X" : "";
      },
    },
    clsflg: {
      get() {
        return !(this.model.rejpenins === "X");
      }
    },
  },
jianglong committed
728 729 730 731
  methods: {
    ...Event,
    opn1CurEvent() {
      this.executeDefault("didgrp.cbs.opn1.cur").then((res) => {
吴佳 committed
732
        if ((res.respCode == SUCCESS)) {
jianglong committed
733 734 735 736 737 738 739
          Utils.copyValueFromVO(this.model, res.data);
        }
      });
    },

    changed(e) {},
  },
jianglong committed
740 741 742 743 744
  created: function () {},
};
</script>
<style>
</style>