Inftrnps.vue 9.03 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
    <!-- <template v-slot="searchSlot"> -->
5
    <el-form class="m-table-search-form" ref="paramsForm" label-position="right" label-width="110px"
nanrui committed
6
      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>
132
              <c-button style="margin-left: 5px" 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 174
      stmData: {
        columns: [
nanrui committed
175
          '10 1 "交易代码" 100',
wangguangchao committed
176
          '11 2 "业务编号" 150',
177
          '17 3 "摘要信息" 300',
nanrui committed
178
          '12 4 "币种" 70',
liushikai committed
179
          '13 5 "金额" 100',
180
          // '14 6 "创建时间" 170',
nanrui committed
181 182 183 184 185 186
          { index: 14, position: 6, width: 140, pattern: 'time', label: '创建时间' },
          '9 7 "签名要求" 100',
          '2 8 "签名状态" 100',
          '16 9 "经办柜员" 100',
          //   '0 10 "业务状态" 80',
          {
wangna committed
187
            index: 0, position: 10, width: 100, pattern: 'code', label: '业务状态', code: [{ label: "等待", value: "W" },
wangna committed
188
            { label: "已打回", value: "C" },
wangna committed
189 190
            { label: "已拾取", value: "P" },
            { label: "已拒绝", value: "N" },]
nanrui committed
191
          },
192
          '15 11 "业务机构" 120',
zhengxiaokui committed
193 194 195 196
        ],
        data: [],
      },
      relrowDisabled: true,
nanrui committed
197
      relflgCodes: [],
liuxin committed
198
      Trnp0Visible: false,
199
      // multipleSelection: [],
zhengxiaokui committed
200 201 202
    };
  },
  methods: {
203 204 205 206 207 208 209 210
    // multipleSelect(val) {
    //   // TODO 根据Status判断按钮是否禁用
    //   this.relrowDisabled = !(val.length > 0);
    //   this.multipleSelection = val;
    // },
    // getSelectedData() {
    //   return this.multipleSelection.map((idx) => this.stmData.data[idx]);
    // },
zhengxiaokui committed
211
    ...Event,
nanrui committed
212 213 214 215 216 217 218 219
    getInidatfro(){
      let datetime = new Date();
      datetime = datetime.setDate(datetime.getDate() - 1);
      this.model.trncorco.inidatfro = new Date(datetime);
    }
  },
  created: function () { 
    this.getInidatfro();
zhengxiaokui committed
220
  },
liushikai committed
221
  async mounted() {
nanrui committed
222 223

    this.relflgCodes = [
wangna committed
224 225
      { label: "全部", value: "0" },   //待复核列表业务状态All
      { label: "已修改", value: "C" },
nanrui committed
226 227 228
      // { label: "Closed", value: "M" },
      // { label: "Entered", value: "E" },
      // { label: "External", value: "X" },
wangna committed
229 230 231
      { label: "已拾取", value: "P" },
      { label: "已拒绝", value: "N" },
      { label: "等待", value: "W" },
nanrui committed
232 233 234 235
    ];
    // await this.handleSearch()
    // this.$store.commit("setTaskList", {key: "trnrel", val: this.stmData.data.length})

236
  },
zhengxiaokui committed
237 238
  computed: {},
};
liuxin committed
239 240
</script>
<style>
nanrui committed
241

liuxin committed
242
</style>