Menu.vue 9.24 KB
Newer Older
WF1020 committed
1 2 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
<template>
  <div class="eibs-tab">
    <!-- <c-list-search @form-reset="handleReset" @form-search="handleSearch"> -->
    <!-- <template v-slot="searchSlot"> -->
    <el-form class="m-table-search-form" ref="paramsForm" label-position="right" label-width="110px"
      size="small">
      <el-row>
        <c-col :span="24" style="">
          <c-col :span="8">
            <el-form-item label="业务编号" prop="selobj" style="width: 100%">
              <c-input style="width: 100%" v-model="model.selobj" maxlength="32" placeholder="请输入业务编号"></c-input>
            </el-form-item>
          </c-col>
          <c-col :span="8">
            <el-form-item label="创建时间" style="width: 100%">
              <c-col :span="11">
                <c-date-picker type="date" v-model="model.inidatfro" style="width: 100%" placeholder="请选择创建时间">
                </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.inidattil" style="width: 100%" placeholder="请选择创建时间">
                </c-date-picker>
              </c-col>
            </el-form-item>
          </c-col>
          <c-col :span="8">
            <el-form-item label="来源" style="width: 100%" prop="sourceList">
              <el-select clearable v-model="sourceList" style="width: 100%" placeholder="请选择来源" multiple collapse-tags>
                <el-option v-for="item in sourceData" :key="item.value" :label="item.label" :value="item.value">
                </el-option>
              </el-select>
            </el-form-item>
          </c-col>
        </c-col>
      </el-row>
      <el-row>
        <c-col :span="24" style="">
          <c-col :span="8">
            <el-form-item label="选择用户" prop="usfmod" style="width: 100%">
              <!-- <c-col :span="20"> -->
              <c-select v-model="model.usfmod" style="width: 100%" placeholder="请选择选择用户">
                <el-option label="所有用户" value="ALL"></el-option>
                <el-option label="所选用户" value="SELU"></el-option>
                <el-option label="所选分支" value="SELB"></el-option>
              </c-select>
            </el-form-item>
          </c-col>
          <c-col :span="8">
            <el-form-item label="业务描述" prop="seltxt" style="width: 100%">
              <c-input v-model="model.seltxt" maxlength="32" placeholder="请输入业务描述"></c-input>
            </el-form-item>
          </c-col>
          <c-col :span="8">
            <el-form-item label="业务标志" prop="dflg" style="width: 100%">
              <c-select v-model="model.dflg" style="width: 100%" placeholder="请选择国内国际标志">
                <el-option label="所有业务" value="1"></el-option>
                <el-option label="国内业务" value="2"></el-option>
                <el-option label="国际业务" value="3"></el-option>
              </c-select>
            </el-form-item>
          </c-col>
        </c-col>
        <c-col :span="24" style="">
          <c-col :span="8" v-if="model.usfmod.flt === '<SELU>'">
            <el-form-item label="经办柜员" style="width: 100%">
              <c-input></c-input>
            </el-form-item>
          </c-col>
          <c-col :span="8" v-else-if="model.usfmod.flt === '<SELB>'">
            <el-form-item label="归属机构" style="width: 100%">
              <c-input></c-input>
            </el-form-item>
          </c-col>
          <c-col :span="8" v-else>
            <el-form-item label="" style="width: 100%; height: 36.8px; margin: 0 0 0 0">
            </el-form-item>
          </c-col>
          <c-col :span="16" style="text-align: right">
            <el-button size="small" @click="handleReset">重置</el-button>
            <el-button type="primary" icon="el-icon-search" size="small" @click="handleSearch">查询</el-button>
          </c-col>
        </c-col>
      </el-row>
    </el-form>
    <c-col :span="24" style="">
      <div style="border-bottom: 10px solid rgb(232, 232, 232)"></div>
    </c-col>
    <c-col :span="24">
      <el-table
          :data="stmData.data"
          :columns="stmData.columns"
          :showButtonFlg="true"
        >
        <el-table-column
          v-for="(item, key) in stmData.columns"
          :key="key"
          :label="item.label"
          :prop="item.prop"
        ></el-table-column>
        <el-table-column fixed="right" prop="op" label="操作" width="250px" >
          <template slot="header">
            <c-col :span="11" style="text-align:center"><span>操作</span></c-col>
          </template>
          <template slot-scope="scope">
            <c-button style="margin-left: 0" size="small" @click="onDetails(scope.$index, scope.row)">详情
            </c-button>
            <c-button style="margin-left: 5px" size="small" type="primary" @click="continueEdit(scope.row)">处理
            </c-button>
            <!-- 更改按钮暂时隐藏 -->
            <!-- <c-button style="margin-left: 5px" size="small" @click="onChange(scope.row)" :disabled="scope.row.状态!='INC'">更改
            </c-button> -->
             <el-popover placement="top-start" width="50" trigger="click">
             
              <ul class="table-button-item-list">
                <li>
                  <c-button size="small" style="margin-left: 0">指派</c-button>
                </li>
                <li>
                  <c-button size="small" style="margin-left: 0">删除</c-button>
                </li>
              </ul>
              <a slot="reference" href="javascript:void(0)" style="margin-left: 5px"><i class="el-icon-more"></i></a>
            </el-popover>
          </template>
        </el-table-column>
      </el-table>
WF1020 committed
130 131 132 133 134 135 136 137 138 139 140 141
      <div class="pagination-box">
        <el-pagination
          style="margin-right: 30px;"
          @size-change="handleSizeChange"
          @current-change="handleCurrentChange"
          :current-page.sync="pagination.pageIndex"
          :page-sizes="[10, 20, 50, 100, 500]"
          :page-size="pagination.pageSize"
          layout="sizes, prev, pager, next"
          :total="pagination.total">
        </el-pagination>
      </div>
WF1020 committed
142 143 144 145 146 147 148 149 150
    </c-col>
    <el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
      <div class="m-list-btns"></div>
    </el-dialog>
  </div>
</template>
<script>
import Api from '~/service/Api';
import event from '../event'
李少勇 committed
151
import { mapMutations, mapState } from 'vuex';
WF1020 committed
152 153 154
export default {
  inject: ['root'],
  props: ['model', 'codes'],
李少勇 committed
155 156 157 158 159
  computed: {
    ...mapState({
      toHandleRowData: (state) => state.gitopn.toHandleRowData
    })
  },
WF1020 committed
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177
  mixins: [event],
  data() {
    return {
      // saveColumns: [],
      sourceList: [],
      sourceData: [],
      initdialog: false,
      // detailDialog: false,
      // setColumnFlg: false,
      // saveColumnFlg: true,
      transactionStatus: {
        busiNo: '',
        modTimes: 0,
        postCount: 0,
        accCount: 0,
        earnCount: 0,
        earnAmt: 0,
      },
WF1020 committed
178
      //以下是表格内容
WF1020 committed
179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200
      stmData: {
        columns: [
        {
            label: '交易代码',
            prop: 'frm'
          },
          {
            label: '交易名称',
            prop: 'txt'
          },
          {
            label: '业务摘要',
            prop: 'objnam'
          },
          {
            label: '创建人',
            prop: 'usr'
          },
          {
            label: '创建时间',
            prop: 'dattim'
          },
WF1020 committed
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220
          {
            label: '银行名称',
            prop: 'bchname'
          },
          {
            label: '报文类型',
            prop: 'msgType'
          },
          {
            label: '对方银行BIC',
            prop: 'sndkey'
          },
          {
            label: '币种',
            prop: 'relcur'
          },
          {
            label: '金额',
            prop: 'relAmt'
          },
WF1020 committed
221 222 223
        ],
        data: [],
      },
WF1020 committed
224 225 226 227 228
      pagination: {
        pageIndex: 1,
        pageSize: 10,
        total: 0
      },
WF1020 committed
229 230 231 232
    };
  },
  async mounted() {
    this.sourceData = [
WF1020 committed
233
      { label: '暂存', value: 'chkpen' },
WF1020 committed
234
      { label: '电子贸易', value: 'chkdzt' },
WF1020 committed
235
      { label: '传入', value: 'chkinc' },
WF1020 committed
236 237 238 239 240 241 242
      { label: '修改', value: 'chkcor' },
      { label: '自动', value: 'chkaut' },
      { label: '拒绝', value: 'chkdel' },
      { label: '网银', value: 'chktco' },
    ];
  },
  methods: {
李少勇 committed
243
    ...mapMutations(['updateToHandleRowData']),
WF1020 committed
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
    getInidatfro() {
      let datetime = new Date();
      datetime = datetime.setDate(datetime.getDate() - 10);
      this.model.inidatfro = new Date(datetime);
    }
  },
  created: function () {
    this.getInidatfro();
  },
};
</script>
<style scoped>
.table-button-item-list {
  padding: 0;
  margin: 0;
}

.table-button-item-list li {
  list-style: none;
  padding: 5px 0;
  text-align: center;
  color: #606266;
  cursor: pointer;
}

c-istream-table label {
  text-align: right;
  color: yellow;
}
WF1020 committed
273 274 275 276 277 278 279 280 281 282
.pagination-box {
  width: 100%;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
  background: #fff;
  margin-top: 5px;
}
WF1020 committed
283
</style>