Commit 163d4bf5 by wangna

infgcd

parent 8d520f29
import Utils from "~/utils"
/**
* Infgcd Check规则
*/
let checkObj = {
"infcon.seaamtto" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Infgcd Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"infcon.seapty" :Utils.defaultFunction,
"infcon.pty.extkey" :Utils.defaultFunction,
"infcon.usr.extkey" :Utils.defaultFunction,
"infbut.dspstm" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onInfbutSearow(){
let rtnmsg = await this.executeRule("infbut.searow")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutDsp(){
let rtnmsg = await this.executeRule("infbut.dsp")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutUserow(){
let rtnmsg = await this.executeRule("infbut.userow")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutClr(){
let rtnmsg = await this.executeRule("infbut.clr")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutButprt(){
let rtnmsg = await this.executeRule("infbut.butprt")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onInfbutExi(){
let rtnmsg = await this.executeRule("infbut.exi")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async handleSearch() {
this.stmData.data = [];
let opndatfrom = this.model.infcon.opndatfrom;
if(!opndatfrom || opndatfrom == ''){
this.$notify.error({ title: '错误', message: '查询开始日期必输!' });
return;
}
let opndatto = this.model.infcon.opndatto;
if(!opndatto || opndatto == ''){
this.$notify.error({ title: '错误', message: '查询结束日期必输!' });
return;
}
let rtnmsg = await this.executeRule("infbut.searow")
if (rtnmsg.respCode == SUCCESS) {
this.stmData.data = rtnmsg.data.infbut_dspstm.rows;
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
}
\ No newline at end of file
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: "date", required: false, message: "输入正确的日期"}
],
"infcon.opndatto":[
{type: "date", required: false, message: "输入正确的日期"}
],
"infcon.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"infcon.seaamtfr":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"infcon.seaamtto":[
{type: "number", 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"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Infgcd{
constructor () {
this.data = {
infcon:{
seaownref:"", // Own Reference .infcon.seaownref
nam:"", // Name .infcon.nam
searef:"", // Party Reference .infcon.searef
pty:{
extkey:"", // Select Single Party .infcon.pty.extkey
nam:"", // External Visible Name .infcon.pty.nam
},
seapty:"", // Party Name/BIC .infcon.seapty
searol:"", // Role .infcon.searol
opndatfrom:"", // Opening between .infcon.opndatfrom
opndatto:"", // Open Date to .infcon.opndatto
usr:{
extkey:"", // User ID .infcon.usr.extkey
},
seasta:"", // Status .infcon.seasta
seacur:"", // Currency .infcon.seacur
seaamtfr:"", // Amount between .infcon.seaamtfr
seaamtto:"", // Amount to .infcon.seaamtto
relflg:"", // Release Status .infcon.relflg
cxmflg:"", // 是否显示查询码 .infcon.cxmflg
hndtyp:"", // Handling Type .infcon.hndtyp
trnstm:"",
},
seagtyp:"", // Undertaking Type .seagtyp
infbut:{
dspstm:[], // display stream .infbut.dspstm
},
pageId: "", // ctx的key
gidgrp:{
rec:{
inr:"",
ownref:"", // Reference .gidgrp.rec.ownref
resflg:"", // Reserved Contract .gidgrp.rec.resflg
rejflg:"", // Direct rejection .gidgrp.rec.rejflg
drpreflg:"", // Type of Request .gidgrp.rec.drpreflg
purposin:"", // Incoming Purpose .gidgrp.rec.purposin
purpos:"", // Outgoing Purpose .gidgrp.rec.purpos
hndtyp:"", // Handling Type .gidgrp.rec.hndtyp
gartyp:"", // Type of Undertaking .gidgrp.rec.gartyp
gartypin:"", // Undertaking Type from Local Undertaking Seq. C .gidgrp.rec.gartypin
legfrm:"", // Form of Undertaking .gidgrp.rec.legfrm
demand:"", // Demand Indicator .gidgrp.rec.demand
giduil:"", // Language of Undertak. .gidgrp.rec.giduil
secuilflg:"", // Bilingual Guarantee .gidgrp.rec.secuilflg
gtxinr:"", // Choice of Text .gidgrp.rec.gtxinr
atxinr:"", // Choice of Text .gidgrp.rec.atxinr
exptyp:"", // Expiry Type .gidgrp.rec.exptyp
expdat:"", // Validity until .gidgrp.rec.expdat
liatypc:"", // Liability Type .gidgrp.rec.liatypc
liadat:"", // Our Liability until .gidgrp.rec.liadat
oldref:"", // Old Reference .gidgrp.rec.oldref
revflg:"", // Declaration of Indemnity .gidgrp.rec.revflg
autrnwflg:"", // Auto-Renewal .gidgrp.rec.autrnwflg
rmbflg:"", // Reimbursement Information .gidgrp.rec.rmbflg
orddat:"", // Order Date .gidgrp.rec.orddat
opndat:"", // Valid from .gidgrp.rec.opndat
expflg:"", // Unlimited Guarantee .gidgrp.rec.expflg
liaflg:"", // Unlimited Liability .gidgrp.rec.liaflg
nam:"", // Name .gidgrp.rec.nam
inudat:"", // Inure Date .gidgrp.rec.inudat
teskeyunc:"", // Test Key Unconfirmity .gidgrp.rec.teskeyunc
guaflg:"", // Mortgage Flag .gidgrp.rec.guaflg
cmtflg:"", // 跨境人民币保函 .gidgrp.rec.cmtflg
fingua:"", // 是否对外担保 .gidgrp.rec.fingua
cfaguatyp:"", // 对外担保类型 .gidgrp.rec.cfaguatyp
vrfdat:"", // 核销日期 .gidgrp.rec.vrfdat
fenlishi:"", // 是否分离式保函 .gidgrp.rec.fenlishi
stacty:"", // Risk Country .gidgrp.rec.stacty
orcref:"", // Contract Reference .gidgrp.rec.orcref
orcdat:"", // Date from Original Contract .gidgrp.rec.orcdat
tenclsdat:"", // Closing Date .gidgrp.rec.tenclsdat
orcrat:"", // Original Perc./ Rate .gidgrp.rec.orcrat
orccur:"", // Contract Amount .gidgrp.rec.orccur
orcamt:"", // Contract Amount .gidgrp.rec.orcamt
acc:"", // A/c for Adv. Paym. Guar. .gidgrp.rec.acc
jurlaws20:"", // Governing Law .gidgrp.rec.jurlaws20
jurlaw:"", // Law of Jurisdiction .gidgrp.rec.jurlaw
jurplc:"", // Place of Jurisdiction .gidgrp.rec.jurplc
tenref:"", // Tender Reference .gidgrp.rec.tenref
tendat:"", // Tender Date .gidgrp.rec.tendat
trmdat:"", // Latest Transmiss. Date .gidgrp.rec.trmdat
juscod:"", // 组织机构代码 .gidgrp.rec.juscod
cunqii:"", // 流动资金贷款利率档次 .gidgrp.rec.cunqii
bilvvv:"", // 上浮比率 .gidgrp.rec.bilvvv
bngcod:"", // 企业海关编码 .gidgrp.rec.bngcod
mannum:"", // 手册号码 .gidgrp.rec.mannum
},
cbs:{
max:{
cur:"", // Guarantee Amount .gidgrp.cbs.max.cur
amt:"", // Guarantee Amount .gidgrp.cbs.max.amt
},
opn1:{
cur:"", // Open Amount .gidgrp.cbs.opn1.cur
amt:"", // Balance .gidgrp.cbs.opn1.amt
},
},
blk:{
gartyptxtin:"", // Specification of Type of Undertaking - Counter Undertaking .gidgrp.blk.gartyptxtin
apprul:"", // Applicable Rules .gidgrp.blk.apprul
apprultxt:"", // Applicable Rules .gidgrp.blk.apprultxt
exptxt:"", // Expiry Condition/ Evt. .gidgrp.blk.exptxt
atxexptxt:"", // Expiry Condition/ Evt. .gidgrp.blk.atxexptxt
liatxtc:"", // Liability Condition .gidgrp.blk.liatxtc
atxliatxtc:"", // Liability Condition .gidgrp.blk.atxliatxtc
covgodsrv:"", // Object of Contract .gidgrp.blk.covgodsrv
orcplc:"", // Original Contract Place .gidgrp.blk.orcplc
addinf:"", // Additional Info .gidgrp.blk.addinf
atxcovgodsrv:"", // Underly. Transact. Det. .gidgrp.blk.atxcovgodsrv
gidtxt:"", // Guarantee Text .gidgrp.blk.gidtxt
gtxgidtxt:"", // Guarantee Text with Variables .gidgrp.blk.gtxgidtxt
},
apl:{
pts:new Pts().data,
namelc:"", // 名称 .gidgrp.apl.namelc
adrelc:"", // 地址 .gidgrp.apl.adrelc
dbfadrblkcn:"", // Chinese address .gidgrp.apl.dbfadrblkcn
},
ben:{
pts:new Pts().data,
namelc:"", // 名称 .gidgrp.ben.namelc
adrelc:"", // 地址 .gidgrp.ben.adrelc
dbfadrblkcn:"", // Chinese address .gidgrp.ben.dbfadrblkcn
},
iss:{
pts:new Pts().data,
namelc:"", // 名称 .gidgrp.iss.namelc
adrelc:"", // 地址 .gidgrp.iss.adrelc
dbfadrblkcn:"", // Chinese address .gidgrp.iss.dbfadrblkcn
},
adv:{
pts:new Pts().data,
namelc:"", // 名称 .gidgrp.adv.namelc
adrelc:"", // 地址 .gidgrp.adv.adrelc
dbfadrblkcn:"", // Chinese address .gidgrp.adv.dbfadrblkcn
},
ghd:{
segtyp:"", // 特殊保函类型 .gidgrp.ghd.segtyp
bustyp:"", // 业务类型 .gidgrp.ghd.bustyp
wahnum:"", // 仓库号 .gidgrp.ghd.wahnum
remark:"", // 备注 .gidgrp.ghd.remark
aplnam:"", // 申请人名称关税保函专用 .gidgrp.ghd.aplnam
},
gidcxm:{
warran:"", // 被保证人 .gidgrp.gidcxm.warran
cxmflg:"", // 是否显示查询码 .gidgrp.gidcxm.cxmflg
benefi:"", // 受益人名称 .gidgrp.gidcxm.benefi
},
ctr:{
pts:new Pts().data,
namelc:"", // 名称 .gidgrp.ctr.namelc
adrelc:"", // 地址 .gidgrp.ctr.adrelc
dbfadrblkcn:"", // Chinese address .gidgrp.ctr.dbfadrblkcn
},
atb:{
pts:new Pts().data,
namelc:"", // 名称 .gidgrp.atb.namelc
adrelc:"", // 地址 .gidgrp.atb.adrelc
dbfadrblkcn:"", // Chinese address .gidgrp.atb.dbfadrblkcn
},
con:{
pts:new Pts().data,
namelc:"", // 名称 .gidgrp.con.namelc
adrelc:"", // 地址 .gidgrp.con.adrelc
dbfadrblkcn:"", // Chinese address .gidgrp.con.dbfadrblkcn
},
bdb:{
pts:new Pts().data,
namelc:"", // 名称 .gidgrp.bdb.namelc
adrelc:"", // 地址 .gidgrp.bdb.adrelc
dbfadrblkcn:"", // Chinese address .gidgrp.bdb.dbfadrblkcn
},
},
}
}
}
\ No newline at end of file
......@@ -142,6 +142,7 @@ import Gitsel from "./Gitsel"
import Infgid from "./Infgid"
import Gitset from "./Gitset"
import Gitcrq from "./Gitcrq"
import Infgcd from "./Infgcd"
import Getsel from "./Getsel"
import Getset from "./Getset"
import Getcrq from "./Getcrq"
......@@ -337,6 +338,7 @@ const BusRouter = [
{ path: 'infgid', component: Infgid, name: 'Infgid', meta: { title: '进口保函入口交易' } },
{ path: 'gitset', component: Gitset, name: 'Gitset', meta: { title: '进口保函赔付' } },
{ path: 'gitcrq', component: Gitcrq, name: 'Gitcrq', meta: { title: '进口保函索赔登记' } },
{ path: 'infgcd', component: Infgcd, name: 'Infgcd', meta: { title: '保函赔付查询' } },
{ path: 'ditdav', component: Ditdav, name: 'Ditdav', meta: { title: '信用证收单' } },
......
......@@ -664,7 +664,12 @@ export default {
data() {
return {};
},
methods: { ...Event },
methods: {
...Event,
onSeainf(data) {
this.$emit("onSeainf", data);
},
},
created: function () {},
};
</script>
......
......@@ -107,7 +107,7 @@
<m-setpan :model="model" :codes="codes" />
</el-tab-pane>
<el-tab-pane label="Bookings" name="glepan">
<el-tab-pane v-if="bookings" label="Bookings" name="glepan">
<m-glepan :model="model" :codes="codes" />
</el-tab-pane>
......@@ -121,18 +121,12 @@
<m-docpan :model="model" :codes="codes" />
</el-tab-pane>
<el-tab-pane label="Attachments" name="doctre">
<el-tab-pane v-if="attachments" label="Attachments" name="doctre">
<c-content>
<m-doctre :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!-- <el-tab-pane v-if="model.gitp.swiftflg=='N'&&model.gidgrp.ghd.segtyp=='02'" label="汇总征税" name="detpp">
<c-content>
<m-detpp :model="model" :codes="codes"/>
</c-content>
</el-tab-pane> -->
<!--PD000001 -->
<el-tab-pane label="统一授信" name="limitbody">
<m-limitbody :model="model" :codes="codes" />
......@@ -203,11 +197,18 @@ export default {
codes: {
...CodeTable,
},
bookings: false,
attachments: false,
};
},
methods: {
myTabClick(tab) {
this.tabClick(tab);
if(tab.name === "setpan"){
this.bookings = true,
this.attachments = true
}
/**
* do it yourself
**/
......
<template>
<div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--PD000103 -->
<!-- <el-tab-pane label="PD000103" name="infsea">
<m-infsea :model="model" :codes="codes"/>
</el-tab-pane> -->
<c-content>
<m-infsea :model="model" :codes="codes" ref="infsea" />
</c-content>
</c-tabs>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Infgcd from "~/model/Infgcd"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Infgcd/Check"
import Default from "~/model/Infgcd/Default"
import Pattern from "~/model/Infgcd/Pattern"
import Infsea from "./Infsea"
export default {
name: "Infgcd",
components:{
"m-infsea" : Infsea,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "",
trnName: "infgcd",
model: new Infgcd().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
...CodeTable
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入infgcd交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</script>
<style>
</style>
......@@ -715,12 +715,14 @@ export default {
dialogTableVisible: false,
trnData: {
columns: [
'1 1 "编号" 200',
'2 2 "交易名称" 100',
'3 3 "日期" 200',
'4 4 "状态" 50',
'5 5 "币种" 80',
'6 6 "金额" 80',
'0 1 "Trn ID" 100',
'1 2 "Reference" 200',
'2 3 "Transaction Name" 100',
'3 4 "Entry" 200',
'4 5 "Status" 50',
'5 6 "Cur." 80',
'6 7 "Relevant Amount" 80',
'7 8 "Signed" 80',
],
data: [],
},
......@@ -728,26 +730,26 @@ export default {
columns: [
'1 1 "Reference" 150',
'2 2 "Resp. User" 150',
'3 10 "Opened" 150',
'4 13 "Validity" 150',
'5 14 "Liability" 150',
'6 21"电子渠道类型" 150',
'7 22"OTHERSNO" 150',
'8 3 "保函品种" 150',
'9 20 "Handling Type" 150',
'10 11 "分行名称" 150',
'11 4 "Party Number" 150',
'12 5 "Applicant" 150',
'15 6 "Cur" 150',
'13 7 "Party Number" 150',
'14 8 "Beneficiary" 150',
'15 6 "Cur" 150',
'16 18 "Guar. Amount" 150',
'17 12 "Cur" 150',
'18 9 "Guarantee Amount(RMB)" 150',
'3 10 "Opened" 150',
'10 11 "分行名称" 150',
'17 12 "Cur" 150',
'4 13 "Validity" 150',
'5 14 "Liability" 150',
'22 15 "Open Amount(RMB)" 150',
'19 16 "Cur" 150',
'20 19 "Open Amount" 150',
'21 17 "Cur" 150',
'22 15 "Open Amount(RMB)" 150',
'16 18 "Guar. Amount" 150',
'20 19 "Open Amount" 150',
'9 20 "Handling Type" 150',
'6 21"电子渠道类型" 150',
'7 22"OTHERSNO" 150',
],
data: [],
},
......
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