Menu.vue 16.4 KB
Newer Older
liuxin committed
1
<template>
liushikai committed
2 3 4 5 6 7 8 9 10 11 12 13
  <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"
          :inline="true"
          label-position="right"
          label-width="110px"
          size="small"
        >
          <!-- <el-row>
fukai committed
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
                        <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>

                        <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>

                        <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>

                        <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>
liushikai committed
59 60
                    </el-row> -->
          <el-row>
wangguangchao committed
61
            <c-col :span="23">
liushikai committed
62
            <c-col :span="8">
liushikai committed
63
              <el-form-item label="业务编号" prop="selobj" style="width: 100%">
liushikai committed
64 65 66 67 68 69 70 71
                <c-input
                  style="width: 100%"
                  v-model="model.selobj"
                  maxlength="32"
                  placeholder="请输入Reference"
                ></c-input>
              </el-form-item>
            </c-col>
fukai committed
72

liushikai committed
73
            <c-col :span="8">
liushikai committed
74
              <el-form-item label="业务描述" prop="seltxt" style="width: 100%">
liushikai committed
75 76 77 78 79 80 81
                <c-input
                  v-model="model.seltxt"
                  maxlength="32"
                  placeholder="请输入Selection Name"
                ></c-input>
              </el-form-item>
            </c-col>
wangguangchao committed
82
            <c-col :span="8" v-if="searchSlot.searchToggle">
83
              <el-form-item label="来源" style="width: 100%" prop="sourceModel">
liushikai committed
84
                <el-select
liushikai committed
85
                  clearable
liushikai committed
86
                  v-model="sourceModel"
liushikai committed
87
                  style="width: 100%"
liushikai committed
88 89
                  placeholder="请选择来源"
                  multiple
liushikai committed
90
                  collapse-tags
liushikai committed
91
                >
liushikai committed
92 93 94 95 96 97 98
                  <el-option
                    v-for="item in sourceData"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  >
                  </el-option>
liushikai committed
99
                </el-select>
liushikai committed
100 101
              </el-form-item>
            </c-col>
wangguangchao committed
102
            </c-col>
liushikai committed
103
          </el-row>
fukai committed
104

liushikai committed
105
          <el-row v-show="searchSlot.searchToggle">
wangguangchao committed
106
            <c-col :span="23">
liushikai committed
107 108
              <c-col :span="8">
                <el-form-item
109
                  label="选择用户"
liushikai committed
110 111 112
                  prop="usfmod.flt"
                  style="width: 100%"
                >
liushikai committed
113
                  <!-- <c-col :span="20"> -->
liushikai committed
114 115 116 117 118 119 120 121 122 123 124 125 126
                    <c-select
                      v-model="model.usfmod.flt"
                      style="width: 100%"
                      placeholder="请选择User"
                    >
                      <el-option
                        v-for="item in codes.flt"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </c-select>
liushikai committed
127 128
                  <!-- </c-col> -->
                  <!-- <c-col :span="4" style="text-align: right">
liushikai committed
129 130 131 132 133 134 135 136
                    <c-button
                      size="small"
                      type="primary"
                      style="margin: 0 0"
                      icon="el-icon-search"
                      @click="onUsfmodShwflt"
                    >
                    </c-button>
liushikai committed
137
                  </c-col> -->
liushikai committed
138 139
                </el-form-item>
              </c-col>
fukai committed
140

liushikai committed
141
              <c-col :span="8">
liushikai committed
142
                <el-form-item label="创建时间" style="width: 100%">
liushikai committed
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163
                  <c-col :span="11">
                    <el-date-picker
                      type="date"
                      v-model="model.inidatfro"
                      style="width: 100%"
                      placeholder="请选择Date of entry of Transaction"
                    ></el-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">
                    <el-date-picker
                      type="date"
                      v-model="model.inidattil"
                      style="width: 100%"
                      placeholder="请选择Date of entry of Transaction until"
                    ></el-date-picker>
                  </c-col>
                </el-form-item>
              </c-col>
fukai committed
164

liushikai committed
165 166
              <c-col :span="8">
                <el-form-item
liushikai committed
167
                  label="业务标志"
liushikai committed
168 169 170 171 172
                  prop="dflg"
                  style="width: 100%"
                >
                  <c-select
                    v-model="model.dflg"
liushikai committed
173
                    style="width: 100%"
liushikai committed
174 175 176 177 178 179 180 181
                    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>
              </c-col>
fukai committed
182

liushikai committed
183
            </c-col>
wangguangchao committed
184 185
           
          <c-col :span="23">
liushikai committed
186
            <c-col :span="8" v-if="model.usfmod.flt==='<SELU>'">
187
                <el-form-item label="经办柜员" style="width:100%">
liushikai committed
188 189 190 191
                    <c-input></c-input>
                </el-form-item>
            </c-col>

192
            <c-col :span="8" v-else-if="model.usfmod.flt==='<SELB>'">
liushikai committed
193 194 195 196
                <el-form-item label="归属机构" style="width:100%">
                    <c-input></c-input>
                </el-form-item>
            </c-col>
197 198 199 200
            <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>
liushikai committed
201
              
liushikai committed
202
              <!-- <c-col :span="12" style="text-align:center" >
fukai committed
203
                            <c-checkbox v-model="model.chkypt">云平台</c-checkbox>
liushikai committed
204
                        </c-col> -->
fukai committed
205

liushikai committed
206
              <!-- <c-col :span="8">
liushikai committed
207 208 209 210 211 212 213 214 215 216 217 218
                <el-form-item
                  label="退回原因"
                  prop="yptinf"
                  style="width: 100%"
                >
                  <c-input
                    v-model="model.yptinf"
                    maxlength="60"
                    placeholder="请输入退回原因"
                    :readonly="true"
                  ></c-input>
                </el-form-item>
liushikai committed
219
              </c-col> -->
wangguangchao committed
220
          </c-col>
liushikai committed
221 222 223 224
          </el-row>
        </el-form>
      </template>
    </c-list-search>
fukai committed
225

liushikai committed
226
    <!-- <div style="margin-top:20px;">
fukai committed
227 228 229 230 231 232 233 234 235 236 237 238
            <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
239 240
        </div> -->
    <el-row>
liushikai committed
241 242 243 244 245 246 247
      <!-- <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
248 249
          处理
        </c-button>
liushikai committed
250 251 252 253 254 255
        <c-button
          style="margin-left: 0"
          size="small"
          type="primary"
          @click="onDelete"
        >
liushikai committed
256 257
          删除
        </c-button>
liushikai committed
258 259 260 261 262 263
        <c-button
          style="margin-left: 0"
          size="small"
          type="primary"
          @click="onRouting"
        >
liushikai committed
264 265
          分派
        </c-button>
liushikai committed
266 267 268 269 270 271
        <c-button
          style="margin-left: 0"
          size="small"
          type="primary"
          @click="onShowInc"
        >
liushikai committed
272 273
          显示报文
        </c-button>
liushikai committed
274 275 276 277 278 279
        <c-button
          style="margin-left: 0"
          size="small"
          type="primary"
          @click="onDetails"
        >
liushikai committed
280 281
          详情
        </c-button>
liushikai committed
282
      </c-col> -->
liushikai committed
283
      <c-col :span="24">
liushikai committed
284
        <c-istream-table :list="stmData.data" :columns="stmData.columns">
liushikai committed
285
          <el-table-column fixed="right" prop="op" label="操作" width="140px">
286
            <template slot-scope="scope">
liushikai committed
287 288 289 290
              <c-button
                style="margin-left: 0"
                size="small"
                type="primary"
291
                @click="continueEdit(scope.row)"
liushikai committed
292 293 294 295 296 297 298 299
              >
                处理
              </c-button>
              <c-button
                style="margin-left: 0"
                size="small"
                type="primary"
                @click="onDetails"
liushikai committed
300
              >
liushikai committed
301 302
                详情
              </c-button>
liushikai committed
303 304 305 306 307
            </template>
          </el-table-column>
        </c-istream-table>
      </c-col>
    </el-row>
liushikai committed
308
    <!-- <el-row style="margin-top: 2rem">
wangguangchao committed
309
       <c-col :span="23">
liushikai committed
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 338 339 340
      <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
341
        </div>
liushikai committed
342
      </el-card>
wangguangchao committed
343
       </c-col>
liushikai committed
344
    </el-row> -->
liushikai committed
345 346 347 348
    <el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
      <div class="m-list-btns"></div>
    </el-dialog>
  </div>
liuxin committed
349 350
</template>
<script>
liushikai committed
351
import Api from "~/service/Api";
352
import CommonProcess from "~/mixin/CommonProcess";
liushikai committed
353 354
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Sptsel/Event";
liuxin committed
355 356

export default {
liushikai committed
357
  inject: ["root"],
wangguangchao committed
358
  props: ["model", "codes"],
liushikai committed
359

liushikai committed
360 361 362
  mixins: [CommonProcess],
  data() {
    return {
363
      //sourceModel: [],
364
      sourceData: [],
liushikai committed
365 366 367 368 369 370 371 372 373 374 375 376
      initdialog: false,
      transactionStatus: {
        busiNo: "",
        modTimes: 0,
        postCount: 0,
        accCount: 0,
        earnCount: 0,
        earnAmt: 0,
      },
      stmData: {
        columns: [
          '4 1 "交易代码" 70 ',
liushikai committed
377 378
          '5 2 "业务编号" 230',
          '6 3 "交易名称" 140',
liushikai committed
379
          '1 4 "状态" 60 1 tdViewTypeEdit:0 1 SPT:STA',
liushikai committed
380 381 382 383 384
          '17 5 "报文类型" 100',
          '18 6 "对方银行BIC" 110',
          '7 7 "创建时间" 160 20 DateTime 1',
          '19 8 "币种" 50',
          '20 9 "金额" 69 2 8 1 16',
liushikai committed
385 386 387 388 389

          // "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
390 391 392 393
          '3 11 "当前操作柜员" 100',
          '3 12 "当前组别" 100',
          '3 13 "上次操作柜员" 100',
          '3 14 "来源" 50',
liushikai committed
394 395
          '3 15 "提示" 50 1 20:0 1 FormatINFDSP',
          // "19 15 \"Key\" 90",
liushikai committed
396
          '3 16 "提示信息" 300',
liushikai committed
397 398 399 400
        ],
        data: [],
      },
    };
401
  },
wangguangchao committed
402
  mounted() {
403

wangguangchao committed
404
      this.sourceData = [
405 406 407 408 409 410 411 412 413
        { 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" },
wangguangchao committed
414
      ];
liushikai committed
415 416 417 418 419 420 421 422 423
  },
  computed: {
    chkinc: {
      get() {
        return this.model.chkinc === "t";
      },
      set(val) {
        this.model.chkinc = val ? "t" : "";
      },
liuxin committed
424
    },
liushikai committed
425 426 427 428 429 430 431
    chkdzt: {
      get() {
        return this.model.chkdzt === "t";
      },
      set(val) {
        this.model.chkdzt = val ? "t" : "";
      },
432
    },
liushikai committed
433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480
    chkpen: {
      get() {
        return this.model.chkpen === "t";
      },
      set(val) {
        this.model.chkpen = val ? "t" : "";
      },
    },
    chkcor: {
      get() {
        return this.model.chkcor === "t";
      },
      set(val) {
        this.model.chkcor = val ? "t" : "";
      },
    },
    chkaut: {
      get() {
        return this.model.chkaut === "t";
      },
      set(val) {
        this.model.chkaut = val ? "t" : "";
      },
    },
    chkdel: {
      get() {
        return this.model.chkdel === "t";
      },
      set(val) {
        this.model.chkdel = val ? "t" : "";
      },
    },
    chktco: {
      get() {
        return this.model.chktco === "t";
      },
      set(val) {
        this.model.chktco = val ? "t" : "";
      },
    },
    chkcan: {
      get() {
        return this.model.chkcan === "t";
      },
      set(val) {
        this.model.chkcan = val ? "t" : "";
      },
    },
wangguangchao committed
481 482
    sourceModel: {
      get() {
483
        let arr = [];
wangguangchao committed
484 485
        this.sourceData.forEach((element) => {
          if (this.model[element.value]) {
486 487 488 489 490
            arr.push(element.value);
          }
        });
        return arr;
      },
wangguangchao committed
491
      set(val) {
492
        let set = new Set(val);
wangguangchao committed
493 494 495 496 497
        this.sourceData.forEach((element) => {
          if (set.has(element.value)) {
            this.model[element.value] = true;
          } else {
            this.model[element.value] = false;
498 499
          }
        });
wangguangchao committed
500 501
      },
    },
liushikai committed
502
  },
503

liushikai committed
504 505 506
  methods: { ...Event },
  created: function () {},
};
liuxin committed
507 508 509
</script>
<style>
</style>