Commit f2376248 by niewei

前端info界面跳转

parent 1ca258d2
...@@ -6,7 +6,7 @@ export default { ...@@ -6,7 +6,7 @@ export default {
let rtnmsg = await this.executeRule("infbut.searow") let rtnmsg = await this.executeRule("infbut.searow")
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
this.model.infbut.dspstm = rtnmsg.data.infbut_dspstm this.stmData.data = rtnmsg.data.infbut_dspstm.rows;
this.$message({ this.$message({
type: 'success', type: 'success',
message: '获取成功!' message: '获取成功!'
......
export default { export default {
"infcon.seaownref":[ "infcon.seaownref": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 16,message:"长度不能超过16"} { max: 16, message: "长度不能超过16" }
], ],
"infcon.nam":[ "infcon.nam": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 40,message:"长度不能超过40"} { max: 40, message: "长度不能超过40" }
], ],
"infcon.searef":[ "infcon.searef": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 16,message:"长度不能超过16"} { max: 16, message: "长度不能超过16" }
], ],
"infcon.pty.extkey":[ "infcon.pty.extkey": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 24,message:"长度不能超过24"} { max: 24, message: "长度不能超过24" }
], ],
"infcon.pty.nam":[ "infcon.pty.nam": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 40,message:"长度不能超过40"} { max: 40, message: "长度不能超过40" }
], ],
"infcon.seapty":[ "infcon.seapty": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 24,message:"长度不能超过24"} { max: 24, message: "长度不能超过24" }
], ],
"infcon.opndatfrom":[ "infcon.opndatfrom": [
{type: "date", required: false, message: "输入正确的日期"} { type: "string", required: false, message: "输入正确的日期" }
], ],
"infcon.opndatto":[ "infcon.opndatto": [
{type: "date", required: false, message: "输入正确的日期"} { type: "string", required: false, message: "输入正确的日期" }
], ],
"infcon.usr.extkey":[ "infcon.usr.extkey": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 8,message:"长度不能超过8"} { max: 8, message: "长度不能超过8" }
], ],
"infcon.seaamtfr":[ "infcon.seaamtfr": [
{type: "number", required: false, message: "必输项"}, { type: "number", required: false, message: "必输项" },
{max: 18,message:"整数位不能超过14位"}, { max: 18, message: "整数位不能超过14位" },
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } { pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
"infcon.seaamtto":[ "infcon.seaamtto": [
{type: "number", required: false, message: "必输项"}, { type: "number", required: false, message: "必输项" },
{max: 18,message:"整数位不能超过14位"}, { max: 18, message: "整数位不能超过14位" },
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } { pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
"infbut.dspstm":[ "infbut.dspstm": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 1,message:"长度不能超过1"} { max: 1, message: "长度不能超过1" }
], ],
"recpan.dedget.sdamod.dadsnd":[ "recpan.dedget.sdamod.dadsnd": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 16,message:"长度不能超过16"} { max: 16, message: "长度不能超过16" }
], ],
"dedgrp.rec.ownref":[ "dedgrp.rec.ownref": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 16,message:"长度不能超过16"} { max: 16, message: "长度不能超过16" }
], ],
"recpan.dedget.sdamod.seainf":[ "recpan.dedget.sdamod.seainf": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 3,message:"长度不能超过3"} { max: 3, message: "长度不能超过3" }
], ],
"dedgrp.cbs.opn1.cur":[ "dedgrp.cbs.opn1.cur": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 3,message:"长度不能超过3"} { max: 3, message: "长度不能超过3" }
], ],
"dedgrp.cbs.opn1.amt":[ "dedgrp.cbs.opn1.amt": [
{type: "number", required: false, message: "必输项"}, { type: "number", required: false, message: "必输项" },
{max: 18,message:"整数位不能超过14位"}, { max: 18, message: "整数位不能超过14位" },
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } { pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
"recpan.recget.sdamod.dadsnd":[ "recpan.recget.sdamod.dadsnd": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 16,message:"长度不能超过16"} { max: 16, message: "长度不能超过16" }
], ],
"bfdgrp.rec.ownref":[ "bfdgrp.rec.ownref": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 16,message:"长度不能超过16"} { max: 16, message: "长度不能超过16" }
], ],
"recpan.recget.sdamod.seainf":[ "recpan.recget.sdamod.seainf": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 3,message:"长度不能超过3"} { max: 3, message: "长度不能超过3" }
], ],
"bfdgrp.rec.nam":[ "bfdgrp.rec.nam": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 40,message:"长度不能超过40"} { max: 40, message: "长度不能超过40" }
], ],
"bfdgrp.cbs.max.amt":[ "bfdgrp.cbs.max.amt": [
{type: "number", required: false, message: "必输项"}, { type: "number", required: false, message: "必输项" },
{max: 18,message:"整数位不能超过14位"}, { max: 18, message: "整数位不能超过14位" },
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } { pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
"bfdgrp.prb.pts.ref":[ "bfdgrp.prb.pts.ref": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 16,message:"长度不能超过16"} { max: 16, message: "长度不能超过16" }
], ],
"bfdgrp.cbs.opn1.cur":[ "bfdgrp.cbs.opn1.cur": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 3,message:"长度不能超过3"} { max: 3, message: "长度不能超过3" }
], ],
"bfdgrp.cbs.opn1.amt":[ "bfdgrp.cbs.opn1.amt": [
{type: "number", required: false, message: "必输项"}, { type: "number", required: false, message: "必输项" },
{max: 18,message:"整数位不能超过14位"}, { max: 18, message: "整数位不能超过14位" },
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } { pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
"bfdgrp.prb.pts.nam":[ "bfdgrp.prb.pts.nam": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 40,message:"长度不能超过40"} { max: 40, message: "长度不能超过40" }
], ],
"dedgrp.rec.kzref":[ "dedgrp.rec.kzref": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 35,message:"长度不能超过35"} { max: 35, message: "长度不能超过35" }
], ],
"bfdgrp.iss.pts.ref":[ "bfdgrp.iss.pts.ref": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 16,message:"长度不能超过16"} { max: 16, message: "长度不能超过16" }
], ],
"bfdgrp.iss.pts.nam":[ "bfdgrp.iss.pts.nam": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 40,message:"长度不能超过40"} { max: 40, message: "长度不能超过40" }
], ],
"bfdgrp.rec.matdat":[ "bfdgrp.rec.matdat": [
{type: "date", required: false, message: "输入正确的日期"} { type: "date", required: false, message: "输入正确的日期" }
], ],
"bfdgrp.rec.rcvdat":[ "bfdgrp.rec.rcvdat": [
{type: "date", required: false, message: "输入正确的日期"} { type: "date", required: false, message: "输入正确的日期" }
], ],
"bfdgrp.rec.predat":[ "bfdgrp.rec.predat": [
{type: "date", required: false, message: "输入正确的日期"} { type: "date", required: false, message: "输入正确的日期" }
], ],
"bfdgrp.apl.pts.ref":[ "bfdgrp.apl.pts.ref": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 16,message:"长度不能超过16"} { max: 16, message: "长度不能超过16" }
], ],
"bfdgrp.rec.docsta":[ "bfdgrp.rec.docsta": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 40,message:"长度不能超过40"} { max: 40, message: "长度不能超过40" }
], ],
"bfdgrp.apl.pts.nam":[ "bfdgrp.apl.pts.nam": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 40,message:"长度不能超过40"} { max: 40, message: "长度不能超过40" }
], ],
"mtabut.coninf.oitinf.oit.inftxt":[ "mtabut.coninf.oitinf.oit.inftxt": [
{type: "string", required: true, message: "必输项"}, { type: "string", required: true, message: "必输项" },
{max: 60,message:"长度不能超过60"} { max: 60, message: "长度不能超过60" }
], ],
"mtabut.coninf.oitset.oit.inftxt":[ "mtabut.coninf.oitset.oit.inftxt": [
{type: "string", required: true, message: "必输项"}, { type: "string", required: true, message: "必输项" },
{max: 60,message:"长度不能超过60"} { max: 60, message: "长度不能超过60" }
], ],
"mtabut.coninf.conexedat":[ "mtabut.coninf.conexedat": [
{type: "date", required: false, message: "输入正确的日期"} { type: "date", required: false, message: "输入正确的日期" }
], ],
"mtabut.coninf.usr.extkey":[ "mtabut.coninf.usr.extkey": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 8,message:"长度不能超过8"} { max: 8, message: "长度不能超过8" }
], ],
"infcon.trnstm":[ "infcon.trnstm": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 1,message:"长度不能超过1"} { max: 1, message: "长度不能超过1" }
], ],
"infcon.cbbstm":[ "infcon.cbbstm": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 1,message:"长度不能超过1"} { max: 1, message: "长度不能超过1" }
], ],
"infcon.cbestm":[ "infcon.cbestm": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 1,message:"长度不能超过1"} { max: 1, message: "长度不能超过1" }
], ],
"infcon.fepstm":[ "infcon.fepstm": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 1,message:"长度不能超过1"} { max: 1, message: "长度不能超过1" }
], ],
"infcon.fcpstm":[ "infcon.fcpstm": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 1,message:"长度不能超过1"} { max: 1, message: "长度不能超过1" }
], ],
"infcon.sepstm":[ "infcon.sepstm": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 1,message:"长度不能超过1"} { max: 1, message: "长度不能超过1" }
], ],
"infcon.seabucdatfro":[ "infcon.seabucdatfro": [
{type: "date", required: false, message: "输入正确的日期"} { type: "date", required: false, message: "输入正确的日期" }
], ],
"infcon.seabucdatto":[ "infcon.seabucdatto": [
{type: "date", required: false, message: "输入正确的日期"} { type: "date", required: false, message: "输入正确的日期" }
], ],
"infcon.seatrninr":[ "infcon.seatrninr": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 8,message:"长度不能超过8"} { max: 8, message: "长度不能超过8" }
], ],
"infcon.glestm":[ "infcon.glestm": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 1,message:"长度不能超过1"} { max: 1, message: "长度不能超过1" }
], ],
"infcon.smhdatfrom":[ "infcon.smhdatfrom": [
{type: "date", required: false, message: "输入正确的日期"} { type: "date", required: false, message: "输入正确的日期" }
], ],
"infcon.smhdatto":[ "infcon.smhdatto": [
{type: "date", required: false, message: "输入正确的日期"} { type: "date", required: false, message: "输入正确的日期" }
], ],
"infcon.smhstm":[ "infcon.smhstm": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 1,message:"长度不能超过1"} { max: 1, message: "长度不能超过1" }
], ],
"infcon.sptstm":[ "infcon.sptstm": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 1,message:"长度不能超过1"} { max: 1, message: "长度不能超过1" }
], ],
"infcon.diadatfrom":[ "infcon.diadatfrom": [
{type: "date", required: false, message: "输入正确的日期"} { type: "date", required: false, message: "输入正确的日期" }
], ],
"infcon.diadatto":[ "infcon.diadatto": [
{type: "date", required: false, message: "输入正确的日期"} { type: "date", required: false, message: "输入正确的日期" }
], ],
"infcon.diastm":[ "infcon.diastm": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 1,message:"长度不能超过1"} { max: 1, message: "长度不能超过1" }
], ],
"infcon.liastm":[ "infcon.liastm": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 1,message:"长度不能超过1"} { max: 1, message: "长度不能超过1" }
], ],
"prtpanblk":[ "prtpanblk": [
{type: "string", required: true, message: "必输项"}, { type: "string", required: true, message: "必输项" },
{max: 200,message:"长度不能超过200"} { max: 200, message: "长度不能超过200" }
], ],
"infcon.ordstm":[ "infcon.ordstm": [
{type: "string", required: false, message: "必输项"}, { type: "string", required: false, message: "必输项" },
{max: 1,message:"长度不能超过1"} { max: 1, message: "长度不能超过1" }
], ],
} }
\ No newline at end of file
...@@ -6,7 +6,8 @@ export default { ...@@ -6,7 +6,8 @@ export default {
let rtnmsg = await this.executeRule("infbut.searow") let rtnmsg = await this.executeRule("infbut.searow")
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
this.model.infbut.dspstm = rtnmsg.data.infbut_dspstm this.stmData.data = rtnmsg.data.infbut_dspstm.rows;
//this.model.infbut.dspstm = rtnmsg.data.infbut_dspstm
this.$message({ this.$message({
type: 'success', type: 'success',
message: '获取成功!' message: '获取成功!'
......
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
</template> </template>
</c-infsearch-group> </c-infsearch-group>
<!--
<c-row style="margin-top:20px; padding: 0 10px 0 10px;"> <c-row style="margin-top:20px; padding: 0 10px 0 10px;">
<c-col> <c-col>
<c-button size="small" type="primary">导Excel</c-button> <c-button size="small" type="primary">导Excel</c-button>
...@@ -150,24 +150,116 @@ ...@@ -150,24 +150,116 @@
<c-button size="small" type="primary">Use</c-button> <c-button size="small" type="primary">Use</c-button>
</c-col> </c-col>
</c-row> </c-row>
-->
<c-col :span="24">
<c-istream-table :list="stmData.data" :columns="stmData.columns">
<el-table-column fixed="right" prop="op" label="操作" width="150px">
<template slot="header">
<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>
</template>
<template slot-scope="scope">
<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.$index, scope.row)"
>
详情
</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>
<c-button
style="margin-left: 0"
size="small"
type="primary"
@click="getButtons(scope.row['Reference'], 'bftdrv')"
>
寄单索款修改
</c-button>
<c-button
style="margin-left: 0"
size="small"
type="primary"
@click="getButtons(scope.row['Reference'], 'bftdcr')"
>
电提不符点/开证行拒付
</c-button>
<c-button
style="margin-left: 0"
size="small"
type="primary"
@click="getButtons(scope.row['Reference'], 'bftsnd')"
>
寄单
</c-button>
<c-button
style="margin-left: 0"
size="small"
type="primary"
@click="getButtons(scope.row['Reference'], 'bftacc')"
>
承兑
</c-button>
<c-button
style="margin-left: 0"
size="small"
type="primary"
@click="getButtons(scope.row['Reference'], 'bftset')"
>
收款
</c-button>
<c-button
style="margin-left: 0"
size="small"
type="primary"
@click="getButtons(scope.row['Reference'], 'bftcan')"
>
注销
</c-button>
</template>
</el-table-column>
</c-istream-table>
</c-col>
<!--
<c-row style="margin-top:20px; padding: 0 10px 0 10px;"> <c-row style="margin-top:20px; padding: 0 10px 0 10px;">
<c-istream-table :border="true" <c-istream-table :border="true"
:list="tableData" :list="tableData"
:columns="stmData.columns" :columns="stmData.columns"
v-on:chooseRowEvent="chooseRowEvent" v-on:chooseRowEvent="chooseRowEvent"
style="width:80%,text-align:center"> style="width:80%,text-align:center">
<!--
<el-table-column prop="op" label="OP" width="100">
<template slot-scope="scope">
<a href="javascript:void(0)" @click="continueEdit(scope.row)">操作</a>
</template>
</el-table-column>
-->
</c-istream-table> </c-istream-table>
</c-row> </c-row>
-->
<!-- <!--
<c-row> <c-row>
<c-col :span="24"> <c-col :span="24">
...@@ -191,32 +283,48 @@ export default { ...@@ -191,32 +283,48 @@ export default {
mixins: [CommonProcess], mixins: [CommonProcess],
data(){ data(){
return { return {
ownref: "",
initdialog: false,
dialogTableVisible: false,
trnData: {
columns: [
'1 1 "编号" 200',
'2 2 "交易名称" 100',
'3 3 "日期" 200',
'4 4 "状态" 50',
'5 5 "币种" 80',
'6 6 "金额" 80',
],
data: [],
},
stmData: { stmData: {
columns: [ columns: [
"1 1 \"Reference\" 100 ", "2 1 \"Reference\" 100 ",
"1 1 \"Resp. User\" 100 ", "3 2 \"Resp. User\" 100 ",
"2 2 \"Party Number\" 150 ", "6 3 \"Party Number\" 150 ",
"2 2 \"Applicant\" 150 ", "7 4 \"Applicant\" 150 ",
"3 3 \"Party Number\" 150 ", "8 5 \"Party Number\" 150 ",
"3 3 \"Beneficiary\" 150 ", "9 6 \"Beneficiary\" 150 ",
"4 4 \"Party Number\" 150 ", "10 7 \"Party Number\" 150 ",
"4 4 \"Issuing Bank\" 150 ", "11 8 \"Issuing Bank\" 150 ",
"5 5 \"\" 150 ", "12 9 \"Party Number\" 150 ",
"5 5 \"\" 150 ", "13 10 \"Purchasing bank\" 150 ",
"5 5 \"转卖日期\" 150 ", "1 11 \"转卖日期\" 150 ",
"6 6 \"Opened\" 50 ", "4 12 \"Opened\" 150 ",
"6 6 \"Closed\" 50 ", "5 13 \"Closed\" 150 ",
"7 7 \"Cur\" 50 ", "14 14 \"Cur\" 50 ",
"7 7 \"Cur\" 50 ", "16 15 \"Cur\" 50 ",
"8 8 \"Doc.Amount\" 150 ", "15 16 \"Doc.Amount\" 150 ",
"8 8 \"Open Amount\" 150 ", "17 17 \"Open Amount\" 150 ",
], ],
data:[ data:[
] ],
}, },
} }
}, },
/*
computed: { computed: {
tableData() { tableData() {
// "10000449\t2000007350\t2000007350-001\tBEIJING TESTTEST,BEIJING, CHINA\t\t100080\tBEIJING, CHINA\tTEST TEST1 CO.,LTD." // "10000449\t2000007350\t2000007350-001\tBEIJING TESTTEST,BEIJING, CHINA\t\t100080\tBEIJING, CHINA\tTEST TEST1 CO.,LTD."
...@@ -224,12 +332,44 @@ export default { ...@@ -224,12 +332,44 @@ export default {
return this.model.infbut.dspstm.rows; return this.model.infbut.dspstm.rows;
}, },
}, },
*/
methods:{ methods:{
chooseRowEvent(row) { ...Event,
this.model.infbut.selrow = row.IDX + 1; async getButtons(ownref, frm){
this.initdialog = true
this.ownref = ownref
console.log("ownref:" +ownref);
// setTimeout(()=>{
// // this.$refs.childs.$emit("childmethods")
// console.log(this)
// console.log(this.$refs)
// console.log(this.$refs.childs)
// },10)
this.$router.history.push({ path: "/business/" + frm, query: { ownref } })
},
async onChoose(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.initdialog = false
}, },
async getTrnInfo(idx, row) {
this.model.infcon.objinr = row["INR"];
this.model.bfdgrp.rec.inr = row["INR"];
this.model.infcon.chksubcon = "X";
...Event}, this.dialogTableVisible = true;
let rtnmsg = await this.executeDefault("infcon.chksubcon");
if ((rtnmsg.respCode = SUCCESS)) {
this.trnData.data = rtnmsg.data.infcon_trnstm.rows;
}
},
closeTrn(refId){
this.$refs[refId].doClose();
}
},
created:function(){ created:function(){
} }
......
...@@ -65,6 +65,8 @@ export default { ...@@ -65,6 +65,8 @@ export default {
created:async function(){ created:async function(){
console.log("进入infcur交易"); console.log("进入infcur交易");
console.log(this.$route.query)
console.log(this.$route.query.ownref)
let rtnmsg = await this.init({}) let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS) if(rtnmsg.respCode == SUCCESS)
{ {
......
...@@ -99,6 +99,13 @@ ...@@ -99,6 +99,13 @@
<c-col :span="12"> <c-col :span="12">
<el-form-item label="状态" prop="infcon.seasta"> <el-form-item label="状态" prop="infcon.seasta">
<c-select v-model="model.infcon.seasta" style="width:100%" placeholder="请选择Status"> <c-select v-model="model.infcon.seasta" style="width:100%" placeholder="请选择Status">
<el-option
v-for="item in codes.seasta"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -140,6 +147,13 @@ ...@@ -140,6 +147,13 @@
<c-col :span="9" :offset="1"> <c-col :span="9" :offset="1">
<el-form-item label="Form of L/C" prop="sealcrtyp"> <el-form-item label="Form of L/C" prop="sealcrtyp">
<c-select v-model="model.sealcrtyp" style="width:100%" placeholder="请选择Form of L/C"> <c-select v-model="model.sealcrtyp" style="width:100%" placeholder="请选择Form of L/C">
<el-option
v-for="item in codes.sealcrtyp"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -147,6 +161,13 @@ ...@@ -147,6 +161,13 @@
<c-col :span="6" :offset="1"> <c-col :span="6" :offset="1">
<el-form-item label="交易类型" prop="mylx"> <el-form-item label="交易类型" prop="mylx">
<c-select v-model="model.mylx" style="width:100%" placeholder="请选择交易类型"> <c-select v-model="model.mylx" style="width:100%" placeholder="请选择交易类型">
<el-option
v-for="item in codes.mylx"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -154,6 +175,13 @@ ...@@ -154,6 +175,13 @@
<c-col :span="6" :offset="1"> <c-col :span="6" :offset="1">
<el-form-item label="是否通过电证系统" prop="elcflg"> <el-form-item label="是否通过电证系统" prop="elcflg">
<c-select v-model="model.elcflg" style="width:100%" placeholder="请选择是否通过电证系统"> <c-select v-model="model.elcflg" style="width:100%" placeholder="请选择是否通过电证系统">
<el-option
v-for="item in codes.elcflg"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -162,6 +190,78 @@ ...@@ -162,6 +190,78 @@
</template> </template>
</c-infsearch-group> </c-infsearch-group>
<c-col :span="24" style="margin-top: 10px">
<c-button class="medium_bcs" size="medium" type="primary" @click="toDetopn">卖方信用证国内证通知</c-button>
</c-col>
<c-col :span="24">
<c-istream-table :list="stmData.data" :columns="stmData.columns">
<el-table-column fixed="right" prop="op" label="操作" width="150px">
<template slot="header">
<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>
</template>
<template slot-scope="scope">
<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.$index, scope.row)"
>
详情
</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>
<c-button
style="margin-left: 0"
size="small"
type="primary"
@click="getButtons(scope.row['Reference'], 'detame')"
>
修改通知
</c-button>
<c-button
style="margin-left: 0"
size="small"
type="primary"
@click="getButtons(scope.row['Reference'], 'detdrv')"
>
收单
</c-button>
</template>
</el-table-column>
</c-istream-table>
</c-col>
<!--
<c-row style="margin-top:20px; padding: 0 10px 0 10px;"> <c-row style="margin-top:20px; padding: 0 10px 0 10px;">
<c-col> <c-col>
<c-button size="small" type="primary">导Excel</c-button> <c-button size="small" type="primary">导Excel</c-button>
...@@ -172,7 +272,9 @@ ...@@ -172,7 +272,9 @@
<c-button size="small" type="primary">Use</c-button> <c-button size="small" type="primary">Use</c-button>
</c-col> </c-col>
</c-row> </c-row>
-->
<!--
<c-row style="margin-top:20px; padding: 0 10px 0 10px;"> <c-row style="margin-top:20px; padding: 0 10px 0 10px;">
<c-istream-table <c-istream-table
:border="true" :border="true"
...@@ -180,6 +282,9 @@ ...@@ -180,6 +282,9 @@
:columns="stmData.columns" :columns="stmData.columns"
v-on:chooseRowEvent="chooseRowEvent" v-on:chooseRowEvent="chooseRowEvent"
style="width:80%,text-align:center"> style="width:80%,text-align:center">
</c-istream-table>
</c-row>
-->
<!-- <!--
<el-table-column prop="op" label="OP" width="100"> <el-table-column prop="op" label="OP" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -187,8 +292,6 @@ ...@@ -187,8 +292,6 @@
</template> </template>
</el-table-column> </el-table-column>
--> -->
</c-istream-table>
</c-row>
</c-content> </c-content>
</template> </template>
...@@ -204,31 +307,46 @@ export default { ...@@ -204,31 +307,46 @@ export default {
mixins: [CommonProcess], mixins: [CommonProcess],
data(){ data(){
return { return {
ownref: "",
initdialog: false,
dialogTableVisible: false,
trnData: {
columns: [
'1 1 "编号" 200',
'2 2 "交易名称" 100',
'3 3 "日期" 200',
'4 4 "状态" 50',
'5 5 "币种" 80',
'6 6 "金额" 80',
],
data: [],
},
stmData: { stmData: {
columns: [ columns: [
"1 1 \"Reference\" 100 ", "1 1 \"Reference\" 100 ",
"2 1 \"Resp. User\" 100", "2 2 \"Resp. User\" 100",
"3 1 \"Tenor day\" 100", "3 3 \"Tenor day\" 100",
"7 2 \"Party Number\" 150 ", "7 4 \"Party Number\" 150 ",
"8 2 \"Applicant\" 150 ", "8 5 \"Applicant\" 150 ",
"9 3 \"Party Number\" 150 ", "9 6 \"Party Number\" 150 ",
"10 3 \"Beneficiary\" 150 ", "10 7 \"Beneficiary\" 150 ",
"11 4 \"Party Number\" 150 ", "11 8 \"Party Number\" 150 ",
"12 4 \"Issuing Bank\" 150 ", "12 9 \"Issuing Bank\" 150 ",
"4 5 \"Opened\" 150 ", "4 10 \"Opened\" 150 ",
"5 5 \"Expired\" 150 ", "5 11 \"Expired\" 150 ",
"6 5 \"Closed\" 150 ", "6 12 \"Closed\" 150 ",
"13 6 \"Cur\" 150 ", "13 13 \"Cur\" 150 ",
"15 6 \"Cur\" 150 ", "15 14 \"Cur\" 150 ",
"14 7 \"L/C Amount\" 150 ", "14 15 \"L/C Amount\" 150 ",
"16 7 \"Open Amount\" 150 ", "16 16 \"Open Amount\" 150 ",
], ],
data: [ data: [
] ],
}, },
} }
}, },
/*
computed: { computed: {
tableData() { tableData() {
// "10000449\t2000007350\t2000007350-001\tBEIJING TESTTEST,BEIJING, CHINA\t\t100080\tBEIJING, CHINA\tTEST TEST1 CO.,LTD." // "10000449\t2000007350\t2000007350-001\tBEIJING TESTTEST,BEIJING, CHINA\t\t100080\tBEIJING, CHINA\tTEST TEST1 CO.,LTD."
...@@ -236,12 +354,51 @@ export default { ...@@ -236,12 +354,51 @@ export default {
return this.model.infbut.dspstm.rows; return this.model.infbut.dspstm.rows;
} }
}, },
methods:{ */
methods:{ ...Event,
async getButtons(ownref, frm){
this.initdialog = true
this.ownref = ownref
console.log("ownref:" +ownref);
// setTimeout(()=>{
// // this.$refs.childs.$emit("childmethods")
// console.log(this)
// console.log(this.$refs)
// console.log(this.$refs.childs)
// },10)
this.$router.history.push({ path: "/business/" + frm, query: { ownref } })
},
async onChoose(code){
//跳转交易
this.$router.history.push("/business/" + code)
this.initdialog = false
} ,
async getTrnInfo(idx, row) {
this.model.infcon.objinr = row["INR"];
this.model.dedgrp.rec.inr = row["INR"];
this.model.infcon.chksubcon = "X";
this.dialogTableVisible = true;
let rtnmsg = await this.executeDefault("infcon.chksubcon");
if ((rtnmsg.respCode = SUCCESS)) {
this.trnData.data = rtnmsg.data.infcon_trnstm.rows;
}
},
closeTrn(refId){
this.$refs[refId].doClose();
},
/*
chooseRowEvent(row) { chooseRowEvent(row) {
this.model.infbut.selrow = row.IDX + 1; this.model.infbut.selrow = row.IDX + 1;
}, },
*/
toDetopn(){
this.$router.history.push("/business/detopn")
}
...Event}, },
created:function(){ created:function(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment