CptOpnp1Common.vue 25.4 KB
Newer Older
liuxin committed
1
<template>
2 3
  <c-col :span="24">
    <!-- ================底部--左================= -->
LiRui committed
4
    <c-col :span="12" style="padding-right: 20px;" v-if="model.cptp.liqtyp != 'S'">
5
      <c-col :span="24">
nanrui committed
6
        <el-form-item label="付款行" prop="cpdgrp.ori.pts.ref">
wangna committed
7 8 9 10 11 12
          <c-input
            v-model="model.cpdgrp.ori.pts.ref"
            maxlength="16"
            placeholder=""
            :disabled="this.model.cpdgrp.rec.swftyp == ''"
          ></c-input>
13 14
        </el-form-item>
      </c-col>
liuxin committed
15

16 17 18 19
      <c-col :span="24">
        <!-- <c-col :span="18"> -->
        <c-fullbox>
          <el-form-item label="">
wangna committed
20 21 22 23 24
            <c-input
              v-model="model.cpdgrp.ori.pts.extkey"
              placeholder=""
              style="width: 100%"
              @keyup.enter.native="
25
                showGridPromptDialog('cpdgrp.ori.pts.extkey')
wangna committed
26 27 28
              "
              :disabled="this.model.cpdgrp.rec.swftyp == ''"
            ></c-input>
29 30
          </el-form-item>
          <template slot="footer">
wangna committed
31 32 33 34
            <c-button
              size="small"
              type="primary"
              icon="el-icon-search"
LiRui committed
35
              style="margin: 0 10px 0 10px; padding: 0 12px"
wangna committed
36 37 38 39 40 41 42 43 44 45 46
              @click="
                showGridPromptDialog(
                  'ptsget.sdamod.seainf',
                  null,
                  null,
                  { TXT: 'cpdgrp.ori.pts.extkey' },
                  { TXT: false },
                  'doxpDialog'
                )
              "
            >
47
            </c-button>
zhujiazhan committed
48

wangna committed
49 50 51 52 53 54 55
            <c-button
              style="margin: 0 0"
              size="small"
              type="primary"
              @click="onSndpDet"
              disabled
            >
56 57 58 59 60
              详情
            </c-button>
          </template>
        </c-fullbox>
      </c-col>
liuxin committed
61

62 63
      <c-col :span="24">
        <el-form-item label="">
wangna committed
64 65 66 67 68 69 70 71 72
          <c-input
            type="textarea"
            :rows="4"
            maxlength="140"
            v-model="model.cpdgrp.ori.pts.adrblk"
            show-word-limit
            placeholder="请输入"
            disabled
          ></c-input>
73 74
        </el-form-item>
      </c-col>
liuxin committed
75

76 77
      <c-col :span="24">
        <el-form-item label="汇款人" prop="cpdgrp.orc.pts.ref">
wangna committed
78 79 80 81 82 83
          <c-input
            v-model="model.cpdgrp.orc.pts.ref"
            maxlength="16"
            placeholder=""
            :disabled="this.model.cpdgrp.rec.swftyp == ''"
          ></c-input>
84 85
        </el-form-item>
      </c-col>
liuxin committed
86

87 88
      <c-col :span="24">
        <el-form-item label="账号" prop="cpdgrp.rec.orcact">
wangna committed
89 90 91 92 93 94
          <c-input
            v-model="model.cpdgrp.rec.orcact"
            maxlength="35"
            placeholder="汇款人账号"
            :disabled="this.model.cpdgrp.rec.swftyp == ''"
          ></c-input>
95 96
        </el-form-item>
      </c-col>
liuxin committed
97

98 99 100
      <c-col :span="24">
        <c-fullbox>
          <el-form-item label="" prop="cpdgrp.orc.pts.extkey">
wangna committed
101 102 103 104
            <c-input
              v-model="model.cpdgrp.orc.pts.extkey"
              placeholder="请输入"
              @keyup.enter.native="
105
                showGridPromptDialog('cpdgrp.orc.pts.extkey')
wangna committed
106 107 108
              "
              :disabled="this.model.cpdgrp.rec.swftyp == ''"
            >
109 110 111
            </c-input>
          </el-form-item>
          <template slot="footer">
wangna committed
112 113 114 115 116 117
            <c-button
              style="margin: 0 10px 0 10px; padding: 0 12px"
              size="small"
              type="primary"
              icon="el-icon-search"
            >
118 119
            </c-button>

wangna committed
120 121 122 123 124 125 126
            <c-button
              style="margin: 0 0"
              size="small"
              type="primary"
              @click="onSndpDet"
              disabled
            >
127 128 129 130 131
              详情
            </c-button>
          </template>
        </c-fullbox>
      </c-col>
132

133 134
      <c-col :span="24">
        <el-form-item label="">
wangna committed
135 136 137 138 139 140 141 142 143
          <c-input
            type="textarea"
            :rows="4"
            maxlength="140"
            v-model="model.cpdgrp.orc.pts.adrblk"
            show-word-limit
            placeholder="请输入"
            disabled
          ></c-input>
144 145
        </el-form-item>
      </c-col>
146

147 148
      <c-col :span="24" v-if="false">
        <el-form-item label="汇款人名称" prop="orcnam">
wangna committed
149 150 151 152 153
          <c-input
            v-model="model.orcnam"
            maxlength="16"
            placeholder=""
          ></c-input>
154 155 156 157
        </el-form-item>
      </c-col>
      <c-col :span="24" v-show="false">
        <el-form-item label="收款人名称" prop="pyenam">
wangna committed
158 159 160 161 162
          <c-input
            v-model="model.pyenam"
            placeholder=""
            @blur="pyenamEvent"
          ></c-input>
163 164
        </el-form-item>
      </c-col>
165

166 167
      <c-col :span="24" v-show="false">
        <el-form-item label="清算费用锁定服务" prop="cptp.qsfysd">
wangna committed
168 169 170 171 172 173 174 175 176 177 178
          <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"
            >
179 180 181 182
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
183

184 185 186 187 188 189
      <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>
liuxin committed
190

191
    <!-- ================底部--右================= -->
LiRui committed
192
    <c-col :span="12" style="padding-left: 20px;"
wangna committed
193
      v-if="
194
        root.trnName === 'cptopn'
wangna committed
195 196 197 198 199 200
          ? model.cpdgrp.rec.swftyp === '' ||
            model.cpdgrp.rec.swftyp === '103' ||
            model.cpdgrp.rec.swftyp === '202'
          : model.cpdgrp.rec.swftyp === '' || model.cpdgrp.rec.swftyp === '103'
      "
    >
201 202 203
      <c-col :span="24" v-if="this.model.cptp.liqtyp != 'C'">
        <c-fullbox>
          <el-form-item label="发报行" prop="cpdgrp.snd.pts.extkey">
wangna committed
204 205 206 207 208 209 210 211
            <c-input
              placeholder="请输入发报行"
              disabled
              v-model="model.cpdgrp.snd.pts.extkey"
              @keyup.enter.native="
                showGridPromptDialog('cpdgrp.snd.pts.extkey')
              "
            ></c-input>
212
          </el-form-item>
liuxin committed
213

214
          <template slot="footer">
wangna committed
215 216 217 218 219 220
            <c-button
              style="margin: 0 10px 0 10px; padding: 0 12px"
              size="small"
              type="primary"
              icon="el-icon-search"
            >
221
            </c-button>
liuxin committed
222

wangna committed
223 224 225 226 227 228 229
            <c-button
              style="margin: 0 0"
              size="small"
              type="primary"
              @click="onSndpDet"
              disabled
            >
230 231 232 233 234
              详情
            </c-button>
          </template>
        </c-fullbox>
      </c-col>
liuxin committed
235

236 237
      <c-col :span="24" v-if="this.model.cptp.liqtyp != 'C'">
        <el-form-item label="" prop="cpdgrp.snd.pts.nam">
wangna committed
238 239 240 241 242
          <c-input
            placeholder=""
            disabled
            v-model="model.cpdgrp.snd.pts.nam"
          ></c-input>
243 244
        </el-form-item>
      </c-col>
liuxin committed
245

246 247 248 249
      <!--清算模式(代理行模式)报文类型Mt103-->
      <c-col :span="24" v-if="this.model.cptp.liqtyp == 'C'">
        <c-col :span="24">
          <el-form-item label="清算代理行">
wangna committed
250 251
            <c-select
              v-model="model.cptp.cleage"
LiRui committed
252
              style="width: 100%"
wangna committed
253 254 255 256 257 258 259 260 261
              placeholder="请选择清算代理行"
              @change="commonExecuteRule('cptp.cleage')"
            >
              <el-option
                v-for="item in cleageOptions"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
262 263 264
              </el-option>
            </c-select>
          </el-form-item>
liuxin committed
265
        </c-col>
266 267
        <c-col :span="24">
          <el-form-item label="光大开户行">
wangna committed
268 269
            <c-select
              v-model="model.cptp.evebch"
LiRui committed
270
              style="width: 100%"
wangna committed
271 272
              placeholder="请选择光大开户行"
            >
273 274
            </c-select>
          </el-form-item>
liuxin committed
275 276
        </c-col>

277 278
        <c-col :span="24">
          <el-form-item label="清算代理行账号">
wangna committed
279 280 281
            <c-input
              v-model="model.cptp.coract"
              maxlength="32"
LiRui committed
282
              style="width: 100%"
wangna committed
283 284 285
              placeholder="请输入清算代理行账号"
              disabled
            >
286 287
            </c-input>
          </el-form-item>
liuxin committed
288
        </c-col>
289
      </c-col>
liuxin committed
290

291 292
      <c-col :span="24">
        <el-form-item label="指令代码" prop="cpdgrp.rec.f23e">
wangna committed
293 294 295 296 297
          <c-input
            v-model="model.cpdgrp.rec.f23e"
            maxlength="35"
            placeholder="请输入指令代码"
          ></c-input>
298 299
        </el-form-item>
      </c-col>
liuxin committed
300

301 302 303
      <c-col :span="24">
        <c-col :span="13">
          <el-form-item label="原始金额" prop="cpdgrp.rec.curf33b">
wangna committed
304 305 306 307 308 309 310 311 312 313 314 315
            <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>
316 317
            </c-select>
          </el-form-item>
318
        </c-col>
319 320
        <c-col :span="11">
          <el-form-item label="" label-width="8px" prop="cpdgrp.rec.amtf33b">
wangna committed
321 322 323 324 325
            <c-input
              v-model="model.cpdgrp.rec.amtf33b"
              placeholder="请输入原始金额"
              :disabled="this.flag3"
            ></c-input>
326 327 328
          </el-form-item>
        </c-col>
      </c-col>
liuxin committed
329

330 331
      <c-col :span="24">
        <el-form-item label="汇率" prop="cpdgrp.rec.f36">
wangna committed
332 333 334 335 336
          <c-input
            v-model="model.cpdgrp.rec.f36"
            placeholder=""
            :disabled="this.flag3"
          ></c-input>
337 338
        </el-form-item>
      </c-col>
liuxin committed
339

340 341 342
      <c-col :span="24">
        <c-col :span="13">
          <el-form-item label="发报行扣费金额" prop="cpdgrp.rec.cur71f">
wangna committed
343 344 345 346 347 348 349 350 351 352 353 354
            <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>
355 356 357 358 359
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="11">
          <el-form-item label="" label-width="8px" prop="cpdgrp.rec.amt71f">
wangna committed
360 361 362 363 364
            <c-input
              v-model="model.cpdgrp.rec.amt71f"
              placeholder="请输入发报行扣费金额"
              :disabled="this.flag3"
            ></c-input>
365 366 367
          </el-form-item>
        </c-col>
      </c-col>
368

369 370
      <c-col :span="24">
        <el-form-item label="银行操作码" prop="cpdgrp.rec.f23b">
wangna committed
371 372 373 374 375
          <c-input
            v-model="model.cpdgrp.rec.f23b"
            maxlength="4"
            placeholder=""
          ></c-input>
376 377
        </el-form-item>
      </c-col>
378

379 380
      <c-col :span="24">
        <el-form-item label="账号" prop="cpdgrp.rec.pyeact">
wangna committed
381 382 383 384 385
          <c-input
            v-model="model.cpdgrp.rec.pyeact"
            maxlength="35"
            placeholder="请输入账号"
          ></c-input>
386 387
        </el-form-item>
      </c-col>
liuxin committed
388

389 390 391
      <c-col :span="24">
        <c-fullbox>
          <el-form-item label="收款人" prop="cpdgrp.pye.pts.extkey">
wangna committed
392 393 394 395 396
            <c-input
              v-model="model.cpdgrp.pye.pts.extkey"
              maxlength="14"
              placeholder="请输入收款人"
              @keyup.enter.native="
397
                showGridPromptDialog('cpdgrp.pye.pts.extkey')
wangna committed
398 399
              "
            ></c-input>
400 401
          </el-form-item>
          <template slot="footer">
wangna committed
402 403 404 405 406 407
            <c-button
              style="margin: 0 10px 0 10px; padding: 0 12px"
              size="small"
              type="primary"
              icon="el-icon-search"
            >
408 409
            </c-button>

wangna committed
410 411 412 413 414 415 416
            <c-button
              style="margin: 0 0"
              size="small"
              type="primary"
              @click="onSndpDet"
              disabled
            >
417 418 419 420 421
              详情
            </c-button>
          </template>
        </c-fullbox>
      </c-col>
liuxin committed
422

423 424
      <c-col :span="24">
        <el-form-item label="" prop="cpdgrp.pye.pts.adrblk">
wangna committed
425 426 427 428 429 430 431 432 433
          <c-input
            type="textarea"
            :rows="4"
            maxlength="140"
            v-model="model.cpdgrp.pye.pts.adrblk"
            show-word-limit
            placeholder="请输入"
            disabled
          ></c-input>
434 435 436
        </el-form-item>
      </c-col>
    </c-col>
437

LiRui committed
438
    <c-col :span="12" style="padding-left: 20px;"
wangna committed
439
      v-if="
440
        root.trnName === 'cptopn'
wangna committed
441 442 443 444 445
          ? model.cpdgrp.rec.swftyp === '200'
          : model.cpdgrp.rec.swftyp === '202' ||
            model.cpdgrp.rec.swftyp === '200'
      "
    >
446 447 448
      <c-col :span="24" v-if="this.model.cptp.liqtyp != 'C'">
        <c-fullbox>
          <el-form-item label="发报行" prop="cpdgrp.snd.pts.extkey">
wangna committed
449 450 451 452 453 454 455 456
            <c-input
              placeholder="请输入发报行"
              disabled
              v-model="model.cpdgrp.snd.pts.extkey"
              @keyup.enter.native="
                showGridPromptDialog('cpdgrp.snd.pts.extkey')
              "
            ></c-input>
457 458
          </el-form-item>
          <template slot="footer">
wangna committed
459 460 461 462 463 464
            <c-button
              style="margin: 0 10px 0 10px; padding: 0 12px"
              size="small"
              type="primary"
              icon="el-icon-search"
            >
465 466
            </c-button>

wangna committed
467 468 469 470 471 472 473
            <c-button
              style="margin: 0 0"
              size="small"
              type="primary"
              @click="onSndpDet"
              disabled
            >
474 475 476 477 478
              详情
            </c-button>
          </template>
        </c-fullbox>
      </c-col>
479

480 481
      <c-col :span="24" v-if="this.model.cptp.liqtyp != 'C'">
        <el-form-item label="" prop="cpdgrp.snd.pts.adrblk">
wangna committed
482 483 484 485 486 487 488 489 490
          <c-input
            type="textarea"
            :rows="4"
            maxlength="140"
            show-word-limit
            placeholder="请输入"
            v-model="model.cpdgrp.snd.pts.adrblk"
            disabled
          ></c-input>
491 492
        </el-form-item>
      </c-col>
liuxin committed
493

494 495
      <!--清算模式(代理行模式)报文类型Mt202-->
      <c-col :span="24" v-if="this.model.cptp.liqtyp == 'C'">
liuxin committed
496
        <c-col :span="24">
497
          <el-form-item label="清算代理行">
wangna committed
498 499
            <c-select
              v-model="model.cptp.cleage"
LiRui committed
500
              style="width: 100%"
wangna committed
501 502 503 504 505 506 507 508 509
              placeholder="请选择清算代理行"
              @change="commonExecuteRule('cptp.cleage')"
            >
              <el-option
                v-for="item in cleageOptions"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
510 511
              </el-option>
            </c-select>
liuxin committed
512 513 514 515
          </el-form-item>
        </c-col>

        <c-col :span="24">
516
          <el-form-item label="光大开户分行">
wangna committed
517 518 519 520 521
            <c-select
              v-model="model.cptp.evebch"
              style="width: 100%"
              placeholder="请选择光大开户分行"
            >
522 523
            </c-select>
          </el-form-item>
liuxin committed
524 525
        </c-col>

526
        <c-col :span="24">
527
          <el-form-item label="清算代理行账号">
wangna committed
528 529 530
            <c-input
              v-model="model.cptp.coract"
              maxlength="32"
LiRui committed
531
              style="width: 100%"
wangna committed
532 533 534
              placeholder="请输入清算代理行账号"
              disabled
            >
535
            </c-input>
liuxin committed
536 537
          </el-form-item>
        </c-col>
538
      </c-col>
liuxin committed
539

540 541
      <c-col :span="24">
        <el-form-item label="收款人" prop="cpdgrp.pye.pts.extkey">
wangna committed
542 543 544 545 546 547
          <c-input
            v-model="model.cpdgrp.pye.pts.extkey"
            maxlength="14"
            placeholder="请输入收款人"
            @keyup.enter.native="showGridPromptDialog('cpdgrp.pye.pts.extkey')"
          ></c-input>
548 549
        </el-form-item>
      </c-col>
liuxin committed
550

551 552
      <c-col :span="24">
        <el-form-item label="账号" prop="cpdgrp.rec.pyeact">
wangna committed
553 554 555 556 557
          <c-input
            v-model="model.cpdgrp.rec.pyeact"
            maxlength="35"
            placeholder="请输入账号"
          ></c-input>
558 559
        </el-form-item>
      </c-col>
liuxin committed
560

561 562 563
      <c-col :span="24">
        <c-fullbox>
          <el-form-item label="">
wangna committed
564 565 566 567
            <c-input
              v-model="model.cpdgrp.pye.pts.extkey"
              placeholder="请输入收款人客户号"
              @keyup.enter.native="
568
                showGridPromptDialog('cpdgrp.pye.pts.extkey')
wangna committed
569 570
              "
            >
571 572 573
            </c-input>
          </el-form-item>
          <template slot="footer">
wangna committed
574 575 576 577 578 579
            <c-button
              style="margin: 0 10px 0 10px; padding: 0 12px"
              size="small"
              type="primary"
              icon="el-icon-search"
            >
580 581
            </c-button>

wangna committed
582 583 584 585 586 587 588
            <c-button
              style="margin: 0 0"
              size="small"
              type="primary"
              @click="onSndpDet"
              disabled
            >
589 590 591 592 593
              详情
            </c-button>
          </template>
        </c-fullbox>
      </c-col>
liuxin committed
594

595 596
      <c-col :span="24">
        <el-form-item label="">
wangna committed
597 598 599 600 601 602 603 604
          <c-input
            type="textarea"
            :rows="4"
            maxlength="140"
            v-model="model.cpdgrp.pye.pts.adrblk"
            show-word-limit
            placeholder="请输入"
          ></c-input>
605 606
        </el-form-item>
      </c-col>
liuxin committed
607 608
    </c-col>

LiRui committed
609
    <c-col :span="12" style="padding-left: 20px;"
wangna committed
610 611
      v-if="model.cpdgrp.rec.swftyp === 'OTH'"
    >
612 613 614
      <c-col :span="24">
        <c-fullbox>
          <el-form-item label="发报行" prop="cpdgrp.snd.pts.extkey">
wangna committed
615 616 617 618 619 620 621 622
            <c-input
              placeholder="请输入发报行"
              disabled
              v-model="model.cpdgrp.snd.pts.extkey"
              @keyup.enter.native="
                showGridPromptDialog('cpdgrp.snd.pts.extkey')
              "
            ></c-input>
623 624
          </el-form-item>
          <template slot="footer">
wangna committed
625 626 627 628 629 630
            <c-button
              style="margin: 0 10px 0 10px; padding: 0 12px"
              size="small"
              type="primary"
              icon="el-icon-search"
            >
631 632
            </c-button>

wangna committed
633 634 635 636 637 638 639
            <c-button
              style="margin: 0 0"
              size="small"
              type="primary"
              @click="onSndpDet"
              disabled
            >
640 641 642 643 644
              详情
            </c-button>
          </template>
        </c-fullbox>
      </c-col>
liuxin committed
645

646 647
      <c-col :span="24">
        <el-form-item label="" prop="cpdgrp.snd.pts.adrblk">
wangna committed
648 649 650 651 652 653 654 655 656
          <c-input
            type="textarea"
            :rows="4"
            maxlength="140"
            show-word-limit
            placeholder="请输入"
            v-model="model.cpdgrp.snd.pts.adrblk"
            disabled
          ></c-input>
657 658
        </el-form-item>
      </c-col>
liuxin committed
659

660 661
      <c-col :span="24">
        <el-form-item label="付款详情" prop="cpdgrp.blk.contag70">
wangna committed
662 663 664 665 666 667
          <c-input
            type="textarea"
            placeholder=""
            rows="3"
            v-model="model.cpdgrp.blk.contag70"
          ></c-input>
668 669
        </el-form-item>
      </c-col>
liuxin committed
670

671
      <c-col :span="24">
wangna committed
672 673 674 675 676 677
        <el-form-item label="收款人参考号" prop="cpdgrp.pye.pts.ref">
          <c-input
            v-model="model.cpdgrp.pye.pts.ref"
            maxlength="16"
            placeholder=""
          ></c-input>
678 679
        </el-form-item>
      </c-col>
liuxin committed
680

681 682
      <c-col :span="24">
        <el-form-item label="账号" prop="cpdgrp.rec.pyeact">
wangna committed
683 684 685 686 687
          <c-input
            v-model="model.cpdgrp.rec.pyeact"
            maxlength="35"
            placeholder="请输入账号"
          ></c-input>
688 689
        </el-form-item>
      </c-col>
liuxin committed
690

691 692 693
      <c-col :span="24">
        <c-fullbox>
          <el-form-item label="" prop="cpdgrp.pye.pts.extkey">
wangna committed
694 695 696 697
            <c-input
              v-model="model.cpdgrp.pye.pts.extkey"
              placeholder="请输入收款人客户号"
              @keyup.enter.native="
698
                showGridPromptDialog('cpdgrp.pye.pts.extkey')
wangna committed
699 700
              "
            >
701 702 703
            </c-input>
          </el-form-item>
          <template slot="footer">
wangna committed
704 705 706 707 708 709
            <c-button
              style="margin: 0 10px 0 10px; padding: 0 12px"
              size="small"
              type="primary"
              icon="el-icon-search"
            >
710
            </c-button>
wangna committed
711 712 713 714 715 716
            <c-button
              style="margin: 0 0"
              size="small"
              type="primary"
              @click="onSndpDet"
            >
717 718 719 720 721
              详情
            </c-button>
          </template>
        </c-fullbox>
      </c-col>
liuxin committed
722

723 724
      <c-col :span="24">
        <el-form-item label="" prop="cpdgrp.pye.pts.adrblk">
wangna committed
725 726 727 728 729 730 731
          <c-input
            type="textarea"
            :rows="4"
            maxlength="140"
            v-model="model.cpdgrp.pye.pts.adrblk"
            show-word-limit
            placeholder="请输入"
LiRui committed
732
            :disabled="model.cpdgrp.pye.pts.extkey!=''"
wangna committed
733
          ></c-input>
734 735
        </el-form-item>
      </c-col>
liuxin committed
736 737
    </c-col>

wangna committed
738 739 740 741 742 743 744 745
    <el-dialog
      :fullscreen="true"
      :visible.sync="infptaVisible"
      top="10vh"
      width="80%"
      custom-class="infptaDialog"
      :before-close="handleClose"
    >
746 747 748
      <Infpta></Infpta>
    </el-dialog>
  </c-col>
liuxin committed
749 750 751
</template>

<script>
wangren committed
752
import commonProcess from "~/mixin/commonProcess";
753
import Utils from "~/utils";
liuxin committed
754
export default {
755 756 757 758 759 760
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {
      cleageOptions: [
wangna committed
761 762 763 764 765 766
        { label: "BKCHHKHHXXX", value: "BKCHHKHHXXX" },
        { label: "CCBQHKAXXXX", value: "CCBQHKAXXXX" },
        { label: "EVERHKHHXXX", value: "EVERHKHHXXX" },
        { label: "KWHKHKHHXXX", value: "KWHKHKHHXXX" },
        { label: "NYCBHKHHXXX", value: "NYCBHKHHXXX" },
        { label: "WUBAHKHHXXX", value: "WUBAHKHHXXX" },
767 768 769 770 771
      ],
      infptaVisible: false,
      flag1: true,
      flag3: false,
      bustyp: [
wangna committed
772 773 774 775 776 777 778 779 780 781 782
        { 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: "其他" },
783 784 785 786 787
      ],
    };
  },
  watch: {
    "model.cptp.qsfysd": function () {
wangna committed
788 789
      if (this.model.cptp.qsfysd == "") {
        this.model.cptp.fwtgyh == "";
790
      } else {
wangna committed
791 792
        this.model.cptp.fwtgyh = "CHASUS33XXX";
        console.log(this.model.cptp.fwtgyh);
793
      }
liuxin committed
794
    },
795 796
    "model.cpdgrp.rec.swftyp": function () {
      console.log(this.model.cpdgrp.rec.swftyp);
wangna committed
797
      if (this.model.cpdgrp.rec.swftyp == "") {
798 799 800 801 802 803 804 805 806 807
        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 = [
wangna committed
808 809 810 811 812
            { label: "GODX", value: "货期贸易" },
            { label: "STRX", value: "服务贸易" },
            { label: "CTFX", value: "资本项下" },
            { label: "OTFX", value: "其他" },
          ];
813 814
        } else if (this.model.cpdgrp.rec.swftyp == "CIV") {
          this.bustyp = [
wangna committed
815 816 817 818 819 820 821 822 823 824 825 826
            { 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: "其他" },
          ];
827
        }
wangna committed
828 829
      },
    },
830 831 832 833 834 835
  },
  watch: {
    //通过账号、收款人账号控制原始金额、发报行扣费金额、汇率
    "model.cpdgrp.pye.pts.extkey": {
      immediate: true,
      handler(val, oldVal) {
wangna committed
836 837 838 839
        if (
          this.model.cpdgrp.pye.pts.extkey != "" &&
          this.model.cpdgrp.rec.swftyp != ""
        ) {
840
          this.flag3 = true;
wangna committed
841
        } else {
842 843
          this.flag3 = false;
        }
wangna committed
844
      },
liuxin committed
845
    },
846 847 848
    "model.cpdgrp.rec.swftyp": {
      immediate: true,
      handler(val, oldVal) {
wangna committed
849 850 851 852
        if (
          this.model.cpdgrp.pye.pts.extkey != "" &&
          this.model.cpdgrp.rec.swftyp != ""
        ) {
853
          this.flag3 = true;
wangna committed
854
        } else {
855 856
          this.flag3 = false;
        }
wangna committed
857
      },
858 859 860 861 862 863 864 865
    },
  },
  methods: {
    onSndpDet() {
      this.$emit("onSndpDet");
    },
    onCptpGetInfpta() {
      this.infptaVisible = true;
866
    },
867 868
    handleClose(done) {
      done();
liuxin committed
869
    },
870
    pyenamEvent() {
wangna committed
871
      this.executeRule("pyenam").then((res) => {});
872 873 874
    },
    commonExecuteRule(ruleName) {
      this.executeRule(ruleName).then((res) => {
wangna committed
875
        if (res.respCode == SUCCESS) {
876 877 878 879 880
          Utils.copyValueFromVO(this.model, res.data);
        }
      });
    },
  },
liuxin committed
881 882 883
};
</script>

884 885
<style>
</style>