diff --git a/productionboard/src/main/resources/static/js/common/ondutyplan.js b/productionboard/src/main/resources/static/js/common/ondutyplan.js index 3ddb2cc..2dc8164 100644 --- a/productionboard/src/main/resources/static/js/common/ondutyplan.js +++ b/productionboard/src/main/resources/static/js/common/ondutyplan.js @@ -42,9 +42,9 @@ let onDutyPlan = (scheduledProductionNumber, actualOutPutNumber, differenceValue differenceValue.push(`#differenceValue :nth-child(${i})`); } - updateSplitBlocks(scheduledProductionNumber, scheduledProduction); - updateSplitBlocks(actualOutPutNumber, actualOutPut); - updateSplitBlocks(differenceValueNumber, differenceValue); + updateSplitBlocks(scheduledProductionNumber || 0, scheduledProduction); + updateSplitBlocks(actualOutPutNumber || 0, actualOutPut); + updateSplitBlocks(differenceValueNumber || 0, differenceValue); } let storageStatistics = (leftInStoreNumber, leftOutStoreNumber, rightInStoreNumber, rightOutStoreNumber) => { diff --git a/productionboard/src/main/resources/static/js/foamBox/index.js b/productionboard/src/main/resources/static/js/foamBox/index.js index 43c5fcb..a511d5b 100644 --- a/productionboard/src/main/resources/static/js/foamBox/index.js +++ b/productionboard/src/main/resources/static/js/foamBox/index.js @@ -3,6 +3,7 @@ $(() => { let fun = () => { //班组计划统计 $.getJSON(`/foamBox/getTeamStatisticsJson?ids=${ids}`, function (result) { + console.log(result) onDutyPlan(result.planAmount, result.actualAmount, result.planAmount - result.actualAmount) });