Commit cd8f3aae by Eivi
parents a103ab75 1ddf7dce
......@@ -4,20 +4,15 @@ import Utils from "~/utils"
* Brtcan Check规则
*/
let checkObj = {
"liaall.misamt" :null,
"liaall.limmod.limpts.oth.pts.extkey" :null,
"liaall.limmod.ownref" :null,
"liaall.limmod.ecifno" :null,
"liaall.limmod.othp.ptsget.sdamod.dadsnd" :null,
"liaall.limmod.limpts.oth.pts.nam" :null,
"setmod.dspflg" :null,
"brtp0.recget.sdamod.dadsnd" :null,
"liaall.limmod.limpts.wrk.pts.nam" :null,
"brtp0.lidget.sdamod.dadsnd" :null,
"liaall.limmod.limpts.wrk.pts.extkey" :null,
"mtabut.coninf.conexedat" :null,
"liaall.limmod.limpts.nonrevflg1" :null,
"liaall.limmod.wrkp.ptsget.sdamod.dadsnd" :null,
"setmod.docamt" :null,
}
......
......@@ -7,30 +7,29 @@ import Utils from "~/utils/index"
export default {
"liaall.limmod.limpts.oth.pts.extkey" :Utils.defaultFunction,
"brdgrp.prb.pts.nam" :Utils.defaultFunction,
"liaall.limmod.limpts.oth.pts.nam" :Utils.defaultFunction,
"liaall.limmod.limpts.nonrevflg2" :Utils.defaultFunction,
"liaall.limmod.limpts.nonrevflg1" :Utils.defaultFunction,
"liaall.limmod.comamt" :Utils.defaultFunction,
"liaall.limmod.ccvamt" :Utils.defaultFunction,
"liaall.limmod.limpts.wrk.pts.extkey" :Utils.defaultFunction,
"liaall.misamt" :Utils.defaultFunction,
"brdgrp.rec.ownref" :Utils.defaultFunction,
"mtabut.coninf.oitset.oit.inftxt" :Utils.defaultFunction,
"liaall.limmod.limpts.wrk.pts.nam" :Utils.defaultFunction,
"setmod.doccur" :Utils.defaultFunction,
"setmod.dspflg" :Utils.defaultFunction,
"setmod.docamt" :Utils.defaultFunction,
"trnmod.trndoc.condocstm" :Utils.defaultFunction,
"trnmod.trndoc.shwinc" :Utils.defaultFunction,
"trnmod.trndoc.shwout" :Utils.defaultFunction,
"mtabut.coninf.usr.extkey" :Utils.defaultFunction,
"mtabut.coninf.oitset.oit.inflev" :Utils.defaultFunction,
"brdgrp.apl.pts.nam" :Utils.defaultFunction,
"liaall.limmod.limpts.wrk.pts.extkey" :Utils.defaultFunction,
"liaall.limmod.limpts.nonrevflg2" :Utils.defaultFunction,
"liaall.limmod.limpts.nonrevflg1" :Utils.defaultFunction,
"brdgrp.ben.pts.nam" :Utils.defaultFunction,
"liaall.limmod.comamt" :Utils.defaultFunction,
"liaall.limmod.ccvamt" :Utils.defaultFunction,
"liaall.limmod.limpts.wrk.pts.nam" :Utils.defaultFunction,
"brdgrp.apl.pts.nam" :Utils.defaultFunction,
"mtabut.coninf.oitset.oit.inftxt" :Utils.defaultFunction,
"mtabut.coninf.oitset.oit.inflev" :Utils.defaultFunction,
"mtabut.coninf.usr.extkey" :Utils.defaultFunction,
"liaall.limmod.limpts.oth.pts.nam" :Utils.defaultFunction,
"brdgrp.prb.pts.nam" :Utils.defaultFunction,
"mtabut.coninf.oitinf.oit.inftxt" :Utils.defaultFunction,
"mtabut.coninf.oitinf.oit.inflev" :Utils.defaultFunction,
"lidgrp.rec.ownref" :Utils.defaultFunction,
"mtabut.coninf.conexedat" :Utils.defaultFunction,
"brdgrp.rec.ownref" :Utils.defaultFunction,
"lidgrp.rec.ownref" :Utils.defaultFunction,
}
//你可以添加自动default处理
......@@ -2,30 +2,6 @@ import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onLiaallButmisamt(){
let rtnmsg = await this.executeRule("liaall.butmisamt")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onLiaallButmissig(){
let rtnmsg = await this.executeRule("liaall.butmissig")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSetmodDet(){
let rtnmsg = await this.executeRule("setmod.det")
if(rtnmsg.respCode == SUCCESS)
......
......@@ -19,7 +19,7 @@ export default {
{max: 3,message:"长度不能超过3"}
],
"lidgrp.cbs.opn1.amt":[
{type: "number", required: false, message: "必输项"},
{required: true, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -41,7 +41,7 @@ export default {
],
"brdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{required: true, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -54,7 +54,7 @@ export default {
{max: 3,message:"长度不能超过3"}
],
"brdgrp.cbs.opn1.amt":[
{type: "number", required: false, message: "必输项"},
{required: true, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -96,36 +96,6 @@ export default {
],
"liaall.outamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"liaall.outpct":[
{type: "string", required: false, message: "必输项"},
{max: 6,message:"长度不能超过6"}
],
"liaall.concur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"liaall.misamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"liaall.exttotoldamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"liaall.exttotamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"setmod.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
......@@ -243,7 +213,7 @@ export default {
],
"liaall.limmod.comamt":[
{type: "number", required: false, message: "必输项"},
{required: true, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -256,7 +226,7 @@ export default {
{max: 40,message:"长度不能超过40"}
],
"liaall.limmod.ccvamt":[
{type: "number", required: false, message: "必输项"},
{required: true, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......
import Api from "~/service/Api"
import Pts from "../Common/Pts"
import Setmod from "../Public/Setmod"
export default class Brtcan{
constructor () {
this.data = {
......@@ -66,66 +68,7 @@ export default class Brtcan{
},
sndmsg:"", // Send Message .sndmsg
rebkpflg:"", // Booking Procedure .rebkpflg
liaall:{
misamt:"", // Amount not yet assigned .liaall.misamt
concur:"", // External Booking Amount .liaall.concur
outpct:"", // Sight Amount Percentage .liaall.outpct
outamt:"", // Sight Amount .liaall.outamt
exttotoldamt:"", // Old Amount booked externally .liaall.exttotoldamt
exttotamt:"", // Total booking amount external assinged .liaall.exttotamt
limmod:{
limpts:{
wrklab:"", // Label .liaall.limmod.limpts.wrklab
othlab:"", // Label .liaall.limmod.limpts.othlab
othlabss:"", // Label .liaall.limmod.limpts.othlabss
wrk:{
pts:new Pts().data,
},
oth:{
pts:new Pts().data,
},
lsh:"", // 合同流�'号 .liaall.limmod.limpts.lsh
nonrevflg1:"", // Flag to Mark Non-revolving Limits .liaall.limmod.limpts.nonrevflg1
pfcod1:"", // 合同流�'号 .liaall.limmod.limpts.pfcod1
nonrevflg2:"", // Flag to Mark Non-revolving Limits .liaall.limmod.limpts.nonrevflg2
pfcod2:"", // 合同流�'号 .liaall.limmod.limpts.pfcod2
},
wrkp:{
ptsget:{
sdamod:{
dadsnd:"", // Drag Drop Sender .liaall.limmod.wrkp.ptsget.sdamod.dadsnd
seainf:"", // .liaall.limmod.wrkp.ptsget.sdamod.seainf
},
},
},
othp:{
ptsget:{
sdamod:{
dadsnd:"", // Drag Drop Sender .liaall.limmod.othp.ptsget.sdamod.dadsnd
seainf:"", // .liaall.limmod.othp.ptsget.sdamod.seainf
},
},
},
ownref:"", // 国结业务编号 .liaall.limmod.ownref
comamt:"", // 业务余额 .liaall.limmod.comamt
ccvamt:"", // 保证金余额 .liaall.limmod.ccvamt
ecifno:"", // ECIFNO .liaall.limmod.ecifno
},
},
setmod:{
docamttyplab:"", // settled amount description as label .setmod.docamttyplab
retmsg:"", // Label showing Retry overflow condition .setmod.retmsg
ref:"", // our reference .setmod.ref
doccur:"", // document currency .setmod.doccur
docamt:"", // document amount .setmod.docamt
dspflg:"", // Type of settlement .setmod.dspflg
xreflg:"", // Recalculate Rates .setmod.xreflg
setglg:{
labdspflg:"", // Label for Type of Settlement .setmod.setglg.labdspflg
},
zmqacclab:"", // 主�'�号LABEL .setmod.zmqacclab
zmqacc:"", // 自�'�区主�'�号 .setmod.zmqacc
},
setmod:new Setmod().data,
mtabut:{
coninf:{
oitinf:{
......@@ -166,6 +109,46 @@ export default class Brtcan{
filrecv:"", // File Receiver .trnmod.trndoc.filrecv
},
},
liaall:{
limmod:{
limpts:{
wrklab:"", // Label .liaall.limmod.limpts.wrklab
othlab:"", // Label .liaall.limmod.limpts.othlab
othlabss:"", // Label .liaall.limmod.limpts.othlabss
wrk:{
pts:new Pts().data,
},
oth:{
pts:new Pts().data,
},
lsh:"", // 合同流�'号 .liaall.limmod.limpts.lsh
nonrevflg1:"", // Flag to Mark Non-revolving Limits .liaall.limmod.limpts.nonrevflg1
pfcod1:"", // 合同流�'号 .liaall.limmod.limpts.pfcod1
nonrevflg2:"", // Flag to Mark Non-revolving Limits .liaall.limmod.limpts.nonrevflg2
pfcod2:"", // 合同流�'号 .liaall.limmod.limpts.pfcod2
},
wrkp:{
ptsget:{
sdamod:{
dadsnd:"", // Drag Drop Sender .liaall.limmod.wrkp.ptsget.sdamod.dadsnd
seainf:"", // .liaall.limmod.wrkp.ptsget.sdamod.seainf
},
},
},
othp:{
ptsget:{
sdamod:{
dadsnd:"", // Drag Drop Sender .liaall.limmod.othp.ptsget.sdamod.dadsnd
seainf:"", // .liaall.limmod.othp.ptsget.sdamod.seainf
},
},
},
ownref:"", // 国结业务编号 .liaall.limmod.ownref
comamt:"", // 业务余额 .liaall.limmod.comamt
ccvamt:"", // 保证金余额 .liaall.limmod.ccvamt
ecifno:"", // ECIFNO .liaall.limmod.ecifno
},
},
pageId: "" // ctx的key
}
}
......
......@@ -19,7 +19,7 @@ export default {
{max: 3,message:"长度不能超过3"}
],
"lidgrp.cbs.opn1.amt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -41,7 +41,7 @@ export default {
],
"brdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -54,7 +54,7 @@ export default {
{max: 3,message:"长度不能超过3"}
],
"brdgrp.cbs.opn1.amt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -84,10 +84,10 @@ export default {
{max: 40,message:"长度不能超过40"}
],
"brdgrp.rec.tenmaxday":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
// "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"}
......@@ -187,7 +187,7 @@ export default {
"liaall.outamt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -200,19 +200,19 @@ export default {
{max: 3,message:"长度不能超过3"}
],
"liaall.misamt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"liaall.exttotoldamt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"liaall.exttotamt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -223,7 +223,7 @@ export default {
"setmod.docamt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -333,7 +333,7 @@ export default {
],
"liaall.limmod.comamt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -346,7 +346,7 @@ export default {
{max: 40,message:"长度不能超过40"}
],
"liaall.limmod.ccvamt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......
......@@ -450,5 +450,12 @@ export default {
{type: "string", required: false, message: "必输项"},
{max: 14,message:"长度不能超过14"}
],
"bopmod.basflg":[
{required: true, message: "必输项"},
],
"brtp.ischktyp":[
{required: true, message: "必输项"},
],
}
\ No newline at end of file
......@@ -176,7 +176,7 @@ export default {
{max: 35,message:"长度不能超过35"}
],
"dedgrp.blk.lcrgod":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
......@@ -184,17 +184,17 @@ export default {
"dedgrp.blk.lcrdoc":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
"dedgrp.blk.adlcnd":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
"dedgrp.blk.insbnk":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
......@@ -330,25 +330,25 @@ export default {
"dedgrp.rec.shpfro":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"dedgrp.rec.fqtime":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"dedgrp.rec.shpto":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"dedgrp.rec.sdsrfs":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"dedgrp.rec.shppro":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"dedgrp.rec.conno":[
......
......@@ -176,7 +176,7 @@ export default {
{max: 35,message:"长度不能超过35"}
],
"dedgrp.blk.lcrgod":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
......@@ -184,17 +184,17 @@ export default {
"dedgrp.blk.lcrdoc":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
"dedgrp.blk.adlcnd":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
"dedgrp.blk.insbnk":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
......@@ -246,7 +246,7 @@ export default {
{max: 20,message:"长度不能超过20"}
],
"dedgrp.adv.pts.jigomc":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"dedgrp.apc.pts.bankno":[
......@@ -254,7 +254,7 @@ export default {
{max: 20,message:"长度不能超过20"}
],
"dedgrp.adv.pts.dizhii":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"dedgrp.apc.pts.jigomc":[
......@@ -330,25 +330,25 @@ export default {
"dedgrp.rec.shpfro":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"dedgrp.rec.fqtime":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"dedgrp.rec.shpto":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"dedgrp.rec.sdsrfs":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"dedgrp.rec.shppro":[
{type: "string", required: true, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"dedgrp.rec.conno":[
......@@ -357,7 +357,7 @@ export default {
],
"dedgrp.rec.conamt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 16,message:"整数位不能超过13位"},
{pattern: /(^\d+$)|(^\.\d{1,2}$)|(^\d+\.\d{1,2}$)/, message: "小数位不能超过2位" }
],
......
<template>
<div class="eContainer">
<div class="bus-button">
<c-button type="primary" v-on:click="handleSave">{{ $t("buttons.save") }}</c-button>
<c-button type="primary" v-on:click="handleCheck">{{ $t("buttons.check") }}</c-button>
</div>
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="left" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
......@@ -9,9 +13,9 @@
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="Liability" name="engp">
<!-- <el-tab-pane label="Liability" name="engp">
<m-engp :model="model" :codes="codes"/>
</el-tab-pane>
</el-tab-pane> -->
<!--PD000000 -->
<el-tab-pane label="Settlement" name="setpan">
......@@ -46,23 +50,24 @@ import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Brtcan from "~/model/Brtcan"
import commonProcess from "~/mixin/commonProcess"
import commonFuncs from "~/mixin/commonFuncs"
import Check from "~/model/Brtcan/Check"
import Default from "~/model/Brtcan/Default"
import Pattern from "~/model/Brtcan/Pattern"
import Canp from "./Canp"
import Engp from "./Engp"
import Setpan from "./Setpan"
import Coninfp from "./Coninfp"
import Docpan from "./Docpan"
import Doctre from "./Doctre"
import Limitbody from "./Limitbody"
// import Engp from "./Engp"
import Setpan from "../../Public/Setpan"
import Coninfp from "../../Public/Coninfp"
import Docpan from "../../Public/Docpan"
import Doctre from "../../Public/Doctre"
import Limitbody from "../../Public/Limitbody"
export default {
name: 'Brtcan',
components:{
"m-canp" : Canp,
"m-engp" : Engp,
// "m-engp" : Engp,
"m-setpan" : Setpan,
"m-coninfp" : Coninfp,
"m-docpan" : Docpan,
......@@ -75,10 +80,10 @@ export default {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "",
tabVal: "canp",
trnName: "brtcan",
model: new Brtcan().data,
checkRules: Check,
......@@ -90,19 +95,45 @@ export default {
}
},
methods:{
tabClick(){
async handleSave() {
let result = await this.save();
if (result.respCode == SUCCESS && Object.keys(result.fieldErrors).length == 0) {
this.$notify({
title: "成功",
message: "保存成功",
type: "success",
});
this.$store.dispatch("TagsView/delView", this.$route)
this.$router.go(-1)
} else if(result.fieldErrors && Object.keys(result.fieldErrors).length > 0 ){
const tab = this.showBackendErrors(result.fieldErrors)
if (tab) {
// tab切换之后,需出发tab-click的事件
this.tabClick(tab);
}
this.$notify({
title: "错误",
message: "检核失败!",
type: "error",
});
} else{
this.$notify({
title: "失败",
message: "保存失败",
type: "error",
});
}
}
},
created:async function(){
console.log("进入brtcan交易");
console.log("$el",this.$el)
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
this.updateModel(rtnmsg.data)
}
else
{
......
<template>
<div class="eibs-tab">
<c-col :span="12">
<c-checkbox v-model="model.brdgrp.blk.docdisflg">discrepancies modified</c-checkbox>
</c-col>
<c-col :span="12">
<el-form-item label="Discrepancies" prop="brdgrp.blk.docdis">
<c-input type="textarea" v-model="model.brdgrp.blk.docdis" maxlength="50" show-word-limit placeholder="请输入Discrepancies" ></c-input>
<c-fullbox>
<c-input
type="textarea"
v-model="model.brdgrp.blk.docdis"
maxlength="50"
show-word-limit
placeholder="请输入Discrepancies"
></c-input>
<template slot="footer">
<c-button
size="small"
type="primary"
@click="onDocdisButtxmsel"
>
...
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" icon="el-icon-search" @click="onDocdisButtxmsel">
...
</c-button>
<el-form-item>
<c-checkbox v-model="model.brdgrp.blk.docdisflg"
>discrepancies modified</c-checkbox
>
</el-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.brtp.docgrdm.docdsclab" data-path=".brtp.docgrdm.docdsclab" > </span>
<c-col :span="24" style="height: 24px; margin-top: -10px">
<el-form-item :label="model.brtp.docgrdm.docdsclab" class="messageLabel">
<c-button style="float:right" @click="addTableValue" type="primary">新增单据</c-button>
</el-form-item>
</c-col>
<c-col :span="24" style="height: 0px">
<el-divider></el-divider>
</c-col>
<c-col :span="24" style="">
<c-table
style="text-align: center"
:list="TableValue"
:paginationShow="false"
:border="true"
>
<el-table-column label="1st" prop="cmail1" width="auto"></el-table-column>
<el-table-column label="2nd" prop="cmail2" width="auto"></el-table-column>
<el-table-column label="Document" prop="docnam" width="auto">
<template slot-scope="scope">
<!-- {{scope.row.docnam}} -->
<c-select
style="width: 100%"
placeholder="请选择"
v-model="
scope.row.docnam
"
>
<el-option
v-for="item in codeTable"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</template>
</el-table-column>
<el-table-column label="操作" width="170px" fixed="right">
<template slot-scope="scope">
<c-button @click="deleteTable(scope.row)" type="primary">删除</c-button>
</template>
</el-table-column>
</c-table>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Brtdcr/Event"
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Brtdcr/Event";
export default {
inject: ['root'],
props:["model","codes"],
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data(){
data() {
return {
TableValue:[
{
id:0,
cmail1:"",
cmail2:"",
docnam:"10"
},
{
id:1,
cmail1:"",
cmail2:"",
docnam:"20"
},
{
id:2,
cmail1:"",
cmail2:"",
docnam:"17"
},
],
newValue:{
id:0,
cmail1:"",
cmail2:"",
docnam:""
},
codeTable:[
{ label: "Airway Bills", value: "1" },
{ label: "Beneficiary's Declaration", value: "2" },
{ label: "Bill of Lading Copies", value: "3" },
{ label: "Bill of Lading Originals", value: "4" },
{ label: "Certificate", value: "5" },
{ label: "Certificate of Analysis", value: "6" },
{ label: "Certificate of Origin", value: "7" },
{ label: "Certificate of Quality", value: "8" },
{ label: "Certificate of Quantity", value: "9" },
{ label: "Commercial Invoice", value: "10" },
{ label: "Courier Receipt", value: "11" },
{ label: "Draft", value: "12" },
{ label: "Export Licence", value: "13" },
{ label: "Fax Report", value: "14" },
{ label: "Inspection Cert", value: "15" },
{ label: "Insurance Policy", value: "16" },
{ label: "Packing List", value: "17" },
{ label: "Shipment Advice", value: "18" },
{ label: "Weight List", value: "19" },
{ label: "Original Bills of Lading", value: "20" },
]
};
},
methods: { ...Event,
addTableValue(){
var index = this.TableValue.length;
var newTableValue = this.newValue;
if(index > 0){
newTableValue.id = this.TableValue[index - 1].id + 1;
}
this.TableValue.push(newTableValue);
},
methods:{...Event},
created:function(){
deleteTable(row){
for(let i = 0; i < this.TableValue.length; i++){
if(this.TableValue[i].id == row.id){
this.TableValue.splice(i, 1)
break;
}
}
}
}
},
created: function () {},
};
</script>
<style>
.messageLabel >>> .el-form-item__label {
text-align: left;
font-weight: bold;
font-size: 12px;
}
</style>
......@@ -81,13 +81,13 @@
<!-- ====================右边======================= -->
<c-col :span="11" :offset="1">
<c-col :span="24">
<c-col :span="12">
<c-checkbox
v-model="model.cfadft.basflg"
>签约信息</c-checkbox>
</c-col>
<c-col :span="24">
<c-col :span="12">
<c-checkbox v-model="model.cfadft.dclflg">变动信息</c-checkbox>
</c-col>
......
......@@ -130,7 +130,11 @@
</c-col>
<c-col :span="24">
<el-form-item label="Tenor Stream" prop="liaall.tenstm">
<c-input v-model="model.liaall.tenstm" placeholder="请输入Tenor Stream"></c-input>
<c-istream-table
:list="model.liaall.tenstm"
:columns="columns"
>
</c-istream-table>
</el-form-item>
</c-col>
......@@ -216,50 +220,41 @@
<c-col :span="24">
<div class="e-table-wrapper">
<el-table
:data="model.bptbck.bptbckg"
style="width: 100%"
<c-table
style="text-align: center"
:list="table1"
:paginationShow="false"
:border="true"
>
<el-table-column
prop="ownref"
label=""
sortable
width="100">
</el-table-column>
<el-table-column
prop="opncur"
label=""
sortable
width="100">
</el-table-column>
<el-table-column
prop="opnamt"
label=""
sortable
width="100">
</el-table-column>
<el-table-column
prop="bckamt"
label=""
sortable
width="100">
</el-table-column>
<el-table-column
prop="butcal"
label=""
sortable
width="100">
</el-table-column>
</el-table>
<el-table-column label="Reference" prop="ownref" width="auto"></el-table-column>
<el-table-column label="Cur." prop="opncur" width="auto"></el-table-column>
<el-table-column label="Open Amount" prop="opnamt" width="auto"></el-table-column>
<el-table-column label="Amount Paid" prop="bckamt" width="auto"></el-table-column>
<el-table-button label="Cal." prop="butcal" width="auto"></el-table-button>
</c-table>
</div>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="预计核验日期" prop="brtp.prechkdat">
<c-date-picker type="date" v-model="model.brtp.prechkdat" style="width:100%" placeholder="请选择预计核验日期"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="是否需要检验" prop="brtp.ischktyp">
<c-select v-model="model.brtp.ischktyp" style="width:100%" placeholder="">
<el-option
v-for="item in codes.ischktyp"
:key="item.label"
:label="item.label"
:value="item.label">
</el-option>
</c-select> </el-form-item>
</c-col>
</c-col>
<!-- ====================右边======================= -->
<c-col :span="11" :offset="1">
......@@ -411,7 +406,15 @@ export default {
mixins: [commonProcess],
data(){
return {
columns:[
"1 1 \"Type\" 40",
"2 2 \"Dbt\" 48",
"3 3 \"Cdt\" 48",
"4 4 \"Cur\" 48",
"5 5 \"Amt\" 85 2 8 1 4",
"6 6 \"Mat.Dat.\" 75 4 7 1"
]
}
},
methods:{...Event},
......
......@@ -4,12 +4,22 @@
<c-col :span="11">
<el-form-item label="申报类型" prop="bopmod.szflg">
<c-select v-model="model.bopmod.szflg" style="width:100%" placeholder="请选择申报类型">
<el-option
v-for="item in codes.szflg"
:key="item.label"
:label="item.label"
:value="item.label">
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="" prop="bopmod.basflg">
<c-checkbox v-model="model.bopmod.basflg">基础数据</c-checkbox>
</el-form-item>
</c-col>
</c-col>
......@@ -22,13 +32,25 @@
<c-col :span="12">
<el-form-item label="款项去向" prop="bopmod.acttyp">
<c-select v-model="model.bopmod.acttyp" style="width:100%" placeholder="请选择款项去向">
<el-option
v-for="item in codes.acttyp"
:key="item.label"
:label="item.label"
:value="item.label">
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="地区机构号" prop="bopmod.ownextkey">
<c-select v-model="model.bopmod.ownextkey" style="width:100%" placeholder="请选择地区机构号">
<c-select v-model="model.bopmod.ownextkey" style="width:100%" placeholder="请选择地区机构号">\
<el-option
v-for="item in codes.ownextkey"
:key="item.label"
:label="item.label"
:value="item.label">
</el-option>
</c-select>
</el-form-item>
</c-col>
......
<template>
<div class="eContainer">
<!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
<c-function-btn
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
:handleStash="handleStash"
>
<el-button size="small">备忘录</el-button>
<el-button size="small" @click="setDraggableContent('cms', '影像信息')">影像信息</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>
</c-function-btn>
<el-form
:model="model"
:rules="rules"
......@@ -94,6 +108,7 @@ import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Brtset from "~/model/Brtset"
import commonProcess from "~/mixin/commonProcess"
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Brtset/Check"
import Default from "~/model/Brtset/Default"
import Pattern from "~/model/Brtset/Pattern"
......@@ -136,10 +151,11 @@ export default {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
mixins: [commonProcess,commonFuncs], // 里面包含了Default、Check等的公共处理
computed: {},
data(){
return {
tabVal: "",
tabVal: "utlp",
trnName: "brtset",
model: new Brtset().data,
checkRules: Check,
......@@ -147,6 +163,7 @@ export default {
pattern: Pattern,
rules: null,
codes: {
...CodeTable
},
}
},
......
......@@ -144,6 +144,8 @@ import AssetPub from "./AssetPub"
import Fund from "./Fund"
import Brtdck from "./Brtdck"
// import Brtcsg from "./Brtcsg"
import Brtcan from "./Brtcan"
import Litsel from "./Litsel"
import Brtdcr from "./Brtdcr"
......@@ -246,6 +248,8 @@ const BusRouter = [
{ path: 'trtame', component: Trtame, name: 'Trtame', meta: { title: '进口融资修改' } },
{ path: 'trtsel', component: Trtsel, name: 'Trtsel', meta: { title: '进口融资入口交易' } },
{ path: 'brtdck', component: Brtdck, name: 'Brtdck', meta: { title: '进口信用证单据改单/二次到单' } },
// { path: 'brtcsg', component: Brtcsg, name: 'Brtcsg', meta: { title: '进口信用证单据提货担保注销' } },
{ path: 'brtcan', component: Brtcan, name: 'Brtcan', meta: { title: '进口信用证单据注销' } },
{ path: 'inftxm', component: Inftxm, name: 'Inftxm', meta: { title: '条式语句查询' } },
// { path: 'infdet', component: Infdet, name: 'Infdet', meta: { title: 'Infdet' } },
......
......@@ -111,6 +111,7 @@ import Api from "~/service/Api";
import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable";
import Detopn from "~/model/Detopn";
import Detame from "~/model/Detame"
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Detopn/Check";
......@@ -131,7 +132,7 @@ import Docpan from "~/views/Public/Docpan";
import Limitbody from "~/views/Public/Limitbody";
export default {
name: "Detopn",
name: "Detame",
components: {
"m-ovwp": Ovwp,
"m-detp": Detp,
......@@ -158,8 +159,8 @@ export default {
data() {
return {
tabVal: "ovwp",
trnName: "detopn",
model: new Detopn().data,
trnName: "detame",
model: new Detame().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
......
<template>
<c-content>
<div class="eContainer">
<c-function-btn
......@@ -79,6 +80,7 @@
</c-tabs>
</el-form>
</div>
</c-content>
</template>
<script>
import Api from "~/service/Api"
......
......@@ -43,7 +43,7 @@
<c-input v-model="model.dedgrp.rec.conno" maxlength="35" placeholder="请输入"></c-input>
</el-form-item>
<el-form-item label="合同金额" prop="dedgrp.rec.conamt">
<el-form-item label="合同金额">
<c-col :span="10">
<c-select v-model="model.dedgrp.rec.concur" style="width:90%" placeholder="请选择">
<el-option label="CNY 人民币" value="CNY"></el-option>
......
......@@ -76,6 +76,8 @@ export default {
message: "保存成功",
type: "success",
});
this.$store.dispatch("TagsView/delView", this.$route)
this.$router.go(-1)
} else if(result.fieldErrors && Object.keys(result.fieldErrors).length > 0 ){
const tab = this.showBackendErrors(result.fieldErrors)
if (tab) {
......
......@@ -78,6 +78,8 @@ export default {
message: "保存成功",
type: "success",
});
this.$store.dispatch("TagsView/delView", this.$route)
this.$router.go(-1)
} else if(result.fieldErrors && Object.keys(result.fieldErrors).length > 0 ){
const tab = this.showBackendErrors(result.fieldErrors)
if (tab) {
......
......@@ -216,8 +216,8 @@
</el-row>
</el-form>
</template>
</c-list-search>
</template>
</c-list-search>
<!--<c-col :span="12">
<el-form-item label="display stream" prop="infbut.dspstm">
<c-input v-model="model.infbut.dspstm" placeholder="请输入display stream"></c-input>
......@@ -248,7 +248,7 @@
Exit
</c-button>
</el-col>
<c-istream-table :list="this.model.infbut.dspstm" :columns="columns" style="padding: 0 16px;">
<c-istream-table :list="this.model.infbut.dspstm || []" :columns="columns" style="padding: 0 16px;">
<el-table-column
prop="display"
label="操作"
......@@ -309,6 +309,7 @@ export default {
},
async onChoose(code){
//跳转交易
this.initdialog = false
this.$router.history.push("/business/" + code)
},
......
......@@ -23,6 +23,7 @@ import Infsea from "./Infsea"
export default {
name: 'Inflid',
components:{
"m-infsea" : Infsea,
......@@ -35,7 +36,7 @@ export default {
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "",
tabVal: "infsea",
trnName: "inflid",
model: new Inflid().data,
checkRules: Check,
......@@ -55,7 +56,7 @@ export default {
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
this.updateModel(rtnmsg.data)
}
else
{
......
......@@ -32,7 +32,10 @@
<c-col :span="24">
<c-col :span="13">
<c-form-item label="Open Amount" :prop="`${argadr.trans}.cbs.opn1.cur`">
<c-form-item
label="Open Amount"
:prop="`${argadr.trans}.cbs.opn1.cur`"
>
<c-input
disabled
v-model="model[argadr.trans].cbs.opn1.cur"
......@@ -57,8 +60,12 @@
</c-col>
<c-col :span="24">
<div v-if="isAdvdat">
<c-col :span="13">
<el-form-item label="Received on" :prop="`${argadr.trans}.rec.rcvdat`">
<el-form-item
label="Received on"
:prop="`${argadr.trans}.rec.rcvdat`"
>
<c-date-picker
type="date"
disabled
......@@ -67,7 +74,6 @@
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="11">
<el-form-item
label="Advised on"
......@@ -82,109 +88,132 @@
></c-date-picker>
</el-form-item>
</c-col>
</c-col>
</div>
<div v-else>
<c-col :span="24">
<el-form-item label="Maturity Date" prop="brtp.matp.mattxtlab">
<el-form-item
label="Received on"
:prop="`${argadr.trans}.rec.rcvdat`"
>
<c-date-picker
type="date"
disabled
v-model="model.brtp.matp.mattxtlab"
v-model="model[argadr.trans].rec.rcvdat"
style="width: 100%"
></c-date-picker>
</el-form-item>
</c-col>
</div>
</c-col>
<c-col :span="24">
<el-form-item label="Document Type" :prop="`${argadr.trans}.rec.docflg`">
<c-input
v-model="model[argadr.trans].rec.docflg"
style="width: 100%"
<div v-if="isMattxtlab">
<c-col :span="13">
<el-form-item
label="Maturity Date"
prop="brtp.matp.mattxtlab"
>
<c-date-picker
type="date"
disabled
v-model="model.brtp.matp.mattxtlab"
style="width: 100%"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="11">
<el-form-item
label="Start Date"
label-width="90px"
:prop="`${argadr.trans}.rec.advdat`"
>
</c-input>
<c-date-picker
type="date"
disabled
v-model="model[argadr.trans].rec.stadat"
style="width: 100%"
></c-date-picker>
</el-form-item>
</c-col>
</div>
<div v-else>
<c-col :span="24">
<c-form-item
label="Document Set Status"
:prop="`${argadr.trans}.rec.docsta`"
<el-form-item
label="Maturity Date"
prop="brtp.matp.mattxtlab"
>
<c-input
v-model="model[argadr.trans].rec.docsta"
maxlength="1"
<c-date-picker
type="date"
disabled
>
</c-input>
</c-form-item>
v-model="model.brtp.matp.mattxtlab"
style="width: 100%"
></c-date-picker>
</el-form-item>
</c-col>
</div>
</c-col>
<!-- <c-col :span="12">
<c-col :span="24">
<c-form-item label="Applicant Ref." :prop="`${argadr.trans}.apl.pts.ref`">
<div v-if="isTenmaxday">
<c-col :span="13">
<el-form-item
label="Document Type"
:prop="`${argadr.trans}.rec.docflg`"
>
<c-input
v-model="model[argadr.trans].rec.docflg"
style="width: 100%"
disabled
v-model="model[argadr.trans].apl.pts.ref"
maxlength="16"
></c-input>
</c-form-item>
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="Name of Party" :prop="`${argadr.trans}.apl.pts.nam`">
<c-input
<c-col :span="11">
<el-form-item
label="Tenor"
label-width="90px"
:prop="`${argadr.trans}.rec.tenmaxday`"
>
<c-date-picker
type="date"
disabled
v-model="model[argadr.trans].apl.pts.nam"
maxlength="40"
></c-input>
</c-form-item>
v-model="model[argadr.trans].rec.tenmaxday"
style="width: 100%"
></c-date-picker>
</el-form-item>
</c-col>
</div>
<div v-else>
<c-col :span="24">
<c-form-item label="Beneficiary Ref." :prop="`${argadr.trans}.ben.pts.ref`">
<el-form-item
label="Document Type"
:prop="`${argadr.trans}.rec.docflg`"
>
<c-input
v-model="model[argadr.trans].rec.docflg"
style="width: 100%"
disabled
v-model="model[argadr.trans].ben.pts.ref"
maxlength="16"
></c-input>
</c-form-item>
>
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="Name of Party" :prop="`${argadr.trans}.ben.pts.nam`">
<c-input
disabled
v-model="model[argadr.trans].ben.pts.nam"
maxlength="40"
></c-input>
</c-form-item>
</div>
</c-col>
<c-col :span="24">
<c-form-item
label="Presenting Bank Ref."
:prop="`${argadr.trans}.prb.pts.ref`"
label="Document Set Status"
:prop="`${argadr.trans}.rec.docsta`"
>
<c-input
v-model="model[argadr.trans].rec.docsta"
maxlength="1"
disabled
v-model="model[argadr.trans].prb.pts.ref"
maxlength="16"
></c-input>
>
</c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="Name of Party" :prop="`${argadr.trans}.prb.pts.nam`">
<c-input
disabled
v-model="model[argadr.trans].prb.pts.nam"
maxlength="40"
></c-input>
</c-form-item>
</c-col>
</c-col> -->
<!-- Right -->
<c-col :span="12">
......@@ -229,7 +258,19 @@ export default {
},
rol: {
type: Array,
default: ()=>[]
default: () => [],
},
isAdvdat: {
type: Boolean,
default: false,
},
isMattxtlab: {
type: Boolean,
default: false,
},
isTenmaxday: {
type: Boolean,
default: false,
},
},
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