Browse Source

展示所有清单

ellisran 1 năm trước cách đây
mục cha
commit
8c2ae0bab9
1 tập tin đã thay đổi với 4 bổ sung3 xóa
  1. 4 3
      app/public/js/material_checklist.js

+ 4 - 3
app/public/js/material_checklist.js

@@ -162,9 +162,10 @@ $(document).ready(() => {
         // 解析清单汇总数据
         gclGatherModel.loadLedgerData(ledger, curLedgerData);
         gclGatherModel.loadPosData(pos, curPosData);
-        gclGatherData = gclGatherModel.gatherGclData().filter(function (item) {
-            return item.unit_price || item.quantity;
-        });
+        // gclGatherData = gclGatherModel.gatherGclData().filter(function (item) {
+        //     return item.unit_price || item.quantity;
+        // });
+        gclGatherData = gclGatherModel.gatherGclData();
         console.log(gclGatherData);
         const hadBillsidList = _.uniq(_.map(gclList, 'gcl_id'));
         console.log(hadBillsidList, materialChecklistData);