Inftrnps.vue 12.4 KB
Newer Older
1 2
<template>
  <div class="eibs-tab">
nanrui committed
3 4
    <el-form class="m-table-search-form" ref="paramsForm" :inline="true" label-position="right" label-width="110px"
      size="small">
5
      <c-row>
taojinrui committed
6 7 8
        <c-col :span="24">
          <c-col :span="8">
            <c-fullbox>
nanrui committed
9
              <el-form-item label="用户选择" prop="trncorco.usfmod.flt" style="width: 100%">
taojinrui committed
10
                <c-col :span="16">
nanrui committed
11 12 13
                  <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>
taojinrui committed
14
                  </c-select>
taojinrui committed
15 16
                </c-col>

nanrui committed
17 18
                <c-button size="small" type="primary">显示与过滤
                </c-button>
taojinrui committed
19
              </el-form-item>
taojinrui committed
20
            </c-fullbox>
21
          </c-col>
taojinrui committed
22

23
          <c-col :span="8">
nanrui committed
24 25
            <el-form-item label="汇款编号" prop="trncorco.ownref" style="width: 100%">
              <c-input v-model="model.trncorco.ownref" maxlength="16" placeholder="请输入业务编号">
26
              </c-input>
27 28 29
            </el-form-item>
          </c-col>

30
          <c-col :span="8">
nanrui committed
31 32 33
            <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>
34
              </c-select>
35 36
            </el-form-item>
          </c-col>
37
        </c-col>
taojinrui committed
38 39
      </c-row>

nanrui committed
40
      <c-col :span="24" style="text-align: right; height: 36.8px" v-if="searchToggle">
taojinrui committed
41
        <el-button size="small" @click="handleReset">重置</el-button>
nanrui committed
42
        <el-button type="primary" icon="el-icon-search" size="small" @click="handleSearch">查询</el-button>
taojinrui committed
43 44 45 46 47
        <el-button type="text" @click="searchToggle = false">
          展开
          <i class="el-icon-arrow-down"></i>
        </el-button>
      </c-col>
48

taojinrui committed
49 50
      <!-- 可控展示区 -->
      <c-row v-show="!searchToggle">
51 52
        <c-col :span="24">
          <c-col :span="8">
nanrui committed
53 54
            <el-form-item label="状态" prop="trncorco.relflg" style="width: 100%">
              <c-select v-model="model.trncorco.relflg" style="width: 100%" placeholder="请选择Status" :code="relflg">
55 56 57
              </c-select>
            </el-form-item>
          </c-col>
taojinrui committed
58

59
          <c-col :span="8">
nanrui committed
60 61
            <el-form-item label="交易币种" prop="relcur" style="width: 100%">
              <c-select v-model="model.relcur" style="width: 100%" placeholder="请选择币种" :code="currencycode">
62 63 64
              </c-select>
            </el-form-item>
          </c-col>
taojinrui committed
65

66
          <c-col :span="8">
nanrui committed
67
            <el-form-item label="金额区间" prop="" style="width: 100%">
68
              <c-col :span="11">
nanrui committed
69
                <c-input-currency v-model="model.amt1" placeholder="请输入金额">
70 71 72 73 74 75
                </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
76
                <c-input-currency v-model="model.amt2" placeholder="请输入金额">
77 78
                </c-input-currency>
              </c-col>
79 80 81 82 83
            </el-form-item>
          </c-col>
        </c-col>

        <c-col :span="24">
84
          <c-col :span="8">
nanrui committed
85
            <el-form-item label="开立日期" prop="trncorco.inidatfro" style="width: 100%">
taojinrui committed
86
              <c-col :span="11">
nanrui committed
87 88
                <c-date-picker type="date" v-model="model.trncorco.inidatfro" value-format="yyyy-MM-dd"
                  style="width: 100%" placeholder="请选择开立日期"></c-date-picker>
taojinrui committed
89 90 91 92 93
              </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
94 95
                <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
96
              </c-col>
97 98
            </el-form-item>
          </c-col>
taojinrui committed
99

100
          <c-col :span="8">
taojinrui committed
101
            <el-form-item label="客户号" prop="ptyextkey" style="width: 100%">
nanrui committed
102
              <c-input v-model="model.ptyextkey" placeholder="请输入客户号"></c-input>
103 104
            </el-form-item>
          </c-col>
taojinrui committed
105

106
          <c-col :span="8">
nanrui committed
107 108 109
            <el-form-item label="分行" prop="branch" style="width: 100%">
              <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
110
              </c-select>
111 112
            </el-form-item>
          </c-col>
113
        </c-col>
taojinrui committed
114

taojinrui committed
115
        <c-col :span="8">
nanrui committed
116
          <el-form-item label="交易类型" prop="atp.cod" style="width: 100%">
taojinrui committed
117 118 119
            <c-fullbox>
              <c-input v-model="model.atp.cod" style="width: 100%"></c-input>
              <template slot="footer">
nanrui committed
120 121 122
                <c-button style="margin: 0 10px 0 10px; padding: 0 12px" size="small" type="primary">
                  <span style="font-family: '宋体'; font-weight: bold">i</span>
                </c-button>
taojinrui committed
123 124
              </template>
            </c-fullbox>
taojinrui committed
125 126
          </el-form-item>
        </c-col>
127
      </c-row>
taojinrui committed
128

nanrui committed
129
      <c-col :span="24" style="text-align: right; height: 36.8px" v-if="!searchToggle">
130
        <el-button size="small" @click="handleReset">重置</el-button>
nanrui committed
131
        <el-button type="primary" icon="el-icon-search" size="small" @click="handleSearch">查询</el-button>
132 133 134 135
        <el-button type="text" @click="searchToggle = true">
          收起
          <i class="el-icon-arrow-up"></i>
        </el-button>
136
      </c-col>
137
    </el-form>
taojinrui committed
138

139
    <c-col :span="24">
140
      <div style="border-bottom: 10px solid rgb(232, 232, 232)"></div>
141 142
    </c-col>

taojinrui committed
143
    <c-col :span="24">
nanrui committed
144
      <c-istream-table :list="stmData.data" :columns="stmData.columns" :showButtonFlg="true">
145
        <el-table-column fixed="right" prop="op" label="操作" width="140px">
nanrui committed
146 147 148 149 150 151
          <template slot="header">
            <c-col :span="11" style="text-align: left"><span>操作</span></c-col>
          </template>
          <template slot-scope="scope">
            <el-popover placement="top-start" title="历史信息" width="800" trigger="click"
              :ref="'popover_' + scope.row.IDX">
152
              <div style="text-align: right; margin-top: -30px; margin-right: 5px; font-size: 16px;">
nanrui committed
153
                <span class="el-icon-close" @click="closeTrn('popover_' + scope.row.IDX)" />
taojinrui committed
154
              </div>
nanrui committed
155 156 157 158 159 160 161 162 163 164 165 166
              <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">
                详情
167
              </c-button>
nanrui committed
168 169 170 171 172 173
            </el-popover>
            <c-button style="margin-left: 0" size="small" type="primary" @click="getButtons(scope.row['Reference'])">
              处理
            </c-button>
          </template>
        </el-table-column>
taojinrui committed
174 175
      </c-istream-table>
    </c-col>
nanrui committed
176 177
    <m-busbtn ref="childs" :ownref="ownref" trnCode="cptsel" :model="cptselModel" ownrefPath="cpdgrp"
      @onChoose="onChoose">11</m-busbtn>
178 179 180 181 182 183 184
  </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
185 186
import BusNavbar from "~/views/Public/BusNavbar";
import CptselModel from "~/model/Cptsel"
187 188 189 190 191

export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
taojinrui committed
192
  components: { "m-busbtn": BusNavbar },
193 194
  data() {
    return {
195
      cptselModel: new CptselModel().data,
taojinrui committed
196
      ownref: "",
taojinrui committed
197
      stmData: {
198
        columns: [
nanrui committed
199 200 201 202 203 204
          '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
205 206 207 208 209 210 211 212
          '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
213
          '16 15 "用户" 160',
taojinrui committed
214
          '18 16 "" 60',
nanrui committed
215 216
          '0 17 "状态" 100 1 0:0 1 RELSTA',
          '15 18 "分行" 142',
217
        ],
taojinrui committed
218
        data: [],
219
      },
taojinrui committed
220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240
      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
241 242 243 244
      flt: [
        { label: "All Users", value: "<ALL>" },
        { label: "Selected User", value: "<SELU>" },
      ],
nanrui committed
245 246
      branch: [
        { label: "LM ADD", value: "00001047" }
taojinrui committed
247
      ],
nanrui committed
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 275
      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" },
        { label: "XEU 欧洲货币单元(E.C.U)", value: "XEU" }
taojinrui committed
276 277 278 279 280 281 282 283 284
      ],
      relflg: [
        { label: "<all>", value: "" },
        { label: "Correct", value: "C" },
        { label: "Final", value: "F" },
        { label: "Picked up", value: "P" },
        { label: "Rejected", value: "N" },
        { label: "Released", value: "R" },
        { label: "Waiting", value: "W" },
nanrui committed
285 286 287 288 289 290 291 292
      ],
      trntyp: [
        { label: "ALL", value: "" },
        { label: "贸易", value: "0" },
        { label: "非贸易", value: "1" },
        { label: "资本", value: "2" },
        { label: "其他", value: "3" },
      ],
293 294
    };
  },
taojinrui committed
295 296
  methods: {
    ...Event,
297 298 299 300 301 302 303 304 305 306 307 308
    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
309 310 311 312 313 314 315 316 317 318 319 320 321 322 323
    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();
    },
nanrui committed
324 325


taojinrui committed
326
  },
nanrui committed
327
  created: function () { },
328 329 330
};
</script>
<style>
nanrui committed
331

332
</style>