Infsea.vue 17.7 KB
Newer Older
1
<template>
LiRui committed
2
  <div class="eibs">
3 4 5 6 7 8 9 10 11 12 13 14 15
    <c-list-search @form-reset="handleReset" @form-search="handleSearch">
      <template v-slot="searchSlot">
        <el-form
          class="m-table-search-form"
          ref="paramsForm"
          label-position="right"
          label-width="110px"
          size="small"
        >
          <el-row>
            <c-col :span="24">
              <c-col :span="8">
                <el-form-item
wangna committed
16
                  label="出口融资编号"
17
                  prop="infcon.seaownref"
hpj committed
18
                  style="width: 100%"
19 20 21 22
                >
                  <c-input
                    v-model="model.infcon.seaownref"
                    maxlength="16"
wangna committed
23
                    placeholder="请输入出口融资编号"
24 25
                  ></c-input>
                </el-form-item>
hpj committed
26
              </c-col>
27 28 29

              <c-col :span="8">
                <el-form-item
wangna committed
30
                  label="开立日期"
31
                  prop="infcon.opndatfrom"
hpj committed
32
                  style="width: 100%"
33 34 35 36 37 38 39
                >
                  <c-col :span="11">
                    <c-date-picker
                      type="date"
                      value-format="yyyy-MM-dd"
                      v-model="model.infcon.opndatfrom"
                      style="width: 100%"
wangna committed
40
                      placeholder="请选择起始日期"
41 42 43 44 45 46 47 48 49 50 51
                    ></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"
                      value-format="yyyy-MM-dd"
                      v-model="model.infcon.opndatto"
                      style="width: 100%"
wangna committed
52
                      placeholder="请选择截止日期"
53 54 55
                    ></c-date-picker>
                  </c-col>
                </el-form-item>
hpj committed
56 57
              </c-col>

58 59
              <c-col :span="8">
                <el-form-item
wangna committed
60
                  label="业务简略信息"
61 62 63 64 65 66
                  prop="infcon.nam"
                  style="width: 100%"
                >
                  <c-input
                    v-model="model.infcon.nam"
                    maxlength="40"
wangna committed
67
                    placeholder="请输入业务简略信息"
68 69 70 71 72
                  ></c-input>
                </el-form-item>
              </c-col>
            </c-col>
          </el-row>
hpj committed
73

74 75 76 77
          <el-row v-show="searchSlot.searchToggle">
            <c-col :span="24">
              <c-col :span="8">
                <el-form-item
wangna committed
78
                  label="版本状态"
79 80 81 82 83 84
                  prop="infcon.relflg"
                  style="width: 100%"
                >
                  <c-select
                    v-model="model.infcon.relflg"
                    style="width: 100%"
wangna committed
85
                    placeholder="请选择版本状态"
86 87 88 89
                  >
                  </c-select>
                </el-form-item>
              </c-col>
hpj committed
90

91 92
              <c-col :span="8">
                <el-form-item
wangna committed
93
                  label="当事人编号"
94 95 96 97 98 99
                  prop="infcon.pty.extkey"
                  style="width: 100%"
                >
                  <c-input
                    v-model="model.infcon.pty.extkey"
                    maxlength="24"
wangna committed
100
                    placeholder="请输入当事人编号"
101 102 103
                  ></c-input>
                </el-form-item>
              </c-col>
hpj committed
104

105 106
              <c-col :span="8">
                <el-form-item
wangna committed
107
                  label="当事人名称"
108 109 110 111 112 113
                  prop="infcon.pty.nam"
                  style="width: 100%"
                >
                  <c-input
                    v-model="model.infcon.pty.nam"
                    maxlength="40"
wangna committed
114
                    placeholder="请输入当事人名称"
115 116 117 118
                  ></c-input>
                </el-form-item>
              </c-col>
            </c-col>
119

120 121 122
            <c-col :span="24">
              <c-col :span="8">
                <el-form-item
wangna committed
123
                  label="当事人BIC编码"
124 125 126 127 128 129
                  prop="infcon.seapty"
                  style="width: 100%"
                >
                  <c-input
                    v-model="model.infcon.seapty"
                    maxlength="24"
wangna committed
130
                    placeholder="请输入当事人BIC编码"
131 132 133
                  ></c-input>
                </el-form-item>
              </c-col>
134

135 136
              <c-col :span="8">
                <el-form-item
wangna committed
137
                  label="当事人角色"
138 139 140 141 142 143
                  prop="infcon.searol"
                  style="width: 100%"
                >
                  <c-select
                    v-model="model.infcon.searol"
                    style="width: 100%"
wangna committed
144
                    placeholder="请选择当事人角色"
145 146 147 148
                  >
                  </c-select>
                </el-form-item>
              </c-col>
149

150 151
              <c-col :span="8">
                <el-form-item
wangna committed
152
                  label="当事人参考号"
153 154 155 156 157 158
                  prop="infcon.searef"
                  style="width: 100%"
                >
                  <c-input
                    v-model="model.infcon.searef"
                    maxlength="16"
wangna committed
159
                    placeholder="请输入当事人参考号"
160 161 162 163
                  ></c-input>
                </el-form-item>
              </c-col>
            </c-col>
164

165 166 167
            <c-col :span="24">
              <c-col :span="8">
                <el-form-item
wangna committed
168
                  label="客户经理"
169 170 171 172 173 174
                  prop="infcon.usr.extkey"
                  style="width: 100%"
                >
                  <c-input
                    v-model="model.infcon.usr.extkey"
                    maxlength="8"
wangna committed
175
                    placeholder="请输入客户经理"
176 177 178
                  ></c-input>
                </el-form-item>
              </c-col>
179

180 181
              <c-col :span="8">
                <el-form-item
wangna committed
182
                  label="业务状态"
183 184
                  prop="infcon.seasta"
                  style="width: 100%"
hpj committed
185
                >
186 187 188
                  <c-select
                    v-model="model.infcon.seasta"
                    style="width: 100%"
wangna committed
189
                    placeholder="请选择业务状态"
190 191 192 193 194 195 196 197 198 199 200 201 202
                  >
                    <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 :span="8">
                <el-form-item
wangna committed
203
                  label="币种"
204 205
                  prop="infcon.seacur"
                  style="width: 100%"
hpj committed
206
                >
207 208 209
                  <c-select
                    v-model="model.infcon.seacur"
                    style="width: 100%"
wangna committed
210
                    placeholder="请选择币种"
211 212 213 214 215 216 217 218 219 220 221 222
                  >
                    <el-option
                      v-for="item in codes.curtxt"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value"
                    >
                    </el-option>
                  </c-select>
                </el-form-item>
              </c-col>
            </c-col>
223

224 225 226
            <c-col :span="24">
              <c-col :span="8">
                <el-form-item
wangna committed
227
                  label="预付款类型"
228 229
                  prop="seafintyp"
                  style="width: 100%"
hpj committed
230
                >
231 232 233
                  <c-select
                    v-model="model.seafintyp"
                    style="width: 100%"
wangna committed
234
                    placeholder="请选择预付款类型"
235 236 237 238 239 240 241 242 243 244 245
                  >
                    <el-option
                      v-for="item in codes.boppayattr"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value"
                    >
                    </el-option>
                  </c-select>
                </el-form-item>
              </c-col>
246

247 248 249 250 251
              <c-col :span="8">
                <el-form-item
                  label="融资状态"
                  prop="infcon.cxmflg"
                  style="width: 100%"
hpj committed
252
                >
253 254 255
                  <c-select
                    v-model="model.infcon.cxmflg"
                    style="width: 100%"
wangna committed
256
                    placeholder="请选择融资状态"
257 258 259 260 261 262 263 264 265 266 267
                  >
                    <el-option
                      v-for="item in codes.ovdflg"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value"
                    >
                    </el-option>
                  </c-select>
                </el-form-item>
              </c-col>
268

269 270 271 272 273
              <c-col :span="8">
                <el-form-item
                  label="福费廷转卖类型"
                  prop="infcon.cxmflg"
                  style="width: 100%"
hpj committed
274
                >
275 276 277
                  <c-select
                    v-model="model.infcon.cxmflg"
                    style="width: 100%"
wangna committed
278
                    placeholder="请选择福费廷转卖类型"
279 280 281
                  >
                  </c-select>
                </el-form-item>
hpj committed
282
              </c-col>
283 284 285 286 287
            </c-col>

            <c-col :span="24">
              <c-col :span="8">
                <el-form-item
wangna committed
288
                  label="福费廷类型"
289 290 291 292 293 294
                  prop="infcon.cxmflg"
                  style="width: 100%"
                >
                  <c-select
                    v-model="model.infcon.cxmflg"
                    style="width: 100%"
wangna committed
295
                    placeholder="请选择福费廷类型"
296 297 298 299 300 301 302 303 304 305
                  >
                    <el-option
                      v-for="item in codes.ffttyp"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value"
                    >
                    </el-option>
                  </c-select>
                </el-form-item>
hpj committed
306
              </c-col>
307 308
              <c-col :span="8">
                <el-form-item
wangna committed
309
                  label="金额区间"
310 311 312 313 314 315
                  prop="infcon.seaamtfr"
                  style="width: 100%"
                >
                  <c-col :span="11">
                    <c-input-currency
                      v-model="model.infcon.seaamtfr"
wangna committed
316
                      placeholder="请输入金额下限"
317 318 319 320 321 322 323 324
                    ></c-input-currency>
                  </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-currency
                      v-model="model.infcon.seaamtto"
wangna committed
325
                      placeholder="请输入金额上限"
326 327 328
                    ></c-input-currency>
                  </c-col>
                </el-form-item>
hpj committed
329
              </c-col>
330 331 332 333 334
            </c-col>
          </el-row>
        </el-form> </template
    ></c-list-search>

LiRui committed
335
    <c-col :span="24" style="margin-top: 10px;">
336 337 338
      <c-button
        class="medium_bcs"
        size="medium"
LiRui committed
339
        style="margin-left: 0px;padding: 20px 16px"
340 341 342
        type="primary"
        @click="toBptopn"
        >出口融资放款</c-button
hpj committed
343
      >
344 345 346
    </c-col>

    <c-col :span="24">
347 348
      <c-istream-table :list="stmData.data" :columns="stmData.columns" :showButtonFlg="true">
        <el-table-column fixed="right" prop="op" width="140px">
349
          <template slot="header">
350 351
            <c-col :span="11" style="text-align: center"><span>操作</span></c-col>
            <!-- <c-col :span="12" style="text-align: right"
352
              ><c-button icon="el-icon-s-tools"></c-button
353
            ></c-col> -->
354 355
          </template>
          <template slot-scope="scope">
356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374
            <el-popover
              placement="top-start"
              title="历史信息"
              width="800"
              trigger="click"
              :ref="'popover_' + scope.row.IDX"
            >
              <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)"
                />
375
              </div>
376

377 378 379
              <c-istream-table :list="trnData.data" :columns="trnData.columns">
                <el-table-column prop="op" label="操作" width="0">
                  <template slot-scope="scope">
380 381 382 383 384
                    <c-button
                      style="margin-left: 0"
                      size="small"
                      @click="display(scope.row['INR'])"
                    >
385 386 387 388 389
                      详情
                    </c-button>
                  </template>
                </el-table-column>
              </c-istream-table>
390 391 392 393 394 395
              <c-button
                style="margin-left: 0"
                size="small"
                @click="getTrnInfo(scope.$index, scope.row)"
                slot="reference"
              >
396 397 398
                详情
              </c-button>
            </el-popover>
399

400
            <c-button
401
              style="margin-left: 5px"
402 403 404 405
              size="small"
              type="primary"
              @click="getButtons(scope.row['出口融资编号'])"
            >
406 407 408 409 410 411 412
              处理
            </c-button>
          </template>
        </el-table-column>
      </c-istream-table>
    </c-col>

413 414 415 416 417 418 419 420 421 422
    <m-busbtn
      ref="childs"
      :ownref="ownref"
      :model="BptselModel"
      ownrefPath="bpdgrp"
      trnCode="bptsel"
      @onChoose="onChoose"
      >11</m-busbtn
    >
  </div>
423 424
</template>
<script>
425
import Utils from "~/utils/index";
hpj committed
426
import Api from "~/service/Api";
wangren committed
427
import commonProcess from "~/mixin/commonProcess";
hpj committed
428 429
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Infbpd/Event";
430
import BusNavbar from "~/views/Public/BusNavbar";
431

432
import BptselModel from "~/model/Bptsel";
wanggang_yf committed
433

434
export default {
hpj committed
435 436 437
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
438
  components: { "m-busbtn": BusNavbar },
hpj committed
439 440
  data() {
    return {
wanggang_yf committed
441
      BptselModel: new BptselModel().data,
442
      ownref: "",
wanggang_yf committed
443
      initdialog: false,
444
      dialogTableVisible: false,
hpj committed
445 446 447
      searchToggle: true,
      stmData: {
        columns: [
448
          '1 1 "出口融资编号" 150',
449
          '2 2 "客户经理" 100',
450
          // '19 3 "融资类型" 120',
hpj committed
451
          {
452 453 454 455 456 457
            index: 19,
            position: 3,
            width: 120,
            pattern: "code",
            label: "融资类型",
            code: this.codes.fintyp_bpd,
hpj committed
458
          },
459
          '3 4 "Parent Contract" 140',
460 461 462 463 464 465 466
          '4 5 "执行利率" 120',   
          '22 6 "Pta .No" 120',
          '23 7 "当事人编号" 200',
          '24 8 "Advanced Party" 200',
          '25 9 "Advanced CN" 200',
          '5 10 "融资状态" 100',
          '6 11 "融资账号" 100',
467 468 469 470 471
          '31 12 "组织机构代码" 120',
          '7 13 "开立日期" 150',
          '8 14 "关闭日期" 150',
          '18 15 "参考指标" 100',
          '27 16 "单据金额币种" 120',
472 473 474
          '28 17 "单据金额" 110',
          '29 18 "余额币种" 100',
          '30 19 "余额" 110',
475
          '9 20 "融资天数" 100',
476 477 478
          '26 21 "Pty .No" 120',
          '10 22 "福费廷类型" 120',
          '11 23 "福费廷转卖类型" 150',
479 480 481
          '12 24 "卖出日期" 150',
          '13 25 "包买行SWIFT号" 140',
          '14 26 "包买行英文名称" 140',
482 483 484
          '15 27 "包买行融资到期日" 150',
          '16 28 "包买行汇入我行款项金额" 200',
          '17 29 "我行卖出执行利率" 150',
485 486
          '20 30 "开证行BIC编码" 140',
          '21 31 "开证行BIC名称" 140',
hpj committed
487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513
        ],
        data: [],
      },
      trnData: {
        columns: [
          '1 1 "编号" 200',
          '2 2 "交易名称" 130',
          // '3 3 "日期" 200',
          { index: 3, position: 3, width: 110, pattern: "date", label: "日期" },
          // '4 4 "状态" 50',
          {
            index: 4,
            position: 4,
            width: 100,
            pattern: "code",
            label: "状态",
            code: this.codes.relstaEN,
          },
          '5 5 "币种" 80',
          '6 6 "金额" 100',
        ],
        data: [],
      },
    };
  },
  methods: {
    ...Event,
514 515
    async getButtons(ownref) {
      this.ownref = ownref;
516
      this.BptselModel.clsflg = 'C'
517 518 519 520 521 522 523 524 525 526 527 528
      this.$refs.childs.initdialog = true;
      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;
wanggang_yf committed
529
    },
530 531 532 533 534 535
    async getTrnInfo(idx, row) {
      this.model.infcon.objinr = row["INR"];
      this.model.bpdgrp.rec.inr = row["INR"];
      this.model.infcon.chksubcon = "X";
      this.dialogTableVisible = true;
      let rtnmsg = await this.executeDefault("infcon.chksubcon");
536

537 538 539 540
      if ((rtnmsg.respCode = SUCCESS)) {
        this.trnData.data = rtnmsg.data.infcon_trnstm.rows;
      }
    },
541 542 543 544 545 546
    closeTrn(refId) {
      this.$refs[refId].doClose();
    },
    toBptopn() {
      this.$router.history.push("/business/bptopn");
    },
547 548 549 550 551 552 553 554 555 556 557 558
    toBPTSET() {
      this.$router.history.push("/business/bptset");
    },
    toBPTAME() {
      this.$router.history.push("/business/bptame");
    },
    toBPTCRF() {
      this.$router.history.push("/business/bptcrf");
    },
    toBPTCAN() {
      this.$router.history.push("/business/bptcan");
    },
hpj committed
559 560 561
  },
  created: function () {},
};
562 563
</script>
<style>
LiRui committed
564 565 566
.m-table-search {
  padding: 20px 0px 10px 0px;
}
567
</style>