Commit af0d13e0 by qiaoyanqi

curId

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