Commit af0d13e0 by qiaoyanqi

curId

parent a9948cea
...@@ -176,7 +176,8 @@ export default { ...@@ -176,7 +176,8 @@ export default {
bill.setControlsSate(param["_control_name_"], "enable", true) bill.setControlsSate(param["_control_name_"], "enable", true)
bill.setControlsSate(param["_control_name_"], "loading", false) bill.setControlsSate(param["_control_name_"], "loading", false)
GMS.$hideContainer.$Message.success('审批成功!') GMS.$hideContainer.$Message.success('审批成功!')
GMS.vbus.$emit('change-form-state', { state: 'readOnly'}) let curTagId = window.nros.context.getCurrTag();
GMS.vbus.$emit('change-form-state', { state: 'readOnly'},curTagId)
if ( if (
window.osConfig.appOpenMode && window.osConfig.appOpenMode &&
......
...@@ -2,7 +2,8 @@ import {setQueryIndex} from '../query-actions/util/queryTag.js'; ...@@ -2,7 +2,8 @@ import {setQueryIndex} from '../query-actions/util/queryTag.js';
export default { export default {
execute(context, param) { execute(context, param) {
setQueryIndex(-1);//上张下张用 setQueryIndex(-1);//上张下张用
let curTagId = window.nros.context.getCurrTag();
// 新建单据状态设置为可编辑,单据id为空 // 新建单据状态设置为可编辑,单据id为空
GMS.vbus.$emit('change-form-state', {state: '', billId: null}) GMS.vbus.$emit('change-form-state', {state: '', billId: null},curTagId);
}, },
} }
...@@ -19,7 +19,8 @@ export default { ...@@ -19,7 +19,8 @@ export default {
GMS.$hideContainer.$Modal.remove(); GMS.$hideContainer.$Modal.remove();
GMS.$hideContainer.$Message.success('删除成功'); GMS.$hideContainer.$Message.success('删除成功');
setQueryIndex(-1);//上张下张用 ,删除成功后,跳转到新建界面 setQueryIndex(-1);//上张下张用 ,删除成功后,跳转到新建界面
GMS.vbus.$emit('change-form-state', {state: '', billId: null}) let curTagId = window.nros.context.getCurrTag();
GMS.vbus.$emit('change-form-state', {state: '', billId: null},curTagId)
} else { } else {
GMS.$hideContainer.$Modal.remove(); GMS.$hideContainer.$Modal.remove();
GMS.$hideContainer.$Message.error(data.data.message); GMS.$hideContainer.$Message.error(data.data.message);
......
export default { export default {
execute: function (bill, param) { execute: function (bill, param) {
let curTagId = window.nros.context.getCurrTag();
// 编辑单据状态设置为可编辑,单据id不传 // 编辑单据状态设置为可编辑,单据id不传
GMS.vbus.$emit('change-form-state', { state: ''}) GMS.vbus.$emit('change-form-state', { state: ''},curTagId)
} }
} }
\ No newline at end of file
...@@ -81,7 +81,8 @@ export default { ...@@ -81,7 +81,8 @@ export default {
} }
bill.setControlsSate(param["_control_name_"], "enable", true) bill.setControlsSate(param["_control_name_"], "enable", true)
bill.setControlsSate(param["_control_name_"],"loading",false) bill.setControlsSate(param["_control_name_"],"loading",false)
GMS.vbus.$emit('change-form-state', { state: 'readOnly'}) let curTagId = window.nros.context.getCurrTag();
GMS.vbus.$emit('change-form-state', { state: 'readOnly'},curTagId)
GMS.$hideContainer.$Message.success('驳回成功!') GMS.$hideContainer.$Message.success('驳回成功!')
if ( if (
window.osConfig.appOpenMode && window.osConfig.appOpenMode &&
......
...@@ -147,8 +147,9 @@ export default { ...@@ -147,8 +147,9 @@ export default {
}).then(response => { }).then(response => {
let data = response.data; let data = response.data;
if (data.code == 0) { if (data.code == 0) {
const id = data.content.billData.id const id = data.content.billData.id;
GMS.vbus.$emit('change-form-state', { state: 'readOnly', billId: id }) let curTagId = window.nros.context.getCurrTag();
GMS.vbus.$emit('change-form-state', { state: 'readOnly', billId: id },curTagId)
GMS.vbus.$emit('cacheEcho', buidData);//正常情况回去给子表赋值 GMS.vbus.$emit('cacheEcho', buidData);//正常情况回去给子表赋值
}else if(data.code == -1 && data.message){ }else if(data.code == -1 && data.message){
let stringOne = data.message.split(':')[1]; let stringOne = data.message.split(':')[1];
......
...@@ -102,7 +102,8 @@ export default { ...@@ -102,7 +102,8 @@ export default {
const id = response.data.content.billData.id; const id = response.data.content.billData.id;
initIndexZero();//处理上张下张 initIndexZero();//处理上张下张
GMS.vbus.$Message.success("暂存成功"); GMS.vbus.$Message.success("暂存成功");
GMS.vbus.$emit('change-form-state', {state: 'readOnly', billId: id}) let curTagId = window.nros.context.getCurrTag();
GMS.vbus.$emit('change-form-state', {state: 'readOnly', billId: id},curTagId)
GMS.vbus.$emit("saveSuccess", buidData, param); GMS.vbus.$emit("saveSuccess", buidData, param);
} else { } else {
response.data.message && GMS.vbus.$Message.error({ response.data.message && GMS.vbus.$Message.error({
......
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