Opnp1.vue 19.8 KB
Newer Older
chenzhaole committed
1 2
<template>
  <div class="eibs-tab">
3 4 5 6
    <!-- ==============左边=========== -->
    <c-col :span="11">
      <c-col :span="24">
        <el-form-item
nanrui committed
7
          label="汇款编号"
8 9 10 11 12 13 14
          prop="cpdgrp.rec.ownref"
          style="width: 100%"
        >
          <c-fullbox>
            <c-input
              v-model="model.cpdgrp.rec.ownref"
              maxlength="16"
nanrui committed
15
              placeholder="请输入汇款编号"
16 17 18 19 20 21 22
              disabled
            ></c-input>
            <template slot="footer">
              <c-button
                style="margin: 0 10px 0 10px; padding: 0 12px"
                size="small"
                type="primary"
23
                @click="onSeainf"
24 25 26 27 28 29 30 31
              >
                <span style="font-family: '宋体'; font-weight: bold">i</span>
              </c-button>
              <c-button
                style="margin: 0 0"
                size="small"
                type="primary"
                :disabled="this.flag"
32
                @click="onAttpGetref"
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
              >
                获取
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-col :span="13">
          <el-form-item label="汇款金额" prop="cpdgrp.cbs.nom1.cur">
            <c-select
              v-model="model.cpdgrp.cbs.nom1.cur"
              style="width: 100%"
              placeholder="请选择汇款金额"
            >
              <el-option
                v-for="item in codes.curtxt1"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>

60
        <c-col :span="11">
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
          <el-form-item
            style="text-align: left"
            label-width="5px"
            prop="cpdgrp.cbs.nom1.amt"
          >
            <c-input-currency
              v-model="model.cpdgrp.cbs.nom1.amt"
              style="text-align: left; width: 100%"
              placeholder="请输入汇款金额"
              @keyup.enter.native="
                defaultFunction('cpdgrp.cbs.nom1.amt',model.cpdgrp.cbs.nom1.amt)
              "
            ></c-input-currency>
          </el-form-item>
        </c-col>

      </c-col>

      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="是否需要核验" prop="cpdgrp.rec.ischktyp">
            <c-select
              v-model="model.cpdgrp.rec.ischktyp"
              style="width: 100%"
              placeholder="请选择是否需要核验"
            >
              <el-option
                v-for="item in codes.ischktyp"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="12">
          <el-form-item label="预计核验日期" prop="cpdgrp.rec.prechkdat">
            <c-date-picker
              type="date"
              v-model="model.cpdgrp.rec.prechkdat"
              style="width: 100%"
              placeholder="请选择PRECHKDAT"
105
              :disabled="model.cpdgrp.rec.ischktyp == ''||model.cpdgrp.rec.ischktyp=='N'"
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
            ></c-date-picker>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="24">
          <el-form-item label="汇款人账户性质" prop="attp.acctyp">
            <c-select
              v-model="model.attp.acctyp"
              style="width: 100%"
              placeholder="请选择汇款人账户性质"
            >
              <el-option
                v-for="item in codes.acctyp1"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="所属行" prop="cpdgrp.rec.othbch">
            <c-input
              v-model="model.cpdgrp.rec.othbch"
              maxlength="8"
              placeholder="请输入所属行"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="12">
          <el-form-item label="汇款语种" prop="attp.payuil">
            <c-select
              v-model="model.attp.payuil"
              style="width: 100%"
148
              placeholder="请选择汇款语种"
149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170
            >
              <el-option
                v-for="item in codes.payuil"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="24">
          <el-form-item label="业务种类" prop="attp.bustyp">
            <c-select
              v-model="model.attp.bustyp"
              style="width: 100%"
              placeholder="请选择业务种类"
            >
              <el-option
171
                v-for="item in bustyp1"
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
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="10">
          <el-form-item label="清算编号" prop="attp.sysno">
            <c-input
              v-model="model.attp.sysno"
              maxlength="21"
              placeholder="请输入清算编号"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="12">
          <el-form-item
            label="收款人常驻国家/地区代码"
            prop="attp.paycountcode"
          >
            <c-input
              v-model="model.attp.paycountcode"
              filterable
              style="width: 100%"
              placeholder="收款人常驻国家/地区代码"
              @keyup.enter.native="
                showGridPromptDialog('attp.paycountcode')
               "
            >
            </c-input>
          </el-form-item>
        </c-col>
211
      
212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229
        <c-col :span="2">
            <c-button
                size="small"
                type="primary"
                icon="el-icon-search"
            >
            </c-button>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="24">
          <el-form-item label="汇款人名称" prop="attp.orcnam">
            <c-input
              v-model="model.attp.orcnam"
              maxlength="65"
              show-word-limit
              placeholder="请输入汇款人名称"
230
              :disabled="model.attp.swftyp==''"
231 232 233 234 235 236 237 238 239 240
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="24">
          <el-form-item label="汇款人地址" prop="attp.orcadr">
            <c-input
              v-model="model.attp.orcadr"
241
              maxlength="265"
242 243
              show-word-limit
              placeholder="请输入汇款人地址"
244
              :disabled="model.attp.swftyp==''"
245 246 247 248 249 250 251 252 253 254
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="24">
          <el-form-item label="收款人名称" prop="attp.pyenam">
            <c-input
              v-model="model.attp.pyenam"
255
              maxlength="265"
256 257
              show-word-limit
              placeholder="请输入收款人名称"
258
              :disabled="model.attp.swftyp==''"
259 260 261 262 263 264 265 266 267 268
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="24">
          <el-form-item label="收款人地址" prop="attp.pyeadr">
            <c-input
              v-model="model.attp.pyeadr"
269
              maxlength="265"
270 271
              show-word-limit
              placeholder="请输入收款人地址"
272
              :disabled="model.attp.swftyp==''"
273 274 275 276 277 278 279 280 281 282
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="24">
          <el-form-item label="汇款人帐号" prop="cpdgrp.rec.orcact">
            <c-input
              v-model="model.cpdgrp.rec.orcact"
283
              maxlength="235"
284
              placeholder="请输入汇款人帐号"
285
              :disabled="model.attp.swftyp==''"
286 287 288 289 290 291 292 293 294 295
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="20">
          <el-form-item label="汇款人" prop="cpdgrp.orc.pts.extkey">
            <c-input
              v-model="model.cpdgrp.orc.pts.extkey"
296
              maxlength="216"
297 298
              placeholder="请输入External Key of Address"
              style="width: 95%"
299
              :disabled="model.attp.swftyp == ''"
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
              @keyup.enter.native="
                showGridPromptDialog('cpdgrp.orc.pts.extkey')
              "
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="1">
          <c-button
            style="margin: 0 10px 0 0; padding: 0 12px"
            size="small"
            type="primary"
          >
            <span
              style="font-size: 15px; font-family: '宋体'; font-weight: bold"
              >i</span
            >
          </c-button>
        </c-col>

        <c-col :span="2" :offset="1" style="text-align: right">
          <c-button
            style="margin: 0 0"
            size="small"
            type="primary"
            :disabled="this.flag"
          >
            获取
          </c-button>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="24">
334
          <el-form-item label="地址信息" prop="cpdgrp.orc.pts.adrblk">
335 336 337
            <c-input
              type="textarea"
              v-model="model.cpdgrp.orc.pts.adrblk"
338
              maxlength="235"
339
              show-word-limit
340
              placeholder="请输入地址信息"
341 342 343 344 345 346 347 348 349 350
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>
    </c-col>
    <!-- ===============================右边============================= -->
    <c-col :span="11" :offset="1">
      <c-col :span="24">
        <c-col :span="24">
351
          <el-form-item label="简略信息" prop="cpdgrp.rec.nam">
352 353
            <c-input
              v-model="model.cpdgrp.rec.nam"
354
              maxlength="240"
nanrui committed
355
              placeholder="请输入简略信息"
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
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="汇款性质" prop="cpdgrp.rec.trntyp">
            <c-select
              v-model="model.cpdgrp.rec.trntyp"
              style="width: 100%"
              placeholder="请选择汇款性质"
            >
              <el-option
                v-for="item in codes.trntyp1"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="12">
          <el-form-item label="汇款方式" prop="cpdgrp.rec.paytype">
            <c-select
              v-model="model.cpdgrp.rec.paytype"
              style="width: 100%"
              placeholder="请选择汇款方式"
            >
              <el-option
                v-for="item in codes.paytype"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="收款对象" prop="cpdgrp.rec.gors">
            <c-select
              v-model="model.cpdgrp.rec.gors"
              style="width: 100%"
              placeholder="请选择收款对象"
            >
              <el-option
                v-for="item in codes.gors"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="12">
          <el-form-item label="费用类型" prop="attp.feetyp">
            <c-select
              v-model="model.attp.feetyp"
              style="width: 100%"
              placeholder="请选择费用类型"
              disabled
            >
              <el-option
                v-for="item in codes.feetyp"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="起息日期" prop="attp.opndat">
            <c-date-picker
              type="date"
              v-model="model.attp.opndat"
              style="width: 100%"
              placeholder="请选择起息日期"
            ></c-date-picker>
          </el-form-item>
        </c-col>

        <c-col :span="12">
          <el-form-item label="委托日期" prop="cpdgrp.rec.valdat">
            <c-date-picker
              type="date"
              v-model="model.cpdgrp.rec.valdat"
              style="width: 100%"
457
              placeholder="请选择有效期"
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
            ></c-date-picker>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="客户类型" prop="cpdgrp.rec.clityp">
            <c-select
              v-model="model.cpdgrp.rec.clityp"
              style="width: 100%"
              placeholder="请选择客户类型"
            >
              <el-option
                v-for="item in codes.clityp"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="12">
          <el-form-item label="报文类型" prop="attp.swftyp">
            <c-select
              v-model="model.attp.swftyp"
              style="width: 100%"
              placeholder="请选择报文类型"
            >
              <el-option
490
                v-for="item in swftyp"
491 492 493 494 495 496 497 498 499 500 501
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
502
        <c-row type="flex" justify="end">
503 504
        <c-col :span="12">
          <el-form-item label="相关参考号" prop="" v-show="flag1">
505
            <c-input v-model="model.attp.xnggbh"></c-input>
506 507
          </el-form-item>
        </c-col>
508
        <c-col :span="10" :offset="2" style="text-align: right">
509 510 511 512
            <c-checkbox 
                v-model="model.cpdgrp.rec.tsnflg"
            >同名划转标志</c-checkbox>
        </c-col>
513
        </c-row>
514 515 516 517 518 519 520
      </c-col>

      <c-col :span="24">
        <c-col :span="24">
          <el-form-item label="接收行名称" prop="attp.resbchnam">
            <c-input
              v-model="model.attp.resbchnam"
521
              maxlength="242"
522
              placeholder="请输入接收行名称"
523 524
              @keyup.enter.native="
                showGridPromptDialog('attp.resbchnam')
taojinrui committed
525
              "
526 527 528 529 530 531 532 533 534 535
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="24">
          <el-form-item label="接收行BIC" prop="attp.resbch">
            <c-input
              v-model="model.attp.resbch"
536
              maxlength="211"
537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557
              placeholder="请输入接收行BIC"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="24">
          <el-form-item label="发报行名称" prop="attp.sndbchnam">
            <c-input
              v-model="model.attp.sndbchnam"
              maxlength="42"
              placeholder="请输入发报行名称"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
558
        <c-col :span="24">
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
          <el-form-item label="发报行BIC" prop="attp.sndbch">
            <c-input
              v-model="model.attp.sndbch"
              maxlength="11"
              placeholder="请输入发报行BIC"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <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>

      <c-col :span="24">
        <c-col :span="20">
          <el-form-item label="收款人" prop="cpdgrp.pye.pts.extkey">
            <c-input
              v-model="model.cpdgrp.pye.pts.extkey"
              maxlength="16"
              style="width: 95%"
589
              placeholder="请输入收款人名称"
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
              @keyup.enter.native="
                showGridPromptDialog('cpdgrp.pye.pts.extkey')
              "
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="1">
          <c-button
            style="margin: 0 10px 0 0; padding: 0 12px"
            size="small"
            type="primary"
          >
            <span
              style="font-size: 15px; font-family: '宋体'; font-weight: bold"
              >i</span
            >
          </c-button>
        </c-col>

        <c-col :span="2" :offset="1" style="text-align: right">
          <c-button
            size="small"
            type="primary"
            style="margin: 0 0"
          >
            详情
          </c-button>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="24">
623
          <el-form-item label="地址信息" prop="cpdgrp.pye.pts.adrblk">
624 625 626 627 628
            <c-input
              type="textarea"
              v-model="model.cpdgrp.pye.pts.adrblk"
              maxlength="35"
              show-word-limit
629
              placeholder="请输入地址信息"
630 631 632 633 634
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>
    </c-col>
chenzhaole committed
635 636 637
  </div>
</template>
<script>
638
import Api from "~/service/Api";
wangren committed
639
import commonProcess from "~/mixin/commonProcess";
640 641
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cptato/Event";
chenzhaole committed
642 643

export default {
644 645 646 647
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663
    return {
      bustyp1: [
        { label: "01-支付运保费", value: "01" },
        { label: "02-代理进出口", value: "02" },
        { label: "03-与特殊经济区企业资金往来", value: "03" },
        { label: "04-同一企业不同账户资金划转", value: "04" },
        { label: "05-归还国内贷款或转贷款", value: "05" },
        { label: "06-贸易深加工结转业务", value: "06" },
        { label: "07-贸易融资业务", value: "07" },
        { label: "08-其他", value: "08" },
      ],
      swftyp:[
        {label:"FMT100",value:"100"},
        {label:"FMT200",value:"200"}
      ]
    };
664 665 666 667 668 669
  },
  methods: { ...Event },
  created: function () {},
  computed: {
    flag() {
      return this.model.cpdgrp.orc.pts.extkey == "";
chenzhaole committed
670
    },
671 672 673 674 675 676 677
    flag1(){
        if(this.model.attp.swftyp == "200"){
            return true;
        }
        else{
            return false;
        }
chenzhaole committed
678
    }
679 680
  },
};
chenzhaole committed
681 682 683
</script>
<style>
</style>