Inftrnps.vue 10 KB
Newer Older
wangguangchao committed
1 2
<template>
  <div class="eibs-tab">
liushikai committed
3 4
    <!-- <c-list-search @form-reset="handleReset" @form-search="handleSearch"> -->
    <!-- <template v-slot="searchSlot"> -->
潘际乾 committed
5

liushikai 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="">
liushikai committed
16 17 18 19 20 21 22 23 24
          <c-col :span="8">
            <el-form-item
              label="业务编号"
              prop="trncorco.ownref"
              style="width: 100%"
            >
              <c-input
                v-model="model.trncorco.ownref"
                maxlength="16"
nanrui committed
25
                placeholder="请输入业务编号"
liushikai committed
26 27 28 29
              ></c-input>
            </el-form-item>
          </c-col>
          <c-col :span="8">
潘际乾 committed
30
            <el-form-item label="创建时间" style="width: 100%" prop="trncorco.inidatfro">
liushikai committed
31
              <c-col :span="11">
32
                <c-date-picker
liushikai committed
33 34
                  type="date"
                  v-model="model.trncorco.inidatfro"
wangguangchao committed
35
                  style="width: 100%"
36
                  placeholder="请选择开始时间"
37
                ></c-date-picker>
wangguangchao committed
38
              </c-col>
liushikai committed
39 40 41 42
              <c-col :span="2" style="text-align: center">
                <label style="display: inline-block; width: 100%">-</label>
              </c-col>
              <c-col :span="11">
43
                <c-date-picker
liushikai committed
44 45
                  type="date"
                  v-model="model.trncorco.inidattil"
wangguangchao committed
46
                  style="width: 100%"
47
                  placeholder="请选择结束时间"
48
                ></c-date-picker>
wangguangchao committed
49
              </c-col>
liushikai committed
50 51
            </el-form-item>
          </c-col>
wangguangchao committed
52

liushikai committed
53 54 55 56 57
          <c-col :span="8">
            <el-form-item label="经办柜员" prop="usrcon" style="width: 100%">
              <c-select
                v-model="model.usrcon"
                style="width: 100%"
nanrui committed
58
                placeholder="请选择经办柜员"
liushikai committed
59 60 61 62 63 64
              >
                <el-option
                  v-for="item in codes.usrsort"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
wangguangchao committed
65
                >
liushikai committed
66 67 68 69 70 71 72
                </el-option>
              </c-select>
            </el-form-item>
          </c-col>
        </c-col>
      </el-row>
      <!--            
wangguangchao committed
73 74 75 76 77 78
                    <c-col :span="12">
                      <el-form-item label="Drag  Drop Sender">
                          <c-input  v-model="model.atpget.sdamod.dadsnd"  placeholder="请输入Drag  Drop Sender"></c-input>
                      </el-form-item>
                    </c-col>
                    -->
liushikai committed
79
      <el-row>
潘际乾 committed
80
        <c-col :span="24" style="">
liushikai committed
81 82 83 84 85 86 87 88 89
          <c-col :span="8">
            <el-form-item
              label="业务状态"
              prop="trncorco.relflg"
              style="width: 100%"
            >
              <c-select
                v-model="model.trncorco.relflg"
                style="width: 100%"
wangna committed
90
                placeholder="请选择业务状态"
liushikai committed
91 92 93 94 95 96
              >
                <el-option
                  v-for="item in relflgCodes"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
wangguangchao committed
97
                >
liushikai committed
98 99 100 101
                </el-option>
              </c-select>
            </el-form-item>
          </c-col>
wangguangchao committed
102

liushikai committed
103 104 105 106 107
          <c-col :span="8">
            <el-form-item label="业务机构" prop="bchcon" style="width: 100%">
              <c-select
                v-model="model.bchcon"
                style="width: 100%"
wangna committed
108
                placeholder="请选择业务机构"
liushikai committed
109 110 111 112 113 114 115 116 117 118 119
              >
                <el-option
                  v-for="item in codes.bchtyp"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                >
                </el-option>
              </c-select>
            </el-form-item>
          </c-col>
wangguangchao committed
120

liushikai committed
121
          <!--                           
wangguangchao committed
122 123 124 125 126 127
                    <c-col :span="12">
                      <el-form-item label="and">
                          
                      </el-form-item>
                    </c-col> -->

liushikai committed
128 129 130 131 132 133 134 135
          <c-col :span="8">
            <el-form-item label="交易代码" prop="atp.cod" style="width: 100%">
              <c-col :span="24">
                <c-col :span="20">
                  <c-input
                    v-model="model.atp.cod"
                    maxlength="6"
                    style="width: 95%"
nanrui committed
136
                    placeholder="请输入交易代码 "
137
                    @keyup.enter.native="showGridPromptDialog('atp.cod')"
liushikai committed
138 139 140
                  ></c-input>
                </c-col>
                <!-- <c-input  v-model="model.atpget.sdamod.seainf"  style="width:10%" placeholder="i"></c-input> -->
wangguangchao committed
141

liushikai committed
142 143 144 145 146 147 148 149 150
                <c-col :span="4">
                  <c-button
                    size="small"
                    style="width: 100%; margin-left: 0"
                    type="primary"
                    @click="onSeainf"
                    icon="el-icon-search"
                  ></c-button>
                </c-col>
wangguangchao committed
151
              </c-col>
liushikai committed
152 153 154
            </el-form-item>
          </c-col>
        </c-col>
潘际乾 committed
155
        <c-col :span="24" style="">
liushikai committed
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171
          <c-col :span="8">
            <el-form-item
              label="业务标志"
              prop="trncorco.dflg"
              style="width: 100%"
            >
              <c-select
                v-model="model.trncorco.dflg"
                style="width: 100%"
                placeholder="请选择业务标志"
              >
                <el-option
                  v-for="item in codes.dflg"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
wangguangchao committed
172
                >
liushikai committed
173 174 175 176
                </el-option>
              </c-select>
            </el-form-item>
          </c-col>
wangguangchao committed
177

liushikai committed
178 179 180 181 182
          <c-col :span="8">
            <el-form-item label="交易名称" prop="atptxt" style="width: 100%">
              <c-input
                v-model="model.atptxt"
                maxlength="37"
nanrui committed
183
                placeholder="请输入交易名称"
liushikai committed
184 185 186 187 188 189 190 191 192
              ></c-input>
            </el-form-item>
          </c-col>
          <c-col :span="8" style="text-align: right">
            <el-button size="small" @click="handleReset">重置</el-button>
            <el-button
              type="primary"
              icon="el-icon-search"
              size="small"
193
              @click="trnfndhandleSearch"
liushikai committed
194 195 196 197 198 199
              >查询</el-button
            >
          </c-col>
        </c-col>
      </el-row>
    </el-form>
潘际乾 committed
200

潘际乾 committed
201
    <c-col :span="24" style="">
潘际乾 committed
202
      <div style="border-bottom: 10px solid rgb(232, 232, 232)">
liushikai committed
203
      </div>
潘际乾 committed
204
    </c-col>
nanrui committed
205 206 207 208 209 210 211 212 213 214
    <el-row>
      <c-col :span="24" style="">
        <c-istream-table :list="stmData.data" :columns="stmData.columns" style="width:100%" :showButtonFlg="true">
          <el-table-column
            fixed="right"
            prop="display"
            label="操作"
            width="140px"
          >
          <template slot="header">
215
              <c-col :span="11" style="text-align:center"><span>操作</span></c-col>
nanrui committed
216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231
              <!-- <c-col :span="12" style="text-align:right"><c-button icon="el-icon-s-tools"></c-button></c-col> -->
            </template>
            <template slot-scope="scope">
              <c-button
                style="margin-left: 0"
                size="small"
                @click="onFinishDetail(scope.$index,scope.row)"
              >
                详情
              </c-button>
              <!--
              <c-button style="margin-left: 0" size="small" type="primary">
                快照
              </c-button>
              -->
              <c-button
232
                style="margin-left: 5px"
nanrui committed
233 234 235 236 237 238 239 240 241 242
                size="small"             
              >
                冲正
              </c-button>
            </template>
          </el-table-column>
        </c-istream-table>
      </c-col>
    </el-row>

wangguangchao committed
243 244 245 246
  </div>
</template>
<script>
import Api from "~/service/Api";
wangren committed
247
import commonProcess from "~/mixin/commonProcess";
wangguangchao committed
248 249 250 251 252 253
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Trnrel/Event";

export default {
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
254
  mixins: [commonProcess],
wangguangchao committed
255 256 257 258 259 260 261 262 263 264 265 266 267
  components: {},
  data() {
    return {
      initdialog: false,
      transactionStatus: {
        busiNo: "",
        modTimes: 0,
        postCount: 0,
        accCount: 0,
        earnCount: 0,
        earnAmt: 0,
      },
      stmData: {
liushikai committed
268
        columns: [
269
          '10 1 "交易代码" 100',
liushikai committed
270
          '11 2 "业务编号" 170',
271 272 273
          '17 3 "摘要信息" 300',
          '12 4 "币种" 70',
          '13 5 "金额" 100',
274
          // '14 6 "创建时间" 170',
liushikai committed
275
          {index:14,position:6,width:140,pattern:'time',label:'创建时间'},
276 277 278
          '9 7 "签名要求" 100',
          '2 8 "签名状态" 100',
          '16 9 "经办柜员" 100',
279
        //   '0 10 "业务状态" 80',
280
          {index:0,position:10,width:100,pattern:'code',label:'业务状态',code:[{ label: "Final", value: "F" },
281 282
                                                                            { label: "Released", value: "R" },]},
          '15 11 "业务机构" 200',
wangguangchao committed
283 284 285 286
        ],
        data: [],
      },
      relrowDisabled: true,
liushikai committed
287
      relflgCodes: [],
wangguangchao committed
288 289 290 291 292 293 294 295 296 297 298 299 300
      // multipleSelection: [],
    };
  },
  methods: {
    // multipleSelect(val) {
    //   // TODO 根据Status判断按钮是否禁用
    //   this.relrowDisabled = !(val.length > 0);
    //   this.multipleSelection = val;
    // },
    // getSelectedData() {
    //   return this.multipleSelection.map((idx) => this.stmData.data[idx]);
    // },
    ...Event,
301 302 303 304 305 306 307 308
    getInidatfro(){
      let datetime = new Date();
      datetime = datetime.setDate(datetime.getDate() - 1);
      this.model.trncorco.inidatfro = new Date(datetime);
    }
  },
  created: function () {
    this.getInidatfro();
wangguangchao committed
309 310
  },
  mounted() {
liushikai committed
311
    this.relflgCodes = [
liuxin committed
312
      { label: "ALL", value: "1" },     //已完成列表业务状态All
liushikai committed
313 314 315
      { label: "Final", value: "F" },
      { label: "Released", value: "R" },
    ];
wangguangchao committed
316 317 318 319 320 321
  },
  computed: {},
};
</script>
<style>
</style>