Rsmp.vue 12 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 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
    <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="msgtyp" style="width: 100%">
                <c-select v-model="model.sndp.msgtyp" 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.sndp.rcvdatsta" 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.sndp.rcvdatend" 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%">
                <el-select v-model="model.sndp.subtyp" placeholder="请选择报文类型">
                  <el-option v-for="code in subtypCodes" :key="code.label" :label="code.label" :value="code.value">
                  </el-option>
                </el-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="发报行BIC" prop="sndbak" style="width: 100%">
                <c-input v-model="model.sndp.sndbak" maxlength="40" placeholder="请输入发报行BIC">
                </c-input>
              </el-form-item>
            </c-col>
            <c-col :span="8">
              <el-form-item label="收报行BIC" prop="revbak" style="width: 100%">
                <c-input v-model="model.sndp.revbak" maxlength="40" placeholder="请输入收报行BIC">
                </c-input>
              </el-form-item>
            </c-col>
            <c-col :span="8">
              <el-form-item label="账户行BIC" prop="actbic" style="width: 100%">
                <c-input v-model="model.sndp.actbic" 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="20域编号" prop="ownref" style="width: 100%">
                <c-input v-model="model.sndp.ownref" maxlength="40" placeholder="请输入20域编号">
                </c-input>
              </el-form-item>
            </c-col>
            <c-col :span="8">
              <el-form-item label="21域编号" prop="othref" style="width: 100%">
                <c-input v-model="model.sndp.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-select v-model="model.sndp.cur" style="width: 100%" placeholder="请选择币种" :code="codes.cur">
                </c-select>
              </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-input v-model="model.sndp.act" maxlength="40" placeholder="请输入账号">
                </c-input>
              </el-form-item>
            </c-col>
            <c-col :span="8">
              <el-form-item label="费用明细" prop="dtlchg" style="width: 100%">
                <c-select v-model="model.sndp.dtlchg" style="width: 100%" placeholder="请选择费用明细" :code="codes.dtlchg">
                </c-select>
              </el-form-item>
            </c-col>

            <c-col :span="8">
              <el-form-item :label="$t('lc.金额区间')" style="width: 100%">
                <c-col :span="11">
                  <c-input v-model="model.sndp.amtmin" :placeholder="$t('lc.请输入金额下限')" style="width: 100%"></c-input>
                </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-input v-model="model.sndp.amtmax" :placeholder="$t('lc.请输入金额上限')" style="width: 100%"></c-input>
                </c-col>
              </el-form-item>
            </c-col>
          </c-col>
          <c-col :span="24">
            <c-col :span="8">
              <el-form-item label="行内系统" prop="chnipt" style="width: 100%">
                <c-select v-model="model.sndp.chnipt" style="width: 100%" placeholder="请选择行内系统" :code="codes.chnipt">
                </c-select>
              </el-form-item>
            </c-col>
            <c-col :span="8">
              <el-form-item label="回执状态" prop="rspsta" style="width: 100%">
                <c-select v-model="model.sndp.rspsta" style="width: 100%" placeholder="请选择回执状态" :code="codes.rspsta">
                </c-select>
              </el-form-item>
            </c-col>
            <c-col :span="8">
              <el-form-item label="处理状态" prop="sta" style="width: 100%">
                <c-select v-model="model.sndp.sta" style="width: 100%" placeholder="请选择处理状态" :code="codes.sta1">
                </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="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">
                </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">
fukai committed
155 156
                </el-table-column>
              </el-table>
157 158 159 160

              <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
161
              </el-pagination>
162 163
            </el-tab-pane>
          </el-tabs>
fukai committed
164
        </c-col>
165 166
      </div>
    </el-col>
fukai committed
167 168 169
  </div>
</template>
<script>
170
import event from "../event";
fukai committed
171 172

export default {
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 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [event],
  data() {
    return {
      activeTab: 'fb',
      load: false,
      subtypCodes: [],
      multipleSelection:[],
      stmData: {
        columns: [
          {
            label: "起息日",
            prop: "valdat",
            width: "180px"
          },
          {
            label: "20域编号",
            prop: "ownref",
            width: "180px"
          },
          {
            label: "21域名编号",
            prop: "othref",
            width: "120px"
          },
          {
            label: "币种",
            prop: "cur",
            width: "120px"
          },
          {
            label: "金额",
            prop: "amt",
            width: "120px"
          },
          {
            label: "账号",
            prop: "act",
            width: "120px"
          },
          {
            label: "费用明细",
            prop: "dtlchg",
            width: "120px"
          },
          {
            label: "报文类型",
            prop: "subtyp",
            width: "120px"
          },
          {
            label: "行内系统",
            prop: "chnipt",
            width: "120px"
          },
          {
            label: "处理状态",
            prop: "sta",
            width: "120px"
          },
          {
            label: "账户行BIC(53域)",
            prop: "actbic",
            width: "120px"
          },
          {
            label: "账户行BIC(54域)",
            prop: "actbic",
            width: "250px"
          },
          {
            label: "发报行BIC",
            prop: "sndbic",
            width: "150px"
          },
          {
            label: "收报行BIC",
            prop: "rcvbic",
            width: "150px"
          },
          {
            label: "报文标准",
            prop: "msgtyp",
            width: "150px"
          },
          {
            label: "GPI标识",
            prop: "gpi",
            width: "150px"
          },
          {
            label: "子系统",
            prop: "",
            width: "150px"
          },
          {
            label: "处理时间",
            prop: "sttdattim",
            width: "150px"
          },
        ],
        data: [],
      },
fukai committed
277

278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298
      pagination: {
        pageNum: 1,
        pageSize: 10,
        total: 0,
      },
    };
  },
  computed:{
    isFoldDisable: function(){
      return this.multipleSelection.length == 0;
    } ,
    isRoutingDisable:function(){
      return this.multipleSelection.length == 0;
    }
  },
  watch: {
    'model.sndp.msgtyp': {
      handler: function (newTyp, oldTyp) {
        // 把已经选择的 subtyp 重置
        this.model.sndp.subtyp = '';
        const { codes } = this;
zenghuan committed
299 300 301 302 303 304
        if (newTyp === 'sf2') {
          this.subtypCodes = codes.mttyp;
        } else if (newTyp === 'iso') {
          this.subtypCodes = codes.isotyp;
        } else if (newTyp === 'txt') {
          this.subtypCodes = codes.fmttyp;
305
        } else {
zenghuan committed
306
          this.subtypCodes = codes.cipstyp;
fukai committed
307
        }
308 309
      },
      deep: true
fukai committed
310
    }
311 312 313 314 315 316
  },
  methods: {
  },
  mounted: function () {
  },
};
fukai committed
317
</script>
318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353
<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;
}
fukai committed
354

355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391
.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
392
</style>