浏览代码

修复调差导入bug

laiguoran 2 年之前
父节点
当前提交
d27eb59305
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      app/public/js/material_checklist.js

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

@@ -1176,7 +1176,6 @@ $(document).ready(() => {
                     //     }
                     // }
                 }
-                console.log(pushChecklist, pushBillsData);
                 if (needPushTree.length === 0) {
                     throw '不存在需要导入的工料清单含量';
                 }
@@ -1277,7 +1276,6 @@ $(document).ready(() => {
     }
 
     async function pushListData(tree = []) {
-        console.log(tree);
         if (tree.length > 0) {
             for (const [i,t] of tree.entries()) {
                 $('#list-detail').find('b').text(t.b_code);
@@ -1295,7 +1293,7 @@ $(document).ready(() => {
                             // toastr.warning('已保留6位小数');
                             mb.quantity = ZhCalc.round(num, 6);
                         }
-                        mbList.push({ id: mbInfo.id, quantity: mb.quantity });
+                        mbList.push({ id: mbInfo.id, quantity: mb.quantity ? mb.quantity : 0 });
                     }
                 }
                 if (mbList.length === 0) {