Infsea.vue 17.3 KB
Newer Older
1
<template>
2 3 4 5 6 7 8 9 10
  <div class="eibs-tab">
    <el-form
      class="m-table-search-form"
      ref="paramsForm"
      :inline="true"
      label-position="right"
      label-width="110px"
      size="small"
    >
liushikai committed
11 12 13 14
      <c-row>
        <c-col :span="24">
          <c-col :span="8">
            <el-form-item
nanrui committed
15
              label="汇款编号"
liushikai committed
16 17
              prop="infcon.seaownref"
              style="width: 100%"
18
            >
liushikai committed
19 20 21
              <c-input
                v-model="model.infcon.seaownref"
                maxlength="16"
nanrui committed
22
                placeholder="请输入汇款编号"
liushikai committed
23 24 25 26 27
              ></c-input>
            </el-form-item>
          </c-col>
          <c-col :span="8">
            <el-form-item
nanrui committed
28
              label="开立日期"
liushikai committed
29 30
              prop="infcon.opndatfrom"
              style="width: 100%"
31
            >
liushikai committed
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
              <c-col :span="11">
                <c-date-picker
                  type="date"
                  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"
                  v-model="model.infcon.opndatto"
                  style="width: 100%"
                  placeholder="请选择"
                ></c-date-picker>
              </c-col>
            </el-form-item>
          </c-col>
          <c-col :span="8">
54
            <el-form-item label="简略信息" prop="infcon.nam" style="width: 100%">
liushikai committed
55 56 57
              <c-input
                v-model="model.infcon.nam"
                maxlength="40"
nanrui committed
58
                placeholder="请输入简略信息"
liushikai committed
59 60 61
              ></c-input>
            </el-form-item>
          </c-col>
62
        </c-col>
liushikai committed
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
      </c-row>
      <!-- </template> -->
      <c-col
        :span="24"
        style="text-align: right; height: 36.8px"
        v-if="searchToggle"
      >
        <el-button size="small" @click="handleReset">重置</el-button>
        <el-button
          type="primary"
          icon="el-icon-search"
          size="small"
          @click="handleSearch"
          >查询</el-button
        >
        <el-button type="text" @click="searchToggle = false">
          展开
          <i class="el-icon-arrow-down"></i>
        </el-button>
82
      </c-col>
83

liushikai committed
84 85 86 87 88 89
      <!-- 可控展示区 -->
      <!-- <template slot="changeShow"> -->
      <c-row v-show="!searchToggle">
        <c-col :span="24">
          <c-col :span="8">
            <el-form-item
nanrui committed
90
              label="当事人参考号"
liushikai committed
91
              prop="infcon.searef"
92 93
              style="width: 100%"
            >
liushikai committed
94 95 96
              <c-input
                v-model="model.infcon.searef"
                maxlength="16"
nanrui committed
97
                placeholder="请输入当事人参考号"
liushikai committed
98 99 100 101 102
              ></c-input>
            </el-form-item>
          </c-col>
          <c-col :span="8">
            <el-form-item
nanrui committed
103
              label="当事人编号"
liushikai committed
104 105
              prop="infcon.pty.extkey"
              style="width: 100%"
106
            >
liushikai committed
107 108 109
              <c-input
                v-model="model.infcon.pty.extkey"
                maxlength="24"
nanrui committed
110
                placeholder="请输入当事人编号"
taojinrui committed
111
                :disabled="this.flag1"
liushikai committed
112 113 114 115 116 117
              >
              </c-input>
            </el-form-item>
          </c-col>
          <c-col :span="8">
            <el-form-item
nanrui committed
118
              label="当事人名称"
liushikai committed
119
              prop="infcon.pty.nam"
120 121
              style="width: 100%"
            >
liushikai committed
122 123 124
              <c-input
                v-model="model.infcon.pty.nam"
                maxlength="40"
nanrui committed
125
                placeholder="请输入当事人名称"
126
                disabled
liushikai committed
127 128 129 130
              >
              </c-input>
            </el-form-item>
          </c-col>
131
        </c-col>
liushikai committed
132 133 134 135

        <c-col :span="24">
          <c-col :span="8">
            <el-form-item
nanrui committed
136
              label="当事人BIC编码"
liushikai committed
137
              prop="infcon.seapty"
138 139
              style="width: 100%"
            >
liushikai committed
140 141 142
              <c-input
                v-model="model.infcon.seapty"
                maxlength="24"
nanrui committed
143
                placeholder="请输入当事人BIC编码"
taojinrui committed
144
                :disabled="this.flag2"
liushikai committed
145 146 147 148
              ></c-input>
            </el-form-item>
          </c-col>
          <c-col :span="8">
nanrui committed
149
            <el-form-item label="角色" prop="infcon.searol" style="width: 100%">
liushikai committed
150 151 152
              <c-select
                v-model="model.infcon.searol"
                style="width: 100%"
nanrui committed
153
                placeholder="请选择角色"
zhujiazhan committed
154
                :code="searol"
155
              >
liushikai committed
156 157 158 159 160
              </c-select>
            </el-form-item>
          </c-col>
          <c-col :span="8">
            <el-form-item
nanrui committed
161
              label="客户经理"
liushikai committed
162 163 164 165 166 167
              prop="infcon.usr.extkey"
              style="width: 100%"
            >
              <c-input
                v-model="model.infcon.usr.extkey"
                maxlength="8"
nanrui committed
168
                placeholder="请输入客户经理"
169
                disabled
170
              >
liushikai committed
171 172 173
              </c-input>
            </el-form-item>
          </c-col>
174
        </c-col>
175

liushikai committed
176 177 178
        <c-col :span="24">
          <c-col :span="8">
            <el-form-item
179
              label="状态"
liushikai committed
180
              prop="infcon.seasta"
181 182
              style="width: 100%"
            >
liushikai committed
183 184 185
              <c-select
                v-model="model.infcon.seasta"
                style="width: 100%"
186
                placeholder="请选择状态"
liushikai committed
187 188 189 190 191 192
                :code="codes.seasta"
              >
              </c-select>
            </el-form-item>
          </c-col>
          <c-col :span="8">
taojinrui committed
193
            <el-form-item
194
              label="币种"
taojinrui committed
195 196 197
              prop="infcon.seacur"
              style="width: 100%"
            >
liushikai committed
198 199 200
              <c-select
                v-model="model.infcon.seacur"
                style="width: 100%"
201
                placeholder="请选择币种"
zhujiazhan committed
202
                :code="codes.currencycode"
liushikai committed
203 204 205 206 207 208
              >
              </c-select>
            </el-form-item>
          </c-col>
          <c-col :span="8">
            <el-form-item
209
              label="金额区间"
liushikai committed
210
              prop="infcon.seaamtfr"
211 212
              style="width: 100%"
            >
liushikai committed
213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231
              <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>
          </c-col>
232
        </c-col>
liushikai committed
233 234 235 236

        <c-col :span="24">
          <c-col :span="8">
            <el-form-item
237
              label="支付类型"
liushikai committed
238 239 240
              prop="seapaytyp"
              style="width: 100%"
            >
241
              <c-select
liushikai committed
242
                v-model="model.seapaytyp"
243
                style="width: 100%"
244
                placeholder="请选择支付类型"
liushikai committed
245
                :code="codes.seapaytyp"
246 247
              >
              </c-select>
liushikai committed
248
            </el-form-item>
249
          </c-col>
liushikai committed
250
          <c-col :span="8">
nanrui committed
251
            <el-form-item label="Swift类型" prop="msgtyp" style="width: 100%">
liushikai committed
252 253 254
              <c-select
                v-model="model.msgtyp"
                style="width: 100%"
nanrui committed
255
                placeholder="请选择Swift类型"
256
                :code="swftyp"
liushikai committed
257 258 259
              >
              </c-select>
            </el-form-item>
260
          </c-col>
liushikai committed
261 262 263 264 265 266 267 268 269 270 271 272 273 274 275
          <c-col :span="8">
            <el-form-item label="国家代码" prop="countcode" style="width: 100%">
              <c-col :span="11">
                <c-select
                  v-model="model.countcode"
                  filterable
                  style="width: 100%"
                  placeholder="请选择国家代码"
                  :code="codes.bopcty"
                >
                </c-select>
              </c-col>
              <c-col :span="13" style="text-align: right">
                <c-checkbox v-model="model.tsnflg">同名划转标志</c-checkbox>
              </c-col>
276
            </el-form-item>
liushikai committed
277
          </c-col>
278
        </c-col>
liushikai committed
279 280 281 282 283
      </c-row>
      <c-col
        :span="24"
        style="text-align: right; height: 36.8px"
        v-if="!searchToggle"
284
      >
liushikai committed
285 286 287 288 289 290 291 292 293 294 295 296 297
        <el-button size="small" @click="handleReset">重置</el-button>
        <el-button
          type="primary"
          icon="el-icon-search"
          size="small"
          @click="handleSearch"
          >查询</el-button
        >
        <el-button type="text" @click="searchToggle = true">
          收起
          <i class="el-icon-arrow-up"></i>
        </el-button>
      </c-col>
298 299
    </el-form>
    <c-col :span="24">
liushikai committed
300
      <div style="border-bottom: 10px solid rgb(232, 232, 232)"></div>
301
    </c-col>
302

liushikai committed
303
    <c-col style="margin-top: 10px">
taojinrui committed
304 305 306 307 308 309 310
      <c-button
        class="medium_bcs"
        size="medium"
        type="primary"
        style="margin-left: 0"
        @click="toCptopn"
        >swift汇入</c-button
311
      >
taojinrui committed
312 313 314 315
      <c-button
        class="medium_bcs"
        size="medium"
        type="primary"
316
        style="margin-left: 5px"
taojinrui committed
317 318
        @click="toCptadv"
        >swift汇出</c-button
319
      >
taojinrui committed
320 321 322 323
      <c-button
        class="medium_bcs"
        size="medium"
        type="primary"
324
        style="margin-left: 5px"
taojinrui committed
325 326
        @click="toCptati"
        >境内外币汇入</c-button
327
      >
taojinrui committed
328 329 330 331
      <c-button
        class="medium_bcs"
        size="medium"
        type="primary"
332
        style="margin-left: 5px"
taojinrui committed
333 334
        @click="toCptato"
        >境内外币汇出</c-button
335
      >
taojinrui committed
336 337 338 339 340
      <c-button
        class="medium_bcs"
        size="medium"
        type="primary"
        style="float: right; margin-right: 10px"
liushikai committed
341 342 343
        >导Excel</c-button
      >
    </c-col>
344

liushikai committed
345
    <c-col :span="24">
taojinrui committed
346 347 348 349 350
      <c-istream-table
        :list="stmData.data"
        :columns="stmData.columns"
        :showButtonFlg="true"
      >
351 352 353 354
        <el-table-column fixed="right" prop="op" width="140px">
          <template slot="header">
            <c-col :span="11" style="text-align: center"><span>操作</span></c-col>
          </template>
355
          <template slot-scope="scope">
liushikai committed
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
            <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)"
                />
              </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"
382
                      @click="display(scope.row['INR'])"
liushikai committed
383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399
                    >
                      详情
                    </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>

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

taojinrui committed
412 413 414 415 416 417 418 419 420
    <m-busbtn
      ref="childs"
      :ownref="ownref"
      trnCode="cptsel"
      :model="cptselModel"
      ownrefPath="cpdgrp"
      @onChoose="onChoose"
      >11</m-busbtn
    >
421
  </div>
422 423
</template>
<script>
424
import Api from "~/service/Api";
wangren committed
425
import commonProcess from "~/mixin/commonProcess";
426 427
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Infcpd/Event";
428
import BusNavbar from "~/views/Public/BusNavbar";
taojinrui committed
429
import CptselModel from "~/model/Cptsel";
zhujiazhan committed
430

431 432 433
export default {
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
434
  mixins: [commonProcess],
liushikai committed
435
  components: { "m-busbtn": BusNavbar },
436 437
  data() {
    return {
taojinrui committed
438 439 440
      flag1: false,
      flag2: false,
      searol: [
wangna committed
441
        { label: "汇款人", value: "ORC" },
442
        { label: "汇款行", value: "ORI" },
wangna committed
443
        { label: "付款行", value: "PYB" },
444
        { label: "收款人", value: "PYE" },
taojinrui committed
445 446 447 448 449 450 451 452
        { label: "Reimb. Bank Transfer", value: "RMT" },
      ],
      swftyp: [
        { label: "MT103", value: "103" },
        { label: "MT202", value: "202" },
        { label: "MT910", value: "910" },
        { label: "CMT100", value: "CMT" },
        { label: "境内外币清算", value: "100" },
wangna committed
453
        { label: "其他", value: "OTH" },
454
      ],
zhujiazhan committed
455
      cptselModel: new CptselModel().data,
456
      searchToggle: true,
liushikai committed
457 458 459 460 461 462 463 464 465 466 467 468 469 470 471
      ownref: "",
      dialogTableVisible: false,
      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: "状态",
472
            code: this.codes.relstaEN,
liushikai committed
473 474 475 476 477 478
          },
          '5 5 "币种" 80',
          '6 6 "金额" 100',
        ],
        data: [],
      },
479 480
      stmData: {
        columns: [
nanrui committed
481 482
          '1 1 "汇款编号" 150 ',
          '2 2 "客户经理" 120 ',
liushikai committed
483
          '12 3 "PYE NO." 100 ',
wangna committed
484 485
          '9 4 "第一当事人编号" 200',
          '10 5 "收款人" 250',
zhujiazhan committed
486
          '11 6 "PYE.Customer CN" 150',
wangna committed
487 488
          '13 7 "第二当事人编号" 150',
          '14 8 "汇款人" 200',
zhujiazhan committed
489
          '15 9 "Ord.Customer CN" 150',
wangna committed
490 491
          '16 10 "第三当事人编号" 150',
          '17 11 "汇款机构" 200',
liushikai committed
492
          '12 12 "ORC NO." 150',
wangna committed
493
          '18 13 "第四当事人编号" 150',
nanrui committed
494
          '19 14 "付款行" 150',
liushikai committed
495 496 497
          {
            index: 3,
            position: 15,
liushikai committed
498 499
            width: 100,
            pattern: "date",
nanrui committed
500
            label: "开立日期",
liushikai committed
501 502 503 504
          },
          {
            index: 4,
            position: 16,
liushikai committed
505 506
            width: 100,
            pattern: "date",
liushikai committed
507 508
            label: "Value",
          },
zhujiazhan committed
509

liushikai committed
510 511 512
          {
            index: 5,
            position: 17,
liushikai committed
513 514
            width: 100,
            pattern: "date",
nanrui committed
515
            label: "关闭日期",
liushikai committed
516
          },
517
          '20 18 "金额币种" 100',
nanrui committed
518
          '21 19 "付款金额" 150',
wangna committed
519
          '22 20 "币种" 80',
zhujiazhan committed
520 521 522
          '23 21 "Amount rcvd." 150',
          '6 22 "Pyectycod" 120',
          '7 23 "Orcctycod" 120',
523 524 525 526 527
        ],
        data: [],
      },
    };
  },
taojinrui committed
528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544
  watch: {
    "model.infcon.seapty": function () {
      if (this.model.infcon.seapty == "") {
        this.flag1 = false;
      } else {
        this.flag1 = true;
        this.model.infcon.pty.extkey = "";
      }
    },
    "model.infcon.pty.extkey": function () {
      if (this.model.infcon.pty.extkey == "") {
        this.flag2 = false;
      } else {
        this.flag2 = true;
        this.model.infcon.seapty = "";
      }
    },
545
  },
546 547
  methods: {
    ...Event,
liushikai committed
548
    /*  handleSearch(callback) {
549 550 551 552 553 554 555 556
      setTimeout(() => {
        this.$notify.info({
          title: "提示",
          message: "模拟post请求控制按钮状态",
        });
        // 执行子组件回调函数控制按钮状态
        callback();
      }, 1000);
liushikai committed
557
    }, */
taojinrui committed
558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576
    async getButtons(ownref) {
      this.ownref = ownref;
      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;
    },
    async getTrnInfo(idx, row) {
      this.model.infcon.objinr = row["INR"];
      this.model.cpdgrp.rec.inr = row["INR"];
      this.model.infcon.chksubcon = "X";
liushikai committed
577

taojinrui committed
578 579
      this.dialogTableVisible = true;
      let rtnmsg = await this.executeDefault("infcon.chksubcon");
liushikai committed
580

taojinrui committed
581 582 583 584 585 586 587 588 589 590 591 592
      if ((rtnmsg.respCode = SUCCESS)) {
        this.trnData.data = rtnmsg.data.infcon_trnstm.rows;
      }
    },
    closeTrn(refId) {
      this.$refs[refId].doClose();
    },
    toCptopn() {
      this.$router.history.push("/business/cptopn");
    },
    toCptadv() {
      this.$router.history.push("/business/cptadv");
593
    },
taojinrui committed
594 595
    toCptati() {
      this.$router.history.push("/business/cptati");
Wuyuqiu committed
596
    },
taojinrui committed
597 598
    toCptato() {
      this.$router.history.push("/business/cptato");
Wuyuqiu committed
599
    },
600 601 602
  },
  created: function () {},
};
603 604
</script>
<style>
605 606 607
.el-dialog__body {
  padding: 10px 5px 50px;
}
608
</style>