Inftrnps.vue 9.74 KB
Newer Older
liuxin committed
1
<template>
zhengxiaokui committed
2
  <div class="eibs-tab">
liushikai committed
3
    <!-- <c-list-search @form-reset="handleReset" @form-search="handleSearch"> -->
nanrui committed
4 5 6
    <!-- <template v-slot="searchSlot"> -->
    <el-form class="m-table-search-form" ref="paramsForm" :inline="true" label-position="right" label-width="110px"
      size="small">
潘际乾 committed
7
      <el-row>
潘际乾 committed
8
        <c-col :span="24" style="">
潘际乾 committed
9
          <c-col :span="8">
nanrui committed
10 11
            <el-form-item label="业务编号" prop="trncorco.ownref" style="width: 100%">
              <c-input v-model="model.trncorco.ownref" maxlength="16" placeholder="请输入业务编号"></c-input>
潘际乾 committed
12 13 14 15 16 17
            </el-form-item>
          </c-col>

          <c-col :span="8">
            <el-form-item label="创建时间" style="width: 100%" prop="trncorco.inidatfro">
              <c-col :span="11">
nanrui committed
18 19
                <c-date-picker type="date" v-model="model.trncorco.inidatfro" style="width: 100%" placeholder="请选择创建时间">
                </c-date-picker>
wangguangchao committed
20
              </c-col>
潘际乾 committed
21 22
              <c-col :span="2" style="text-align: center">
                <label style="display: inline-block; width: 100%">-</label>
liushikai committed
23
              </c-col>
潘际乾 committed
24
              <c-col :span="11">
nanrui committed
25 26
                <c-date-picker type="date" v-model="model.trncorco.inidattil" style="width: 100%" placeholder="请选择创建时间">
                </c-date-picker>
wangguangchao committed
27
              </c-col>
潘际乾 committed
28 29 30 31
            </el-form-item>
          </c-col>

          <c-col :span="8">
nanrui committed
32 33 34
            <el-form-item label="经办柜员" prop="usrcon" style="width: 100%">
              <c-select v-model="model.usrcon" style="width: 100%" placeholder="请选择经办柜员">
                <el-option v-for="item in codes.usrsort" :key="item.value" :label="item.label" :value="item.value">
潘际乾 committed
35 36 37 38 39 40 41 42 43 44 45 46 47 48
                </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
49
        <c-col :span="24" style="">
潘际乾 committed
50
          <c-col :span="8">
nanrui committed
51 52 53
            <el-form-item label="业务状态" prop="trncorco.relflg" style="width: 100%">
              <c-select v-model="model.trncorco.relflg" style="width: 100%" placeholder="请选择业务状态">
                <el-option v-for="item in relflgCodes" :key="item.value" :label="item.label" :value="item.value">
潘际乾 committed
54 55 56 57 58
                </el-option>
              </c-select>
            </el-form-item>
          </c-col>
          <c-col :span="8">
nanrui committed
59 60 61
            <el-form-item label="业务机构" prop="bchcon" style="width: 100%">
              <c-select v-model="model.bchcon" style="width: 100%" placeholder="请选择业务机构">
                <el-option v-for="item in codes.bchtyp" :key="item.value" :label="item.label" :value="item.value">
潘际乾 committed
62 63 64 65
                </el-option>
              </c-select>
            </el-form-item>
          </c-col>
66

liushikai committed
67

潘际乾 committed
68 69 70 71 72 73
          <!--                           
                <c-col :span="12">
                  <el-form-item label="and">
                      
                  </el-form-item>
                </c-col> -->
wangguangchao committed
74

潘际乾 committed
75
          <c-col :span="8">
nanrui committed
76
            <el-form-item label="交易代码" prop="atp.cod" style="width: 100%">
潘际乾 committed
77 78
              <c-col :span="24">
                <c-col :span="20">
nanrui committed
79 80
                  <c-input v-model="model.atp.cod" maxlength="6" style="width: 95%" placeholder="请输入交易代码"
                    @keyup.enter.native="showGridPromptDialog('atp.cod')"></c-input>
潘际乾 committed
81 82
                </c-col>
                <!-- <c-input  v-model="model.atpget.sdamod.seainf"  style="width:10%" placeholder="i"></c-input> -->
wangguangchao committed
83

潘际乾 committed
84
                <c-col :span="4">
nanrui committed
85 86
                  <c-button size="small" style="width:100%;margin-left:0" type="primary" @click="onSeainf"
                    icon="el-icon-search"></c-button>
潘际乾 committed
87
                </c-col>
wangguangchao committed
88
              </c-col>
潘际乾 committed
89 90 91
            </el-form-item>
          </c-col>
        </c-col>
潘际乾 committed
92
        <c-col :span="24" style="">
潘际乾 committed
93
          <c-col :span="8">
nanrui committed
94 95 96
            <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">
潘际乾 committed
97 98 99 100
                </el-option>
              </c-select>
            </el-form-item>
          </c-col>
101

潘际乾 committed
102
          <c-col :span="8">
nanrui committed
103 104
            <el-form-item label="交易名称" prop="atptxt" style="width: 100%">
              <c-input v-model="model.atptxt" maxlength="37" placeholder="请输入交易名称"></c-input>
潘际乾 committed
105 106 107
            </el-form-item>
          </c-col>
          <c-col :span="8" style="text-align:right">
nanrui committed
108
            <el-button size="small" @click="handleReset">重置</el-button>
潘际乾 committed
109
            <el-button type="primary" icon="el-icon-search" size="small" @click="handleSearch">查询</el-button>
nanrui committed
110
          </c-col>
潘际乾 committed
111 112 113 114
        </c-col>
      </el-row>
    </el-form>

潘际乾 committed
115
    <c-col :span="24" style="">
潘际乾 committed
116 117 118
      <div style="border-bottom: 10px solid rgb(232, 232, 232)">
      </div>
    </c-col>
nanrui committed
119

wangguangchao committed
120
    <el-row>
潘际乾 committed
121
      <c-col :span="24" style="">
122
        <c-istream-table :list="stmData.data" :columns="stmData.columns" style="width:100%" :showButtonFlg="true">
nanrui committed
123 124 125
          <el-table-column fixed="right" prop="op" label="操作" width="140px">
            <template slot="header">
              <c-col :span="11" style="text-align:center"><span>操作</span></c-col>
126
              <!-- <c-col :span="12" style="text-align:right"><c-button icon="el-icon-s-tools"></c-button></c-col> -->
liushikai committed
127
            </template>
128
            <template slot-scope="scope">
nanrui committed
129
              <c-button style="margin-left: 0" size="small" @click="onWaitDetail(scope.$index,scope.row)">
hulei committed
130 131
                详情
              </c-button>
nanrui committed
132
              <c-button style="margin-left: 0" size="small" type="primary" @click="onHandle(scope.$index,scope.row)">
wangguangchao committed
133
                处理
nanrui committed
134 135
              </c-button>
              <!-- <c-button
wangguangchao committed
136 137 138 139
                style="margin-left: 0"
                size="small"
                type="primary"
                @click="onRelrow(scope.$index)"
wangguangchao committed
140
               
141
              >
wangguangchao committed
142
                复核
wangguangchao committed
143
              </c-button> -->
wangguangchao committed
144 145 146 147
            </template>
          </el-table-column>
        </c-istream-table>
      </c-col>
fukai committed
148
    </el-row>
zhengxiaokui committed
149
  </div>
liuxin committed
150 151
</template>
<script>
zhengxiaokui committed
152
import Api from "~/service/Api";
wangren committed
153
import commonProcess from "~/mixin/commonProcess";
zhengxiaokui committed
154 155
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Trnrel/Event";
liuxin committed
156 157

export default {
zhengxiaokui committed
158 159
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
160
  mixins: [commonProcess],
zhengxiaokui committed
161 162 163
  components: {},
  data() {
    return {
wangguangchao committed
164
      initdialog: false,
fukai committed
165
      transactionStatus: {
wangguangchao committed
166 167 168 169 170 171 172
        busiNo: "",
        modTimes: 0,
        postCount: 0,
        accCount: 0,
        earnCount: 0,
        earnAmt: 0,
      },
zhengxiaokui committed
173
      stmData: {
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193
        // 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
194
        columns: [
nanrui committed
195
          '10 1 "交易代码" 100',
wangguangchao committed
196
          '11 2 "业务编号" 150',
197
          '17 3 "摘要信息" 300',
nanrui committed
198
          '12 4 "币种" 70',
liushikai committed
199
          '13 5 "金额" 100',
200
          // '14 6 "创建时间" 170',
nanrui committed
201 202 203 204 205 206 207 208 209 210 211
          { index: 14, position: 6, width: 140, pattern: 'time', label: '创建时间' },
          '9 7 "签名要求" 100',
          '2 8 "签名状态" 100',
          '16 9 "经办柜员" 100',
          //   '0 10 "业务状态" 80',
          {
            index: 0, position: 10, width: 100, pattern: 'code', label: '业务状态', code: [{ label: "Waiting", value: "W" },
            { label: "Correct", value: "C" },
            { label: "Picked up", value: "P" },
            { label: "Rejected", value: "N" },]
          },
212
          '15 11 "业务机构" 120',
zhengxiaokui committed
213 214 215 216
        ],
        data: [],
      },
      relrowDisabled: true,
nanrui committed
217
      relflgCodes: [],
liuxin committed
218
      Trnp0Visible: false,
219
      // multipleSelection: [],
zhengxiaokui committed
220 221 222
    };
  },
  methods: {
223 224 225 226 227 228 229 230
    // multipleSelect(val) {
    //   // TODO 根据Status判断按钮是否禁用
    //   this.relrowDisabled = !(val.length > 0);
    //   this.multipleSelection = val;
    // },
    // getSelectedData() {
    //   return this.multipleSelection.map((idx) => this.stmData.data[idx]);
    // },
zhengxiaokui committed
231
    ...Event,
nanrui committed
232 233 234 235 236 237 238 239
    getInidatfro(){
      let datetime = new Date();
      datetime = datetime.setDate(datetime.getDate() - 1);
      this.model.trncorco.inidatfro = new Date(datetime);
    }
  },
  created: function () { 
    this.getInidatfro();
zhengxiaokui committed
240
  },
liushikai committed
241
  async mounted() {
nanrui committed
242 243 244 245 246 247 248 249 250 251 252 253 254 255

    this.relflgCodes = [
      { label: "ALL", value: "0" },   //待复核列表业务状态All
      { label: "Correct", value: "C" },
      // { label: "Closed", value: "M" },
      // { label: "Entered", value: "E" },
      // { label: "External", value: "X" },
      { label: "Picked up", value: "P" },
      { label: "Rejected", value: "N" },
      { label: "Waiting", value: "W" },
    ];
    // await this.handleSearch()
    // this.$store.commit("setTaskList", {key: "trnrel", val: this.stmData.data.length})

256
  },
zhengxiaokui committed
257 258
  computed: {},
};
liuxin committed
259 260
</script>
<style>
nanrui committed
261

liuxin committed
262
</style>