Commit f6932325 by huxi

Merge branch 'settle-test-20230110' of http://114.115.138.98:8900/fukai/vue-gjjs…

Merge branch 'settle-test-20230110' of http://114.115.138.98:8900/fukai/vue-gjjs into settle-test-20230110
parents 04d2dcc0 9b005c19
...@@ -28,6 +28,7 @@ export default { ...@@ -28,6 +28,7 @@ export default {
...params, ...params,
transName: this.trnName, transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL', userId: window.sessionStorage.userId || 'ZL',
brtInr:'00000029',
}); });
if (!res.data) { if (!res.data) {
return return
......
...@@ -171,6 +171,9 @@ export default { ...@@ -171,6 +171,9 @@ export default {
} }
}, },
methods: { }, methods: { },
mounted () {
this.init()
},
} }
</script> </script>
<style></style> <style></style>
...@@ -29,10 +29,14 @@ export default { ...@@ -29,10 +29,14 @@ export default {
...params, ...params,
transName: this.trnName, transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL', userId: window.sessionStorage.userId || 'ZL',
lidInr:'00000036',
brdInr:'00000028'
}); });
console.log("测试")
if (!res.data) { if (!res.data) {
return return
} }
this.copyValueFromVoData(this.model, res.data) this.copyValueFromVoData(this.model, res.data)
this.copyValueFromVoData(this.model.setmod.setfeg, res.data.setfeg) this.copyValueFromVoData(this.model.setmod.setfeg, res.data.setfeg)
this.copyValueFromVoData(this.model.setmod.setfog, res.data.setfog) this.copyValueFromVoData(this.model.setmod.setfog, res.data.setfog)
......
import Pts from '~/model/Common/Pts'; import Pts from '~/components/business/commonModel/Pts';
import Pub from '~/model/Public'; import Pub from '~/components/business/commonModel/index.js';
export default class Brtlat{ export default class Brtlat{
constructor () { constructor () {
this.data = { this.data = {
brtapll1blk:"", // XMLPanel brtapll1的内置block .brtapll1blk brtapll1blk:"", // XMLPanel brtapll1的内置block .brtapll1blk
addbcb: {
gitamermk: '',
gitamecho: '',
},
brdgrp:{ brdgrp:{
shp:{ shp:{
pts:new Pts().data, pts:new Pts().data,
...@@ -16,32 +11,29 @@ export default class Brtlat{ ...@@ -16,32 +11,29 @@ export default class Brtlat{
adrelc:"", // 地址 .brdgrp.shp.adrelc adrelc:"", // 地址 .brdgrp.shp.adrelc
dbfadrblkcn:"", // Chinese address .brdgrp.shp.dbfadrblkcn dbfadrblkcn:"", // Chinese address .brdgrp.shp.dbfadrblkcn
}, },
rec: { rec:{
tenmaxday: '', ownref:"", // 单据参考号 .brdgrp.rec.ownref
relgodflg: '', nam:"", // Name of Bill Contract .brdgrp.rec.nam
advtyp: '', rcvdat:"", // 到单日期 .brdgrp.rec.rcvdat
docflg: '', advdat:"", // Date of Advice of Payment .brdgrp.rec.advdat
docsta: '', docflg:"", // 单据类型 .brdgrp.rec.docflg
relgoddat: '', docsta:"", // 单据状态 .brdgrp.rec.docsta
reltyp: '', matdat:"", // Maturity Date .brdgrp.rec.matdat
igndisflg: '', tenmaxday:"", // Tenor day .brdgrp.rec.tenmaxday
tramod: '', stadat:"", // 远期单据到期日 .brdgrp.rec.stadat
totdat: '', relgodflg: "", // Release of Goods .bddgrp.rec.relgodflg
nam: '', reltyp: "", // Release Type .bddgrp.rec.reltyp
rcvdat: '', relgoddat: "", // issue date .bddgrp.rec.relgoddat
approvcod: '', expdat: "", // Expiry Date of Shipping Guarantee .bddgrp.rec.expdat
ownref: '', trpdoctyp: "", // Transport Doc. Type .bddgrp.rec.trpdoctyp
rtoaplflg: '', trpdocnum: "", // Transport Doc. No. .bddgrp.rec.trpdocnum
ngrcod: '', tradat: "", // shipment date .bddgrp.rec.tradat
disdat: '', tramod: "", // Mode of Transport .bddgrp.rec.tramod
blnum: '', rtoaplflg: "", // Release Goods to Applicant ? .bddgrp.rec.rtoaplflg
trpdocnum: '', ngrcod: "", // Goods code .bddgrp.rec.ngrcod
expdat: '', blnum: "", // B/L Number .bddgrp.rec.blnum
tradat: '', totcur: "", // Total Amount Claimed .bddgrp.rec.totcur
trpdoctyp: '', totamt: "", // Total Amount to be Paid .bddgrp.rec.totamt
matdat: '',
advdat: '',
stadat: ''
}, },
cbs:{ cbs:{
max:{ max:{
...@@ -62,22 +54,24 @@ export default class Brtlat{ ...@@ -62,22 +54,24 @@ export default class Brtlat{
prb:{ prb:{
pts:new Pts().data, pts:new Pts().data,
}, },
blk: { blk:{
docdisflg: '', prsdoc:"", // Documents Presented .brdgrp.blk.prsdoc
notpty: '', aplins:"", // Instructions Received from Applicant .brdgrp.blk.aplins
roggod: '', comcon: "", // Comments and Conclusions .bddgrp.blk.comcon
pordis: '', docdis: "", // Discrepancies .bddgrp.blk.docdis
aplins: '', docdisflg: "", // discrepancies modified .bddgrp.blk.docdisflg
setinsbr: '', accrmk: "", // 到期付款确认备注 .bddgrp.blk.accrmk
voynum: '', vesnam: "", // Vessel Name .bddgrp.blk.vesnam
vesnam: '', pordis: "", // Port of Discharge .bddgrp.blk.pordis
docdis: '', delplc: "", // Place of Delivery .bddgrp.blk.delplc
delplc: '', roggod: "", // Covered Goods .bddgrp.blk.roggod
carnam: '', relstoadr: "", // Release to Address .bddgrp.blk.relstoadr
prsdoc: '', porlod: "", // Port of loading .bddgrp.blk.porlod
comcon: '', voynum: "", // Voyage numer .bddgrp.blk.voynum
porlod: '', notpty: "", // Notify Party .bddgrp.blk.notpty
relstoadr: '' carnam: "", // Carrier .bddgrp.blk.carnam
chaded: "", // Charges Deducted .bddgrp.blk.chaded
chaadd: "", // Charges .bddgrp.blk.chaadd
}, },
}, },
lidgrp:{ lidgrp:{
...@@ -108,6 +102,14 @@ export default class Brtlat{ ...@@ -108,6 +102,14 @@ export default class Brtlat{
matp:{ matp:{
mattxtlab:"", // Label for MATTXT .brtp.matp.mattxtlab mattxtlab:"", // Label for MATTXT .brtp.matp.mattxtlab
}, },
prbp:{
ptsget:{
sdamod:{
seainf:"", // .brtp.prbp.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .brtp.prbp.ptsget.sdamod.dadsnd
},
},
},
shpp:{ shpp:{
ptsget:{ ptsget:{
sdamod:{ sdamod:{
...@@ -116,10 +118,13 @@ export default class Brtlat{ ...@@ -116,10 +118,13 @@ export default class Brtlat{
}, },
}, },
}, },
cre732flg: '', docgrdm:{
furide: '', docgrd:"",
connum: '', docdsclab:"", // Label of document description .brtp.docgrdm.docdsclab
cre752flg: '', },
prechkdat:"", // 预计核验日期 .brtp.prechkdat
ischktyp:"", // 是否需要核验 .brtp.ischktyp
connum:"", // Contract Number .brtp.connum
}, },
gleflg:"", // 系统内付款且过�'� .gleflg gleflg:"", // 系统内付款且过�'� .gleflg
setmod: new Pub().data.Setmod, setmod: new Pub().data.Setmod,
......
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<el-collapse v-model="activeNames"> <el-collapse v-model="activeNames">
<el-collapse-item title="备查表" name="addbcb1">
<m-addbcb1 :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="附言" name="coninfp"> <el-collapse-item title="附言" name="coninfp">
<m-coninfp :model="model" :codes="codes" /> <m-coninfp :model="model" :codes="codes" />
</el-collapse-item> </el-collapse-item>
...@@ -15,19 +11,17 @@ ...@@ -15,19 +11,17 @@
<script> <script>
import event from '../event' import event from '../event'
import Coninfp from "~/views/Public/Coninfp"; import Coninfp from "~/views/Public/Coninfp";
import Addbcb1 from "./Addbcb1";
export default { export default {
components: { components: {
"m-coninfp": Coninfp, "m-coninfp": Coninfp,
"m-addbcb1": Addbcb1,
}, },
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [event], mixins: [event],
data() { data() {
return { return {
activeNames: ["addbcb1"], activeNames: ["coninfp"],
}; };
}, },
methods: { methods: {
......
<template>
<div class="eibs-tab">
<!-- S0000003 : 货物税号 DE!-->
<c-row>
<c-col :span="24">
<c-col :span="12">
<c-col :span="24">
<el-form-item label="">
授信条件对于本笔修改项下有无特殊规定:
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="GITAMECHO" prop="addbcb.gitamecho">
<c-select
v-model="model.addbcb.gitamecho"
style="width: 100%"
placeholder="请选择"
:code="codes.gitamecho"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="GITAMERMK" prop="addbcb.gitamermk">
<c-input
:disabled="model.addbcb.gitamecho=='无特殊规定'"
type="textarea"
v-model="model.addbcb.gitamermk"
maxlength="34"
show-word-limit
placeholder="请输入GITAMERMK"
></c-input>
</c-form-item>
</c-col>
</c-col>
<c-col :span="11" :offset="1"> </c-col>
</c-col>
</c-row>
</div>
</template>
<script>
import event from '../event'
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {};
},
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="12">
<el-form-item label="应付保证金金额" prop="liaall.liaccv.concur">
<c-input v-model="model.liaall.liaccv.concur" maxlength="3" placeholder="请输入应付保证金金额"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="合同金额" prop="liaall.liaccv.newamt">
<c-input v-model="model.liaall.liaccv.newamt" placeholder="请输入合同金额"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="保证金应收比例" prop="liaall.liaccv.cshpct">
<c-input v-model="model.liaall.liaccv.cshpct" placeholder="请输入保证金应收比例"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Reserved Amount" prop="liaall.liaccv.newresamt">
<c-input v-model="model.liaall.liaccv.newresamt" placeholder="请输入Reserved Amount"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="保证金实收比例" prop="liaall.liaccv.relcshpct">
<c-input v-model="model.liaall.liaccv.relcshpct" placeholder="请输入保证金实收比例"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.liaall.liaccv.gleflg">Create gle flag</c-checkbox>
</c-col>
<c-col :span="12">
<el-form-item label="reserve amount based percent" prop="liaall.liaccv.pctresamt">
<c-input v-model="model.liaall.liaccv.pctresamt" placeholder="请输入reserve amount based percent"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.liaall.liaccv.chgcurflg">Change currency flag</c-checkbox>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onLiaccvAdd">
Add
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" icon="el-icon-delete" @click="onLiaccvDel">
Del
</c-button>
</c-col>
<c-col :span="12">
<el-form-item label="金额总和" prop="liaall.liaccv.totcovamt">
<c-input v-model="model.liaall.liaccv.totcovamt" placeholder="请输入金额总和"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Additional Information " prop="liaall.liaccv.addinf">
<c-input type="textarea" v-model="model.liaall.liaccv.addinf" maxlength="70" show-word-limit placeholder="请输入Additional Information " ></c-input>
</el-form-item>
</c-col>
</div>
</template>
<script>
import event from "../event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [event],
data(){
return {
}
},
created:function(){
}
}
</script>
<style>
</style>
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="3"> <c-col :span="3">
<c-button size="small" type="primary" icon="el-icon-search" @click="onDocdisButtxmsel" :disabled="model.brdgrp.blk.docdisflg==''?true:false"> <c-button size="small" type="primary" icon="el-icon-search" :disabled="model.brdgrp.blk.docdisflg==''?true:false">
... ...
</c-button> </c-button>
</c-col> </c-col>
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="3"> <c-col :span="3">
<c-button size="small" type="primary" icon="el-icon-search" @click="onSetinstxmButtxmsel" disabled> <c-button size="small" type="primary" icon="el-icon-search" disabled>
... ...
</c-button> </c-button>
</c-col> </c-col>
......
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="3"> <c-col :span="3">
<c-button size="small" type="primary" @click="onShppDet" disabled> <c-button size="small" type="primary" disabled>
详情 详情
</c-button> </c-button>
</c-col> </c-col>
......
...@@ -33,15 +33,6 @@ ...@@ -33,15 +33,6 @@
<m-limitbody :model="model" :codes="codes" /> <m-limitbody :model="model" :codes="codes" />
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="表外记账" name="engp">
<c-content>
<!-- 表外记账 -->
<m-engp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000027 --> <!--PD000027 -->
<el-tab-pane label="费用/账务" name="setmod"> <el-tab-pane label="费用/账务" name="setmod">
<c-content> <c-content>
...@@ -53,12 +44,6 @@ ...@@ -53,12 +44,6 @@
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="会计分录" name="glepan">
<c-content>
<m-glentry :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000000 --> <!--PD000000 -->
<el-tab-pane label="备查/附言" name="addbcb"> <el-tab-pane label="备查/附言" name="addbcb">
...@@ -107,10 +92,8 @@ import Dnfp from "./Dnfp"; ...@@ -107,10 +92,8 @@ import Dnfp from "./Dnfp";
import Detp from "./Detp"; import Detp from "./Detp";
import Cmnsetl1 from "./Cmnsetl1"; import Cmnsetl1 from "./Cmnsetl1";
import Syswrndisplay from "./Syswrndisplay"; import Syswrndisplay from "./Syswrndisplay";
import Engp from "~/components/business/engp/views";
import Ccvpan from "~/components/business/ccvpan/views"; import Ccvpan from "~/components/business/ccvpan/views";
import Setmod from "~/components/business/setmod/views"; import Setmod from "~/components/business/setmod/views";
import Glentry from "~/components/business/glentry/views";
import Docpan from "~/components/business/docpan/views"; import Docpan from "~/components/business/docpan/views";
import Doctre from "~/components/business/doctre/views"; import Doctre from "~/components/business/doctre/views";
import Limitbody from "~/components/business/limitbody/views"; import Limitbody from "~/components/business/limitbody/views";
...@@ -124,7 +107,6 @@ export default { ...@@ -124,7 +107,6 @@ export default {
"m-prtswtrp": Prtswtrp, "m-prtswtrp": Prtswtrp,
"m-xmldoc": Xmldoc, "m-xmldoc": Xmldoc,
"m-prtswtp": Prtswtp, "m-prtswtp": Prtswtp,
"m-engp": Engp,
"m-ccvpan": Ccvpan, "m-ccvpan": Ccvpan,
"m-addbcb": Addbcb, "m-addbcb": Addbcb,
"m-docpan": Docpan, "m-docpan": Docpan,
...@@ -132,7 +114,6 @@ export default { ...@@ -132,7 +114,6 @@ export default {
"m-dnfp": Dnfp, "m-dnfp": Dnfp,
"m-setmod": Setmod, "m-setmod": Setmod,
"m-detp": Detp, "m-detp": Detp,
"m-glentry": Glentry,
"m-cmnsetl1": Cmnsetl1, "m-cmnsetl1": Cmnsetl1,
"m-syswrndisplay": Syswrndisplay, "m-syswrndisplay": Syswrndisplay,
"m-limitbody": Limitbody, "m-limitbody": Limitbody,
......
...@@ -19,7 +19,6 @@ export default { ...@@ -19,7 +19,6 @@ export default {
{ type: 'string', required: false, message: '必输项' }, { type: 'string', required: false, message: '必输项' },
{ max: 3, message: '长度不能超过3' }, { max: 3, message: '长度不能超过3' },
], ],
'gidgrp.cbs.max.cur': [ 'gidgrp.cbs.max.cur': [
{ type: 'string', required: false, message: '必输项' }, { type: 'string', required: false, message: '必输项' },
{ max: 3, message: '长度不能超过3' }, { max: 3, message: '长度不能超过3' },
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
<el-collapse-item title="收费详情" name="gitsetp1"> <el-collapse-item title="收费详情" name="gitsetp1">
<m-gitsetp1 :model="model" :codes="codes" /> <m-gitsetp1 :model="model" :codes="codes" />
</el-collapse-item> </el-collapse-item>
</el-collapse> </el-collapse>
</div> </div>
</template> </template>
...@@ -17,7 +16,6 @@ ...@@ -17,7 +16,6 @@
export default { export default {
components:{ components:{
"m-gitsetp1" : Gitsetp1, "m-gitsetp1" : Gitsetp1,
}, },
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
...@@ -25,7 +23,6 @@ ...@@ -25,7 +23,6 @@
data() { data() {
return { return {
activeNames: ["gitsetp1"], activeNames: ["gitsetp1"],
}; };
}, },
methods: { }, methods: { },
......
<template> <template>
<div class="eContainer"> <div class="eContainer">
<c-page title="进口保函定期收费"> <c-page title="进口保函定期收费">
<!-- <el-button size="small">流程附言</el-button> <!-- <el-button size="small">流程附言</el-button>
<el-button size="small">交易历史</el-button> <el-button size="small">交易历史</el-button>
<el-button size="small">备忘录</el-button> <el-button size="small">备忘录</el-button>
...@@ -9,7 +8,6 @@ ...@@ -9,7 +8,6 @@
<el-button size="small">制裁信息</el-button> <el-button size="small">制裁信息</el-button>
<el-button size="small">智能提示</el-button> <el-button size="small">智能提示</el-button>
</c-function-btn> --> </c-function-btn> -->
<el-form <el-form
:model="model" :model="model"
:rules="rules" :rules="rules"
...@@ -20,20 +18,17 @@ ...@@ -20,20 +18,17 @@
:validate-on-rule-change="false" :validate-on-rule-change="false"
> >
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick"> <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<el-tab-pane label="业务信息" name="ovwp"> <el-tab-pane label="业务信息" name="ovwp">
<c-content> <c-content>
<m-ovwp :model="model" :codes="codes"/> <m-ovwp :model="model" :codes="codes"/>
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
<!--PD000001 --> <!--PD000001 -->
<el-tab-pane label="统一授信" name="limitbody"> <el-tab-pane label="统一授信" name="limitbody">
<c-content> <c-content>
<m-limitbody :model="model" :codes="codes"/> <m-limitbody :model="model" :codes="codes"/>
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
<!--PD000027 --> <!--PD000027 -->
<el-tab-pane label="表外记账" name="engp"> <el-tab-pane label="表外记账" name="engp">
<c-content> <c-content>
...@@ -41,7 +36,6 @@ ...@@ -41,7 +36,6 @@
<m-engp :model="model" :codes="codes" /> <m-engp :model="model" :codes="codes" />
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
<!--PD000027 --> <!--PD000027 -->
<el-tab-pane label="费用/账务" name="setpan"> <el-tab-pane label="费用/账务" name="setpan">
<c-content> <c-content>
...@@ -51,14 +45,12 @@ ...@@ -51,14 +45,12 @@
/> />
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
<!--PD000027 --> <!--PD000027 -->
<el-tab-pane label="会计分录" name="glepan"> <el-tab-pane label="会计分录" name="glepan">
<c-content> <c-content>
<m-glentry :model="model" :codes="codes" /> <m-glentry :model="model" :codes="codes" />
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
<!--PD000000 --> <!--PD000000 -->
<el-tab-pane label="备查/附言" name="coninfp"> <el-tab-pane label="备查/附言" name="coninfp">
<c-content> <c-content>
...@@ -71,31 +63,25 @@ ...@@ -71,31 +63,25 @@
</div> </div>
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
<!--PD000529 --> <!--PD000529 -->
<el-tab-pane label="报文/面函" name="docpan"> <el-tab-pane label="报文/面函" name="docpan">
<c-content> <c-content>
<m-docpan :model="model" :codes="codes"/> <m-docpan :model="model" :codes="codes"/>
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
<!--PD000546 --> <!--PD000546 -->
<el-tab-pane label="附件信息" name="doctre"> <el-tab-pane label="附件信息" name="doctre">
<c-content> <c-content>
<m-doctre :model="model" :codes="codes"/> <m-doctre :model="model" :codes="codes"/>
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
</c-tabs> </c-tabs>
</el-form> </el-form>
<c-function-btn <c-function-btn
:handleSubmit="handleSubmit" :handleSubmit="handleSubmit"
:handleCheck="handleCheck" :handleCheck="handleCheck"
:handleStash="handleStash"> :handleStash="handleStash">
</c-function-btn> </c-function-btn>
</c-page> </c-page>
</div> </div>
</template> </template>
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
import Gitsetp1 from "./Gitsetp1" import Gitsetp1 from "./Gitsetp1"
import Gitbin from "./Gitbin" import Gitbin from "./Gitbin"
export default { export default {
components:{ components:{
"m-gitsetp1" : Gitsetp1, "m-gitsetp1" : Gitsetp1,
......
...@@ -86,7 +86,6 @@ ...@@ -86,7 +86,6 @@
@select-ety="selectGridEtyPromptData" @select-ety="selectGridEtyPromptData"
> >
</c-grid-ety-prompt-dialog> </c-grid-ety-prompt-dialog>
<c-function-btn <c-function-btn
:handleSubmit="handleSubmit" :handleSubmit="handleSubmit"
:handleCheck="handleCheck" :handleCheck="handleCheck"
......
...@@ -3,6 +3,7 @@ import Pub from '~/components/business/commonModel/index.js'; ...@@ -3,6 +3,7 @@ import Pub from '~/components/business/commonModel/index.js';
export default class Gitopn { export default class Gitopn {
constructor() { constructor() {
this.data = { this.data = {
busType: 'gid',
addbcb: { addbcb: {
label1: '', // 国际部意见 .addbcb.label1 label1: '', // 国际部意见 .addbcb.label1
label2: '', // 国际部意见 .addbcb.label2 label2: '', // 国际部意见 .addbcb.label2
......
...@@ -712,7 +712,7 @@ export default { ...@@ -712,7 +712,7 @@ export default {
this.flag1=false; this.flag1=false;
} }
}, },
} , },
"model.paypsb" :{ "model.paypsb" :{
immediate: true, immediate: true,
handler(val,oldval){ handler(val,oldval){
......
export default {
buildPtspta (ptsptaObj) {
let pts = ptsptaObj.pts;
let ptspta = {
rol: pts.rol,
name: pts.nam,
ptyinr: pts.ptyinr,
ptainr: pts.ptainr,
extkey: pts.extkey,
dftdsp: pts.dftdsp,
dftcur: pts.dftcur,
dftact: pts.dftact,
dftfeecur: pts.dftfeecur,
dftactptainr: pts.dftactptainr,
glggrpflg: pts.glggrpflg,
adrblk: pts.adrblk
};
return ptspta;
},
buildCommonData (model, trnName) {
let ptsptaList = [];
if (model.gidgrp.apl.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.gidgrp.apl));
}
if (model.gidgrp.adv.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.gidgrp.adv));
}
if (model.gidgrp.ben.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.gidgrp.ben));
}
let dataObj = {
rec: {
objtyp: 'GID',
ownref: model.gidgrp.rec.ownref,
opndat: model.gidgrp.rec.opndat,
expdat: model.gidgrp.rec.expdat,
branchInr: model.gidgrp.rec.branchInr,
hndtyp: model.gidgrp.rec.hndtyp,
gartyp: model.gidgrp.rec.gartyp,
fingua: model.gidgrp.rec.fingua,
segtyp: model.gidgrp.ghd.segtyp,
fromflg: model.gidgrp.rec.fromflg,
othersno: model.gidgrp.rec.othersno,
sndto: model.gidgrp.rec.sndto,
swiftflg: model.gitp.swiftflg,
giduil: model.gidgrp.rec.giduil,
purpos: model.gidgrp.rec.purpos,
revflg: model.gidgrp.rec.revflg,
cnfsta: model.gidgrp.rec.cnfsta,
},
cbsMap: {
MAX: model.gidgrp.cbs.max,
OPN1: model.gidgrp.cbs.opn1,
MAC: model.gidgrp.cbs.mac,
MAC2: model.gidgrp.cbs.mac2,
OPC2: model.gidgrp.cbs.opc2,
CNF: model.gidgrp.cbs.cnf,
},
ptsList: ptsptaList,
transName: trnName,
userId: window.sessionStorage.userId ? window.sessionStorage.userId : 'ZL'
};
return dataObj
},
buildSetfeg (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaall: model.liaall,
liaccv: model.liaccv,
doceot: model.trnmod.trndoc.doceot,
};
return params
},
buildSetglg (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
setfeg: model.setmod.setfeg,
liaall: model.liaall,
liaccv: model.liaccv,
};
return params
},
buildGlentry (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaallg: model.liaall.liaallg,
setfog: model.setmod.setfog,
setfeg: model.setmod.setfeg,
setglg: model.setmod.setglg,
};
return params
},
buildEngp (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaallg: model.liaall.liaallg,
};
return params
},
buildDocpan (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
};
return params
},
buildCcvpan (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaccvg: model.liaccv.liaccvg,
oldamt: model.liaccv.oldamt,
chgamt: model.liaccv.chgamt,
concur: model.liaccv.concur,
};
return params
},
buildLimitbody (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'GID',
objinr: model.gidgrp.rec.objinr,
ownref: model.gidgrp.rec.ownref,
},
};
return params
},
buildDoctre (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'GID',
objinr: model.gidgrp.rec.objinr,
ownref: model.gidgrp.rec.ownref,
swiftflg: model.gitp.swiftflg,
},
};
return params
},
// 公共组件setmod中dsp字段改变,触发联动时候的入参
buildSetgllAccts (model, trnName, setglg) {
let params = {
...this.buildCommonData(model, trnName),
setglg
};
return params
}
}
\ No newline at end of file
import Api from '~/service/Api'; import Api from '~/service/Api';
import commonFunctions from '~/mixin/commonFunctions.js'; import { getTrnNameByInr } from "~/service/business/common";
import buildFn from './buildCommons.js'; import moment from 'moment';
import setmod from '~/components/business/setmod/event';
import glentry from '~/components/business/glentry/event';
import engp from '~/components/business/engp/event';
import docpan from '~/components/business/docpan/event';
import ccvpan from '~/components/business/ccvpan/event';
import limitbody from '~/components/business/limitbody/event';
import doctre from '~/components/business/doctre/event';
import Utils from "~/utils"
export default { export default {
mixins: [commonFunctions],
methods: { methods: {
...setmod, async handleSearch() {
...glentry, let opndatfrom = this.model.infcon.opndatfrom;
...engp, if (!opndatfrom || opndatfrom == '') {
...docpan, this.$notify.error({ title: '错误', message: '查询开始日期必输!' });
...ccvpan,
...limitbody,
...doctre,
async init () {
const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName))
}
const res = await Api.post('/service/infbrd/init', {
...params,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
});
if (!res.data) {
return
}
this.copyValueFromVoData(this.model, res.data)
this.copyValueFromVoData(this.model.setmod.setfeg, res.data.setfeg)
this.copyValueFromVoData(this.model.setmod.setfog, res.data.setfog)
this.copyValueFromVoData(this.model.setmod.setglg, res.data.setglg)
},
// 兼容处理在前端model中定义了字段,后端返回的数据中不存在字段的问题
copyValueFromVoData (model, data) {
let keysList = Object.keys(model)
keysList.map((key) => {
if (data[key]) {
if (Utils.typeOf(model[key]) === 'Object') {
this.copyValueFromVoData(model[key], data[key])
} else {
this.$set(model, key, data[key])
}
}
})
},
async tabClick(tab) {
if (this.isInDisplay) {
return; return;
} }
let name = tab.name; let opndatto = this.model.infcon.opndatto;
switch (name) { if (!opndatto || opndatto == '') {
case 'ccvpan': this.$notify.error({ title: '错误', message: '查询结束日期必输!' });
let ccvpanRequest = buildFn.buildCcvpan(this.model, this.trnName);
this.processLiaccv(ccvpanRequest);
break;
case 'engp':
let engpRequest = buildFn.buildEngp(this.model, this.trnName);
this.processLiaall(engpRequest);
break;
case 'setpan':
let setfegRequest = buildFn.buildSetfeg(this.model, this.trnName);
// 此处利用回调是为了等setfeg的接口调用完成后才去获取setglg参数,由于setglg参数依赖于setfeg函数的返回值
this.processSetpan(setfegRequest, () => {
return buildFn.buildSetglg(this.model, this.trnName);
});
break;
case 'docpan':
let docpanRequest = buildFn.buildDocpan(this.model, this.trnName);
this.processTrndoc(docpanRequest);
break;
case 'glepan':
let glentryRequest = buildFn.buildGlentry(this.model, this.trnName);
this.processGlentry(glentryRequest);
break;
case 'limitbody':
let limitbodyRequest = buildFn.buildLimitbody(this.model, this.trnName);
this.processLimitbody(limitbodyRequest);
break;
case 'doctre':
let doctreRequest = buildFn.buildDoctre(this.model, this.trnName);
this.processDoctre(doctreRequest);
break;
default:
return; return;
} }
},
// 点击获取按钮拉取当前key字段下的表单数据
queryFormData(key) {
console.log(key);
},
// 业务信息=》基本信息=》保函编号-----获取保函编号
async queryOwnref() {
let params = { let params = {
ptainr: this.model.gidgrp.apl.pts.ptainr, ...this.model.infcon,
businessType: 'LG', seadocflg: this.model.seadocflg,
tbl: 'LG', seagodcod: this.model.seagodcod,
inr:this.model.brdgrp.rec.inr,
pageIndex: this.pagination.pageIndex,
pageSize: this.pagination.pageSize,
opndatfrom:moment(opndatfrom).format('YYYY-MM-DD'),
opndatto:moment(opndatto).format('YYYY-MM-DD'),
}; };
const loading = this.loading(); let rtnmsg = await Api.post('/service/infbrd/getList', params);
let res = await Api.post('/service/infbrd/getOwnRef', params); if (rtnmsg.respCode == SUCCESS) {
if (res.respCode == SUCCESS) { this.stmData.data = [];
loading.close(); this.stmData.data = rtnmsg.data.list;
this.model.gidgrp.rec.ownref = res.data; // debugger
this.pagination.total = rtnmsg.data.total;
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
}, },
// 获取infbrd弹框表格数据
async queryGridEtyPromptDialogData(type, ptytyp) { async handleReset() {
let params = { this.model.infcon.chksubcon = '';
userId: window.sessionStorage.userId || 'ZL', this.model.infcon.opndatfrom = new Date();
ptytyp: ptytyp, this.model.infcon.opndatto = new Date();
extkey: this.model.gidgrp[type.toLowerCase()].pts.extkey, this.model.infcon.seaownref = '';
}; this.model.infcon.seashgref = '';
let res = await Api.post('/service/ptspta/list', params); this.model.infcon.seaamtfr = '';
if (res.respCode == SUCCESS) { this.model.infcon.seasta = '';
this.root.$refs['etyDialog'].show = true; this.model.infcon.seacur = '';
this.root.promptData.data = res.data.ptaInfos; this.model.infcon.pty.extkey = '';
this.root.promptData.type = type; this.model.infcon.pty.nam = '';
} this.model.infcon.usr.extkey = '';
this.model.infcon.objinr = '';
this.model.infcon.seaamtto = '';
this.model.infcon.searol = '';
this.model.infcon.nam = '';
this.model.infcon.seapty = '';
this.model.infcon.searef = '';
this.model.brdgrp.rec.inr = '';
this.model.seagodcod = '';
this.model.seadocflg = '';
}, },
// 选中infbrd弹框表格的行数据
async selectGridEtyPromptData(row) { // pageSize改变
let params = { handleSizeChange(val) {
...row, console.log(`每页 ${val} 条`);
this.pagination.pageIndex = 1;
this.pagination.pageSize = val;
this.handleSearch();
},
// 页码改变
handleCurrentChange(val) {
console.log(`当前页: ${val}`);
this.pagination.pageIndex = val;
this.handleSearch();
},
// 详情
async details(row) {
const params = {
//根据xx字段 查询详情表的数据
ownref: row.ownref,
}; };
let res = await Api.post('/service/ptspta/fetch', params); const res = await Api.post('/service/infbrd/getDetailByOwnref', params);
if (res.respCode == SUCCESS) { if (res.respCode === SUCCESS) {
this.$set(this.model.gidgrp, row.role.toLowerCase(), res.data); this.trnData.data = res.data;
} }
}, },
// 业务信息=》基本信息=》支出目的
purposChange(key, value) { // 关闭详情弹框
this.handleChangeForm(key, value); closeDetailsDialog(refId) {
}, this.$refs[refId].doClose();
// 初始化保函开立类型码表下拉列表 console.log('close');
async queryHndtypCodeTableList(trnName) {
let params = {
gitp: {
swiftflg: this.model.gitp.swiftflg,
},
gidgrp: {
rec: {
purpos: this.model.gidgrp.rec.purpos,
},
}, },
transName: trnName.toUpperCase(),
// 处理
async handler(row) {
this.initdialog = true;
this.currentHandleRow = row
const params = {
//根据xx字段 查询处理的数据
ownref: row.ownref,
}; };
let res = await Api.post('/service/infbrd/initHndtyp', params); const res = await Api.post('/service/infbrd/dealWithByOwnref', params);
if (res.respCode == SUCCESS) { if (res.respCode === SUCCESS) {
this.$set(this.codes, 'voHndtyp', res.data); if (res.data) {
this.handlerDataList = []
Object.keys(res.data).map((item) => {
this.handlerDataList.push({
label: item,
value: res.data[item]
})
})
}
} }
}, },
// 是否SWIFT格式修改--联动保函开立类型
handleChangeSwiftflg() {
this.queryHndtypCodeTableList(this.root.trnName);
},
// 支出目的修改--联动保函开立类型
handleChangePurpos() {
this.queryHndtypCodeTableList(this.root.trnName);
},
buildLiaccv () {
let params = {
...buildFn.buildCommonData(this.model, this.trnName),
liaccvg: this.model.liaccv.liaccvg,
oldamt: this.model.liaccv.oldamt,
chgamt: this.model.liaccv.chgamt,
concur: this.model.liaccv.concur,
};
return params handleClick (btn) {
}, if (btn.value === 'N') {
// 公共组件setmod处理方式改变触发联动
changeSetmodModel (emitParams) {
let reqParams = {}
switch (emitParams.code) {
case 'processMethods':
reqParams = buildFn.buildSetglg(this.model, this.trnName);
this.calcPayDetail(reqParams)
break
case 'changeDsp':
let index = emitParams.index;
let setglgRequest = buildFn.buildSetglg(this.model, this.trnName);
setglgRequest.setglg = {setgll: emitParams.list};
this.setgllAccts(setglgRequest, index);
break
default:
return return
} }
let filterRoute = this.btnRouteMap.filter((item) => {
return item.label === btn.label
})
this.$router.history.push({
path: filterRoute[0].route,
query: {
inr: this.currentHandleRow.inr
} }
});
},
// 关闭处理弹框
closeHandlerDialog() {
this.initdialog = false;
},
/**
* 打开详情页面
* @param {string} inr
*/
display(inr) {
getTrnNameByInr({ inr }).then((res) => {
if (res.respCode == SUCCESS) {
const trnName = res.data.toLowerCase();
let viewurl = "/#/display/" + trnName + "?trn=" + inr
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
});
},
}, },
}; };
export default {
"infcon.seaownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"infcon.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"infcon.searef":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"infcon.pty.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 24,message:"长度不能超过24"}
],
"infcon.pty.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"infcon.seapty":[
{type: "string", required: false, message: "必输项"},
{max: 24,message:"长度不能超过24"}
],
"infcon.opndatfrom":[
{type: "string", required: false, message: "输入正确的日期"}
],
"infcon.opndatto":[
{type: "string", required: false, message: "输入正确的日期"}
],
"infcon.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"infcon.seaamtfr":[
{required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"infcon.seaamtto":[
{required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"infbut.dspstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"recpan.lidget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"lidgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"recpan.lidget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"lidgrp.rec.expdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"lidgrp.cbs.opn1.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"lidgrp.cbs.opn1.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"recpan.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"brdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"recpan.recget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"brdgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"brdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"brdgrp.apl.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"brdgrp.cbs.opn1.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"brdgrp.cbs.opn1.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"brdgrp.apl.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"brdgrp.rec.rcvdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"brdgrp.rec.advdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"brdgrp.ben.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"brdgrp.rec.matdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"brdgrp.rec.stadat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"brdgrp.ben.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"brdgrp.rec.tenmaxday":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"brdgrp.prb.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"brdgrp.prb.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"recpan.prechkdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"brdgrp.blk.docdis":[
{type: "string", required: true, message: "必输项"},
{max: 50,message:"长度不能超过50"}
],
"brdgrp.rec.totdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"brdgrp.rec.disdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"brdgrp.blk.comcon":[
{type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
"brdgrp.blk.setinsbr":[
{type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
"recpan.connum":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"brdgrp.rec.relgoddat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"brdgrp.rec.expdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"brdgrp.blk.carnam":[
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"brdgrp.rec.blnum":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"brdgrp.rec.trpdocnum":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"brdgrp.rec.tradat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"brdgrp.blk.relstoadr":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"brdgrp.blk.vesnam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"brdgrp.blk.pordis":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"recpan.shpp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"brdgrp.blk.delplc":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"brdgrp.shp.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"recpan.shpp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"brdgrp.shp.namelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"brdgrp.blk.roggod":[
{type: "string", required: true, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"brdgrp.shp.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"brdgrp.shp.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"brdgrp.shp.adrelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"brdgrp.blk.notpty":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"brdgrp.blk.porlod":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"brdgrp.blk.voynum":[
{type: "string", required: false, message: "必输项"},
{max: 30,message:"长度不能超过30"}
],
"mtabut.coninf.oitinf.oit.inftxt":[
{type: "string", required: true, message: "必输项"},
{max: 60,message:"长度不能超过60"}
],
"mtabut.coninf.oitset.oit.inftxt":[
{type: "string", required: true, message: "必输项"},
{max: 60,message:"长度不能超过60"}
],
"mtabut.coninf.conexedat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"mtabut.coninf.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"infcon.trnstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"infcon.cbbstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"infcon.cbestm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"infcon.fepstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"infcon.fcpstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"infcon.sepstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"infcon.seabucdatfro":[
{type: "date", required: false, message: "输入正确的日期"}
],
"infcon.seabucdatto":[
{type: "date", required: false, message: "输入正确的日期"}
],
"infcon.seatrninr":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"infcon.glestm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"infcon.smhdatfrom":[
{type: "date", required: false, message: "输入正确的日期"}
],
"infcon.smhdatto":[
{type: "date", required: false, message: "输入正确的日期"}
],
"infcon.smhstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"infcon.sptstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"infcon.diadatfrom":[
{type: "date", required: false, message: "输入正确的日期"}
],
"infcon.diadatto":[
{type: "date", required: false, message: "输入正确的日期"}
],
"infcon.diastm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"infcon.liastm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"prtpanblk":[
{type: "string", required: true, message: "必输项"},
{max: 200,message:"长度不能超过200"}
],
"infcon.ordstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"recpan.furide" :null,
"recpan.ischktyp" :null,
}
\ No newline at end of file
...@@ -32,7 +32,9 @@ export default class Infbrd { ...@@ -32,7 +32,9 @@ export default class Infbrd {
nam: '', nam: '',
seapty: '', seapty: '',
searef: '' searef: ''
} },
pageId:'',
}; };
} }
} }
<template>
<el-dialog
:visible.sync="initdialog"
:title="'交易列表'"
append-to-body
:before-close="beforeClose"
@opened="opened"
>
<div class="m-list-btns">
<div class="busnavbar">
<div class="busnavbar-items">
<c-button
style="margin-left: 7px"
size="medium"
type="primary"
class="medium_bcs"
v-for="(item, index) in navcode"
v-bind:key="index"
:title="item.title"
:disabled="item.isDis === 'N'"
>{{ item.label }}</c-button
>
<div style="margin-top: 15px; margin-left: 10px">
<div
v-for="(str, idx) in tState"
:key="idx"
style="margin-bottom: 5px; font-weight: bold"
>
{{ str }}
</div>
</div>
</div>
</div>
</div>
</el-dialog>
</template>
<script>
import event from "../event"
export default {
props: {
ownref: {
required: true,
},
trnCode: {
required: true,
},
model: {
required: true,
},
ownrefPath: {
required: false,
default: "didgrp",
},
tabIndex: {
required: false,
default: 1,
},
},
components: {},
mixins: [event], // 里面包含了Default、Check等的公共处理
data() {
return {
initdialog: false,
navcode: [
// {code:"",label:"",isDis:"",title:""},
],
tState: [],
};
},
methods: {
getIndex(module) {
for (let i = 1; i <= 12; i++) {
var temp = this.model.cfgfil[`subtxt${i}`];
if (module == temp) {
return i;
}
}
return 1;
},
opened() {
this.tState = [];
this.$emit("childmethods");
},
beforeClose() {
this.navcode = [];
this.initdialog = false;
},
},
mounted() {},
};
</script>
<style>
</style>
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<c-list-search> <c-list-search @form-reset="handleReset" @form-search="handleSearch">
<template v-slot="searchSlot"> <template v-slot="searchSlot">
<el-form <el-form
class="m-table-search-form" class="m-table-search-form"
ref="paramsForm" ref="paramsForm"
...@@ -10,7 +9,6 @@ ...@@ -10,7 +9,6 @@
label-width="110px" label-width="110px"
size="small" size="small"
> >
<el-row> <el-row>
<c-col :span="8"> <c-col :span="8">
<el-form-item <el-form-item
...@@ -27,7 +25,8 @@ ...@@ -27,7 +25,8 @@
</c-col> </c-col>
<c-col :span="8"> <c-col :span="8">
<el-form-item label="创建日期" <el-form-item
label="创建日期"
prop="infcon.opndatfrom" prop="infcon.opndatfrom"
style="width: 100%" style="width: 100%"
> >
...@@ -54,7 +53,11 @@ ...@@ -54,7 +53,11 @@
</c-col> </c-col>
<c-col :span="8"> <c-col :span="8">
<el-form-item label="业务简略信息" prop="infcon.nam" style="width: 100%"> <el-form-item
label="业务简略信息"
prop="infcon.nam"
style="width: 100%"
>
<c-input <c-input
v-model="model.infcon.nam" v-model="model.infcon.nam"
maxlength="40" maxlength="40"
...@@ -64,13 +67,11 @@ ...@@ -64,13 +67,11 @@
</c-col> </c-col>
</el-row> </el-row>
<el-row v-show="searchSlot.searchToggle"> <el-row v-show="searchSlot.searchToggle">
<!--line 1--> <!--line 1-->
<c-col :span="8"> <c-col :span="8">
<el-form-item label="提货担保编号" <el-form-item
label="提货担保编号"
prop="infcon.seashgref" prop="infcon.seashgref"
style="width: 100%" style="width: 100%"
> >
...@@ -83,7 +84,11 @@ ...@@ -83,7 +84,11 @@
</c-col> </c-col>
<c-col :span="8"> <c-col :span="8">
<el-form-item style="width: 100%" label="当事人参考号" prop="infcon.searef"> <el-form-item
style="width: 100%"
label="当事人参考号"
prop="infcon.searef"
>
<c-input <c-input
v-model="model.infcon.searef" v-model="model.infcon.searef"
maxlength="16" maxlength="16"
...@@ -92,7 +97,8 @@ ...@@ -92,7 +97,8 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8"> <c-col :span="8">
<el-form-item style="width: 100%" <el-form-item
style="width: 100%"
label="当事人编号" label="当事人编号"
prop="infcon.pty.extkey" prop="infcon.pty.extkey"
> >
...@@ -106,7 +112,11 @@ ...@@ -106,7 +112,11 @@
<!--line 2--> <!--line 2-->
<c-col :span="8"> <c-col :span="8">
<el-form-item style="width: 100%" label="当事人名称" prop="infcon.pty.nam"> <el-form-item
style="width: 100%"
label="当事人名称"
prop="infcon.pty.nam"
>
<c-input <c-input
v-model="model.infcon.pty.nam" v-model="model.infcon.pty.nam"
maxlength="40" maxlength="40"
...@@ -116,7 +126,11 @@ ...@@ -116,7 +126,11 @@
</c-col> </c-col>
<c-col :span="8"> <c-col :span="8">
<el-form-item style="width: 100%" label="当事人BIC编码" prop="infcon.seapty"> <el-form-item
style="width: 100%"
label="当事人BIC编码"
prop="infcon.seapty"
>
<c-input <c-input
v-model="model.infcon.seapty" v-model="model.infcon.seapty"
maxlength="24" maxlength="24"
...@@ -125,20 +139,30 @@ ...@@ -125,20 +139,30 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8"> <c-col :span="8">
<el-form-item style="width: 100%" label="当事人角色" prop="infcon.searol"> <el-form-item label="当事人角色" style="width: 100%">
<c-select <c-select
v-model="model.infcon.searol" v-model="model.infcon.searol"
style="width: 100%" style="width: 100%"
placeholder="请选择当事人角色" placeholder="请选择当事人角色"
:code="searol"
> >
<el-option
v-for="item in codes.payrol"
: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>
<!--line 3--> <!--line 3-->
<c-col :span="8"> <c-col :span="8">
<el-form-item style="width: 100%" label="客户经理" prop="infcon.usr.extkey"> <el-form-item
style="width: 100%"
label="客户经理"
prop="infcon.usr.extkey"
>
<c-input <c-input
v-model="model.infcon.usr.extkey" v-model="model.infcon.usr.extkey"
maxlength="8" maxlength="8"
...@@ -147,7 +171,11 @@ ...@@ -147,7 +171,11 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8"> <c-col :span="8">
<el-form-item style="width: 100%" label="单据状态" prop="infcon.seasta"> <el-form-item
style="width: 100%"
label="单据状态"
prop="infcon.seasta"
>
<c-select <c-select
v-model="model.infcon.seasta" v-model="model.infcon.seasta"
style="width: 100%" style="width: 100%"
...@@ -159,12 +187,17 @@ ...@@ -159,12 +187,17 @@
</c-col> </c-col>
<c-col :span="8"> <c-col :span="8">
<el-form-item style="width: 100%" label="单据类型" prop="seadocflg"> <el-form-item
style="width: 100%"
label="单据类型"
prop="seadocflg"
>
<c-select <c-select
v-model="model.seadocflg" v-model="model.seadocflg"
style="width: 100%" style="width: 100%"
placeholder="请选择单据类型" placeholder="请选择单据类型"
:code="codes.docflg"> :code="codes.docflg"
>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -172,19 +205,26 @@ ...@@ -172,19 +205,26 @@
<!--line 4--> <!--line 4-->
<c-col :span="8"> <c-col :span="8">
<el-form-item style="width: 100%" label="币种" prop="infcon.seacur"> <el-form-item
style="width: 100%"
label="币种"
prop="infcon.seacur"
>
<c-select <c-select
v-model="model.infcon.seacur" v-model="model.infcon.seacur"
style="width: 100%" style="width: 100%"
placeholder="请选择币种" placeholder="请选择币种"
:code="codes.currencycode" :code="codes.currencycode"
> >
</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 style="width: 100%" label="金额区间" prop="infcon.seaamtfr"> <el-form-item
style="width: 100%"
label="金额区间"
prop="infcon.seaamtfr"
>
<c-col :span="11"> <c-col :span="11">
<c-input <c-input
v-model="model.infcon.seaamtfr" v-model="model.infcon.seaamtfr"
...@@ -205,7 +245,11 @@ ...@@ -205,7 +245,11 @@
</c-col> </c-col>
<c-col :span="8"> <c-col :span="8">
<el-form-item style="width: 100%" label="货物类型" prop="seagodcod"> <el-form-item
style="width: 100%"
label="货物类型"
prop="seagodcod"
>
<c-select <c-select
v-model="model.seagodcod" v-model="model.seagodcod"
style="width: 100%" style="width: 100%"
...@@ -216,25 +260,30 @@ ...@@ -216,25 +260,30 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
</el-row> </el-row>
</el-form>
</el-form>
</template> </template>
</c-list-search> </c-list-search>
<div style="height:90%">
<div style="height: 90%">
<c-col :span="24"> <c-col :span="24">
<c-istream-table <el-table
:list="stmData.data" :data="stmData.data"
:columns="columns" :columns="stmData.columns"
:showButtonFlg="true" :showButtonFlg="true"
> >
<el-table-column fixed="right" prop="op" width="140px"> <el-table-column
v-for="(item, key) in stmData.columns"
:key="key"
:label="item.label"
:prop="item.prop"
></el-table-column>
<el-table-column fixed="right" prop="op" label="操作" width="140px">
<template slot="header"> <template slot="header">
<c-col :span="11" style="text-align: center"><span>操作</span></c-col> <c-col :span="11" style="text-align: center">
<span>操作</span>
</template> </c-col>
</template>
<template slot-scope="scope"> <template slot-scope="scope">
<el-popover <el-popover
placement="top-start" placement="top-start"
title="历史信息" title="历史信息"
...@@ -252,26 +301,46 @@ ...@@ -252,26 +301,46 @@
> >
<span <span
class="el-icon-close" class="el-icon-close"
@click="closeTrn('popover_' + scope.row.IDX)" style="cursor: pointer"
/> @click="closeDetailsDialog('popover_' + scope.row.IDX)"
></span>
</div> </div>
<c-istream-table :list="trnData.data" :columns="trnData.columns"> <el-table
<el-table-column prop="op" label="操作" width="0"> :data="trnData.data"
:columns="trnData.columns"
:showButtonFlg="true"
>
<el-table-column
v-for="(item, key) in trnData.columns"
:key="key"
:label="item.label"
:prop="item.prop"
>
<template slot-scope="scope">
<div>{{ scope.row[item.prop] }}</div>
</template>
</el-table-column>
<el-table-column
fixed="right"
prop="op"
label="操作"
width="250px"
>
<template slot-scope="scope"> <template slot-scope="scope">
<c-button <c-button
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
@click="display(scope.row['INR'])" @click="display(scope.row['inr'])"
>详情</c-button
> >
详情
</c-button>
</template> </template>
</el-table-column> </el-table-column>
</c-istream-table> </el-table>
<c-button <c-button
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
slot="reference" slot="reference"
@click="details(scope.row)"
> >
详情 详情
</c-button> </c-button>
...@@ -280,128 +349,192 @@ ...@@ -280,128 +349,192 @@
style="margin-left: 5px" style="margin-left: 5px"
size="small" size="small"
type="primary" type="primary"
@click="getButtons(scope.row['单据编号'],scope.row['关闭日期'])" @click="handler(scope.row)"
> >处理
处理
</c-button> </c-button>
</template> </template>
</el-table-column> </el-table-column>
</c-istream-table> </el-table>
<div class="pagination-box">
<el-pagination
style="margin-right: 30px"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page.sync="pagination.pageIndex"
:page-sizes="[10, 20, 50, 100, 500]"
:page-size="pagination.pageSize"
layout="sizes, prev, pager, next"
:total="pagination.total"
>
</el-pagination>
</div>
</c-col> </c-col>
</div> </div>
<!-- 点击处理ba弹框 -->
<el-dialog
<m-busbtn :visible.sync="initdialog"
ref="childs" title="交易列表"
:ownref="ownref" append-to-body
trnCode="litsel" width="60%"
:model="litselModel" >
ownrefPath="brdgrp" <div class="dialog-wrap">
tabIndex=3 <div class="btn-group-wrap">
@onChoose="onChoose" > <div
11 class="btn-item"
</m-busbtn> v-for="(item, index) in handlerDataList"
:key="index"
>
<el-button
type="primary"
:disabled="item.value === 'N'"
@click="handleClick(item)"
>{{ item.label }}
</el-button>
</div>
</div>
</div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
import event from "../event"; import event from "../event";
import LitselModel from "~/model/Litsel"
import BusNavbar from "./BusNavbar";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [event], mixins: [event],
components: { "m-busbtn": BusNavbar }, components: {},
data() { data() {
return { return {
searol:[ inr: "",
{ label: "Acc. with Bank (ACB)", value: "ACB" },
{ label: "Applicant", value: "APL" },
{ label: "受益人银行", value: "BEB" },
{ label: "Beneficiary", value: "BEN" },
{ label: "Issuing Bank", value: "ISS" },
{ label: "Old Account Party", value: "OAP" },
{ label: "Presenter (PRP)", value: "PRB" },
{ label: "Reimbursement Bank", value: "RMB" },
{ label: "Carrier (ROG)", value: "ROG" },
],
litselModel: new LitselModel().data,
initdialog:false,
ownref: "", ownref: "",
trnData: { trnData: {
columns: [ columns: [
'1 1 "编号" 200',
'2 2 "交易名称" 120',
// '3 3 "日期" 200',
{ index: 3, position: 3, width: 110, pattern: "date", label: "日期" },
// '4 4 "状态" 50',
{ {
index: 4, label: "交易id",
position: 4, prop: "inr",
width: 100, },
pattern: "code", {
label: "保函编号",
prop: "ownref",
},
{
label: "交易名称",
prop: "ininam",
},
{
label: "条目",
prop: "inidattim",
},
{
label: "状态", label: "状态",
code: this.codes.relstaEN, prop: "relflg",
},
{
label: "币种",
prop: "reloricur",
},
{
label: "相关金额",
prop: "reloriamt",
},
{
label: "标识",
prop: "relres",
}, },
'5 5 "币种" 80',
'6 6 "金额" 110',
], ],
data: [], data: [],
}, },
columns: [
'1 1 "单据编号" 140',
'2 2 "客户经理" 100',
'14 3 "单据币种" 100',
'15 4 "单据金额" 130 2 8 1 14',
//'16 16 "单据币种" 130',
'17 5 "单据余额" 140 2 8 1 16',
{ index: 4, position: 6, width: 100, pattern: "date", label: "创建日期" },
'7 7 "申请人编号" 133',
'8 8 "申请人名称" 160',
// '9 6 "申请人名称(中文)" 160',
// '10 7 "受益人编号" 133',
'11 9 "受益人名称" 150',
// '6 9 "申请人PTA主键" 160',
'12 10 "交单行编号" 140',
//'13 11 "交单行名称" 220',
{ index: 5, position: 11, width: 100, pattern: "date", label: "关闭日期" },
//'3 3 "货物类型" 100 1 0 1 GODCOD',
{ index: 3, position: 12, width: 100, pattern: "code", label: "货物类型" ,"code":"godcod"},
],
stmData: { stmData: {
data: [], columns: [
{
label: "单据编号",
prop: "ownref",
}, },
}; {
label: "客户经理",
prop: "ownusr",
},
{
label: "单据币种",
prop: "maxcur",
},
{
label: "单据金额",
prop: "maxamt",
},
{
label: "创建日期",
prop: "opndat",
}, },
methods: { {
async getButtons(ownref,closedDate){ label: "申请人编号",
this.ownref = ownref prop: "aplref",
this.litselModel.lidget.clsflg = (closedDate ?? "").trim() === "" ? "" : "C";
this.$refs.childs.initdialog = true
console.log("ownref:" +ownref);
}, },
async onChoose(code, prePageId){ {
//跳转交易 label: "申请人名称",
// this.$router.history.push("/business/" + code) prop: "aplnam",
this.$router.push({ name: code.charAt(0).toUpperCase() + code.substring(1), params: { prePageId } });
this.$refs.childs.initdialog = false;
} ,
async closeTrn(refId) {
this.$refs[refId].doClose();
}, },
{
label: "受益人名称",
prop: "benefi",
}, },
created: function () {}, {
label: "交单行编号",
prop: "bankno",
},
{
label: "关闭日期",
prop: "clsdat",
},
{
label: "货物类型",
prop: "stagod",
},
// {
// label: '操作',
// prop: 'ownref'
// },
],
data: [],
},
pagination: {
pageIndex: 1,
pageSize: 10,
total: 0,
},
initdialog: false,
handlerDataList: [],
currentHandleRow: {},
};
},
methods: {},
mounted: function () {},
}; };
</script> </script>
<style> <style>
.m-table-search { .pagination-box {
padding: 20px 0px 10px 0px; width: 100%;
height: 30px;
display: flex;
align-items: center;
justify-content: flex-end;
padding: 0 10px;
background: #fff;
margin-top: 5px;
}
.btn-group-wrap {
max-height: 200px;
width: 100%;
overflow-y: auto;
display: flex;
align-items: flex-start;
justify-content: flex-start;
flex-wrap: wrap;
}
.btn-item {
margin-bottom: 10px;
margin-right: 10px;
} }
</style> </style>
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
size="small" size="small"
:validate-on-rule-change="false" :validate-on-rule-change="false"
> >
<c-content> <c-content>
<m-infsea :model="model" :codes="codes" ref="infsea" /> <m-infsea :model="model" :codes="codes" ref="infsea" />
</c-content> </c-content>
...@@ -20,7 +19,6 @@ ...@@ -20,7 +19,6 @@
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Infbrd from "../model"; import Infbrd from "../model";
import event from "../event" import event from "../event"
import formRules from '../model/check'
import Infsea from "./Infsea"; import Infsea from "./Infsea";
export default { export default {
...@@ -39,7 +37,7 @@ export default { ...@@ -39,7 +37,7 @@ export default {
tabVal: "infsea", tabVal: "infsea",
trnName: "infbrd", trnName: "infbrd",
model: new Infbrd().data, model: new Infbrd().data,
rules: formRules, rules: null,
codes: { codes: {
...CodeTable, ...CodeTable,
}, },
......
...@@ -8,24 +8,18 @@ export default class Infgid{ ...@@ -8,24 +8,18 @@ export default class Infgid{
opndatfrom: new Date(), // Opening between .infcon.opndatfrom opndatfrom: new Date(), // Opening between .infcon.opndatfrom
opndatto: new Date(), // Open Date to .infcon.opndatto opndatto: new Date(), // Open Date to .infcon.opndatto
nam: '', // Name .infcon.nam nam: '', // Name .infcon.nam
etyextkey: '', // Select Single Party .infcon.pty.etyextkey etyextkey: '', // Select Single Party .infcon.pty.etyextkey
nam: '', // External Visible Name .infcon.pty.nam
seapty: '', // 当事人编号 .infcon.seapty seapty: '', // 当事人编号 .infcon.seapty
relflg: '', // Release Status .infcon.relflg relflg: '', // Release Status .infcon.relflg
hndtyp: '', // Handling Type .infcon.hndtyp hndtyp: '', // Handling Type .infcon.hndtyp
searol: '', // Role .infcon.searol searol: '', // Role .infcon.searol
extkey: '', // User ID .infcon.usr.extkey extkey: '', // User ID .infcon.usr.extkey
statsus: '', // statsus .infcon.statsus statsus: '', // statsus .infcon.statsus
seacur: '', // Currency .infcon.seacur seacur: '', // Currency .infcon.seacur
cxmflg: '', // 是否显示查询码 .infcon.cxmflg cxmflg: '', // 是否显示查询码 .infcon.cxmflg
amtdown: '0.00', // Amount between .infcon.seaamtfr amtdown: '0.00', // Amount between .infcon.seaamtfr amtup: '0.00', // Amount to .infcon.seaamtto
amtup: '0.00', // Amount to .infcon.seaamtto
segtyp: '', // 特殊保函类型 .infcon.segtyp segtyp: '', // 特殊保函类型 .infcon.segtyp
searef: '', // Party Reference .infcon.searef searef: '', // Party Reference .infcon.searef
}, },
fenlishi: '', // 是否分离式保函 .fenlishi fenlishi: '', // 是否分离式保函 .fenlishi
seapurpos: '', //会议目的 .seapurpos seapurpos: '', //会议目的 .seapurpos
......
...@@ -220,7 +220,25 @@ ...@@ -220,7 +220,25 @@
</div> </div>
</c-col> </c-col>
</div> </div>
<!-- 点击处理弹框 -->
<el-dialog
:visible.sync="initdialog"
title="交易列表"
append-to-body
width="60%"
>
<div class="dialog-wrap">
<div class="btn-group-wrap">
<div class="btn-item" v-for="(item, index) in handlerDataList" :key="index">
<el-button
type="primary"
:disabled="item.value === 'N'"
@click="handleClick(item)"
>{{ item.label }}</el-button>
</div>
</div>
</div>
</el-dialog>
<!-- <m-busbtn ref="childs" :ownref="ownref" trnCode="litsel" :model="litselModel" ownrefPath="lidget.lid.ownref"> <!-- <m-busbtn ref="childs" :ownref="ownref" trnCode="litsel" :model="litselModel" ownrefPath="lidget.lid.ownref">
</m-busbtn> --> </m-busbtn> -->
...@@ -332,27 +350,27 @@ export default { ...@@ -332,27 +350,27 @@ export default {
btnRouteMap: [ btnRouteMap: [
{ {
label: '注销', label: '注销',
route: '/business-new/gitcan' route: '/business-new/litcan'
}, },
{ {
label: '修改', label: '修改',
route: '/business-new/gitame' route: '/business-new/litame'
}, },
{ {
label: '保函索赔登记', label: '保函索赔登记',
route: '/business-new/gitcrq' route: '/business-new/litcrq'
}, },
{ {
label:'保函收费', label:'保函收费',
route:'/business-new/gitfee' route:'/business-new/litfee'
}, },
{ {
label:'绑定电子凭证', label:'绑定电子凭证',
route:'/business-new/gitatt' route:'/business-new/litatt'
}, },
{ {
label:'保证金收取', label:'保证金收取',
route:'/business-new/fctopn' route:'/business-new/lctopn'
} }
], ],
currentHandleRow: {} currentHandleRow: {}
......
...@@ -165,11 +165,11 @@ export default class Litame { ...@@ -165,11 +165,11 @@ export default class Litame {
}, },
nom1: { nom1: {
cur: '', cur: '',
amt: '' amt: '',
}, },
max2: { max2: {
cur: '', cur: '',
amt: '' amt: '',
} }
}, },
rmb: { rmb: {
...@@ -211,6 +211,7 @@ export default class Litame { ...@@ -211,6 +211,7 @@ export default class Litame {
tygrd: '' tygrd: ''
} }
}, },
trnmod: {
swiadd: { swiadd: {
trnchato: '', trnchato: '',
newnomtop: '', newnomtop: '',
...@@ -232,6 +233,7 @@ export default class Litame { ...@@ -232,6 +233,7 @@ export default class Litame {
prepertxts18: '', prepertxts18: '',
nomspc: '', nomspc: '',
reqcan: '' reqcan: ''
}
}, },
setmod: new Pub().data.Setmod, setmod: new Pub().data.Setmod,
mtabut: new Pub().data.Mtabut, mtabut: new Pub().data.Mtabut,
......
...@@ -3,24 +3,25 @@ import Pub from '~/components/business/commonModel/index.js'; ...@@ -3,24 +3,25 @@ import Pub from '~/components/business/commonModel/index.js';
export default class Litopn { export default class Litopn {
constructor() { constructor() {
this.data = { this.data = {
gidgrp:{ busType: 'lid',
rec:{ gidgrp: {
purpos:'' rec: {
} purpos: '',
},
}, },
gitp:{ gitp: {
swiftflg:'' swiftflg: '',
}, },
litp: { litp: {
avblab: '', avblab: '',
usr: { usr: {
extkey: '' extkey: '',
}, },
aamp: { aamp: {
aammod: { aammod: {
addamtflg: '' addamtflg: '',
} },
} },
}, },
bccls5: '', bccls5: '',
godnam: '', godnam: '',
...@@ -31,7 +32,7 @@ export default class Litopn { ...@@ -31,7 +32,7 @@ export default class Litopn {
bccls7: '', bccls7: '',
label6: '', label6: '',
hmdmod2: { hmdmod2: {
bennam: '' bennam: '',
}, },
bccls1: '', bccls1: '',
bccls2: '', bccls2: '',
...@@ -55,7 +56,7 @@ export default class Litopn { ...@@ -55,7 +56,7 @@ export default class Litopn {
denddate: '', denddate: '',
dexchangedate: '', dexchangedate: '',
stransattr: '', stransattr: '',
sforeigncountrycode: '' sforeigncountrycode: '',
}, },
fexchangeamt: '', fexchangeamt: '',
sbankname: '', sbankname: '',
...@@ -66,7 +67,7 @@ export default class Litopn { ...@@ -66,7 +67,7 @@ export default class Litopn {
saddwordlib: '', saddwordlib: '',
vouflg: '', vouflg: '',
libflg: '', libflg: '',
sorgname: '' sorgname: '',
}, },
bcbtyp7: '', bcbtyp7: '',
bcbtyp4: '', bcbtyp4: '',
...@@ -95,7 +96,7 @@ export default class Litopn { ...@@ -95,7 +96,7 @@ export default class Litopn {
lcrgod: '', lcrgod: '',
spcben: '', spcben: '',
dftat: '', dftat: '',
spcrcb: '' spcrcb: '',
}, },
rec: { rec: {
tenmaxday: '', tenmaxday: '',
...@@ -134,7 +135,7 @@ export default class Litopn { ...@@ -134,7 +135,7 @@ export default class Litopn {
cnfdet: '', cnfdet: '',
regref: '', regref: '',
porloa: '', porloa: '',
apprultxt: '' apprultxt: '',
}, },
adv: { adv: {
pts: new Pts().data, pts: new Pts().data,
...@@ -148,20 +149,20 @@ export default class Litopn { ...@@ -148,20 +149,20 @@ export default class Litopn {
cbs: { cbs: {
opn2: { opn2: {
cur: '', cur: '',
amt: '0.00' amt: '0.00',
}, },
max: { max: {
cur: '', cur: '',
amt: '0.00' amt: '0.00',
}, },
nom1: { nom1: {
cur: '', cur: '',
amt:'0.00' amt: '0.00',
}, },
max2: { max2: {
cur: '', cur: '',
amt: '0.00' amt: '0.00',
} },
}, },
rmb: { rmb: {
pts: new Pts().data, pts: new Pts().data,
...@@ -177,7 +178,7 @@ export default class Litopn { ...@@ -177,7 +178,7 @@ export default class Litopn {
}, },
apl: { apl: {
pts: new Pts().data, pts: new Pts().data,
} },
}, },
statusInfo: '', statusInfo: '',
setmod: new Pub().data.Setmod, setmod: new Pub().data.Setmod,
......
...@@ -52,23 +52,19 @@ ...@@ -52,23 +52,19 @@
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable"
import event from "../event" import event from "../event"
export default { export default {
inject: ['root'], inject: ['root'],
props:["model","codes"], props:["model","codes"],
mixins: [commonProcess, event], mixins: [event],
data(){ data(){
return { return {
} }
}, },
methods:{}, methods:{},
created:function(){
}
} }
</script> </script>
<style> <style>
......
...@@ -501,15 +501,6 @@ export default { ...@@ -501,15 +501,6 @@ export default {
columns: [], columns: [],
data: [], data: [],
}, },
gitopn: {
gidgrp: {},
gitp: {},
trnmodVo: {},
addbcb: {},
cnybop: {},
codcny: {},
doceot: {},
},
suppress: false, suppress: false,
}; };
}, },
...@@ -562,6 +553,8 @@ export default { ...@@ -562,6 +553,8 @@ export default {
); );
}, },
async handleDisplay(index, row) { async handleDisplay(index, row) {
console.log('row', row)
console.log('ind', index)
//后续要根据快照模式切换请求方式 //后续要根据快照模式切换请求方式
let cortyp = row.cortyp; let cortyp = row.cortyp;
let docnam = row.docnam; let docnam = row.docnam;
...@@ -580,17 +573,16 @@ export default { ...@@ -580,17 +573,16 @@ export default {
// } // }
let params = { let params = {
docVo: row, docVo: row,
[this.model.busType + 'grp']: this.model[this.model.busType + 'grp'],
[this.model.busType + 'p']: this.model[this.model.busType + 'p'],
trnmodVo: this.model.trnmod,
addbcb: this.model.addbcb,
cnybop: this.model.cnybop,
doceot: this.model.doceot,
}; };
this.gitopn.gidgrp = this.model.gidgrp;
this.gitopn.gitp = this.model.gitp;
this.gitopn.trnmodVo = this.model.trnmod;
this.gitopn.addbcb = this.model.addbcb;
this.gitopn.cnybop = this.model.cnybop;
this.gitopn.doceot = this.model.docpan.doceot;
console.log(this.gitopn);
rtnmsg = await Api.post( rtnmsg = await Api.post(
`${this.requestPrefix}/executeDocpan`, `${this.requestPrefix}/executeDocpan`,
this.gitopn params
); );
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
if (cortyp == 'SWT' || cortyp == 'FMT' || cortyp == 'CMT') { if (cortyp == 'SWT' || cortyp == 'FMT' || cortyp == 'CMT') {
......
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