Commit 81a51e94 by panziyi

bctdor修改

parent a2a93e3d
...@@ -19,28 +19,43 @@ export default { ...@@ -19,28 +19,43 @@ export default {
}, },
buildCommonData (model, trnName) { buildCommonData (model, trnName) {
let ptsptaList = []; let ptsptaList = [];
if (model.bcdgrp.agt.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.bcdgrp.agt));
}
if (model.bcdgrp.agb.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.bcdgrp.agb));
}
if (model.bcdgrp.rog.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.bcdgrp.rog));
}
if (model.bcdgrp.co2.pts.extkey) { if (model.bcdgrp.co2.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.bcdgrp.co2)); ptsptaList.push(this.buildPtspta(model.bcdgrp.co2));
} }
if (model.bcdgrp.drr.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.bcdgrp.drr));
}
if (model.bcdgrp.dre.pts.extkey) { if (model.bcdgrp.dre.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.bcdgrp.dre)); ptsptaList.push(this.buildPtspta(model.bcdgrp.dre));
} }
if (model.bcdgrp.rmi.pts.extkey) { if (model.bcdgrp.rmi.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.bcdgrp.rmi)); ptsptaList.push(this.buildPtspta(model.bcdgrp.rmi));
} }
if (model.bcdgrp.drr.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.bcdgrp.drr));
}
let dataObj = { let dataObj = {
rec: { rec: {
objtyp: 'BCD', objtyp: 'BCD',
// objinr: model.bcdgrp.rec.inr, objinr: model.bcdgrp.rec.inr,
ownref: model.bcdgrp.rec.ownref, ownref: model.bcdgrp.rec.ownref,
opndat: model.bcdgrp.rec.opndat, opndat: model.bcdgrp.rec.opndat,
expdat: model.bcdgrp.rec.expdat, expdat: model.bcdgrp.rec.expdat,
branchInr: model.bcdgrp.rec.branchInr, branchInr: model.bcdgrp.rec.branchinr,
nam: model.bcdgrp.rec.nam, nam: model.bcdgrp.rec.nam,
oridre: model.bcdgrp.rec.oridre, oridre: model.bcdgrp.rec.oridre,
rejtypsel: model.rejtypsel,
// bflg: model.cbsdcr.bflg,
mattxtflg:model.bcdgrp.rec.mattxtflg,
doccur: model.setmod.doccur,
docamt: model.setmod.docamt,
}, },
cbsMap: { cbsMap: {
MAX: model.bcdgrp.cbs.max, MAX: model.bcdgrp.cbs.max,
......
import Utils from "~/utils" import Utils from "~/utils"
/**
* Bctdav Check规则
*/
let checkObj = { let checkObj = {
"bctp.drrp.ptsget.sdamod.dadsnd" :null, "bctp.drrp.ptsget.sdamod.dadsnd" :null,
"liaall.misamt" :null, "liaall.misamt" :null,
...@@ -39,7 +37,7 @@ let checkObj = { ...@@ -39,7 +37,7 @@ let checkObj = {
"bcdgrp.dre.pts.ref" :null, "bcdgrp.dre.pts.ref" :null,
"bcdgrp.rec.oridre" :null, "bcdgrp.rec.oridre" :null,
"bcdgrp.drr.pts.adrblk" :null, "bcdgrp.drr.pts.adrblk" :null,
"mtabut.coninf.conexedat" :null, // "mtabut.coninf.conexedat" :null,
"bcdgrp.rec.rcvdat" :null, "bcdgrp.rec.rcvdat" :null,
"outlen.szflg" :null, "outlen.szflg" :null,
"setmod.docamt" :null, "setmod.docamt" :null,
...@@ -102,10 +100,10 @@ let checkObj = { ...@@ -102,10 +100,10 @@ let checkObj = {
{max: 18,message:"整数位不能超过14位"}, {max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
"bcdgrp.dre.pts.adrblk":[ // "bcdgrp.dre.pts.adrblk":[
{type: "string", required: true, message: "必输项"}, // {type: "string", required: true, message: "必输项"},
{max: 350,message:"长度不能超过350"} // {max: 350,message:"长度不能超过350"}
], // ],
"bcdgrp.dre.dbfadrblkcn":[ "bcdgrp.dre.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
...@@ -222,11 +220,11 @@ let checkObj = { ...@@ -222,11 +220,11 @@ let checkObj = {
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
], ],
"setmod.docamt":[ // "setmod.docamt":[
{type: "number", required: false, message: "必输项"}, // {type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"}, // {max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } // {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], // ],
"setmod.zmqacc":[ "setmod.zmqacc":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"} {max: 20,message:"长度不能超过20"}
...@@ -261,24 +259,24 @@ let checkObj = { ...@@ -261,24 +259,24 @@ let checkObj = {
{max: 3,message:"长度不能超过3"} {max: 3,message:"长度不能超过3"}
], ],
"mtabut.coninf.oitinf.oit.inftxt":[ // "mtabut.coninf.oitinf.oit.inftxt":[
{type: "string", required: true, message: "必输项"}, // {type: "string", required: true, message: "必输项"},
{max: 60,message:"长度不能超过60"} // {max: 60,message:"长度不能超过60"}
], // ],
"mtabut.coninf.oitset.oit.inftxt":[ // "mtabut.coninf.oitset.oit.inftxt":[
{type: "string", required: true, message: "必输项"}, // {type: "string", required: true, message: "必输项"},
{max: 60,message:"长度不能超过60"} // {max: 60,message:"长度不能超过60"}
], // ],
"mtabut.coninf.conexedat":[ // "mtabut.coninf.conexedat":[
{type: "string", required: false, message: "输入正确的日期"} // {type: "string", required: false, message: "输入正确的日期"}
], // ],
"mtabut.coninf.usr.extkey":[ // "mtabut.coninf.usr.extkey":[
{type: "string", required: false, message: "必输项"}, // {type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"} // {max: 8,message:"长度不能超过8"}
], // ],
"liaall.outamt":[ "liaall.outamt":[
{type: "number", required: false, message: "必输项"}, {type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"}, {max: 18,message:"整数位不能超过14位"},
......
import Pts from '~/components/business/commonModel/Pts'; import Pts from '~/components/business/commonModel/Pts';
import Pub from '~/components/business/commonModel/index.js'; import Pub from '~/components/business/commonModel/index.js';
export default class Bctdor{ export default class Bctdor {
constructor () { constructor() {
this.data = { this.data = {
bctdrrl1blk:"", swtdat: "",
bctdrel1blk:"", bctdrrl1blk: '', // XMLPanel bctdrrl1的内置block
bctdrel2blk:"", bctdrrl2blk: '', // XMLPanel bctdrrl2的内置block
bctrogl1blk:"", bctcoll1blk: '', // XMLPanel bctcoll1的内置block
bctrogl2blk:"", bcdgrp: {
rec: {
cnybop:{ inr: "",
cnyflg:"", ownref: "", // Collection Number .bcdgrp.rec.ownref
traflg:"", nam: "", // Name .bcdgrp.rec.nam
outflg:"", rcvdat: "", // Docs Received on .bcdgrp.rec.rcvdat
libflg:"", advdat: "", // Date of Advice of Documents Received .bcdgrp.rec.advdat
vouflg:"", matdat: "", // Maturity Date .bcdgrp.rec.matdat
}, predat: "", // Maturity Date .bcdgrp.rec.predat
bcdgrp:{ doctypcod: "", // Payment Condition .bcdgrp.rec.doctypcod
co2:{ docsta: "", // Document Set Status .bcdgrp.rec.docsta
pts:new Pts().data, chato: "", // Our Charges to .bcdgrp.rec.chato
}, focflg: "", // Free of Payment .bcdgrp.rec.focflg
srm:{ waicolcod: "", // Waive Collecting Bank Charges .bcdgrp.rec.waicolcod
djutyp:"", wairmtcod: "", // Waive Remitting Bank Charges .bcdgrp.rec.wairmtcod
}, othins: "", // Defer Payment until .bcdgrp.rec.othins
rec:{ stagod: "", // Good's Code (for Statistics) .bcdgrp.rec.stagod
ownref:"", // Reference .bcdgrp.rec.ownref proins: "", // Protest Instructions .bcdgrp.rec.proins
resflg:"", // Reserved Contract .bcdgrp.rec.resflg agtdat: "", // Agent's Invoice Dated Tag 43C .bcdgrp.rec.agtdat
dftgarflg:"", // Draft to be Guaranteed .bcdgrp.rec.dftgarflg relgodflg: "", // Release of Goods .bcdgrp.rec.relgodflg
rcvdat:"", // Docs received on .bcdgrp.rec.rcvdat reltyp: "", // Release Type .bcdgrp.rec.reltyp
predat:"", // Date of Remittance Lt. .bcdgrp.rec.predat relgoddat: "", // Release Date .bcdgrp.rec.relgoddat
advdat:"", // Advised on .bcdgrp.rec.advdat expdat: "", // Expiry Date of Shipping Guarantee .bcdgrp.rec.expdat
oridre:"", // Send Original Documents to Drawee .bcdgrp.rec.oridre trpdoctyp: "", // Transport Doc. Type .bcdgrp.rec.trpdoctyp
doctypcod:"", // Collection Condition .bcdgrp.rec.doctypcod trpdocnum: "", // Transport Doc. Ref. .bcdgrp.rec.trpdocnum
matdat:"", // Maturity Date .bcdgrp.rec.matdat tradat: "", // Document Dated .bcdgrp.rec.tradat
matpercnt:"", // Tenor Specification .bcdgrp.rec.matpercnt tramod: "", // Mode of Transport .bcdgrp.rec.tramod
matpertyp:"", // Days/Months or Years for Maturity Period .bcdgrp.rec.matpertyp shpfro: "", // Shipment from .bcdgrp.rec.shpfro
matperbeg:"", // Tenor Starting from .bcdgrp.rec.matperbeg shpto: "", // Shipment to .bcdgrp.rec.shpto
stacty:"", // Country Code Risk Country .bcdgrp.rec.stacty rtodreflg: "", // Release to Drawee Flag .bcdgrp.rec.rtodreflg
nam:"", // Name .bcdgrp.rec.nam branchinr: "",
invtyp:"", // 发票类型 .bcdgrp.rec.invtyp
chato:"", // Our Charges to .bcdgrp.rec.chato
focflg:"", // Free of Payment .bcdgrp.rec.focflg
waicolcod:"", // Waive Collecting Bank Charges .bcdgrp.rec.waicolcod
wairmtcod:"", // Waive Remitting Bank Charges .bcdgrp.rec.wairmtcod
othins:"", // Defer Payment until .bcdgrp.rec.othins
stagod:"", // Good's Code (for Statistics) .bcdgrp.rec.stagod
proins:"", // Protest Instructions .bcdgrp.rec.proins
}, },
cbs:{ cbs: {
max:{ max: {
cur:"", // Document Amount .bcdgrp.cbs.max.cur cur: "", // Document Amount .bcdgrp.cbs.max.cur
amt:"", // Document Amount .bcdgrp.cbs.max.amt amt: "", // Document Amount .bcdgrp.cbs.max.amt
}, },
opn1:{ opn1: {
cur:"", // Open Amount .bcdgrp.cbs.opn1.cur cur: "", // Open Amount .bcdgrp.cbs.opn1.cur
amt:"", // Open Amount .bcdgrp.cbs.opn1.amt amt: "", // Open Amount .bcdgrp.cbs.opn1.amt
}, },
}, },
blk:{ dre: {
docpre:"", pts: new Pts().data,
bcgdet:"", // Maturity Text .bcdgrp.blk.bcgdet },
bcgdetflg:"", // BC Tenor Details modified .bcdgrp.blk.bcgdetflg rmi: {
colins:"", // Collection Instructions .bcdgrp.blk.colins pts: new Pts().data,
dftins:"", // Draft Instructions .bcdgrp.blk.dftins },
othins:"", // Other Instructions .bcdgrp.blk.othins drr: {
chgtxt:"", // Charges Text .bcdgrp.blk.chgtxt pts: new Pts().data,
}, },
dre:{ blk: {
pts:new Pts().data, // docpre:"",
resrej: "", // Reason .bcdgrp.blk.resrej
colins: "", // Collection Instructions .bcdgrp.blk.colins
dftins: "", // Draft Instructions .bcdgrp.blk.dftins
othins: "", // Other Instructions .bcdgrp.blk.othins
chgtxt: "", // Charges Text .bcdgrp.blk.chgtxt
bctfre: "", // Free Text Tag 42J .bcdgrp.blk.bctfre
docpre: "", // Presented Documents .bcdgrp.blk.docpre
intins: "", // Interest Instructions .bcdgrp.blk.intins
agtaut: "", // Authority of Agent .bcdgrp.blk.agtaut
agtinf: "", // Further Information .bcdgrp.blk.agtinf
vesselnam: "", // Vessel Name .bcdgrp.blk.vesselnam
covgod: "", // Covered Goods .bcdgrp.blk.covgod
reladr: "", // Release to Address .bcdgrp.blk.reladr
}, },
rmi:{ agt: {
pts:new Pts().data, pts: new Pts().data,
}, },
drr:{ agb: {
pts:new Pts().data, pts: new Pts().data,
}, },
rog: {
pts: new Pts().data,
},
co2: {
pts: new Pts().data,
},
}, },
bctp:{ bctp: {
recget:{ docgrdm: {
sdamod:{ docdsclab: "", // Label of document description .bctp.docgrdm.docdsclab
seainf:"", // .bctp.recget.sdamod.seainf docgrd: [],
dadsnd:"", // Drag Drop Sender .bctp.recget.sdamod.dadsnd },
recget: {
sdamod: {
seainf: "", // .bctp.recget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .bctp.recget.sdamod.dadsnd
}, },
}, },
usrget:{ matp: {
sdamod:{ mattxtlab: "", // Label for MATTXT .bctp.matp.mattxtlab
seainf:"", // .bctp.usrget.sdamod.seainf },
agtp: {
ptsget: {
sdamod: {
seainf: "", // .bctp.agtp.ptsget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .bctp.agtp.ptsget.sdamod.dadsnd
},
},
},
agbp: {
ptsget: {
sdamod: {
seainf: "", // .bctp.agbp.ptsget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .bctp.agbp.ptsget.sdamod.dadsnd
},
}, },
}, },
usr:{ rogp: {
extkey:"", // Responsible User .bctp.usr.extkey ptsget: {
sdamod: {
seainf: "", // .bctp.rogp.ptsget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .bctp.rogp.ptsget.sdamod.dadsnd
},
},
}, },
docgrdm:{ drep: {
docdsclab:"", // Label of document description .bctp.docgrdm.docdsclab ptsget: {
docgrd:[], sdamod: {
seainf: "", // .bctp.drep.ptsget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .bctp.drep.ptsget.sdamod.dadsnd
},
},
}, },
drep:{ co2p: {
ptsget:{ ptsget: {
sdamod:{ sdamod: {
seainf:"", // .bctp.drep.ptsget.sdamod.seainf seainf: "", // .bctp.co2p.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .bctp.drep.ptsget.sdamod.dadsnd dadsnd: "", // Drag Drop Sender .bctp.co2p.ptsget.sdamod.dadsnd
}, },
}, },
}, },
rmip:{ rmip: {
ptsget:{ ptsget: {
sdamod:{ sdamod: {
seainf:"", // .bctp.rmip.ptsget.sdamod.seainf seainf: "", // .bctp.rmip.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .bctp.rmip.ptsget.sdamod.dadsnd dadsnd: "", // Drag Drop Sender .bctp.rmip.ptsget.sdamod.dadsnd
}, },
}, },
}, },
drrp:{ drrp: {
ptsget:{ ptsget: {
sdamod:{ sdamod: {
seainf:"", // .bctp.drrp.ptsget.sdamod.seainf seainf: "", // .bctp.drrp.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .bctp.drrp.ptsget.sdamod.dadsnd dadsnd: "", // Drag Drop Sender .bctp.drrp.ptsget.sdamod.dadsnd
}, },
}, },
}, },
sblx:"", // 申报类型 .bctp.sblx
acttyplab:"", // 款项去向 .bctp.acttyplab
acttyp:"", // ACTTYP .bctp.acttyp
},
outlen:{
szflg:"", // 申报类型 .outlen.szflg
}, },
rejtypsel: "", // Select Rejection Type .rejtypsel
advtyp: "", // SWIFT Advice Type .advtyp
setmod: new Pub().data.Setmod, setmod: new Pub().data.Setmod,
mtabut: new Pub().data.Mtabut, mtabut: new Pub().data.Mtabut,
trnmod: new Pub().data.Trnmod, trnmod: new Pub().data.Trnmod,
liaall: new Pub().data.Liaall, liaall: new Pub().data.Liaall,
liaccv: new Pub().data.Liaccv, liaccv: new Pub().data.Liaccv,
docpan: new Pub().data.Docpan, docpan: new Pub().data.Docpan,
pageId: "" // ctx的key
} }
} }
} }
\ No newline at end of file
...@@ -40,12 +40,12 @@ ...@@ -40,12 +40,12 @@
label-width="0" label-width="0"
prop="bcdgrp.cbs.max.amt" prop="bcdgrp.cbs.max.amt"
> >
<c-input <c-input-currency
disabled disabled
style="text-align: left" style="text-align: left"
v-model="model.bcdgrp.cbs.max.amt" v-model="model.bcdgrp.cbs.max.amt"
placeholder="请输入代收币种及金额" placeholder="请输入代收币种及金额"
></c-input> ></c-input-currency>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -62,12 +62,12 @@ ...@@ -62,12 +62,12 @@
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
<el-form-item label-width="0" prop="bcdgrp.cbs.opn1.amt" style="margin-left: 5px"> <el-form-item label-width="0" prop="bcdgrp.cbs.opn1.amt" style="margin-left: 5px">
<c-input <c-input-currency
disabled disabled
style="text-align: left" style="text-align: left"
v-model="model.bcdgrp.cbs.opn1.amt" v-model="model.bcdgrp.cbs.opn1.amt"
placeholder="请输入代收币种及余额" placeholder="请输入代收币种及余额"
></c-input> ></c-input-currency>
</el-form-item> </el-form-item>
</c-col> </c-col>
......
...@@ -78,7 +78,7 @@ const Business = [ ...@@ -78,7 +78,7 @@ const Business = [
{ path: 'botame', component: () => import('~/business/botame/views'), name: 'botame', meta: { title: '出口托收修改' } }, { path: 'botame', component: () => import('~/business/botame/views'), name: 'botame', meta: { title: '出口托收修改' } },
{ path: 'bctdav', component: () => import('~/business/bctdav/views'), name: 'bctdav', meta: { title: '进口代收' } }, { path: 'bctdav', component: () => import('~/business/bctdav/views'), name: 'bctdav', meta: { title: '进口代收' } },
{ path: 'bctdor', component: () => import('~/business/bctdor/views'), name: 'bctdor', meta: { title: '进口代收拒付/不符点处理' } }, { path: 'bctdor', component: () => import('~/business/bctdor/views'), name: 'bctdor', meta: { title: '进口代收拒付/不符点处理' } },
// { path: 'bctset', component: () => import('~/business/bctset/views'), name: 'bctset', meta: { title: '进口代收付款' } }, { path: 'bctset', component: () => import('~/business/bctset/views'), name: 'bctset', meta: { title: '进口代收付款' } },
{ path: 'infbcd', component: () => import('~/business/infbcd/views'), name: 'infbcd', meta: { title: '进口代收入口交易' } { path: 'infbcd', component: () => import('~/business/infbcd/views'), name: 'infbcd', meta: { title: '进口代收入口交易' }
}, },
......
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