Menu.vue 9.74 KB
Newer Older
潘际乾 committed
1 2
<template>
  <div class="eibs-tab">
吴佳 committed
3 4 5 6 7 8 9 10 11 12 13 14
        <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">
nanrui committed
15
              <el-form-item label="用户选择" prop="usfmod.flt">
吴佳 committed
16 17 18
                <c-select
                  v-model="model.usfmod.flt"
                  style="width: 100%"
nanrui committed
19
                  placeholder="请选择用户选择"
吴佳 committed
20 21 22 23 24 25 26 27 28 29 30 31
                >
                  <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
32
              <el-form-item label="交易代码 " prop="atp.cod">
吴佳 committed
33 34 35 36
                <c-input
                  v-model="model.atp.cod"
                  maxlength="6"
                  style="width: 100%"
nanrui committed
37
                  placeholder="请输入交易代码 "
吴佳 committed
38 39 40 41 42
                ></c-input>
              </el-form-item>
            </c-col>

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

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

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

        <!-- ============右========= -->
          <c-col :span="12" :offset="1">
              <c-col :span="24">
nanrui committed
103
                <el-form-item label="业务编号" prop="selobj">
吴佳 committed
104 105 106
                  <c-input
                    v-model="model.selobj"
                    maxlength="32"
nanrui committed
107
                    placeholder="请输入业务编号"
吴佳 committed
108 109 110 111 112
                  ></c-input>
                </el-form-item>     
              </c-col>

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

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

156

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

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

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

export default {
liushikai committed
254 255
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
256
  mixins: [commonProcess],
257
  components: { "m-busbtn": BusNavbar },
liushikai committed
258 259
  data() {
    return {
260 261 262
      initdialog: false,
      flag:true,
      index:0,
263
      sta:[
wangna committed
264 265 266 267 268
        { label: '全部', value: '' },
        { label: '分支发布', value: 'CMC' },
        { label: '分支登记', value: 'CMP' },
        { label: '分支维修', value: 'CMR' },
        { label: '中心维修', value: 'CTR' },
269
      ],
吴佳 committed
270 271
      stmData: {
        columns: [
nanrui committed
272 273 274 275 276 277
          '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
278 279 280
        ],
        data: [],
      },
liushikai committed
281 282
    };
  },
283
  methods: { ...Event,
284
       async getButtons(row){
nanrui committed
285
               let status = row['交易状态'];
286 287 288 289 290
               if(status == "PUR" || status == "CMP"){
                 this.flag=false;
               }
               this.index=row['IDX'];
               this.initdialog = true
291
     },
292 293 294 295 296 297 298 299 300 301 302 303 304
   //各入口按钮请求
    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
        }
    },
305 306

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