Menu.vue 18.1 KB
Newer Older
liuxin committed
1
<template>
liushikai committed
2
  <div class="eibs-tab">
liushikai committed
3
    <!-- <c-list-search @form-reset="handleReset" @form-search="handleSearch"> -->
4
    <!-- <template v-slot="searchSlot"> -->
fukai committed
5

潘际乾 committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
    <el-form
      class="m-table-search-form"
      ref="paramsForm"
      :inline="true"
      label-position="right"
      label-width="110px"
      size="small"
    >
      <!-- <el-row>
                      <c-col :span="2" style="text-align:center;margin-bottom: 16px;">
                          <el-form-item label="" prop="chkinc">
                                  <c-checkbox v-model="chkinc">Incoming</c-checkbox>
                          </el-form-item>
                      </c-col>
                      <c-col :span="2" style="text-align:center;margin-bottom: 16px;">
                          <el-form-item label="" prop="chkdzt">
                              <c-checkbox v-model="chkdzt">E-Trade</c-checkbox>
                          </el-form-item>
                      </c-col>
                      <c-col :span="2" style="text-align:center;margin-bottom: 16px;">
                          <el-form-item label="" prop="chkpen">
                              <c-checkbox v-model="chkpen">Break</c-checkbox>
                          </el-form-item>
                      </c-col>
fukai committed
30

潘际乾 committed
31 32 33 34 35 36 37 38 39 40 41
                      <c-col :span="2" style="text-align:center;margin-bottom: 16px;">
                          <el-form-item label="" prop="chkcor">
                              <c-checkbox v-model="chkcor">Correction</c-checkbox>
                          </el-form-item>
                      </c-col>
                  
                      <c-col :span="2" style="text-align:center;margin-bottom: 16px;">
                          <el-form-item label="" prop="chkaut">
                              <c-checkbox v-model="chkaut">Automatic</c-checkbox>
                          </el-form-item>
                      </c-col>
fukai committed
42

潘际乾 committed
43 44 45 46 47 48 49 50 51 52 53
                      <c-col :span="2" style="text-align:center;margin-bottom: 16px;">
                          <el-form-item label="" prop="chkdel">
                              <c-checkbox v-model="chkdel">Reject</c-checkbox>
                          </el-form-item>
                      </c-col>
                      
                      <c-col :span="2" style="text-align:center;margin-bottom: 16px;">
                          <el-form-item label="" prop="chktco">
                              <c-checkbox v-model="chktco">网银</c-checkbox>
                          </el-form-item>
                      </c-col>
fukai committed
54

潘际乾 committed
55 56 57 58 59 60 61
                      <c-col :span="2" style="text-align:center;margin-bottom: 16px;">
                          <el-form-item label="" prop="chkcan">
                              <c-checkbox v-model="chkcan">归档</c-checkbox>
                          </el-form-item>
                      </c-col>
                  </el-row> -->
      <el-row>
潘际乾 committed
62
        <c-col :span="24" style="">
潘际乾 committed
63 64 65 66 67 68 69 70 71 72
          <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="请输入Reference"
              ></c-input>
            </el-form-item>
          </c-col>
liushikai committed
73

潘际乾 committed
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
          <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="请选择Date of entry of Transaction"
                ></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"
liushikai committed
91
                  style="width: 100%"
潘际乾 committed
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
                  placeholder="请选择Date of entry of Transaction until"
                ></c-date-picker>
              </c-col>
            </el-form-item>
          </c-col>

          <c-col :span="8">
            <el-form-item label="来源" style="width: 100%" prop="sourceModel">
              <el-select
                clearable
                v-model="sourceModel"
                style="width: 100%"
                placeholder="请选择来源"
                multiple
                collapse-tags
                @change="sourceChangeEvent"
              >
                <el-option
                  v-for="item in sourceData"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
liushikai committed
114
                >
潘际乾 committed
115 116 117
                </el-option>
              </el-select>
            </el-form-item>
118
          </c-col>
潘际乾 committed
119 120
        </c-col>
      </el-row>
fukai committed
121

潘际乾 committed
122
      <el-row>
潘际乾 committed
123
        <c-col :span="24" style="">
潘际乾 committed
124 125 126 127 128 129 130 131 132
          <c-col :span="8">
            <el-form-item
              label="选择用户"
              prop="usfmod.flt"
              style="width: 100%"
            >
              <!-- <c-col :span="20"> -->
              <c-select
                v-model="model.usfmod.flt"
133
                style="width: 100%"
潘际乾 committed
134
                placeholder="请选择User"
135
              >
潘际乾 committed
136 137 138 139 140
                <el-option
                  v-for="item in codes.flt"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
liushikai committed
141
                >
潘际乾 committed
142 143 144 145 146 147 148 149 150 151
                </el-option>
              </c-select>
              <!-- </c-col> -->
              <!-- <c-col :span="4" style="text-align: right">
                  <c-button
                    size="small"
                    type="primary"
                    style="margin: 0 0"
                    icon="el-icon-search"
                    @click="onUsfmodShwflt"
152
                  >
潘际乾 committed
153 154 155 156
                  </c-button>
                </c-col> -->
            </el-form-item>
          </c-col>
fukai committed
157

潘际乾 committed
158 159 160 161 162 163 164 165 166
          <c-col :span="8">
            <el-form-item label="业务描述" prop="seltxt" style="width: 100%">
              <c-input
                v-model="model.seltxt"
                maxlength="32"
                placeholder="请输入Selection Name"
              ></c-input>
            </el-form-item>
          </c-col>
fukai committed
167

潘际乾 committed
168 169 170 171 172 173 174 175 176 177 178 179
          <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="All" value="1"></el-option>
                <el-option label="国内业务" value="2"></el-option>
                <el-option label="国际业务" value="3"></el-option>
              </c-select>
            </el-form-item>
180
          </c-col>
潘际乾 committed
181
        </c-col>
182

潘际乾 committed
183
        <c-col :span="24" style="">
潘际乾 committed
184 185 186 187 188
          <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>
liushikai committed
189

潘际乾 committed
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
          <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 :span="12" style="text-align:center" >
                          <c-checkbox v-model="model.chkypt">云平台</c-checkbox>
                      </c-col> -->

          <!-- <c-col :span="8">
218
              <el-form-item
潘际乾 committed
219 220 221
                label="退回原因"
                prop="yptinf"
                style="width: 100%"
222
              >
潘际乾 committed
223 224 225 226 227 228
                <c-input
                  v-model="model.yptinf"
                  maxlength="60"
                  placeholder="请输入退回原因"
                  :readonly="true"
                ></c-input>
229
              </el-form-item>
潘际乾 committed
230 231 232 233
            </c-col> -->
        </c-col>
      </el-row>
    </el-form>
fukai committed
234

潘际乾 committed
235
    <c-col :span="24" style="">
wangren committed
236
      <div style="border-bottom: 10px solid rgb(232, 232, 232)"></div>
潘际乾 committed
237
    </c-col>
238
    <!-- </template> -->
liushikai committed
239
    <!-- </c-list-search> -->
fukai committed
240

liushikai committed
241
    <!-- <div style="margin-top:20px;">
fukai committed
242 243 244 245 246 247 248 249 250 251 252 253
            <c-button size="small" type="primary" disabled="disabled" @click="onButypt">
                退回云平台
            </c-button>
            <c-button size="small" type="primary" disabled="disabled" @click="onDlmft">
                MFT下载
            </c-button>
            <c-button size="small" type="primary" disabled="disabled" @click="onDlaxq">
                AXQ下载
            </c-button>
            <c-button size="small" type="primary" disabled="disabled" @click="onButimg">
                上传影像
            </c-button>
liushikai committed
254 255
        </div> -->
    <el-row>
liushikai committed
256 257 258 259 260 261 262
      <!-- <c-col :span="24" style="text-align: right; margin-top: 7px">
        <c-button
          style="margin-left: 0"
          size="small"
          type="primary"
          @click="onTake"
        >
liushikai committed
263 264
          处理
        </c-button>
liushikai committed
265 266 267 268 269 270
        <c-button
          style="margin-left: 0"
          size="small"
          type="primary"
          @click="onDelete"
        >
liushikai committed
271 272
          删除
        </c-button>
liushikai committed
273 274 275 276 277 278
        <c-button
          style="margin-left: 0"
          size="small"
          type="primary"
          @click="onRouting"
        >
liushikai committed
279 280
          分派
        </c-button>
liushikai committed
281 282 283 284 285 286
        <c-button
          style="margin-left: 0"
          size="small"
          type="primary"
          @click="onShowInc"
        >
liushikai committed
287 288
          显示报文
        </c-button>
liushikai committed
289 290 291 292 293 294
        <c-button
          style="margin-left: 0"
          size="small"
          type="primary"
          @click="onDetails"
        >
liushikai committed
295 296
          详情
        </c-button>
liushikai committed
297
      </c-col> -->
潘际乾 committed
298
      <c-col :span="24" style="">
299 300
        <c-istream-table
          :list="stmData.data"
liushikai committed
301 302
          :columns="stmData.columns"
          :showButtonFlg="true"
303
        >
304 305
          <c-table-column fixed="right" prop="op" label="操作" width="165px">
            <template slot-scope="{ scope }">
wangren committed
306 307 308 309
              <c-button
                style="margin-left: 0"
                size="small"
                @click="onDetails(scope.$index, scope.row)"
310
                >详情
liushikai committed
311 312
              </c-button>
              <c-button
liushikai committed
313
                style="margin-left: 0"
liushikai committed
314 315
                size="small"
                type="primary"
316
                @click="continueEdit(scope.row)"
liushikai committed
317
                >处理
liushikai committed
318
              </c-button>
吴佳 committed
319 320 321 322 323 324 325
              <!-- <c-button
                style="margin-left: 0"
                size="small"
                type="primary"
                @click="choose(scope.$index)"
                >选择
              </c-button> -->
liushikai committed
326 327 328 329 330
              <el-popover placement="top-start" width="50" trigger="click">
                <!-- <c-button type="primary" size="small">指派</c-button>
                <c-button type="primary" size="small">删除</c-button> -->

                <ul class="table-button-item-list">
wangren committed
331 332 333 334 335 336 337 338 339 340
                  <li>
                    <c-button size="small" style="margin-left: 0"
                      >指派</c-button
                    >
                  </li>
                  <li>
                    <c-button size="small" style="margin-left: 0"
                      >删除</c-button
                    >
                  </li>
liushikai committed
341
                </ul>
wangren committed
342 343 344 345
                <a
                  slot="reference"
                  href="javascript:void(0)"
                  style="margin-left: 5px"
liushikai committed
346 347
                  ><i class="el-icon-more"></i
                ></a>
liushikai committed
348
              </el-popover>
liushikai committed
349
            </template>
350
          </c-table-column>
liushikai committed
351 352 353
        </c-istream-table>
      </c-col>
    </el-row>
liushikai committed
354

liushikai committed
355
    <!-- <el-row style="margin-top: 2rem">
潘际乾 committed
356
       <c-col :span="24">
liushikai committed
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
      <el-card class="box-card">
        <div slot="header" class="clearfix">
          <span>交易状态信息 —— {{ transactionStatus.busiNo }}</span>
        </div>
        <div class="text item">
          <form class="el-form--label-left el-form--inline">
            <div class="el-form-item">
              <label class="el-form-item__label">修改次数:</label>
              <div class="el-form-item__content">
                <span>{{ transactionStatus.modTimes }}</span>
              </div>
            </div>
            <div class="el-form-item">
              <label class="el-form-item__label transstatus">交单次数:</label>
              <div class="el-form-item__content">
                <span>{{ transactionStatus.postCount }}</span>
              </div>
            </div>
            <div class="el-form-item">
              <label class="el-form-item__label transstatus">付款次数:</label>
              <div class="el-form-item__content">
                <span>{{ transactionStatus.earnCount }}</span>
              </div>
            </div>
            <div class="el-form-item">
              <label class="el-form-item__label transstatus">付款金额:</label>
              <div class="el-form-item__content">
                <span>{{ transactionStatus.earnAmt }} CNY</span>
              </div>
            </div>
          </form>
fukai committed
388
        </div>
liushikai committed
389
      </el-card>
wangguangchao committed
390
       </c-col>
liushikai committed
391
    </el-row> -->
liushikai committed
392 393 394
    <el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
      <div class="m-list-btns"></div>
    </el-dialog>
liushikai committed
395
    <!-- <el-dialog
liushikai committed
396 397 398 399 400 401 402 403
      class="detailDialogClass"
      :visible.sync="detailDialog"
      :title="'详情面板'"
      appenD-to-body
      show-close
    >
      <m-sptpopup :model="model" :codes="codes"></m-sptpopup>
      <span slot="footer">
潘际乾 committed
404
        <c-col :span="24" style="margin-top: 5px">
liushikai committed
405 406 407 408 409
          <el-button type="primary" @click="detailDialog = false"
            >关闭</el-button
          >
        </c-col>
      </span>
liushikai committed
410
    </el-dialog> -->
liushikai committed
411
  </div>
liuxin committed
412 413
</template>
<script>
liushikai committed
414
import Api from "~/service/Api";
wangren committed
415
import commonProcess from "~/mixin/commonProcess";
liushikai committed
416 417
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Sptsel/Event";
liuxin committed
418 419

export default {
liushikai committed
420
  inject: ["root"],
wangguangchao committed
421
  props: ["model", "codes"],
liushikai committed
422

wangren committed
423
  mixins: [commonProcess],
liushikai committed
424 425
  data() {
    return {
liushikai committed
426
      // saveColumns: [],
liushikai committed
427
      sourceModel: [],
428
      sourceData: [],
liushikai committed
429
      initdialog: false,
liushikai committed
430
      // detailDialog: false,
liushikai committed
431 432
      // setColumnFlg: false,
      // saveColumnFlg: true,
wangren committed
433

liushikai committed
434 435 436 437 438 439 440 441
      transactionStatus: {
        busiNo: "",
        modTimes: 0,
        postCount: 0,
        accCount: 0,
        earnCount: 0,
        earnAmt: 0,
      },
liushikai committed
442
      // setColumn: [],
liushikai committed
443 444
      stmData: {
        columns: [
liushikai committed
445
          '4 1 "交易代码" 80 ',
446
          '5 2 "业务编号" 300',
liushikai committed
447
          '6 3 "交易名称" 150',
liushikai committed
448
          //'1 4 "状态" 60 1 tdViewTypeEdit:0 1 SPT:STA',
wangren committed
449 450 451 452 453 454 455 456
          {
            index: 1,
            position: 4,
            width: 110,
            pattern: "code",
            label: "状态",
            code: this.codes.sptrelstatus,
          },
liushikai committed
457 458
          '17 5 "报文类型" 100',
          '18 6 "对方银行BIC" 110',
459
          // '7 7 "创建时间" 160 20 DateTime 1',
wangren committed
460 461 462 463 464 465 466
          {
            index: 7,
            position: 7,
            width: 140,
            pattern: "time",
            label: "创建时间",
          },
liushikai committed
467 468
          '19 8 "币种" 50',
          '20 9 "金额" 69 2 8 1 16',
liushikai committed
469 470 471 472 473

          // "20 7 \"Cur\" 30",
          // "21 8 \"Amt\" 69 2 8 1 16",
          // "1 9 \"Status\" 60 1 tdViewTypeEdit:0 1 SPT:STA",
          '8 10 "创建人" 80',
liushikai committed
474 475 476 477
          '3 11 "当前操作柜员" 100',
          '3 12 "当前组别" 100',
          '3 13 "上次操作柜员" 100',
          '3 14 "来源" 50',
liushikai committed
478 479
          '3 15 "提示" 50 1 20:0 1 FormatINFDSP',
          // "19 15 \"Key\" 90",
liushikai committed
480
          '3 16 "提示信息" 300',
liushikai committed
481 482 483 484
        ],
        data: [],
      },
    };
485
  },
liushikai committed
486
  async mounted() {
487 488 489 490 491 492 493 494 495 496 497 498 499
    this.sourceData = [
      { label: "Incoming", value: "chkinc" },
      { label: "E-Trade", value: "chkdzt" },
      // { label: "Break", value: "chkpen" },
      { label: "Correction", value: "chkcor" },
      { label: "Automatic", value: "chkaut" },
      { label: "Reject", value: "chkdel" },
      { label: "网银", value: "chktco" },
      { label: "归档", value: "chkcan" },
      { label: "云平台", value: "chkypt" },
    ];
    // await this.handleSearch()
    // this.$store.commit("setTaskList", {key: "sptsel", val: this.stmData.data.length})
liushikai committed
500
  },
501

liushikai committed
502 503
  methods: {
    sourceChangeEvent(val) {
504 505 506
      this.sourceData.forEach((s) => {
        this.model[s.value] = "";
      });
liushikai committed
507
      val.forEach((element) => {
508
        this.model[element] = "t";
liushikai committed
509
      });
wangguangchao committed
510
    },
wangren committed
511

吴佳 committed
512 513 514 515 516 517 518 519 520 521 522 523 524 525 526
    // async choose(idx,row){
    //     var params = {selDst:"sptstm",selrow:[idx+1]}
      
    //    let rtnmsg = await this.executeRule("sptstm" , params) //SPTSTM
    //     if(rtnmsg.respCode == SUCCESS)
    //     {
    //       this.stmData.data = rtnmsg.data.sptstm.rows;
    //     }
    //     else
    //     {
    //       this.$notify.error({title: '错误',message: '服务请求失败!'});
    //     }
      
    // },

527
    ...Event,
liushikai committed
528
  },
529
  created: function () {
liushikai committed
530 531 532 533 534 535 536
    // this.setColumn = this.stmData.columns.map((item, index) => {
    //   let begIdx = item.indexOf('"');
    //   let endIdx = item.indexOf('"', begIdx + 1);
    //   let label = item.substring(begIdx + 1, endIdx);
    //   return { label, value: true, index };
    // });
    // this.columnGroup = this.setColumn.map((item) => item.index);
537
  },
liushikai committed
538
};
liuxin committed
539
</script>
liushikai committed
540
<style scoped>
liushikai committed
541
/* .showColumnDialog >>> .el-dialog__body {
542 543
  padding-bottom: 10px;
}
liushikai committed
544
.showColumnDialog >>> .el-dialog__footer {
545 546
  padding: 0 20px 10px 20px;
}
liushikai committed
547
.detailDialogClass >>> .el-dialog {
liushikai committed
548
  height: 650px;
liushikai committed
549
} */
wangren committed
550
.table-button-item-list {
liushikai committed
551 552 553 554 555 556 557 558 559 560
  padding: 0;
  margin: 0;
}
.table-button-item-list li {
  list-style: none;
  padding: 5px 0;
  text-align: center;
  color: #606266;
  cursor: pointer;
}
liuxin committed
561
</style>