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

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

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

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

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

106 107 108 109 110 111 112 113 114 115 116 117 118 119
              <c-col :span="8">
                <el-form-item
                  label="Party Name"
                  prop="infcon.pty.nam"
                  style="width: 100%"
                >
                  <c-input
                    v-model="model.infcon.pty.nam"
                    maxlength="40"
                    placeholder="请输入External Visible Name"
                  ></c-input>
                </el-form-item>
              </c-col>
            </c-col>
120

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

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

151 152 153 154 155 156 157 158 159 160 161 162 163 164
              <c-col :span="8">
                <el-form-item
                  label="Party Reference"
                  prop="infcon.searef"
                  style="width: 100%"
                >
                  <c-input
                    v-model="model.infcon.searef"
                    maxlength="16"
                    placeholder="请输入Party Reference"
                  ></c-input>
                </el-form-item>
              </c-col>
            </c-col>
165

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

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

225 226 227 228 229 230
            <c-col :span="24">
              <c-col :span="8">
                <el-form-item
                  label="Type of Advance"
                  prop="seafintyp"
                  style="width: 100%"
hpj committed
231
                >
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246
                  <c-select
                    v-model="model.seafintyp"
                    style="width: 100%"
                    placeholder="请选择Type of Advance"
                  >
                    <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>
247

248 249 250 251 252
              <c-col :span="8">
                <el-form-item
                  label="融资状态"
                  prop="infcon.cxmflg"
                  style="width: 100%"
hpj committed
253
                >
254 255 256 257 258 259 260 261 262 263 264 265 266 267 268
                  <c-select
                    v-model="model.infcon.cxmflg"
                    style="width: 100%"
                    placeholder="请选择是否显示查询码"
                  >
                    <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>
269

270 271 272 273 274
              <c-col :span="8">
                <el-form-item
                  label="福费廷转卖类型"
                  prop="infcon.cxmflg"
                  style="width: 100%"
hpj committed
275
                >
276 277 278 279 280 281 282
                  <c-select
                    v-model="model.infcon.cxmflg"
                    style="width: 100%"
                    placeholder="请选择是否显示查询码"
                  >
                  </c-select>
                </el-form-item>
hpj committed
283
              </c-col>
284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306
            </c-col>

            <c-col :span="24">
              <c-col :span="8">
                <el-form-item
                  label="Forfaiting Type"
                  prop="infcon.cxmflg"
                  style="width: 100%"
                >
                  <c-select
                    v-model="model.infcon.cxmflg"
                    style="width: 100%"
                    placeholder="请选择是否显示查询码"
                  >
                    <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
307
              </c-col>
308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329
              <c-col :span="8">
                <el-form-item
                  label="Amount"
                  prop="infcon.seaamtfr"
                  style="width: 100%"
                >
                  <c-col :span="11">
                    <c-input-currency
                      v-model="model.infcon.seaamtfr"
                      placeholder="请输入Amount"
                    ></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"
                      placeholder="请输入Amount"
                    ></c-input-currency>
                  </c-col>
                </el-form-item>
hpj committed
330
              </c-col>
331 332 333 334 335 336 337 338 339
            </c-col>
          </el-row>
        </el-form> </template
    ></c-list-search>

    <c-col :span="24" style="margin-top: 10px">
      <c-button
        class="medium_bcs"
        size="medium"
wanggang_yf committed
340
        style="margin-left: 0px, padding: 20px 16px"
341 342 343
        type="primary"
        @click="toBptopn"
        >出口融资放款</c-button
hpj committed
344
      >
345 346 347 348 349 350 351 352 353 354 355 356
    </c-col>

    <c-col :span="24">
      <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">
357 358 359 360
            <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)"/>
361
              </div>
362

363 364 365
              <c-istream-table :list="trnData.data" :columns="trnData.columns">
                <el-table-column prop="op" label="操作" width="0">
                  <template slot-scope="scope">
366
                    <c-button style="margin-left: 0" size="small" @click="display(scope.row['INR'])">
367 368 369 370 371
                      详情
                    </c-button>
                  </template>
                </el-table-column>
              </c-istream-table>
372
              <c-button style="margin-left: 0" size="small" @click="getTrnInfo(scope.$index, scope.row)" slot="reference">
373 374
                详情
              </c-button>
375

376
            </el-popover>
377

378
            <c-button style="margin-left: 0" size="small" type="primary" @click="getButtons(scope.row['OWNREF'])">
379 380 381 382 383 384 385
              处理
            </c-button>
          </template>
        </el-table-column>
      </c-istream-table>
    </c-col>

386
    <m-busbtn ref="childs" :ownref="ownref" :model="BptselModel" ownrefPath="bpdgrp" trnCode="bptsel" @onChoose="onChoose">11</m-busbtn>
wanggang_yf committed
387
  </div>  
388 389
</template>
<script>
wanggang_yf committed
390

391
import Utils from "~/utils/index";
hpj committed
392
import Api from "~/service/Api";
wangren committed
393
import commonProcess from "~/mixin/commonProcess";
hpj committed
394 395
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Infbpd/Event";
396
import BusNavbar from "~/views/Public/BusNavbar";
397

wanggang_yf committed
398 399
import BptselModel from "~/model/Bptsel"

400
export default {
hpj committed
401 402 403
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
404
  components: { "m-busbtn": BusNavbar },
hpj committed
405 406
  data() {
    return {
wanggang_yf committed
407
      BptselModel: new BptselModel().data,
408
      ownref: "",
wanggang_yf committed
409
      initdialog: false,
410
      dialogTableVisible: false,
hpj committed
411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 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 486 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 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537
      searchToggle: true,
      stmData: {
        columns: [
          '0 1 "INR" 150',
          '1 2 "OWNREF" 150',
          '2 3 "NAM" 150',
          '3 4 "FIANAM" 150',
          '4 5 "PNTNAM" 150',
          '5 6 "FIAREF" 150',
          '6 7 "PNTREF" 150',
          '7 8 "CREDAT" 150',
          {
            index: 8,
            position: 9,
            width: 100,
            pattern: "date",
            label: "OPNDAT",
          },
          {
            index: 9,
            position: 10,
            width: 100,
            pattern: "date",
            label: "CLSDAT",
          },
          '10 11 "MATDAT" 150',
          '11 12 "INTUNT" 150',
          '12 13 "OWNUSR" 150',
          '13 14 "VER" 150',
          '14 15 "PNTINR" 150',
          '15 16 "FPDINR" 150',
          '16 17 "PNTTYP" 150',
          '17 18 "INTRAT" 150',
          '18 19 "INTDAY" 150',
          '19 20 "LIAEXTID" 150',
          '20 21 "FINTYP" 150',
          '21 22 "PCTFIN" 150',
          '22 23 "INTIRT" 150',
          '23 24 "JZLLGZ" 150',
          '24 25 "ETYEXTKEY" 150',
          '25 26 "PUNINTRAT" 150',
          '26 27 "TOLRAT" 150',
          '27 28 "MARRAT" 150',
          '28 29 "GRARAT" 150',
          '29 30 "BRANCHINR" 150',
          '30 31 "BCHKEYINR" 150',
          '31 32 "RSKRAT" 150',
          '32 33 "RSKTYP" 150',
          '33 34 "FINACT" 170 ',
          '34 35 "FORTYP" 150',
          '35 36 "LCTYP" 150',
          '36 37 "FINCOD" 150',
          '37 38 "FINBLK" 150',
          '38 39 "ITFBLK" 150',
          '39 40 "OVDDAT" 150',
          '40 41 "OVDFLG" 150',
          '41 42 "FEETYP" 150',
          '42 43 "FEEAMT" 150',
          '43 44 "ACTYLD" 150',
          '44 45 "GUAFLG" 150',
          '45 46 "DINJDM" 150',
          '46 47 "F0102" 150',
          '47 48 "F0103" 150',
          '48 49 "F0104" 150',
          '49 50 "F0105" 150',
          '50 51 "TRNTYP" 150',
          '51 52 "OPPACC" 150',
          '52 53 "FLOWFLAG" 150',
          '53 54 "RECACCOUNT" 150',
          '54 55 "RECNAME" 150',
          '55 56 "RECCOUNTRYCODE" 150',
          '56 57 "RECDISTRICTCODE" 150',
          '57 58 "SHUILV" 150',
          '58 59 "CONRAT" 150',
          '59 60 "INVTYP" 150',
          '60 61 "FFTTYP" 150',
          '61 62 "BMHSWF" 170 ',
          '62 63 "BMHENM" 170 ',
          {
            index: 63,
            position: 64,
            width: 100,
            pattern: "date",
            label: "MCDATE",
          },
          {
            index: 64,
            position: 65,
            width: 100,
            pattern: "date",
            label: "BMHRZD",
          },
          '65 66 "BMHAMT" 150',
          '66 67 "BMHRAT" 150',
          '67 68 "YWACCT" 150',
          '68 69 "LPRTYP" 150',
          '69 70 "BENNAM" 150',
          '70 71 "LOANNO" 150',
          '71 72 "BENIDCODE" 150',
          '72 73 "MYCONTNO" 150',
        ],
        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,
538
    async getButtons(ownref){
wanggang_yf committed
539

540 541 542 543
        this.ownref = ownref
        this.$refs.childs.initdialog = true
        console.log("ownref:" +ownref);
      },
wanggang_yf committed
544 545 546 547 548 549 550 551 552 553
    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                    
    },
554 555 556 557 558 559
    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");
560

561 562 563 564
      if ((rtnmsg.respCode = SUCCESS)) {
        this.trnData.data = rtnmsg.data.infcon_trnstm.rows;
      }
    },
565 566 567 568 569 570
    closeTrn(refId) {
      this.$refs[refId].doClose();
    },
    toBptopn() {
      this.$router.history.push("/business/bptopn");
    },
571 572 573 574 575 576 577 578 579 580 581 582
    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
583 584 585
  },
  created: function () {},
};
586 587 588
</script>
<style>
</style>