Menu.vue 9.62 KB
Newer Older
wangguangchao committed
1 2
<template>
  <div class="eibs-tab">
liushikai committed
3 4
    <!-- <c-list-search @form-reset="sptfndHandleReset" @form-search="sptfndHandleSearch"> -->
    <!-- <template v-slot="searchSlot"> -->
潘际乾 committed
5
      
liushikai committed
6 7 8 9 10 11 12 13
    <el-form
      class="m-table-search-form"
      ref="paramsForm"
      label-position="right"
      label-width="110px"
      size="small"
    >
      <el-row>
潘际乾 committed
14
        <c-col :span="24" style="">
liushikai committed
15 16 17 18 19 20
          <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
21
                placeholder="请输入业务编号"
liushikai committed
22 23 24
              ></c-input>
            </el-form-item>
          </c-col>
wangguangchao committed
25

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

          <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"
                style="width: 100%"
nanrui committed
60
                placeholder="请选择选择用户"
liushikai committed
61 62 63 64 65 66
              >
                <el-option
                  v-for="item in codes.flt"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
wangguangchao committed
67
                >
liushikai committed
68 69 70 71 72 73
                </el-option>
              </c-select>
            </el-form-item>
          </c-col>
        </c-col>
      </el-row>
wangguangchao committed
74

liushikai committed
75
      <el-row>
潘际乾 committed
76
        <c-col :span="24" style="">
liushikai committed
77 78 79 80 81
          <c-col :span="8">
            <el-form-item label="业务描述" prop="seltxt" style="width: 100%">
              <c-input
                v-model="model.seltxt"
                maxlength="32"
wangna committed
82
                placeholder="请输入业务描述"
liushikai committed
83 84 85
              ></c-input>
            </el-form-item>
          </c-col>
wangguangchao committed
86

liushikai committed
87 88 89 90 91 92 93
          <c-col :span="8">
            <el-form-item label="业务标志" prop="dflg" style="width: 100%">
              <c-select
                v-model="model.dflg"
                style="width: 100%"
                placeholder="请选择国内国际标志"
              >
94
                <el-option label="所有业务" value="1"></el-option>
liushikai committed
95 96 97 98 99 100 101
                <el-option label="国内业务" value="2"></el-option>
                <el-option label="国际业务" value="3"></el-option>
              </c-select>
            </el-form-item>
          </c-col>
          <c-col :span="8" v-if="model.usfmod.flt === '<SELU>'">
            <el-form-item label="经办柜员" style="width: 100%">
liuxin committed
102 103 104 105 106 107 108 109 110
              <c-input
                style="width: 100%"
                v-model="model.usfmod.usr.extkey"
                maxlength="120"
                placeholder="请输入经办柜员"
                @keyup.enter.native="
                    showGridPromptDialog('usfmod.usr.extkey')
                "
              ></c-input>
liushikai committed
111 112 113 114 115 116 117
            </el-form-item>
          </c-col>
          <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>
wangguangchao committed
118

liushikai committed
119
          <c-col :span="8" style="text-align: right" v-else>
liushikai committed
120
            <el-button size="small" @click="sptfndHandleReset">重置</el-button>
liushikai committed
121 122 123 124
            <el-button
              type="primary"
              icon="el-icon-search"
              size="small"
liushikai committed
125
              @click="sptfndHandleSearch"
liushikai committed
126 127 128 129
              >查询</el-button
            >
          </c-col>
        </c-col>
潘际乾 committed
130
        <c-col :span="24" style="text-align: right;height:36.8px" v-if="model.usfmod.flt === '<SELU>'||model.usfmod.flt === '<SELB>'">
liushikai committed
131
            <el-button size="small" @click="sptfndHandleReset">重置</el-button>
liushikai committed
132 133 134 135
            <el-button
              type="primary"
              icon="el-icon-search"
              size="small"
liushikai committed
136
              @click="sptfndHandleSearch"
liushikai committed
137 138 139
              >查询</el-button
            >
          </c-col>
wangguangchao committed
140

潘际乾 committed
141
        <c-col :span="24" style="">
liushikai committed
142 143 144
        </c-col>
      </el-row>
    </el-form>
潘际乾 committed
145

潘际乾 committed
146
    <c-col :span="24" style="">
潘际乾 committed
147
      <div style="border-bottom: 10px solid rgb(232, 232, 232)">
liushikai committed
148
      </div>
潘际乾 committed
149
    </c-col>
wangguangchao committed
150
    <el-row>
潘际乾 committed
151
      <c-col :span="24" style="">
152
        <c-istream-table :list="stmData.data" :columns="stmData.columns" :showButtonFlg="true">
wangguangchao committed
153
          <el-table-column fixed="right" prop="op" label="操作" width="140px">
liushikai committed
154
            <template slot="header">
nanrui committed
155
              <c-col :span="11" style="text-align:center"><span>操作</span></c-col>
liushikai committed
156
            </template>
wangguangchao committed
157 158 159 160 161 162 163 164 165 166
            <template slot-scope="scope">
              <c-button
                style="margin-left: 0"
                size="small"
                type="primary"
                @click="continueEdit(scope.row)"
              >
                处理
              </c-button>
              <c-button
nanrui committed
167
                style="margin-left: 5px"
wangguangchao committed
168 169
                size="small"
                type="primary"
hulei committed
170
                @click="onDelete(scope.$index,scope.row)"
wangguangchao committed
171
              >
liushikai committed
172
                删除
wangguangchao committed
173 174 175 176 177 178 179 180 181 182 183 184 185
              </c-button>
            </template>
          </el-table-column>
        </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>
</template>
<script>
import Api from "~/service/Api";
wangren committed
186
import commonProcess from "~/mixin/commonProcess";
wangguangchao committed
187 188 189 190 191 192 193
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Sptsel/Event";

export default {
  inject: ["root"],
  props: ["model", "codes"],

wangren committed
194
  mixins: [commonProcess],
wangguangchao committed
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209
  data() {
    return {
      //sourceModel: [],
      sourceData: [],
      initdialog: false,
      transactionStatus: {
        busiNo: "",
        modTimes: 0,
        postCount: 0,
        accCount: 0,
        earnCount: 0,
        earnAmt: 0,
      },
      stmData: {
        columns: [
nanrui committed
210
          '4 1 "交易代码" 100 ',
211 212
          '5 3 "业务编号" 300',
          '6 2 "交易名称" 180',
213
          // '1 4 "状态" 60 1 tdViewTypeEdit:0 1 SPT:STA',
wangna committed
214
          {index:1,position:4,width:100,pattern:'code',label:'状态',code:[{label:"待定",value:"PEN"}]},
wangguangchao committed
215
          '17 5 "报文类型" 100',
nanrui committed
216
          '18 6 "对方银行BIC" 130',
217
          // '7 7 "创建时间" 160 20 DateTime 1',
liushikai committed
218
          {index:7,position:7,width:140,pattern:'time',label:'创建时间'},
nanrui committed
219
          '19 8 "币种" 70',
wangguangchao committed
220 221 222 223 224
          '20 9 "金额" 69 2 8 1 16',

          // "20 7 \"Cur\" 30",
          // "21 8 \"Amt\" 69 2 8 1 16",
          // "1 9 \"Status\" 60 1 tdViewTypeEdit:0 1 SPT:STA",
nanrui committed
225 226
          '8 10 "创建人" 100',
          '3 11 "当前操作柜员" 120',
wangguangchao committed
227
          '3 12 "当前组别" 100',
nanrui committed
228 229 230
          '3 13 "上次操作柜员" 120',
          '3 14 "来源" 70',
          '3 15 "提示" 70 1 20:0 1 FormatINFDSP',
wangguangchao committed
231 232 233 234 235 236 237
          // "19 15 \"Key\" 90",
          '3 16 "提示信息" 300',
        ],
        data: [],
      },
    };
  },
liushikai committed
238
  async mounted() {
239 240
    // await this.sptfndHandleSearch()
    // this.$store.commit("setTaskList", {key: "sptbrk", val: this.stmData.data.length})
liushikai committed
241
  },
wangguangchao committed
242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330
  computed: {
    chkinc: {
      get() {
        return this.model.chkinc === "t";
      },
      set(val) {
        this.model.chkinc = val ? "t" : "";
      },
    },
    chkdzt: {
      get() {
        return this.model.chkdzt === "t";
      },
      set(val) {
        this.model.chkdzt = val ? "t" : "";
      },
    },
    chkpen: {
      get() {
        return this.model.chkpen === "t";
      },
      set(val) {
        this.model.chkpen = val ? "t" : "";
      },
    },
    chkcor: {
      get() {
        return this.model.chkcor === "t";
      },
      set(val) {
        this.model.chkcor = val ? "t" : "";
      },
    },
    chkaut: {
      get() {
        return this.model.chkaut === "t";
      },
      set(val) {
        this.model.chkaut = val ? "t" : "";
      },
    },
    chkdel: {
      get() {
        return this.model.chkdel === "t";
      },
      set(val) {
        this.model.chkdel = val ? "t" : "";
      },
    },
    chktco: {
      get() {
        return this.model.chktco === "t";
      },
      set(val) {
        this.model.chktco = val ? "t" : "";
      },
    },
    chkcan: {
      get() {
        return this.model.chkcan === "t";
      },
      set(val) {
        this.model.chkcan = val ? "t" : "";
      },
    },
    sourceModel: {
      get() {
        let arr = [];
        this.sourceData.forEach((element) => {
          if (this.model[element.value]) {
            arr.push(element.value);
          }
        });
        return arr;
      },
      set(val) {
        let set = new Set(val);
        this.sourceData.forEach((element) => {
          if (set.has(element.value)) {
            this.model[element.value] = true;
          } else {
            this.model[element.value] = false;
          }
        });
      },
    },
  },

  methods: { ...Event },
liushikai committed
331
  created: function () {},
wangguangchao committed
332 333 334 335
};
</script>
<style>
</style>