Browse Source

变更清单获取方式更改

laiguoran 5 years ago
parent
commit
93057cf654
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/public/js/change_set.js

+ 2 - 1
app/public/js/change_set.js

@@ -42,11 +42,12 @@ $(document).ready(() => {
 
 
     const preUrl = window.location.pathname.split('/').slice(0, 4).join('/');
     const preUrl = window.location.pathname.split('/').slice(0, 4).join('/');
     let changeListData;
     let changeListData;
+    let gclGatherData;
     postData(preUrl + '/defaultBills', {}, function (result) {
     postData(preUrl + '/defaultBills', {}, function (result) {
         gclGatherModel.loadLedgerData(result.bills);
         gclGatherModel.loadLedgerData(result.bills);
         gclGatherModel.loadPosData(result.pos);
         gclGatherModel.loadPosData(result.pos);
 
 
-        const gclGatherData = gclGatherModel.gatherGclData();
+        gclGatherData = gclGatherModel.gatherGclData();
         for (const ggd in gclGatherData) {
         for (const ggd in gclGatherData) {
             gclGatherData[ggd].code = gclGatherData[ggd].b_code;
             gclGatherData[ggd].code = gclGatherData[ggd].b_code;
         }
         }