<template> <div class="eibs-tab"> <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.ktlp.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="sndbak" style="width: 100%"> <c-input v-model="model.ktlp.ktpno" maxlength="40" placeholder="请输入发报行BIC"> </c-input> </el-form-item> </c-col> <c-col :span="8"> <el-form-item label="币种" prop="subtype" style="width: 100%"> <c-select v-model="model.ktlp.cur" style="width:100%" > </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="revbak" style="width: 100%"> <c-input v-model="model.ktlp.ktpno" maxlength="40" placeholder="请输入收报行BIC"> </c-input> </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"> </el-table-column> <el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop" :min-width="item.width"> </el-table-column> </el-table> <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"> </el-pagination> </el-tab-pane> </el-tabs> </c-col> </div> </el-col> </div> </template> <script> import event from "../event"; export default { inject: ["root"], props: ["model", "codes"], mixins: [event], data() { return { activeTab: 'sb', load: false, subtypCodes: [], multipleSelection:[], stmData: { columns: [ { label: "账户行", prop: "bic", width: "180px" }, { label: "币种", prop: "cur", width: "180px" }, { label: "借贷", prop: "dc", width: "120px" }, { label: "参考号/前", prop: "ownref", width: "120px" }, { label: "参考号/后", prop: "othref", width: "120px" }, { label: "详细信息", prop: "inf", width: "120px" }, { label: "金额下限", prop: "frmamt", width: "120px" }, { label: "金额上限", prop: "toamt", width: "120px" }, { label: "对应记账类型", prop: "ktpnam", width: "120px" }, { label: "机构", prop: "ptycod", width: "120px" }, { label: "操作人员", prop: "nam", width: "120px" }, { label: "操作时间", prop: "optdat", width: "250px" }, { label: "状态", prop: "delsta", width: "150px" }, { label: "记账附言", prop: "infs", width: "150px" }, { label: "记账状态", prop: "sta", width: "150px" }, ], data: [], }, pagination: { pageNum: 1, pageSize: 10, total: 0, }, }; }, computed:{ isFoldDisable: function(){ return this.multipleSelection.length == 0; } , isRoutingDisable:function(){ return this.multipleSelection.length == 0; } }, watch: { 'model.rcvp.msgtyp': { handler: function (newTyp, oldTyp) { // 把已经选择的 subtyp 重置 this.model.rcvp.subtyp = ''; const { codes } = this; if (newTyp == 'txt') { this.subtypCodes = codes.subtypfps; } else if (newTyp == 'iso') { this.subtypCodes = codes.subtypiso; } else if (newTyp == 'xml') { this.subtypCodes = codes.subtypcps; } else { this.subtypCodes = codes.subtyp1; } }, deep: true } }, methods: {}, mounted: function () { }, }; </script> <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; } .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; } </style>