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
} }
} }
......
...@@ -2,208 +2,174 @@ import Api from "~/service/Api" ...@@ -2,208 +2,174 @@ import Api from "~/service/Api"
import Utils from "~/utils" import Utils from "~/utils"
export default { export default {
async onInfbutSearow(){ async onInfbutSearow() {
let rtnmsg = await this.executeRule("infbut.searow") let rtnmsg = await this.executeRule("infbut.searow")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onInfbutDsp(){ async onInfbutDsp() {
let rtnmsg = await this.executeRule("infbut.dsp") let rtnmsg = await this.executeRule("infbut.dsp")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onInfbutUserow(){ async onInfbutUserow() {
let rtnmsg = await this.executeRule("infbut.userow") let rtnmsg = await this.executeRule("infbut.userow")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onInfbutClr(){ async onInfbutClr() {
let rtnmsg = await this.executeRule("infbut.clr") let rtnmsg = await this.executeRule("infbut.clr")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onInfbutButprt(){ async onInfbutButprt() {
let rtnmsg = await this.executeRule("infbut.butprt") let rtnmsg = await this.executeRule("infbut.butprt")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onInfbutExi(){ async onInfbutExi() {
let rtnmsg = await this.executeRule("infbut.exi") let rtnmsg = await this.executeRule("infbut.exi")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onRecpanButgetref(){ async onRecpanButgetref() {
let rtnmsg = await this.executeRule("recpan.butgetref") let rtnmsg = await this.executeRule("recpan.butgetref")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onAplpDet(){ async onAplpDet() {
let rtnmsg = await this.executeRule("aplp.det") let rtnmsg = await this.executeRule("aplp.det")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onBenpDet(){ async onBenpDet() {
let rtnmsg = await this.executeRule("benp.det") let rtnmsg = await this.executeRule("benp.det")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onDefdetButtxmsel(){ async onDefdetButtxmsel() {
let rtnmsg = await this.executeRule("defdet.buttxmsel") let rtnmsg = await this.executeRule("defdet.buttxmsel")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onPreperButtxmsel(){ async onPreperButtxmsel() {
let rtnmsg = await this.executeRule("preper.buttxmsel") let rtnmsg = await this.executeRule("preper.buttxmsel")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onLcrgodButtxmsel(){ async onLcrgodButtxmsel() {
let rtnmsg = await this.executeRule("lcrgod.buttxmsel") let rtnmsg = await this.executeRule("lcrgod.buttxmsel")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onLcrdocButtxmsel(){ async onLcrdocButtxmsel() {
let rtnmsg = await this.executeRule("lcrdoc.buttxmsel") let rtnmsg = await this.executeRule("lcrdoc.buttxmsel")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onAdlcndButtxmsel(){ async onAdlcndButtxmsel() {
let rtnmsg = await this.executeRule("adlcnd.buttxmsel") let rtnmsg = await this.executeRule("adlcnd.buttxmsel")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onInsbnkButtxmsel(){ async onInsbnkButtxmsel() {
let rtnmsg = await this.executeRule("insbnk.buttxmsel") let rtnmsg = await this.executeRule("insbnk.buttxmsel")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onInfconButshw(){ async onInfconButshw() {
let rtnmsg = await this.executeRule("infcon.butshw") let rtnmsg = await this.executeRule("infcon.butshw")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async onInfconButshword(){ async onInfconButshword() {
let rtnmsg = await this.executeRule("infcon.butshword") let rtnmsg = await this.executeRule("infcon.butshword")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
async handleReset() { async handleReset() {
...@@ -213,15 +179,23 @@ export default { ...@@ -213,15 +179,23 @@ export default {
async handleSearch() { async handleSearch() {
let rtnmsg = await this.executeRule("infbut.searow") let rtnmsg = await this.executeRule("infbut.searow")
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
this.stmData.data = rtnmsg.data.infbut_dspstm.rows; this.stmData.data = rtnmsg.data.infbut_dspstm.rows;
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
display(index, row) {
debugger;
Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
if (res.respCode == SUCCESS) {
const trnName = res.data.toLowerCase();
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
});
},
} }
\ No newline at end of file
...@@ -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