Opnp1.vue 5.92 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 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 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 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 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212
<template>
  <div class="eibs-tab">
    <c-col :span="24">
      <c-col :span="12">
        <c-fullbox>
          <el-form-item label="申请人" prop="fcdgrp.apl.pts.extkey">
            <c-input
              v-model="model.fcdgrp.apl.pts.extkey"
              maxlength="16"
              placeholder="请输入申请人Extkey"
              @keyup.enter.native="showGridPromptDialog('fcdgrp.apl.pts.extkey')"
            ></c-input>
          </el-form-item>
          <template slot="footer">
            <c-button size="small" type="primary" @click="onAplpDet">
              详情
            </c-button>
          </template>
        </c-fullbox>
      </c-col>

      <c-col :span="12">
        <el-form-item label="">
          <c-checkbox v-model="model.errflg">已使用保证金</c-checkbox>
        </el-form-item>
      </c-col>
    </c-col>

    <c-col :span="24">
      <c-col :span="12">
        <el-form-item label="" prop="fcdgrp.apl.pts.nam">
          <c-input
            v-model="model.fcdgrp.apl.pts.nam"
            maxlength="40"
            placeholder="请输入"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>
    <c-col :span="24">
      <c-col :span="12">
        <el-form-item label="" prop="fcdgrp.apl.pta.nam1">
          <c-input
            v-model="model.fcdgrp.apl.pta.nam1"
            maxlength="40"
            placeholder="请输入Externally Visible Name of Address"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>

    <c-col :span="24">
      <c-col :span="12">
        <el-form-item label="参考号" prop="fcdgrp.rec.ownref">
          <c-input
            v-model="model.fcdgrp.rec.ownref"
            maxlength="16"
            placeholder="请输入参考号"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="说明" prop="fcdgrp.rec.reason">
          <c-input
            v-model="model.fcdgrp.rec.reason"
            maxlength="40"
            placeholder="请输入collect reason"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>

    <c-col :span="24">
      <c-col :span="12">
        <c-col :span="12">
          <el-form-item label="保证金金额" prop="fcdgrp.rec.cur">
            <c-select
              v-model="model.fcdgrp.rec.cur"
              style="width: 100%"
              placeholder="请选择currency"
              disabled
            >
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="" label-width="20px" prop="fcdgrp.rec.amt">
            <c-input
              v-model="model.fcdgrp.rec.amt"
              placeholder="请输入保证金金额"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="12">
        <c-col :span="12">
          <el-form-item label="保证金账户" prop="fcdgrp.rec.extact">
            <c-input
              v-model="model.fcdgrp.rec.extact"
              maxlength="8"
              placeholder="请输入Extend Account"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="12">
          <c-fullbox>
            <el-form-item label="" label-width="20px" prop="fcdgrp.rec.engact">
              <c-input
                v-model="model.fcdgrp.rec.engact"
                maxlength="16"
                placeholder="请输入Engagement account"
                disabled
              ></c-input>
            </el-form-item>
            <template slot="footer">
              <el-form-item label="" label-width="0" prop="gleflg">
                <c-checkbox v-model="model.gleflg" style="margin-left: 10px"
                class="" @change="eventFunction('model.gleflg')"
                  >是否过帐</c-checkbox
                >

              </el-form-item>
            </template>
          </c-fullbox>
        </c-col>
      </c-col>
    </c-col>

    <!-- <c-col :span="12">
        <el-form-item label="" prop="aplp.ptsget.sdamod.seainf">
          <c-input
            v-model="model.aplp.ptsget.sdamod.seainf"
            placeholder="请输入"
          ></c-input>
        </el-form-item>
    </c-col> -->

    <c-col :span="24">
      <c-istream-table
        :list="model.cshstm.rows || []"
        :columns="columns"
        :showSelection="true"
        v-on:multipleSelect="multipleSelect"
      
      ></c-istream-table>
    </c-col>
  </div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Fctcan/Event";

export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {
      columns: [
        '0 1 "INR" 100',
        '1 2 "Own Reference" 150',
        '2 3 "收取日期" 120 4 7',
        '3 4 "Cur" 100',
        '4 5 "Relevant Amount" 150 2 8:1 2 5',
        '5 6 "" auto',
        '6 7 "保证金帐号" 120',
        '7 8 "是否过帐" 120',
        '8 9 "是否到帐" 120',
        '9 10 "是否被用" 120',
        '10 11 "说明 " 200',
        '11 12 "被用在交易" 120',
        "P COLORED TRUE",
        "P VERTLINES TRUE",
        "P HORZLINES TRUE",
        "P MULTISELECT FLASE",
      ],
    };
  },
  methods: { 
    ...Event,
    async multipleSelect(selection) {
      console.log(selection);
      if (selection) {
        let selIds = selection.map(x=>x+1);
        let params = {selDst:"cshstm",selIds}
        const rtnmsg = await this.executeRule("cshstm",params);
        if (rtnmsg.respCode == SUCCESS) {
            this.updateModel(rtnmsg.data)
        }
        else
                {
                this.$notify.error({title: '错误',message: '服务请求失败!'});
                }
      }
    },

  },
  created: function () {},
};
</script>
<style>
</style>