|
@@ -314,6 +314,8 @@ $(document).ready(() => {
|
|
|
stagePosSpreadObj.loadCurPosData();
|
|
|
if (detail) {
|
|
|
detail.loadStageChangeUpdateData(result);
|
|
|
+ } else {
|
|
|
+ stageIm.loadUpdateChangeData(data)
|
|
|
}
|
|
|
self.obj.modal('hide');
|
|
|
});
|
|
@@ -579,6 +581,8 @@ $(document).ready(() => {
|
|
|
stageTreeSpreadObj.refreshTreeNodes(slSpread.getActiveSheet(), nodes);
|
|
|
if (detail) {
|
|
|
detail.loadStageLedgerUpdateData(data);
|
|
|
+ } else {
|
|
|
+ stageIm.loadUpdateLedgerData(data);
|
|
|
}
|
|
|
}, function () {
|
|
|
SpreadJsObj.reLoadRowData(info.sheet, info.row);
|
|
@@ -656,6 +660,8 @@ $(document).ready(() => {
|
|
|
stageTreeSpreadObj.refreshTreeNodes(slSpread.getActiveSheet(), nodes);
|
|
|
if (detail) {
|
|
|
detail.loadStageLedgerUpdateData(result);
|
|
|
+ } else {
|
|
|
+ stageIm.loadUpdateLedgerData(data);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
@@ -761,6 +767,8 @@ $(document).ready(() => {
|
|
|
stageTreeSpreadObj.refreshTreeNodes(slSpread.getActiveSheet(), nodes.concat(filterNodes));
|
|
|
if (detail) {
|
|
|
detail.loadStageLedgerUpdateData(data);
|
|
|
+ } else {
|
|
|
+ stageIm.loadUpdateLedgerData(data);
|
|
|
}
|
|
|
}, function () {
|
|
|
// todo
|
|
@@ -810,6 +818,8 @@ $(document).ready(() => {
|
|
|
stagePosSpreadObj.loadCurPosData();
|
|
|
if (detail) {
|
|
|
detail.loadStagePosUpdateData(result);
|
|
|
+ } else {
|
|
|
+ stageIm.loadUpdatePosData(data);
|
|
|
}
|
|
|
toastr.success('已计量' + data.updateData.length + '条');
|
|
|
}, function () {
|
|
@@ -1100,6 +1110,8 @@ $(document).ready(() => {
|
|
|
stagePosSpreadObj.loadCurPosData();
|
|
|
if (detail) {
|
|
|
detail.loadStagePosUpdateData(result);
|
|
|
+ } else {
|
|
|
+ stageIm.loadUpdatePosData(data);
|
|
|
}
|
|
|
}, function () {
|
|
|
stagePosSpreadObj.loadCurPosData();
|
|
@@ -1217,6 +1229,8 @@ $(document).ready(() => {
|
|
|
stagePosSpreadObj.loadCurPosData();
|
|
|
if (detail) {
|
|
|
detail.loadStagePosUpdateData(result);
|
|
|
+ } else {
|
|
|
+ stageIm.loadUpdatePosData(data);
|
|
|
}
|
|
|
}, function () {
|
|
|
stagePosSpreadObj.loadCurPosData();
|
|
@@ -1264,6 +1278,8 @@ $(document).ready(() => {
|
|
|
stageTreeSpreadObj.refreshTreeNodes(slSpread.getActiveSheet(), nodes);
|
|
|
if (detail) {
|
|
|
detail.loadStagePosUpdateData(result);
|
|
|
+ } else {
|
|
|
+ stageIm.loadUpdatePosData(data);
|
|
|
}
|
|
|
// todo 只加载改变项
|
|
|
stagePosSpreadObj.loadCurPosData();
|
|
@@ -1290,6 +1306,8 @@ $(document).ready(() => {
|
|
|
stagePosSpreadObj.loadCurPosData();
|
|
|
if (detail) {
|
|
|
detail.loadStagePosUpdateData(result);
|
|
|
+ } else {
|
|
|
+ stageIm.loadUpdatePosData(data);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
@@ -2517,8 +2535,10 @@ $(document).ready(() => {
|
|
|
getNodeList(node.id);
|
|
|
}
|
|
|
if (tab.attr('content') === '#zhongjian') {
|
|
|
- detail = new Detail($('#detail-spread'));
|
|
|
- detail.spread.refresh();
|
|
|
+ if (!detail) {
|
|
|
+ detail = new Detail($('#detail-spread'));
|
|
|
+ detail.spread.refresh();
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
tab.removeClass('active');
|