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

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

liushikai committed
102 103 104 105 106
          <c-col :span="8">
            <el-form-item label="业务机构" prop="bchcon" style="width: 100%">
              <c-select
                v-model="model.bchcon"
                style="width: 100%"
wangna committed
107
                placeholder="请选择业务机构"
liushikai committed
108 109 110 111 112 113 114 115 116 117 118
              >
                <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
119

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

liushikai committed
127 128 129 130 131 132 133 134
          <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
135
                    placeholder="请输入交易代码 "
136
                    @keyup.enter.native="showGridPromptDialog('atp.cod')"
liushikai committed
137 138 139
                  ></c-input>
                </c-col>
                <!-- <c-input  v-model="model.atpget.sdamod.seainf"  style="width:10%" placeholder="i"></c-input> -->
wangguangchao committed
140

liushikai committed
141 142 143 144 145 146 147 148 149
                <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
150
              </c-col>
liushikai committed
151 152 153
            </el-form-item>
          </c-col>
        </c-col>
潘际乾 committed
154
        <c-col :span="24" style="">
liushikai committed
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170
          <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
171
                >
liushikai committed
172 173 174 175
                </el-option>
              </c-select>
            </el-form-item>
          </c-col>
wangguangchao committed
176

liushikai committed
177 178 179 180 181
          <c-col :span="8">
            <el-form-item label="交易名称" prop="atptxt" style="width: 100%">
              <c-input
                v-model="model.atptxt"
                maxlength="37"
nanrui committed
182
                placeholder="请输入交易名称"
liushikai committed
183 184 185 186 187 188 189 190 191
              ></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"
192
              @click="trnfndhandleSearch"
liushikai committed
193 194 195 196 197 198
              >查询</el-button
            >
          </c-col>
        </c-col>
      </el-row>
    </el-form>
潘际乾 committed
199

潘际乾 committed
200
    <c-col :span="24" style="">
潘际乾 committed
201
      <div style="border-bottom: 10px solid rgb(232, 232, 232)">
liushikai committed
202
      </div>
潘际乾 committed
203
    </c-col>
nanrui committed
204 205 206 207 208 209 210 211 212 213
    <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">
214
              <c-col :span="11" style="text-align:center"><span>操作</span></c-col>
nanrui committed
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230
              <!-- <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
231
                style="margin-left: 5px"
nanrui committed
232 233 234 235 236 237 238 239 240 241
                size="small"             
              >
                冲正
              </c-button>
            </template>
          </el-table-column>
        </c-istream-table>
      </c-col>
    </el-row>

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

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