Infsea.vue 17 KB
Newer Older
1
<template>
杜大兵 committed
2 3
    <div class="eibs-tab" >
        <c-list-search  @form-reset="handleReset" @form-search="onInfbutSearow">
4
            <!-- 持续展示区 -->
杜大兵 committed
5 6 7 8 9 10 11 12 13 14 15 16
            <template v-slot="searchSlot">
                <el-form
                    class="m-table-search-form"
                    ref="paramsForm"
                    :inline="true"
                    label-position="left"
                    label-width="110px"
                    size="small"
                >
                    <c-row>
                        <c-col :span="12">
                            <el-form-item label="业务编号" prop="infcon.seaownref">
17 18
                                <c-input v-model="model.infcon.seaownref" 
                                    maxlength="16"
杜大兵 committed
19 20 21
                                    placeholder="请输入Own Reference"
                                ></c-input>
                            </el-form-item>
杜大兵 committed
22 23 24 25 26 27 28 29 30
                        </c-col>
                        <c-col :span="12">
                            <el-form-item label="开立日期" >
                                <el-date-picker 
                                    type="date"  
                                    v-model="model.infcon.opndatfrom" 
                                    style="width:43%"  
                                    placeholder="请选择Opening between"
                                ></el-date-picker>
杜大兵 committed
31
                                    -
杜大兵 committed
32 33 34 35 36 37 38 39 40
                                <el-date-picker 
                                    type="date"  
                                    v-model="model.infcon.opndatto" 
                                    style="width:43%"  
                                    placeholder="请选择Open Date to"
                                ></el-date-picker>
                            </el-form-item>
                        </c-col>
                    </c-row>
杜大兵 committed
41

杜大兵 committed
42 43 44
                    <!-- 可控展示区 -->
                    <el-row v-show="searchSlot.searchToggle"> 
                        <c-col :span="12" >
杜大兵 committed
45
                            <el-form-item label="Party Reference" prop="infcon.searef">
杜大兵 committed
46 47 48 49
                                <c-input 
                                    v-model="model.infcon.searef" 
                                    maxlength="16"
                                    placeholder="请输入Party Reference"
杜大兵 committed
50
                                ></c-input>
杜大兵 committed
51 52 53 54 55
                            </el-form-item>
                        </c-col>
                        <c-col :span="12">
                            <el-form-item label="复核状态" prop="infcon.relflg"  style="">
                                <c-select v-model="model.infcon.relflg" style="width:100%" placeholder="请选择Release Status">
杜大兵 committed
56 57 58 59 60 61 62
                                   <!-- v-for 可用于获取码表 codes.码表名,
                                        但因可能会出现重复名,即绑定item.value不严谨,需要使用模板字符串拼接
                                        <el-option
                                            v-for="item in codes.relflg"
                                            :key="item.value"
                                        >
                                     -->
杜大兵 committed
63
                                    <el-option
杜大兵 committed
64 65
                                        v-for="(item, index) in codes.relflg"
                                        :key="`${item.value}_${index}`"
杜大兵 committed
66 67
                                        :label="item.label"
                                        :value="item.value"
杜大兵 committed
68
                                    >
杜大兵 committed
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109
                                    </el-option>
                                </c-select>
                            </el-form-item>
                        </c-col>
                        <c-col :span="12">
                            <el-form-item label="Select Single Party" prop="infcon.pty.extkey">
                                <c-input  
                                    v-model="model.infcon.pty.extkey" 
                                    maxlength="24"  
                                    placeholder="请输入Select Single Party"
                                ></c-input>
                            </el-form-item>
                        </c-col>
                        <c-col :span="12">
                            <el-form-item label="Party Name" prop="infcon.pty.nam">
                                <c-input  
                                    v-model="model.infcon.pty.nam" 
                                    style="width:100%"
                                    maxlength="40"  
                                    placeholder="请输入External Visible Name"
                                ></c-input>
                            </el-form-item>
                        </c-col>
                        <c-col :span="12">
                            <el-form-item label="Party Name/BIC" prop="infcon.seapty">
                                <c-input  
                                    v-model="model.infcon.seapty" 
                                    style="width:100%"
                                    maxlength="24"  
                                    placeholder="请输入Party Name/BIC"
                                ></c-input>
                            </el-form-item>
                        </c-col>
                        <c-col :span="12">
                            <el-form-item label="Role" prop="infcon.searol">
                                <c-select 
                                    v-model="model.infcon.searol" 
                                    style="width:100%" 
                                    placeholder="请选择Role"
                                >
                                    <el-option
杜大兵 committed
110 111 112
                                       
                                         v-for="(item, index) in codes.infled_role"
                                        :key="`${item.value}_${index}`"
杜大兵 committed
113 114 115 116 117 118 119 120
                                        :label="item.label"
                                        :value="item.value"
                                    >
                                    </el-option>
                                </c-select>
                            </el-form-item>
                        </c-col>
                        <c-col :span="12">
杜大兵 committed
121
                            <el-form-item label="业务主题" prop="infcon.nam">
杜大兵 committed
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
                                <c-input 
                                    v-model="model.infcon.nam" 
                                    style="width:100%"
                                    maxlength="40" 
                                    placeholder="请输入Name"
                                ></c-input>
                            </el-form-item>
                        </c-col>
                        <c-col :span="12">
                            <el-form-item label="Resp.User" prop="infcon.usr.extkey">
                                <c-input  
                                    v-model="model.infcon.usr.extkey"
                                    style="width:100%"
                                    maxlength="8"  
                                    placeholder="请输入User ID"
                                ></c-input>
                            </el-form-item>
                        </c-col>
                        <c-col :span="12">
杜大兵 committed
141
                            <el-form-item label="业务状态"  prop="infcon.seasta">
杜大兵 committed
142 143
                                <c-select v-model="model.infcon.seasta" style="width:100%" placeholder="请选择Status">
                                    <el-option
杜大兵 committed
144 145
                                        v-for="(item, index) in codes.seasta"
                                        :key="`${item.value}_${index}`"
杜大兵 committed
146 147 148 149 150 151 152 153 154 155 156
                                        :label="item.label"
                                        :value="item.value"
                                    >
                                    </el-option>
                                </c-select>
                            </el-form-item>
                        </c-col>
                        <c-col :span="12">
                            <el-form-item label="币种" prop="infcon.seacur">
                                <c-select v-model="model.infcon.seacur" style="width:100%" placeholder="请选择Currency">
                                    <el-option
杜大兵 committed
157 158
                                        v-for="(item, index) in codes.infled_Cur"
                                        :key="`${item.value}_${index}`"
杜大兵 committed
159 160 161 162 163 164 165 166 167
                                        :label="item.label"
                                        :value="item.value"
                                    >
                                    </el-option>
                                </c-select>
                            </el-form-item>
                        </c-col>
                        <c-col :span="12">
                            <el-form-item label="是否显示查询码" prop="infcon.cxmflg" >
168 169 170 171 172
                                <c-select 
                                    v-model="model.infcon.cxmflg" 
                                    style="width:100%" 
                                    placeholder="请选择是否显示查询码"
                                >
杜大兵 committed
173
                                    <el-option
杜大兵 committed
174 175
                                        v-for="(item,index) in codes.cxmflg"
                                        :key="`${item.value}_${index}`"
杜大兵 committed
176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197
                                        :label="item.label"
                                        :value="item.value"
                                    >
                                    </el-option>
                                </c-select>
                            </el-form-item>
                        </c-col>    
                        <c-col :span="12">
                            <el-form-item label="金额" >
                                <c-input  
                                    v-model="model.infcon.seaamtfr"  
                                    placeholder="请输入Amount between" 
                                    style="width:45%"
                                ></c-input>
                                    -
                                <c-input  
                                    v-model="model.infcon.seaamtto"  
                                    placeholder="请输入Amount to" 
                                    style="width:45%"
                                ></c-input>
                            </el-form-item>
                        </c-col>
杜大兵 committed
198

杜大兵 committed
199
                        <c-col :span="12">
杜大兵 committed
200
                            <el-form-item label="信用证类型" prop="sealcrtyp">
杜大兵 committed
201 202 203 204
                                <c-select 
                                    v-model="model.sealcrtyp" 
                                    style="width:100%" 
                                    placeholder="请选择Form of L/C"
205 206
                                >
                                    <el-option
杜大兵 committed
207 208
                                        v-for="(item, index) in codes.infled_sealcrtyp"
                                        :key="`${item.value}_${index}`"
209 210 211 212 213
                                        :label="item.label"
                                        :value="item.value"
                                    >
                                    </el-option>
                                </c-select>
杜大兵 committed
214 215 216 217 218 219 220 221 222 223 224 225 226
                            </el-form-item>
                        </c-col>
                    </el-row>   
                </el-form>
            </template>
        </c-list-search>    
        <el-col :span="24" style="padding: 20px 16px;">
            <c-button size="small" type="primary" title="LETOPN"  @click="toLetopn('letopn')">
                出口信用证开立
            </c-button>
            <c-button size="small" type="primary"  @click="onInfbutDsp">
                Display
            </c-button>
杜大兵 committed
227 228 229
            <!-- <c-button size="small" type="primary"  @click="onInfbutUserow">
                Use
            </c-button>-->
杜大兵 committed
230 231 232 233 234 235 236 237 238 239 240
            <c-button size="small" type="primary"  @click="onInfbutClr">
                Clear
            </c-button>
            <c-button size="small" type="primary"  @click="onInfbutButprt">
                导Excel
            </c-button>
            <c-button size="small" type="primary"  @click="onInfbutExi">
                Exit
            </c-button>
        </el-col>
        <c-col :span="24">
杜大兵 committed
241 242
            <!-- <c-istream-table :list="this.model.infbut.dspstm" :columns="columns" style="padding: 0 16px;"> -->
            <c-istream-table :list="stmData.data" :columns="stmData.columns" style="padding: 0 16px;">
杜大兵 committed
243 244 245 246
                <el-table-column
                    fixed="right"
                    prop="op"
                    label="操作"
247
                    width="150px"
杜大兵 committed
248 249
                >
                    <template slot="header">
250 251
                        <c-col :span="11" style="text-align:left"><span>操作</span></c-col>
                        <c-col :span="12" style="text-align:right"><c-button icon="el-icon-s-tools"></c-button></c-col>
杜大兵 committed
252
                    </template>
DDB committed
253 254
                    <template slot-scope="scope">                     
                        <!-- @click="getButtons(scope.row['Reference'])" -->
255 256 257 258
                        <c-button
                            style="margin-left: 0"
                            size="small"
                            type="primary"
杜大兵 committed
259
                           @click="getButtons(scope.row['业务编号'])"
260 261 262
                        >
                            处理
                        </c-button>
263 264 265
                    </template>
                </el-table-column>
            </c-istream-table>
杜大兵 committed
266 267 268
        </c-col>
        <el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
            <div class="m-list-btns">
杜大兵 committed
269 270 271 272 273 274 275
                <m-busbtn 
                    ref="childs"  
                    :ownref="curownref"  
                    @onChoose="onChoose" 
                >
                    11
                </m-busbtn>
杜大兵 committed
276 277 278
            </div>
        </el-dialog> 
    </div>  
279 280 281
</template>
<script>
import Api from "~/service/Api"
wangren committed
282
import commonProcess from "~/mixin/commonProcess";
283 284
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Infled/Event"
杜大兵 committed
285
import BusNavbar from "~/views/Business/Infled/BusNavbar"
286 287 288 289

export default {
    inject: ['root'],
    props:["model","codes"],
wangren committed
290
    mixins: [commonProcess],
杜大兵 committed
291
    components:{'m-busbtn':BusNavbar},
292

杜大兵 committed
293 294 295 296
    data(){
       return {
            curownref:"",
            initdialog:false,
杜大兵 committed
297 298 299 300
            stmData: {
                columns: [
                    //第一个数字表示代表是返回来数据的第几列,第二数字代表前端显示的列顺序
                    '1 1 \"业务编号\" 130 200',
301 302 303 304 305 306 307 308 309 310 311
                    "2 2 \"经办柜员\" 90 80",
                    "4 5 \"开立日期\" 150 250",
                    "5 6 \"到期日\" 150 250",
                    "7 7 \"分行名称\" 200 300",
                    "8 8 \"申请人编号\" 100 200",
                    "9 9 \"申请人名称\" 200 300",
                    "12 10 \"受益人名称\" 200 300",
                    "15 11\"开证行名称\" 100 300",
                    "16 3 \"开立币种\" 80 80",
                    "17 4 \"开立金额\" 90 80",
                ],
杜大兵 committed
312 313
                data: [],
             },
314 315 316 317 318 319 320 321 322 323 324
            trnData: {
                columns: [
                '1 1 "编号" 200',
                '2 2 "交易名称" 100',
                '3 3 "日期" 200',
                '4 4 "状态" 50',
                '5 5 "币种" 80',
                '6 6 "金额" 80',
                ],
                data: [],
            },
325 326
        }
    },
杜大兵 committed
327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342
    methods:{
        ...Event,
        async getButtons(ownref){
            this.initdialog = true
            this.curownref = ownref
            console.log("curownref:" +ownref);
            setTimeout(()=>{
                this.$refs.childs.$emit("childmethods")
                },10
            )
        },
        async  onChoose(code){
            //跳转交易
            this.$router.history.push("/business/" + code)                     
        },
        
DDB committed
343
        // 重置查询参数
杜大兵 committed
344
        handleReset: function () {
杜大兵 committed
345 346
            this.model.infcon.seaownref="";
            this.model.infcon.opendatfrm="";
DDB committed
347 348 349 350 351 352 353 354 355 356 357 358 359 360 361
            this.model.infcon.opndatto="";
            this.model.infcon.searef="";
            this.model.infcon.relflg="";
            this.model.infcon.pty.extkey="";
            this.model.infcon.pty.nam="";
            this.model.infcon.seapty="";
            this.model.infcon.searol="";
            this.model.infcon.nam="";
            this.model.infcon.usr.extkey="";
            this.model.infcon.seasta="";
            this.model.infcon.seacur="";
            this.model.infcon.cxmflg="";
            this.model.infcon.seaamtfr="";
            this.model.infcon.seaamtto="";
            this.model.sealcrtyp="";
杜大兵 committed
362
        },
杜大兵 committed
363
        // 跳转至出口信用证开立
杜大兵 committed
364 365
        toLetopn(){
            this.$router.history.push("/business/letopn") 
杜大兵 committed
366 367 368 369
        },
        closeTrn(refId){
          this.$refs[refId].doClose();
        },
杜大兵 committed
370 371
    },
   
372 373 374 375 376 377 378 379
    created:function(){

    }
}
</script>
<style>

</style>