Infsea.vue 11.7 KB
Newer Older
zhangzhenmin committed
1 2
<template>
  <div class="eibs-tab">
3 4
    <c-list-search @form-reset="handleReset" @form-search="handleSearch">
      <!-- 持续展示区 -->
zhangzhenmin committed
5
      <template v-slot="searchSlot">
6
        <el-form class="m-table-search-form" ref="paramsForm" :inline="true" label-position="right" label-width="110px"
7
          size="small">
8
          <c-row>
9 10
            <c-col :span="24">
              <c-col :span="8">
nanrui committed
11 12
                <el-form-item label="代收编号" prop="infcon.seaownref" style="width: 100%">
                  <c-input v-model="model.infcon.seaownref" maxlength="16" placeholder="请输入代收编号"></c-input>
13 14 15
                </el-form-item>
              </c-col>
              <c-col :span="8">
nanrui committed
16
                <el-form-item label="开立日期" prop="infcon.opndatfrom" style="width: 100%">
17
                  <c-col :span="11">
18
                    <c-date-picker type="date" v-model="model.infcon.opndatfrom" value-format="yyyy-MM-dd"
nanrui committed
19
                      style="width:100%" placeholder="请选择开立日期"></c-date-picker>
20 21 22 23 24
                  </c-col>
                  <c-col :span="2" style="text-align: center">
                    <label style="display: inline-block; width: 100%">-</label>
                  </c-col>
                  <c-col :span="11">
25
                    <c-date-picker type="date" v-model="model.infcon.opndatto" value-format="yyyy-MM-dd"
nanrui committed
26
                      style="width:100%" placeholder="请选择开立日期"></c-date-picker>
27 28
                  </c-col>
                </el-form-item>
29 30
              </c-col>
              <c-col :span="8">
nanrui committed
31 32
                <el-form-item label="当事人参考号" prop="infcon.searef" style="width: 100%">
                  <c-input v-model="model.infcon.searef" maxlength="16" placeholder="请输入当事人参考号"></c-input>
33 34
                </el-form-item>
              </c-col>
zhangzhenmin committed
35
            </c-col>
36
          </c-row>
37 38 39 40

          <c-row v-show="searchSlot.searchToggle">
            <c-col :span="24">
              <c-col :span="8">
nanrui committed
41 42
                <el-form-item label="当事人编号" prop="infcon.pty.extkey" style="width: 100%">
                  <c-input v-model="model.infcon.pty.extkey" maxlength="24" placeholder="请输入当事人编号">
43 44 45
                  </c-input>
                </el-form-item>
              </c-col>
46
              <c-col :span="8">
nanrui committed
47 48
                <el-form-item label="客户经理" prop="infcon.usr.extkey" style="width: 100%">
                  <c-input v-model="model.infcon.usr.extkey" maxlength="8" placeholder="请输入客户经理"></c-input>
49 50 51
                </el-form-item>
              </c-col>
              <c-col :span="8">
nanrui committed
52 53
                <el-form-item label="角色" prop="infcon.searol" style="width: 100%">
                  <c-select v-model="model.infcon.searol" style="width: 100%" placeholder="请选择角色">
nanrui committed
54
                    <el-option v-for="item in codes.searol" :key="item.value" :label="item.label" :value="item.value">
55 56 57 58
                    </el-option>
                  </c-select>
                </el-form-item>
              </c-col>
zhangzhenmin committed
59
            </c-col>
60

61

62
            <c-col :span="24">
63
              <c-col :span="8">
nanrui committed
64 65
                <el-form-item label="当事人名称" prop="infcon.pty.nam" style="width: 100%">
                  <c-input v-model="model.infcon.pty.nam" maxlength="40" placeholder="请输入当事人名称">
66 67
                  </c-input>
                </el-form-item>
68 69
              </c-col>
              <c-col :span="8">
nanrui committed
70 71
                <el-form-item label="当事人BIC编码" prop="infcon.seapty" style="width: 100%">
                  <c-input v-model="model.infcon.seapty" maxlength="24" placeholder="请输入当事人BIC编码"></c-input>
72 73
                </el-form-item>
              </c-col>
74

75
              <c-col :span="8">
nanrui committed
76 77
                <el-form-item label="币种" prop="infcon.curtxt1" style="width: 100%">
                  <c-select v-model="model.infcon.curtxt1" style="width: 100%" placeholder="请选择币种">
78
                    <el-option v-for="item in codes.curtxt1" :key="item.value" :label="item.label" :value="item.value">
79 80 81 82
                    </el-option>
                  </c-select>
                </el-form-item>
              </c-col>
zhangzhenmin committed
83
            </c-col>
84

85
            <c-col :span="24">
86
              <c-col :span="8">
nanrui committed
87 88
                <el-form-item label="简略信息" prop="infcon.nam" style="width: 100%">
                  <c-input v-model="model.infcon.nam" maxlength="40" placeholder="请输入简略信息"></c-input>
89 90 91
                </el-form-item>
              </c-col>
              <c-col :span="8">
nanrui committed
92
                <el-form-item label="金额区间" prop="infcon.seaamtfr" style="width: 100%">
93
                  <c-col :span="11">
nanrui committed
94
                    <c-input v-model="model.infcon.seaamtfr" placeholder="请输入金额区间"></c-input>
95 96 97 98 99
                  </c-col>
                  <c-col :span="2" style="text-align: center">
                    <label style="display: inline-block; width: 100%">-</label>
                  </c-col>
                  <c-col :span="11">
nanrui committed
100
                    <c-input v-model="model.infcon.seaamtto" placeholder="请输入金额区间"></c-input>
101 102 103
                  </c-col>
                </el-form-item>
              </c-col>
104
              <c-col :span="8">
nanrui committed
105 106
                <el-form-item label="状态" prop="infcon.seasta" style="width: 100%">
                  <c-select v-model="model.infcon.seasta" style="width: 100%" placeholder="请选择状态">
107 108 109 110 111
                    <el-option v-for="item in codes.seasta" :key="item.value" :label="item.label" :value="item.value">
                    </el-option>
                  </c-select>
                </el-form-item>
              </c-col>
zhangzhenmin committed
112
            </c-col>
113
            <c-col :span="24" style="margin-top:15px">
114
              <c-col :span="8">
nanrui committed
115 116
                <el-form-item label="付款条件" prop="doctypcod" style="width: 100%">
                  <c-select v-model="model.infcon.doctypcod" style="width: 100%" placeholder="请选择付款条件">
117 118
                    <el-option v-for="item in codes.doctypcod" :key="item.value" :label="item.label"
                      :value="item.value">
119 120 121 122 123
                    </el-option>
                  </c-select>
                </el-form-item>
              </c-col>
              <c-col :span="8">
jianglong committed
124 125
                <el-form-item label="货物类型" prop="godcod" style="width: 100%">
                  <c-select v-model="model.infcon.godcod" style="width:100%" placeholder="请选择货物类型">
126 127 128 129
                    <el-option v-for="item in codes.godcod" :key="item.value" :label="item.label" :value="item.value">
                    </el-option>
                  </c-select>
                </el-form-item>
130
              </c-col>
zhangzhenmin committed
131
            </c-col>
132
          </c-row>
zhangzhenmin committed
133 134 135
        </el-form>
      </template>
    </c-list-search>
136 137


138
    <c-col :span="24" style="margin-top: 10px">
Wuyuqiu committed
139
      <c-button class="medium_bcs" size="medium" style="margin-left: 0px" type="primary" @click="toBctdav">进口代收到单通知</c-button>
140 141 142
    </c-col>

    <c-col :span="24">
nanrui committed
143
      <c-istream-table :list="stmData.data" :columns="stmData.columns" :showButtonFlg="true">
144 145 146 147
        <el-table-column fixed="right" prop="op" width="140px">
          <template slot="header">
            <c-col :span="11" style="text-align: center"><span>操作</span></c-col>
          </template>
zhangzhenmin committed
148
          <template slot-scope="scope">
149 150 151 152 153 154 155 156 157 158 159 160 161 162 163
            <el-popover placement="top-start" title="历史信息" width="800" trigger="click"
              :ref="'popover_' + scope.row.IDX">
              <div style=" text-align: right; margin-top: -30px; margin-right: 5px; font-size: 16px;">
                <span class="el-icon-close" @click="closeTrn('popover_' + scope.row.IDX)" />
              </div>
              <c-istream-table :list="trnData.data" :columns="trnData.columns">
                <el-table-column prop="op" label="操作" width="0">
                  <template slot-scope="scope">
                    <c-button style="margin-left: 0" size="small" @click="display(scope.row['INR'])">详情</c-button>
                  </template>
                </el-table-column>
              </c-istream-table>
              <c-button style="margin-left: 0" size="small" @click="getTrnInfo(scope.$index, scope.row)"
                slot="reference">详情</c-button>
            </el-popover>
164
            <c-button style="margin-left: 5px" size="small" type="primary" @click="getButtons(scope.row['代收编号'])">处理
165 166
            </c-button>
          </template>
zhangzhenmin committed
167 168
        </el-table-column>
      </c-istream-table>
169
    </c-col>
170

171 172 173
    <m-busbtn ref="childs" :ownref="ownref" :model="BctselModel" ownrefPath="bcdgrp" trnCode="bctsel"
      @onChoose="onChoose">11</m-busbtn>

zhangzhenmin committed
174 175 176 177
  </div>
</template>
<script>
import Api from "~/service/Api"
wangren committed
178
import commonProcess from "~/mixin/commonProcess"
zhangzhenmin committed
179 180 181
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Infbcd/Event"

182 183 184
import BctselModel from "~/model/Bctsel"
import BusNavbar from "~/views/Public/BusNavbar";

185 186 187
export
  default {
    inject: ['root'],
zhangzhenmin committed
188
    props: ["model", "codes"],
wangren committed
189
    mixins: [commonProcess],
190
    components: { "m-busbtn": BusNavbar },
zhangzhenmin committed
191 192
    data() {
      return {
193 194 195
        BctselModel: new BctselModel().data,
        ownref: "",
        dialogTableVisible: false,
196 197 198 199 200 201 202 203 204 205 206 207 208
        trnData: {
          columns: [
            '1 1 "编号" 200',
            '2 2 "交易名称" 120',
            // '3 3 "日期" 200',
            { index: 3, position: 3, width: 110, pattern: 'date', label: '日期' },
            // '4 4 "状态" 50',
            { index: 4, position: 4, width: 100, pattern: 'code', label: '状态', code: this.codes.relstaEN },
            '5 5 "币种" 80',
            '6 6 "金额" 110',
          ],
          data: [],
        },
zhangzhenmin committed
209 210
        stmData: {
          columns: [
nanrui committed
211 212
            "1 1 \"代收编号\" 150",
            "2 2 \"客户经理\" 120",
213
            "6 3 \"分行名称\" 170",
nanrui committed
214 215
            "8 4 \"付款人编号\" 170",
            "9 5 \"付款人\" 300",
wangna committed
216
            "10 6 \"付款人 CN\" 130",
nanrui committed
217 218
            "11 7 \"收款人编号\" 170",
            "12 8 \"收款人\" 150",
219
            "7 9 \"Pta.No\" 130",
nanrui committed
220 221
            "13 10 \"托收行编号\" 220",
            "14 11 \"托收行\" 200",
jianglong committed
222
            "5 12 \"货物类型\" 130 1 0 1 GODCOD",
nanrui committed
223 224
            "3 13 \"开立日期\" 150 4 7",
            "4 14 \"开闭日期\" 150 4 7",
225
            "15 15 \"金额币种\" 150",
nanrui committed
226
            "16 16 \"代收金额\" 120 2 8 1 15",
227
            "17 17 \"余额币种\" 150",
nanrui committed
228
            "18 18 \"代收余额\" 130 2 8 1 17",
zhangzhenmin committed
229 230 231 232 233 234
          ],
          data: []

        }
      }
    },
235 236 237
    methods: {
      ...Event,
      async getButtons(ownref) {
238
        this.$refs.childs.initdialog = true
239 240 241 242 243
        this.ownref = ownref
        console.log("ownref:" + ownref);
      },
      async onChoose(code) {
        //跳转交易
244 245
        this.$router.history.push("/business/" + code)
        this.$refs.childs.initdialog = false
246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266
      },
      closeTrn(refId) {
        this.$refs[refId].doClose();
      },
      async getTrnInfo(idx, row) {

        this.model.infcon.objinr = row["INR"];
        this.model.bcdgrp.rec.inr = row["INR"];
        this.model.infcon.chksubcon = "X";

        this.dialogTableVisible = true;

        let rtnmsg = await this.executeDefault("infcon.chksubcon");
        console.log(rtnmsg);
        console.log(this.model.infcon.chksubcon);

        if ((rtnmsg.respCode = SUCCESS)) {
          this.trnData.data = rtnmsg.data.infcon_trnstm.rows;
          console.log(this.trnData.data);
        }
      },
267 268
      async getDitSelInfo(code) {
        //跳转交易
269 270
        this.$router.history.push("/business/" + code)
        this.$refs.childs.initdialog = false
271 272

      },
273 274 275
      toBctdav() {
        this.$router.history.push("/business/bctdav")
      }
zhangzhenmin committed
276
    },
277
    created: function () {
zhangzhenmin committed
278

279
    }
zhangzhenmin committed
280
  }</script>
281 282
<style>
</style>