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
...@@ -147,7 +145,7 @@ ...@@ -147,7 +145,7 @@
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8"> <c-col :span="8">
<el-form-item <el-form-item
label="Resp.User" label="Resp.User"
...@@ -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" <template slot="header">
prop="op" <c-col :span="11" style="text-align: left"
label="操作" ><span>操作</span></c-col
width="150px" >
> <c-col :span="12" style="text-align: right"
<template slot="header"> ><c-button icon="el-icon-s-tools"></c-button
<c-col :span="11" style="text-align:left"><span>操作</span></c-col> ></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
style="margin-left: 0"
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>
</el-popover>
<c-button <!-- <c-button
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
@click="getTrnInfo(scope.$index,scope.row)"
> >
详情 详情
</c-button> </c-button> -->
<c-button <c-button
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
...@@ -330,16 +360,15 @@ ...@@ -330,16 +360,15 @@
> >
处理 处理
</c-button> </c-button>
<c-button <c-button
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,23 +572,37 @@ ...@@ -539,23 +572,37 @@
</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,
stmData: { 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: {
columns: [ columns: [
'1 1 "Reference" 120', '1 1 "Reference" 120',
'2 2 "Resp User" 100', '2 2 "Resp User" 100',
...@@ -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.initdialog = false this.$router.history.push("/business/" + code);
} , this.initdialog = false;
async getDitSelInfo(idx,row){ },
console.log(row); async getDitSelInfo(idx, row) {
var params = {selDst:"infbut.dspstm",selIds:[idx+1]} console.log(row);
let rtnmsg = await this.executeRule("infbut.dspstm", params); var params = { selDst: "infbut.dspstm", selIds: [idx + 1] };
let rtnmsg = await this.executeRule("infbut.dspstm", params);
if(rtnmsg.respCode = SUCCESS){
Utils.copyValueFromVO(this.model, rtnmsg.data); if ((rtnmsg.respCode = SUCCESS)) {
let rtnmsgNew = await this.executeRule("infbut.dsp", params); Utils.copyValueFromVO(this.model, rtnmsg.data);
console.log(rtnmsgNew) let rtnmsgNew = await this.executeRule("infbut.dsp", params);
if(rtnmsgNew.respCode = SUCCESS){ console.log(rtnmsgNew);
Utils.copyValueFromVO(this.model, rtnmsgNew.data); if ((rtnmsgNew.respCode = SUCCESS)) {
} Utils.copyValueFromVO(this.model, rtnmsgNew.data);
}
//触发父组件中updateShowPanel 事件,修改index中showPanel ,控制 index中组件的显示和隐藏
this.$emit('updateShowPanel', true)
} }
}, }
//触发父组件中updateShowPanel 事件,修改index中showPanel ,控制 index中组件的显示和隐藏
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