Ver código fonte

批量设置清单设置页选择清单弹窗过滤父项的清单数据

laiguoran 2 anos atrás
pai
commit
2d2c8892d2
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      app/public/js/material_checklist.js

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

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