Infsea.vue 12.3 KB
Newer Older
唐贵贤 committed
1 2
<template>
  <div class="eibs-tab">
唐贵贤 committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
    <!-- <c-col :span="24" style="padding: 0 0 10px 0">
      <c-button size="small" type="primary" @click="onInfbutSearow">
        Search
      </c-button>
      <c-button size="small" type="primary" @click="onInfbutDsp">
        Display
      </c-button>
      <c-button size="small" type="primary" @click="onInfbutUserow">
        Use
      </c-button>
      <c-button size="small" type="primary" @click="onInfbutClr">
        Clear
      </c-button>
      <c-button size="small" type="primary" @click="onInfbutButprt">
        导Excel
      </c-button>
      <c-button size="small" type="primary" @click="onInfbutExi">
        Exit
      </c-button>
    </c-col> -->

24
    <c-list-search @form-reset="handleReset" @form-search="handleSearch">
唐贵贤 committed
25 26
      <template v-slot="searchSlot">
        <c-col :span="11" :offset="1">
唐贵贤 committed
27 28 29 30 31 32 33 34
          <el-form-item label="Own Reference" prop="infcon.seaownref">
            <c-input
              v-model="model.infcon.seaownref"
              maxlength="16"
              placeholder="请输入Own Reference"
            ></c-input>
          </el-form-item>
        </c-col>
唐贵贤 committed
35 36

        <c-col :offset="1" :span="5.5">
唐贵贤 committed
37 38 39 40 41 42 43 44 45
          <el-form-item label="Opening between" prop="infcon.opndatfrom">
            <c-date-picker
              type="date"
              v-model="model.infcon.opndatfrom"
              style="width: 100%"
              placeholder="请选择Opening between"
            ></c-date-picker>
          </el-form-item>
        </c-col>
唐贵贤 committed
46
        <c-col :span="5.5">
唐贵贤 committed
47 48 49 50 51 52 53 54 55
          <el-form-item label="Open Date to" prop="infcon.opndatto">
            <c-date-picker
              type="date"
              v-model="model.infcon.opndatto"
              style="width: 100%"
              placeholder="请选择Open Date to"
            ></c-date-picker>
          </el-form-item>
        </c-col>
唐贵贤 committed
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
        <el-row v-show="searchSlot.searchToggle">
          <c-col :span="11" :offset="1">
            <c-col :span="22">
              <el-form-item label="Party Reference" prop="infcon.searef">
                <c-input
                  v-model="model.infcon.searef"
                  maxlength="16"
                  placeholder="请输入Party Reference"
                ></c-input>
              </el-form-item>
            </c-col>
            <c-col :span="24">
              <el-form-item
                label="Select Single Party"
                prop="infcon.pty.extkey"
              >
                <c-input
                  v-model="model.infcon.pty.extkey"
                  maxlength="24"
                  placeholder="请输入Select Single Party"
                ></c-input>
              </el-form-item>
            </c-col>
            <c-col :span="24">
              <el-form-item label="Party Name/BIC" prop="infcon.seapty">
                <c-input
                  v-model="model.infcon.seapty"
                  maxlength="24"
                  placeholder="请输入Party Name/BIC"
                ></c-input>
              </el-form-item>
            </c-col>
88 89 90 91
            <c-col :span="24">
              <el-form-item label="Currency" prop="infcon.seacur">
                <c-select
                  v-model="model.infcon.seacur"
唐贵贤 committed
92
                  style="width: 100%"
93 94 95
                  placeholder="请选择Currency"
                >
                </c-select>
唐贵贤 committed
96 97
              </el-form-item>
            </c-col>
98

唐贵贤 committed
99
            <c-col :span="12">
100 101 102 103 104 105
              <el-form-item label="Responsible" prop="infcon.usr.extkey">
                <c-input
                  v-model="model.infcon.usr.extkey"
                  maxlength="8"
                  placeholder="请输入User ID"
                ></c-input>
唐贵贤 committed
106 107
              </el-form-item>
            </c-col>
108 109
            <c-col :span="12">
              <el-form-item label="Status" prop="infcon.seasta">
唐贵贤 committed
110
                <c-select
111
                  v-model="model.infcon.seasta"
唐贵贤 committed
112
                  style="width: 100%"
113
                  placeholder="请选择Status"
唐贵贤 committed
114 115 116 117 118
                >
                </c-select>
              </el-form-item>
            </c-col>
          </c-col>
唐贵贤 committed
119

唐贵贤 committed
120
          <!--右边-->
唐贵贤 committed
121

唐贵贤 committed
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
          <c-col :span="11" :offset="1">
            <c-col :span="24"
              ><el-form-item label="Name" prop="infcon.nam">
                <c-input
                  v-model="model.infcon.nam"
                  maxlength="40"
                  placeholder="请输入Name"
                ></c-input> </el-form-item
            ></c-col>
            <c-col :span="22">
              <el-form-item label="Handling Type" prop="infcon.hndtyp">
                <c-select
                  v-model="model.infcon.hndtyp"
                  style="width: 100%"
                  placeholder="请选择Handling Type"
                >
                </c-select>
              </el-form-item>
            </c-col>
            <c-col :span="24">
              <el-form-item label="Party Name" prop="infcon.pty.nam">
                <c-input
                  v-model="model.infcon.pty.nam"
                  maxlength="40"
                  placeholder="请输入External Visible Name"
                ></c-input>
              </el-form-item>
            </c-col>
            <c-col :span="20">
              <el-form-item label="Role" prop="infcon.searol">
                <c-select
                  v-model="model.infcon.searol"
                  style="width: 100%"
                  placeholder="请选择Role"
                >
                </c-select>
              </el-form-item>
            </c-col>
160
            
唐贵贤 committed
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
            <c-col :span="12">
              <el-form-item label="Amount between" prop="infcon.seaamtfr">
                <c-input
                  v-model="model.infcon.seaamtfr"
                  placeholder="0.00"
                ></c-input>
              </el-form-item>
            </c-col>
            <c-col :span="12">
              <el-form-item label="and" prop="infcon.seaamtto">
                <c-input
                  v-model="model.infcon.seaamtto"
                  placeholder="0.00"
                ></c-input>
              </el-form-item>
            </c-col>
          </c-col>
        </el-row>
      </template>
    </c-list-search>
181
    <c-col :span="24">
唐贵贤 committed
182 183 184 185 186
      <c-istream-table
        :list="stmData.data"
        :columns="stmData.columns"
        prop="infbut.dspstm"
      >
187
        <el-table-column fixed="right" prop="op" label="操作" width="210px">
唐贵贤 committed
188
          <template slot="header">
189 190
            <c-col :span="11" :offset="1" style="text-align: left"><span>操作</span></c-col>
            <c-col :span="10" style="text-align: center"
唐贵贤 committed
191 192 193
              ><c-button icon="el-icon-s-tools"></c-button
            ></c-col>
          </template>
194

唐贵贤 committed
195
          <template slot-scope="scope">
196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214
              <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"
215
                        @click="display(scope.row['INR'])"
216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266
                      >
                        详情
                      </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>
                <!-- <c-button
                  style="margin-left: 0"
                  size="small"
                 
                >
                  关闭
                </c-button> -->
              </el-popover>

              <!-- <c-button
                style="margin-left: 0"
                size="small"
                @click="getTrnInfo(scope.$index,scope.row)"
              >
                详情
              </c-button> -->
              <c-button
                style="margin-left: 0"
                size="small"
                type="primary"
                @click="getButtons(scope.row['Reference'])"
              >
                处理
              </c-button>

              <c-button
                style="margin-left: 0"
                size="small"
                type="primary"
                @click="getDitSelInfo(scope.$index, scope.row)"
              >
                display
              </c-button>
            </template>


          <!-- <template slot-scope="scope">
唐贵贤 committed
267 268 269 270 271 272 273 274 275 276
            <c-button style="margin-left: 0" size="small" @click="onDetails"
              >详情
            </c-button>
            <c-button
              style="margin-left: 0"
              size="small"
              type="primary"
              @click="onInfbutDsp(scope.row)"
              >处理
            </c-button>
277 278 279 280 281 282 283 284 285
            <c-button
                style="margin-left: 0"
                size="small"
                type="primary"
                @click="getDitSelInfo(scope.$index, scope.row)"
              >
                info
              </c-button>
          </template> -->
唐贵贤 committed
286
        </el-table-column>
唐贵贤 committed
287 288
        <!--el-table-column prop="op" label="OP" width="100">placeholder="请输入display stream"</el-table-column-->
      </c-istream-table>
289 290 291 292
    </c-col>
        <m-busbtn ref="childs" :ownref="ownref" @onChoose="onChoose"
          >11</m-busbtn
        >
唐贵贤 committed
293 294 295 296
  </div>
</template>
<script>
import Api from "~/service/Api";
297
import Utils from "~/utils/index";
wangren committed
298
import commonProcess from "~/mixin/commonProcess";
唐贵贤 committed
299 300
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Infltd/Event";
301
import BusNavbar from "~/views/Public/BusNavbar";
唐贵贤 committed
302 303 304 305

export default {
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
306
  mixins: [commonProcess],
307
  components: { "m-busbtn": BusNavbar },
唐贵贤 committed
308 309
  data() {
    return {
310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325
      ownref: "",
      initdialog: false,
      dialogTableVisible: false,
      trnData: {
        columns: [
          '1 1 "编号" 200',
          '2 2 "交易名称" 120',
          // '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 "金额" 110',
        ],
        data: [],
      },
唐贵贤 committed
326 327
      stmData: {
        columns: [
328
          '1 1 "Reference" 150 ',
唐贵贤 committed
329 330 331 332
          '8 2 "Party Number" 275',
          '9 2 "1st Beneficiary" 275',
          '11 3 "Party Number" 275',
          '12 3 "2nd Beneficiary" 275',
唐贵贤 committed
333
          // "18 5 \"MT\" 100",
334 335 336 337 338 339 340
          '3 4 "Opened" 200',
          '4 4 "Expired" 200',
          '5 4 "Closed" 200',
          '15 5 "Cur" 75',
          //'17 5 "Cur" 75',
          '16 6"Open Amt" 150',
          '18 7"Account Amt" 150',
唐贵贤 committed
341 342 343 344 345
        ],
        data: [],
      },
    };
  },
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364
  methods: { ...Event ,
  closeTrn(refId){
       this.$refs[refId].doClose();
  },
  async getTrnInfo(idx, row) {

      this.model.infcon.objinr = row["INR"];
      this.model.ltdgrp.rec.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;
      }
    },
    async getButtons(ownref){
        this.ownref = ownref
365
        this.$refs.childs.initdialog = true
366 367
        console.log("ownref:" +ownref);
      },
368 369 370 371 372 373 374 375 376 377
        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                    
        },
378
  },
唐贵贤 committed
379 380 381 382 383
  created: function () {},
};
</script>
<style>
</style>