Commit d05747d7 by liaoxing

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 e1da436b 4afbf691
...@@ -165,6 +165,7 @@ export default { ...@@ -165,6 +165,7 @@ export default {
businessType: 'LC', businessType: 'LC',
tbl: 'LC', tbl: 'LC',
} }
} },
}, },
}; };
...@@ -56,9 +56,7 @@ export default { ...@@ -56,9 +56,7 @@ export default {
cur:model.brdgrp.cbs.opn1.cur, cur:model.brdgrp.cbs.opn1.cur,
ptytyp:model.brdgrp.prb.ptytyp, ptytyp:model.brdgrp.prb.ptytyp,
frepayflg:model.brdgrp.rec.frepayflg, frepayflg:model.brdgrp.rec.frepayflg,
payrol:model.brdgrp.rec.payrol,
dscbckamt:model.brdgrp.rec.dscbckamt, dscbckamt:model.brdgrp.rec.dscbckamt,
pclbckamt:model.brdgrp.rec.pclbckamt,
totdat:model.brdgrp.rec.totdat, totdat:model.brdgrp.rec.totdat,
// negate:model.brdgrp.rec.dscbckamt.negate, // negate:model.brdgrp.rec.dscbckamt.negate,
pclbckamt:model.brdgrp.rec.pclbckamt, pclbckamt:model.brdgrp.rec.pclbckamt,
......
...@@ -106,20 +106,20 @@ export default { ...@@ -106,20 +106,20 @@ export default {
queryFormData(key) { queryFormData(key) {
console.log(key); console.log(key);
}, },
// 业务信息=》基本信息=》保函编号-----获取保函编号 // 业务信息=》基本信息=》融资编号-----获取融资编号
async queryOwnref() { async getTrdgrpOwnRef() {
let params = { let params = {
ptainr: this.model.gidgrp.apl.pts.ptainr, trdgrp:{
businessType: 'LG', rec: this.model.trtcre.trdgrp.rec,
tbl: 'LG',
};
const loading = this.loading();
let res = await Api.post('/service/brtset/getOwnRef', params);
if (res.respCode == SUCCESS) {
loading.close();
this.model.gidgrp.rec.ownref = res.data;
} }
}, };
const loading = this.loading();
let res = await Api.post('/service/brtset/getTrdgrpOwnRef', params);
if (res.respCode == SUCCESS) {
loading.close();
this.model.trtcre.trdgrp.rec.ownref = res.data;
}
},
// 获取brtset弹框表格数据 // 获取brtset弹框表格数据
async queryGridEtyPromptDialogData(type, ptytyp) { async queryGridEtyPromptDialogData(type, ptytyp) {
let params = { let params = {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -132,8 +132,9 @@ export default class Bctset { ...@@ -132,8 +132,9 @@ export default class Bctset {
trtcre: { trtcre: {
trtmod: { trtmod: {
finmod: { finmod: {
act1:'',
accbch: '', accbch: '',
intprd: '', intprd: '6',
ovdintrat: '', ovdintrat: '',
fincod: '', fincod: '',
fltval: '', fltval: '',
...@@ -141,7 +142,7 @@ export default class Bctset { ...@@ -141,7 +142,7 @@ export default class Bctset {
spjgdc: '', spjgdc: '',
shpdch: '', shpdch: '',
sxlexi: '', sxlexi: '',
jzllgz: '', jzllgz: '1',
chapdm: '', chapdm: '',
libor: '', libor: '',
sheplb: '', sheplb: '',
...@@ -169,7 +170,7 @@ export default class Bctset { ...@@ -169,7 +170,7 @@ export default class Bctset {
djhtno: '', djhtno: '',
chapmc: '', chapmc: '',
}, },
intamt: '', intamt: '0',
flttyp: '', flttyp: '',
act3: '', act3: '',
ratchgdat: '', ratchgdat: '',
...@@ -177,10 +178,9 @@ export default class Bctset { ...@@ -177,10 +178,9 @@ export default class Bctset {
ovdinttyp: '', ovdinttyp: '',
graday: '', graday: '',
intact: '', intact: '',
act1: '',
dinjdm: '', dinjdm: '',
wjdkfl: '', wjdkfl: '',
ratchgtyp: '', ratchgtyp: '1',
acttyp: '', acttyp: '',
intdat: '', intdat: '',
ratchgprd: '', ratchgprd: '',
...@@ -192,25 +192,30 @@ export default class Bctset { ...@@ -192,25 +192,30 @@ export default class Bctset {
trntyp: '', trntyp: '',
trdgrp: { trdgrp: {
rec: { rec: {
stttendat: '', fincod:'',
ovdflg: '',
ownusr: window.sessionStorage.userId ? window.sessionStorage.userId : 'ZL',
stttendat: new Date(),
recaccount: '', recaccount: '',
pctfin: '', pctfin: '100',
recdistrictcode: '', recdistrictcode: '',
ownref: '', ownref: '',
intrat: '', intrat: '0.000000',
pntnam: '', pntnam: '',
invtyp: '', invtyp: '1',
fintyp: '', fintyp: '',
tenday: '', tenday: '',
guaflg: '', guaflg: '',
stagod: '', stagod: '001',
lprtyp: '', lprtyp: '',
issdat: '', issdat: new Date(),
matdat: '', matdat: '',
nam: '', nam: '',
actrat: '', actrat: '0.000000',
pntref: '', pntref: '',
reccountrycode: '', reccountrycode: '',
opndat: new Date(),
branchinr: ''
}, },
cbs: { cbs: {
max: { max: {
...@@ -227,7 +232,7 @@ export default class Bctset { ...@@ -227,7 +232,7 @@ export default class Bctset {
trtp: { trtp: {
act: '', act: '',
usr: { usr: {
extkey: '', extkey: window.sessionStorage.userId ? window.sessionStorage.userId : 'ZL',
}, },
recname: '', recname: '',
bcdget: { bcdget: {
...@@ -340,11 +345,6 @@ export default class Bctset { ...@@ -340,11 +345,6 @@ export default class Bctset {
basflg: '', basflg: '',
}, },
nar754: '', nar754: '',
trdgrp: {
rec: {
},
},
paypsb: '', paypsb: '',
dftcre: { dftcre: {
dftp: { dftp: {
...@@ -381,7 +381,7 @@ export default class Bctset { ...@@ -381,7 +381,7 @@ export default class Bctset {
flttyp: '', flttyp: '',
tenday: '', tenday: '',
rescur: '', rescur: '',
guaflg: '', guaflg: '0',
dfuflg: '', dfuflg: '',
trntyp: '', trntyp: '',
bankno: '', bankno: '',
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<c-fullbox> <c-fullbox>
<c-input <c-input
disabled disabled
v-model="model.trtcre.trdgrp.rec.pntref" v-model="trtcretrdgrprecpntref"
maxlength="16" maxlength="16"
style="width: 98%" style="width: 98%"
placeholder="请输入单据编号" placeholder="请输入单据编号"
...@@ -61,12 +61,7 @@ ...@@ -61,12 +61,7 @@
<c-button <c-button
size="small" size="small"
type="primary" type="primary"
:disabled=" @click="getTrdgrpOwnRef"
model.trtcre.trdgrp.rec.fintyp == '' ||
model.trtcre.trdgrp.fip.pts.adrblk == '' ||
// model.trdgrp.rec.branchinr == ''||
model.trtcre.trdgrp.rec.ownref != ''
"
> >
获取 获取
</c-button> </c-button>
...@@ -130,16 +125,16 @@ ...@@ -130,16 +125,16 @@
<el-form-item label="融资品种" prop="trtcre.trdgrp.rec.fintyp"> <el-form-item label="融资品种" prop="trtcre.trdgrp.rec.fintyp">
<c-select <c-select
disabled disabled
v-model="model.trtcre.trdgrp.rec.fintyp" v-model="fintyp"
style="width: 100%" style="width: 100%"
placeholder="请选择融资品种" placeholder="请选择融资品种"
:disable="true" :disable="true"
> >
<el-option <el-option
v-for="item in codes.fintyp1" v-for="item in codes.fintyp1"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
> >
</el-option> </el-option>
</c-select> </c-select>
...@@ -153,13 +148,15 @@ ...@@ -153,13 +148,15 @@
style="width: 100%" style="width: 100%"
placeholder="请选择货押标识" placeholder="请选择货押标识"
> >
<el-option <el-option
v-for="item in codes.guaflg" v-for="item in codes.guaflg"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
> >
</el-option> </el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -185,7 +182,7 @@ ...@@ -185,7 +182,7 @@
<c-col :span="12"> <c-col :span="12">
<el-form-item label="原始币种" prop="trtcre.oricur"> <el-form-item label="原始币种" prop="trtcre.oricur">
<c-select <c-select
v-model="model.trtcre.oricur" v-model="oricur"
style="width: 100%" style="width: 100%"
:disabled="true" :disabled="true"
placeholder="请选择币种" placeholder="请选择币种"
...@@ -207,7 +204,7 @@ ...@@ -207,7 +204,7 @@
prop="trtcre.oriamt" prop="trtcre.oriamt"
> >
<c-input <c-input
v-model="model.trtcre.oriamt" v-model="oriamt"
style="width: 100%" style="width: 100%"
placeholder="请输入融资金额" placeholder="请输入融资金额"
></c-input> ></c-input>
...@@ -241,7 +238,7 @@ ...@@ -241,7 +238,7 @@
<c-col :span="24"> <c-col :span="24">
<c-col :span="13"> <c-col :span="13">
<el-form-item label="融资金额" prop="trtcre.trdgrp.cbs.max.cur"> <el-form-item label="融资金额" prop="trtcre.trdgrp.cbs.max.cur">
<c-select v-model="model.trtcre.trdgrp.cbs.max.cur"> <c-select v-model="maxcur">
<el-option <el-option
v-for="item in codes.curtxt2" v-for="item in codes.curtxt2"
:key="item.value" :key="item.value"
...@@ -259,7 +256,7 @@ ...@@ -259,7 +256,7 @@
label-width="5px" label-width="5px"
> >
<c-input <c-input
v-model="model.trtcre.trdgrp.cbs.max.amt" v-model="maxamt"
:disabled="true" :disabled="true"
></c-input> ></c-input>
</el-form-item> </el-form-item>
...@@ -395,14 +392,14 @@ ...@@ -395,14 +392,14 @@
style="width: 100%" style="width: 100%"
placeholder="请选择第一还款账号" placeholder="请选择第一还款账号"
> >
<el-option <!-- <el-option-->
v-for="(item, idx) in codes.codeSet[ <!-- v-for="(item, idx) in codes.codeSet[-->
'trtcre.trtmod.finmod.act1' <!-- 'trtcre.trtmod.finmod.act1'-->
]" <!-- ]"-->
:key="idx" <!-- :key="idx"-->
:label="item.split('\t')[1]" <!-- :label="item.split('\t')[1]"-->
:value="item.split('\t')[0]" <!-- :value="item.split('\t')[0]"-->
></el-option> <!-- ></el-option>-->
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -842,6 +839,34 @@ export default { ...@@ -842,6 +839,34 @@ export default {
watch: {}, watch: {},
methods: {}, methods: {},
created: function () {}, created: function () {},
computed:{
trtcretrdgrprecpntref(){
this.model.trtcre.trtmod.finmod.fincod = this.model.brdgrp.rec.ownref
this.model.trtcre.trdgrp.rec.fincod = this.model.brdgrp.rec.ownref
this.model.trtcre.trdgrp.rec.pntref = this.model.brdgrp.rec.ownref
return this.model.trtcre.trdgrp.rec.pntref
},
fintyp(){
this.model.trtcre.trdgrp.rec.fintyp = 'BRF'
return this.model.trtcre.trdgrp.rec.fintyp
},
oricur(){
this.model.trtcre.oricur = this.model.brdgrp.cbs.max.cur
return this.model.trtcre.oricur
},
oriamt(){
this.model.trtcre.oriamt = this.model.brdgrp.cbs.max.amt * this.model.trtcre.trdgrp.rec.pctfin /100
return this.model.trtcre.oriamt
},
maxcur(){
this.model.trtcre.trdgrp.cbs.max.cur = this.model.trtcre.oricur
return this.model.trtcre.trdgrp.cbs.max.cur
},
maxamt(){
this.model.trtcre.trdgrp.cbs.max.amt = this.model.trtcre.oriamt
return this.model.trtcre.trdgrp.cbs.max.amt
},
}
}; };
</script> </script>
......
...@@ -13,8 +13,8 @@ export default class Inftrd { ...@@ -13,8 +13,8 @@ export default class Inftrd {
}, },
infcon: { infcon: {
chksubcon: '', chksubcon: '',
opndatfrom: '', opndatfrom: new Date(),
opndatto: '', opndatto: new Date(),
seaownref: '', seaownref: '',
seaamtfr: '', seaamtfr: '',
seasta: '', seasta: '',
......
...@@ -307,17 +307,17 @@ ...@@ -307,17 +307,17 @@
</template> </template>
</c-list-search> </c-list-search>
<c-col :span="24" style="margin-top: 10px"> <!-- <c-col :span="24" style="margin-top: 10px">-->
<c-button <!-- <c-button-->
class="medium_bcs" <!-- class="medium_bcs"-->
size="medium" <!-- size="medium"-->
type="primary" <!-- type="primary"-->
style="margin-left: 0px" <!-- style="margin-left: 0px"-->
@click="toTrtopn" <!-- @click="toTrtopn"-->
>进口融资开立 <!-- >进口融资开立-->
</c-button <!-- </c-button-->
> <!-- >-->
</c-col> <!-- </c-col>-->
<div style="height: 90%"> <div style="height: 90%">
<c-col :span="24"> <c-col :span="24">
<el-table <el-table
......
...@@ -197,6 +197,10 @@ export default { ...@@ -197,6 +197,10 @@ export default {
if (res.respCode == SUCCESS) { if (res.respCode == SUCCESS) {
this.model.lidgrp.avb.pts.extkey=res.data.avbwth.pts.extkey; this.model.lidgrp.avb.pts.extkey=res.data.avbwth.pts.extkey;
this.model.lidgrp.avb.pts.adrblk=res.data.avbwth.pts.adrblk; this.model.lidgrp.avb.pts.adrblk=res.data.avbwth.pts.adrblk;
this.model.lidgrp.avb.pts.nam=res.data.avbwth.pts.nam;
this.model.lidgrp.avb.pts.ptainr =res.data.avbwth.pts.ptainr;
this.model.lidgrp.avb.pts.ptyinr=res.data.avbwth.pts.ptyinr;
this.model.lidgrp.avb.pts.rol="AVB";
} }
}, },
}, },
......
...@@ -442,7 +442,7 @@ export default { ...@@ -442,7 +442,7 @@ export default {
{ max: 35, message: '长度不能超过35' }, { max: 35, message: '长度不能超过35' },
], ],
'lidgrp.blk.mixdet': [ 'lidgrp.blk.mixdet': [
{ type: 'string', required: false, message: '必输项' }, { type: 'string', message: '必输项' },
{ max: 130, message: '长度不能超过130' }, { max: 130, message: '长度不能超过130' },
], ],
'lidgrp.drw.adrelc': [ 'lidgrp.drw.adrelc': [
...@@ -625,7 +625,7 @@ export default { ...@@ -625,7 +625,7 @@ export default {
], ],
label5: [{ required: true, message: '必输项' }], label5: [{ required: true, message: '必输项' }],
"lidgrp.rec.guaflg":[{ required: true, message: '必输项' }],
'lidgrp.blk.insbnk': [ 'lidgrp.blk.insbnk': [
{ type: 'string', required: false, message: '必输项' }, { type: 'string', required: false, message: '必输项' },
{ max: 12000, message: '长度不能超过12000' }, { max: 12000, message: '长度不能超过12000' },
...@@ -751,7 +751,7 @@ export default { ...@@ -751,7 +751,7 @@ export default {
], ],
bcbtyp7: [ bcbtyp7: [
{ type: 'string', required: false, message: '必输项' }, { type: 'string', required: true, message: '必输项' },
{ max: 30, message: '长度不能超过30' }, { max: 30, message: '长度不能超过30' },
], ],
bcbdat: [{ type: 'string', required: false, message: '输入正确的日期' }], bcbdat: [{ type: 'string', required: false, message: '输入正确的日期' }],
...@@ -1018,7 +1018,7 @@ export default { ...@@ -1018,7 +1018,7 @@ export default {
{ max: 8, message: '长度不能超过8' }, { max: 8, message: '长度不能超过8' },
], ],
'lidgrp.cbs.nom1.cur': [ 'lidgrp.cbs.nom1.cur': [
{ type: 'string', required: true }, { type: 'string', required: true , message: '必输项' },
{ max: 8, message: '长度不能超过8' }, { max: 8, message: '长度不能超过8' },
], ],
}; };
......
...@@ -91,7 +91,14 @@ ...@@ -91,7 +91,14 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="议付/延期付款指示" prop="lidgrp.blk.defdet"> <el-form-item
label="议付/延期付款指示"
prop="lidgrp.blk.defdet"
:rules=" [
{ type: 'string', required: flag9, message: '必输项' },
{ max: 140, message: '长度不能超过140' },
]"
>
<c-input <c-input
type="textarea" type="textarea"
v-model="model.lidgrp.blk.defdet" v-model="model.lidgrp.blk.defdet"
...@@ -292,7 +299,13 @@ ...@@ -292,7 +299,13 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="混合付款指示" prop="lidgrp.blk.mixdet"> <el-form-item
label="混合付款指示"
prop="lidgrp.blk.mixdet"
:rules="[
{ max: 130, message: '长度不能超过130' },
{ required:!flag3, message:'必输项'}
]">
<c-input <c-input
type="textarea" type="textarea"
v-model="model.lidgrp.blk.mixdet" v-model="model.lidgrp.blk.mixdet"
...@@ -309,12 +322,18 @@ ...@@ -309,12 +322,18 @@
<el-form-item <el-form-item
label="远期汇票最大期限(天)" label="远期汇票最大期限(天)"
prop="lidgrp.rec.tenmaxday" prop="lidgrp.rec.tenmaxday"
:required="flag8" :rules="[
{ required:flag8,pattern:/^((?!^-[1-9]\d*|0$).)*$/, message:'必输项'},
{ type: 'number', message: '请输入数字' },
{ type: 'number', max: 999, message: '不能超过999' },
{ pattern: /(^-?[1-9][0-9]{0,2}$)|0/, message: '-999至999之间' },
]"
> >
<c-input <c-input
:disabled="!!(this.model.lidgrp.rec.avbby == 'P')" :disabled="!!(this.model.lidgrp.rec.avbby == 'P')"
v-model.number="model.lidgrp.rec.tenmaxday" v-model.number="model.lidgrp.rec.tenmaxday"
placeholder="请输入天数" placeholder="请输入天数"
maxlength="3"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -341,6 +360,7 @@ export default { ...@@ -341,6 +360,7 @@ export default {
flag6: false, flag6: false,
flag7: false, flag7: false,
flag8: true, flag8: true,
flag9: false,
}; };
}, },
methods: { methods: {
...@@ -388,6 +408,7 @@ export default { ...@@ -388,6 +408,7 @@ export default {
this.flag2 = true; this.flag2 = true;
this.flag3 = true; this.flag3 = true;
this.flag7 = false; this.flag7 = false;
this.flag9 = true;
this.model.lidgrp.blk.defdet="days after B/L date" this.model.lidgrp.blk.defdet="days after B/L date"
} }
if (val == "N") { if (val == "N") {
...@@ -395,6 +416,8 @@ export default { ...@@ -395,6 +416,8 @@ export default {
this.flag2 = false; this.flag2 = false;
this.flag3 = true; this.flag3 = true;
this.flag7 = true; this.flag7 = true;
this.flag8 = false;
this.flag9 = false;
this.model.lidgrp.blk.defdet="days after B/L date" this.model.lidgrp.blk.defdet="days after B/L date"
} }
if (val == "P") { if (val == "P") {
...@@ -403,6 +426,7 @@ export default { ...@@ -403,6 +426,7 @@ export default {
this.flag3 = true; this.flag3 = true;
this.flag7 = false; this.flag7 = false;
this.flag8 = false; this.flag8 = false;
this.flag9 = false;
this.model.lidgrp.rec.tenmaxday == 0 this.model.lidgrp.rec.tenmaxday == 0
this.model.lidgrp.blk.defdet="" this.model.lidgrp.blk.defdet=""
} }
...@@ -411,6 +435,7 @@ export default { ...@@ -411,6 +435,7 @@ export default {
this.flag2 = true; this.flag2 = true;
this.flag3 = false; this.flag3 = false;
this.flag7 = false; this.flag7 = false;
this.flag9 = false;
this.model.lidgrp.blk.defdet="" this.model.lidgrp.blk.defdet=""
} }
if (val == "A") { if (val == "A") {
...@@ -418,6 +443,7 @@ export default { ...@@ -418,6 +443,7 @@ export default {
this.flag2 = false; this.flag2 = false;
this.flag3 = true; this.flag3 = true;
this.flag7 = true; this.flag7 = true;
this.flag9 = false;
this.model.lidgrp.blk.defdet="" this.model.lidgrp.blk.defdet=""
} }
}, },
......
...@@ -286,7 +286,14 @@ ...@@ -286,7 +286,14 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="其他适用规则" prop="lidgrp.rec.apprultxt"> <el-form-item
label="其他适用规则"
prop="lidgrp.rec.apprultxt"
:rules="[
{ required:!flag, message:'必输项'},
{ max: 35, message: '长度不能超过35' },
]"
>
<c-input <c-input
v-model="model.lidgrp.rec.apprultxt" v-model="model.lidgrp.rec.apprultxt"
maxlength="35" maxlength="35"
...@@ -660,7 +667,27 @@ export default { ...@@ -660,7 +667,27 @@ export default {
} }
} }
}, },
"model.litp.aamp.aammod.addamtflg":{
immediate: true,
deep: true,
handler(val, oldVal) {
if (val == "X") {
this.model.lidgrp.cbs.max2.cur = this.model.lidgrp.cbs.nom1.cur;
this.model.lidgrp.cbs.opn2.cur = this.model.lidgrp.cbs.nom1.cur;
} else {
this.model.lidgrp.cbs.max2.cur = "";
this.model.lidgrp.cbs.opn2.cur = "";
}
},
},
"model.lidgrp.cbs.max2.amt":{
immediate: true,
deep: true,
handler(val, oldVal) {
this.model.lidgrp.cbs.opn2.amt = val;
this.model.lidgrp.blk.addamtcov = `${this.model.lidgrp.cbs.opn2.cur} ${val} `
},
},
}, },
computed: { computed: {
......
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