Attlpn.vue 5.98 KB
Newer Older
fukai committed
1 2
<template>
  <div class="eibs-tab">
zenghuan committed
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
    <c-list-search @form-reset="handleReset" @form-search="handleSearch">
      <!-- 持续展示区 -->
      <template v-slot="searchSlot">
        <el-row>
          <c-col :span="24">
            <c-col :span="8">
              <el-form-item label="联系人性质" prop="" style="width: 100%">
                <c-select v-model="model.pttp.usratr" style="width: 100%" placeholder="请选择联系人性质"
                          :code="codes.usratr"/>
              </el-form-item>
            </c-col>
            <c-col :span="8">
              <el-form-item label="代理行BIC码" prop="" style="width: 100%">
                <c-input v-model="model.pttp.ptybic" style="width: 100%" placeholder="请输入代理行BIC码"/>
              </el-form-item>
            </c-col>
            <c-col :span="8">
              <el-form-item label="代理行名称" prop="" style="width: 100%">
                <c-input v-model="model.pttp.ptynam" style="width: 100%" placeholder="请输入代理行名称"/>
              </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;">
      <c-button :disabled="isFoldDisable" class="medium_bcs" size="medium" style="margin-left: 0"
                type="primary">{{ $t('public.归档') }}
      </c-button>
      <c-button :disabled="isRoutingDisable" class="medium_bcs" size="medium"
                style="margin-left: 20" type="primary">ReRouting
      </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%"
                        @selection-change="handleSelectionChange"
                        size="small" :border="true" height="calc(100vh - 480px)" :highlight-current-row="true">
                <el-table-column type="selection" width="55">
fukai committed
54
                </el-table-column>
zenghuan committed
55 56
                <el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop"
                                 :min-width="item.width">
fukai committed
57 58
                </el-table-column>
              </el-table>
zenghuan committed
59 60 61 62 63

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

export default {
zenghuan committed
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
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [event],
  data() {
    return {
      activeTab: 'fb',
      load: false,
      subtypCodes: [],
      multipleSelection: [],
      stmData: {
        columns: [
          {
            label: "联系人熟悉",
            prop: "usratr",
            width: "120px"
          },
          {
            label: "账户行BIC",
            prop: "ptybic",
            width: "120px"
          },
          {
            label: "账户行名称",
            prop: "ptynam",
            width: "120px"
          },
          {
            label: "币种",
            prop: "cur",
            width: "120px"
          },
          {
            label: "固定电话1",
            prop: "tel1",
            width: "120px"
          },
          {
            label: "固定电话2",
            prop: "tel2",
            width: "120px"
          },
          {
            label: "固定电话3",
            prop: "tel3",
            width: "120px"
          },
          {
            label: "移动电话",
            prop: "mobile",
            width: "120px"
          },
          {
            label: "邮箱地址",
            prop: "eml",
            width: "120px"
          },
          {
            label: "传真号码",
            prop: "fax",
            width: "120px"
          },
          {
            label: "备注",
            prop: "rmk",
            width: "120px"
          }],
        data: [],
      },
      pagination: {
        pageNum: 1,
        pageSize: 10,
        total: 0,
      },
    };
  },
  computed: {
    isFoldDisable: function () {
      return this.multipleSelection.length == 0;
fukai committed
154
    },
zenghuan committed
155 156
    isRoutingDisable: function () {
      return this.multipleSelection.length == 0;
fukai committed
157
    }
zenghuan committed
158 159 160 161 162
  },
  methods: {},
  mounted: function () {
  },
};
fukai committed
163
</script>
zenghuan committed
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 213 214 215 216 217 218
<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;

  .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;
}
fukai committed
219

zenghuan committed
220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237
.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
238
</style>