Utlp.vue 25.4 KB
Newer Older
严一鸣 committed
1
<template>
jianglong committed
2
  <div class="eibs">
3 4 5 6 7
    <c-row>
      <c-col :span="24">
        <c-col :span="12" style="padding-right: 20px">
          <el-form-item
            label="信用证编号"
严一鸣 committed
8
            prop="lidgrp.rec.ownref"
9 10
            style="width: 100%"
          >
严一鸣 committed
11 12
            <c-fullbox>
              <c-input
13 14 15 16
                v-model="model.lidgrp.rec.ownref"
                maxlength="16"
                placeholder="请输入信用证编号"
                disabled
严一鸣 committed
17 18 19
              ></c-input>
              <template slot="footer">
                <c-button
20
                  style="margin: 0 0 0 10px; padding: 0 12px"
严一鸣 committed
21 22 23
                  size="small"
                  type="primary"
                  @click="onSeainf"
24
                  icon="el-icon-info"
严一鸣 committed
25
                >
26
                  <span style="font-family: '宋体'; font-weight: bold"></span>
严一鸣 committed
27 28
                </c-button>
              </template>
29 30 31 32 33 34 35 36 37 38 39 40
            </c-fullbox>
          </el-form-item>
        </c-col>
        <c-col :span="12" style="padding-left: 20px">
          <el-form-item label="有效期限" prop="lidgrp.rec.expdat">
            <c-date-picker
              type="date"
              v-model="model.lidgrp.rec.expdat"
              style="width: 100%"
              placeholder="请选择日期"
              disabled
            >
严一鸣 committed
41
            </c-date-picker>
42 43 44
          </el-form-item>
        </c-col>
      </c-col>
严一鸣 committed
45

46
      <!-- ====================左边======================= -->
严一鸣 committed
47

48
      <c-col :span="12" style="padding-right: 20px">
严一鸣 committed
49
        <c-col :span="24">
50 51 52 53 54
          <el-form-item
            label="单据编号"
            prop="brdgrp.rec.ownref"
            style="width: 100%"
          >
严一鸣 committed
55
            <c-fullbox>
56
              <c-input
严一鸣 committed
57 58
                v-model="model.brdgrp.rec.ownref"
                maxlength="8"
59
                placeholder="请输入单据编号"
zhujiazhan committed
60
                disabled
61 62
              ></c-input>
              <template slot="footer">
严一鸣 committed
63
                <c-button
64
                  style="margin: 0 0 0 10px; padding: 0 12px"
严一鸣 committed
65 66
                  size="small"
                  type="primary"
67 68
                  @click="onSeainf"
                  icon="el-icon-info"
69 70
                >
                  <span style="font-family: '宋体'; font-weight: bold"></span>
严一鸣 committed
71
                </c-button>
72 73 74 75 76 77 78 79 80 81
              </template>
            </c-fullbox>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <c-col :span="13">
            <el-form-item label="单据金额" prop="brdgrp.cbs.max.cur">
              <c-select
                v-model="model.brdgrp.cbs.max.cur"
                style="width: 100%"
wangna committed
82
                placeholder="请选择单据金额币种"
83 84 85 86 87 88 89 90 91 92 93 94 95
                :code="codes.cur"
                disabled
              >
              </c-select>
            </el-form-item>
          </c-col>
          <c-col :span="11">
            <el-form-item label="" prop="brdgrp.cbs.max.amt" label-width="5px">
              <c-input
                v-model="model.brdgrp.cbs.max.amt"
                placeholder="请选择单据金额"
                disabled
              ></c-input>
严一鸣 committed
96
            </el-form-item>
97
          </c-col>
严一鸣 committed
98
        </c-col>
zhujiazhan committed
99
        <c-col :span="24">
100 101 102 103 104
          <c-col :span="13">
            <el-form-item label="单据余额" prop="brdgrp.cbs.opn1.cur">
              <c-input
                v-model="model.brdgrp.cbs.opn1.cur"
                maxlength="3"
wangna committed
105
                placeholder="请输入单据余额币种"
106 107 108 109 110
                disabled
              ></c-input>
            </el-form-item>
          </c-col>
          <c-col :span="11">
zhujiazhan committed
111
            <el-form-item label="" prop="brdgrp.cbs.opn1.amt" label-width="5px">
112 113 114 115 116
              <c-input
                v-model="model.brdgrp.cbs.opn1.amt"
                placeholder="请输入单据余额"
                disabled
              ></c-input>
严一鸣 committed
117
            </el-form-item>
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
          </c-col>
        </c-col>
        <c-col :span="12">
          <el-form-item label="到单日期" prop="brdgrp.rec.rcvdat">
            <c-date-picker
              type="date"
              v-model="model.brdgrp.rec.rcvdat"
              style="width: 100%"
              placeholder="请选择到单日期"
              disabled
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item
            label="付款通知日期"
            prop="brdgrp.rec.advdat"
            label-width="120px"
          >
            <c-date-picker
              type="date"
              v-model="model.brdgrp.rec.advdat"
              style="width: 100%"
wangna committed
141
              placeholder="请选择付款通知日期"
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
              disabled
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="远期单据到期日" prop="brdgrp.rec.matdat">
            <c-date-picker
              type="date"
              v-model="model.brdgrp.rec.matdat"
              style="width: 100%"
              placeholder="请选择到单日期"
              disabled
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item
            label="开始日期"
            prop="brdgrp.rec.stadat"
            label-width="120px"
          >
            <c-date-picker
              type="date"
              v-model="model.brdgrp.rec.stadat"
              style="width: 100%"
wangna committed
167
              placeholder="请选择开始日期"
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
              disabled
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="单据类型" prop="brdgrp.rec.docflg">
            <c-select
              v-model="model.brdgrp.rec.docflg"
              style="width: 100%"
              placeholder="请选择单据类型"
              :code="codes.docflg"
              disabled
            >
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item
            label="远期最大期限"
            prop="brdgrp.rec.tenmaxday"
            label-width="120px"
          >
            <c-input
              v-model.number="model.brdgrp.rec.tenmaxday"
              placeholder="请输入天数"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="单据状态" prop="brdgrp.rec.docsta">
            <c-select
              v-model="model.brdgrp.rec.docsta"
              style="width: 100%"
              placeholder="请选择单据状态"
              :code="codes.docsta1"
              disabled
            >
            </c-select>
          </el-form-item>
        </c-col>
潘际乾 committed
209
        <c-col :span="24">
210
          <el-form-item label="待付款单据" style="margin-bottom: 0">
211
            <c-istream-table-noPag
212 213 214 215 216 217 218
              ref="table"
              :list="model.liaall.tenstm.rows || []"
              :columns="columns"
              :showSelection="true"
              v-on:multipleSelect="multipleSelect"
              prop="liaall.tenstm"
            >
219
            </c-istream-table-noPag>
220 221 222 223 224
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="" label-width="0">
          </el-form-item>
潘际乾 committed
225
        </c-col>
226 227
        <c-col :span="24">
          <c-col :span="13">
228
            <el-form-item label="应付金额" prop="setmod.doccur">
229 230 231 232 233 234
              <c-input
                v-model="model.setmod.doccur"
                maxlength="3"
                placeholder="请选择币种"
                disabled
              ></c-input>
zhujiazhan committed
235
            </el-form-item>
236 237 238 239 240 241 242 243 244 245 246
          </c-col>
          <c-col :span="11">
            <el-form-item label="" label-width="5px" prop="setmod.docamt">
              <c-input
                v-model="model.setmod.docamt"
                placeholder="请输入金额"
                @keyup.enter.native="$event.target.blur()"
                @blur="eventFunction('setmod.docamt')"
              ></c-input>
            </el-form-item>
          </c-col>
zhujiazhan committed
247 248
        </c-col>
        <c-col :span="24">
249
          <c-col :span="13">
250
            <el-form-item label="实付金额" prop="setmod.doccur">
251 252 253 254 255 256
              <c-input
                v-model="model.setmod.doccur"
                maxlength="3"
                placeholder="请选择币种"
                disabled
              ></c-input>
zhujiazhan committed
257
            </el-form-item>
258 259
          </c-col>
          <c-col :span="11">
zhujiazhan committed
260
            <c-fullbox>
261 262 263 264 265 266 267
              <el-form-item label="" label-width="5px" prop="setmod.setamt">
                <c-input
                  v-model="model.setmod.setamt"
                  placeholder="请输入金额"
                  disabled
                ></c-input>
              </el-form-item>
zhujiazhan committed
268
            </c-fullbox>
269 270
          </c-col>
        </c-col>
严一鸣 committed
271

272 273
        <c-col :span="24">
          <c-col :span="13">
274
            <el-form-item label="单据金额部分" prop="brdgrp.cbs.opn2.cur">
275 276 277 278 279 280 281 282
              <c-select
                v-model="model.brdgrp.cbs.opn2.cur"
                style="width: 100%"
                placeholder="请选择币种"
                :code="codes.cur"
                disabled
              >
              </c-select>
zhujiazhan committed
283
            </el-form-item>
284 285
          </c-col>
          <c-col :span="11">
zhujiazhan committed
286
            <el-form-item label="" prop="aamset.utlamt" label-width="5px">
287 288 289
              <c-input
                v-model="model.aamset.utlamt"
                placeholder="请输入金额"
290
                :disabled="true"
291 292 293
                @keyup.enter.native="$event.target.blur()"
                @blur="eventFunction('aamset.utlamt')"
              ></c-input>
zhujiazhan committed
294
            </el-form-item>
295 296
          </c-col>
        </c-col>
严一鸣 committed
297

298 299
        <c-col :span="24">
          <c-col :span="13">
300
            <el-form-item label="附加金额部分" prop="brdgrp.cbs.opn2.cur">
301 302 303 304 305 306 307 308
              <c-select
                v-model="model.brdgrp.cbs.opn2.cur"
                style="width: 100%"
                placeholder="请选择币种"
                :code="codes.cur"
                disabled
              >
              </c-select>
zhujiazhan committed
309
            </el-form-item>
310 311
          </c-col>
          <c-col :span="11">
zhujiazhan committed
312
            <el-form-item label="" prop="aamset.utlamt2" label-width="5px">
313 314 315
              <c-input
                v-model="model.aamset.utlamt2"
                placeholder="请输入金额"
316
                :disabled="true"
317 318
                @change="eventFunction('aamset.utlamt2')"
              ></c-input>
zhujiazhan committed
319
            </el-form-item>
320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335
          </c-col>
        </c-col>
        <c-col :span="24">
          <c-col :span="12">
            <el-form-item
              label="跨境人民币清算模式"
              prop="trnmod.cmtflg"
              v-show="model.setmod.doccur == 'CNY'"
            >
              <c-select
                v-model="model.trnmod.cmtflg"
                style="width: 100%"
                placeholder="请选择跨境人民币清算模式"
                :code="this.cmtflg"
                :disabled="model.brdgrp.rec.frepayflg == '' ? false : true"
              >
严一鸣 committed
336
              </c-select>
337 338 339 340 341 342 343 344 345
            </el-form-item>
          </c-col>
          <c-col :span="12" class="">
            <el-form-item
              label=" "
              prop="mtabut.clsflg"
              label-width="120px"
              style="float: left"
            >
346
              <c-checkbox v-model="model.mtabut.clsflg" true-label="C"
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
                >闭卷标识</c-checkbox
              >
            </el-form-item>
          </c-col>
        </c-col>
        <c-col :span="24">
          <el-form-item
            label="报文类型"
            prop="trnmod.swftyp"
            v-show="model.trnmod.cmtflg == 'P' ? true : false"
          >
            <c-select
              v-model="model.trnmod.swftyp"
              style="width: 100%"
              placeholder="请选择报文类型"
              :code="codes.swftyp1"
              disabled
            >
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="发票号" prop="brdgrp.rec.invref">
            <c-input
              v-model="model.brdgrp.rec.invref"
              maxlength="35"
              placeholder="请输入发票号"
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="最迟送达日期" prop="zcsdrq">
            <c-date-picker
              type="date"
              v-model="model.zcsdrq"
              style="width: 100%"
              placeholder="请选择最迟送达日期"
            ></c-date-picker>
          </el-form-item>
        </c-col>
严一鸣 committed
387

388 389
        <c-col :span="24">
          <el-form-item label="待偿还账单">
潘际乾 committed
390
            <div class="e-table-wrapper">
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
              <c-table
                style="text-align: center"
                :list="table1"
                :paginationShow="false"
                :border="true"
              >
                <el-table-column
                  label="编号"
                  prop="ownref"
                  width="auto"
                ></el-table-column>
                <el-table-column
                  label="币种"
                  prop="opncur"
                  width="auto"
                ></el-table-column>
                <el-table-column
                  label="余额"
                  prop="opnamt"
                  width="auto"
                ></el-table-column>
                <el-table-column
                  label="付款"
                  prop="bckamt"
                  width="auto"
                ></el-table-column>
                <el-table-column
                  label="计算"
                  prop="butcal"
                  width="auto"
                ></el-table-column>
              </c-table>
            </div>
          </el-form-item>
        </c-col>
严一鸣 committed
426

427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444
        <c-col :span="12">
          <el-form-item label="是否需要检验" prop="brtp.ischktyp">
            <c-select
              v-model="model.brtp.ischktyp"
              style="width: 100%"
              placeholder=""
              :code="codes.ischktyp"
            >
              <el-option
                v-for="item in codes.ischktyp"
                :key="item.label"
                :label="item.label"
                :value="item.label"
              >
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>
zhujiazhan committed
445

446 447 448 449 450 451 452 453 454 455 456
        <c-col :span="12">
          <el-form-item label="预计核验日期" prop="brtp.prechkdat">
            <c-date-picker
              type="date"
              v-model="model.brtp.prechkdat"
              style="width: 100%"
              placeholder="请选择预计核验日期"
              :disabled="model.brtp.ischktyp != 'Y'"
            ></c-date-picker>
          </el-form-item>
        </c-col>
nanrui committed
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
        <c-col :span="11" :offset="1">
          <c-col :span="12">
            <el-form-item label="" prop="trtcre.crefinflg" class="checkbox-left" label-width="0">
              <c-checkbox v-model="model.trtcre.crefinflg" :disabled="
                                model.paypsb != '' || model.brdgrp.rec.frepayflg != ''
                                  ? true
                                  : false
                              ">创建融资</c-checkbox>
            </el-form-item>
          </c-col>
          <c-col :span="12">
            <el-form-item label="" prop="dftcre.dfflag" class="checkbox-left" label-width="0">
              <c-checkbox v-model="model.dftcre.dfflag">同业代付</c-checkbox>
            </el-form-item>
          </c-col>
        </c-col>
        <c-col :span="11">
          <c-col :span="12">
            <el-form-item label="" prop="paypsb" class="checkbox-left" label-width="0">
              <c-checkbox v-model="model.paypsb" :disabled="model.brdgrp.rec.frepayflg == '' ? false : true">垫款</c-checkbox>
            </el-form-item>
          </c-col>
          <c-col :span="12">
            <el-form-item label="" prop="brdgrp.rec.frepayflg" class="checkbox-left" label-width="0">
              <c-checkbox v-model="model.brdgrp.rec.frepayflg">自由付款标志</c-checkbox>
            </el-form-item>
          </c-col>
        </c-col>
        </c-col>
486 487 488 489 490 491 492 493 494 495 496 497
      <!-- ====================右边======================= -->
      <c-col :span="12" style="padding-left: 20px">
        <c-col :span="24">
          <c-col :span="13">
            <el-form-item label="信用证余额" prop="lidgrp.cbs.opn1.cur">
              <c-input
                v-model="model.lidgrp.cbs.opn1.cur"
                maxlength="3"
                placeholder="请输入币种"
                disabled
              ></c-input>
            </el-form-item>
498
          </c-col>
499 500 501 502 503 504 505 506 507 508
          <c-col :span="11">
            <el-form-item label="" prop="lidgrp.cbs.opn1.amt" label-width="5px">
              <c-input
                v-model="model.lidgrp.cbs.opn1.amt"
                placeholder="请输入金额"
                disabled
              ></c-input>
            </el-form-item>
          </c-col>
        </c-col>
509

严一鸣 committed
510
        <c-col :span="24">
511 512 513 514 515 516 517 518 519
          <el-form-item label="单据简略信息" prop="brdgrp.rec.nam">
            <c-input
              v-model="model.brdgrp.rec.nam"
              maxlength="40"
              placeholder="请输入简略信息"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
严一鸣 committed
520 521

        <c-col :span="24">
522 523 524 525 526 527 528 529 530
          <el-form-item label="申请人参考号" prop="brdgrp.apl.pts.ref">
            <c-input
              v-model="model.brdgrp.apl.pts.ref"
              maxlength="16"
              placeholder="请输入申请人参考号"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
严一鸣 committed
531 532

        <c-col :span="24">
533 534 535 536 537 538 539 540 541
          <el-form-item label="申请人名称" prop="brdgrp.apl.pts.nam">
            <c-input
              v-model="model.brdgrp.apl.pts.nam"
              maxlength="40"
              placeholder="请输入名称"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
jianglong committed
542

543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562
        <c-col :span="24">
          <el-form-item label="受益人参考号" prop="brdgrp.ben.pts.ref">
            <c-input
              v-model="model.brdgrp.ben.pts.ref"
              maxlength="16"
              placeholder="请输入受益人"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="受益人名称" prop="brdgrp.ben.pts.nam">
            <c-input
              v-model="model.brdgrp.ben.pts.nam"
              maxlength="40"
              placeholder="请输入名称"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
jianglong committed
563

564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583
        <c-col :span="24">
          <el-form-item label="交单行参考号" prop="brdgrp.prb.pts.ref">
            <c-input
              v-model="model.brdgrp.prb.pts.ref"
              maxlength="16"
              placeholder="请输入交单行"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="交单行名称" prop="brdgrp.prb.pts.nam">
            <c-input
              v-model="model.brdgrp.prb.pts.nam"
              maxlength="40"
              placeholder="请输入名称"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
jianglong committed
584

zhujiazhan committed
585
        <c-col :span="24">
586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605
          <c-col :span="13">
            <el-form-item label="减少付汇金额" prop="setmod.doccur">
              <c-input
                v-model="model.setmod.doccur"
                maxlength="3"
                placeholder="请输入币种"
                disabled
              ></c-input>
            </el-form-item>
          </c-col>
          <c-col :span="11">
            <el-form-item label="" prop="setmod.redamt" label-width="5px">
              <c-input
                v-model="model.setmod.redamt"
                placeholder="请输入金额"
                :disabled="model.brdgrp.rec.frepayflg != '' ? true : false"
              ></c-input>
            </el-form-item>
          </c-col>
        </c-col>
严一鸣 committed
606

607 608 609 610 611 612 613 614 615
        <c-col :span="24">
          <el-form-item label="合同号" prop="brdgrp.rec.rptref">
            <c-input
              v-model="model.brdgrp.rec.rptref"
              maxlength="25"
              placeholder="请输入合同号"
            ></c-input>
          </el-form-item>
        </c-col>
严一鸣 committed
616

617 618 619 620 621 622 623 624 625 626
        <c-col :span="24">
          <el-form-item label="77A字段" prop="nar754">
            <c-input
              type="textarea"
              v-model="model.nar754"
              maxlength="700"
              show-word-limit
              placeholder="请输入77A字段内容"
            ></c-input>
          </el-form-item>
严一鸣 committed
627 628 629
        </c-col>

        <c-col :span="24">
630 631 632 633 634
          <el-form-item label="交单人" prop="brdgrp.rec.docprbrol">
            <c-select
              v-model="model.brdgrp.rec.docprbrol"
              style="width: 100%"
              placeholder="请选择交单人"
huangxin committed
635 636 637
              @change="selectOrCheckboxRule('brdgrp.rec.docprbrol')"
              :code="codes.docprbrol1"

638 639 640 641
            >
            </c-select>
          </el-form-item>
        </c-col>
严一鸣 committed
642 643

        <c-col :span="24">
644
          <el-form-item label="交单人地址编码" prop="brdgrp.prb.pts.extkey">
严一鸣 committed
645
            <c-fullbox>
646
              <c-input
huangxin committed
647
              :disabled="this.flag4"
648 649 650 651 652 653 654 655
                v-model="model.brdgrp.prb.pts.extkey"
                maxlength="16"
                placeholder="请输入地址编码"
                @keyup.enter.native="
                  showGridPromptDialog('brdgrp.prb.pts.extkey')
                "
              ></c-input>
              <template slot="footer">
严一鸣 committed
656
                <c-button
657
                  style="margin: 0 10px 0 10px; padding: 0 12px"
严一鸣 committed
658 659
                  size="small"
                  type="primary"
660
                  @click="onSeainf"
661 662 663
                  icon="el-icon-info"
                >
                  <span style="font-family: '宋体'; font-weight: bold"></span>
严一鸣 committed
664 665
                </c-button>
                <c-button
666
                  style="margin: 0 0 0 10px; padding: 0 12px"
严一鸣 committed
667 668
                  size="small"
                  type="primary"
669 670
                  @click="onSeainf"
                  icon="el-icon-info"
671 672
                >
                  <span style="font-family: '宋体'; font-weight: bold"></span>
严一鸣 committed
673
                </c-button>
674 675 676 677
              </template>
            </c-fullbox>
          </el-form-item>
        </c-col>
严一鸣 committed
678 679

        <c-col :span="24">
680 681 682 683 684 685 686 687
          <el-form-item label="名称地址" prop="brdgrp.prb.pts.adrblk">
            <c-input
              type="textarea"
              v-model="model.brdgrp.prb.pts.adrblk"
              row="4"
              maxlength="140"
              show-word-limit
              placeholder="请输入名称地址"
huangxin committed
688
              :disabled="model.brdgrp.prb.pts.extkey!=''"
689 690
            ></c-input>
          </el-form-item>
严一鸣 committed
691
        </c-col>
692 693
      </c-col>
    </c-row>
严一鸣 committed
694 695 696
  </div>
</template>
<script>
697
import Api from "~/service/Api";
严一鸣 committed
698
import commonProcess from "~/mixin/commonProcess";
699 700
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Brtset/Event";
严一鸣 committed
701 702

export default {
703 704 705 706 707
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {
huangxin committed
708
      flag4:true,
709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731
      flag3: true,
      cmtflg: [
        { label: "代理行模式", value: "C" },
        { label: "其他", value: "O" },
        { label: "CIPS系统", value: "P" },
      ],
      table1: [],
      columns: [
        '1 1 "类型" 80',
        '2 2 "债务方" 100',
        '3 3 "债券方" 100',
        '4 4 "币种" 80',
        '5 5 "金额" 85 2 8 1 4',
        '6 6 "到期日" 105 4 7 1',
      ],
    };
  },
  methods: {
    ...Event,

    commonExecuteRule(ruleName) {
      this.executeRule(ruleName).then((res) => {
        if (res.respCode == SUCCESS) {
严一鸣 committed
732
        }
733
      });
严一鸣 committed
734
    },
735
    async multipleSelect(selection) {
736 737 738
      console.log(selection);
      if (selection.length > 1) {
        this.$notify({
wangna committed
739 740
          title: "错误",
          message: "您不能选择多个期限",
741 742
          type: "error",
        });
743
      } else {
744 745 746 747 748 749 750 751 752 753 754 755 756 757 758
        let chkIds;
        if (selection.length === 0) {
          chkIds = [];
        } else {
          chkIds = [selection[0] + 1];
        }
        //
        console.log(this.model.liaall.tensetstm);
        let params = { chkDst: "liaall.tenstm", chkIds };
        const rtnmsg = await this.executeRule("liaall.tenstm", params);
        if (rtnmsg.respCode == SUCCESS) {
          this.updateModel(rtnmsg.data);
        } else {
          this.$notify.error({ title: "错误", message: "服务请求失败!" });
        }
759
      }
760
    },
761 762 763
  },
  created: function () {},
  watch: {
huangxin committed
764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784
    "model.brtp.ischktyp": {
      immediate: true,
      handler(val, oldVal) {
        if (this.model.brtp.ischktyp == "N"||this.model.brtp.ischktyp == "") {
          this.model.brtp.prechkdat = "";
        } 
      },
    },
    "model.brdgrp.rec.docprbrol":function(){
            if(this.model.brdgrp.rec.docprbrol=='ADV'){
                this.flag4=true;
            }
            else if(this.model.brdgrp.rec.docprbrol=='BEN'){
                this.flag4=true;
            }
            else if(this.model.brdgrp.rec.docprbrol=='PRB'){
                this.flag4=false;
            }

        },

785 786 787 788 789 790 791 792 793 794
    declareParams() {},
    "model.trnmod.cmtflg": {
      immediate: true,
      handler(val, oldVal) {
        if (this.model.trnmod.cmtflg == "P") {
          this.model.trnmod.swftyp = "CIV";
        } else {
          this.model.trnmod.swftyp = "";
        }
      },
严一鸣 committed
795
    },
796 797
  },
};
严一鸣 committed
798 799 800
</script>
<style>
</style>