Inftrnps.vue 14.3 KB
Newer Older
1 2
<template>
  <div class="eibs-tab">
LiRui committed
3 4 5 6 7 8 9
    <el-form
      class="m-table-search-form"
      ref="paramsForm"
      label-position="right"
      label-width="110px"
      size="small"
    >
10
      <c-row>
taojinrui committed
11 12
        <c-col :span="24">
          <c-col :span="8">
LiRui committed
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
            <el-form-item
              label="用户选择"
              prop="trncorco.usfmod.flt"
              style="width: 100%"
            >
              <c-fullbox>
                <c-select
                  v-model="model.trncorco.usfmod.flt"
                  maxlength="16"
                  placeholder="请输入用户选择"
                >
                  <el-option
                    v-for="item in flt"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  >
                  </el-option>
                </c-select>
                <template slot="footer">
                  <c-button size="small" type="primary"> 显示与过滤 </c-button>
                </template>
              </c-fullbox>
            </el-form-item>
37
          </c-col>
taojinrui committed
38

39
          <c-col :span="8">
LiRui committed
40 41 42 43 44 45 46 47 48 49
            <el-form-item
              label="汇款编号"
              prop="trncorco.ownref"
              style="width: 100%"
            >
              <c-input
                v-model="model.trncorco.ownref"
                maxlength="16"
                placeholder="请输入业务编号"
              >
50
              </c-input>
51 52 53
            </el-form-item>
          </c-col>

54
          <c-col :span="8">
LiRui committed
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
            <el-form-item
              label="汇款性质"
              prop="trncorco.trntyp"
              style="width: 100%"
            >
              <c-select
                v-model="model.trncorco.trntyp"
                style="width: 100%"
                placeholder="请选择汇款性质"
              >
                <el-option
                  v-for="item in trntyp"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                ></el-option>
71
              </c-select>
72 73
            </el-form-item>
          </c-col>
74
        </c-col>
taojinrui committed
75 76
      </c-row>

LiRui committed
77 78 79 80 81
      <c-col
        :span="24"
        style="text-align: right; height: 36.8px"
        v-if="searchToggle"
      >
taojinrui committed
82
        <el-button size="small" @click="handleReset">重置</el-button>
LiRui committed
83 84 85 86 87 88 89
        <el-button
          type="primary"
          icon="el-icon-search"
          size="small"
          @click="handleSearch"
          >查询</el-button
        >
taojinrui committed
90 91 92 93 94
        <el-button type="text" @click="searchToggle = false">
          展开
          <i class="el-icon-arrow-down"></i>
        </el-button>
      </c-col>
95

taojinrui committed
96 97
      <!-- 可控展示区 -->
      <c-row v-show="!searchToggle">
98 99
        <c-col :span="24">
          <c-col :span="8">
LiRui committed
100 101 102 103 104 105 106 107 108 109 110
            <el-form-item
              label="状态"
              prop="trncorco.relflg"
              style="width: 100%"
            >
              <c-select
                v-model="model.trncorco.relflg"
                style="width: 100%"
                placeholder="请选择Status"
                :code="relflg"
              >
111 112 113
              </c-select>
            </el-form-item>
          </c-col>
taojinrui committed
114

115
          <c-col :span="8">
nanrui committed
116
            <el-form-item label="交易币种" prop="relcur" style="width: 100%">
LiRui committed
117 118 119 120 121 122
              <c-select
                v-model="model.relcur"
                style="width: 100%"
                placeholder="请选择币种"
                :code="currencycode"
              >
123 124 125
              </c-select>
            </el-form-item>
          </c-col>
taojinrui committed
126

127
          <c-col :span="8">
nanrui committed
128
            <el-form-item label="金额区间" prop="" style="width: 100%">
129
              <c-col :span="11">
nanrui committed
130
                <c-input-currency v-model="model.amt1" placeholder="请输入金额">
131 132 133 134 135 136
                </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">
nanrui committed
137
                <c-input-currency v-model="model.amt2" placeholder="请输入金额">
138 139
                </c-input-currency>
              </c-col>
140 141 142 143 144
            </el-form-item>
          </c-col>
        </c-col>

        <c-col :span="24">
145
          <c-col :span="8">
LiRui committed
146 147 148 149 150
            <el-form-item
              label="开立日期"
              prop="trncorco.inidatfro"
              style="width: 100%"
            >
taojinrui committed
151
              <c-col :span="11">
LiRui committed
152 153 154 155 156 157 158
                <c-date-picker
                  type="date"
                  v-model="model.trncorco.inidatfro"
                  value-format="yyyy-MM-dd"
                  style="width: 100%"
                  placeholder="请选择开立日期"
                ></c-date-picker>
taojinrui committed
159 160 161 162 163
              </c-col>
              <c-col :span="2" style="text-align: center">
                <label style="display: inline-block; width: 100%">-</label>
              </c-col>
              <c-col :span="11">
LiRui committed
164 165 166 167 168 169 170
                <c-date-picker
                  type="date"
                  v-model="model.trncorco.inidattil"
                  value-format="yyyy-MM-dd"
                  style="width: 100%"
                  placeholder="请选择Open Date to"
                ></c-date-picker>
taojinrui committed
171
              </c-col>
172 173
            </el-form-item>
          </c-col>
taojinrui committed
174

175
          <c-col :span="8">
taojinrui committed
176
            <el-form-item label="客户号" prop="ptyextkey" style="width: 100%">
LiRui committed
177 178 179 180
              <c-input
                v-model="model.ptyextkey"
                placeholder="请输入客户号"
              ></c-input>
181 182
            </el-form-item>
          </c-col>
taojinrui committed
183

184
          <c-col :span="8">
nanrui committed
185
            <el-form-item label="分行" prop="branch" style="width: 100%">
LiRui committed
186 187 188 189 190 191 192 193 194 195 196 197
              <c-select
                v-model="model.branch"
                maxlength="24"
                style="width: 100%"
                placeholder="请输入分行"
              >
                <el-option
                  v-for="item in branch"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                ></el-option>
taojinrui committed
198
              </c-select>
199 200
            </el-form-item>
          </c-col>
201
        </c-col>
taojinrui committed
202

taojinrui committed
203
        <c-col :span="8">
nanrui committed
204
          <el-form-item label="交易类型" prop="atp.cod" style="width: 100%">
taojinrui committed
205 206 207
            <c-fullbox>
              <c-input v-model="model.atp.cod" style="width: 100%"></c-input>
              <template slot="footer">
LiRui committed
208 209 210 211 212
                <c-button
                  style="margin: 0 0 0 10px; padding: 0 12px"
                  size="small"
                  type="primary"
                >
nanrui committed
213
                  <i class="el-icon-info"></i>
nanrui committed
214
                </c-button>
taojinrui committed
215 216
              </template>
            </c-fullbox>
taojinrui committed
217 218
          </el-form-item>
        </c-col>
219
      </c-row>
taojinrui committed
220

LiRui committed
221 222 223 224 225
      <c-col
        :span="24"
        style="text-align: right; height: 36.8px"
        v-if="!searchToggle"
      >
226
        <el-button size="small" @click="handleReset">重置</el-button>
LiRui committed
227 228 229 230 231 232 233
        <el-button
          type="primary"
          icon="el-icon-search"
          size="small"
          @click="handleSearch"
          >查询</el-button
        >
234 235 236 237
        <el-button type="text" @click="searchToggle = true">
          收起
          <i class="el-icon-arrow-up"></i>
        </el-button>
238
      </c-col>
239
    </el-form>
taojinrui committed
240

241
    <c-col :span="24">
242
      <div style="border-bottom: 10px solid rgb(232, 232, 232)"></div>
243 244
    </c-col>

taojinrui committed
245
    <c-col :span="24">
LiRui committed
246 247 248 249 250
      <c-istream-table
        :list="stmData.data"
        :columns="stmData.columns"
        :showButtonFlg="true"
      >
251
        <el-table-column fixed="right" prop="op" label="操作" width="140px">
nanrui committed
252 253 254 255
          <template slot="header">
            <c-col :span="11" style="text-align: left"><span>操作</span></c-col>
          </template>
          <template slot-scope="scope">
LiRui committed
256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274
            <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)"
                />
taojinrui committed
275
              </div>
nanrui committed
276 277 278
              <c-istream-table :list="trnData.data" :columns="trnData.columns">
                <el-table-column prop="op" label="操作" width="0">
                  <template slot-scope="scope">
LiRui committed
279 280 281 282 283
                    <c-button
                      style="margin-left: 0"
                      size="small"
                      @click="display(scope.row['INR'])"
                    >
nanrui committed
284 285 286 287 288
                      详情
                    </c-button>
                  </template>
                </el-table-column>
              </c-istream-table>
LiRui committed
289 290 291 292 293 294
              <c-button
                style="margin-left: 0"
                size="small"
                @click="getTrnInfo(scope.$index, scope.row)"
                slot="reference"
              >
nanrui committed
295
                详情
296
              </c-button>
nanrui committed
297
            </el-popover>
LiRui committed
298 299 300 301 302 303
            <c-button
              style="margin-left: 0"
              size="small"
              type="primary"
              @click="getButtons(scope.row['Reference'])"
            >
nanrui committed
304 305 306 307
              处理
            </c-button>
          </template>
        </el-table-column>
taojinrui committed
308 309
      </c-istream-table>
    </c-col>
LiRui committed
310 311 312 313 314 315 316 317 318
    <m-busbtn
      ref="childs"
      :ownref="ownref"
      trnCode="cptsel"
      :model="cptselModel"
      ownrefPath="cpdgrp"
      @onChoose="onChoose"
      >11</m-busbtn
    >
319 320 321 322 323 324 325
  </div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cptrel/Event";
taojinrui committed
326
import BusNavbar from "~/views/Public/BusNavbar";
LiRui committed
327
import CptselModel from "~/model/Cptsel";
328 329 330 331 332

export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
taojinrui committed
333
  components: { "m-busbtn": BusNavbar },
334 335
  data() {
    return {
336
      cptselModel: new CptselModel().data,
taojinrui committed
337
      ownref: "",
taojinrui committed
338
      stmData: {
339
        columns: [
nanrui committed
340 341 342 343 344 345
          '10 1 "交易代码" 100 1 0:0 3 ATPTXT',
          '11 2 "汇款编号" 186',
          '17 3 "消息类型" 186',
          '12 4 "币种" 137',
          '13 5 "相关金额" 100 2 8:1 2 5',
          '14 6 "登记" 104 20 30 1',
taojinrui committed
346 347 348 349 350 351 352 353
          '9 7 "Req" 135',
          '2 8 "Sig" 135',
          '6 9 "Rq0" 135',
          '3 10 "Rel0" 135',
          '7 11 "Rq1" 135',
          '4 12 "Rel1" 135',
          '8 13 "Rq2" 135',
          '5 14 "Rel2" 135',
nanrui committed
354
          '16 15 "用户" 160',
taojinrui committed
355
          '18 16 "" 60',
nanrui committed
356 357
          '0 17 "状态" 100 1 0:0 1 RELSTA',
          '15 18 "分行" 142',
358
        ],
taojinrui committed
359
        data: [],
360
      },
taojinrui committed
361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381
      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: [],
      },
      searchToggle: true,
taojinrui committed
382 383 384 385
      flt: [
        { label: "All Users", value: "<ALL>" },
        { label: "Selected User", value: "<SELU>" },
      ],
LiRui committed
386
      branch: [{ label: "LM ADD", value: "00001047" }],
nanrui committed
387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413
      currencycode: [
        { label: "ASF 记账瑞士法郎", value: "ASF" },
        { label: "ATS 先令", value: "ATS" },
        { label: "AUD 澳大利亚元", value: "AUD" },
        { label: "BEF 比利时法郎", value: "BEF" },
        { label: "CAD 加元", value: "CAD" },
        { label: "CHF 瑞士法郎", value: "CHF" },
        { label: "CNY 人民币元", value: "CNY" },
        { label: "DEM 德国马克", value: "DEM" },
        { label: "DKK 丹麦克朗", value: "DKK" },
        { label: "EUR 欧元", value: "EUR" },
        { label: "FIM 马克", value: "FIM" },
        { label: "FRF 法国法郎", value: "FRF" },
        { label: "GBP 英镑", value: "GBP" },
        { label: "HKD 香港元", value: "HKD" },
        { label: "ITL 意大利里拉", value: "ITL" },
        { label: "JPY 日元", value: "JPY" },
        { label: "KRW 园", value: "KRW" },
        { label: "MOP 澳门元", value: "MOP" },
        { label: "NLG 荷兰盾", value: "NLG" },
        { label: "NOK 挪威克朗", value: "NOK" },
        { label: "NZD 新西兰元", value: "NZD" },
        { label: "SEK 瑞典克朗", value: "SEK" },
        { label: "SGD 新加坡元", value: "SGD" },
        { label: "THB 铢", value: "THB" },
        { label: "TWD 新台湾元", value: "TWD" },
        { label: "USD 美元", value: "USD" },
LiRui committed
414
        { label: "XEU 欧洲货币单元(E.C.U)", value: "XEU" },
taojinrui committed
415 416 417
      ],
      relflg: [
        { label: "<all>", value: "" },
wangna committed
418
        { label: "已修改", value: "C" },
taojinrui committed
419
        { label: "Final", value: "F" },
wangna committed
420 421
        { label: "已拾取", value: "P" },
        { label: "已拒绝", value: "N" },
taojinrui committed
422
        { label: "Released", value: "R" },
wangna committed
423
        { label: "等待", value: "W" },
nanrui committed
424 425 426 427 428 429 430 431
      ],
      trntyp: [
        { label: "ALL", value: "" },
        { label: "贸易", value: "0" },
        { label: "非贸易", value: "1" },
        { label: "资本", value: "2" },
        { label: "其他", value: "3" },
      ],
432 433
    };
  },
taojinrui committed
434 435
  methods: {
    ...Event,
436 437 438 439 440 441 442 443 444 445 446 447
    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;
    },

taojinrui committed
448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463
    async getTrnInfo(idx, row) {
      this.model.objinr = row["INR"];
      this.model.inr = row["INR"];
      this.model.infcon.chksubcon = "X";

      this.dialogTableVisible = true;
      let rtnmsg = await this.executeDefault("infcon.chksubcon");

      if ((rtnmsg.respCode = SUCCESS)) {
        this.trnData.data = rtnmsg.data.infcon_trnstm.rows;
      }
    },
    closeTrn(refId) {
      this.$refs[refId].doClose();
    },
  },
LiRui committed
464
  created: function () {},
465 466 467 468
};
</script>
<style>
</style>