CptOpnp1Common.vue 25.4 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 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 97 98 99 100 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 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 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 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 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 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 382 383 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 416 417 418 419 420 421 422 423 424 425 426 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 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 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 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 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 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885
<template>
  <c-col :span="24">
    <!-- ================底部--左================= -->
    <c-col :span="12" style="padding-right: 20px;" v-if="model.cptp.liqtyp != 'S'">
      <c-col :span="24">
        <el-form-item label="付款行" prop="cpdgrp.ori.pts.ref">
          <c-input
            v-model="model.cpdgrp.ori.pts.ref"
            maxlength="16"
            placeholder=""
            :disabled="this.model.cpdgrp.rec.swftyp == ''"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <!-- <c-col :span="18"> -->
        <c-fullbox>
          <el-form-item label="">
            <c-input
              v-model="model.cpdgrp.ori.pts.extkey"
              placeholder=""
              style="width: 100%"
              @keyup.enter.native="
                showGridPromptDialog('cpdgrp.ori.pts.extkey')
              "
              :disabled="this.model.cpdgrp.rec.swftyp == ''"
            ></c-input>
          </el-form-item>
          <template slot="footer">
            <c-button
              size="small"
              type="primary"
              icon="el-icon-search"
              style="margin: 0 10px 0 10px; padding: 0 12px"
              @click="
                showGridPromptDialog(
                  'ptsget.sdamod.seainf',
                  null,
                  null,
                  { TXT: 'cpdgrp.ori.pts.extkey' },
                  { TXT: false },
                  'doxpDialog'
                )
              "
            >
            </c-button>

            <c-button
              style="margin: 0 0"
              size="small"
              type="primary"
              @click="onSndpDet"
              disabled
            >
              详情
            </c-button>
          </template>
        </c-fullbox>
      </c-col>

      <c-col :span="24">
        <el-form-item label="">
          <c-input
            type="textarea"
            :rows="4"
            maxlength="140"
            v-model="model.cpdgrp.ori.pts.adrblk"
            show-word-limit
            placeholder="请输入"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="汇款人" prop="cpdgrp.orc.pts.ref">
          <c-input
            v-model="model.cpdgrp.orc.pts.ref"
            maxlength="16"
            placeholder=""
            :disabled="this.model.cpdgrp.rec.swftyp == ''"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="账号" prop="cpdgrp.rec.orcact">
          <c-input
            v-model="model.cpdgrp.rec.orcact"
            maxlength="35"
            placeholder="汇款人账号"
            :disabled="this.model.cpdgrp.rec.swftyp == ''"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-fullbox>
          <el-form-item label="" prop="cpdgrp.orc.pts.extkey">
            <c-input
              v-model="model.cpdgrp.orc.pts.extkey"
              placeholder="请输入"
              @keyup.enter.native="
                showGridPromptDialog('cpdgrp.orc.pts.extkey')
              "
              :disabled="this.model.cpdgrp.rec.swftyp == ''"
            >
            </c-input>
          </el-form-item>
          <template slot="footer">
            <c-button
              style="margin: 0 10px 0 10px; padding: 0 12px"
              size="small"
              type="primary"
              icon="el-icon-search"
            >
            </c-button>

            <c-button
              style="margin: 0 0"
              size="small"
              type="primary"
              @click="onSndpDet"
              disabled
            >
              详情
            </c-button>
          </template>
        </c-fullbox>
      </c-col>

      <c-col :span="24">
        <el-form-item label="">
          <c-input
            type="textarea"
            :rows="4"
            maxlength="140"
            v-model="model.cpdgrp.orc.pts.adrblk"
            show-word-limit
            placeholder="请输入"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24" v-if="false">
        <el-form-item label="汇款人名称" prop="orcnam">
          <c-input
            v-model="model.orcnam"
            maxlength="16"
            placeholder=""
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24" v-show="false">
        <el-form-item label="收款人名称" prop="pyenam">
          <c-input
            v-model="model.pyenam"
            placeholder=""
            @blur="pyenamEvent"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24" v-show="false">
        <el-form-item label="清算费用锁定服务" prop="cptp.qsfysd">
          <c-select
            v-model="model.cptp.qsfysd"
            style="width: 100%"
            placeholder="请选择服务提供银行"
          >
            <el-option
              v-for="item in codes.qsfysd"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24" v-if="model.cptp.qsfysd === '1'">
        <el-form-item label="服务提供银行">
          <c-input v-model="model.cptp.fwtgyh" placeholder=""></c-input>
        </el-form-item>
      </c-col>
    </c-col>

    <!-- ================底部--右================= -->
    <c-col :span="12" style="padding-left: 20px;"
      v-if="
        root.trnName === 'cptopn'
          ? model.cpdgrp.rec.swftyp === '' ||
            model.cpdgrp.rec.swftyp === '103' ||
            model.cpdgrp.rec.swftyp === '202'
          : model.cpdgrp.rec.swftyp === '' || model.cpdgrp.rec.swftyp === '103'
      "
    >
      <c-col :span="24" v-if="this.model.cptp.liqtyp != 'C'">
        <c-fullbox>
          <el-form-item label="发报行" prop="cpdgrp.snd.pts.extkey">
            <c-input
              placeholder="请输入发报行"
              disabled
              v-model="model.cpdgrp.snd.pts.extkey"
              @keyup.enter.native="
                showGridPromptDialog('cpdgrp.snd.pts.extkey')
              "
            ></c-input>
          </el-form-item>

          <template slot="footer">
            <c-button
              style="margin: 0 10px 0 10px; padding: 0 12px"
              size="small"
              type="primary"
              icon="el-icon-search"
            >
            </c-button>

            <c-button
              style="margin: 0 0"
              size="small"
              type="primary"
              @click="onSndpDet"
              disabled
            >
              详情
            </c-button>
          </template>
        </c-fullbox>
      </c-col>

      <c-col :span="24" v-if="this.model.cptp.liqtyp != 'C'">
        <el-form-item label="" prop="cpdgrp.snd.pts.nam">
          <c-input
            placeholder=""
            disabled
            v-model="model.cpdgrp.snd.pts.nam"
          ></c-input>
        </el-form-item>
      </c-col>

      <!--清算模式(代理行模式)报文类型Mt103-->
      <c-col :span="24" v-if="this.model.cptp.liqtyp == 'C'">
        <c-col :span="24">
          <el-form-item label="清算代理行">
            <c-select
              v-model="model.cptp.cleage"
              style="width: 100%"
              placeholder="请选择清算代理行"
              @change="commonExecuteRule('cptp.cleage')"
            >
              <el-option
                v-for="item in cleageOptions"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="光大开户行">
            <c-select
              v-model="model.cptp.evebch"
              style="width: 100%"
              placeholder="请选择光大开户行"
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="清算代理行账号">
            <c-input
              v-model="model.cptp.coract"
              maxlength="32"
              style="width: 100%"
              placeholder="请输入清算代理行账号"
              disabled
            >
            </c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <el-form-item label="指令代码" prop="cpdgrp.rec.f23e">
          <c-input
            v-model="model.cpdgrp.rec.f23e"
            maxlength="35"
            placeholder="请输入指令代码"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-col :span="13">
          <el-form-item label="原始金额" prop="cpdgrp.rec.curf33b">
            <c-select
              v-model="model.cpdgrp.rec.curf33b"
              style="width: 100%"
              placeholder=""
              :disabled="this.flag3"
            >
              <el-option
                v-for="item in codes.currencycode"
                :key="item.value"
                :label="item.value + item.label"
                :value="item.value"
              ></el-option>
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="11">
          <el-form-item label="" label-width="8px" prop="cpdgrp.rec.amtf33b">
            <c-input
              v-model="model.cpdgrp.rec.amtf33b"
              placeholder="请输入原始金额"
              :disabled="this.flag3"
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <el-form-item label="汇率" prop="cpdgrp.rec.f36">
          <c-input
            v-model="model.cpdgrp.rec.f36"
            placeholder=""
            :disabled="this.flag3"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-col :span="13">
          <el-form-item label="发报行扣费金额" prop="cpdgrp.rec.cur71f">
            <c-select
              v-model="model.cpdgrp.rec.cur71f"
              placeholder=""
              style="width: 100%"
              :disabled="this.flag3"
            >
              <el-option
                v-for="item in codes.currencycode"
                :key="item.value"
                :label="item.value + item.label"
                :value="item.value"
              ></el-option>
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="11">
          <el-form-item label="" label-width="8px" prop="cpdgrp.rec.amt71f">
            <c-input
              v-model="model.cpdgrp.rec.amt71f"
              placeholder="请输入发报行扣费金额"
              :disabled="this.flag3"
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <el-form-item label="银行操作码" prop="cpdgrp.rec.f23b">
          <c-input
            v-model="model.cpdgrp.rec.f23b"
            maxlength="4"
            placeholder=""
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="账号" prop="cpdgrp.rec.pyeact">
          <c-input
            v-model="model.cpdgrp.rec.pyeact"
            maxlength="35"
            placeholder="请输入账号"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-fullbox>
          <el-form-item label="收款人" prop="cpdgrp.pye.pts.extkey">
            <c-input
              v-model="model.cpdgrp.pye.pts.extkey"
              maxlength="14"
              placeholder="请输入收款人"
              @keyup.enter.native="
                showGridPromptDialog('cpdgrp.pye.pts.extkey')
              "
            ></c-input>
          </el-form-item>
          <template slot="footer">
            <c-button
              style="margin: 0 10px 0 10px; padding: 0 12px"
              size="small"
              type="primary"
              icon="el-icon-search"
            >
            </c-button>

            <c-button
              style="margin: 0 0"
              size="small"
              type="primary"
              @click="onSndpDet"
              disabled
            >
              详情
            </c-button>
          </template>
        </c-fullbox>
      </c-col>

      <c-col :span="24">
        <el-form-item label="" prop="cpdgrp.pye.pts.adrblk">
          <c-input
            type="textarea"
            :rows="4"
            maxlength="140"
            v-model="model.cpdgrp.pye.pts.adrblk"
            show-word-limit
            placeholder="请输入"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>

    <c-col :span="12" style="padding-left: 20px;"
      v-if="
        root.trnName === 'cptopn'
          ? model.cpdgrp.rec.swftyp === '200'
          : model.cpdgrp.rec.swftyp === '202' ||
            model.cpdgrp.rec.swftyp === '200'
      "
    >
      <c-col :span="24" v-if="this.model.cptp.liqtyp != 'C'">
        <c-fullbox>
          <el-form-item label="发报行" prop="cpdgrp.snd.pts.extkey">
            <c-input
              placeholder="请输入发报行"
              disabled
              v-model="model.cpdgrp.snd.pts.extkey"
              @keyup.enter.native="
                showGridPromptDialog('cpdgrp.snd.pts.extkey')
              "
            ></c-input>
          </el-form-item>
          <template slot="footer">
            <c-button
              style="margin: 0 10px 0 10px; padding: 0 12px"
              size="small"
              type="primary"
              icon="el-icon-search"
            >
            </c-button>

            <c-button
              style="margin: 0 0"
              size="small"
              type="primary"
              @click="onSndpDet"
              disabled
            >
              详情
            </c-button>
          </template>
        </c-fullbox>
      </c-col>

      <c-col :span="24" v-if="this.model.cptp.liqtyp != 'C'">
        <el-form-item label="" prop="cpdgrp.snd.pts.adrblk">
          <c-input
            type="textarea"
            :rows="4"
            maxlength="140"
            show-word-limit
            placeholder="请输入"
            v-model="model.cpdgrp.snd.pts.adrblk"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>

      <!--清算模式(代理行模式)报文类型Mt202-->
      <c-col :span="24" v-if="this.model.cptp.liqtyp == 'C'">
        <c-col :span="24">
          <el-form-item label="清算代理行">
            <c-select
              v-model="model.cptp.cleage"
              style="width: 100%"
              placeholder="请选择清算代理行"
              @change="commonExecuteRule('cptp.cleage')"
            >
              <el-option
                v-for="item in cleageOptions"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="光大开户分行">
            <c-select
              v-model="model.cptp.evebch"
              style="width: 100%"
              placeholder="请选择光大开户分行"
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="清算代理行账号">
            <c-input
              v-model="model.cptp.coract"
              maxlength="32"
              style="width: 100%"
              placeholder="请输入清算代理行账号"
              disabled
            >
            </c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <el-form-item label="收款人" prop="cpdgrp.pye.pts.extkey">
          <c-input
            v-model="model.cpdgrp.pye.pts.extkey"
            maxlength="14"
            placeholder="请输入收款人"
            @keyup.enter.native="showGridPromptDialog('cpdgrp.pye.pts.extkey')"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="账号" prop="cpdgrp.rec.pyeact">
          <c-input
            v-model="model.cpdgrp.rec.pyeact"
            maxlength="35"
            placeholder="请输入账号"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-fullbox>
          <el-form-item label="">
            <c-input
              v-model="model.cpdgrp.pye.pts.extkey"
              placeholder="请输入收款人客户号"
              @keyup.enter.native="
                showGridPromptDialog('cpdgrp.pye.pts.extkey')
              "
            >
            </c-input>
          </el-form-item>
          <template slot="footer">
            <c-button
              style="margin: 0 10px 0 10px; padding: 0 12px"
              size="small"
              type="primary"
              icon="el-icon-search"
            >
            </c-button>

            <c-button
              style="margin: 0 0"
              size="small"
              type="primary"
              @click="onSndpDet"
              disabled
            >
              详情
            </c-button>
          </template>
        </c-fullbox>
      </c-col>

      <c-col :span="24">
        <el-form-item label="">
          <c-input
            type="textarea"
            :rows="4"
            maxlength="140"
            v-model="model.cpdgrp.pye.pts.adrblk"
            show-word-limit
            placeholder="请输入"
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>

    <c-col :span="12" style="padding-left: 20px;"
      v-if="model.cpdgrp.rec.swftyp === 'OTH'"
    >
      <c-col :span="24">
        <c-fullbox>
          <el-form-item label="发报行" prop="cpdgrp.snd.pts.extkey">
            <c-input
              placeholder="请输入发报行"
              disabled
              v-model="model.cpdgrp.snd.pts.extkey"
              @keyup.enter.native="
                showGridPromptDialog('cpdgrp.snd.pts.extkey')
              "
            ></c-input>
          </el-form-item>
          <template slot="footer">
            <c-button
              style="margin: 0 10px 0 10px; padding: 0 12px"
              size="small"
              type="primary"
              icon="el-icon-search"
            >
            </c-button>

            <c-button
              style="margin: 0 0"
              size="small"
              type="primary"
              @click="onSndpDet"
              disabled
            >
              详情
            </c-button>
          </template>
        </c-fullbox>
      </c-col>

      <c-col :span="24">
        <el-form-item label="" prop="cpdgrp.snd.pts.adrblk">
          <c-input
            type="textarea"
            :rows="4"
            maxlength="140"
            show-word-limit
            placeholder="请输入"
            v-model="model.cpdgrp.snd.pts.adrblk"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="付款详情" prop="cpdgrp.blk.contag70">
          <c-input
            type="textarea"
            placeholder=""
            rows="3"
            v-model="model.cpdgrp.blk.contag70"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="收款人参考号" prop="cpdgrp.pye.pts.ref">
          <c-input
            v-model="model.cpdgrp.pye.pts.ref"
            maxlength="16"
            placeholder=""
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="账号" prop="cpdgrp.rec.pyeact">
          <c-input
            v-model="model.cpdgrp.rec.pyeact"
            maxlength="35"
            placeholder="请输入账号"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-fullbox>
          <el-form-item label="" prop="cpdgrp.pye.pts.extkey">
            <c-input
              v-model="model.cpdgrp.pye.pts.extkey"
              placeholder="请输入收款人客户号"
              @keyup.enter.native="
                showGridPromptDialog('cpdgrp.pye.pts.extkey')
              "
            >
            </c-input>
          </el-form-item>
          <template slot="footer">
            <c-button
              style="margin: 0 10px 0 10px; padding: 0 12px"
              size="small"
              type="primary"
              icon="el-icon-search"
            >
            </c-button>
            <c-button
              style="margin: 0 0"
              size="small"
              type="primary"
              @click="onSndpDet"
            >
              详情
            </c-button>
          </template>
        </c-fullbox>
      </c-col>

      <c-col :span="24">
        <el-form-item label="" prop="cpdgrp.pye.pts.adrblk">
          <c-input
            type="textarea"
            :rows="4"
            maxlength="140"
            v-model="model.cpdgrp.pye.pts.adrblk"
            show-word-limit
            placeholder="请输入"
            :disabled="model.cpdgrp.pye.pts.extkey!=''"
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>

    <el-dialog
      :fullscreen="true"
      :visible.sync="infptaVisible"
      top="10vh"
      width="80%"
      custom-class="infptaDialog"
      :before-close="handleClose"
    >
      <Infpta></Infpta>
    </el-dialog>
  </c-col>
</template>

<script>
import commonProcess from "~/mixin/commonProcess";
import Utils from "~/utils";
export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {
      cleageOptions: [
        { label: "BKCHHKHHXXX", value: "BKCHHKHHXXX" },
        { label: "CCBQHKAXXXX", value: "CCBQHKAXXXX" },
        { label: "EVERHKHHXXX", value: "EVERHKHHXXX" },
        { label: "KWHKHKHHXXX", value: "KWHKHKHHXXX" },
        { label: "NYCBHKHHXXX", value: "NYCBHKHHXXX" },
        { label: "WUBAHKHHXXX", value: "WUBAHKHHXXX" },
      ],
      infptaVisible: false,
      flag1: true,
      flag3: false,
      bustyp: [
        { label: "GODX", value: "货期贸易" },
        { label: "STRX", value: "服务贸易" },
        { label: "CTFX", value: "资本项下" },
        { label: "FTFX", value: "金融机构头寸调拨" },
        { label: "BDES", value: "债卷还本利息" },
        { label: "BPRR", value: "债卷还本金" },
        { label: "BINP", value: "债卷利息" },
        { label: "BISF", value: "债卷发行手续费" },
        { label: "BCAF", value: "债卷兑付手续费" },
        { label: "CBCF", value: "附息式债卷兑付手续费" },
        { label: "OTFX", value: "其他" },
      ],
    };
  },
  watch: {
    "model.cptp.qsfysd": function () {
      if (this.model.cptp.qsfysd == "") {
        this.model.cptp.fwtgyh == "";
      } else {
        this.model.cptp.fwtgyh = "CHASUS33XXX";
        console.log(this.model.cptp.fwtgyh);
      }
    },
    "model.cpdgrp.rec.swftyp": function () {
      console.log(this.model.cpdgrp.rec.swftyp);
      if (this.model.cpdgrp.rec.swftyp == "") {
        this.flag1 = true;
      } else {
        this.flag1 = false;
      }
    },
    "model.cpdgrp.rec.swftyp": {
      immediate: true,
      handler(val, oldVal) {
        if (this.model.cpdgrp.rec.swftyp == "CIU") {
          this.bustyp = [
            { label: "GODX", value: "货期贸易" },
            { label: "STRX", value: "服务贸易" },
            { label: "CTFX", value: "资本项下" },
            { label: "OTFX", value: "其他" },
          ];
        } else if (this.model.cpdgrp.rec.swftyp == "CIV") {
          this.bustyp = [
            { label: "GODX", value: "货期贸易" },
            { label: "STRX", value: "服务贸易" },
            { label: "CTFX", value: "资本项下" },
            { label: "FTFX", value: "金融机构头寸调拨" },
            { label: "BDES", value: "债卷还本利息" },
            { label: "BPRR", value: "债卷还本金" },
            { label: "BINP", value: "债卷利息" },
            { label: "BISF", value: "债卷发行手续费" },
            { label: "BCAF", value: "债卷兑付手续费" },
            { label: "CBCF", value: "附息式债卷兑付手续费" },
            { label: "OTFX", value: "其他" },
          ];
        }
      },
    },
  },
  watch: {
    //通过账号、收款人账号控制原始金额、发报行扣费金额、汇率
    "model.cpdgrp.pye.pts.extkey": {
      immediate: true,
      handler(val, oldVal) {
        if (
          this.model.cpdgrp.pye.pts.extkey != "" &&
          this.model.cpdgrp.rec.swftyp != ""
        ) {
          this.flag3 = true;
        } else {
          this.flag3 = false;
        }
      },
    },
    "model.cpdgrp.rec.swftyp": {
      immediate: true,
      handler(val, oldVal) {
        if (
          this.model.cpdgrp.pye.pts.extkey != "" &&
          this.model.cpdgrp.rec.swftyp != ""
        ) {
          this.flag3 = true;
        } else {
          this.flag3 = false;
        }
      },
    },
  },
  methods: {
    onSndpDet() {
      this.$emit("onSndpDet");
    },
    onCptpGetInfpta() {
      this.infptaVisible = true;
    },
    handleClose(done) {
      done();
    },
    pyenamEvent() {
      this.executeRule("pyenam").then((res) => {});
    },
    commonExecuteRule(ruleName) {
      this.executeRule(ruleName).then((res) => {
        if (res.respCode == SUCCESS) {
          Utils.copyValueFromVO(this.model, res.data);
        }
      });
    },
  },
};
</script>

<style>
</style>