Commit f2376248 by niewei

前端info界面跳转

parent 1ca258d2
......@@ -6,7 +6,7 @@ export default {
let rtnmsg = await this.executeRule("infbut.searow")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.model.infbut.dspstm = rtnmsg.data.infbut_dspstm
this.stmData.data = rtnmsg.data.infbut_dspstm.rows;
this.$message({
type: 'success',
message: '获取成功!'
......
......@@ -6,7 +6,8 @@ export default {
let rtnmsg = await this.executeRule("infbut.searow")
if (rtnmsg.respCode == SUCCESS) {
//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({
type: 'success',
message: '获取成功!'
......
......@@ -139,7 +139,7 @@
</template>
</c-infsearch-group>
<!--
<c-row style="margin-top:20px; padding: 0 10px 0 10px;">
<c-col>
<c-button size="small" type="primary">导Excel</c-button>
......@@ -150,24 +150,116 @@
<c-button size="small" type="primary">Use</c-button>
</c-col>
</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-istream-table :border="true"
:list="tableData"
:columns="stmData.columns"
v-on:chooseRowEvent="chooseRowEvent"
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-row>
-->
<!--
<c-row>
<c-col :span="24">
......@@ -191,32 +283,48 @@ export default {
mixins: [CommonProcess],
data(){
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: {
columns: [
"1 1 \"Reference\" 100 ",
"1 1 \"Resp. User\" 100 ",
"2 2 \"Party Number\" 150 ",
"2 2 \"Applicant\" 150 ",
"3 3 \"Party Number\" 150 ",
"3 3 \"Beneficiary\" 150 ",
"4 4 \"Party Number\" 150 ",
"4 4 \"Issuing Bank\" 150 ",
"5 5 \"\" 150 ",
"5 5 \"\" 150 ",
"5 5 \"转卖日期\" 150 ",
"6 6 \"Opened\" 50 ",
"6 6 \"Closed\" 50 ",
"7 7 \"Cur\" 50 ",
"7 7 \"Cur\" 50 ",
"8 8 \"Doc.Amount\" 150 ",
"8 8 \"Open Amount\" 150 ",
"2 1 \"Reference\" 100 ",
"3 2 \"Resp. User\" 100 ",
"6 3 \"Party Number\" 150 ",
"7 4 \"Applicant\" 150 ",
"8 5 \"Party Number\" 150 ",
"9 6 \"Beneficiary\" 150 ",
"10 7 \"Party Number\" 150 ",
"11 8 \"Issuing Bank\" 150 ",
"12 9 \"Party Number\" 150 ",
"13 10 \"Purchasing bank\" 150 ",
"1 11 \"转卖日期\" 150 ",
"4 12 \"Opened\" 150 ",
"5 13 \"Closed\" 150 ",
"14 14 \"Cur\" 50 ",
"16 15 \"Cur\" 50 ",
"15 16 \"Doc.Amount\" 150 ",
"17 17 \"Open Amount\" 150 ",
],
data:[
]
],
},
}
},
/*
computed: {
tableData() {
// "10000449\t2000007350\t2000007350-001\tBEIJING TESTTEST,BEIJING, CHINA\t\t100080\tBEIJING, CHINA\tTEST TEST1 CO.,LTD."
......@@ -224,12 +332,44 @@ export default {
return this.model.infbut.dspstm.rows;
},
},
methods:{
chooseRowEvent(row) {
this.model.infbut.selrow = row.IDX + 1;
},
...Event},
*/
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.bfdgrp.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();
}
},
created:function(){
}
......
......@@ -65,6 +65,8 @@ export default {
created:async function(){
console.log("进入infcur交易");
console.log(this.$route.query)
console.log(this.$route.query.ownref)
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
......
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