Menu.vue 9.6 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

6
    <el-form class="m-table-search-form" ref="paramsForm" label-position="right" label-width="110px"
nanrui committed
7
      size="small">
潘际乾 committed
8
      <el-row>
潘际乾 committed
9
        <c-col :span="24" style="">
潘际乾 committed
10 11
          <c-col :span="8">
            <el-form-item label="业务编号" prop="selobj" style="width: 100%">
nanrui committed
12
              <c-input style="width: 100%" v-model="model.selobj" maxlength="32" placeholder="请输入业务编号"></c-input>
潘际乾 committed
13 14
            </el-form-item>
          </c-col>
liushikai committed
15

潘际乾 committed
16 17 18
          <c-col :span="8">
            <el-form-item label="创建时间" style="width: 100%">
              <c-col :span="11">
nanrui committed
19 20
                <c-date-picker type="date" v-model="model.inidatfro" style="width: 100%" placeholder="请选择创建时间">
                </c-date-picker>
潘际乾 committed
21 22 23 24 25
              </c-col>
              <c-col :span="2" style="text-align: center">
                <label style="display: inline-block; width: 100%">-</label>
              </c-col>
              <c-col :span="11">
nanrui committed
26 27
                <c-date-picker type="date" v-model="model.inidattil" style="width: 100%" placeholder="请选择创建时间">
                </c-date-picker>
潘际乾 committed
28 29 30 31 32 33
              </c-col>
            </el-form-item>
          </c-col>

          <c-col :span="8">
            <el-form-item label="来源" style="width: 100%" prop="sourceModel">
nanrui committed
34 35 36
              <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">
潘际乾 committed
37 38 39
                </el-option>
              </el-select>
            </el-form-item>
40
          </c-col>
潘际乾 committed
41 42
        </c-col>
      </el-row>
fukai committed
43

潘际乾 committed
44
      <el-row>
潘际乾 committed
45
        <c-col :span="24" style="">
潘际乾 committed
46
          <c-col :span="8">
nanrui committed
47
            <el-form-item label="选择用户" prop="usfmod.flt" style="width: 100%">
潘际乾 committed
48
              <!-- <c-col :span="20"> -->
nanrui committed
49 50
              <c-select v-model="model.usfmod.flt" style="width: 100%" placeholder="请选择选择用户">
                <el-option v-for="item in codes.flt" :key="item.value" :label="item.label" :value="item.value">
潘际乾 committed
51 52 53 54
                </el-option>
              </c-select>
            </el-form-item>
          </c-col>
fukai committed
55

潘际乾 committed
56 57
          <c-col :span="8">
            <el-form-item label="业务描述" prop="seltxt" style="width: 100%">
nanrui committed
58
              <c-input v-model="model.seltxt" maxlength="32" placeholder="请输入业务描述"></c-input>
潘际乾 committed
59 60
            </el-form-item>
          </c-col>
fukai committed
61

潘际乾 committed
62 63
          <c-col :span="8">
            <el-form-item label="业务标志" prop="dflg" style="width: 100%">
nanrui committed
64
              <c-select v-model="model.dflg" style="width: 100%" placeholder="请选择国内国际标志">
65
                <el-option label="所有业务" value="1"></el-option>
潘际乾 committed
66 67 68 69
                <el-option label="国内业务" value="2"></el-option>
                <el-option label="国际业务" value="3"></el-option>
              </c-select>
            </el-form-item>
70
          </c-col>
潘际乾 committed
71
        </c-col>
72

潘际乾 committed
73
        <c-col :span="24" style="">
潘际乾 committed
74 75 76 77 78
          <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
79

潘际乾 committed
80 81 82 83 84 85
          <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>
nanrui committed
86
            <el-form-item label="" style="width: 100%; height: 36.8px; margin: 0 0 0 0">
潘际乾 committed
87 88 89 90
            </el-form-item>
          </c-col>
          <c-col :span="16" style="text-align: right">
            <el-button size="small" @click="handleReset">重置</el-button>
nanrui committed
91
            <el-button type="primary" icon="el-icon-search" size="small" @click="handleSearch">查询</el-button>
潘际乾 committed
92 93 94 95
          </c-col>
        </c-col>
      </el-row>
    </el-form>
fukai committed
96

潘际乾 committed
97
    <c-col :span="24" style="">
wangren committed
98
      <div style="border-bottom: 10px solid rgb(232, 232, 232)"></div>
潘际乾 committed
99
    </c-col>
nanrui committed
100 101
    <c-col :span="24">
      <c-istream-table :list="stmData.data" :columns="stmData.columns" :showButtonFlg="true">
nanrui committed
102
        <el-table-column fixed="right" prop="op" label="操作" width="165px" >
nanrui committed
103 104 105 106 107 108
          <template slot="header">
            <c-col :span="11" style="text-align:center"><span>操作</span></c-col>
          </template>
          <template slot-scope="scope">
            <c-button style="margin-left: 0" size="small" @click="onDetails(scope.$index, scope.row)">详情
            </c-button>
109
            <c-button style="margin-left: 5px" size="small" type="primary" @click="continueEdit(scope.row)">处理
nanrui committed
110
            </c-button>
111 112
             <el-popover placement="top-start" width="50" trigger="click">
             
nanrui committed
113 114 115 116 117 118 119 120 121 122 123
              <ul class="table-button-item-list">
                <li>
                  <c-button size="small" style="margin-left: 0">指派</c-button>
                </li>
                <li>
                  <c-button size="small" style="margin-left: 0">删除</c-button>
                </li>
              </ul>
              <a slot="reference" href="javascript:void(0)" style="margin-left: 5px"><i class="el-icon-more"></i></a>
            </el-popover>
          </template>
nanrui committed
124
        </el-table-column>
nanrui committed
125 126
      </c-istream-table>
    </c-col>
liushikai committed
127 128 129 130
    <el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
      <div class="m-list-btns"></div>
    </el-dialog>
  </div>
liuxin committed
131 132
</template>
<script>
liushikai committed
133
import Api from "~/service/Api";
wangren committed
134
import commonProcess from "~/mixin/commonProcess";
liushikai committed
135 136
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Sptsel/Event";
liuxin committed
137 138

export default {
liushikai committed
139
  inject: ["root"],
wangguangchao committed
140
  props: ["model", "codes"],
liushikai committed
141

wangren committed
142
  mixins: [commonProcess],
liushikai committed
143 144
  data() {
    return {
liushikai committed
145
      // saveColumns: [],
liushikai committed
146
      sourceModel: [],
147
      sourceData: [],
liushikai committed
148
      initdialog: false,
liushikai committed
149
      // detailDialog: false,
liushikai committed
150 151
      // setColumnFlg: false,
      // saveColumnFlg: true,
wangren committed
152

liushikai committed
153 154 155 156 157 158 159 160
      transactionStatus: {
        busiNo: "",
        modTimes: 0,
        postCount: 0,
        accCount: 0,
        earnCount: 0,
        earnAmt: 0,
      },
liushikai committed
161
      // setColumn: [],
liushikai committed
162 163
      stmData: {
        columns: [
nanrui committed
164
          '4 1 "交易代码" 100 ',
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
          '6 2 "交易名称" 150',
          '5 3 "业务摘要" 300',
         

'8 4 "创建人" 100',
 // '7 7 "创建时间" 160 20 DateTime 1',
          {
            index: 7,
            position: 5,
            width: 140,
            pattern: "time",
            label: "创建时间",
          },


liushikai committed
180
          //'1 4 "状态" 60 1 tdViewTypeEdit:0 1 SPT:STA',
wangren committed
181 182
          {
            index: 1,
183 184
            position: 6,
            width: 85,
wangren committed
185 186 187 188
            pattern: "code",
            label: "状态",
            code: this.codes.sptrelstatus,
          },
189 190 191 192 193 194
          '17 7 "报文类型" 100',
          '18 8 "对方银行BIC" 130',
         
          '19 9 "币种" 70',
          '20 10 "金额" 100 2 8 1 16',
          
nanrui committed
195
          '3 11 "当前操作柜员" 120',
liushikai committed
196
          '3 12 "当前组别" 100',
nanrui committed
197 198 199
          '3 13 "上次操作柜员" 120',
          '3 14 "来源" 70',
          '3 15 "提示" 70 1 20:0 1 FormatINFDSP',
liushikai committed
200
          // "19 15 \"Key\" 90",
liushikai committed
201
          '3 16 "提示信息" 300',
liushikai committed
202 203 204 205
        ],
        data: [],
      },
    };
206
  },
liushikai committed
207
  async mounted() {
208
    this.sourceData = [
wangna committed
209 210
      { label: "传入", value: "chkinc" },
      { label: "电子贸易", value: "chkdzt" },
211
      // { label: "Break", value: "chkpen" },
wangna committed
212 213 214
      { label: "修改", value: "chkcor" },
      { label: "自动", value: "chkaut" },
      { label: "拒绝", value: "chkdel" },
215 216 217 218 219 220
      { 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
221
  },
222

liushikai committed
223 224
  methods: {
    sourceChangeEvent(val) {
225 226 227
      this.sourceData.forEach((s) => {
        this.model[s.value] = "";
      });
liushikai committed
228
      val.forEach((element) => {
229
        this.model[element] = "t";
liushikai committed
230
      });
wangguangchao committed
231
    },
wangren committed
232

吴佳 committed
233 234
    // async choose(idx,row){
    //     var params = {selDst:"sptstm",selrow:[idx+1]}
nanrui committed
235

吴佳 committed
236 237 238 239 240 241 242 243 244
    //    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: '服务请求失败!'});
    //     }
nanrui committed
245

吴佳 committed
246 247
    // },

248
    ...Event,
nanrui committed
249 250 251 252 253
    getInidatfro() {
      let datetime = new Date();
      datetime = datetime.setDate(datetime.getDate() - 10);
      this.model.inidatfro = new Date(datetime);
    }
liushikai committed
254
  },
255
  created: function () {
liushikai committed
256 257 258 259 260 261 262
    // 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);
nanrui committed
263
    this.getInidatfro();
264
  },
liushikai committed
265
};
liuxin committed
266
</script>
liushikai committed
267
<style scoped>
liushikai committed
268
/* .showColumnDialog >>> .el-dialog__body {
269 270
  padding-bottom: 10px;
}
liushikai committed
271
.showColumnDialog >>> .el-dialog__footer {
272 273
  padding: 0 20px 10px 20px;
}
liushikai committed
274
.detailDialogClass >>> .el-dialog {
liushikai committed
275
  height: 650px;
liushikai committed
276
} */
wangren committed
277
.table-button-item-list {
liushikai committed
278 279 280
  padding: 0;
  margin: 0;
}
nanrui committed
281

liushikai committed
282 283 284 285 286 287 288
.table-button-item-list li {
  list-style: none;
  padding: 5px 0;
  text-align: center;
  color: #606266;
  cursor: pointer;
}
nanrui committed
289 290 291 292 293

c-istream-table label {
  text-align: right;
  color: yellow;
}
liuxin committed
294
</style>