Menu.vue 11.3 KB
Newer Older
liuxin committed
1
<template>
liushikai committed
2
  <div class="eibs-tab">
liushikai committed
3
    <!-- <c-list-search @form-reset="handleReset" @form-search="handleSearch"> -->
4
    <!-- <template v-slot="searchSlot"> -->
fukai committed
5

潘际乾 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="">
潘际乾 committed
16 17 18 19 20 21
          <c-col :span="8">
            <el-form-item label="业务编号" prop="selobj" style="width: 100%">
              <c-input
                style="width: 100%"
                v-model="model.selobj"
                maxlength="32"
nanrui committed
22
                placeholder="请输入业务编号"
潘际乾 committed
23 24 25
              ></c-input>
            </el-form-item>
          </c-col>
liushikai committed
26

潘际乾 committed
27 28 29 30 31 32 33
          <c-col :span="8">
            <el-form-item label="创建时间" style="width: 100%">
              <c-col :span="11">
                <c-date-picker
                  type="date"
                  v-model="model.inidatfro"
                  style="width: 100%"
nanrui committed
34
                  placeholder="请选择创建时间"
潘际乾 committed
35 36 37 38 39 40 41 42 43
                ></c-date-picker>
              </c-col>
              <c-col :span="2" style="text-align: center">
                <label style="display: inline-block; width: 100%">-</label>
              </c-col>
              <c-col :span="11">
                <c-date-picker
                  type="date"
                  v-model="model.inidattil"
liushikai committed
44
                  style="width: 100%"
nanrui committed
45
                  placeholder="请选择创建时间"
潘际乾 committed
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
                ></c-date-picker>
              </c-col>
            </el-form-item>
          </c-col>

          <c-col :span="8">
            <el-form-item label="来源" style="width: 100%" prop="sourceModel">
              <el-select
                clearable
                v-model="sourceModel"
                style="width: 100%"
                placeholder="请选择来源"
                multiple
                collapse-tags
                @change="sourceChangeEvent"
              >
                <el-option
                  v-for="item in sourceData"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
liushikai committed
67
                >
潘际乾 committed
68 69 70
                </el-option>
              </el-select>
            </el-form-item>
71
          </c-col>
潘际乾 committed
72 73
        </c-col>
      </el-row>
fukai committed
74

潘际乾 committed
75
      <el-row>
潘际乾 committed
76
        <c-col :span="24" style="">
潘际乾 committed
77 78 79 80 81 82 83 84 85
          <c-col :span="8">
            <el-form-item
              label="选择用户"
              prop="usfmod.flt"
              style="width: 100%"
            >
              <!-- <c-col :span="20"> -->
              <c-select
                v-model="model.usfmod.flt"
86
                style="width: 100%"
nanrui committed
87
                placeholder="请选择选择用户"
88
              >
潘际乾 committed
89 90 91 92 93
                <el-option
                  v-for="item in codes.flt"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
liushikai committed
94
                >
潘际乾 committed
95 96 97 98 99 100 101 102 103 104
                </el-option>
              </c-select>
              <!-- </c-col> -->
              <!-- <c-col :span="4" style="text-align: right">
                  <c-button
                    size="small"
                    type="primary"
                    style="margin: 0 0"
                    icon="el-icon-search"
                    @click="onUsfmodShwflt"
105
                  >
潘际乾 committed
106 107 108 109
                  </c-button>
                </c-col> -->
            </el-form-item>
          </c-col>
fukai committed
110

潘际乾 committed
111 112 113 114 115
          <c-col :span="8">
            <el-form-item label="业务描述" prop="seltxt" style="width: 100%">
              <c-input
                v-model="model.seltxt"
                maxlength="32"
nanrui committed
116
                placeholder="请输入业务描述"
潘际乾 committed
117 118 119
              ></c-input>
            </el-form-item>
          </c-col>
fukai committed
120

潘际乾 committed
121 122 123 124 125 126 127 128 129 130 131 132
          <c-col :span="8">
            <el-form-item label="业务标志" prop="dflg" style="width: 100%">
              <c-select
                v-model="model.dflg"
                style="width: 100%"
                placeholder="请选择国内国际标志"
              >
                <el-option label="All" value="1"></el-option>
                <el-option label="国内业务" value="2"></el-option>
                <el-option label="国际业务" value="3"></el-option>
              </c-select>
            </el-form-item>
133
          </c-col>
潘际乾 committed
134
        </c-col>
135

潘际乾 committed
136
        <c-col :span="24" style="">
潘际乾 committed
137 138 139 140 141
          <c-col :span="8" v-if="model.usfmod.flt === '<SELU>'">
            <el-form-item label="经办柜员" style="width: 100%">
              <c-input></c-input>
            </el-form-item>
          </c-col>
liushikai committed
142

潘际乾 committed
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167
          <c-col :span="8" v-else-if="model.usfmod.flt === '<SELB>'">
            <el-form-item label="归属机构" style="width: 100%">
              <c-input></c-input>
            </el-form-item>
          </c-col>
          <c-col :span="8" v-else>
            <el-form-item
              label=""
              style="width: 100%; height: 36.8px; margin: 0 0 0 0"
            >
            </el-form-item>
          </c-col>
          <c-col :span="16" style="text-align: right">
            <el-button size="small" @click="handleReset">重置</el-button>
            <el-button
              type="primary"
              icon="el-icon-search"
              size="small"
              @click="handleSearch"
              >查询</el-button
            >
          </c-col>
        </c-col>
      </el-row>
    </el-form>
fukai committed
168

潘际乾 committed
169
    <c-col :span="24" style="">
wangren committed
170
      <div style="border-bottom: 10px solid rgb(232, 232, 232)"></div>
潘际乾 committed
171
    </c-col>
liushikai committed
172
    <el-row>
潘际乾 committed
173
      <c-col :span="24" style="">
174 175
        <c-istream-table
          :list="stmData.data"
liushikai committed
176 177
          :columns="stmData.columns"
          :showButtonFlg="true"
178
        >
179 180
          <c-table-column fixed="right" prop="op" label="操作" width="165px">
            <template slot-scope="{ scope }">
wangren committed
181 182 183 184
              <c-button
                style="margin-left: 0"
                size="small"
                @click="onDetails(scope.$index, scope.row)"
185
                >详情
liushikai committed
186 187
              </c-button>
              <c-button
liushikai committed
188
                style="margin-left: 0"
liushikai committed
189 190
                size="small"
                type="primary"
191
                @click="continueEdit(scope.row)"
liushikai committed
192
                >处理
liushikai committed
193
              </c-button>
吴佳 committed
194 195 196 197 198 199 200
              <!-- <c-button
                style="margin-left: 0"
                size="small"
                type="primary"
                @click="choose(scope.$index)"
                >选择
              </c-button> -->
liushikai committed
201 202 203 204 205
              <el-popover placement="top-start" width="50" trigger="click">
                <!-- <c-button type="primary" size="small">指派</c-button>
                <c-button type="primary" size="small">删除</c-button> -->

                <ul class="table-button-item-list">
wangren committed
206 207 208 209 210 211 212 213 214 215
                  <li>
                    <c-button size="small" style="margin-left: 0"
                      >指派</c-button
                    >
                  </li>
                  <li>
                    <c-button size="small" style="margin-left: 0"
                      >删除</c-button
                    >
                  </li>
liushikai committed
216
                </ul>
wangren committed
217 218 219 220
                <a
                  slot="reference"
                  href="javascript:void(0)"
                  style="margin-left: 5px"
liushikai committed
221 222
                  ><i class="el-icon-more"></i
                ></a>
liushikai committed
223
              </el-popover>
liushikai committed
224
            </template>
225
          </c-table-column>
liushikai committed
226 227 228 229 230 231 232
        </c-istream-table>
      </c-col>
    </el-row>
    <el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
      <div class="m-list-btns"></div>
    </el-dialog>
  </div>
liuxin committed
233 234
</template>
<script>
liushikai committed
235
import Api from "~/service/Api";
wangren committed
236
import commonProcess from "~/mixin/commonProcess";
liushikai committed
237 238
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Sptsel/Event";
liuxin committed
239 240

export default {
liushikai committed
241
  inject: ["root"],
wangguangchao committed
242
  props: ["model", "codes"],
liushikai committed
243

wangren committed
244
  mixins: [commonProcess],
liushikai committed
245 246
  data() {
    return {
liushikai committed
247
      // saveColumns: [],
liushikai committed
248
      sourceModel: [],
249
      sourceData: [],
liushikai committed
250
      initdialog: false,
liushikai committed
251
      // detailDialog: false,
liushikai committed
252 253
      // setColumnFlg: false,
      // saveColumnFlg: true,
wangren committed
254

liushikai committed
255 256 257 258 259 260 261 262
      transactionStatus: {
        busiNo: "",
        modTimes: 0,
        postCount: 0,
        accCount: 0,
        earnCount: 0,
        earnAmt: 0,
      },
liushikai committed
263
      // setColumn: [],
liushikai committed
264 265
      stmData: {
        columns: [
liushikai committed
266
          '4 1 "交易代码" 80 ',
267
          '5 2 "业务编号" 300',
liushikai committed
268
          '6 3 "交易名称" 150',
liushikai committed
269
          //'1 4 "状态" 60 1 tdViewTypeEdit:0 1 SPT:STA',
wangren committed
270 271 272 273 274 275 276 277
          {
            index: 1,
            position: 4,
            width: 110,
            pattern: "code",
            label: "状态",
            code: this.codes.sptrelstatus,
          },
liushikai committed
278 279
          '17 5 "报文类型" 100',
          '18 6 "对方银行BIC" 110',
280
          // '7 7 "创建时间" 160 20 DateTime 1',
wangren committed
281 282 283 284 285 286 287
          {
            index: 7,
            position: 7,
            width: 140,
            pattern: "time",
            label: "创建时间",
          },
liushikai committed
288 289
          '19 8 "币种" 50',
          '20 9 "金额" 69 2 8 1 16',
liushikai committed
290
          '8 10 "创建人" 80',
liushikai committed
291 292 293 294
          '3 11 "当前操作柜员" 100',
          '3 12 "当前组别" 100',
          '3 13 "上次操作柜员" 100',
          '3 14 "来源" 50',
liushikai committed
295 296
          '3 15 "提示" 50 1 20:0 1 FormatINFDSP',
          // "19 15 \"Key\" 90",
liushikai committed
297
          '3 16 "提示信息" 300',
liushikai committed
298 299 300 301
        ],
        data: [],
      },
    };
302
  },
liushikai committed
303
  async mounted() {
304 305 306 307 308 309 310 311 312 313 314 315 316
    this.sourceData = [
      { label: "Incoming", value: "chkinc" },
      { label: "E-Trade", value: "chkdzt" },
      // { label: "Break", value: "chkpen" },
      { label: "Correction", value: "chkcor" },
      { label: "Automatic", value: "chkaut" },
      { label: "Reject", value: "chkdel" },
      { label: "网银", value: "chktco" },
      { label: "归档", value: "chkcan" },
      { label: "云平台", value: "chkypt" },
    ];
    // await this.handleSearch()
    // this.$store.commit("setTaskList", {key: "sptsel", val: this.stmData.data.length})
liushikai committed
317
  },
318

liushikai committed
319 320
  methods: {
    sourceChangeEvent(val) {
321 322 323
      this.sourceData.forEach((s) => {
        this.model[s.value] = "";
      });
liushikai committed
324
      val.forEach((element) => {
325
        this.model[element] = "t";
liushikai committed
326
      });
wangguangchao committed
327
    },
wangren committed
328

吴佳 committed
329 330 331 332 333 334 335 336 337 338 339 340 341 342 343
    // async choose(idx,row){
    //     var params = {selDst:"sptstm",selrow:[idx+1]}
      
    //    let rtnmsg = await this.executeRule("sptstm" , params) //SPTSTM
    //     if(rtnmsg.respCode == SUCCESS)
    //     {
    //       this.stmData.data = rtnmsg.data.sptstm.rows;
    //     }
    //     else
    //     {
    //       this.$notify.error({title: '错误',message: '服务请求失败!'});
    //     }
      
    // },

344
    ...Event,
liushikai committed
345
  },
346
  created: function () {
liushikai committed
347 348 349 350 351 352 353
    // this.setColumn = this.stmData.columns.map((item, index) => {
    //   let begIdx = item.indexOf('"');
    //   let endIdx = item.indexOf('"', begIdx + 1);
    //   let label = item.substring(begIdx + 1, endIdx);
    //   return { label, value: true, index };
    // });
    // this.columnGroup = this.setColumn.map((item) => item.index);
354
  },
liushikai committed
355
};
liuxin committed
356
</script>
liushikai committed
357
<style scoped>
liushikai committed
358
/* .showColumnDialog >>> .el-dialog__body {
359 360
  padding-bottom: 10px;
}
liushikai committed
361
.showColumnDialog >>> .el-dialog__footer {
362 363
  padding: 0 20px 10px 20px;
}
liushikai committed
364
.detailDialogClass >>> .el-dialog {
liushikai committed
365
  height: 650px;
liushikai committed
366
} */
wangren committed
367
.table-button-item-list {
liushikai committed
368 369 370 371 372 373 374 375 376 377
  padding: 0;
  margin: 0;
}
.table-button-item-list li {
  list-style: none;
  padding: 5px 0;
  text-align: center;
  color: #606266;
  cursor: pointer;
}
liuxin committed
378
</style>