Commit a40695f9 by huxi

letopn

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