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

39 40 41 42 43
                    <!-- 可控展示区 -->
                    <el-row v-show="searchSlot.searchToggle">
                        <c-row>
                            <c-col :span="24">
                                <c-col :span="8">
wangna committed
44
                                    <el-form-item label="当事人编号" prop="infcon.pty.extkey">
nanrui committed
45
                                        <c-input v-model="model.infcon.pty.extkey" maxlength="24"
wangna committed
46
                                            placeholder="请输入当事人编号"></c-input>
47 48
                                    </el-form-item>
                                </c-col>
niewei committed
49

50
                                <c-col :span="8">
wangna committed
51
                                    <el-form-item label="当事人名称" prop="infcon.pty.nam">
nanrui committed
52
                                        <c-input v-model="model.infcon.pty.nam" maxlength="40"
wangna committed
53
                                            placeholder="请输入当事人名称"></c-input>
54 55
                                    </el-form-item>
                                </c-col>
niewei committed
56

57
                                <c-col :span="8">
wangna committed
58
                                    <el-form-item label="当事人BIC编码" prop="infcon.seapty">
nanrui committed
59
                                        <c-input v-model="model.infcon.seapty" maxlength="24"
wangna committed
60
                                            placeholder="请输入当事人BIC编码"></c-input>
61 62 63
                                    </el-form-item>
                                </c-col>
                            </c-col>
niewei committed
64

65 66
                            <c-col :span="24">
                                <c-col :span="8">
wangna committed
67
                                    <el-form-item label="当事人角色" prop="infcon.searol">
nanrui committed
68
                                        <c-select v-model="model.infcon.searol" style="width: 100%"
wangna committed
69
                                            placeholder="请选择当事人角色" :code="codes.payrol">
70 71 72
                                        </c-select>
                                    </el-form-item>
                                </c-col>
wangna committed
73
                                
74
                                <c-col :span="8">
wangna committed
75
                                    <el-form-item label="当事人参考号" prop="infcon.searef">
nanrui committed
76
                                        <c-input v-model="model.infcon.searef" maxlength="16"
wangna committed
77
                                            placeholder="请输入当事人参考号"></c-input>
78 79
                                    </el-form-item>
                                </c-col>
niewei committed
80

81
                                <c-col :span="8">
wangna committed
82 83
                                    <el-form-item label="金额上限" prop="infcon.seaamtto">
                                        <c-input v-model="model.infcon.seaamtto" placeholder="请输入金额上限"></c-input>
84 85 86
                                    </el-form-item>
                                </c-col>
                            </c-col>
niewei committed
87

88 89
                            <c-col :span="24">
                                <c-col :span="8">
wangna committed
90
                                    <el-form-item label="客户经理" prop="infcon.usr.extkey">
nanrui committed
91
                                        <c-input v-model="model.infcon.usr.extkey" maxlength="8"
wangna committed
92
                                            placeholder="请输入客户经理"></c-input>
93 94
                                    </el-form-item>
                                </c-col>
niewei committed
95

96
                                <c-col :span="8">
wangna committed
97
                                    <el-form-item label="业务状态" prop="infcon.seasta">
nanrui committed
98
                                        <c-select v-model="model.infcon.seasta" style="width: 100%"
wangna committed
99
                                            placeholder="请选择业务状态" :code="codes.seasta">
100 101 102 103 104
                                        </c-select>
                                    </el-form-item>
                                </c-col>

                                <c-col :span="8">
wangna committed
105
                                    <el-form-item label="币种" prop="infcon.seacur">
nanrui committed
106
                                        <c-select v-model="model.infcon.seacur" style="width: 100%"
wangna committed
107
                                            placeholder="请选择币种" :code="codes.curtxt1">
108 109 110 111
                                        </c-select>
                                    </el-form-item>
                                </c-col>
                            </c-col>
niewei committed
112

113 114
                            <c-col :span="24">
                                <c-col :span="8">
wangna committed
115 116
                                    <el-form-item label="金额下限" prop="infcon.seaamtfr">
                                        <c-input v-model="model.infcon.seaamtfr" placeholder="请输入金额下限">
nanrui committed
117
                                        </c-input>
118 119
                                    </el-form-item>
                                </c-col>
niewei committed
120

121
                                <c-col :span="8">
nanrui committed
122 123 124
                                    <el-form-item label="是否通过电证系统" prop="elcflg">
                                        <c-select v-model="model.elcflg" style="width: 100%" placeholder="请选择是否通过电证系统"
                                            :code="codes.elcflg">
125 126 127
                                        </c-select>
                                    </el-form-item>
                                </c-col>
niewei committed
128

129
                                <c-col :span="8">
nanrui committed
130 131
                                    <el-form-item label="">
                                        <c-checkbox v-model="model.infcon.forflg">转卖单据</c-checkbox>
132 133 134
                                    </el-form-item>
                                </c-col>
                            </c-col>
niewei committed
135

136 137
                            <c-col :span="24">
                                <c-col :span="8">
wangna committed
138
                                    <el-form-item label="文件类型" prop="seadoctypcod">
nanrui committed
139
                                        <c-select v-model="model.seadoctypcod" style="width: 100%"
wangna committed
140
                                            placeholder="请选择文件类型" :code="codes.brdtyp">
141 142 143 144 145 146 147 148 149
                                        </c-select>
                                    </el-form-item>
                                </c-col>
                            </c-col>
                        </c-row>
                    </el-row>
                </el-form>
            </template>
        </c-list-search>
wangna committed
150
        
151
        <c-col :span="24">
152 153
            <c-istream-table :list="stmData.data" :columns="stmData.columns" :showButtonFlg="true">
                <el-table-column fixed="right" prop="op" width="140px">
154
                    <template slot="header">
155 156
                        <c-col :span="11" style="text-align: center"><span>操作</span></c-col>
                        <!-- <c-col :span="12" style="text-align: right">
nanrui committed
157
                            <c-button icon="el-icon-s-tools"></c-button>
158
                        </c-col> -->
niewei committed
159
                    </template>
160
                    <template slot-scope="scope">
nanrui committed
161 162 163
                        <el-popover placement="top-start" title="历史信息" width="800" trigger="click"
                            :ref="'popover_' + scope.row.IDX">
                            <div style="
164 165 166 167
                                    text-align: right;
                                    margin-top: -30px;
                                    margin-right: 5px;
                                    font-size: 16px;
nanrui committed
168 169 170 171
                                ">
                                <span class="el-icon-close" @click="
                                    closeTrn('popover_' + scope.row.IDX)
                                " />
172
                            </div>
nanrui committed
173 174
                            <c-istream-table :list="trnData.data" :columns="trnData.columns">
                                <el-table-column prop="op" label="操作" width="0">
175
                                    <template slot-scope="scope">
nanrui committed
176 177
                                        <c-button style="margin-left: 0" size="small"
                                            @click="display(scope.row['INR'])">
178 179 180 181 182
                                            详情
                                        </c-button>
                                    </template>
                                </el-table-column>
                            </c-istream-table>
nanrui committed
183 184
                            <c-button style="margin-left: 0" size="small" @click="getTrnInfo(scope.$index, scope.row)"
                                slot="reference">
185 186 187
                                详情
                            </c-button>
                        </el-popover>
niewei committed
188

189
                        <c-button style="margin-left: 5px" size="small" type="primary"
wangna committed
190
                            @click="getButtons(scope.row['信用证编号'])">
191 192 193 194 195 196
                            处理
                        </c-button>
                    </template>
                </el-table-column>
            </c-istream-table>
        </c-col>
nanrui committed
197 198
        <m-busbtn ref="childs" :ownref="ownref" trnCode="detsel" ownrefPath="bfdgrp" tabIndex=3 :model="detselModel"
            @onChoose="onChoose"></m-busbtn>
199 200

    </div>
niewei committed
201 202
</template>
<script>
niewei committed
203
import Utils from "~/utils/index";
204
import Api from "~/service/Api";
wangren committed
205
import commonProcess from "~/mixin/commonProcess";
206 207
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Infbfd/Event";
niewei committed
208
//交易跳转逻辑
潘际乾 committed
209
import DetselModel from "~/model/Detsel"
210
import BusNavbar from "~/views/Public/BusNavbar";
niewei committed
211 212

export default {
213 214
    inject: ["root"],
    props: ["model", "codes"],
wangren committed
215
    mixins: [commonProcess],
niewei committed
216
    components: { "m-busbtn": BusNavbar },
217
    data() {
niewei committed
218
        return {
nanrui committed
219
            detselModel: new DetselModel().data,
niewei committed
220 221 222
            ownref: "",
            initdialog: false,
            dialogTableVisible: false,
223 224 225 226 227
            trnData: {
                columns: [
                    '1 1 "编号" 200',
                    '2 2 "交易名称" 100',
                    '3 3 "日期" 200',
228
                    { index: 4, position: 4, width: 100, pattern: 'code', label: '状态', code: this.codes.relstaEN },
229 230 231 232 233
                    '5 5 "币种" 80',
                    '6 6 "金额" 80',
                ],
                data: [],
            },
niewei committed
234

235 236
            stmData: {
                columns: [
wangna committed
237 238 239 240 241 242 243 244 245 246
                    '2 1 "信用证编号" 120 ',
                    '3 2 "客户经理" 100 ',
                    '6 3 "第一当事人编号" 200 ',
                    '7 4 "申请人名称" 150 ',
                    '8 5 "第二当事人编号" 200 ',
                    '9 6 "受益人名称" 150 ',
                    '10 7 "第三当事人编号" 200 ',
                    '11 8 "开证行名称" 150 ',
                    '12 9 "第四当事人编号" 200 ',
                    '13 10 "采购行名称" 150 ',
247
                    '1 11 "转卖日期" 150 ',
wangna committed
248 249 250 251 252 253
                    '4 12 "开立日期" 150 ',
                    '5 13 "关闭日期" 150 ',
                    '14 14 "单据币种" 100 ',
                    '15 15 "单据金额" 150 ',
                    '16 16 "余额币种" 100 ',
                    '17 17 "余额" 150 ',
254 255 256 257
                ],
                data: [],
            },
        };
niewei committed
258
    },
niewei committed
259
    /*
nanrui committed
260
    computed: {
niewei committed
261 262 263 264 265 266
    tableData() {
      // "10000449\t2000007350\t2000007350-001\tBEIJING TESTTEST,BEIJING, CHINA\t\t100080\tBEIJING, CHINA\tTEST TEST1 CO.,LTD."
      console.log(this.model.infbut.dspstm.rows)
      return this.model.infbut.dspstm.rows;
    },
  },
niewei committed
267
  */
268 269
    methods: {
        ...Event,
nanrui committed
270 271 272 273 274 275
        async getButtons(ownref) {
            this.ownref = ownref
            this.$refs.childs.initdialog = true
            console.log("ownref:" + ownref);
        },
        async onChoose(code) {
niewei committed
276
            //跳转交易
nanrui committed
277 278 279 280
            this.$router.history.push("/business/" + code)
            this.$refs.childs.initdialog = false
        },
        async getDitSelInfo(code) {
281
            //跳转交易
nanrui committed
282 283
            this.$router.history.push("/business/" + code)
            this.$refs.childs.initdialog = false
284
        },
niewei committed
285

286 287 288 289
        async getTrnInfo(idx, row) {
            this.model.infcon.objinr = row["INR"];
            this.model.bfdgrp.rec.inr = row["INR"];
            this.model.infcon.chksubcon = "X";
niewei committed
290

291 292
            this.dialogTableVisible = true;
            let rtnmsg = await this.executeDefault("infcon.chksubcon");
niewei committed
293

294 295 296 297 298 299 300
            if ((rtnmsg.respCode = SUCCESS)) {
                this.trnData.data = rtnmsg.data.infcon_trnstm.rows;
            }
        },
        closeTrn(refId) {
            this.$refs[refId].doClose();
        },
niewei committed
301
    },
nanrui committed
302
    created: function () { },
303
};
niewei committed
304
</script>