Commit 0c1177e0 by huxi

letopn

parent 64ef8d45
...@@ -129,8 +129,8 @@ export default { ...@@ -129,8 +129,8 @@ export default {
async onLitpButgetref() { async onLitpButgetref() {
let params = { let params = {
ptainr: this.model.ledgrp.apl.pts.ptainr, ptainr: this.model.ledgrp.apl.pts.ptainr,
businessType: 'LC', businessType: 'AD',
tbl: 'LC', tbl: 'AD',
}; };
const loading = this.loading(); const loading = this.loading();
let res = await Api.post('/service/letopn/getOwnRef', params); let res = await Api.post('/service/letopn/getOwnRef', params);
......
...@@ -445,6 +445,18 @@ export default { ...@@ -445,6 +445,18 @@ export default {
return {}; return {};
}, },
watch:{ watch:{
"model.ledgrp":{
immediate: true,
deep: true,
handler(val,oldval){
const res = this.model.ledgrp
if(res.cbs.nom1.cur !== "" || res.cbs.nom1.amt !== "" || res.apl.pts.adrblk !== ""){
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.apl.pts.adrblk.substring(0,15)}${res.cbs.nom1.cur}${res.cbs.nom1.amt}`
}
}
},
"model.ledgrp.rec.nomtop":{ "model.ledgrp.rec.nomtop":{
immediate:true, immediate:true,
handler(val,old) { handler(val,old) {
......
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