Commit da32dea3 by huxi

litrog

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