Commit a40695f9 by huxi

letopn

parent 6c715799
......@@ -146,32 +146,34 @@ export default {
this.model.ledgrp.rec.ownref = res.data;
}
},
// 初始化开立类型码表下拉列表
async queryHndtypCodeTableList(trnName) {
//指定银行
async avbwthFlg() {
let ptsList = []
ptsList.push(this.model.ledgrp.adv)
ptsList.push(this.model.ledgrp.a2b)
ptsList.push(this.model.ledgrp.iss)
ptsList.push(this.model.ledgrp.own)
let params = {
letp: {
swiftflg: this.model.letp.swiftflg,
},
ledgrp: {
rec: {
purpos: this.model.ledgrp.rec.purpos,
},
},
transName: trnName.toUpperCase(),
avbwth: this.model.ledgrp.rec.avbwth,
ptsList
};
// let res = await Api.post('/service/litopn/initHndtyp', params);
// if (res.respCode == SUCCESS) {
// this.$set(this.codes, 'voHndtyp', res.data);
// }
},
// 是否SWIFT格式修改--联动保函开立类型
handleChangeSwiftflg() {
this.queryHndtypCodeTableList(this.root.trnName);
},
// 支出目的修改--联动保函开立类型
handleChangePurpos() {
this.queryHndtypCodeTableList(this.root.trnName);
let res = await Api.post('/service/letopn/avbwthflg', params);
if (res.respCode == SUCCESS) {
this.model.ledgrp.avb.pts.extkey=res.data.avbwth.pts.extkey;
this.model.ledgrp.avb.pts.adrblk=res.data.avbwth.pts.adrblk;
}
},
async cbsmax() {
let params = {
nom1cur: this.model.ledgrp.cbs.nom1.cur,
nom1amt: this.model.ledgrp.cbs.nom1.amt,
nomtop: this.model.ledgrp.rec.nomtop
};
let res = await Api.post('/service/letopn/cbsmax', params);
if (res.respCode == SUCCESS) {
this.model.ledgrp.cbs.max.cur = res.data.maxcur;
this.model.ledgrp.cbs.max.amt = res.data.maxamt;
}
}
},
};
......@@ -119,6 +119,9 @@ export default class Letopn {
con: {
pts: new Pts().data,
},
own: {
pts: new Pts().data,
},
},
letp: {
usr: {
......
......@@ -9,6 +9,7 @@
style="width: 100%"
placeholder="请选择指定银行"
:code="codes.avbwth"
@change="avbwthFlg"
>
</c-select>
</el-form-item>
......
......@@ -105,7 +105,7 @@
v-model="model.ledgrp.cbs.nom1.amt"
style="text-align: left; width: 100%"
placeholder="请输入信用证金额"
@keyup.enter.native="$event.target.blur()"
@change="cbsmax"
></c-input-currency>
</el-form-item>
</c-col>
......@@ -127,7 +127,7 @@
maxlength="2"
style="width: 100%"
placeholder="0"
@keyup.enter.native="$event.target.blur()"
@change="cbsmax"
></c-input>
</c-form-item>
......@@ -451,8 +451,6 @@ export default {
handler(val,oldval){
const res = this.model.ledgrp
if(res.cbs.nom1.cur !== "" || res.cbs.nom1.amt !== "" || res.apl.pts.adrblk !== "" || rec.stacty !== "" ){
this.model.ledgrp.cbs.max.cur=this.model.ledgrp.cbs.nom1.cur;
this.model.ledgrp.cbs.max.amt=this.model.ledgrp.cbs.nom1.amt;
this.model.ledgrp.rec.nam = (res.cbs.nom1.cur.concat(" ").concat(res.cbs.nom1.amt).concat(" ").concat(res.rec.stacty).concat(".").concat(res.apl.pts.adrblk)).substring(0,40);
}
}
......
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