Diaselp.vue 12.6 KB
Newer Older
wangguangchao committed
1 2
<template>
  <div class="eibs-tab">
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
    <c-list-search @form-reset="handleReset" @form-search="handleSearch">
      <template>
        <el-form
          class="m-table-search-form"
          ref="paramsForm"
          :inline="true"
          label-position="left"
          label-width="110px"
          size="small"
        >
          <el-row>
            <c-col :span="12">
              <el-form-item label="from">
                <el-date-picker
                  type="date"
                  v-model="model.diafro"
                  style="width: 45%"
                  placeholder="请选择Diary From date"
                ></el-date-picker>
                to
                <el-date-picker
                  type="date"
                  v-model="model.diatil"
                  style="width: 45%"
                  placeholder="请选择Diary Till date"
                ></el-date-picker>
              </el-form-item>
            </c-col>

            <c-col :span="12">
              <el-form-item label="Reasons" prop="reasen">
                <c-select
                  v-model="model.reasen"
                  style="width: 100%"
                  placeholder="请选择Reasons"
                >
wangguangchao committed
39
                  <el-option
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
                    v-for="item in codes.diatxt"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  >
                  </el-option>
                </c-select>
              </el-form-item>
            </c-col>
          </el-row>
          <el-row>
            <c-col :span="12">
              <el-form-item label="Reference" prop="searef">
                <c-input
                  v-model="model.searef"
                  maxlength="16"
                  style="width: 100%"
                  placeholder="请输入Selection Reference"
                ></c-input>
              </el-form-item>
            </c-col>

            <c-col :span="12">
              <el-form-item label="Bus.Sector" prop="seasec">
                <c-select
                  v-model="model.seasec"
                  style="width: 100%"
                  placeholder="请选择Business Sector"
                >
wangguangchao committed
69
                  <el-option
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
                    v-for="item in codes.bustxt"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  >
                  </el-option>
                </c-select>
              </el-form-item>
            </c-col>
          </el-row>
          <el-row>
            <c-col :span="12">
              <el-form-item label="Selection of Users" prop="usfmod.flt">
                <c-select
                  v-model="model.usfmod.flt"
                  style="width: 60%"
                  placeholder="请选择Filter"
                >
                  <el-option
                    v-for="item in codes.flt"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  >
                  </el-option>
                </c-select>
                <c-button size="small" type="primary" style="width: 30%">
                  show set
                </c-button>
              </el-form-item>
            </c-col>
wangguangchao committed
101

102 103 104 105 106 107 108 109 110 111
            <c-col :span="12">
              <el-form-item
                v-if="model.usfmod.flt == '<SELU>'"
                label="Selected User"
                prop="usfmod.usr.extkey"
              >
                <c-input
                  v-model="model.usfmod.usr.extkey"
                  maxlength="8"
                  placeholder="请输入User ID"
wangguangchao committed
112
                  style="width: 70%"
113
                ></c-input>
wangguangchao committed
114
                <c-button size="small" type="primary;width:10%">i</c-button>
115 116 117 118 119 120 121 122 123 124 125 126 127
              </el-form-item>
              <el-form-item
                v-if="model.usfmod.flt == '<SELB>'"
                label="Select Branch"
                prop="usfmod.selusb"
              >
                <c-select
                  v-model="model.usfmod.selusb"
                  style="width: 100%"
                  placeholder="请选择Select user branch"
                >
                </c-select>
              </el-form-item>
wangguangchao committed
128
            </c-col>
129
          </el-row>
wangguangchao committed
130

131 132 133 134 135
          <c-col :span="24"> </c-col>
        </el-form>
      </template>
    </c-list-search>

wangguangchao committed
136
    <div style="margin-top: 20px">
137 138 139 140 141 142
      <c-button
        size="small"
        type="primary"
        @click="onButdet"
        disabled="disabled"
      >
wangguangchao committed
143 144
        Display
      </c-button>
145 146 147 148 149 150
      <c-button
        size="small"
        type="primary"
        @click="onButdia"
        disabled="disabled"
      >
wangguangchao committed
151 152
        Modify
      </c-button>
153 154 155 156 157 158
      <c-button
        size="small"
        type="primary"
        @click="onButdel"
        disabled="disabled"
      >
wangguangchao committed
159 160
        Delete
      </c-button>
161 162 163 164 165 166
      <c-button
        size="small"
        type="primary"
        @click="onButprt"
        disabled="disabled"
      >
wangguangchao committed
167 168 169 170 171 172 173 174 175 176
        Print
      </c-button>
      <c-button
        size="small"
        type="primary"
        disabled="disabled"
        @click="onButconsel"
      >
        Selection
      </c-button>
177 178 179 180 181 182
      <c-button
        size="small"
        type="primary"
        @click="onButconcal"
        disabled="disabled"
      >
wangguangchao committed
183 184
        Process
      </c-button>
185 186 187
      <c-button size="small" type="primary" disabled="disabled">
        导Excel
      </c-button>
wangguangchao committed
188 189
    </div>

190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238
    <el-row>
      <c-istream-table
        :list="stmData.data"
        :columns="stmData.columns"
        :showSelection="true"
        v-on:multipleSelect="multipleSelect"
      >
      </c-istream-table>
    </el-row>
    <el-row style="margin-top: 2rem">
      <el-card class="box-card">
        <div slot="header" class="clearfix">
          <span>交易状态信息 —— {{ transactionStatus.busiNo }}</span>
        </div>
        <div class="text item">
          <form class="el-form--label-left el-form--inline">
            <div class="el-form-item">
              <label class="el-form-item__label">修改次数:</label>
              <div class="el-form-item__content">
                <span>{{ transactionStatus.modTimes }}</span>
              </div>
            </div>
            <div class="el-form-item">
              <label class="el-form-item__label transstatus">交单次数:</label>
              <div class="el-form-item__content">
                <span>{{ transactionStatus.postCount }}</span>
              </div>
            </div>
            <div class="el-form-item">
              <label class="el-form-item__label transstatus">付款次数:</label>
              <div class="el-form-item__content">
                <span>{{ transactionStatus.earnCount }}</span>
              </div>
            </div>
            <div class="el-form-item">
              <label class="el-form-item__label transstatus">付款金额:</label>
              <div class="el-form-item__content">
                <span>{{ transactionStatus.earnAmt }} CNY</span>
              </div>
            </div>
          </form>
        </div>
      </el-card>
    </el-row>
    <el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
      <div class="m-list-btns"></div>
    </el-dialog>

    <!--
wangguangchao committed
239 240 241 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 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356
	<c-col :span="12">
	    <span  v-text="model.usfmod.usftxt"   data-path=".usfmod.usftxt" > </span>
	</c-col>
                  
       <c-col :span="12">
        <el-form-item label="Filter" prop="usfmod.flt">
            <c-select v-model="model.usfmod.flt" style="width:100%" placeholder="请选择Filter">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onUsfmodShwflt">
            Sho&w Set
        </c-button>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onButdet">
            &Display
        </c-button>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="Selection Reference" prop="searef">
            <c-input  v-model="model.searef" maxlength="16"  placeholder="请输入Selection Reference"></c-input>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="Business Sector" prop="seasec">
            <c-select v-model="model.seasec" style="width:100%" placeholder="请选择Business Sector">
              </c-select>
        </el-form-item>
       </c-col>
                  
	<c-col :span="12">
	    <span  v-text="model.usfmod.labtxt"   data-path=".usfmod.labtxt" > </span>
	</c-col>
                  
       <c-col :span="12">
        <el-form-item label="Selected User Group Set" prop="usfmod.selusgset">
            <c-select v-model="model.usfmod.selusgset" style="width:100%" placeholder="请选择Selected User Group Set">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="User ID" prop="usfmod.usr.extkey">
            <c-input  v-model="model.usfmod.usr.extkey" maxlength="8"  placeholder="请输入User ID"></c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Selected User Group" prop="usfmod.selusg">
            <c-select v-model="model.usfmod.selusg" style="width:100%" placeholder="请选择Selected User Group">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Select user branch" prop="usfmod.selusb">
            <c-select v-model="model.usfmod.selusb" style="width:100%" placeholder="请选择Select user branch">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="" prop="usfmod.usrget.sdamod.seainf">
            <c-input  v-model="model.usfmod.usrget.sdamod.seainf"  placeholder="请输入"></c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onButdia">
            &Modify
        </c-button>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Display Stream" prop="dspstm">
            <c-input  v-model="model.dspstm"  placeholder="请输入Display Stream"></c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small"  icon="el-icon-delete" @click="onButdel">
            &Delete
        </c-button>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onButprt">
            P&rint
        </c-button>
       </c-col>
                                   
       <c-col :span="12">
        <c-button size="small" type="primary" icon="el-icon-search" @click="onButconsel">
            &Selection
        </c-button>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onButconcal">
            &Process
        </c-button>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onButexi">
            E&xit
        </c-button>
       </c-col>
       -->
  </div>
</template>
<script>
357
import Api from "~/service/Api";
wangguangchao committed
358
import CommonProcess from "~/mixin/CommonProcess";
359 360
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Diasel/Event";
wangguangchao committed
361 362

export default {
363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [CommonProcess],
  data() {
    return {
      initdialog: false,
      transactionStatus: {
        busiNo: "",
        modTimes: 0,
        postCount: 0,
        accCount: 0,
        earnCount: 0,
        earnAmt: 0,
      },
      stmData: {
        columns: [
          '1 1 "Date" 1',
380 381 382 383 384 385 386 387 388 389 390
          '2 2 "Reason" 1',
          '3 3 "Reference" 1',
          '4 4 "Description" 1',
          '5 5 "Transaction" 1',
          '6 6 "User" 1',
          '7 7 "Group" 1',
          '8 8 "客户号" 1',
          '9 9 "客户名称" 1',
          '10 10 "币种" 1',
          '11 11 "金额" 1',
          '12 12 "预计核验" 1',
391 392 393 394 395 396 397
        ],
        data: [],
      },
      relrowDisabled: true,
      multipleSelection: [],
    };
  },
wangguangchao committed
398 399
  methods: {
    multipleSelect(val) {
400 401 402
      // TODO 根据Status判断按钮是否禁用
      this.relrowDisabled = !(val.length > 0);
      this.multipleSelection = val;
wangguangchao committed
403
    },
404 405 406
    getSelectedData() {
      return this.multipleSelection.map((idx) => this.stmData.data[idx]);
    },
wangguangchao committed
407 408
    ...Event,
  },
409 410
  created: function () {},
};
wangguangchao committed
411 412 413
</script>
<style>
</style>