Menu.vue 9.75 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">
102
        <el-table-column fixed="right" prop="op" label="操作" width="250px" >
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)">处理
110 111
            </c-button>
            <c-button style="margin-left: 5px" size="small" @click="onChange(scope.row)" :disabled="scope.row.状态!='INC'">更改
nanrui committed
112
            </c-button>
113 114
             <el-popover placement="top-start" width="50" trigger="click">
             
nanrui committed
115 116 117 118 119 120 121 122 123 124 125
              <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
126
        </el-table-column>
nanrui committed
127 128
      </c-istream-table>
    </c-col>
liushikai committed
129 130 131 132
    <el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
      <div class="m-list-btns"></div>
    </el-dialog>
  </div>
liuxin committed
133 134
</template>
<script>
liushikai committed
135
import Api from "~/service/Api";
wangren committed
136
import commonProcess from "~/mixin/commonProcess";
liushikai committed
137 138
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Sptsel/Event";
liuxin committed
139 140

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

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

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

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

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

吴佳 committed
238 239 240 241 242 243 244 245 246
    //    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
247

吴佳 committed
248 249
    // },

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

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

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