Oftp2.vue 9.95 KB
Newer Older
fukai committed
1 2
<template>
  <div class="eibs-tab">
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
    <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="账户行BIC" prop="msgtyp" style="width: 100%">
                <c-select v-model="model.oftp.ptpmod.pty.extkey" style="width: 100%" placeholder="请选择货押标识" :code="codes.msgtyp3">
                </c-select>
              </el-form-item>
            </c-col>
            <c-col :span="8">
              <el-form-item label="起息日" prop="rcvdatsta" style="width: 100%">
                <c-col :span="11">
                  <c-date-picker type="date" v-model="model.oftp.valdats" style="width: 100%"></c-date-picker>
                </c-col>
                <c-col :span="2" style="text-align: center">
                  <label style="display: inline-block; width: 100%">-</label>
                </c-col>
                <c-col :span="11">
                  <c-date-picker type="date" v-model="model.oftp.valdate" style="width: 100%"></c-date-picker>
                </c-col>
              </el-form-item>
            </c-col>
            <c-col :span="8">
              <el-form-item label="借    贷" prop="subtype" style="width: 100%">
                <c-select v-model="model.oftp.dcflg2" style="width:100%" placeholder="选择借贷">
                  <el-option
                      v-for="item in codes.sdcflg"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value">
                  </el-option>
                </c-select>
              </el-form-item>
            </c-col>
          </c-col>
        </el-row>
        <!-- 可控展示区 -->
        <el-row v-show="searchSlot.searchToggle">
          <c-col :span="24">
            <c-col :span="8">
              <el-form-item label="币    种" prop="sndbak" style="width: 100%">
                <c-select v-model="model.oftp.cur" style="width:100%" placeholder="请选择币种">
                  <el-option
                      v-for="item in codes.cur"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value">
                  </el-option>
                </c-select>
              </el-form-item>
            </c-col>
            <c-col :span="8">
              <el-form-item label="金额下限" prop="revbak" style="width: 100%">
                <c-input v-model="model.oftp.amtd" maxlength="40" placeholder="请输入收报行BIC">
                </c-input>
              </el-form-item>
            </c-col>
            <c-col :span="8">
              <el-form-item label="金额上限" prop="actbic" style="width: 100%">
                <c-input v-model="model.oftp.amtu" maxlength="40" placeholder="请输入账户行BIC">
                </c-input>
              </el-form-item>
            </c-col>
          </c-col>
          <c-col :span="24">
            <c-col :span="8">
              <el-form-item label="参考号/前" prop="ownref" style="width: 100%">
                <c-input v-model="model.oftp.ownref" maxlength="40" placeholder="请输入20域编号">
                </c-input>
              </el-form-item>
            </c-col>
            <c-col :span="8">
              <el-form-item label="参考号/后" prop="othref" style="width: 100%">
                <c-input v-model="model.oftp.othref" maxlength="40" placeholder="请输入21域编号">
                </c-input>
              </el-form-item>
            </c-col>
            <c-col :span="8">
              <el-form-item label="详细信息" prop="cur" style="width: 100%">
                <c-input  v-model="model.oftp.inf" maxlength="40" style="width: 100%" placeholder="请选择详细信息"/>
              </el-form-item>
            </c-col>
          </c-col>
          <c-col :span="24">
            <c-col :span="8">
              <el-form-item label="记账状态" prop="act" style="width: 100%">
                <c-select v-model="model.oftp.recsta" style="width:100%" placeholder="请选择记账状态">
                  <el-option
                      v-for="item in codes.recsta"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value">
                  </el-option>
                </c-select>
              </el-form-item>
            </c-col>
            <c-col :span="8">
              <el-form-item label="记账类型" prop="dtlchg" style="width: 100%">
                <c-select v-model="model.oftp.kpatyp" style="width:100%" placeholder="请选择记账类型">
                </c-select>
              </el-form-item>
            </c-col>
          </c-col>
        </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="sb">
              <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
134
                </el-table-column>
135 136
                <el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop"
                                 :min-width="item.width">
fukai committed
137 138
                </el-table-column>
              </el-table>
139 140 141
              <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
142
              </el-pagination>
143 144
            </el-tab-pane>
          </el-tabs>
fukai committed
145
        </c-col>
146 147
      </div>
    </el-col>
fukai committed
148 149 150
  </div>
</template>
<script>
151
import event from "../event";
fukai committed
152 153

export default {
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 213 214 215 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
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [event],
  data() {
    return {
      activeTab: 'sb',
      load: false,
      subtypCodes: [],
      multipleSelection:[],
      stmData: {
        columns: [
          {
            label: "选中",
            prop: "chk",
            width: "180px"
          },
          {
            label: "起息日",
            prop: "valdat",
            width: "180px"
          },
          {
            label: "账户行",
            prop: "actbic",
            width: "120px"
          },
          {
            label: "借贷",
            prop: "dcflg",
            width: "120px"
          },
          {
            label: "参考号/前",
            prop: "ownref",
            width: "120px"
          },
          {
            label: "参考号/后",
            prop: "othref",
            width: "120px"
          },
          {
            label: "金额",
            prop: "amt",
            width: "120px"
          },
          {
            label: "币种",
            prop: "cur",
            width: "120px"
          },
          {
            label: "关联状态",
            prop: "sta",
            width: "120px"
          },
          {
            label: "勾销状态",
            prop: "offsta",
            width: "120px"
          },
          {
            label: "记账状态",
            prop: "recsta",
            width: "120px"
          },
          {
            label: "记账类型",
            prop: "typ",
            width: "250px"
          },
          {
            label: "最后处理时间",
            prop: "lstdat",
            width: "150px"
          },
          {
            label: "详细信息",
            prop: "inf",
            width: "150px"
          },
          {
            label: "收发时间",
            prop: "rsptim",
            width: "150px"
          },
        ],
        data: [],
      },
fukai committed
243

244 245 246 247 248 249 250 251 252 253 254 255 256
      pagination: {
        pageNum: 1,
        pageSize: 10,
        total: 0,
      },
    };
  },
  computed:{
    isFoldDisable: function(){
      return this.multipleSelection.length == 0;
    } ,
    isRoutingDisable:function(){
      return this.multipleSelection.length == 0;
fukai committed
257
    }
258 259 260 261 262
  },
  methods: {},
  mounted: function () {
  },
};
fukai committed
263
</script>
264 265 266 267
<style lang="less" scoped>
::v-deep .c-content-scrollbar {
  height: 100% !important;
}
fukai committed
268

269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337
.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;
}

.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
338
</style>