|
@@ -93,6 +93,17 @@ $(document).ready(() => {
|
|
|
if (posSpread) posSpread.refresh();
|
|
|
},
|
|
|
});
|
|
|
+ const sumLoadMiss = $.sumLoadMiss({
|
|
|
+ tabSelector: '#sum-load-miss-tab',
|
|
|
+ selector: '#sum-load-miss',
|
|
|
+ relaSpread: billsSpread,
|
|
|
+ storeKey: 'revise-slm-' + window.location.pathname.split('/')[2] + '-' + window.location.pathname.split('/')[4],
|
|
|
+ id: 'revise-slm',
|
|
|
+ afterShow: function () {
|
|
|
+ billsSpread.refresh();
|
|
|
+ if (posSpread) posSpread.refresh();
|
|
|
+ },
|
|
|
+ });
|
|
|
|
|
|
// 初始化 节点树结构
|
|
|
const treeSetting = {
|
|
@@ -1264,6 +1275,12 @@ $(document).ready(() => {
|
|
|
const refreshNode = billsTree.loadPostData(result);
|
|
|
billsTreeSpreadObj.refreshTree(billsSheet, refreshNode);
|
|
|
billsTreeSpreadObj.refreshOperationValid(billsSheet);
|
|
|
+ if (result.sumLoadHis.errors.length > 0) {
|
|
|
+ sumLoadMiss.loadMissData(result.sumLoadHis.errors);
|
|
|
+ sumLoadMiss.show();
|
|
|
+ } else {
|
|
|
+ sumLoadMiss.clearMissData();
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
billsContextMenuOptions.items.importGclBills2Xmj = {
|
|
@@ -2305,30 +2322,15 @@ $(document).ready(() => {
|
|
|
select: '#revise-right-spr',
|
|
|
callback: function () {
|
|
|
billsSpread.refresh();
|
|
|
- if (posSpread) {
|
|
|
- posSpread.refresh();
|
|
|
- }
|
|
|
- if (stdXmj) {
|
|
|
- stdXmj.spread.refresh();
|
|
|
- }
|
|
|
- if (stdGcl) {
|
|
|
- stdGcl.spread.refresh();
|
|
|
- }
|
|
|
- if (dealBills) {
|
|
|
- dealBills.spread.refresh();
|
|
|
- }
|
|
|
- if (bgBills) {
|
|
|
- bgBills.spread.refresh();
|
|
|
- }
|
|
|
- if (searchLedger) {
|
|
|
- searchLedger.spread.refresh();
|
|
|
- }
|
|
|
- if (errorList) {
|
|
|
- errorList.spread.refresh();
|
|
|
- }
|
|
|
- if (checkList) {
|
|
|
- checkList.spread.refresh();
|
|
|
- }
|
|
|
+ if (posSpread) posSpread.refresh();
|
|
|
+ if (stdXmj) stdXmj.spread.refresh();
|
|
|
+ if (stdGcl) stdGcl.spread.refresh();
|
|
|
+ if (dealBills) dealBills.spread.refresh();
|
|
|
+ if (bgBills) bgBills.spread.refresh();
|
|
|
+ if (searchLedger) searchLedger.spread.refresh();
|
|
|
+ if (errorList) errorList.spread.refresh();
|
|
|
+ if (checkList) checkList.spread.refresh();
|
|
|
+ if (sumLoadMiss) sumLoadMiss.spread.refresh();
|
|
|
}
|
|
|
});
|
|
|
$.subMenu({
|
|
@@ -2346,30 +2348,15 @@ $(document).ready(() => {
|
|
|
}
|
|
|
autoFlashHeight();
|
|
|
billsSpread.refresh();
|
|
|
- if (posSpread) {
|
|
|
- posSpread.refresh();
|
|
|
- }
|
|
|
- if (stdXmj) {
|
|
|
- stdXmj.spread.refresh();
|
|
|
- }
|
|
|
- if (stdGcl) {
|
|
|
- stdGcl.spread.refresh();
|
|
|
- }
|
|
|
- if (dealBills) {
|
|
|
- dealBills.spread.refresh();
|
|
|
- }
|
|
|
- if (bgBills) {
|
|
|
- bgBills.spread.refresh();
|
|
|
- }
|
|
|
- if (searchLedger) {
|
|
|
- searchLedger.spread.refresh();
|
|
|
- }
|
|
|
- if (errorList) {
|
|
|
- errorList.spread.refresh();
|
|
|
- }
|
|
|
- if (checkList) {
|
|
|
- checkList.spread.refresh();
|
|
|
- }
|
|
|
+ if (posSpread) posSpread.refresh();
|
|
|
+ if (stdXmj) stdXmj.spread.refresh();
|
|
|
+ if (stdGcl) stdGcl.spread.refresh();
|
|
|
+ if (dealBills) dealBills.spread.refresh();
|
|
|
+ if (bgBills) bgBills.spread.refresh();
|
|
|
+ if (searchLedger) searchLedger.spread.refresh();
|
|
|
+ if (errorList) errorList.spread.refresh();
|
|
|
+ if (checkList) checkList.spread.refresh();
|
|
|
+ if (sumLoadMiss) sumLoadMiss.spread.refresh();
|
|
|
}
|
|
|
});
|
|
|
|
|
@@ -2377,9 +2364,7 @@ $(document).ready(() => {
|
|
|
$('#xd-content').addClass('active');
|
|
|
showSideTools(true);
|
|
|
billsSpread.refresh();
|
|
|
- if (posSpread) {
|
|
|
- posSpread.refresh();
|
|
|
- }
|
|
|
+ if (posSpread) posSpread.refresh();
|
|
|
|
|
|
const stdLibCellDoubleClick = function (e, info) {
|
|
|
const stdSheet = info.sheet;
|
|
@@ -2552,6 +2537,8 @@ $(document).ready(() => {
|
|
|
errorList.spread.refresh();
|
|
|
} else if (tab.attr('content') === '#check-list') {
|
|
|
checkList.spread.refresh();
|
|
|
+ } else if (tab.attr('content') === '#sum-load-miss') {
|
|
|
+ sumLoadMiss.spread.refresh();
|
|
|
}
|
|
|
}
|
|
|
else {// 收起工具栏
|
|
@@ -2560,9 +2547,7 @@ $(document).ready(() => {
|
|
|
showSideTools(tab.hasClass('active'));
|
|
|
}
|
|
|
billsSpread.refresh();
|
|
|
- if (posSpread) {
|
|
|
- posSpread.refresh();
|
|
|
- }
|
|
|
+ if (posSpread) posSpread.refresh();
|
|
|
});
|
|
|
|
|
|
if (!readOnly) {
|