Commit f1ed7f9b by 闫泽浩

letdrw letrsv代码更新

parent acc08ee4
......@@ -436,12 +436,43 @@ export default {
data() {
return {}
},
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 !== "" || res.rec.stacty !== "" ){
this.model.ledgrp.rec.nam = (res.cbs.nom1.cur.concat(" ").concat(res.cbs.nom1.amt).concat(" ").concat(res.rec.stacty).concat(".").concat(res.ben.pts.nam)).substring(0,40);
}
}
},
"model.ledgrp.iss":{
immediate: true,
deep: true,
handler(val,oldval){
if(this.model.ledgrp.iss.pts !==""){
this.getstacty()
}
}
}
},
methods: {
apprulChange(v) {
if (v !== 'OTHR') {
this.model.ledgrp.rec.apprultxt = ''
}
},
async getstacty() {
let params = {
ptainr: this.model.ledgrp.iss.pts.ptainr
}
let res = await Api.post('/service/letopn/stacty', params);
if (res.respCode == SUCCESS) {
this.model.ledgrp.rec.stacty = res.data;
}
}
},
created: function () {},
computed:{
......
......@@ -9,11 +9,11 @@ export default class Letrsv {
cbs: {
max: {
cur: '',
amt: ''
amt: '0.00'
},
max2: {
cur: '',
amt: ''
amt: '0.00'
}
}
},
......
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