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