Menu.vue 16.7 KB
Newer Older
wangguangchao committed
1 2
<template>
  <div class="eibs-tab">
liushikai committed
3 4
    <!-- <c-list-search @form-reset="sptfndHandleReset" @form-search="sptfndHandleSearch"> -->
    <!-- <template v-slot="searchSlot"> -->
潘际乾 committed
5
      
liushikai committed
6 7 8 9 10 11 12 13 14
    <el-form
      class="m-table-search-form"
      ref="paramsForm"
      :inline="true"
      label-position="right"
      label-width="110px"
      size="small"
    >
      <!-- <el-row>
wangguangchao committed
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
                        <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>
                    </el-row> -->
liushikai committed
61
      <el-row>
潘际乾 committed
62
        <c-col :span="24" style="">
liushikai 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>
wangguangchao committed
73

liushikai committed
74 75 76
          <c-col :span="8">
            <el-form-item label="创建时间" style="width: 100%">
              <c-col :span="11">
77
                <c-date-picker
liushikai committed
78 79
                  type="date"
                  v-model="model.inidatfro"
wangguangchao committed
80
                  style="width: 100%"
liushikai committed
81
                  placeholder="请选择Date of entry of Transaction"
82
                ></c-date-picker>
liushikai committed
83 84 85 86 87
              </c-col>
              <c-col :span="2" style="text-align: center">
                <label style="display: inline-block; width: 100%">-</label>
              </c-col>
              <c-col :span="11">
88
                <c-date-picker
liushikai committed
89 90 91 92
                  type="date"
                  v-model="model.inidattil"
                  style="width: 100%"
                  placeholder="请选择Date of entry of Transaction until"
93
                ></c-date-picker>
liushikai committed
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
              </c-col>
            </el-form-item>
          </c-col>

          <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"
                style="width: 100%"
                placeholder="请选择User"
              >
                <el-option
                  v-for="item in codes.flt"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
wangguangchao committed
115
                >
liushikai committed
116 117 118 119
                </el-option>
              </c-select>
              <!-- </c-col> -->
              <!-- <c-col :span="4" style="text-align: right">
wangguangchao committed
120 121 122 123 124 125 126 127 128
                    <c-button
                      size="small"
                      type="primary"
                      style="margin: 0 0"
                      icon="el-icon-search"
                      @click="onUsfmodShwflt"
                    >
                    </c-button>
                  </c-col> -->
liushikai committed
129 130 131 132
            </el-form-item>
          </c-col>
        </c-col>
      </el-row>
wangguangchao committed
133

liushikai committed
134
      <el-row>
潘际乾 committed
135
        <c-col :span="24" style="">
liushikai committed
136 137 138 139 140 141 142 143 144
          <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>
wangguangchao committed
145

liushikai committed
146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
          <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>
          </c-col>
          <c-col :span="8" v-if="model.usfmod.flt === '<SELU>'">
            <el-form-item label="经办柜员" style="width: 100%">
liuxin committed
161 162 163 164 165 166 167 168 169
              <c-input
                style="width: 100%"
                v-model="model.usfmod.usr.extkey"
                maxlength="120"
                placeholder="请输入经办柜员"
                @keyup.enter.native="
                    showGridPromptDialog('usfmod.usr.extkey')
                "
              ></c-input>
liushikai committed
170 171 172 173 174 175 176 177 178 179 180 181 182 183
            </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> -->
wangguangchao committed
184

liushikai committed
185
          <c-col :span="8" style="text-align: right" v-else>
liushikai committed
186
            <el-button size="small" @click="sptfndHandleReset">重置</el-button>
liushikai committed
187 188 189 190
            <el-button
              type="primary"
              icon="el-icon-search"
              size="small"
liushikai committed
191
              @click="sptfndHandleSearch"
liushikai committed
192 193 194 195
              >查询</el-button
            >
          </c-col>
        </c-col>
潘际乾 committed
196
        <c-col :span="24" style="text-align: right;height:36.8px" v-if="model.usfmod.flt === '<SELU>'||model.usfmod.flt === '<SELB>'">
liushikai committed
197
            <el-button size="small" @click="sptfndHandleReset">重置</el-button>
liushikai committed
198 199 200 201
            <el-button
              type="primary"
              icon="el-icon-search"
              size="small"
liushikai committed
202
              @click="sptfndHandleSearch"
liushikai committed
203 204 205
              >查询</el-button
            >
          </c-col>
wangguangchao committed
206

潘际乾 committed
207
        <c-col :span="24" style="">
liushikai committed
208
          <!-- <c-col :span="12" style="text-align:center" >
wangguangchao committed
209 210 211
                            <c-checkbox v-model="model.chkypt">云平台</c-checkbox>
                        </c-col> -->

liushikai committed
212
          <!-- <c-col :span="8">
wangguangchao committed
213 214 215 216 217 218 219 220 221 222 223 224 225
                <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>
              </c-col> -->
liushikai committed
226 227 228
        </c-col>
      </el-row>
    </el-form>
潘际乾 committed
229

潘际乾 committed
230
    <c-col :span="24" style="">
潘际乾 committed
231
      <div style="border-bottom: 10px solid rgb(232, 232, 232)">
liushikai committed
232
      </div>
潘际乾 committed
233
    </c-col>
liushikai committed
234 235
    <!-- </template> -->
    <!-- </c-list-search> -->
wangguangchao committed
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 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293

    <!-- <div style="margin-top:20px;">
            <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>
        </div> -->
    <el-row>
      <!-- <c-col :span="24" style="text-align: right; margin-top: 7px">
        <c-button
          style="margin-left: 0"
          size="small"
          type="primary"
          @click="onTake"
        >
          处理
        </c-button>
        <c-button
          style="margin-left: 0"
          size="small"
          type="primary"
          @click="onDelete"
        >
          删除
        </c-button>
        <c-button
          style="margin-left: 0"
          size="small"
          type="primary"
          @click="onRouting"
        >
          分派
        </c-button>
        <c-button
          style="margin-left: 0"
          size="small"
          type="primary"
          @click="onShowInc"
        >
          显示报文
        </c-button>
        <c-button
          style="margin-left: 0"
          size="small"
          type="primary"
          @click="onDetails"
        >
          详情
        </c-button>
      </c-col> -->
潘际乾 committed
294
      <c-col :span="24" style="">
295
        <c-istream-table :list="stmData.data" :columns="stmData.columns" :showButtonFlg="true">
wangguangchao committed
296
          <el-table-column fixed="right" prop="op" label="操作" width="140px">
liushikai committed
297 298
            <template slot="header">
              <c-col :span="11" style="text-align:left"><span>操作</span></c-col>
299
              <!-- <c-col :span="12" style="text-align:right"><c-button icon="el-icon-s-tools"></c-button></c-col> -->
liushikai committed
300
            </template>
wangguangchao committed
301 302 303 304 305 306 307 308 309 310 311 312 313
            <template slot-scope="scope">
              <c-button
                style="margin-left: 0"
                size="small"
                type="primary"
                @click="continueEdit(scope.row)"
              >
                处理
              </c-button>
              <c-button
                style="margin-left: 0"
                size="small"
                type="primary"
hulei committed
314
                @click="onDelete(scope.$index,scope.row)"
wangguangchao committed
315
              >
liushikai committed
316
                删除
wangguangchao committed
317 318 319 320 321 322
              </c-button>
            </template>
          </el-table-column>
        </c-istream-table>
      </c-col>
    </el-row>
liushikai committed
323
    <!-- <el-row style="margin-top: 2rem">
潘际乾 committed
324
       <c-col :span="24">
wangguangchao committed
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 354 355 356 357 358
      <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>
        </div>
      </el-card>
       </c-col>
liushikai committed
359
    </el-row> -->
wangguangchao committed
360 361 362 363 364 365 366
    <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";
wangren committed
367
import commonProcess from "~/mixin/commonProcess";
wangguangchao committed
368 369 370 371 372 373 374
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Sptsel/Event";

export default {
  inject: ["root"],
  props: ["model", "codes"],

wangren committed
375
  mixins: [commonProcess],
wangguangchao committed
376 377 378 379 380 381 382 383 384 385 386 387 388 389 390
  data() {
    return {
      //sourceModel: [],
      sourceData: [],
      initdialog: false,
      transactionStatus: {
        busiNo: "",
        modTimes: 0,
        postCount: 0,
        accCount: 0,
        earnCount: 0,
        earnAmt: 0,
      },
      stmData: {
        columns: [
liushikai committed
391
          '4 1 "交易代码" 80 ',
392 393
          '5 2 "业务编号" 300',
          '6 3 "交易名称" 180',
394 395
          // '1 4 "状态" 60 1 tdViewTypeEdit:0 1 SPT:STA',
          {index:1,position:4,width:100,pattern:'code',label:'状态',code:[{label:"Pending",value:"PEN"}]},
wangguangchao committed
396 397
          '17 5 "报文类型" 100',
          '18 6 "对方银行BIC" 110',
398
          // '7 7 "创建时间" 160 20 DateTime 1',
liushikai committed
399
          {index:7,position:7,width:140,pattern:'time',label:'创建时间'},
wangguangchao committed
400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418
          '19 8 "币种" 50',
          '20 9 "金额" 69 2 8 1 16',

          // "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',
          '3 11 "当前操作柜员" 100',
          '3 12 "当前组别" 100',
          '3 13 "上次操作柜员" 100',
          '3 14 "来源" 50',
          '3 15 "提示" 50 1 20:0 1 FormatINFDSP',
          // "19 15 \"Key\" 90",
          '3 16 "提示信息" 300',
        ],
        data: [],
      },
    };
  },
liushikai committed
419
  async mounted() {
420 421
    // await this.sptfndHandleSearch()
    // this.$store.commit("setTaskList", {key: "sptbrk", val: this.stmData.data.length})
liushikai committed
422
  },
wangguangchao committed
423 424 425 426 427 428 429 430 431 432 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 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511
  computed: {
    chkinc: {
      get() {
        return this.model.chkinc === "t";
      },
      set(val) {
        this.model.chkinc = val ? "t" : "";
      },
    },
    chkdzt: {
      get() {
        return this.model.chkdzt === "t";
      },
      set(val) {
        this.model.chkdzt = val ? "t" : "";
      },
    },
    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" : "";
      },
    },
    sourceModel: {
      get() {
        let arr = [];
        this.sourceData.forEach((element) => {
          if (this.model[element.value]) {
            arr.push(element.value);
          }
        });
        return arr;
      },
      set(val) {
        let set = new Set(val);
        this.sourceData.forEach((element) => {
          if (set.has(element.value)) {
            this.model[element.value] = true;
          } else {
            this.model[element.value] = false;
          }
        });
      },
    },
  },

  methods: { ...Event },
liushikai committed
512
  created: function () {},
wangguangchao committed
513 514 515 516
};
</script>
<style>
</style>