Infsea.vue 7.53 KB
Newer Older
xiameng committed
1 2
<template>
  <div class="eibs-tab">
Wuyuqiu committed
3 4 5 6 7 8 9 10 11 12 13
    <!-- 持续展示区 -->
    <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"
xiameng committed
14
          size="small"
Wuyuqiu committed
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
          :model="model"
        >
          <c-row>
            <c-col :span="24">
              <c-col :span="12" style="padding-right: 20px">
                <el-form-item label="Account No." prop="extkey">
                  <c-input
                    v-model="model.extkey"
                    placeholder="请输入Account No"
                  >
                  </c-input>
                </el-form-item>
              </c-col>
              <c-col :span="12" style="padding-left: 20px">
                <el-form-item label="Name of Account Owner" prop="nam">
                  <c-input
                    v-model="model.nam"
                    placeholder="请输入Name of Account Owner"
                  >
                  </c-input>
                </el-form-item>
              </c-col>
            </c-col>
          </c-row>
xiameng committed
39

Wuyuqiu committed
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
          <!-- 可控展示区 -->
          <c-row v-show="searchSlot.searchToggle">
            <c-col :span="24">
              <c-col :span="12" style="padding-right: 20px">
                <c-col :span="24">
                  <el-form-item label="Holding Party" prop="hdlpty.extkey">
                    <c-input
                      v-model="model.hdlpty.extkey"
                      placeholder="请输入 Holding Party"
                    >
                    </c-input>
                  </el-form-item>
                </c-col>
                <c-col :span="24">
                  <el-form-item label="Type" prop="typ">
                    <c-select
                      v-model="model.typ"
                      style="width: 100%"
                      placeholder="请输入type"
                    >
                      <el-option
                        v-for="item in codes.recgrptyp"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </c-select>
                  </el-form-item>
                </c-col>
              </c-col>
              <c-col :span="12" style="padding-left: 20px">
                <c-col :span="24">
                  <c-form-item label="IBAN" prop="iban">
                    <c-input
                      v-model="model.iban"
                      placeholder="请输入IBAN"
                    ></c-input>
                  </c-form-item>
                </c-col>
                <c-col :span="24">
                  <el-form-item :label="'Currency'" prop="cur">
                    <c-select
                      v-model="model.cur"
                      style="width: 100%"
                      :placeholder="'请输入Currency'"
                    >
                      <el-option
                        v-for="item in codes.curtxt1"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </c-select>
                  </el-form-item>
                </c-col>
              </c-col>
            </c-col>
          </c-row>
        </el-form>
      </template>
    </c-list-search>
xiameng committed
103

Wuyuqiu committed
104 105 106 107 108 109
    <el-row>
      <c-col :span="24">
        <c-istream-table
          :list="stmData.data"
          :columns="stmData.columns"
          :showButtonFlg="true"
xiameng committed
110
        >
Wuyuqiu committed
111 112 113 114 115
          <el-table-column fixed="right" prop="op" width="150px">
            <template slot="header">
              <c-col :span="11" style="text-align: center"
                ><span>操作</span></c-col
              >
xiameng committed
116 117

            </template>
Wuyuqiu committed
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166
            <template slot-scope="scope">
              <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"
                        type="primary"
                        @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"
                >
                  详情
                </c-button>
              </el-popover>
            </template>
          </el-table-column>
xiameng committed
167 168
        </c-istream-table>
      </c-col>
Wuyuqiu committed
169
    </el-row>
xiameng committed
170 171 172
  </div>
</template>
<script>
Wuyuqiu committed
173
import Api from "~/service/Api";
xiameng committed
174
import commonProcess from "~/mixin/commonProcess";
Wuyuqiu committed
175 176
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Infact/Event";
xiameng committed
177 178

export default {
Wuyuqiu committed
179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {
      trnData: {
        columns: [
          '0 8 "交易ID" 100',
          '1 1 "编号" 150',
          '2 2 "交易名称" 195',
          '3 3 "条目" 80 4 7',
          {
            index: 4,
            position: 4,
            width: 100,
            pattern: "code",
            label: "状态",
            code: this.codes.relstaEN,
          },
          '5 5 "币种" 80',
          '6 6 "相关金额" 150 2 8 1 5',
          '7 7 "标识" 100',
xiameng committed
201 202
        ],

Wuyuqiu committed
203 204
        data: [],
      },
xiameng committed
205

Wuyuqiu committed
206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225
      stmData: {
        columns: [
          '8 1 "Account Owner" 180 ',
          '3 2"Typ" 160',
          '4 3 "Cur" 160',
          '5 4 "Account No." 180',
          '6 5 " Owner Number" 180 ',

          '9 6 "Servicing Party " 160',
          '10 7 "Servicing Number" 160',
        ],
        data: [],
      },
    };
  },
  computed: {
    tableData() {
      return this.model.infbut.dspstm.rows;
    },
    /*  stmData() {
xiameng committed
226 227 228 229

console.log(this.model.infbut.dspstm.rows);
return this.model.infbut.dspstm.rows;
} */
Wuyuqiu committed
230 231 232
  },
  methods: {
    chooseRowEvent(row) {
xiameng committed
233 234
      this.model.infbut.selrow = row.IDX + 1;
    },
Wuyuqiu committed
235 236 237 238 239 240 241 242 243 244 245 246 247 248 249
    closeTrn(refId) {
      this.$refs[refId].doClose();
    },
    async getTrnInfo(idx, row) {
      this.model.infcon.objinr = row["INR"];
      this.model.ledgrp.rec.inr = row["INR"];
      this.model.infcon.chksubcon = "X";

      this.dialogTableVisible = true;
      let rtnmsg = await this.executeDefault("infbut.dspstm");

      if ((rtnmsg.respCode = SUCCESS)) {
        this.trnData.data = rtnmsg.data.infbut_dspstm.rows;
      }
    },
xiameng committed
250

Wuyuqiu committed
251 252 253 254
    ...Event,
  },
  created: function () {},
};
xiameng committed
255 256 257
</script>
<style>
</style>