Innp0.vue 5.32 KB
Newer Older
fukai committed
1 2
<template>
  <div class="eibs-tab">
zenghuan committed
3 4 5 6 7 8
    <c-list-search @form-reset="handleReset" @form-search="handleSearch">
      <!-- 持续展示区 -->
      <template v-slot="searchSlot">
        <el-row>
          <c-col :span="24">
            <c-col :span="8">
9 10
              <el-form-item label="内部账号" prop="innp.iact" style="width: 100%">
                <c-input v-model="model.innp.iact" style="width: 100%" placeholder="请输入内部账号" />
zenghuan committed
11 12 13
              </el-form-item>
            </c-col>
            <c-col :span="8">
14
              <el-form-item label="币种" prop="innp.cur" style="width: 100%">
李少勇 committed
15
                <c-select v-model="model.innp.cur" style="width: 100%" placeholder="请选择币种" dbCode="curtxt" />
zenghuan committed
16 17 18
              </el-form-item>
            </c-col>
            <c-col :span="8">
19 20
              <el-form-item label="开户机构" prop="innp.ptycod" style="width: 100%">
                <c-select v-model="model.innp.ptycod" style="width: 100%" placeholder="请选择开户机构" :code="codes.ptycod" />
zenghuan committed
21 22 23 24 25 26 27 28 29 30 31
              </el-form-item>
            </c-col>
          </c-col>
        </el-row>
        <!-- 可控展示区 -->
        <el-row v-show="searchSlot.searchToggle">
        </el-row>
      </template>
    </c-list-search>

    <el-col :span="24" style="margin-top: 2px;margin-bottom: 1px;">
32 33
      <c-button :disabled="isFoldDisable" class="medium_bcs" size="medium" style="margin-left: 0" type="primary">
        {{ $t('public.归档') }}
zenghuan committed
34
      </c-button>
35 36
      <c-button :disabled="isRoutingDisable" class="medium_bcs" size="medium" style="margin-left: 20"
        type="primary">ReRouting
zenghuan committed
37 38 39 40 41 42 43 44 45 46 47 48
      </c-button>
      <c-button class="medium_bcs" size="medium" style="margin-left: 20" type="primary">
        {{ $t('public.导出Excel') }}
      </c-button>
    </el-col>

    <el-col :span="24" style="margin-top: 10px">
      <div style="height: 90%">
        <c-col :span="24">
          <el-tabs v-model="activeTab" class="y-tabs">
            <el-tab-pane label="内部账号维护" name="fb">
              <el-table :data="stmData.data" :columns="stmData.columns" v-loading="load" style="width: 100%"
49 50
                @selection-change="handleSelectionChange" size="small" :border="true" height="calc(100vh - 480px)"
                :highlight-current-row="true">
zenghuan committed
51
                <el-table-column type="selection" width="55">
fukai committed
52
                </el-table-column>
zenghuan committed
53
                <el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop"
54
                  :min-width="item.width">
fukai committed
55 56
                </el-table-column>
              </el-table>
zenghuan committed
57 58

              <el-pagination layout="total, sizes, prev, pager, next, jumper" :total="pagination.total"
59 60
                :page-size="pagination.pageSize" :current-page.sync="pagination.pageNum" @size-change="handleSizeChange"
                @current-change="handleCurrentChange">
fukai committed
61
              </el-pagination>
zenghuan committed
62 63 64 65 66
            </el-tab-pane>
          </el-tabs>
        </c-col>
      </div>
    </el-col>
fukai committed
67 68 69
  </div>
</template>
<script>
zenghuan committed
70
import event from "../event";
fukai committed
71 72

export default {
zenghuan committed
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
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [event],
  data() {
    return {
      activeTab: 'fb',
      load: false,
      subtypCodes: [],
      multipleSelection: [],
      stmData: {
        columns: [
          {
            label: "内部账号",
            prop: "id",
            width: "120px"
          },
          {
            label: "币种",
            prop: "cur",
            width: "120px"
          },
          {
            label: "开户机构",
            prop: "ptycod",
            width: "120px"
          },
          {
            label: "账户行BIC",
            prop: "bic",
            width: "120px"
          },
          {
            label: "账户名称",
            prop: "kndnam",
            width: "120px"
          },
          {
            label: "开户机构地区",
            prop: "area",
            width: "120px"
          }],
        data: [],
      },
      pagination: {
        pageNum: 1,
        pageSize: 10,
        total: 0,
      },
    };
  },
  computed: {
    isFoldDisable: function () {
      return this.multipleSelection.length == 0;
fukai committed
126
    },
zenghuan committed
127 128
    isRoutingDisable: function () {
      return this.multipleSelection.length == 0;
fukai committed
129
    }
zenghuan committed
130 131 132 133 134
  },
  methods: {},
  mounted: function () {
  },
};
fukai committed
135
</script>
zenghuan committed
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
<style lang="less" scoped>
::v-deep .c-content-scrollbar {
  height: 100% !important;
}

.eibs-tabs /deep/ {
  .m-table-search {
    padding: 20px 0px 10px 0px;
  }
}

.header-wrap {
  height: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
fukai committed
152

zenghuan committed
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
  .title {
    font-size: 16px;
    color: #000;
  }

  .close-btn {
    padding: 3px;
    cursor: pointer;
  }
}

.m-list-btns {
  height: 300px;
  overflow: auto;
}

.medium_bcs {
  border-radius: 5px;
}

.m-table-search {
  padding: 20px 0px 10px 0px;
}

.pagination-box {
  width: 100%;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
  background: #fff;
  margin-top: 5px;
}

.el-dialog__body {
  padding: 10px 5px 50px;
}

.m-table-search {
  padding: 20px 0px 10px 0px;
}

.btn-group-wrap {
  max-height: 200px;
  width: 100%;
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.btn-item {
  margin-bottom: 10px;
  margin-right: 10px;
}
fukai committed
210
</style>