Commit 62fb3d89 by xionglin

暂存参数修改

parent 2b1b9138
...@@ -22,8 +22,11 @@ export default { ...@@ -22,8 +22,11 @@ export default {
...limitbody, ...limitbody,
...doctre, ...doctre,
async init () { async init () {
localStorage.removeItem('row_'+ this.trnName) const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName))
}
const res = await Api.post('/service/brtlat/init', { const res = await Api.post('/service/brtlat/init', {
...params,
transName: this.trnName, transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL', userId: window.sessionStorage.userId || 'ZL',
brdgrp:{ brdgrp:{
......
...@@ -4,12 +4,6 @@ export default class Brtlat{ ...@@ -4,12 +4,6 @@ export default class Brtlat{
constructor () { constructor () {
this.data = { this.data = {
brtapll1blk:"", // XMLPanel brtapll1的内置block .brtapll1blk brtapll1blk:"", // XMLPanel brtapll1的内置block .brtapll1blk
gidgrp:{
rec:{
branchinr:""
}
},
gitp:{},
brdgrp:{ brdgrp:{
shp:{ shp:{
pts:new Pts().data, pts:new Pts().data,
......
...@@ -21,8 +21,14 @@ export default { ...@@ -21,8 +21,14 @@ export default {
...limitbody, ...limitbody,
...doctre, ...doctre,
async init () { async init () {
localStorage.removeItem('row_'+ this.trnName) const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName))
}
if( this.$route.query.inr !='') {
localStorage.removeItem('row_'+this.trnName)
}
const res = await Api.post('/service/brtsnd/init', { const res = await Api.post('/service/brtsnd/init', {
...params,
transName: this.trnName, transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL', userId: window.sessionStorage.userId || 'ZL',
brdgrp:{ brdgrp:{
......
...@@ -21,6 +21,7 @@ export default { ...@@ -21,6 +21,7 @@ export default {
...limitbody, ...limitbody,
...doctre, ...doctre,
async init () { async init () {
const params = { const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)) spt: JSON.parse(localStorage.getItem('row_' + this.trnName))
} }
......
...@@ -162,10 +162,21 @@ export default { ...@@ -162,10 +162,21 @@ export default {
setglg: this.model.setmod.setglg, setglg: this.model.setmod.setglg,
doceot: this.model.docpan.doceot, doceot: this.model.docpan.doceot,
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)) || {}, spt: JSON.parse(localStorage.getItem('row_' + this.trnName)) || {},
gidgrp: this.model.gidgrp, }
gitp: this.model.gitp, if( this.model.hasOwnProperty('brdgrp')){
lidgrp: this.model.lidgrp, this.$set(params,'brdgrp',this.model.brdgrp)
// branchinr:this.model.gidgrp.rec.branchinr, }
if( this.model.hasOwnProperty('gidgrp')){
this.$set(params,'gidgrp',this.model.gidgrp)
}
if( this.model.hasOwnProperty('gitp')){
this.$set(params,'gitp',this.model.gitp)
}
if( this.model.hasOwnProperty('lidgrp')){
this.$set(params,'lidgrp',this.model.lidgrp)
}
if( this.model.hasOwnProperty('litp')){
this.$set(params,'litp',this.model.litp)
} }
const res = await Api.post(`/service/${this.trnName}/txnHold`, params); const res = await Api.post(`/service/${this.trnName}/txnHold`, params);
if (res.respCode === SUCCESS) { if (res.respCode === SUCCESS) {
......
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