Menu.vue 14.8 KB
Newer Older
jianglong committed
1 2
<template>
  <div class="eibs-tab">
3 4

       <c-col :span="24">
5
          <el-form-item label="待处理交易的类型" prop="" class="checkbox-left">
6 7 8 9 10 11
              <c-checkbox v-model="model.chkinc" disabled>Incoming</c-checkbox>
              <c-checkbox v-model="model.chkrim" >Registered</c-checkbox>
              <c-checkbox v-model="model.chkpen" disabled>Pending</c-checkbox>
              <c-checkbox v-model="model.chkcor" disabled>Correction</c-checkbox>
              <c-checkbox v-model="model.chkaut" disabled>Automatic</c-checkbox>
           </el-form-item>
jianglong committed
12
       </c-col>
13 14 15 16


       <c-col :span="24">
            <!-------------左边---------------->
17
            <c-col :span="12" style="padding-right: 20px">
18
                <c-col :span="24">
nanrui committed
19 20
                    <el-form-item label="业务编号" prop="selobj">
                        <c-input  v-model="model.selobj" maxlength="32"  placeholder="请输入业务编号"></c-input>
21 22 23 24
                    </el-form-item>
               </c-col>
                <c-col :span="24">
                    <c-col :span="20">
nanrui committed
25 26
                        <el-form-item label="用户选择" prop="usfmod.flt">
                            <c-select v-model="model.usfmod.flt" style="width:100%" placeholder="请选择用户选择">
27 28 29 30 31 32 33 34 35 36 37
                                  <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="4">
                   <c-button size="small" type="primary"  @click="onUsfmodShwflt">
38
                       显示
39 40 41 42 43
                   </c-button>
                  </c-col>
               </c-col>

               <c-col :span="24">
wangna committed
44 45
                <el-form-item label="所选用户" prop="usfmod.usr.extkey" v-if="model.usfmod.flt ==='<SELU>'">
                    <c-input  v-model="model.usfmod.usr.extkey" maxlength="8"  placeholder="请输入所选用户"></c-input>
46 47 48 49 50
                </el-form-item>
               </c-col>


               <c-col :span="24">
wangna committed
51 52
                <el-form-item label="所选分支" prop="usfmod.selusb" v-if="model.usfmod.flt ==='<SELB>'">
                    <c-select v-model="model.usfmod.selusb" style="width:100%" placeholder="请选择所选分支" :code="codes.selusg">
53 54 55 56 57 58
                      </c-select>
                </el-form-item>
               </c-col>

            </c-col>
             <!-------------右边---------------->
59
            <c-col :span="12" style="padding-left: 20px">
60
                   <c-col :span="24">
nanrui committed
61 62
                        <el-form-item label="交易关键字名称" prop="seltxt">
                            <c-input  v-model="model.seltxt" maxlength="32"  placeholder="请输入交易关键字名称"></c-input>
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
                        </el-form-item>
                   </c-col>
                <c-col :span="24">
                    <br>
                </c-col>
                  <c-col :span="24" style="text-align: right" >
                   <c-button size="small" type="primary"
                        @click="showGridPromptDialog('negcnt', null, null,{COD: 'cptp.draweecountcode'}, {COD: true},'doxpDialog')"
                   >
                       未分配业务
                   </c-button>
                      <c-button size="small" type="primary"
                           @click="onButreg"
                      >
                          分配获取
                      </c-button>
                  </c-col>

            </c-col>

              <!-------------隐藏---------------->
            <c-col :span="24" v-show="false">
                     <c-col :span="12">
                        <span  v-text="model.usfmod.usftxt"   data-path=".usfmod.usftxt" > </span>
                    </c-col>
                    <c-col :span="12">
                        <span  v-text="model.usfmod.labtxt"   data-path=".usfmod.labtxt" > </span>
                    </c-col>

                    <c-col :span="12">
                     <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>
                    </c-col>
                    <c-col :span="12">
                     <el-form-item label="Selected User Group" prop="usfmod.selusg">
                         <c-select v-model="model.usfmod.selusg" style="width:100%" placeholder="请选择Selected User Group">
                           </c-select>
                     </el-form-item>
                    </c-col>
            </c-col>

jianglong committed
106
       </c-col>
107 108 109 110 111 112 113 114 115 116

        <c-col :span="24">

              <c-istream-table :list="stmData.data" :columns="stmData.columns">
               <el-table-column fixed="right" prop="op" label="操作" width="140px">
                    <template slot-scope="scope">
                        <c-button
                           style="margin-left: 0"
                           size="small"
                           type="primary"
zhujiazhan committed
117
                            @click="getButtons(scope.row)"
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
                       >
                           详情
                       </c-button>
                       <c-button
                         style="margin-left: 2"
                         size="small"
                         type="primary"
                          @click="getButtons(scope.row)"
                       >
                         处理
                       </c-button>
                   </template>
               </el-table-column>
             </c-istream-table>
           </c-col>
              <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"
zhujiazhan committed
146
                            @click.native="onButpan('rettocus')"
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167
                            :disabled=this.flag
                            title="butpan">
                                退回
                            </c-button>
                            <c-button
                              style="margin-left: 7px"
                              size="medium"
                              type="primary"
                              class="medium_bcs"
                              @click.native="onOperate('rou')"
                              :disabled=this.flag
                              title="ReRouting">
                                    ReRouting
                              </c-button>
                            <c-button
                                style="margin-left: 7px"
                                size="medium"
                                type="primary"
                                class="medium_bcs"
                                @click.native="onOperate('Connect11111')"
                                title="Connect"
zhujiazhan committed
168
                                disabled=false >
169 170 171 172 173 174 175 176 177
                                    Connect
                            </c-button>
                                <c-button
                                    style="margin-left: 7px"
                                    size="medium"
                                    type="primary"
                                    class="medium_bcs"
                                    @click.native="onOperate('Infotext11111')"
                                    title="Infotext"
zhujiazhan committed
178
                                    disabled=false >
179 180 181 182 183 184 185 186 187
                                        Infotext
                                </c-button>
                                <c-button
                                    style="margin-left: 7px"
                                    size="medium"
                                    type="primary"
                                    class="medium_bcs"
                                    @click.native="onOperate('inc11111')"
                                    title="Inc"
zhujiazhan committed
188
                                    disabled=false >
189 190
                                        Show Inc.
                                </c-button>
zhujiazhan committed
191 192 193 194 195 196 197 198 199 200
                             <!--   <c-button
                                    style="margin-left: 7px"
                                    size="medium"
                                    type="primary"
                                    class="medium_bcs"
                                    @click.native="onShow()"
                                    title="Remove"
                                    :disabled=this.flag >
                                        Remove
                                </c-button>  -->
201 202 203 204 205
                                <c-button
                                    style="margin-left: 7px"
                                    size="medium"
                                    type="primary"
                                    class="medium_bcs"
zhujiazhan committed
206
                                    @click.native="onShow()"
207 208 209 210 211 212 213 214 215 216 217
                                    title="Show2"
                                    :disabled=this.flag >
                                        Show
                                </c-button>
                                   <c-button
                                        style="margin-left: 7px"
                                        size="medium"
                                        type="primary"
                                        class="medium_bcs"
                                        @click.native="onOperate('Reject111111')"
                                        title="Reject"
zhujiazhan committed
218
                                        disabled=false >
219 220 221 222 223 224 225
                                            Reject
                                    </c-button>
                        </div>
                      </div>
                    </div>
                  </el-dialog>

zhujiazhan committed
226 227
            <m-sptp0 ref="childs" :model="model" :codes="codes" @onSptp="onSptpButord"></m-sptp0>
            <m-ordp0 ref="childs2" :model="model" :codes="codes"></m-ordp0>
jianglong committed
228 229 230 231 232 233 234
  </div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Sptneg/Event"
zhujiazhan committed
235
import Sptp0 from "./Sptp0"
zhujiazhan committed
236 237
import Ordp0 from "./Ordp0"

jianglong committed
238 239 240 241 242

export default {
    inject: ['root'],
    props:["model","codes"],
    mixins: [commonProcess],
zhujiazhan committed
243 244
     components:{
            "m-sptp0" : Sptp0,
zhujiazhan committed
245
            "m-ordp0" : Ordp0,
zhujiazhan committed
246
        },
jianglong committed
247 248
    data(){
        return {
249 250 251 252
             initdialog: false,
             flag:false,
             stmData: {
                columns: [
nanrui committed
253 254
                  '4 1 "交易代码" 100',
                  '5 2 "业务编号" 150',
255
                  '6 3 "Name" 150',
nanrui committed
256 257 258 259 260 261
                  {index:7,position:5,width:200,pattern:'time',label:'创建时间'},
                  {index:1,position:6,width:120,pattern:'code',label:'交易状态',code:'sptrelstatus'},
                  '8 7 "经办柜员" 100',
                  '14 8 "工作用户" 120',
                  '3 9 "信息" 100',
                  '10 10 "信息文本" 500',
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
                ],
                data: [],
              },
        }
    },
    watch:{
       "model.chkrim":function(){
          this.executeDefault("sptstm").then((res) => {
               if ((res.respCode == SUCCESS)) {
                  this.stmData.data = res.data.sptstm.rows;
                  this.model.sptstm = res.data.sptstm;
               }
             });
       }
    },
    methods:{...Event,
        onButreg(){
           this.executeRule("butreg").then((res) => {
                   if ((res.respCode == SUCCESS)) {
                      this.stmData.data = res.data.sptstm.rows;
                      this.model.sptstm = res.data.sptstm;
                   }
                 });
        },
        async getButtons(row){
nanrui committed
287
                   let status = row['交易状态'];
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
                   this.index=row['IDX'];
                   this.initdialog = true
                   let index2 = row['IDX']+1;
                   const selIds = [index2]; //rowno选中行
                   const selDst = "sptstm" //列表对应后台模型中的stream
                   let params = { selDst: selDst, selIds: selIds };
                   this.executeRule("sptstm",params).then((res) => {
                      if ((res.respCode == SUCCESS)) {

                      }
                    });
         },

        //各入口按钮请求
        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
               this.stmData.data = rtnmsg.data.sptstm.rows;
               this.model.sptstm = rtnmsg.data.sptstm;
             } else {
              this.initdialog = false
             }
        },
zhujiazhan committed
316
        onButpan(){
wangna committed
317
              this.$confirm('确定要返回所选项目吗?','提示',{
wangna committed
318 319
                  confirmButtonText: '是',
                  cancelButtonText: '否',
320 321 322 323 324 325 326
                  type: 'warning',
                  showClose:false
                }).then(async () => {//yes的执行在这里写
                         let index = this.index+1;
                         const selIds = [index]; //rowno选中行
                         const selDst = "sptstm" //列表对应后台模型中的stream
                         let params = { selDst: selDst, selIds: selIds };
zhujiazhan committed
327
                         let rtnmsg = await this.executeRule('rettocus',params);
328 329 330 331 332 333 334 335 336 337 338
                         if (rtnmsg.respCode == SUCCESS) {
                            this.initdialog = false
                            this.stmData.data = rtnmsg.data.sptstm.rows;
                            this.model.sptstm = rtnmsg.data.sptstm;
                          } else {
                             this.initdialog = false
                          }

                }).catch(() => {//No的功能在这里写

                });
jianglong committed
339

zhujiazhan committed
340 341 342 343
        },
       async onShow(row){
           this.initdialog = false
           this.$refs.childs.initdialog2 = true
zhujiazhan committed
344 345 346 347
       },
       async onSptpButord(){
         this.$refs.childs2.initdialog3 = true
       }
jianglong committed
348 349 350 351 352 353 354 355 356
    },
    created:function(){

    }
}
</script>
<style>

</style>