Inftrnps.vue 16.2 KB
Newer Older
wangguangchao committed
1 2
<template>
  <div class="eibs-tab">
liushikai committed
3 4
    <!-- <c-list-search @form-reset="handleReset" @form-search="handleSearch"> -->
    <!-- <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>
潘际乾 committed
15
        <c-col :span="24" style="">
liushikai committed
16 17 18 19 20 21 22 23 24 25 26 27 28 29
          <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">
潘际乾 committed
30
            <el-form-item label="创建时间" style="width: 100%" prop="trncorco.inidatfro">
liushikai committed
31
              <c-col :span="11">
32
                <c-date-picker
liushikai committed
33 34
                  type="date"
                  v-model="model.trncorco.inidatfro"
wangguangchao committed
35
                  style="width: 100%"
liushikai committed
36
                  placeholder="请选择Date of entry of Transaction"
37
                ></c-date-picker>
wangguangchao committed
38
              </c-col>
liushikai committed
39 40 41 42
              <c-col :span="2" style="text-align: center">
                <label style="display: inline-block; width: 100%">-</label>
              </c-col>
              <c-col :span="11">
43
                <c-date-picker
liushikai committed
44 45
                  type="date"
                  v-model="model.trncorco.inidattil"
wangguangchao committed
46
                  style="width: 100%"
liushikai committed
47
                  placeholder="请选择Date of entry of Transaction until"
48
                ></c-date-picker>
wangguangchao committed
49
              </c-col>
liushikai committed
50 51
            </el-form-item>
          </c-col>
wangguangchao committed
52

liushikai committed
53 54 55 56 57 58 59 60 61 62 63 64
          <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
65
                >
liushikai committed
66 67 68 69 70 71 72
                </el-option>
              </c-select>
            </el-form-item>
          </c-col>
        </c-col>
      </el-row>
      <!--            
wangguangchao committed
73 74 75 76 77 78
                    <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>
                    -->
liushikai committed
79
      <el-row>
潘际乾 committed
80
        <c-col :span="24" style="">
liushikai committed
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
          <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"
wangguangchao committed
97
                >
liushikai committed
98 99 100 101
                </el-option>
              </c-select>
            </el-form-item>
          </c-col>
wangguangchao committed
102

liushikai committed
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
          <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>
wangguangchao committed
120

liushikai committed
121
          <!--                           
wangguangchao committed
122 123 124 125 126 127
                    <c-col :span="12">
                      <el-form-item label="and">
                          
                      </el-form-item>
                    </c-col> -->

liushikai committed
128 129 130 131 132 133 134 135 136 137 138 139
          <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
140

liushikai committed
141 142 143 144 145 146 147 148 149
                <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
150
              </c-col>
liushikai committed
151 152 153
            </el-form-item>
          </c-col>
        </c-col>
潘际乾 committed
154
        <c-col :span="24" style="">
liushikai committed
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170
          <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
171
                >
liushikai committed
172 173 174 175
                </el-option>
              </c-select>
            </el-form-item>
          </c-col>
wangguangchao committed
176

liushikai committed
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
          <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"
192
              @click="trnfndhandleSearch"
liushikai committed
193 194 195 196 197 198
              >查询</el-button
            >
          </c-col>
        </c-col>
      </el-row>
    </el-form>
潘际乾 committed
199

潘际乾 committed
200
    <c-col :span="24" style="">
潘际乾 committed
201
      <div style="border-bottom: 10px solid rgb(232, 232, 232)">
liushikai committed
202
      </div>
潘际乾 committed
203
    </c-col>
liushikai committed
204 205
    <!-- </template> -->
    <!-- </c-list-search> -->
wangguangchao committed
206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 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 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 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 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 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 388 389 390

    <!--                            
       <c-col :span="12">
        <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>
       </c-col>             
                  
       <c-col :span="12">
        <el-form-item label="# of transactions">
            <c-input  v-model="model.numtrn"  placeholder="请输入# of transactions"></c-input>
        </el-form-item>
       </c-col>
       -->

    <!-- <div style="margin-top:20px;"> -->

    <!-- <c-button size="small" type="primary" @click="onSeaown">
        Search Own
      </c-button>

      <c-button size="small" type="primary" @click="onSeajbh">
        Search All
      </c-button>  -->

    <!-- <c-button
        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>
      <c-button size="small" type="primary" @click="onExi"> Exit </c-button> -->
    <!-- </div> -->

    <!--   
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onSeajbh">
            Search All
        </c-button>
       </c-col>

       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onSeactr">
            Search
        </c-button>
       </c-col>

        <c-col :span="12">
        <c-button size="small" type="primary"  @click="onSearow">
            Search All
        </c-button>
       </c-col>

        <c-col :span="12">
        <c-button size="small" type="primary"  @click="onDsp">
            Display
        </c-button>
       </c-col>

       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onImgmodNewimg">
            Img
        </c-button>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onImgmodNewhisimg">
            His.img
        </c-button>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onDiaconButdia">
            Diaries
        </c-button>
       </c-col>
                                                    
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onImgmodHisimg">
            Old.img
        </c-button>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onRelrow">
            Release
        </c-button>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onPrinte">
            导出Excel
        </c-button>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onReprow">
            Repair
        </c-button>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onRejrow">
            Reject
        </c-button>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onRelcor">
            Rel Control
        </c-button>
       </c-col>
       -->

    <!--          
       <c-col :span="12">
        <el-form-item label=">>">
            <c-input  v-model="model.orddsp"  placeholder="请输入>>"></c-input>
        </el-form-item>
       </c-col>          
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onExi">
            Exit
        </c-button>
       </c-col> -->
    <!--<p>{{model.trncorco.trnstm}}</p>-->
    <!-- <el-row>
      <c-istream-table
        :list="stmData.data"
        :columns="stmData.columns"
        :showSelection="true"
        v-on:multipleSelect="multipleSelect"
      > -->
    <el-row>
潘际乾 committed
391
      <c-col :span="24" style="">
392
        <c-istream-table :list="stmData.data" :columns="stmData.columns" style="width:100%" :showButtonFlg="true">
wangguangchao committed
393 394 395 396
          <el-table-column
            fixed="right"
            prop="display"
            label="操作"
397
            width="140px"
wangguangchao committed
398
          >
liushikai committed
399 400
          <template slot="header">
              <c-col :span="11" style="text-align:left"><span>操作</span></c-col>
401
              <!-- <c-col :span="12" style="text-align:right"><c-button icon="el-icon-s-tools"></c-button></c-col> -->
liushikai committed
402
            </template>
liuxin committed
403 404 405 406
            <template slot-scope="scope">
              <c-button
                style="margin-left: 0"
                size="small"
407
                @click="onFinishDetail(scope.$index,scope.row)"
liuxin committed
408
              >
wangguangchao committed
409 410
                详情
              </c-button>
hulei committed
411
              <!--
liushikai committed
412
              <c-button style="margin-left: 0" size="small" type="primary">
wangguangchao committed
413 414
                快照
              </c-button>
hulei committed
415
              -->
liuxin committed
416 417
              <c-button
                style="margin-left: 0"
liuxin committed
418
                size="small"             
liuxin committed
419
              >
wangguangchao committed
420 421 422 423 424 425 426
                冲正
              </c-button>
            </template>
          </el-table-column>
        </c-istream-table>
      </c-col>
    </el-row>
liushikai committed
427
    <!-- <el-row style="margin-top: 2rem">
潘际乾 committed
428
      <c-col :span="24">
wangguangchao committed
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
        <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
463
    </el-row> -->
wangguangchao committed
464 465 466 467 468 469 470 471
    <!-- <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
472
import commonProcess from "~/mixin/commonProcess";
wangguangchao committed
473 474 475 476 477 478
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Trnrel/Event";

export default {
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
479
  mixins: [commonProcess],
wangguangchao committed
480 481 482 483 484 485 486 487 488 489 490 491 492
  components: {},
  data() {
    return {
      initdialog: false,
      transactionStatus: {
        busiNo: "",
        modTimes: 0,
        postCount: 0,
        accCount: 0,
        earnCount: 0,
        earnAmt: 0,
      },
      stmData: {
liushikai committed
493
        columns: [
wangguangchao committed
494
          '10 1 "交易代码" 80',
liushikai committed
495
          '11 2 "业务编号" 170',
496 497 498
          '17 3 "摘要信息" 300',
          '12 4 "币种" 70',
          '13 5 "金额" 100',
499
          // '14 6 "创建时间" 170',
liushikai committed
500
          {index:14,position:6,width:140,pattern:'time',label:'创建时间'},
501 502 503 504 505 506 507
          '9 7 "签名要求" 80',
          '2 8 "签名状态" 80',
          '16 9 "经办柜员" 80',
        //   '0 10 "业务状态" 80',
          {index:0,position:10,width:80,pattern:'code',label:'业务状态',code:[{ label: "Final", value: "F" },
                                                                            { label: "Released", value: "R" },]},
          '15 11 "业务机构" 200',
wangguangchao committed
508 509 510 511
        ],
        data: [],
      },
      relrowDisabled: true,
liushikai committed
512
      relflgCodes: [],
wangguangchao committed
513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528
      // multipleSelection: [],
    };
  },
  methods: {
    // multipleSelect(val) {
    //   // TODO 根据Status判断按钮是否禁用
    //   this.relrowDisabled = !(val.length > 0);
    //   this.multipleSelection = val;
    // },
    // getSelectedData() {
    //   return this.multipleSelection.map((idx) => this.stmData.data[idx]);
    // },
    ...Event,
  },
  created: function () {},
  mounted() {
liushikai committed
529
    this.relflgCodes = [
liuxin committed
530
      { label: "ALL", value: "1" },     //已完成列表业务状态All
liushikai committed
531 532 533
      { label: "Final", value: "F" },
      { label: "Released", value: "R" },
    ];
wangguangchao committed
534 535 536 537 538 539
  },
  computed: {},
};
</script>
<style>
</style>