Inftrnps.vue 18.3 KB
Newer Older
liuxin committed
1
<template>
zhengxiaokui committed
2
  <div class="eibs-tab">
liushikai committed
3 4
    <!-- <c-list-search @form-reset="handleReset" @form-search="handleSearch"> -->
      <!-- <template v-slot="searchSlot"> -->
潘际乾 committed
5 6 7 8 9 10 11 12 13
    <el-form
      class="m-table-search-form"
      ref="paramsForm"
      :inline="true"
      label-position="right"
      label-width="110px"
      size="small"
    >
      <el-row>
潘际乾 committed
14
        <c-col :span="24" style="">
潘际乾 committed
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
          <c-col :span="8">
            <el-form-item
              label="业务编号"
              prop="trncorco.ownref"
              style="width: 100%"
            >
              <c-input
                v-model="model.trncorco.ownref"
                maxlength="16"
                placeholder="请输入Reference"
              ></c-input>
            </el-form-item>
          </c-col>

          <c-col :span="8">
            <el-form-item label="创建时间" style="width: 100%" prop="trncorco.inidatfro">
              <c-col :span="11">
                <c-date-picker
                  type="date"
                  v-model="model.trncorco.inidatfro"
wangguangchao committed
35
                  style="width: 100%"
潘际乾 committed
36 37
                  placeholder="请选择Date of entry of Transaction"
                ></c-date-picker>
wangguangchao committed
38
              </c-col>
潘际乾 committed
39 40
              <c-col :span="2" style="text-align: center">
                <label style="display: inline-block; width: 100%">-</label>
liushikai committed
41
              </c-col>
潘际乾 committed
42 43 44 45
              <c-col :span="11">
                <c-date-picker
                  type="date"
                  v-model="model.trncorco.inidattil"
wangguangchao committed
46
                  style="width: 100%"
潘际乾 committed
47 48
                  placeholder="请选择Date of entry of Transaction until"
                ></c-date-picker>
wangguangchao committed
49
              </c-col>
潘际乾 committed
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
            </el-form-item>
          </c-col>

          <c-col :span="8">
            <el-form-item
              label="经办柜员"
              prop="usrcon"
              style="width: 100%"
            >
              <c-select
                v-model="model.usrcon"
                style="width: 100%"
                placeholder="请选择User"
              >
                <el-option
                  v-for="item in codes.usrsort"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
wangguangchao committed
69
                >
潘际乾 committed
70 71 72 73 74 75 76 77 78 79 80 81 82 83
                </el-option>
              </c-select>
            </el-form-item>
          </c-col>
        </c-col>
      </el-row>
      <!--            
                <c-col :span="12">
                  <el-form-item label="Drag  Drop Sender">
                      <c-input  v-model="model.atpget.sdamod.dadsnd"  placeholder="请输入Drag  Drop Sender"></c-input>
                  </el-form-item>
                </c-col>
                -->
      <el-row>
潘际乾 committed
84
        <c-col :span="24" style="">
潘际乾 committed
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
          <c-col :span="8">
            <el-form-item
              label="业务状态"
              prop="trncorco.relflg"
              style="width: 100%"
            >
              <c-select
                v-model="model.trncorco.relflg"
                style="width: 100%"
                placeholder="请选择Status"
              >
                <el-option
                  v-for="item in relflgCodes"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
liushikai committed
101
                >
潘际乾 committed
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
                </el-option>
              </c-select>
            </el-form-item>
          </c-col>
          <c-col :span="8">
            <el-form-item
              label="业务机构"
              prop="bchcon"
              style="width: 100%"
            >
              <c-select
                v-model="model.bchcon"
                style="width: 100%"
                placeholder="请选择Branch"
              >
                <el-option
                  v-for="item in codes.bchtyp"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                >
                </el-option>
              </c-select>
            </el-form-item>
          </c-col>
127

liushikai committed
128

潘际乾 committed
129 130 131 132 133 134
          <!--                           
                <c-col :span="12">
                  <el-form-item label="and">
                      
                  </el-form-item>
                </c-col> -->
wangguangchao committed
135

潘际乾 committed
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
          <c-col :span="8">
            <el-form-item
              label="交易代码"
              prop="atp.cod"
              style="width: 100%"
            >
              <c-col :span="24">
                <c-col :span="20">
                  <c-input
                    v-model="model.atp.cod"
                    maxlength="6"
                    style="width: 95%"
                    placeholder="请输入Transaction Type "
                  ></c-input>
                </c-col>
                <!-- <c-input  v-model="model.atpget.sdamod.seainf"  style="width:10%" placeholder="i"></c-input> -->
wangguangchao committed
152

潘际乾 committed
153 154 155 156 157 158 159 160 161
                <c-col :span="4">
                  <c-button
                    size="small"
                    style="width:100%;margin-left:0"
                    type="primary"
                    @click="onSeainf"
                    icon="el-icon-search"
                  ></c-button>
                </c-col>
wangguangchao committed
162
              </c-col>
潘际乾 committed
163 164 165
            </el-form-item>
          </c-col>
        </c-col>
潘际乾 committed
166
        <c-col :span="24" style="">
潘际乾 committed
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182
          <c-col :span="8">
            <el-form-item
              label="业务标志"
              prop="trncorco.dflg"
              style="width: 100%"
            >
              <c-select
                v-model="model.trncorco.dflg"
                style="width: 100%"
                placeholder="请选择业务标志"
              >
                <el-option
                  v-for="item in codes.dflg"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
wangguangchao committed
183
                >
潘际乾 committed
184 185 186 187
                </el-option>
              </c-select>
            </el-form-item>
          </c-col>
188

潘际乾 committed
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209
          <c-col :span="8">
            <el-form-item
              label="交易名称"
              prop="atptxt"
              style="width: 100%"
            >
              <c-input
                v-model="model.atptxt"
                maxlength="37"
                placeholder="请输入Transaction Text"
              ></c-input>
            </el-form-item>
          </c-col>
          <c-col :span="8" 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>

潘际乾 committed
210
    <c-col :span="24" style="">
潘际乾 committed
211 212 213
      <div style="border-bottom: 10px solid rgb(232, 232, 232)">
      </div>
    </c-col>
liushikai committed
214 215
      <!-- </template> -->
    <!-- </c-list-search> -->
liuxin committed
216

zhengxiaokui committed
217
    <!--                            
潘际乾 committed
218
       <c-col :span="12">
liuxin committed
219 220 221
        <el-form-item label="List of transaction sfor display">
            <c-input  v-model="model.trncorco.trnstm"  placeholder="请输入List of transaction sfor display"></c-input>
        </el-form-item>
潘际乾 committed
222
       </c-col>             
liuxin committed
223
                  
潘际乾 committed
224
       <c-col :span="12">
liuxin committed
225 226 227
        <el-form-item label="# of transactions">
            <c-input  v-model="model.numtrn"  placeholder="请输入# of transactions"></c-input>
        </el-form-item>
潘际乾 committed
228
       </c-col>
liuxin committed
229
       -->
liuxin committed
230

231
    <!-- <div style="margin-top:20px;"> -->
wangguangchao committed
232 233

    <!-- <c-button size="small" type="primary" @click="onSeaown">
zhengxiaokui committed
234 235
        Search Own
      </c-button>
liuxin committed
236

zhengxiaokui committed
237 238
      <c-button size="small" type="primary" @click="onSeajbh">
        Search All
239
      </c-button>  -->
liuxin committed
240

wangguangchao committed
241
    <!-- <c-button
zhengxiaokui committed
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 294 295 296
        size="small"
        type="primary"
        disabled="disabled"
        @click="onImgmodNewimg"
      >
        Img
      </c-button>
      <c-button
        size="small"
        type="primary"
        disabled="disabled"
        @click="onImgmodNewhisimg"
      >
        His.img
      </c-button>
      <c-button
        size="small"
        type="primary"
        disabled="disabled"
        @click="onDiaconButdia"
      >
        Diaries
      </c-button>
      <c-button
        size="small"
        type="primary"
        disabled="disabled"
        @click="onImgmodHisimg"
      >
        Old.img
      </c-button>
      <c-button
        size="small"
        type="primary"
        :disabled="relrowDisabled"
        @click="onRelrow"
      >
        Release
      </c-button>
      <c-button
        size="small"
        type="primary"
        disabled="disabled"
        @click="onReprow"
      >
        Repair
      </c-button>
      <c-button
        size="small"
        type="primary"
        :disabled="relrowDisabled"
        @click="onRejrow"
      >
        Reject
      </c-button>
297 298
      <c-button size="small" type="primary" @click="onExi"> Exit </c-button> -->
    <!-- </div> -->
liuxin committed
299

zhengxiaokui committed
300
    <!--   
潘际乾 committed
301
       <c-col :span="12">
liuxin committed
302 303 304
        <c-button size="small" type="primary"  @click="onSeajbh">
            Search All
        </c-button>
潘际乾 committed
305
       </c-col>
liuxin committed
306

潘际乾 committed
307
       <c-col :span="12">
liuxin committed
308 309 310
        <c-button size="small" type="primary"  @click="onSeactr">
            Search
        </c-button>
潘际乾 committed
311
       </c-col>
liuxin committed
312

潘际乾 committed
313
        <c-col :span="12">
liuxin committed
314 315 316
        <c-button size="small" type="primary"  @click="onSearow">
            Search All
        </c-button>
潘际乾 committed
317
       </c-col>
liuxin committed
318

潘际乾 committed
319
        <c-col :span="12">
liuxin committed
320 321 322
        <c-button size="small" type="primary"  @click="onDsp">
            Display
        </c-button>
潘际乾 committed
323
       </c-col>
liuxin committed
324

潘际乾 committed
325
       <c-col :span="12">
liuxin committed
326 327 328
        <c-button size="small" type="primary"  @click="onImgmodNewimg">
            Img
        </c-button>
潘际乾 committed
329
       </c-col>
liuxin committed
330
                  
潘际乾 committed
331
       <c-col :span="12">
liuxin committed
332 333 334
        <c-button size="small" type="primary"  @click="onImgmodNewhisimg">
            His.img
        </c-button>
潘际乾 committed
335
       </c-col>
liuxin committed
336
                  
潘际乾 committed
337
       <c-col :span="12">
liuxin committed
338 339 340
        <c-button size="small" type="primary"  @click="onDiaconButdia">
            Diaries
        </c-button>
潘际乾 committed
341
       </c-col>
liuxin committed
342
                                                    
潘际乾 committed
343
       <c-col :span="12">
liuxin committed
344 345 346
        <c-button size="small" type="primary"  @click="onImgmodHisimg">
            Old.img
        </c-button>
潘际乾 committed
347
       </c-col>
liuxin committed
348
                  
潘际乾 committed
349
       <c-col :span="12">
liuxin committed
350 351 352
        <c-button size="small" type="primary"  @click="onRelrow">
            Release
        </c-button>
潘际乾 committed
353
       </c-col>
liuxin committed
354
                  
潘际乾 committed
355
       <c-col :span="12">
liuxin committed
356 357 358
        <c-button size="small" type="primary"  @click="onPrinte">
            导出Excel
        </c-button>
潘际乾 committed
359
       </c-col>
liuxin committed
360
                  
潘际乾 committed
361
       <c-col :span="12">
liuxin committed
362 363 364
        <c-button size="small" type="primary"  @click="onReprow">
            Repair
        </c-button>
潘际乾 committed
365
       </c-col>
liuxin committed
366
                  
潘际乾 committed
367
       <c-col :span="12">
liuxin committed
368 369 370
        <c-button size="small" type="primary"  @click="onRejrow">
            Reject
        </c-button>
潘际乾 committed
371
       </c-col>
liuxin committed
372
                  
潘际乾 committed
373
       <c-col :span="12">
liuxin committed
374 375 376
        <c-button size="small" type="primary"  @click="onRelcor">
            Rel Control
        </c-button>
潘际乾 committed
377
       </c-col>
liuxin committed
378 379
       -->

zhengxiaokui committed
380
    <!--          
潘际乾 committed
381
       <c-col :span="12">
liuxin committed
382 383 384
        <el-form-item label=">>">
            <c-input  v-model="model.orddsp"  placeholder="请输入>>"></c-input>
        </el-form-item>
潘际乾 committed
385
       </c-col>          
liuxin committed
386
                  
潘际乾 committed
387
       <c-col :span="12">
liuxin committed
388 389 390
        <c-button size="small" type="primary"  @click="onExi">
            Exit
        </c-button>
潘际乾 committed
391
       </c-col> -->
zhengxiaokui committed
392
    <!--<p>{{model.trncorco.trnstm}}</p>-->
393
    <!-- <el-row>
fukai committed
394 395 396 397 398
      <c-istream-table
        :list="stmData.data"
        :columns="stmData.columns"
        :showSelection="true"
        v-on:multipleSelect="multipleSelect"
399
      > -->
wangguangchao committed
400
    <el-row>
潘际乾 committed
401
      <c-col :span="24" style="">
402
        <c-istream-table :list="stmData.data" :columns="stmData.columns" style="width:100%" :showButtonFlg="true">
wangguangchao committed
403 404 405 406
          <el-table-column
            fixed="right"
            prop="display"
            label="操作"
407
            width="140px"
wangguangchao committed
408
          >
liushikai committed
409 410
          <template slot="header">
              <c-col :span="11" style="text-align:left"><span>操作</span></c-col>
411
              <!-- <c-col :span="12" style="text-align:right"><c-button icon="el-icon-s-tools"></c-button></c-col> -->
liushikai committed
412
            </template>
413
            <template slot-scope="scope">
wangguangchao committed
414 415
              <!--              <a :href="`/#/display/${scope.row['10'].toLowerCase()}?trn=${scope.row['1']}`" target="_blank" >显示快照</a>-->
              <!-- <a href="javascript:void(0)" @click="display(scope.$index, scope.row)"
fukai committed
416
              >显示快照</a
417
            > -->
wangguangchao committed
418
              <!-- <c-button
419 420 421
                style="margin-left: 0"
                size="small"
                type="primary"
422
                @click="display(scope.$index, scope.row)"
423
              >
424
                快照
wangguangchao committed
425
              </c-button>  -->
426
             
hulei committed
427 428 429
               <c-button
                style="margin-left: 0"
                size="small"
430
                @click="onWaitDetail(scope.$index,scope.row)"
hulei committed
431 432 433
              >
                详情
              </c-button>
434 435 436 437
              <c-button
                style="margin-left: 0"
                size="small"
                type="primary"
wangguangchao committed
438 439 440 441
                @click="onHandle(scope.$index,scope.row)"
               
              >
                处理
wangguangchao committed
442 443
             </c-button>
                <!-- <c-button
wangguangchao committed
444 445 446 447
                style="margin-left: 0"
                size="small"
                type="primary"
                @click="onRelrow(scope.$index)"
wangguangchao committed
448
               
449
              >
wangguangchao committed
450
                复核
wangguangchao committed
451
              </c-button> -->
hulei committed
452

wangguangchao committed
453 454
              
             
wangguangchao committed
455 456 457 458
            </template>
          </el-table-column>
        </c-istream-table>
      </c-col>
fukai committed
459
    </el-row>
liushikai committed
460
    <!-- <el-row style="margin-top: 2rem">
潘际乾 committed
461
      <c-col :span="24">
wangguangchao committed
462 463 464 465 466 467 468 469 470 471
        <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>
fukai committed
472
                </div>
wangguangchao committed
473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495
              </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
496
    </el-row> -->
497
    <!-- <el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
fukai committed
498 499
          <div class="m-list-btns">
          </div>
500
    </el-dialog> -->
zhengxiaokui committed
501
  </div>
liuxin committed
502 503
</template>
<script>
zhengxiaokui committed
504
import Api from "~/service/Api";
wangren committed
505
import commonProcess from "~/mixin/commonProcess";
zhengxiaokui committed
506 507
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Trnrel/Event";
liuxin committed
508 509

export default {
zhengxiaokui committed
510 511
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
512
  mixins: [commonProcess],
zhengxiaokui committed
513 514 515
  components: {},
  data() {
    return {
wangguangchao committed
516
      initdialog: false,
fukai committed
517
      transactionStatus: {
wangguangchao committed
518 519 520 521 522 523 524
        busiNo: "",
        modTimes: 0,
        postCount: 0,
        accCount: 0,
        earnCount: 0,
        earnAmt: 0,
      },
zhengxiaokui committed
525
      stmData: {
526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545
        // columns: [
        //   '10 1 "TRN" 50 1 tdViewTypeEdit:0 3 ATPTXT',
        //   '11 2:1 "Own Reference" 112',
        //   '17 2:2 "Addtional Text" 112',
        //   '12 3 "Cur" 37',
        //   '13 4 "Relevant Amount" 101 2 8:1 2 5',
        //   '14 5 "Entry" 104 20 DateTime 1',
        //   '9 6:1 "Req" 39',
        //   '2 6:2 "Sig" 35',
        //   '6 8:1 "Rq0" 40',
        //   '3 8:2 "Rel0" 40',
        //   '7 9:1 "Rq1" 40',
        //   '4 9:2 "Rel1" 40',
        //   '8 10:1 "Rq2" 40',
        //   '5 10:2 "Rel2" 40',
        //   '15 13 "Branch" 142',
        //   '16 11:1 "User" 62',
        //   '18 11:2 "" 62',
        //   '0 12 "Status" 54 1 tdViewTypeEdit:0 1 RELSTA',
        // ],
zhengxiaokui committed
546
        columns: [
wangguangchao committed
547 548
          '10 1 "交易代码" 80',
          '11 2 "业务编号" 150',
549
          '17 3 "摘要信息" 300',
550
          '12 4 "币种" 50',
liushikai committed
551
          '13 5 "金额" 100',
552
          // '14 6 "创建时间" 170',
liushikai committed
553
          {index:14,position:6,width:140,pattern:'time',label:'创建时间'},
554 555 556
          '9 7 "签名要求" 70',
          '2 8 "签名状态" 70',
          '16 9 "经办柜员" 70',
557 558 559 560 561
        //   '0 10 "业务状态" 80',
          {index:0,position:10,width:80,pattern:'code',label:'业务状态',code:[{label: "Waiting", value: "W"},
                                                                            { label: "Correct", value: "C" },
                                                                            { label: "Picked up", value: "P" },
                                                                            { label: "Rejected", value: "N" },]},
562
          '15 11 "业务机构" 120',
zhengxiaokui committed
563 564 565 566
        ],
        data: [],
      },
      relrowDisabled: true,
wangguangchao committed
567
      relflgCodes:[],
liuxin committed
568
      Trnp0Visible: false,
569
      // multipleSelection: [],
zhengxiaokui committed
570 571 572
    };
  },
  methods: {
573 574 575 576 577 578 579 580
    // multipleSelect(val) {
    //   // TODO 根据Status判断按钮是否禁用
    //   this.relrowDisabled = !(val.length > 0);
    //   this.multipleSelection = val;
    // },
    // getSelectedData() {
    //   return this.multipleSelection.map((idx) => this.stmData.data[idx]);
    // },
zhengxiaokui committed
581 582 583
    ...Event,
  },
  created: function () {},
liushikai committed
584
  async mounted() {
wangguangchao committed
585
  
wangguangchao committed
586
      this.relflgCodes = [
liuxin committed
587
        { label: "ALL", value: "0" },   //待复核列表业务状态All
wangguangchao committed
588
        { label: "Correct", value: "C" },
liushikai committed
589 590 591
        // { label: "Closed", value: "M" },
        // { label: "Entered", value: "E" },
        // { label: "External", value: "X" },
wangguangchao committed
592 593 594 595
        { label: "Picked up", value: "P" },
        { label: "Rejected", value: "N" },
        { label: "Waiting", value: "W" },
      ];
596 597
      // await this.handleSearch()
      // this.$store.commit("setTaskList", {key: "trnrel", val: this.stmData.data.length})
wangguangchao committed
598
  
599
  },
zhengxiaokui committed
600 601
  computed: {},
};
liuxin committed
602 603 604
</script>
<style>
</style>