Inftrnps.vue 11.4 KB
Newer Older
liuxin committed
1
<template>
zhengxiaokui committed
2
  <div class="eibs-tab">
liushikai committed
3 4
    <!-- <c-list-search @form-reset="handleReset" @form-search="handleSearch"> -->
      <!-- <template v-slot="searchSlot"> -->
潘际乾 committed
5 6 7 8 9 10 11 12 13
    <el-form
      class="m-table-search-form"
      ref="paramsForm"
      :inline="true"
      label-position="right"
      label-width="110px"
      size="small"
    >
      <el-row>
潘际乾 committed
14
        <c-col :span="24" style="">
潘际乾 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="请输入业务编号"
潘际乾 committed
25 26 27 28 29 30 31 32 33 34
              ></c-input>
            </el-form-item>
          </c-col>

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

          <c-col :span="8">
            <el-form-item
              label="经办柜员"
              prop="usrcon"
              style="width: 100%"
            >
              <c-select
                v-model="model.usrcon"
                style="width: 100%"
nanrui committed
62
                placeholder="请选择经办柜员"
潘际乾 committed
63 64 65 66 67 68
              >
                <el-option
                  v-for="item in codes.usrsort"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
wangguangchao committed
69
                >
潘际乾 committed
70 71 72 73 74 75 76 77 78 79 80 81 82 83
                </el-option>
              </c-select>
            </el-form-item>
          </c-col>
        </c-col>
      </el-row>
      <!--            
                <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>
                -->
      <el-row>
潘际乾 committed
84
        <c-col :span="24" style="">
潘际乾 committed
85 86 87 88 89 90 91 92 93
          <c-col :span="8">
            <el-form-item
              label="业务状态"
              prop="trncorco.relflg"
              style="width: 100%"
            >
              <c-select
                v-model="model.trncorco.relflg"
                style="width: 100%"
nanrui committed
94
                placeholder="请选择业务状态"
潘际乾 committed
95 96 97 98 99 100
              >
                <el-option
                  v-for="item in relflgCodes"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
liushikai committed
101
                >
潘际乾 committed
102 103 104 105 106 107 108 109 110 111 112 113 114
                </el-option>
              </c-select>
            </el-form-item>
          </c-col>
          <c-col :span="8">
            <el-form-item
              label="业务机构"
              prop="bchcon"
              style="width: 100%"
            >
              <c-select
                v-model="model.bchcon"
                style="width: 100%"
nanrui committed
115
                placeholder="请选择业务机构"
潘际乾 committed
116 117 118 119 120 121 122 123 124 125 126
              >
                <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>
127

liushikai committed
128

潘际乾 committed
129 130 131 132 133 134
          <!--                           
                <c-col :span="12">
                  <el-form-item label="and">
                      
                  </el-form-item>
                </c-col> -->
wangguangchao committed
135

潘际乾 committed
136 137 138 139 140 141 142 143 144 145 146 147
          <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
148
                    placeholder="请输入交易代码"
149
                    @keyup.enter.native="showGridPromptDialog('atp.cod')"
潘际乾 committed
150 151 152
                  ></c-input>
                </c-col>
                <!-- <c-input  v-model="model.atpget.sdamod.seainf"  style="width:10%" placeholder="i"></c-input> -->
wangguangchao committed
153

潘际乾 committed
154 155 156 157 158 159 160 161 162
                <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
163
              </c-col>
潘际乾 committed
164 165 166
            </el-form-item>
          </c-col>
        </c-col>
潘际乾 committed
167
        <c-col :span="24" style="">
潘际乾 committed
168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183
          <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
184
                >
潘际乾 committed
185 186 187 188
                </el-option>
              </c-select>
            </el-form-item>
          </c-col>
189

潘际乾 committed
190 191 192 193 194 195 196 197 198
          <c-col :span="8">
            <el-form-item
              label="交易名称"
              prop="atptxt"
              style="width: 100%"
            >
              <c-input
                v-model="model.atptxt"
                maxlength="37"
nanrui committed
199
                placeholder="请输入交易名称"
潘际乾 committed
200 201 202 203 204 205 206 207 208 209 210
              ></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" @click="handleSearch">查询</el-button>
        </c-col>
        </c-col>
      </el-row>
    </el-form>

潘际乾 committed
211
    <c-col :span="24" style="">
潘际乾 committed
212 213 214
      <div style="border-bottom: 10px solid rgb(232, 232, 232)">
      </div>
    </c-col>
nanrui committed
215
    
wangguangchao committed
216
    <el-row>
潘际乾 committed
217
      <c-col :span="24" style="">
218
        <c-istream-table :list="stmData.data" :columns="stmData.columns" style="width:100%" :showButtonFlg="true">
wangguangchao committed
219 220 221 222
          <el-table-column
            fixed="right"
            prop="display"
            label="操作"
223
            width="140px"
wangguangchao committed
224
          >
liushikai committed
225 226
          <template slot="header">
              <c-col :span="11" style="text-align:left"><span>操作</span></c-col>
227
              <!-- <c-col :span="12" style="text-align:right"><c-button icon="el-icon-s-tools"></c-button></c-col> -->
liushikai committed
228
            </template>
229
            <template slot-scope="scope">
hulei committed
230 231 232
               <c-button
                style="margin-left: 0"
                size="small"
233
                @click="onWaitDetail(scope.$index,scope.row)"
hulei committed
234 235 236
              >
                详情
              </c-button>
237 238 239 240
              <c-button
                style="margin-left: 0"
                size="small"
                type="primary"
wangguangchao committed
241 242 243 244
                @click="onHandle(scope.$index,scope.row)"
               
              >
                处理
wangguangchao committed
245 246
             </c-button>
                <!-- <c-button
wangguangchao committed
247 248 249 250
                style="margin-left: 0"
                size="small"
                type="primary"
                @click="onRelrow(scope.$index)"
wangguangchao committed
251
               
252
              >
wangguangchao committed
253
                复核
wangguangchao committed
254
              </c-button> -->
wangguangchao committed
255 256 257 258
            </template>
          </el-table-column>
        </c-istream-table>
      </c-col>
fukai committed
259
    </el-row>
zhengxiaokui committed
260
  </div>
liuxin committed
261 262
</template>
<script>
zhengxiaokui committed
263
import Api from "~/service/Api";
wangren committed
264
import commonProcess from "~/mixin/commonProcess";
zhengxiaokui committed
265 266
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Trnrel/Event";
liuxin committed
267 268

export default {
zhengxiaokui committed
269 270
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
271
  mixins: [commonProcess],
zhengxiaokui committed
272 273 274
  components: {},
  data() {
    return {
wangguangchao committed
275
      initdialog: false,
fukai committed
276
      transactionStatus: {
wangguangchao committed
277 278 279 280 281 282 283
        busiNo: "",
        modTimes: 0,
        postCount: 0,
        accCount: 0,
        earnCount: 0,
        earnAmt: 0,
      },
zhengxiaokui committed
284
      stmData: {
285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304
        // columns: [
        //   '10 1 "TRN" 50 1 tdViewTypeEdit:0 3 ATPTXT',
        //   '11 2:1 "Own Reference" 112',
        //   '17 2:2 "Addtional Text" 112',
        //   '12 3 "Cur" 37',
        //   '13 4 "Relevant Amount" 101 2 8:1 2 5',
        //   '14 5 "Entry" 104 20 DateTime 1',
        //   '9 6:1 "Req" 39',
        //   '2 6:2 "Sig" 35',
        //   '6 8:1 "Rq0" 40',
        //   '3 8:2 "Rel0" 40',
        //   '7 9:1 "Rq1" 40',
        //   '4 9:2 "Rel1" 40',
        //   '8 10:1 "Rq2" 40',
        //   '5 10:2 "Rel2" 40',
        //   '15 13 "Branch" 142',
        //   '16 11:1 "User" 62',
        //   '18 11:2 "" 62',
        //   '0 12 "Status" 54 1 tdViewTypeEdit:0 1 RELSTA',
        // ],
zhengxiaokui committed
305
        columns: [
wangguangchao committed
306 307
          '10 1 "交易代码" 80',
          '11 2 "业务编号" 150',
308
          '17 3 "摘要信息" 300',
309
          '12 4 "币种" 50',
liushikai committed
310
          '13 5 "金额" 100',
311
          // '14 6 "创建时间" 170',
liushikai committed
312
          {index:14,position:6,width:140,pattern:'time',label:'创建时间'},
313 314 315
          '9 7 "签名要求" 70',
          '2 8 "签名状态" 70',
          '16 9 "经办柜员" 70',
316 317 318 319 320
        //   '0 10 "业务状态" 80',
          {index:0,position:10,width:80,pattern:'code',label:'业务状态',code:[{label: "Waiting", value: "W"},
                                                                            { label: "Correct", value: "C" },
                                                                            { label: "Picked up", value: "P" },
                                                                            { label: "Rejected", value: "N" },]},
321
          '15 11 "业务机构" 120',
zhengxiaokui committed
322 323 324 325
        ],
        data: [],
      },
      relrowDisabled: true,
wangguangchao committed
326
      relflgCodes:[],
liuxin committed
327
      Trnp0Visible: false,
328
      // multipleSelection: [],
zhengxiaokui committed
329 330 331
    };
  },
  methods: {
332 333 334 335 336 337 338 339
    // multipleSelect(val) {
    //   // TODO 根据Status判断按钮是否禁用
    //   this.relrowDisabled = !(val.length > 0);
    //   this.multipleSelection = val;
    // },
    // getSelectedData() {
    //   return this.multipleSelection.map((idx) => this.stmData.data[idx]);
    // },
zhengxiaokui committed
340 341 342
    ...Event,
  },
  created: function () {},
liushikai committed
343
  async mounted() {
wangguangchao committed
344
  
wangguangchao committed
345
      this.relflgCodes = [
liuxin committed
346
        { label: "ALL", value: "0" },   //待复核列表业务状态All
wangguangchao committed
347
        { label: "Correct", value: "C" },
liushikai committed
348 349 350
        // { label: "Closed", value: "M" },
        // { label: "Entered", value: "E" },
        // { label: "External", value: "X" },
wangguangchao committed
351 352 353 354
        { label: "Picked up", value: "P" },
        { label: "Rejected", value: "N" },
        { label: "Waiting", value: "W" },
      ];
355 356
      // await this.handleSearch()
      // this.$store.commit("setTaskList", {key: "trnrel", val: this.stmData.data.length})
wangguangchao committed
357
  
358
  },
zhengxiaokui committed
359 360
  computed: {},
};
liuxin committed
361 362 363
</script>
<style>
</style>