Commit 135c155d by WF1020

公共组件暂存修改

parent 51d8284b
......@@ -8,10 +8,10 @@ export default {
this.handleCheck(true).then(async () => {
let params = {
...this.model,
gidgrp: {
...this.model.gidgrp,
...this.model.gitp
},
// gidgrp: {
// ...this.model.gidgrp,
// ...this.model.gitp
// },
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
}
......@@ -153,30 +153,11 @@ export default {
async handleStash() {
const loading = this.loading('正在暂存数据');
let params = {
transName: this.trnName.toUpperCase(),
userId: window.sessionStorage.userId || 'ZL',
liaccvg: this.model.liaccv.liaccvg,
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,
...this.model,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
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);
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