|
@@ -59,6 +59,21 @@ $(document).ready(() => {
|
|
|
if (posSpread) posSpread.refresh();
|
|
|
},
|
|
|
});
|
|
|
+ const checkList = $.ledger_checkList({
|
|
|
+ id: 'check-list',
|
|
|
+ tabSelector: '#check-list-tab',
|
|
|
+ selector: '#check-list',
|
|
|
+ relaSpread: billsSpread,
|
|
|
+ storeKey: 'revise-check-' + window.location.pathname.split('/')[2] + '-' + window.location.pathname.split('/')[4],
|
|
|
+ checkType: ledgerCheckType,
|
|
|
+ afterLocated: function () {
|
|
|
+ posSpreadObj.loadCurPosData();
|
|
|
+ },
|
|
|
+ afterShow: function () {
|
|
|
+ billsSpread.refresh();
|
|
|
+ if (posSpread) posSpread.refresh();
|
|
|
+ },
|
|
|
+ });
|
|
|
|
|
|
// 初始化 节点树结构
|
|
|
const treeSetting = {
|
|
@@ -1734,6 +1749,8 @@ $(document).ready(() => {
|
|
|
pos.loadDatas(result.pos);
|
|
|
posSpreadObj.loadCurPosData();
|
|
|
SpreadJsObj.resetTopAndSelect(posSheet);
|
|
|
+
|
|
|
+ checkList.loadHisCheckData();
|
|
|
}, null);
|
|
|
$.divResizer({
|
|
|
select: '#revise-resize',
|
|
@@ -2249,6 +2266,9 @@ $(document).ready(() => {
|
|
|
if (searchLedger) {
|
|
|
searchLedger.spread.refresh();
|
|
|
}
|
|
|
+ if (checkList) {
|
|
|
+ checkList.spread.refresh();
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
|
|
@@ -2429,6 +2449,8 @@ $(document).ready(() => {
|
|
|
searchLedger.spread.refresh();
|
|
|
} else if (tab.attr('content') === '#error-list') {
|
|
|
errorList.spread.refresh();
|
|
|
+ } else if (tab.attr('content') === '#check-list') {
|
|
|
+ checkList.spread.refresh();
|
|
|
}
|
|
|
}
|
|
|
else {// 收起工具栏
|
|
@@ -2492,6 +2514,13 @@ $(document).ready(() => {
|
|
|
},
|
|
|
errorList: errorList,
|
|
|
});
|
|
|
+
|
|
|
+ LedgerChecker({
|
|
|
+ ledgerTree: billsTree,
|
|
|
+ ledgerPos: pos,
|
|
|
+ checkList: checkList,
|
|
|
+ });
|
|
|
+
|
|
|
$('[name=revise-start]').submit(function (e) {
|
|
|
if (checkAuditorFrom()) {
|
|
|
$(this).parent().parent().parent().modal('hide');
|