Commit db8802de by wangguangchao

信用证交易查询增加历史查询

parent 8867bc02
...@@ -92,6 +92,7 @@ export default class Ditdck{ ...@@ -92,6 +92,7 @@ export default class Ditdck{
expdat:"", // Date of Expiry .didgrp.rec.expdat expdat:"", // Date of Expiry .didgrp.rec.expdat
lcrtyp:"", // 信用证类型 .didgrp.rec.lcrtyp lcrtyp:"", // 信用证类型 .didgrp.rec.lcrtyp
expplc:"", // 到期日/到期地点 .didgrp.rec.expplc expplc:"", // 到期日/到期地点 .didgrp.rec.expplc
inr:"",
}, },
apl:{ apl:{
pts:new Pts().data, pts:new Pts().data,
...@@ -310,6 +311,11 @@ export default class Ditdck{ ...@@ -310,6 +311,11 @@ export default class Ditdck{
gleshwstm: {} gleshwstm: {}
} }
}, },
infcon:{
objinr:"",
chksubcon:"",
},
pageId: "" // ctx的key pageId: "" // ctx的key
} }
} }
......
...@@ -26,9 +26,7 @@ ...@@ -26,9 +26,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="2"> <c-col :span="2"> &nbsp; </c-col>
&nbsp;
</c-col>
<c-col :span="10"> <c-col :span="10">
<el-form-item <el-form-item
...@@ -297,31 +295,63 @@ ...@@ -297,31 +295,63 @@
</template> </template>
</c-list-search> </c-list-search>
<c-col :span="24" style="margin-top:10px"> <c-col :span="24" style="margin-top: 10px">
<c-button type="primary" size="small">信用证开立</c-button> <c-button type="primary" size="small">信用证开立</c-button>
</c-col> </c-col>
<el-row> <el-row>
<c-col :span="24"> <c-col :span="24">
<c-istream-table :list="stmData.data" :columns="stmData.columns"> <c-istream-table :list="stmData.data" :columns="stmData.columns">
<el-table-column <el-table-column fixed="right" prop="op" label="操作" width="200px">
fixed="right"
prop="op"
label="操作"
width="150px"
>
<template slot="header"> <template slot="header">
<c-col :span="11" style="text-align:left"><span>操作</span></c-col> <c-col :span="11" style="text-align: left"
<c-col :span="12" style="text-align:right"><c-button icon="el-icon-s-tools"></c-button></c-col> ><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>
<template slot-scope="scope"> <template slot-scope="scope">
<el-popover
placement="top-start"
title="历史信息"
width="800"
trigger="click"
>
<c-istream-table
:list="trnData.data"
:columns="trnData.columns"
>
<el-table-column prop="op" label="操作" width="110">
<template slot-scope="scope">
<c-button <c-button
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
type="primary"
@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> </c-button>
</el-popover>
<!-- <c-button
style="margin-left: 0"
size="small"
@click="getTrnInfo(scope.$index,scope.row)"
>
详情
</c-button> -->
<c-button <c-button
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
...@@ -335,11 +365,10 @@ ...@@ -335,11 +365,10 @@
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
type="primary" type="primary"
@click="getDitSelInfo(scope.$index,scope.row)" @click="getDitSelInfo(scope.$index, scope.row)"
> >
info info
</c-button> </c-button>
</template> </template>
</el-table-column> </el-table-column>
</c-istream-table> </c-istream-table>
...@@ -348,10 +377,14 @@ ...@@ -348,10 +377,14 @@
<el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body> <el-dialog :visible.sync="initdialog" :title="'交易列表'" append-to-body>
<div class="m-list-btns"> <div class="m-list-btns">
<m-busbtn ref="childs" :ownref="ownref" @onChoose="onChoose" >11</m-busbtn> <m-busbtn ref="childs" :ownref="ownref" @onChoose="onChoose"
>11</m-busbtn
>
</div> </div>
</el-dialog> </el-dialog>
<!-- <c-col :span="12"> <!-- <c-col :span="12">
<el-form-item label="Own Reference" prop="infcon.seaownref"> <el-form-item label="Own Reference" prop="infcon.seaownref">
<c-input v-model="model.infcon.seaownref" maxlength="16" placeholder="请输入Own Reference"></c-input> <c-input v-model="model.infcon.seaownref" maxlength="16" placeholder="请输入Own Reference"></c-input>
...@@ -539,22 +572,36 @@ ...@@ -539,22 +572,36 @@
</div> </div>
</template> </template>
<script> <script>
import Utils from "~/utils/index" import Utils from "~/utils/index";
import Api from "~/service/Api"; import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess"; import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Event from "~/model/Infdid/Event"; import Event from "~/model/Infdid/Event";
import BusNavbar from "~/views/Business/Infdid/BusNavbar" import BusNavbar from "~/views/Business/Infdid/BusNavbar";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [CommonProcess], mixins: [CommonProcess],
components:{'m-busbtn':BusNavbar}, components: { "m-busbtn": BusNavbar },
data() { data() {
return { return {
ownref:"", ownref: "",
initdialog:false, initdialog: false,
dialogTableVisible: false,
trnData: {
columns: [
'1 1 "编号" 0',
'2 2 "交易名称" 0',
'3 3 "日期" 0',
'4 4 "状态" 0',
'5 5 "币种" 0',
'6 6 "金额" 0',
'7 7 "Relres" 0',
'0 8 "Inr" 0',
],
data: [],
},
stmData: { stmData: {
columns: [ columns: [
'1 1 "Reference" 120', '1 1 "Reference" 120',
...@@ -577,40 +624,56 @@ export default { ...@@ -577,40 +624,56 @@ export default {
}, },
}; };
}, },
methods: { ...Event, methods: {
async getButtons(ownref){ ...Event,
this.initdialog = true async getButtons(ownref) {
this.ownref = ownref this.initdialog = true;
console.log("ownref:" +ownref); this.ownref = ownref;
setTimeout(()=>{ console.log("ownref:" + ownref);
this.$refs.childs.$emit("childmethods") setTimeout(() => {
},10) this.$refs.childs.$emit("childmethods");
}, 10);
}, },
async onChoose(code){ async onChoose(code) {
//跳转交易 //跳转交易
this.$router.history.push("/business/" + code) this.$router.history.push("/business/" + code);
this.initdialog = false this.initdialog = false;
} , },
async getDitSelInfo(idx,row){ async getDitSelInfo(idx, row) {
console.log(row); console.log(row);
var params = {selDst:"infbut.dspstm",selIds:[idx+1]} var params = { selDst: "infbut.dspstm", selIds: [idx + 1] };
let rtnmsg = await this.executeRule("infbut.dspstm", params); let rtnmsg = await this.executeRule("infbut.dspstm", params);
if(rtnmsg.respCode = SUCCESS){ if ((rtnmsg.respCode = SUCCESS)) {
Utils.copyValueFromVO(this.model, rtnmsg.data); Utils.copyValueFromVO(this.model, rtnmsg.data);
let rtnmsgNew = await this.executeRule("infbut.dsp", params); let rtnmsgNew = await this.executeRule("infbut.dsp", params);
console.log(rtnmsgNew) console.log(rtnmsgNew);
if(rtnmsgNew.respCode = SUCCESS){ if ((rtnmsgNew.respCode = SUCCESS)) {
Utils.copyValueFromVO(this.model, rtnmsgNew.data); Utils.copyValueFromVO(this.model, rtnmsgNew.data);
} }
} }
//触发父组件中updateShowPanel 事件,修改index中showPanel ,控制 index中组件的显示和隐藏 //触发父组件中updateShowPanel 事件,修改index中showPanel ,控制 index中组件的显示和隐藏
this.$emit('updateShowPanel', true) this.$emit("updateShowPanel", true);
},
async getTrnInfo(idx, row) {
this.model.infcon.objinr = row["INR"];
this.model.didgrp.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;
} }
}, },
},
created: function () {}, created: function () {},
}; };
</script> </script>
<style> <style>
.el-dialog__body {
padding: 10px 5px 50px;
}
</style> </style>
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