|
@@ -3487,6 +3487,16 @@ $(document).ready(function() {
|
|
|
|
|
|
SpreadExcelObj.exportSimpleXlsxSheet(setting, data, "台账分解.xlsx");
|
|
|
});
|
|
|
+ $('#sync-ledger').click(function () {
|
|
|
+ postData(syncLedgerUrl, {}, function (result) {
|
|
|
+ ledgerTree.loadDatas(result.bills);
|
|
|
+ treeCalc.calculateAll(ledgerTree);
|
|
|
+ SpreadJsObj.loadSheetData(ledgerSpread.getActiveSheet(), 'tree', ledgerTree);
|
|
|
+ pos.loadDatas(result.pos);
|
|
|
+ posOperationObj.loadCurPosData();
|
|
|
+ checkShowLast(result.bills.length);
|
|
|
+ });
|
|
|
+ });
|
|
|
|
|
|
const dataChecker = DataChecker({
|
|
|
checkUrl: window.location.pathname + '/check',
|