| | |
| | | this.initLight(); |
| | | this.initFloor(); |
| | | this.initModel(); |
| | | this.initModel0(); |
| | | this.queryTask(); |
| | | this.initStoreObjects(this); |
| | | } |
| | | this.animate = function () { |
| | |
| | | // |
| | | // } |
| | | // } |
| | | this.firstTime = 0; |
| | | // this.firstTime = 0; |
| | | } |
| | | } |
| | | } |
| | | this.initModel0 = function () { |
| | | |
| | | this.queryTask = function () { |
| | | if (this.firstTime === 1) { |
| | | queryTaskCurrent(); |
| | | console.log(TaskData); |
| | | } |
| | | } |
| | | this.getExistedGoodType=function(state){ |
| | | for (let i=0;i<this.goodTypes.length;i++) { |
New file |
| | |
| | | |
| | | |
| | | function queryTaskCurrent() { |
| | | $.ajax({ |
| | | // url: 'http://47.97.1.152:58080/jkwcs/three/init/store/v1', |
| | | url: 'http://localhost:9090/jkwcs/three/query/task/current/v1', |
| | | type: "GET", |
| | | data: {}, |
| | | async: false, |
| | | success: function (res) { |
| | | TaskData = res; |
| | | } |
| | | }) |
| | | } |
| | | |
| | | var TaskData; |
| | |
| | | function StoreCrn(option, object) { |
| | | console.log(option); |
| | | this.crnBodyLength = option.crnBody.length||30;//库位长度 |
| | | this.crnBodyWidth = option.crnBody.width||50;//库位宽 |
| | | this.crnBodyHeight = option.crnBody.height||500;//库位高 |
| | |
| | | <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@5.2.2/dist/echarts.min.js"></script> |
| | | <script type="text/javascript" src="../static/js/common.js"></script> |
| | | <script type="text/javascript" src="../static/js/data/Warehouse.js"></script> |
| | | <script type="text/javascript" src="../static/js/data/Task.js"></script> |
| | | <script type="text/javascript" src="../static/js/object/Cube.js"></script> |
| | | <script type="text/javascript" src="../static/js/object/StoreArea.js"></script> |
| | | <script type="text/javascript" src="../static/js/object/Store.js"></script> |