Commit c6dd220b by WF1020

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 122fc17e 39e2588a
......@@ -63,7 +63,7 @@ export default {
...this.buildCommonData(model, trnName),
liaall: model.liaall,
liaccv: model.liaccv,
doceot: model.trnmod.trndoc.doceot,
// doceot: model.trnmod.trndoc.doceot,
};
return params
},
......@@ -113,9 +113,9 @@ export default {
let params = {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'lid',
objinr: model.brdgrp.rec.objinr,
ownref: model.brdgrp.rec.ownref,
objtyp: 'GID',
objinr: model.gidgrp.rec.objinr,
ownref: model.gidgrp.rec.ownref,
},
};
return params
......
......@@ -28,7 +28,7 @@ export default {
...params,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
lidgrp:{
brdgrp:{
rec:{
inr:this.$route.query.inr
}
......
export default {
"brdgrp.acb.namelc" :null,
"brdgrp.prb.adrelc" :null,
"brdgrp.blk.docdis" :null,
"brtp.furide" :null,
"brdgrp.acb.adrelc" :null,
"brdgrp.prb.pts.adrblk" :null,
"brdgrp.prb.namelc" :null,
"setmod.dspflg" :null,
"brdgrp.acb.pts.extkey" :null,
"brdgrp.rec.disdat" :null,
"brdgrp.prb.pts.nam" :null,
"brdgrp.ben.pts.nam" :null,
"brdgrp.acb.pts.adrblk" :null,
"brdgrp.prb.pts.extkey" :null,
"mtabut.coninf.conexedat" :null,
"brdgrp.prb.pts.ref" :null,
"brdgrp.apl.pts.nam" :null,
"setmod.docamt" :null,
"brtp.lidget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
......@@ -103,7 +121,7 @@ export default {
{max: 16,message:"长度不能超过16"}
],
"brdgrp.rec.disdat":[
{type: "date", required: true, message: "输入正确的日期"}
{type: "string", required: true, message: "输入正确的日期"}
],
"brdgrp.prb.pts.extkey":[
{type: "string", required: false, message: "必输项"},
......@@ -265,24 +283,6 @@ export default {
{type: "string", required: true, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"brdgrp.acb.namelc" :null,
"brdgrp.prb.adrelc" :null,
"brdgrp.blk.docdis" :null,
"brtp.furide" :null,
"brdgrp.acb.adrelc" :null,
"brdgrp.prb.pts.adrblk" :null,
"brdgrp.prb.namelc" :null,
"setmod.dspflg" :null,
"brdgrp.acb.pts.extkey" :null,
"brdgrp.rec.disdat" :null,
"brdgrp.prb.pts.nam" :null,
"brdgrp.ben.pts.nam" :null,
"brdgrp.acb.pts.adrblk" :null,
"brdgrp.prb.pts.extkey" :null,
"mtabut.coninf.conexedat" :null,
"brdgrp.prb.pts.ref" :null,
"brdgrp.apl.pts.nam" :null,
"setmod.docamt" :null,
}
\ No newline at end of file
......@@ -38,56 +38,50 @@ export default class Brtacp {
docdis: '',
},
rec: {
totcur: '',
ownref: '',
disdat: '',
totamt: '',
nam: '',
docprbrol: '',
totcur: '',
ownref: '',
disdat: '',
totamt: '',
nam: '',
docprbrol: ''
},
cbs: {
opn2: {
cur: '',
},
opn1: {
cur: '',
},
max: {
cur: '',
amt: '',
},
max2: {
amt: '',
},
},
},
brtp: {
furide: '',
matp: {
mattxtlab:''
opn2: {
cur: ''
},
max: {
cur: '',
amt: ''
},
max2: {
amt: ''
}
}
},
lidgrp: {
},
brtp: {
furide: ''
},
lidgrp: {
rec: {
expdat: '',
ownref: '',
expdat: '',
ownref: ''
},
cbs: {
opn1: {
cur: '',
amt: '',
},
},
},
gitp: {
opn1: {
cur: '',
amt: ''
}
}
},
gitp: {
swiftflg: '',
},
setmod: new Pub().data.Setmod,
mtabut: new Pub().data.Mtabut,
trnmod: new Pub().data.Trnmod,
liaall: new Pub().data.Liaall,
liaccv: new Pub().data.Liaccv,
docpan: new Pub().data.Docpan,
},
setmod: new Pub().data.Setmod,
mtabut: new Pub().data.Mtabut,
trnmod: new Pub().data.Trnmod,
liaall: new Pub().data.Liaall,
liaccv: new Pub().data.Liaccv,
docpan: new Pub().data.Docpan,
};
}
}
......@@ -30,31 +30,31 @@ export default {
}
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,
objtyp: 'LID',
ownref: model.brdgrp.rec.ownref,
opndat: model.brdgrp.rec.opndat,
expdat: model.brdgrp.rec.expdat,
branchInr: model.brdgrp.rec.branchInr,
hndtyp: model.brdgrp.rec.hndtyp,
gartyp: model.brdgrp.rec.gartyp,
fingua: model.brdgrp.rec.fingua,
// segtyp: model.brdgrp.ghd.segtyp,
fromflg: model.brdgrp.rec.fromflg,
othersno: model.brdgrp.rec.othersno,
sndto: model.brdgrp.rec.sndto,
// swiftflg: model.gitp.swiftflg,
giduil: model.brdgrp.rec.giduil,
purpos: model.brdgrp.rec.purpos,
revflg: model.brdgrp.rec.revflg,
cnfsta: model.brdgrp.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,
MAX: model.brdgrp.cbs.max,
OPN1: model.brdgrp.cbs.opn1,
MAC: model.brdgrp.cbs.mac,
MAC2: model.brdgrp.cbs.mac2,
OPC2: model.brdgrp.cbs.opc2,
CNF: model.brdgrp.cbs.cnf,
},
ptsList: ptsptaList,
transName: trnName,
......@@ -67,7 +67,7 @@ export default {
...this.buildCommonData(model, trnName),
liaall: model.liaall,
liaccv: model.liaccv,
doceot: model.trnmod.trndoc.doceot,
// doceot: model.trnmod.trndoc.doceot,
};
return params
},
......@@ -117,9 +117,9 @@ export default {
let params = {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'GID',
objinr: model.gidgrp.rec.objinr,
ownref: model.gidgrp.rec.ownref,
objtyp: 'LID',
objinr: model.brdgrp.rec.objinr,
ownref: model.brdgrp.rec.ownref,
},
};
return params
......@@ -128,10 +128,10 @@ export default {
let params = {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'GID',
objinr: model.gidgrp.rec.objinr,
ownref: model.gidgrp.rec.ownref,
swiftflg: model.gitp.swiftflg,
objtyp: 'LID',
objinr: model.brdgrp.rec.objinr,
ownref: model.brdgrp.rec.ownref,
// swiftflg: model.gitp.swiftflg,
},
};
return params
......
......@@ -28,6 +28,11 @@ export default {
...params,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
brdgrp:{
rec:{
inr: '00000030'
}
},
});
if (!res.data) {
return
......@@ -64,7 +69,7 @@ export default {
let engpRequest = buildFn.buildEngp(this.model, this.trnName);
this.processLiaall(engpRequest);
break;
case 'setpan':
case 'setmod':
let setfegRequest = buildFn.buildSetfeg(this.model, this.trnName);
// 此处利用回调是为了等setfeg的接口调用完成后才去获取setglg参数,由于setglg参数依赖于setfeg函数的返回值
this.processSetpan(setfegRequest, () => {
......
......@@ -18,11 +18,11 @@ export default {
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"lidgrp.cbs.opn1.amt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
// "lidgrp.cbs.opn1.amt":[
// {required: false, message: "必输项"},
// {max: 18,message:"整数位不能超过14位"},
// {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
// ],
"brdgrp.rec.shgref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
......@@ -43,11 +43,11 @@ export default {
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"brdgrp.cbs.max.amt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
// "brdgrp.cbs.max.amt":[
// {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"}
......@@ -56,11 +56,11 @@ export default {
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"brdgrp.cbs.opn1.amt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
// "brdgrp.cbs.opn1.amt":[
// {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"}
......@@ -122,11 +122,11 @@ export default {
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"setmod.docamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
// "setmod.docamt":[
// {type: "number", required: false, message: "必输项"},
// {max: 18,message:"整数位不能超过14位"},
// {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
// ],
"setmod.zmqacc":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
......
......@@ -84,6 +84,7 @@ export default class Brtcsg {
brdgrp: {
rec: {
inr:'',
shgref: '',
ownref: '',
nam: ''
......@@ -138,8 +139,10 @@ export default class Brtcsg {
lidgrp: {
rec: {
inr:'',
expdat: '',
ownref: ''
ownref: '',
branchinr: "00000047",
},
cbs: {
opn1: {
......
......@@ -129,7 +129,9 @@ export default {
}
},
methods: {},
created: async function () {
mounted () {
this.init()
// this.queryHndtypCodeTableList(this.trnName)
},
}
</script>
......
......@@ -28,7 +28,20 @@ export default {
...params,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
lidinr: this.$route.query.inr
// lidinr: this.$route.query.inr
brdgrp:{
rec:{
inr:"00000049",
},
},
lidgrp:{
rec:{
inr:"00000072",
}
},
liaccv:{
concur:"CNY"
}
});
if (!res.data) {
return
......
......@@ -27,7 +27,12 @@ export default {
const res = await Api.post('/service/brtdcr/init', {
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
brdinr: this.$route.query.inr,
// brdinr: this.$route.query.inr,
brdgrp:{
rec:{
inr: this.$route.query.inr
}
},
});
if (!res.data) {
return
......
......@@ -30,9 +30,9 @@ export default {
userId: window.sessionStorage.userId || 'ZL',
lidgrp:{
rec:{
inr:'00000342',
inr: this.$route.query.inr
}
}
},
});
// debugger
if (!res.data) {
......
......@@ -29,7 +29,7 @@ export default {
brdgrp:{
rec:{
// inr:this.$route.query.inr
inr:'00000028'
inr:'00000032'
}
}
});
......
......@@ -18,6 +18,7 @@ export default class Brtlat{
dbfadrblkcn:"", // Chinese address .brdgrp.shp.dbfadrblkcn
},
rec:{
inr:"",
ownref:"", // 单据参考号 .brdgrp.rec.ownref
nam:"", // Name of Bill Contract .brdgrp.rec.nam
rcvdat:"", // 到单日期 .brdgrp.rec.rcvdat
......
......@@ -193,10 +193,10 @@
<el-form-item
style="width: 100%"
label="单据类型"
prop="seadocflg"
prop="infcon.seadocflg"
>
<c-select
v-model="model.seadocflg"
v-model="model.infcon.seadocflg"
style="width: 100%"
placeholder="请选择单据类型"
:code="codes.docflg"
......@@ -252,10 +252,10 @@
<el-form-item
style="width: 100%"
label="货物类型"
prop="seagodcod"
prop="infcon.seagodcod"
>
<c-select
v-model="model.seagodcod"
v-model="model.infcon.seagodcod"
style="width: 100%"
placeholder="请选择货物类型"
:code="codes.godcod"
......
......@@ -357,7 +357,7 @@ export default {
handlerDataList: [],
btnRouteMap: [
{
label: '注销',
label: '信用证注销',
route: '/business-new/litcan'
},
{
......@@ -383,6 +383,10 @@ export default {
{
label:'到单',
route:'/business-new/litdck'
},
{
label:'减额修改接收',
route:'/business-new/litdla'
}
],
currentHandleRow: {}
......
......@@ -30,7 +30,7 @@ export default {
userId: window.sessionStorage.userId || 'ZL',
lidgrp:{
rec:{
inr: "00006833",
inr: "00006807",
}
}
});
......@@ -170,6 +170,7 @@ export default {
default:
return
}
}
},
onSeainf() {},
},
};
......@@ -16,11 +16,11 @@ export default {
{max: 40,message:'长度不能超过40'}
],
'swiadd.amedat':[
{type: 'date', required: false, message: '输入正确的日期'}
{type: 'string', required: false, message: '输入正确的日期'}
],
'swiadd.amenbr':[
{required: true, message: '必输项'},
{type: 'number', max: 999,message:'只能输入数字,且长度不能超过3'}
{type: 'string', max: 999,message:'只能输入数字,且长度不能超过3'}
],
'litamep.amenbr':[
{required: false, message: '必输项'},
......@@ -37,11 +37,11 @@ export default {
],
'oldlidgrp.rec.nomtop':[
{required: false, message: '必输项'},
{type: 'number',max: 99,message:'只能输入数字,长度不能超过2'}
{type: 'string',max: 99,message:'只能输入数字,长度不能超过2'}
],
'oldlidgrp.rec.nomton':[
{required: false, message: '必输项'},
{type: 'number', max: 99,message:'只能输入数字,长度不能超过2'}
{type: 'string', max: 99,message:'只能输入数字,长度不能超过2'}
],
'oldlidgrp.cbs.max.cur':[
{type: 'string', required: false, message: '必输项'},
......@@ -67,11 +67,11 @@ export default {
],
'swiadd.newnomtop':[
{required: false, message: '必输项'},
{type: 'number', max: 99,message:'只能输入数字,长度不能超过2'}
{type: 'string', max: 99,message:'只能输入数字,长度不能超过2'}
],
'swiadd.newnomton':[
{ required: false, message: '必输项'},
{type: 'number', max: 99,message:'只能输入数字,长度不能超过2'}
{type: 'string', max: 99,message:'只能输入数字,长度不能超过2'}
],
'litamep.maxcur':[
{type: 'string', required: false, message: '必输项'},
......@@ -82,16 +82,16 @@ export default {
{max: 18,message:'整数位不能超过15位'},
],
'oldlidgrp.rec.expdat':[
{type: 'date', required: false, message: '输入正确的日期'}
{type: 'string', required: false, message: '输入正确的日期'}
],
'oldlidgrp.rec.shpdat':[
{type: 'date', required: false, message: '输入正确的日期'}
{type: 'string', required: false, message: '输入正确的日期'}
],
'swiadd.newexpdat':[
{type: 'date', required: false, message: '输入正确的日期'}
{type: 'string', required: false, message: '输入正确的日期'}
],
'swiadd.newshpdat':[
{type: 'date', required: false, message: '输入正确的日期'}
{type: 'string', required: false, message: '输入正确的日期'}
],
'oldlidgrp.rec.prepers18':[
{ required: false, message: '必输项'},
......@@ -99,7 +99,7 @@ export default {
],
'swiadd.prepers18':[
{required: false, message: '必输项'},
{type: 'number', max: 999,message:'只能输入数字,长度不能超过3'}
{type: 'string', max: 999,message:'只能输入数字,长度不能超过3'}
],
'oldlidgrp.blk.preper':[
{type: 'string', required: true, message: '必输项'},
......@@ -189,11 +189,11 @@ export default {
],
'lidgrp.rec.nomtop':[
{required: false, message: '必输项'},
{type: 'number', max: 99,message:'只能输入数字,长度不能超过2'}
{type: 'string', max: 99,message:'只能输入数字,长度不能超过2'}
],
'lidgrp.rec.nomton':[
{ required: false, message: '必输项'},
{type: 'number', max: 99,message:'只能输入数字,长度不能超过2'}
{type: 'string', max: 99,message:'只能输入数字,长度不能超过2'}
],
'lidgrp.apl.adrelc':[
{type: 'string', required: true, message: '必输项'},
......@@ -221,10 +221,10 @@ export default {
{max: 3,message:'长度不能超过3'}
],
'lidgrp.rec.opndat':[
{type: 'date', required: true, message: '输入正确的日期'}
{type: 'string', required: true, message: '输入正确的日期'}
],
'lidgrp.rec.preadvdt':[
{type: 'date', required: false, message: '输入正确的日期'}
{type: 'string', required: false, message: '输入正确的日期'}
],
'lidgrp.adv.namelc':[
{type: 'string', required: true, message: '必输项'},
......@@ -239,14 +239,14 @@ export default {
{max: 35,message:'长度不能超过35'}
],
'lidgrp.rec.shpdat':[
{type: 'date', required: false, message: '输入正确的日期'}
{type: 'string', required: false, message: '输入正确的日期'}
],
'lidgrp.adv.adrelc':[
{type: 'string', required: true, message: '必输项'},
{max: 35,message:'长度不能超过35'}
],
'lidgrp.rec.expdat':[
{type: 'date', required: false, message: '输入正确的日期'}
{type: 'string', required: false, message: '输入正确的日期'}
],
'lidgrp.rec.expplc':[
{type: 'string', required: false, message: '必输项'},
......@@ -402,7 +402,7 @@ export default {
],
'lidgrp.rec.tenmaxday':[
{ required: false, message: '必输项'},
{type: 'number', max: 999,message:'只能输入数字,长度不能超过3'}
{type: 'string', max: 999,message:'只能输入数字,长度不能超过3'}
],
'lidgrp.rec.porloa':[
{type: 'string', required: false, message: '必输项'},
......@@ -641,7 +641,7 @@ export default {
{max: 30,message:'长度不能超过30'}
],
'bcbdat':[
{type: 'date', required: false, message: '输入正确的日期'}
{type: 'string', required: false, message: '输入正确的日期'}
],
'ameadvrmk':[
{type: 'string', required: false, message: '必输项'},
......@@ -660,7 +660,7 @@ export default {
// {max: 60,message:'长度不能超过60','trigger': 'blur'}
// ],
// 'mtabut.coninf.conexedat':[
// {type: 'date', required: false, message: '输入正确的日期'}
// {type: 'string', required: false, message: '输入正确的日期'}
// ],
// 'mtabut.coninf.usr.extkey':[
// {type: 'string', required: false, message: '必输项'},
......
......@@ -65,9 +65,9 @@ export default class Litame {
},
rec: {
expdat: '',
nomton: 0,
nomton: '',
shpdat: '',
nomtop: 0,
nomtop: '',
prepertxts18: '',
prepers18: ''
},
......@@ -143,7 +143,8 @@ export default class Litame {
regref: '',
porloa: '',
apprultxt: '',
branchInr:'00000047',
branchinr:'',
inr:''
},
adv: {
pts: new Pts().data,
......@@ -189,29 +190,6 @@ export default class Litame {
pts: new Pts().data,
}
},
liaall: {
limmod: {
ownref: '',
dggrd: '',
limpts: {
wrk: {
pts: new Pts().data,
},
oth: {
pts: new Pts().data,
},
pfcod1: '',
pfcod2: '',
nonrevflg1: '',
nonrevflg2: ''
},
comamt: '',
ccvamt: '',
limgrd: '',
lmegrd: '',
tygrd: ''
}
},
swiadd: {
trnchato: '',
newnomtop: '',
......
export default {
buildPtspta(ptsptaObj) {
buildPtspta (ptsptaObj) {
let pts = ptsptaObj.pts;
let ptspta = {
rol: pts.rol,
......@@ -13,149 +13,113 @@ export default {
dftfeecur: pts.dftfeecur,
dftactptainr: pts.dftactptainr,
glggrpflg: pts.glggrpflg,
adrblk: pts.adrblk,
adrblk: pts.adrblk
};
return ptspta;
},
buildCommonData(model, trnName) {
buildCommonData (model, trnName) {
let ptsptaList = [];
if (model.gidgrp.apl.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.gidgrp.apl));
if (model.lidgrp.apl.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.lidgrp.apl));
}
if (model.gidgrp.ben.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.gidgrp.ben));
if (model.lidgrp.adv.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.lidgrp.adv));
}
if (model.lidgrp.ben.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.lidgrp.ben));
}
let dataObj = {
rec: {
objtyp: 'LID',
objinr: model.gidgrp.rec.objinr,
ownref: model.gidgrp.rec.ownref,
segtyp: model.gidgrp.rec.segtyp,
fromflg: model.gidgrp.rec.fromflg,
othersno: model.gidgrp.rec.othersno,
sndto: model.gidgrp.rec.sndto,
giduil: model.gidgrp.rec.giduil,
purpos: model.gidgrp.rec.purpos,
revflg: model.gidgrp.rec.revflg,
cnfsta: model.gidgrp.rec.cnfsta,
ownref: model.lidgrp.rec.ownref,
opndat: model.lidgrp.rec.opndat,
expdat: model.lidgrp.rec.expdat,
branchInr: model.lidgrp.rec.branchInr,
hndtyp: model.lidgrp.rec.hndtyp,
gartyp: model.lidgrp.rec.gartyp,
fingua: model.lidgrp.rec.fingua,
segtyp: model.lidgrp.ghd.segtyp,
fromflg: model.lidgrp.rec.fromflg,
othersno: model.lidgrp.rec.othersno,
sndto: model.lidgrp.rec.sndto,
swiftflg: model.gitp.swiftflg,
liduil: model.lidgrp.rec.liduil,
purpos: model.lidgrp.rec.purpos,
revflg: model.lidgrp.rec.revflg,
cnfsta: model.lidgrp.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,
MAX: model.lidgrp.cbs.max,
OPN1: model.lidgrp.cbs.opn1,
MAC: model.lidgrp.cbs.mac,
MAC2: model.lidgrp.cbs.mac2,
OPC2: model.lidgrp.cbs.opc2,
CNF: model.lidgrp.cbs.cnf,
},
ptsList: ptsptaList,
transName: trnName,
userId: window.sessionStorage.userId
? window.sessionStorage.userId
: 'ZL',
userId: window.sessionStorage.userId ? window.sessionStorage.userId : 'ZL'
};
return dataObj;
return dataObj
},
buildSetfeg(model, trnName) {
buildSetfeg (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaall: model.liaall,
liaccv: model.liaccv,
doceot: model.trnmod.trndoc.doceot,
// doceot: model.trnmod.trndoc.doceot,
};
return params;
return params
},
buildSetglg(model, trnName) {
buildSetglg (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
setfeg: model.setmod.setfeg,
liaall: model.liaall,
liaccv: model.liaccv,
};
return params;
return params
},
buildGlentry(model, trnName) {
buildGlentry (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'LID',
segtyp: model.gidgrp.rec.segtyp,
fromflg: model.gidgrp.rec.fromflg,
othersno: model.gidgrp.rec.othersno,
sndto: model.gidgrp.rec.sndto,
giduil: model.gidgrp.rec.giduil,
purpos: model.gidgrp.rec.purpos,
revflg: model.gidgrp.rec.revflg,
cnfsta: model.gidgrp.rec.cnfsta,
},
liaccv: model.liaccv,
doceot: model.trnmod.trndoc.doceot,
transName: trnName,
liaallg: model.liaall.liaallg,
setfog: model.setmod.setfog,
setfeg: model.setmod.setfeg,
setglg: model.setmod.setglg,
};
return params;
return params
},
buildEngp(model, trnName) {
buildEngp (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
cbsMap: {
CNF: model.gidgrp.cbs.cnf,
},
liaccv: model.liaccv,
doceot: model.trnmod.trndoc.doceot,
transName: trnName,
liaallg: model.liaall.liaallg,
};
params.rec = {
...params.rec,
opndat: model.gidgrp.rec.opndat,
branchInr: model.gidgrp.rec.branchInr,
hndtyp: model.gidgrp.rec.hndtyp,
gartyp: model.gidgrp.rec.gartyp,
fingua: model.gidgrp.rec.fingua,
};
return params;
return params
},
buildDocpan(model, trnName) {
buildDocpan (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'LID',
fromflg: model.gidgrp.rec.fromflg,
othersno: model.gidgrp.rec.othersno,
sndto: model.gidgrp.rec.sndto,
giduil: model.gidgrp.rec.giduil,
purpos: model.gidgrp.rec.purpos,
cnfsta: model.gidgrp.rec.cnfsta,
revflg: model.gidgrp.rec.revflg,
},
liaccv: model.liaccv,
doceot: model.trnmod.trndoc.doceot,
transName: trnName,
};
return params;
return params
},
buildCcvpan(model, trnName) {
buildCcvpan (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
};
params.rec = {
...params.rec,
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,
liaccvg: model.liaccv.liaccvg,
oldamt: model.liaccv.oldamt,
chgamt: model.liaccv.chgamt,
concur: model.liaccv.concur,
};
return params;
return params
},
buildLimitbody (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'GID',
objinr: model.gidgrp.rec.objinr,
ownref: model.gidgrp.rec.ownref,
objtyp: 'LID',
objinr: model.lidgrp.rec.objinr,
ownref: model.lidgrp.rec.ownref,
},
};
return params
......@@ -164,9 +128,9 @@ export default {
let params = {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'GID',
objinr: model.gidgrp.rec.objinr,
ownref: model.gidgrp.rec.ownref,
objtyp: 'LID',
objinr: model.lidgrp.rec.objinr,
ownref: model.lidgrp.rec.ownref,
swiftflg: model.gitp.swiftflg,
},
};
......@@ -180,4 +144,4 @@ export default {
};
return params
}
}
\ No newline at end of file
}
\ No newline at end of file
......@@ -6,7 +6,10 @@ 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 {
mixins: [commonFunctions],
methods: {
......@@ -15,18 +18,22 @@ export default {
...engp,
...docpan,
...ccvpan,
...limitbody,
...doctre,
async init () {
const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName))
}
const res = await Api.post('/service/litcan/init', {
...params,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
gidInr: this.$route.query.inr,
// lidInr:'00006832',
lidgrp:{
rec:{
// inr:this.$route.query.inr
inr:'00006829'
inr:this.$route.query.inr
}
}
});
if (!res.data) {
return
......@@ -63,7 +70,7 @@ export default {
let engpRequest = buildFn.buildEngp(this.model, this.trnName);
this.processLiaall(engpRequest);
break;
case 'setpan':
case 'setmod':
let setfegRequest = buildFn.buildSetfeg(this.model, this.trnName);
// 此处利用回调是为了等setfeg的接口调用完成后才去获取setglg参数,由于setglg参数依赖于setfeg函数的返回值
this.processSetpan(setfegRequest, () => {
......@@ -79,22 +86,20 @@ export default {
this.processGlentry(glentryRequest);
break;
case 'limitbody':
let limitbodyRequest = buildFn.buildLimitbody(
this.model,
this.trnName
);
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;
}
},
// 点击获取按钮拉取当前key字段下的表单数据
queryFormData(key) {
// 点击获取按钮拉取当前key字段下的表单数据
queryFormData(key) {
console.log(key);
},
// 业务信息=》基本信息=》保函编号-----获取保函编号
......@@ -111,7 +116,7 @@ export default {
this.model.gidgrp.rec.ownref = res.data;
}
},
// 获取gitopn弹框表格数据
// 获取litcan弹框表格数据
async queryGridEtyPromptDialogData(type, ptytyp) {
let params = {
userId: window.sessionStorage.userId || 'ZL',
......@@ -125,7 +130,7 @@ export default {
this.root.promptData.type = type;
}
},
// 选中gitopn弹框表格的行数据
// 选中litcan弹框表格的行数据
async selectGridEtyPromptData(row) {
let params = {
...row,
......@@ -194,5 +199,5 @@ export default {
return
}
}
}
}
\ No newline at end of file
},
};
......@@ -3,10 +3,69 @@ import Pub from '~/components/business/commonModel/index.js';
export default class Litcan {
constructor() {
this.data = {
sndmsg: 'X',
litapll1blk: '',
litrmbl3blk: '',
litcanl1blk: '',
cbsMap:{
MAX:{
cur:''
}
},
gitp:{
swiftflg:'',
},
sndmsg: '',
lidgrp: {
ghd:{
segtyp:'',
},
rec: {
inr:'',
branchinr: '',
ownref: '', // 参考号 .lidgrp.rec.ownref
nam: '', // 名称 .lidgrp.rec.nam
avbby: '', // 兑付方式 .lidgrp.rec.avbby
redclsflg: '', // Red/Green Clause .lidgrp.rec.redclsflg
opndat: '', // 开立日期 .lidgrp.rec.opndat
shpdat: '', // Shipment Date .lidgrp.rec.shpdat
expdat: '', // 到期日 .lidgrp.rec.expdat
expplc: '', // 到期日 .lidgrp.rec.expplc
lcrtyp: '', // 信用证类型 .lidgrp.rec.lcrtyp
revflg: '', // Revolving Flag .lidgrp.rec.revflg
advnam: '',
},
cbs: {
nom1: {
cur: '', // 开证金额 .lidgrp.cbs.nom1.cur
amt: '', // 开证金额 .lidgrp.cbs.nom1.amt
},
opn1: {
cur: '', // 信用证余额 .lidgrp.cbs.opn1.cur
amt: '', // Balance .lidgrp.cbs.opn1.amt
},
max: {
cur: '', // 信用证余额 .lidgrp.cbs.opn1.cur
amt: '', // Balance .lidgrp.cbs.opn1.amt
},
},
apl: {
pts: {
ref:'',
nam:'',
}
},
ben: {
pts: {
ref:'',
nam:'',
}
},
adv: {
pts: {
ref:'',
nam:'',
}
},
avbnam: '', // 指定银行 .lidgrp.avbnam
},
litp0: {
aammod: {
addamtflg: '', // Add. Amount .litp0.aammod.addamtflg
......@@ -16,25 +75,7 @@ export default class Litcan {
strinf: '', // Narrative .litcanf.strinf
},
gcdgrp: {
prb: {
adrelc: '',
dbfadrblkcn: '',
namelc: '',
pts: new Pts().data,
},
rec: {
clmdat: '',
ownref: '',
payrol: '',
nam: '',
docprbrol: '',
},
oth: {
adrelc: '',
dbfadrblkcn: '',
namelc: '',
pts: new Pts().data,
},
cbs: {
opn1: {
cur: '',
......@@ -54,25 +95,13 @@ export default class Litcan {
adv: {
pts: new Pts().data,
},
apl: {
pts: new Pts().data,
},
},
gidgrp: {
rec: {
expdat: '',
liadat: '',
ownref: '',
gartyp: ''
},
ghd: {
wahnum: '',
remark: '',
bustyp: '',
segtyp: ''
},
cbs: {
opn1: {
cur: '',
amt: ''
}
rec:{
objinr:'',
},
ctr: {
pts: new Pts().data,
......@@ -98,6 +127,37 @@ export default class Litcan {
apl: {
pts: new Pts().data,
},
cbs: {
max: '',
}
},
liaall: {
con: {
pts: new Pts().data,
},
iss: {
pts: new Pts().data,
},
ben: {
pts: new Pts().data,
},
atb: {
pts: new Pts().data,
},
avc: {
pts: new Pts().data,
},
},
trnmod: {
ctr: {
pts: new Pts().data,
},
con: {
pts: new Pts().data,
},
iss: {
pts: new Pts().data,
},
},
byinst: '', // On Applicant instruction .byinst
pageId: '', // ctx的key
......
......@@ -28,7 +28,11 @@ export default {
...params,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
lidinr: this.$route.query.inr
lidgrp:{
rec:{
inr: this.$route.query.inr
}
},
});
if (!res.data) {
......
......@@ -99,6 +99,7 @@ export default class Litdck {
utlnbr: '',
opndat: '',
redclsflg: '',
inr: '',
},
cbs: {
opn1: {
......
......@@ -28,6 +28,11 @@ export default {
...params,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
lidgrp:{
rec:{
inr:this.$route.query.inr
}
}
});
if (!res.data) {
return
......
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