Menu.vue 9.82 KB
Newer Older
潘际乾 committed
1 2
<template>
  <div class="eibs-tab">
吴佳 committed
3 4 5 6 7
        <el-form
                ref="paramsForm"
                label-position="right"
                label-width="110px"
                size="small"
373963566@qq.com committed
8
                class="m-table-search-form"
吴佳 committed
9 10 11 12 13
            >
        <!-- <c-col :span="12">
          <span  v-text="model.usfmod.usftxt"   data-path=".usfmod.usftxt" > </span>
        </c-col> -->
        <!-- ============左========= -->
373963566@qq.com committed
14
          <c-col :span="12" style="padding-right: 20px">
吴佳 committed
15
            <c-col :span="24">
nanrui committed
16
              <el-form-item label="用户选择" prop="usfmod.flt">
吴佳 committed
17 18 19
                <c-select
                  v-model="model.usfmod.flt"
                  style="width: 100%"
nanrui committed
20
                  placeholder="请选择用户选择"
吴佳 committed
21 22 23 24 25 26 27 28 29 30 31 32
                >
                  <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">
nanrui committed
33
              <el-form-item label="交易代码 " prop="atp.cod">
吴佳 committed
34 35 36 37
                <c-input
                  v-model="model.atp.cod"
                  maxlength="6"
                  style="width: 100%"
nanrui committed
38
                  placeholder="请输入交易代码 "
吴佳 committed
39 40 41 42 43
                ></c-input>
              </el-form-item>
            </c-col>

            <c-col :span="24">
nanrui committed
44
              <el-form-item label="交易名称" prop="atptxt">
吴佳 committed
45 46 47
                <c-input
                  v-model="model.atptxt"
                  maxlength="37"
nanrui committed
48
                  placeholder="请输入交易名称"
吴佳 committed
49 50 51 52 53 54
                  disabled
                ></c-input>
              </el-form-item>
            </c-col>

            <c-col :span="24" v-if="model.usfmod.flt === '<SELB>'">
wangna committed
55
              <el-form-item label="所选分支" prop="usfmod.selusg">
吴佳 committed
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
                <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>'">
wangna committed
72
              <el-form-item label="所选用户" prop="usfmod.usr.extkey">
吴佳 committed
73 74 75 76
                <c-input
                  v-model="model.usfmod.usr.extkey"
                  maxlength="8"
                  style="width: 100%"
wangna committed
77
                  placeholder="请输入所选用户"
吴佳 committed
78 79 80
                ></c-input>
              </el-form-item>
            </c-col>
81 82

              <c-col :span="24">
nanrui committed
83
                  <el-form-item label="交易状态" prop="sta">
84 85 86
                    <c-select
                      v-model="model.sta"
                      style="width: 100%"
87
                      placeholder="请选择交易状态"
88 89 90 91 92 93 94 95 96 97 98
                    >
                      <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
99 100 101
          </c-col>

        <!-- ============右========= -->
373963566@qq.com committed
102
          <c-col :span="12" style="padding-left: 20px">
吴佳 committed
103
              <c-col :span="24">
nanrui committed
104
                <el-form-item label="业务编号" prop="selobj">
吴佳 committed
105 106 107
                  <c-input
                    v-model="model.selobj"
                    maxlength="32"
nanrui committed
108
                    placeholder="请输入业务编号"
吴佳 committed
109 110 111 112 113
                  ></c-input>
                </el-form-item>     
              </c-col>

            <c-col :span="24">
nanrui committed
114
                <el-form-item label="交易关键字名称" prop="seltxt">
吴佳 committed
115 116 117
                  <c-input
                    v-model="model.seltxt"
                    maxlength="32"
nanrui committed
118
                    placeholder="请输入交易关键字名称"
吴佳 committed
119 120 121
                  ></c-input>
                </el-form-item>
              </c-col>
122
            <c-col :span="24">
nanrui committed
123
                <el-form-item label="经办柜员" prop="usr.extkey">
吴佳 committed
124 125 126 127 128 129 130 131 132 133 134
                  <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">
nanrui committed
135
                <el-form-item label="开始时间" prop="inidatfro">
吴佳 committed
136 137 138 139
                  <c-date-picker
                    type="date"
                    v-model="model.inidatfro"
                    style="width: 100%"
nanrui committed
140
                    placeholder="请选择开始时间"
吴佳 committed
141 142 143 144
                  ></c-date-picker>
                </el-form-item>
              </c-col>

145
              <c-col :span="12">
nanrui committed
146
                <el-form-item label="结束时间" prop="inidattil" >
吴佳 committed
147 148 149 150
                  <c-date-picker
                    type="date"
                    v-model="model.inidattil"
                    style="width: 100%"
nanrui committed
151
                    placeholder="请选择结束时间"
吴佳 committed
152 153 154 155 156
                  ></c-date-picker>
                </el-form-item>
              </c-col>
            </c-col>

157

吴佳 committed
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
          

          </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>

liushikai committed
177
    <c-col :span="24">
吴佳 committed
178 179
       <c-istream-table :list="stmData.data" :columns="stmData.columns">
        <el-table-column fixed="right" prop="op" label="操作" width="140px">
180 181
             <template slot-scope="scope">
                 <c-button
182
                    style="margin-left: 0"
183 184
                    size="small"
                    type="primary"
zhujiazhan committed
185
                    @click="display('00002140')"
186 187 188 189
                >
                    详情
                </c-button>
                <c-button
190
                  style="margin-left: 2"
191 192
                  size="small"
                  type="primary"
193
                  @click="getButtons(scope.row)"
194 195 196 197
                >
                  处理
                </c-button>
            </template>
吴佳 committed
198 199
        </el-table-column>
      </c-istream-table>
liushikai committed
200
    </c-col>
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216
     <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">
217
                    释放
218 219 220 221 222 223 224 225 226
                </c-button>
                <c-button
                  style="margin-left: 7px"
                  size="medium"
                  type="primary"
                  class="medium_bcs"
                  @click.native="onOperate('reprow')"
                  :disabled=this.flag
                  title="Repair">
227
                        纠正
228 229 230 231 232 233 234 235 236 237 238
                  </c-button>

                <c-button
                    style="margin-left: 7px"
                    size="medium"
                    type="primary"
                    class="medium_bcs"
                    @click.native="onOperate('rejrow')"
                    title="Reject"
                    :disabled=this.flag
                    >
239
                        拒绝
240 241 242 243 244
                </c-button>
            </div>
          </div>
        </div>
      </el-dialog>
潘际乾 committed
245 246 247
  </div>
</template>
<script>
liushikai committed
248
import Api from "~/service/Api";
wangren committed
249
import commonProcess from "~/mixin/commonProcess";
liushikai committed
250 251
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Sptrel/Event";
252
import BusNavbar from "./BusNavbar";
潘际乾 committed
253 254

export default {
liushikai committed
255 256
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
257
  mixins: [commonProcess],
258
  components: { "m-busbtn": BusNavbar },
liushikai committed
259 260
  data() {
    return {
261 262 263
      initdialog: false,
      flag:true,
      index:0,
264
      sta:[
wangna committed
265 266 267 268 269
        { label: '全部', value: '' },
        { label: '分支发布', value: 'CMC' },
        { label: '分支登记', value: 'CMP' },
        { label: '分支维修', value: 'CMR' },
        { label: '中心维修', value: 'CTR' },
270
      ],
吴佳 committed
271 272
      stmData: {
        columns: [
nanrui committed
273 274 275 276 277 278
          '5 1 "交易代码" 100',
          '6 2:2 "业务编号" ',
          '7 3:1 "交易关键字名称" ',
          '8 4 "创建时间" 200',
          {index:9,position:5,width:150,pattern:'code',label:'交易状态',code:'sptrelstatus'},
          '4 6:1 "经办柜员" 100',
吴佳 committed
279 280 281
        ],
        data: [],
      },
liushikai committed
282 283
    };
  },
284
  methods: { ...Event,
285
       async getButtons(row){
nanrui committed
286
               let status = row['交易状态'];
287 288 289 290 291
               if(status == "PUR" || status == "CMP"){
                 this.flag=false;
               }
               this.index=row['IDX'];
               this.initdialog = true
292
     },
293 294 295 296 297 298 299 300 301 302 303 304 305
   //各入口按钮请求
    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
        }
    },
306 307

   },
liushikai committed
308 309
  created: function () {},
};
潘际乾 committed
310 311 312
</script>
<style>
</style>