Commit da32dea3 by huxi

litrog

parent c7c87527
......@@ -23,17 +23,25 @@ export default {
async init () {
const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)),
lidgrp:{
rec:{
inr:this.$route.query.inr
trnmod:{
trn:JSON.parse(localStorage.getItem('review_'+this.trnName))
}
}
if ( typeof(this.$route.query.inr) == 'string' ){
params.spt = null
params.trnmod.trn =null
}
const res = await Api.post('/service/litrog/init', {
...params,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
lidgrp:{
rec:{
inr:this.$route.query.inr
}
}
});
// loading.close();
if (!res.data) {
return
}
......
......@@ -32,7 +32,7 @@ export default class Litrog {
expdat: '',
tradat: '',
trpdoctyp: '',
reltyp: '',
reltyp: 'SG',
tramod: '',
nam: '',
docprbrol: '',
......
......@@ -433,6 +433,18 @@ export default {
data() {
return {};
},
watch:{
"model.brdgrp":{
immediate: true,
deep: true,
handler(val,oldval){
const res = this.model.brdgrp
if(res.cbs.max.cur !== "" || res.cbs.max.amt !== "" || res.apl.pts.nam !=="" ){
this.model.brdgrp.rec.nam = (res.cbs.max.cur.concat(" ").concat(res.cbs.max.amt).concat(" ").concat(res.apl.pts.nam)).substring(0,40);
}
}
}
},
methods: {},
created: function () {},
};
......
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