Infsea.vue 22.7 KB
Newer Older
1 2
<template>
  <div class="eibs-tab">
wangna committed
3
    <c-list-search
wangna committed
4
      @form-reset="handleReset"
wangna committed
5 6
      @form-search="handleSearch"
    >
7 8 9 10 11 12 13 14 15
      <!-- 持续展示区 -->
      <template v-slot="searchSlot">
        <el-form
          class="m-table-search-form"
          ref="paramsForm"
          :inline="true"
          label-position="left"
          label-width="110px"
          size="small"
wangna committed
16
          :model="model"
17
        >
wangna committed
18 19 20 21
          <c-row>
            <c-col :span="24">
              <c-col :span="8">
                <el-form-item
wangna committed
22
                  label="保函编号"
wangna committed
23 24 25 26 27 28
                  prop="infcon.seaownref"
                  style="width: 100%"
                >
                  <c-input
                    v-model="model.infcon.seaownref"
                    maxlength="16"
wangna committed
29
                    placeholder="请输入保函编号"
wangna committed
30 31 32
                  ></c-input>
                </el-form-item>
              </c-col>
33

wangna committed
34 35
              <c-col :span="8">
                <el-form-item
wangna committed
36
                  label="开立日期"
wangna committed
37 38 39 40 41 42 43 44
                  prop="infcon.opndatfrom"
                  style="width: 100%"
                >
                  <c-col :span="11">
                    <c-date-picker
                      type="date"
                      v-model="model.infcon.opndatfrom"
                      style="width: 100%"
wangna committed
45
                      placeholder="请选择起始日期"
wangna committed
46 47 48 49 50 51 52 53 54 55 56
                      value-format="yyyy-MM-dd"
                    ></c-date-picker>
                  </c-col>
                  <c-col :span="2" style="text-align: center">
                    <label style="display: inline-block; width: 100%">-</label>
                  </c-col>
                  <c-col :span="11">
                    <c-date-picker
                      type="date"
                      v-model="model.infcon.opndatto"
                      style="width: 100%"
wangna committed
57
                      placeholder="请选择截止日期"
wangna committed
58 59 60 61 62
                      value-format="yyyy-MM-dd"
                    ></c-date-picker>
                  </c-col>
                </el-form-item>
              </c-col>
63

wangna committed
64 65
              <c-col :span="8">
                <el-form-item
66
                  label="进口/出口保函"
wangna committed
67 68
                  style="width: 100%"
                >
69 70 71 72 73 74
                  <c-select
                    v-model="isGuarantee"
                    style="width: 100%"
                    placeholder="请选择进口/出口保函"
                    :code="codes.guarantee"
                  ></c-select>
wangna committed
75 76 77 78
                </el-form-item>
              </c-col>
            </c-col>
          </c-row>
79

wangna committed
80 81 82 83 84
          <!-- 可控展示区 -->
          <c-row v-show="searchSlot.searchToggle">
            <c-col :span="24">
              <c-col :span="8">
                <el-form-item
wangna committed
85
                  label="业务简略信息"
wangna committed
86 87 88 89 90 91
                  prop="infcon.nam"
                  style="width: 100%"
                >
                  <c-input
                    v-model="model.infcon.nam"
                    maxlength="40"
wangna committed
92
                    placeholder="请输入业务简略信息"
wangna committed
93 94 95 96 97
                  ></c-input>
                </el-form-item>
              </c-col>
              <c-col :span="8">
                <el-form-item
wangna committed
98
                  label="当事人编号"
wangna committed
99 100 101 102 103 104
                  prop="infcon.pty.extkey"
                  style="width: 100%"
                >
                  <c-input
                    v-model="model.infcon.pty.extkey"
                    maxlength="16"
wangna committed
105
                    placeholder="请输入当事人编号"
wangna committed
106 107 108 109 110
                  ></c-input>
                </el-form-item>
              </c-col>
              <c-col :span="8">
                <el-form-item
wangna committed
111
                  label="当事人BIC编码"
wangna committed
112 113 114 115 116 117
                  prop="infcon.seapty"
                  style="width: 100%"
                >
                  <c-input
                    v-model="model.infcon.seapty"
                    maxlength="24"
wangna committed
118
                    placeholder="请输入当事人BIC编码"
wangna committed
119 120 121 122
                  ></c-input>
                </el-form-item>
              </c-col>
            </c-col>
123

wangna committed
124 125 126
            <c-col :span="24">
              <c-col :span="8">
                <el-form-item
wangna committed
127
                  label="当事人名称"
wangna committed
128 129 130 131 132 133
                  prop="infcon.pty.nam"
                  style="width: 100%"
                >
                  <c-input
                    v-model="model.infcon.pty.nam"
                    maxlength="40"
wangna committed
134
                    placeholder="请输入当事人名称"
wangna committed
135
                    disabled
wangna committed
136 137 138 139 140
                  ></c-input>
                </el-form-item>
              </c-col>
              <c-col :span="8">
                <el-form-item
wangna committed
141
                  label="版本状态"
wangna committed
142 143 144 145 146 147
                  prop="infcon.relflg"
                  style="width: 100%"
                >
                  <c-select
                    v-model="model.infcon.relflg"
                    style="width: 100%"
wangna committed
148
                    placeholder="请选择版本状态"
wangna committed
149 150 151 152 153 154
                  >
                  </c-select>
                </el-form-item>
              </c-col>
              <c-col :span="8">
                <el-form-item
wangna committed
155
                  label="处理类型"
wangna committed
156 157 158 159 160 161
                  prop="infcon.hndtyp"
                  style="width: 100%"
                >
                  <c-select
                    v-model="model.infcon.hndtyp"
                    style="width: 100%"
wangna committed
162
                    placeholder="请选择处理类型"
wangna committed
163 164 165 166 167 168 169 170 171 172 173
                  >
                    <el-option
                      v-for="item in codes.hndtyp"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value"
                    ></el-option>
                  </c-select>
                </el-form-item>
              </c-col>
            </c-col>
174

wangna committed
175 176 177
            <c-col :span="24">
              <c-col :span="8">
                <el-form-item
wangna committed
178
                  label="当事人角色"
wangna committed
179 180 181 182 183 184
                  prop="infcon.searol"
                  style="width: 100%"
                >
                  <c-select
                    v-model="model.infcon.searol"
                    style="width: 100%"
wangna committed
185
                    placeholder="请选择当事人角色"
wangna committed
186 187 188 189 190 191 192 193 194 195 196 197
                  >
                    <el-option
                      v-for="item in codes.payrol"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value"
                    ></el-option>
                  </c-select>
                </el-form-item>
              </c-col>
              <c-col :span="8">
                <el-form-item
wangna committed
198
                  label="客户经理"
wangna committed
199 200 201 202 203 204
                  prop="infcon.usr.extkey"
                  style="width: 100%"
                >
                  <c-input
                    v-model="model.infcon.usr.extkey"
                    maxlength="24"
wangna committed
205
                    placeholder="请输入客户经理"
wangna committed
206
                    disabled
wangna committed
207 208 209 210 211
                  ></c-input>
                </el-form-item>
              </c-col>
              <c-col :span="8">
                <el-form-item
wangna committed
212
                  label="业务状态"
wangna committed
213 214 215 216 217 218
                  prop="infcon.seasta"
                  style="width: 100%"
                >
                  <c-select
                    v-model="model.infcon.seasta"
                    style="width: 100%"
wangna committed
219
                    placeholder="请选择业务状态"
wangna committed
220 221 222 223 224 225 226 227 228 229 230
                  >
                    <el-option
                      v-for="item in codes.seasta"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value"
                    ></el-option>
                  </c-select>
                </el-form-item>
              </c-col>
            </c-col>
231

wangna committed
232 233 234
            <c-col :span="24">
              <c-col :span="8">
                <el-form-item
wangna committed
235
                  label="币种"
wangna committed
236 237 238 239 240 241
                  prop="infcon.seacur"
                  style="width: 100%"
                >
                  <c-select
                    v-model="model.infcon.seacur"
                    style="width: 100%"
wangna committed
242
                    placeholder="请选择币种"
wangna committed
243 244
                  >
                    <el-option
wangna committed
245
                      v-for="item in codes.curtxt1"
wangna committed
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
                      :key="item.value"
                      :label="item.label"
                      :value="item.value"
                    ></el-option>
                  </c-select>
                </el-form-item>
              </c-col>
              <c-col :span="8">
                <el-form-item
                  label="是否显示查询码"
                  prop="infcon.cxmflg"
                  style="width: 100%"
                >
                  <c-select
                    v-model="model.infcon.cxmflg"
                    style="width: 100%"
                    placeholder="请选择是否显示查询码"
                  >
                    <el-option
                      v-for="item in codes.cxmflg"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value"
                    ></el-option>
                  </c-select>
                </el-form-item>
              </c-col>
              <c-col :span="8">
                <el-form-item
wangna committed
275
                  label="金额区间"
wangna committed
276 277 278 279 280 281 282
                  prop="infcon.seaamtfr"
                  style="width: 100%"
                >
                  <c-col :span="11">
                    <c-input
                      v-model="model.infcon.seaamtfr"
                      style="width: 100%"
wangna committed
283
                      placeholder="请输入金额下限"
wangna committed
284 285 286 287 288 289 290 291 292
                    ></c-input>
                  </c-col>
                  <c-col :span="2" style="text-align: center">
                    <label style="display: inline-block; width: 100%">-</label>
                  </c-col>
                  <c-col :span="11">
                    <c-input
                      v-model="model.infcon.seaamtto"
                      style="width: 100%"
wangna committed
293
                      placeholder="请输入金额上限"
wangna committed
294 295 296 297 298
                    ></c-input>
                  </c-col>
                </el-form-item>
              </c-col>
            </c-col>
299

wangna committed
300 301 302
            <c-col :span="24">
              <c-col :span="8">
                <el-form-item
wangna committed
303
                  label="会议目的"
wangna committed
304 305 306 307 308 309
                  prop="seapurpos"
                  style="width: 100%"
                >
                  <c-select
                    v-model="model.seapurpos"
                    style="width: 100%"
wangna committed
310
                    placeholder="请选择会议目的"
wangna committed
311 312
                  >
                    <el-option
wangna committed
313
                      v-for="item in codes.purpos"
wangna committed
314 315 316 317 318 319 320 321 322
                      :key="item.value"
                      :label="item.label"
                      :value="item.value"
                    ></el-option>
                  </c-select>
                </el-form-item>
              </c-col>
              <c-col :span="8">
                <el-form-item
wangna committed
323
                  label="处理类型"
wangna committed
324 325 326 327 328 329
                  prop="seahndtyp"
                  style="width: 100%"
                >
                  <c-select
                    v-model="model.seahndtyp"
                    style="width: 100%"
wangna committed
330
                    placeholder="请选择处理类型"
wangna committed
331 332
                  >
                    <el-option
wangna committed
333
                      v-for="item in codes.seahndtyp1"
wangna committed
334 335 336 337 338 339 340 341 342
                      :key="item.value"
                      :label="item.label"
                      :value="item.value"
                    ></el-option>
                  </c-select>
                </el-form-item>
              </c-col>
              <c-col :span="8">
                <el-form-item
wangna committed
343
                  label="保函文本类型"
wangna committed
344 345 346 347 348 349
                  prop="seagtyp"
                  style="width: 100%"
                >
                  <c-select
                    v-model="model.seagtyp"
                    style="width: 100%"
wangna committed
350
                    placeholder="请选择保函文本类型"
wangna committed
351
                    :code="codes.typgar2"
wangna committed
352 353 354 355 356
                  >
                  </c-select>
                </el-form-item>
              </c-col>
            </c-col>
357

wangna committed
358 359 360 361 362 363 364 365 366 367 368
            <c-col :span="24">
              <c-col :span="8">
                <el-form-item
                  label="特殊保函类型"
                  prop="infcon.segtyp"
                  style="width: 100%"
                >
                  <c-select
                    v-model="model.infcon.segtyp"
                    style="width: 100%"
                    placeholder="请选择特殊保函类型"
wangna committed
369
                    :code="codes.segtyp"
wangna committed
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
                  >
                  </c-select>
                </el-form-item>
              </c-col>
              <c-col :span="8">
                <el-form-item
                  label="电子渠道类型"
                  prop="fromflg"
                  style="width: 100%"
                >
                  <c-select
                    v-model="model.fromflg"
                    style="width: 100%"
                    placeholder="请选择电子渠道类型"
                  >
                    <el-option
                      v-for="item in codes.fromflg"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value"
                    ></el-option>
                  </c-select>
                </el-form-item>
              </c-col>
              <c-col :span="8">
                <el-form-item
wangna committed
396
                  label="分离式保函"
wangna committed
397 398 399 400 401 402 403 404 405
                  prop="fenlishi"
                  style="width: 100%"
                >
                  <c-select
                    v-model="model.fenlishi"
                    style="width: 100%"
                    placeholder="请选择是否分离式保函"
                  >
                    <el-option
wangna committed
406
                      v-for="item in codes.fenlishi1"
wangna committed
407 408 409 410 411 412 413 414
                      :key="item.value"
                      :label="item.label"
                      :value="item.value"
                    ></el-option>
                  </c-select>
                </el-form-item>
              </c-col>
            </c-col>
415

wangna committed
416
            <c-col :span="24">
417 418
              <c-col :span="8">
                <el-form-item
wangna committed
419
                  label="当事人参考号"
420 421 422 423 424 425
                  prop="infcon.searef"
                  style="width: 100%"
                >
                  <c-input
                    v-model="model.infcon.searef"
                    maxlength="16"
wangna committed
426
                    placeholder="请输入当事人参考号"
427 428 429
                  ></c-input>
                </el-form-item>
              </c-col>
wangna committed
430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449
              <c-col :span="8">
                <el-form-item
                  label=""
                  style="margin-left: 110px"
                  prop="model.cmtflg"
                >
                  <c-checkbox v-model="model.cmtflg">跨境人民币保函</c-checkbox>
                </el-form-item>
              </c-col>
              <c-col :span="8">
                <el-form-item
                  label=""
                  style="margin-left: 110px"
                  prop="model.fingua"
                >
                  <c-checkbox v-model="model.fingua">融资性对外担保</c-checkbox>
                </el-form-item>
              </c-col>
            </c-col>
          </c-row>
450 451 452 453
        </el-form>
      </template>
    </c-list-search>

wangna committed
454
    <el-row>
wangna committed
455
      <c-col :span="24" style="margin-top: 10px">
wangna committed
456 457 458 459 460 461 462
        <c-button
          class="medium_bcs"
          size="medium"
          type="primary"
          @click="toGitpop"
          >进口保函预开立</c-button
        >
wangna committed
463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478
        <c-button
          class="medium_bcs"
          size="medium"
          type="primary"
          @click="toGitopn"
          >进口保函开立</c-button
        >
        <c-button
          style="margin-left: 20"
          class="medium_bcs"
          size="medium"
          type="primary"
          @click="toGetopn"
          >出口保函通知</c-button
        >
      </c-col>
479

wangna committed
480
      <c-col :span="24">
wangna committed
481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497
        <c-istream-table :list="stmData.data" :columns="stmData.columns">
          <el-table-column fixed="right" prop="op" label="操作" width="140px">
            <template slot="header">
              <c-col :span="11" style="text-align: left">
                <span>操作</span>
              </c-col>
              <c-col :span="12" style="text-align: right">
                <c-button icon="el-icon-s-tools"></c-button>
              </c-col>
            </template>
            <template slot-scope="scope">
              <el-popover
                placement="top-start"
                title="历史信息"
                width="800"
                trigger="click"
                :ref="'popover_' + scope.row.IDX"
wangna committed
498
              >
wangna committed
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
                <div
                  style="
                    text-align: right;
                    margin-top: -30px;
                    margin-right: 5px;
                    font-size: 16px;
                  "
                >
                  <span
                    class="el-icon-close"
                    @click="closeTrn('popover_' + scope.row.IDX)"
                  />
                </div>
                <c-istream-table
                  :list="trnData.data"
                  :columns="trnData.columns"
                >
                  <el-table-column prop="op" label="操作" width="0">
                    <template slot-scope="scope">
                      <c-button
                        style="margin-left: 0"
                        size="small"
                        @click="display(scope.row['INR'])"
                        >详情</c-button
                      >
                    </template>
                  </el-table-column>
                </c-istream-table>
                <c-button
                  style="margin-left: 0"
                  size="small"
                  @click="getTrnInfo(scope.$index, scope.row)"
                  slot="reference"
                  >详情</c-button
                >
              </el-popover>
wangna committed
535 536 537
              <c-button
                style="margin-left: 0"
                size="small"
wangna committed
538
                type="primary"
panziyi committed
539
                @click="getButtons(scope.row['保函编号'])"
wangna committed
540
                >处理</c-button
wangna committed
541
              >
wangna committed
542 543 544 545
            </template>
          </el-table-column>
        </c-istream-table>
      </c-col>
wangna committed
546
    </el-row>
wangna committed
547

wangna committed
548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571
    <div v-if="dialogFlag" class="m-list-btns">
      <m-busbtn
        ref="childs"
        :ownref="ownref"
        trnCode="gitsel"
        ownrefPath="gidgrp"
        :model="gitselModel"
        tabIndex="1"
        @onChoose="onChoose"
        >11</m-busbtn
      >
    </div>
    <div v-else>
      <m-busbtn
        ref="childs"
        :ownref="ownref"
        trnCode="getsel"
        ownrefPath="gidgrp"
        :model="getselModel"
        tabIndex="1"
        @onChoose="onChoose"
        >11</m-busbtn
      >
    </div>
572 573 574 575 576 577 578
  </div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Infgid/Event";
wangna committed
579 580

import GitselModel from "~/model/Gitsel";
wangna committed
581
import GetselModel from "~/model/Getsel";
wangna committed
582
import BusNavbar from "~/views/Public/BusNavbar";
583 584

export default {
wangna committed
585 586 587 588 589 590
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  components: { "m-busbtn": BusNavbar },
  data() {
    return {
wangna committed
591
      gitselModel: new GitselModel().data,
wangna committed
592
      getselModel: new GetselModel().data,
wangna committed
593 594
      ownref: "",
      dialogTableVisible: false,
wangna committed
595
      dialogFlag: true,
596
      isGuarantee:'',
wangna committed
597 598
      trnData: {
        columns: [
wangna committed
599 600 601 602
          '0 1 "交易ID" 100',
          '1 2 "保函编号" 200',
          '2 3 "交易名称" 200',
          '3 4 "入口" 200',
603 604 605 606 607 608
          // '4 5 "Status" 50',
          {
            index: 4,
            position: 5,
            width: 100,
            pattern: "code",
wangna committed
609
            label: "状态",
610 611
            code: this.codes.relflg,
          },
wangna committed
612 613 614
          '5 6 "币种" 80',
          '6 7 "相关金额" 150',
          '7 8 "标识" 100',
wangna committed
615 616 617 618 619
        ],
        data: [],
      },
      stmData: {
        columns: [
wangna committed
620 621
          '1 1 "保函编号" 130',
          '2 2 "客户经理" 100',
wangna committed
622 623 624 625
          // '8 3 "保函品种" 150',
          {
            index: 8,
            position: 3,
wangna committed
626
            width: 120,
wangna committed
627 628
            pattern: "code",
            label: "保函品种",
wangna committed
629
            code: this.codes.typgar1,
wangna committed
630
          },
wangna committed
631 632 633 634 635 636 637
          '11 4 "第一当事人编号" 150',
          '12 5 "申请人名称" 150',
          '17 6 "保函币种(RMB)" 130',
          '18 7 "保函金额(RMB)" 180',
          '13 8 "第二当事人编号" 150',
          '14 9 "受益人名称" 150',
          '3 10 "开立日期" 150',
wangna committed
638
          '10 11 "分行名称" 150',
wangna committed
639 640 641 642 643 644 645 646
          '21 12 "余额币种(RMB)" 130',
          '22 13 "余额(RMB)" 120',
          '4 14 "保函效期" 120',
          '5 15 "表外记账" 120',
          '15 16 "保函币种" 100',
          '16 17 "保函金额" 100',
          '19 18 "余额币种" 100',
          '20 19 "余额" 100',
wangna committed
647 648 649 650 651 652
          // '9 20 "Handling Type" 150',
          {
            index: 9,
            position: 20,
            width: 150,
            pattern: "code",
wangna committed
653
            label: "处理类型",
wangna committed
654 655
            code: this.codes.hndtyp,
          },
wangna committed
656
          '6 21"电子渠道类型" 150',
wangna committed
657
          '7 22"其他编号" 150',
wangna committed
658 659 660 661 662 663 664
        ],
        data: [],
      },
    };
  },
  methods: {
    ...Event,
wangna committed
665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681
    async getButtons(ownref) {
      this.ownref = ownref;
      this.$refs.childs.initdialog = true;
      this.dialogFlag = ownref.startsWith("LG");
      console.log("dialogFlag:" + this.dialogFlag);
      console.log("ownref:" + ownref);
    },
    async onChoose(code) {
      //跳转交易
      this.$router.history.push("/business/" + code);
      this.$refs.childs.initdialog = false;
    },
    async getDitSelInfo(code) {
      //跳转交易
      this.$router.history.push("/business/" + code);
      this.$refs.childs.initdialog = false;
    },
682

wangna committed
683 684 685 686
    async getTrnInfo(idx, row) {
      this.model.infcon.objinr = row["INR"];
      this.model.gidgrp.rec.inr = row["INR"];
      this.model.infcon.chksubcon = "X";
687

wangna committed
688 689
      this.dialogTableVisible = true;
      let rtnmsg = await this.executeDefault("infcon.chksubcon");
690

wangna committed
691 692 693
      if ((rtnmsg.respCode = SUCCESS)) {
        this.trnData.data = rtnmsg.data.infcon_trnstm.rows;
      }
694
    },
wangna committed
695 696 697
    closeTrn(refId) {
      this.$refs[refId].doClose();
    },
wangna committed
698 699 700
    toGitpop() {
      this.$router.history.push("/business/gitpop");
    },
wangna committed
701 702 703
    toGitopn() {
      this.$router.history.push("/business/gitopn");
    },
wangna committed
704 705 706
    toGetopn() {
      this.$router.history.push("/business/getopn");
    },
wangna committed
707 708 709 710 711 712
    // handleReset: function () {
    //   this.model = {
    //     instNo: "",
    //     instName: "",
    //   };
    // },
wangna committed
713 714
  },
  created: function () {},
wangna committed
715 716
  watch: {
    "model.gidgrp.rec.ownref": function () {},
wangna committed
717
  },
wangna committed
718
};
719 720 721 722 723 724
</script>
<style>
.el-dialog__body {
  padding: 10px 5px 50px;
}
</style>