Commit 135c155d by WF1020

公共组件暂存修改

parent 51d8284b
...@@ -8,10 +8,10 @@ export default { ...@@ -8,10 +8,10 @@ export default {
this.handleCheck(true).then(async () => { this.handleCheck(true).then(async () => {
let params = { let params = {
...this.model, ...this.model,
gidgrp: { // gidgrp: {
...this.model.gidgrp, // ...this.model.gidgrp,
...this.model.gitp // ...this.model.gitp
}, // },
transName: this.trnName, transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL', userId: window.sessionStorage.userId || 'ZL',
} }
...@@ -153,30 +153,11 @@ export default { ...@@ -153,30 +153,11 @@ export default {
async handleStash() { async handleStash() {
const loading = this.loading('正在暂存数据'); const loading = this.loading('正在暂存数据');
let params = { let params = {
transName: this.trnName.toUpperCase(), ...this.model,
userId: window.sessionStorage.userId || 'ZL', transName: this.trnName,
liaccvg: this.model.liaccv.liaccvg, userId: window.sessionStorage.userId || 'ZL',
liaallg: this.model.liaall.liaallg,
setfog: this.model.setmod.setfog,
setfeg: this.model.setmod.setfeg,
setglg: this.model.setmod.setglg,
doceot: this.model.docpan.doceot,
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)) || {}, spt: JSON.parse(localStorage.getItem('row_' + this.trnName)) || {},
}
if( this.model.hasOwnProperty('brdgrp')){
this.$set(params,'brdgrp',this.model.brdgrp)
}
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