Menu.vue 18.4 KB
Newer Older
潘际乾 committed
1 2
<template>
  <div class="eibs-tab">
吴佳 committed
3 4 5 6 7 8 9 10 11 12 13 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 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
        <el-form
                ref="paramsForm"
                label-position="right"
                label-width="110px"
                size="small"
            >
        <!-- <c-col :span="12">
          <span  v-text="model.usfmod.usftxt"   data-path=".usfmod.usftxt" > </span>
        </c-col> -->
        <!-- ============左========= -->
          <c-col :span="11">
            <c-col :span="24">
              <!-- <el-form-item label="Type ot items"> 
                  <c-fullbox>
                    <c-col :span="6">
                      <c-checkbox v-model="model.chkinc">Incoming</c-checkbox>
                    </c-col>
                    <c-col :span="6">
                      <c-checkbox v-model="model.chkdzt">E-Trade</c-checkbox>
                    </c-col>
                    <c-col :span="6">
                      <c-checkbox v-model="model.chkpen">break</c-checkbox>
                    </c-col>
                    <c-col :span="6">
                      <c-checkbox v-model="model.chkcor">Connect</c-checkbox>
                    </c-col>
                  </c-fullbox>

              </el-form-item> -->
              <el-form-item label="Seclect of Users" prop="usfmod.flt">
                <c-select
                  v-model="model.usfmod.flt"
                  style="width: 100%"
                  placeholder="请选择Filter"
                >
                  <el-option
                    v-for="item in codes.flt"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </c-select>
              </el-form-item>
            </c-col>

            <!-- <c-col :span="24">
              <el-form-item label=""> 
                  <c-fullbox>
                    <c-col :span="6">
                      <c-checkbox v-model="model.chkaut">Automatic</c-checkbox>
                    </c-col>
                    <c-col :span="6">
                      <c-checkbox v-model="model.chkdel">Reject</c-checkbox>
                    </c-col>
                    <c-col :span="6">
                      <c-checkbox v-model="model.chktco">网银</c-checkbox>
                    </c-col>
                    <c-col :span="6">
                      <c-checkbox v-model="model.chkcan">归档</c-checkbox>
                    </c-col>
                  </c-fullbox>

              </el-form-item>
            </c-col> -->

            <c-col :span="24">
              <el-form-item label="Transaction Type " prop="atp.cod">
                <c-input
                  v-model="model.atp.cod"
                  maxlength="6"
                  style="width: 100%"
                  placeholder="请输入Transaction Type "
                ></c-input>
              </el-form-item>
            </c-col>

            <c-col :span="24">
              <el-form-item label="Transaction Text" prop="atptxt">
                <c-input
                  v-model="model.atptxt"
                  maxlength="37"
                  placeholder="请输入Transaction Text"
                  disabled
                ></c-input>
              </el-form-item>
            </c-col>

            <c-col :span="24" v-if="model.usfmod.flt === '<SELB>'">
              <el-form-item label="Selected Branch" prop="usfmod.selusg">
                <c-select
                  v-model="model.usfmod.selusg"
                  style="width: 100%"
                  placeholder="请选择"
                >
                  <el-option
                    v-for="item in codes.selusg"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </c-select>
              </el-form-item>
            </c-col>

            <c-col :span="24" v-if="model.usfmod.flt === '<SELU>'">
              <el-form-item label="Selected User" prop="usfmod.usr.extkey">
                <c-input
                  v-model="model.usfmod.usr.extkey"
                  maxlength="8"
                  style="width: 100%"
                  placeholder="请输入User ID"
                ></c-input>
              </el-form-item>
            </c-col>
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134

              <c-col :span="24">
                  <el-form-item label="Status" prop="sta">
                    <c-select
                      v-model="model.sta"
                      style="width: 100%"
                      placeholder="请选择Status"
                    >
                      <el-option
                        v-for="item in this.sta"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      ></el-option>
                    </c-select>
                  </el-form-item>
                </c-col>

吴佳 committed
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
          </c-col>

        <!-- ============右========= -->
          <c-col :span="12" :offset="1">
              <c-col :span="24">
                <el-form-item label="Reference" prop="selobj">
                  <c-input
                    v-model="model.selobj"
                    maxlength="32"
                    placeholder="请输入Reference"
                  ></c-input>
                </el-form-item>     
              </c-col>

            <c-col :span="24">
                <el-form-item label="Name" prop="seltxt">
                  <c-input
                    v-model="model.seltxt"
                    maxlength="32"
                    placeholder="请输入Name"
                  ></c-input>
                </el-form-item>
              </c-col>
158
            <c-col :span="24">
159
                <el-form-item label="Entered by" prop="usr.extkey">
吴佳 committed
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
                  <c-input
                    v-model="model.usr.extkey"
                    maxlength="8"
                    style="width: 100%"
                    placeholder="请输入"
                    disabled
                  ></c-input>
                </el-form-item>
              </c-col>
            <c-col :span="24">
              <c-col :span="11">
                <el-form-item label="Between" prop="inidatfro">
                  <c-date-picker
                    type="date"
                    v-model="model.inidatfro"
                    style="width: 100%"
                    placeholder="请选择Date of entry of Transaction"
                  ></c-date-picker>
                </el-form-item>
              </c-col>

181 182
              <c-col :span="12">
                <el-form-item label="and" prop="inidattil" >
吴佳 committed
183 184 185 186 187 188 189 190 191 192
                  <c-date-picker
                    type="date"
                    v-model="model.inidattil"
                    style="width: 100%"
                    placeholder="请选择Date of entry of Transaction until"
                  ></c-date-picker>
                </el-form-item>
              </c-col>
            </c-col>

193

吴佳 committed
194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213
          

          </c-col>

          <c-col
        :span="24"
        style="text-align: right; height: 36.8px"
      >
        <el-button size="small" @click="handleReset">重置</el-button>
        <el-button
          type="primary"
          icon="el-icon-search"
          size="small"
          @click="handleSearch"
          >查询</el-button
        >
      </c-col>
        </el-form>

    <!-- <c-col :span="9">
liushikai committed
214 215 216 217 218 219 220 221 222 223 224 225 226 227
      <el-form-item label="Seclect of Users" prop="usfmod.flt">
        <c-select
          v-model="model.usfmod.flt"
          style="width: 95%"
          placeholder="请选择Filter"
        >
          <el-option
            v-for="item in codes.flt"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          ></el-option>
        </c-select>
      </el-form-item>
吴佳 committed
228
    </c-col> -->
liushikai committed
229

吴佳 committed
230
    <!-- <c-col :span="2">
liushikai committed
231 232 233
      <c-button size="small" type="primary" @click="onUsfmodShwflt" disabled>
        Show Set
      </c-button>
吴佳 committed
234
    </c-col> -->
liushikai committed
235

吴佳 committed
236
    <!-- <c-col :span="11" :offset="1">
liushikai committed
237 238 239 240 241 242 243
      <el-form-item label="Reference" prop="selobj">
        <c-input
          v-model="model.selobj"
          maxlength="32"
          placeholder="请输入Reference"
        ></c-input>
      </el-form-item>
吴佳 committed
244
    </c-col> -->
liushikai committed
245 246

    <!-- <c-col :span="12">
潘际乾 committed
247
	    <span  v-text="model.usfmod.labtxt"   data-path=".usfmod.labtxt" > </span>
吴佳 committed
248
	  </c-col> -->
liushikai committed
249

吴佳 committed
250
    <!-- <c-col :span="11" v-if="model.usfmod.flt === '<SELB>'">
liushikai committed
251
      <el-form-item label="Selected Branch" prop="usfmod.selusg">
liushikai committed
252 253 254 255 256 257 258 259 260 261 262 263 264
        <c-select
          v-model="model.usfmod.selusg"
          style="width: 50%"
          placeholder="请选择"
        >
          <el-option
            v-for="item in codes.selusg"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          ></el-option>
        </c-select>
      </el-form-item>
吴佳 committed
265
    </c-col> -->
liushikai committed
266
    <!-- <c-col :span="12">
潘际乾 committed
267 268 269 270
        <el-form-item label="Selected User Group Set" prop="usfmod.selusgset">
            <c-select v-model="model.usfmod.selusgset" style="width:100%" placeholder="请选择Selected User Group Set">
              </c-select>
        </el-form-item>
liushikai committed
271 272
       </c-col> -->
    <!-- <c-col :span="12">
潘际乾 committed
273 274 275 276
        <el-form-item label="Select user branch" prop="usfmod.selusb">
            <c-select v-model="model.usfmod.selusb" style="width:100%" placeholder="请选择Select user branch">
              </c-select>
        </el-form-item>
liushikai committed
277
       </c-col> -->
吴佳 committed
278
    <!-- <c-col :span="11" v-if="model.usfmod.flt === '<SELU>'">
liushikai committed
279 280 281 282 283 284 285 286 287 288 289 290 291
      <c-col :span="16">
        <el-form-item label="Selected User" prop="usfmod.usr.extkey">
          <c-input
            v-model="model.usfmod.usr.extkey"
            maxlength="8"
            style="width: 90%"
            placeholder="请输入User ID"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="6">
        <c-button size="small" type="primary"> i </c-button>
      </c-col>
吴佳 committed
292
    </c-col> -->
liushikai committed
293

吴佳 committed
294
    <!-- <c-col
liushikai committed
295 296 297 298
      :span="11"
      v-if="model.usfmod.flt != '<SELU>' && model.usfmod.flt != '<SELB>'"
    >
      <el-form-item label=""> </el-form-item>
吴佳 committed
299
    </c-col> -->
liushikai committed
300

吴佳 committed
301
    <!-- <c-col :span="11" :offset="1">
liushikai committed
302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320
      <el-form-item label="Name" prop="seltxt">
        <c-input
          v-model="model.seltxt"
          maxlength="32"
          placeholder="请输入Name"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="8">
      <el-form-item label="Entered by" prop="usr.extkey">
        <c-input
          v-model="model.usr.extkey"
          maxlength="8"
          style="width: 90%"
          placeholder="请输入"
          disabled
        ></c-input>
      </el-form-item>
吴佳 committed
321 322
    </c-col> -->
    <!-- <c-col :span="3">
liushikai committed
323
      <c-button size="small" type="primary"> i </c-button>
吴佳 committed
324
    </c-col> -->
liushikai committed
325

吴佳 committed
326
    <!-- <c-col :span="8" :offset="1">
liushikai committed
327 328 329 330 331 332 333 334
      <el-form-item label="Transaction Type " prop="atp.cod">
        <c-input
          v-model="model.atp.cod"
          maxlength="6"
          style="width: 90%"
          placeholder="请输入Transaction Type "
        ></c-input>
      </el-form-item>
吴佳 committed
335
    </c-col> -->
liushikai committed
336

吴佳 committed
337
    <!-- <c-col :span="3">
liushikai committed
338
      <c-button size="small" type="primary"> i </c-button>
吴佳 committed
339
    </c-col> -->
liushikai committed
340

吴佳 committed
341
    <!-- <c-col :span="6">
liushikai committed
342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360
      <el-form-item label="Between" prop="inidatfro">
        <c-date-picker
          type="date"
          v-model="model.inidatfro"
          style="width: 100%"
          placeholder="请选择Date of entry of Transaction"
        ></c-date-picker>
      </el-form-item>
    </c-col>

    <c-col :span="4">
      <el-form-item label="and" prop="inidattil" label-width="50px">
        <c-date-picker
          type="date"
          v-model="model.inidattil"
          style="width: 100%"
          placeholder="请选择Date of entry of Transaction until"
        ></c-date-picker>
      </el-form-item>
吴佳 committed
361
    </c-col> -->
liushikai committed
362

吴佳 committed
363
    <!-- <c-col :span="11" :offset="2">
liushikai committed
364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381
      <el-form-item label="Transaction Text" prop="atptxt">
        <c-input
          v-model="model.atptxt"
          maxlength="37"
          placeholder="请输入Transaction Text"
          disabled
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="24">
      <el-form-item label="Status" prop="sta">
        <c-select
          v-model="model.sta"
          style="width: 20%"
          placeholder="请选择Status"
        >
          <el-option
382
            v-for="item in this.sta"
liushikai committed
383 384 385 386 387 388
            :key="item.value"
            :label="item.label"
            :value="item.value"
          ></el-option>
        </c-select>
      </el-form-item>
吴佳 committed
389 390
    </c-col> -->

liushikai committed
391

吴佳 committed
392
    
liushikai committed
393 394 395 396 397 398
    <!-- 
                  
       
                  
                  
       
潘际乾 committed
399 400 401 402 403 404
                  
       <c-col :span="12">
        <el-form-item label="" prop="usfmod.usrget.sdamod.seainf">
            <c-input  v-model="model.usfmod.usrget.sdamod.seainf"  placeholder="请输入"></c-input>
        </el-form-item>
       </c-col>
liushikai committed
405
                                            
潘际乾 committed
406 407 408 409 410 411 412 413 414 415 416
       <c-col :span="12">
        <el-form-item label="Drag  Drop Sender" prop="atpget.sdamod.dadsnd">
            <c-input  v-model="model.atpget.sdamod.dadsnd"  placeholder="请输入Drag  Drop Sender"></c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="" prop="usrget.sdamod.seainf">
            <c-input  v-model="model.usrget.sdamod.seainf"  placeholder="请输入"></c-input>
        </el-form-item>
       </c-col>
liushikai committed
417
                                           
潘际乾 committed
418 419 420 421 422
       <c-col :span="12">
        <el-form-item label="" prop="atpget.sdamod.seainf">
            <c-input  v-model="model.atpget.sdamod.seainf"  placeholder="请输入"></c-input>
        </el-form-item>
       </c-col>
liushikai committed
423
                                          
潘际乾 committed
424 425 426 427 428 429 430 431 432 433
       <c-col :span="12">
        <el-form-item label="List of SPT records" prop="sptstm">
            <c-input  v-model="model.sptstm"  placeholder="请输入List of SPT records"></c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onTrndsp">
            >>
        </c-button>
liushikai committed
434 435
       </c-col> -->

吴佳 committed
436 437
    <c-col :span="24">
      <!-- <c-table :border="true" :data="data" style="width:80%,text-align:center">
liushikai committed
438 439 440 441 442 443
        <el-table-column label="TRN" width="auto"></el-table-column>
        <el-table-column label="Name" width="auto"></el-table-column>
        <el-table-column label="Created" width="auto"></el-table-column>
        <el-table-column label="Status" width="auto"></el-table-column>
        <el-table-column label="By User" width="auto"></el-table-column>
        <el-table-column label="Referance" width="auto"></el-table-column>
吴佳 committed
444 445 446 447
      </c-table> -->

       <c-istream-table :list="stmData.data" :columns="stmData.columns">
        <el-table-column fixed="right" prop="op" label="操作" width="140px">
448 449
             <template slot-scope="scope">
                 <c-button
450
                    style="margin-left: 0"
451 452 453 454 455 456 457
                    size="small"
                    type="primary"
                    @click="alert(scope.row['Reference'])"
                >
                    详情
                </c-button>
                <c-button
458
                  style="margin-left: 2"
459 460
                  size="small"
                  type="primary"
461
                  @click="getButtons(scope.row)"
462 463 464 465
                >
                  处理
                </c-button>
            </template>
吴佳 committed
466 467
        </el-table-column>
      </c-istream-table>
liushikai committed
468
    </c-col>
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 512
     <el-dialog
        :visible.sync="initdialog"
        :title="'操作列表'"
        append-to-body
      >
        <div class="m-list-btns">
          <div class="busnavbar">
            <div class="busnavbar-items">
              <c-button
                style="margin-left: 7px"
                size="medium"
                type="primary"
                class="medium_bcs"
                @click.native="onOperate('relrow')"
                :disabled=this.flag
                title="Release">
                    Release
                </c-button>
                <c-button
                  style="margin-left: 7px"
                  size="medium"
                  type="primary"
                  class="medium_bcs"
                  @click.native="onOperate('reprow')"
                  :disabled=this.flag
                  title="Repair">
                        Repair
                  </c-button>

                <c-button
                    style="margin-left: 7px"
                    size="medium"
                    type="primary"
                    class="medium_bcs"
                    @click.native="onOperate('rejrow')"
                    title="Reject"
                    :disabled=this.flag
                    >
                        Reject
                </c-button>
            </div>
          </div>
        </div>
      </el-dialog>
潘际乾 committed
513 514 515
  </div>
</template>
<script>
liushikai committed
516
import Api from "~/service/Api";
wangren committed
517
import commonProcess from "~/mixin/commonProcess";
liushikai committed
518 519
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Sptrel/Event";
520
import BusNavbar from "./BusNavbar";
潘际乾 committed
521 522

export default {
liushikai committed
523 524
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
525
  mixins: [commonProcess],
526
  components: { "m-busbtn": BusNavbar },
liushikai committed
527 528
  data() {
    return {
529 530 531
      initdialog: false,
      flag:true,
      index:0,
532 533 534 535 536 537 538
      sta:[
        { label: 'All', value: '' },
        { label: 'Branch Release', value: 'CMC' },
        { label: 'Branch Register', value: 'CMP' },
        { label: 'Branch Repair', value: 'CMR' },
        { label: 'Center Repair', value: 'CTR' },
      ],
吴佳 committed
539 540
      stmData: {
        columns: [
541
          '5 1 "TRN" 100',
吴佳 committed
542
          '6 2:2 "Reference" ',
543
          '7 3:1 "Name" ',
544
          '8 4 "Created" 200',
545
          {index:9,position:5,width:150,pattern:'code',label:'Status',code:'sptrelstatus'},
546
          '4 6:1 "By User" 100',
吴佳 committed
547 548 549
        ],
        data: [],
      },
liushikai committed
550 551
    };
  },
552
  methods: { ...Event,
553 554 555 556 557 558 559
       async getButtons(row){
               let status = row['Status'];
               if(status == "PUR" || status == "CMP"){
                 this.flag=false;
               }
               this.index=row['IDX'];
               this.initdialog = true
560
     },
561 562 563 564 565 566 567 568 569 570 571 572 573
   //各入口按钮请求
    async onOperate(vul){
       let index = this.index+1;
       const selIds = [index]; //rowno选中行
       const selDst = "sptstm" //列表对应后台模型中的stream
       let params = { selDst: selDst, selIds: selIds };
       let rtnmsg = await this.executeRule(vul,params);
       if (rtnmsg.respCode == SUCCESS) {
         this.initdialog = false
        } else {
         this.initdialog = false
        }
    },
574 575

   },
liushikai committed
576 577
  created: function () {},
};
潘际乾 committed
578 579 580
</script>
<style>
</style>