diff --git a/productionboard/src/main/java/com/productionboard/controller/StorageController.java b/productionboard/src/main/java/com/productionboard/controller/StorageController.java new file mode 100644 index 0000000..afca7a6 --- /dev/null +++ b/productionboard/src/main/java/com/productionboard/controller/StorageController.java @@ -0,0 +1,22 @@ +package com.productionboard.controller; + +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; + +/** + * 门体库仓储看板 + * @author WenJY + * @date 2022年04月24日 11:07 + */ +@Controller +@RequestMapping("/storage") +public class StorageController { + private String prefix = "storage/index"; + + @GetMapping() + public String index() + { + return prefix; + } +} diff --git a/productionboard/src/main/resources/static/css/storage/style.css b/productionboard/src/main/resources/static/css/storage/style.css new file mode 100644 index 0000000..3122ab0 --- /dev/null +++ b/productionboard/src/main/resources/static/css/storage/style.css @@ -0,0 +1,38 @@ +body { + background-color: aquamarine; + background: url(../../img/storage/storagebackground.jpg); + background-position: center center; + background-repeat: no-repeat; + background-attachment: fixed; + background-size: 100% 100%; +} + +.onDutyPlan { + width: 11%; + height: 5.6%; + position: absolute; + top: 24.5%; + letter-spacing: -1px; + font-size: 12%; + border: 0px solid; +} + +.theCurrentTeam { + left: 42%; + color: #6ACBFE; +} + +.scheduledProduction { + left: 55.2%; + color:#A0FF00; + } + +.actualOutPut { + left: 69.7%; + color: #6ACBFE; +} + +.differenceValue { + left: 82.9%; + color:#A0FF00; +} \ No newline at end of file diff --git a/productionboard/src/main/resources/static/img/storage/storagebackground.jpg b/productionboard/src/main/resources/static/img/storage/storagebackground.jpg new file mode 100644 index 0000000..e1a835f Binary files /dev/null and b/productionboard/src/main/resources/static/img/storage/storagebackground.jpg differ diff --git a/productionboard/src/main/resources/static/js/common/ondutyplan.js b/productionboard/src/main/resources/static/js/common/ondutyplan.js index 5511bdd..6631a43 100644 --- a/productionboard/src/main/resources/static/js/common/ondutyplan.js +++ b/productionboard/src/main/resources/static/js/common/ondutyplan.js @@ -45,4 +45,22 @@ let onDutyPlan = (scheduledProductionNumber,actualOutPutNumber,differenceValueNu updateSplitBlocks(scheduledProductionNumber, scheduledProduction); updateSplitBlocks(actualOutPutNumber, actualOutPut); updateSplitBlocks(differenceValueNumber, differenceValue); +} + +let storageStatistics = (leftInStoreNumber,leftOutStoreNumber,rightInStoreNumber,rightOutStoreNumber) =>{ + const leftInStore = []; + const leftOutStore = []; + const rightInStore = []; + const rightOutStore = []; + + for (let i = 1; i <= 4; i++) { + leftInStore.push(`#theCurrentTeam :nth-child(${i})`); + leftOutStore.push(`#scheduledProduction :nth-child(${i})`); + rightInStore.push(`#actualOutPut :nth-child(${i})`); + rightOutStore.push(`#differenceValue :nth-child(${i})`); + } + updateSplitBlocks(leftInStoreNumber, leftInStore); + updateSplitBlocks(leftOutStoreNumber, leftOutStore); + updateSplitBlocks(rightInStoreNumber, rightInStore); + updateSplitBlocks(rightOutStoreNumber, rightOutStore); } \ No newline at end of file diff --git a/productionboard/src/main/resources/static/js/storage/index.js b/productionboard/src/main/resources/static/js/storage/index.js new file mode 100644 index 0000000..44d61bc --- /dev/null +++ b/productionboard/src/main/resources/static/js/storage/index.js @@ -0,0 +1,4 @@ +$(()=>{ + //单日出入库统计 + storageStatistics(123,233,211,124); +}) \ No newline at end of file diff --git a/productionboard/src/main/resources/templates/index.html b/productionboard/src/main/resources/templates/index.html index 0939fbd..17246dc 100644 --- a/productionboard/src/main/resources/templates/index.html +++ b/productionboard/src/main/resources/templates/index.html @@ -15,5 +15,7 @@

/tankShell

#发泡

/foamBox

+

#门体库

+

/storage

\ No newline at end of file diff --git a/productionboard/src/main/resources/templates/storage/index.html b/productionboard/src/main/resources/templates/storage/index.html new file mode 100644 index 0000000..1ae0f63 --- /dev/null +++ b/productionboard/src/main/resources/templates/storage/index.html @@ -0,0 +1,27 @@ + + + + + 门体库仓储看板 + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/productionboard/target/classes/static/js/common/ondutyplan.js b/productionboard/target/classes/static/js/common/ondutyplan.js index 5511bdd..6631a43 100644 --- a/productionboard/target/classes/static/js/common/ondutyplan.js +++ b/productionboard/target/classes/static/js/common/ondutyplan.js @@ -45,4 +45,22 @@ let onDutyPlan = (scheduledProductionNumber,actualOutPutNumber,differenceValueNu updateSplitBlocks(scheduledProductionNumber, scheduledProduction); updateSplitBlocks(actualOutPutNumber, actualOutPut); updateSplitBlocks(differenceValueNumber, differenceValue); +} + +let storageStatistics = (leftInStoreNumber,leftOutStoreNumber,rightInStoreNumber,rightOutStoreNumber) =>{ + const leftInStore = []; + const leftOutStore = []; + const rightInStore = []; + const rightOutStore = []; + + for (let i = 1; i <= 4; i++) { + leftInStore.push(`#theCurrentTeam :nth-child(${i})`); + leftOutStore.push(`#scheduledProduction :nth-child(${i})`); + rightInStore.push(`#actualOutPut :nth-child(${i})`); + rightOutStore.push(`#differenceValue :nth-child(${i})`); + } + updateSplitBlocks(leftInStoreNumber, leftInStore); + updateSplitBlocks(leftOutStoreNumber, leftOutStore); + updateSplitBlocks(rightInStoreNumber, rightInStore); + updateSplitBlocks(rightOutStoreNumber, rightOutStore); } \ No newline at end of file diff --git a/productionboard/target/classes/templates/index.html b/productionboard/target/classes/templates/index.html index 0939fbd..17246dc 100644 --- a/productionboard/target/classes/templates/index.html +++ b/productionboard/target/classes/templates/index.html @@ -15,5 +15,7 @@

/tankShell

#发泡

/foamBox

+

#门体库

+

/storage

\ No newline at end of file