Inftrnps.vue 17.8 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"> -->
liushikai committed
5
        <div style="border-bottom: 10px solid rgb(232, 232, 232);">
wangguangchao committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
        <el-form
          class="m-table-search-form"
          ref="paramsForm"
          :inline="true"
          label-position="right"
          label-width="110px"
          size="small"
        >
          <el-row>
            <c-col :span="23">
              <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>
liuxin committed
29

liushikai committed
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
              <c-col :span="8">
                <el-form-item label="创建时间" style="width: 100%">
                  <c-col :span="11">
                    <el-date-picker
                      type="date"
                      v-model="model.trncorco.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.trncorco.inidattil"
                      style="width: 100%"
                      placeholder="请选择Date of entry of Transaction until"
                    ></el-date-picker>
                  </c-col>
                </el-form-item>
              </c-col>

              <c-col :span="8">
wangguangchao committed
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
                <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"
                    >
                    </el-option>
                  </c-select>
                </el-form-item>
              </c-col>
            </c-col>
          </el-row>
          <!--            
78
                    <c-col :span="12">
79 80
                      <el-form-item label="Drag  Drop Sender">
                          <c-input  v-model="model.atpget.sdamod.dadsnd"  placeholder="请输入Drag  Drop Sender"></c-input>
81 82
                      </el-form-item>
                    </c-col>
83
                    -->
liushikai committed
84
          <el-row>
wangguangchao committed
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
            <c-col :span="23">
              <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"
                    >
                    </el-option>
                  </c-select>
                </el-form-item>
              </c-col>
              <c-col :span="8">
liushikai committed
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
                <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>
126 127 128
                </el-form-item>
              </c-col>

liushikai committed
129

wangguangchao committed
130
              <!--                           
fukai committed
131 132 133 134 135
                    <c-col :span="12">
                      <el-form-item label="and">
                          
                      </el-form-item>
                    </c-col> -->
wangguangchao committed
136 137 138 139 140 141 142 143

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

liushikai committed
154
                    <c-col :span="4">
wangguangchao committed
155 156
                      <c-button
                        size="small"
liushikai committed
157
                        style="width:100%;margin-left:0"
wangguangchao committed
158 159 160 161
                        type="primary"
                        @click="onSeainf"
                        icon="el-icon-search"
                      ></c-button>
162
                    </c-col>
fukai committed
163
                  </c-col>
wangguangchao committed
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188
                </el-form-item>
              </c-col>
            </c-col>
            <c-col :span="23">
              <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"
                    >
                    </el-option>
                  </c-select>
                </el-form-item>
              </c-col>
189

wangguangchao committed
190 191 192 193 194 195 196 197 198 199 200 201 202
              <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>
liushikai committed
203 204 205 206
              <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>
wangguangchao committed
207 208 209
            </c-col>
          </el-row>
        </el-form>
liushikai committed
210
        </div>
liushikai committed
211 212
      <!-- </template> -->
    <!-- </c-list-search> -->
liuxin committed
213

zhengxiaokui committed
214
    <!--                            
潘际乾 committed
215
       <c-col :span="12">
liuxin committed
216 217 218
        <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
219
       </c-col>             
liuxin committed
220
                  
潘际乾 committed
221
       <c-col :span="12">
liuxin committed
222 223 224
        <el-form-item label="# of transactions">
            <c-input  v-model="model.numtrn"  placeholder="请输入# of transactions"></c-input>
        </el-form-item>
潘际乾 committed
225
       </c-col>
liuxin committed
226
       -->
liuxin committed
227

228
    <!-- <div style="margin-top:20px;"> -->
wangguangchao committed
229 230

    <!-- <c-button size="small" type="primary" @click="onSeaown">
zhengxiaokui committed
231 232
        Search Own
      </c-button>
liuxin committed
233

zhengxiaokui committed
234 235
      <c-button size="small" type="primary" @click="onSeajbh">
        Search All
236
      </c-button>  -->
liuxin committed
237

wangguangchao committed
238
    <!-- <c-button
zhengxiaokui committed
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
        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>
294 295
      <c-button size="small" type="primary" @click="onExi"> Exit </c-button> -->
    <!-- </div> -->
liuxin committed
296

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

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

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

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

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

zhengxiaokui committed
377
    <!--          
潘际乾 committed
378
       <c-col :span="12">
liuxin committed
379 380 381
        <el-form-item label=">>">
            <c-input  v-model="model.orddsp"  placeholder="请输入>>"></c-input>
        </el-form-item>
潘际乾 committed
382
       </c-col>          
liuxin committed
383
                  
潘际乾 committed
384
       <c-col :span="12">
liuxin committed
385 386 387
        <c-button size="small" type="primary"  @click="onExi">
            Exit
        </c-button>
潘际乾 committed
388
       </c-col> -->
zhengxiaokui committed
389
    <!--<p>{{model.trncorco.trnstm}}</p>-->
390
    <!-- <el-row>
fukai committed
391 392 393 394 395
      <c-istream-table
        :list="stmData.data"
        :columns="stmData.columns"
        :showSelection="true"
        v-on:multipleSelect="multipleSelect"
396
      > -->
wangguangchao committed
397
    <el-row>
liushikai committed
398
      <c-col :span="24">
wangguangchao committed
399 400 401 402 403
        <c-istream-table :list="stmData.data" :columns="stmData.columns">
          <el-table-column
            fixed="right"
            prop="display"
            label="操作"
wangguangchao committed
404
            width="200px"
wangguangchao committed
405
          >
406
            <template slot-scope="scope">
wangguangchao committed
407 408
              <!--              <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
409
              >显示快照</a
410
            > -->
wangguangchao committed
411
              <c-button
412 413 414
                style="margin-left: 0"
                size="small"
                type="primary"
415
                @click="display(scope.$index, scope.row)"
416
              >
417 418 419 420
                快照
              </c-button> 
             
      
421 422 423 424
              <c-button
                style="margin-left: 0"
                size="small"
                type="primary"
425
                @click="onRelrow(scope.$index,scope.row)"
wangguangchao committed
426
               
427
              >
wangguangchao committed
428
                复核
429 430 431 432 433
              </c-button>
              <c-button
                style="margin-left: 0"
                size="small"
                type="primary"
wangguangchao committed
434
               
435
              >
wangguangchao committed
436
                退回
437
              </c-button>
wangguangchao committed
438 439
              
             
wangguangchao committed
440 441 442 443
            </template>
          </el-table-column>
        </c-istream-table>
      </c-col>
fukai committed
444
    </el-row>
liushikai committed
445
    <!-- <el-row style="margin-top: 2rem">
wangguangchao committed
446 447 448 449 450 451 452 453 454 455 456
      <c-col :span="23">
        <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
457
                </div>
wangguangchao committed
458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480
              </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
481
    </el-row> -->
482
    <!-- <el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
fukai committed
483 484
          <div class="m-list-btns">
          </div>
485
    </el-dialog> -->
zhengxiaokui committed
486
  </div>
liuxin committed
487 488
</template>
<script>
zhengxiaokui committed
489 490 491 492
import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Trnrel/Event";
liuxin committed
493 494

export default {
zhengxiaokui committed
495 496
  inject: ["root"],
  props: ["model", "codes"],
潘际乾 committed
497
  mixins: [CommonProcess],
zhengxiaokui committed
498 499 500
  components: {},
  data() {
    return {
wangguangchao committed
501
      initdialog: false,
fukai committed
502
      transactionStatus: {
wangguangchao committed
503 504 505 506 507 508 509
        busiNo: "",
        modTimes: 0,
        postCount: 0,
        accCount: 0,
        earnCount: 0,
        earnAmt: 0,
      },
zhengxiaokui committed
510
      stmData: {
511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530
        // 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
531
        columns: [
wangguangchao committed
532 533
          '10 1 "交易代码" 80',
          '11 2 "业务编号" 150',
534 535 536 537 538 539 540 541 542
          '11 3 "摘要信息" 150',
          '12 4 "币种" 50',
          '13 5 "金额" 70',
          '14 6 "创建时间" 170',
          '9 7 "签名要求" 70',
          '2 8 "签名状态" 70',
          '16 9 "经办柜员" 70',
          '0 10 "业务状态" 70',
          '15 11 "业务机构" 120',
zhengxiaokui committed
543 544 545 546
        ],
        data: [],
      },
      relrowDisabled: true,
wangguangchao committed
547
      relflgCodes:[],
548
      // multipleSelection: [],
zhengxiaokui committed
549 550 551
    };
  },
  methods: {
552 553 554 555 556 557 558 559
    // multipleSelect(val) {
    //   // TODO 根据Status判断按钮是否禁用
    //   this.relrowDisabled = !(val.length > 0);
    //   this.multipleSelection = val;
    // },
    // getSelectedData() {
    //   return this.multipleSelection.map((idx) => this.stmData.data[idx]);
    // },
zhengxiaokui committed
560 561 562
    ...Event,
  },
  created: function () {},
liushikai committed
563
  async mounted() {
wangguangchao committed
564
  
wangguangchao committed
565 566
      this.relflgCodes = [
        { label: "Correct", value: "C" },
wangguangchao committed
567
        { label: "Closed", value: "M" },
wangguangchao committed
568 569 570 571 572 573
        { label: "Entered", value: "E" },
        { label: "External", value: "X" },
        { label: "Picked up", value: "P" },
        { label: "Rejected", value: "N" },
        { label: "Waiting", value: "W" },
      ];
liushikai committed
574 575
      await this.handleSearch()
      this.$store.commit("setTaskList", {key: "trnrel", val: this.stmData.data.length})
wangguangchao committed
576
  
577
  },
zhengxiaokui committed
578 579
  computed: {},
};
liuxin committed
580 581 582
</script>
<style>
</style>