#
luxiaotao1123
2022-02-18 ce49fdd43a76a380ed782e882280d7d1c32dee79
#
4个文件已修改
1403 ■■■■■ 已修改文件
static/js/data/Asrs.js 1307 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/js/object/CrnTask.js 51 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/js/object/StoreGoods.js 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
views/index.html 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/js/data/Asrs.js
@@ -5,12 +5,11 @@
    queryCrnCurrent();
},1000);
var CrnDatas = null;
function queryCrnCurrent() {
    $.ajax({
        url: 'http://47.97.1.152:58080/jkwcs/three/query/crn/cache/v1',
        // url: 'http://localhost:9090/jkwcs/three/query/crn/cache/v1',
        // url: 'http://47.97.1.152:58080/jkwcs/three/query/crn/cache/v1',
        url: 'http://localhost:9090/jkwcs/three/query/crn/cache/v1',
        type: "GET",
        data: {},
        success: function (res) {
@@ -22,8 +21,8 @@
var Store3DData;
function initStore() {
    $.ajax({
        url: 'http://47.97.1.152:58080/jkwcs/three/init/store/v1',
        // url: 'http://localhost:9090/jkwcs/three/init/store/v1',
        // url: 'http://47.97.1.152:58080/jkwcs/three/init/store/v1',
        url: 'http://localhost:9090/jkwcs/three/init/store/v1',
        type: "POST",
        data: {},
        // async: false,
@@ -32,1303 +31,5 @@
        }
    })
    // Store3DData = {
    //     "msg": "操作成功",
    //     "code": 200,
    //     "data": {
    //         "store": {
    //             "totalBinNum": 48576,
    //             "totalRowNum": 48,
    //             "totalBayNum": 92,
    //             "totalLevNum": 11,
    //             "groups": [
    //                 {
    //                     "crnNo": 1,
    //                     "binNum": 4048,
    //                     "rowNum": 4,
    //                     "bayNum": 2,
    //                     "levNum": 11,
    //                     "length": null,
    //                     "width": null,
    //                     "height": null,
    //                     "crn": {
    //                         "crnNo": 1,
    //                         "crnBody": {
    //                             "length": null,
    //                             "width": null,
    //                             "height": 570,
    //                             "position": {
    //                                 "x": 101,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         },
    //                         "crnLoad": {
    //                             "position": {
    //                                 "x": 101,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         },
    //                         "crnFork": {
    //                             "position": {
    //                                 "x": 101,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         }
    //                     },
    //                     "lines": [
    //                         {
    //                             "rowNo": 1,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 17,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 2,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 57,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 3,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 147,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 4,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 187,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         }
    //                     ]
    //                 },
    //                 {
    //                     "crnNo": 2,
    //                     "binNum": 4048,
    //                     "rowNum": 8,
    //                     "bayNum": 2,
    //                     "levNum": 11,
    //                     "length": null,
    //                     "width": null,
    //                     "height": null,
    //                     "crn": {
    //                         "crnNo": 2,
    //                         "crnBody": {
    //                             "length": null,
    //                             "width": null,
    //                             "height": 570,
    //                             "position": {
    //                                 "x": 331,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         },
    //                         "crnLoad": {
    //                             "position": {
    //                                 "x": 331,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         },
    //                         "crnFork": {
    //                             "position": {
    //                                 "x": 331,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         }
    //                     },
    //                     "lines": [
    //                         {
    //                             "rowNo": 5,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 247,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 6,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 287,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 7,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 377,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 8,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 417,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         }
    //                     ]
    //                 },
    //                 {
    //                     "crnNo": 3,
    //                     "binNum": 4048,
    //                     "rowNum": 12,
    //                     "bayNum": 2,
    //                     "levNum": 11,
    //                     "length": null,
    //                     "width": null,
    //                     "height": null,
    //                     "crn": {
    //                         "crnNo": 3,
    //                         "crnBody": {
    //                             "length": null,
    //                             "width": null,
    //                             "height": 570,
    //                             "position": {
    //                                 "x": 561,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         },
    //                         "crnLoad": {
    //                             "position": {
    //                                 "x": 561,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         },
    //                         "crnFork": {
    //                             "position": {
    //                                 "x": 561,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         }
    //                     },
    //                     "lines": [
    //                         {
    //                             "rowNo": 9,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 477,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 10,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 517,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 11,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 607,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 12,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 647,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         }
    //                     ]
    //                 },
    //                 {
    //                     "crnNo": 4,
    //                     "binNum": 4048,
    //                     "rowNum": 16,
    //                     "bayNum": 2,
    //                     "levNum": 11,
    //                     "length": null,
    //                     "width": null,
    //                     "height": null,
    //                     "crn": {
    //                         "crnNo": 4,
    //                         "crnBody": {
    //                             "length": null,
    //                             "width": null,
    //                             "height": 570,
    //                             "position": {
    //                                 "x": 791,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         },
    //                         "crnLoad": {
    //                             "position": {
    //                                 "x": 791,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         },
    //                         "crnFork": {
    //                             "position": {
    //                                 "x": 791,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         }
    //                     },
    //                     "lines": [
    //                         {
    //                             "rowNo": 13,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 707,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 14,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 747,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 15,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 837,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 16,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 877,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         }
    //                     ]
    //                 },
    //                 {
    //                     "crnNo": 5,
    //                     "binNum": 4048,
    //                     "rowNum": 20,
    //                     "bayNum": 2,
    //                     "levNum": 11,
    //                     "length": null,
    //                     "width": null,
    //                     "height": null,
    //                     "crn": {
    //                         "crnNo": 5,
    //                         "crnBody": {
    //                             "length": null,
    //                             "width": null,
    //                             "height": 570,
    //                             "position": {
    //                                 "x": 1021,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         },
    //                         "crnLoad": {
    //                             "position": {
    //                                 "x": 1021,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         },
    //                         "crnFork": {
    //                             "position": {
    //                                 "x": 1021,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         }
    //                     },
    //                     "lines": [
    //                         {
    //                             "rowNo": 17,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 937,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 18,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 977,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 19,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 1067,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 20,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 1107,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         }
    //                     ]
    //                 },
    //                 {
    //                     "crnNo": 6,
    //                     "binNum": 4048,
    //                     "rowNum": 24,
    //                     "bayNum": 2,
    //                     "levNum": 11,
    //                     "length": null,
    //                     "width": null,
    //                     "height": null,
    //                     "crn": {
    //                         "crnNo": 6,
    //                         "crnBody": {
    //                             "length": null,
    //                             "width": null,
    //                             "height": 570,
    //                             "position": {
    //                                 "x": 1251,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         },
    //                         "crnLoad": {
    //                             "position": {
    //                                 "x": 1251,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         },
    //                         "crnFork": {
    //                             "position": {
    //                                 "x": 1251,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         }
    //                     },
    //                     "lines": [
    //                         {
    //                             "rowNo": 21,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 1167,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 22,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 1207,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 23,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 1297,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 24,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 1337,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         }
    //                     ]
    //                 },
    //                 {
    //                     "crnNo": 7,
    //                     "binNum": 4048,
    //                     "rowNum": 28,
    //                     "bayNum": 2,
    //                     "levNum": 11,
    //                     "length": null,
    //                     "width": null,
    //                     "height": null,
    //                     "crn": {
    //                         "crnNo": 7,
    //                         "crnBody": {
    //                             "length": null,
    //                             "width": null,
    //                             "height": 570,
    //                             "position": {
    //                                 "x": 1481,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         },
    //                         "crnLoad": {
    //                             "position": {
    //                                 "x": 1481,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         },
    //                         "crnFork": {
    //                             "position": {
    //                                 "x": 1481,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         }
    //                     },
    //                     "lines": [
    //                         {
    //                             "rowNo": 25,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 1397,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 26,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 1437,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 27,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 1527,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 28,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 1567,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         }
    //                     ]
    //                 },
    //                 {
    //                     "crnNo": 8,
    //                     "binNum": 4048,
    //                     "rowNum": 32,
    //                     "bayNum": 2,
    //                     "levNum": 11,
    //                     "length": null,
    //                     "width": null,
    //                     "height": null,
    //                     "crn": {
    //                         "crnNo": 8,
    //                         "crnBody": {
    //                             "length": null,
    //                             "width": null,
    //                             "height": 570,
    //                             "position": {
    //                                 "x": 1711,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         },
    //                         "crnLoad": {
    //                             "position": {
    //                                 "x": 1711,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         },
    //                         "crnFork": {
    //                             "position": {
    //                                 "x": 1711,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         }
    //                     },
    //                     "lines": [
    //                         {
    //                             "rowNo": 29,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 1627,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 30,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 1667,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 31,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 1757,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 32,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 1797,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         }
    //                     ]
    //                 },
    //                 {
    //                     "crnNo": 9,
    //                     "binNum": 4048,
    //                     "rowNum": 36,
    //                     "bayNum": 2,
    //                     "levNum": 11,
    //                     "length": null,
    //                     "width": null,
    //                     "height": null,
    //                     "crn": {
    //                         "crnNo": 9,
    //                         "crnBody": {
    //                             "length": null,
    //                             "width": null,
    //                             "height": 570,
    //                             "position": {
    //                                 "x": 1941,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         },
    //                         "crnLoad": {
    //                             "position": {
    //                                 "x": 1941,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         },
    //                         "crnFork": {
    //                             "position": {
    //                                 "x": 1941,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         }
    //                     },
    //                     "lines": [
    //                         {
    //                             "rowNo": 33,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 1857,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 34,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 1897,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 35,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 1987,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 36,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 2027,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         }
    //                     ]
    //                 },
    //                 {
    //                     "crnNo": 10,
    //                     "binNum": 4048,
    //                     "rowNum": 40,
    //                     "bayNum": 2,
    //                     "levNum": 11,
    //                     "length": null,
    //                     "width": null,
    //                     "height": null,
    //                     "crn": {
    //                         "crnNo": 10,
    //                         "crnBody": {
    //                             "length": null,
    //                             "width": null,
    //                             "height": 570,
    //                             "position": {
    //                                 "x": 2171,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         },
    //                         "crnLoad": {
    //                             "position": {
    //                                 "x": 2171,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         },
    //                         "crnFork": {
    //                             "position": {
    //                                 "x": 2171,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         }
    //                     },
    //                     "lines": [
    //                         {
    //                             "rowNo": 37,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 2087,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 38,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 2127,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 39,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 2217,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 40,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 2257,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         }
    //                     ]
    //                 },
    //                 {
    //                     "crnNo": 11,
    //                     "binNum": 4048,
    //                     "rowNum": 44,
    //                     "bayNum": 2,
    //                     "levNum": 11,
    //                     "length": null,
    //                     "width": null,
    //                     "height": null,
    //                     "crn": {
    //                         "crnNo": 11,
    //                         "crnBody": {
    //                             "length": null,
    //                             "width": null,
    //                             "height": 570,
    //                             "position": {
    //                                 "x": 2401,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         },
    //                         "crnLoad": {
    //                             "position": {
    //                                 "x": 2401,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         },
    //                         "crnFork": {
    //                             "position": {
    //                                 "x": 2401,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         }
    //                     },
    //                     "lines": [
    //                         {
    //                             "rowNo": 41,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 2317,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 42,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 2357,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 43,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 2447,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 44,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 2487,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         }
    //                     ]
    //                 },
    //                 {
    //                     "crnNo": 12,
    //                     "binNum": 4048,
    //                     "rowNum": 48,
    //                     "bayNum": 2,
    //                     "levNum": 11,
    //                     "length": null,
    //                     "width": null,
    //                     "height": null,
    //                     "crn": {
    //                         "crnNo": 12,
    //                         "crnBody": {
    //                             "length": null,
    //                             "width": null,
    //                             "height": 570,
    //                             "position": {
    //                                 "x": 2631,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         },
    //                         "crnLoad": {
    //                             "position": {
    //                                 "x": 2631,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         },
    //                         "crnFork": {
    //                             "position": {
    //                                 "x": 2631,
    //                                 "y": 0,
    //                                 "z": 0
    //                             }
    //                         }
    //                     },
    //                     "lines": [
    //                         {
    //                             "rowNo": 45,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 2547,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 46,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 2587,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 47,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 2677,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         },
    //                         {
    //                             "rowNo": 48,
    //                             "name": null,
    //                             "position": {
    //                                 "x": 2717,
    //                                 "y": 0,
    //                                 "z": 0
    //                             },
    //                             "binLength": 35,
    //                             "binWidth": 50,
    //                             "binHeight": 50,
    //                             "binXNum": null,
    //                             "binYNum": 11,
    //                             "binZNum": 2,
    //                             "bottomHeight": 20,
    //                             "bins": null
    //                         }
    //                     ]
    //                 }
    //             ]
    //         }
    //     }
    // }
}
static/js/object/CrnTask.js
@@ -11,6 +11,14 @@
const yOffset1 = -116;
const zOffset1 = -475;
const palletX = -18;
const palletY = 2;
const palletZ = -46;
const goodsX = -17;
const goodsY = 5;
const goodsZ = -6;
// 堆垛机当前运行状态对象
function CrnTask(crnData, object) {
    let that = this;
@@ -38,6 +46,12 @@
    that.crnLoad = null;
    that.crnFork = null;
    that.pallet = null;
    that.goods = null;
    that.sourceLocNo = null;
    that.locNo = null;
    let curves = [];
    let init = function () {
@@ -53,6 +67,7 @@
        that.crnBody = getArrVal(object.objects, "name", that.crnNo + "-body");
        that.crnLoad = getArrVal(object.objects, "name", that.crnNo + "-load");
        that.crnFork = getArrVal(object.objects, "name", that.crnNo + "-fork");
        if (that.crnBody===null || that.crnLoad===null || that.crnFork==null) {
            // console.log(that.crnNo + "号堆垛机没有初始化");
        }
@@ -66,16 +81,25 @@
        }
        if (that.crnBody===null) {
            that.crnBody = getArrVal(object.objects, "name", that.crnNo + "-body");
            return;
            // return;
        }
        if (that.crnLoad===null) {
            that.crnLoad = getArrVal(object.objects, "name", that.crnNo + "-load");
            return;
            // return;
        }
        if (that.crnFork===null) {
            that.crnFork = getArrVal(object.objects, "name", that.crnNo + "-fork");
            return;
            // return;
        }
        if (crnData.sourceLocNo != null) {
            that.sourceLocNo = crnData.sourceLocNo;
            that.pallet = getArrVal(object.objects, "name", crnData.sourceLocNo + "-Pallet");
            that.goods = getArrVal(object.objects, "name", crnData.sourceLocNo + "-Goods");
        }
        if (crnData.locNo != null) {
            that.locNo = crnData.locNo;
        }
        if (JSON.stringify(crnData.position) === JSON.stringify(that.position)) {
            return;
        }
@@ -105,6 +129,7 @@
                start: false,
                progress: 0,
                part: 'fork',
                loaded: crnData.loaded,
                route: new Route([
                    {
                        x: that.prePosition.x,
@@ -126,6 +151,7 @@
                start: false,
                progress: 0,
                part: 'load',
                loaded: crnData.loaded,
                route: new Route([
                    {
                        x: that.crnLoad.position.x,
@@ -143,6 +169,7 @@
        curves.map((value, index) => {
            if (that.crnNo === 1) {
                // console.log(crnData)
                // console.log(value.part + " --> " + JSON.stringify(value.route.points))
            }
        });
@@ -161,6 +188,15 @@
                        if (i !== curves.length - 1) {
                            curves[i+1].start = true;
                        } else {
                            // if (that.locNo != null) {
                            //     if (that.pallet != null) {
                            //         that.pallet.name = that.locNo + "-Pallet";
                            //     }
                            //     if (that.goods != null) {
                            //         that.goods.name = that.locNo + "-Goods";
                            //     }
                            // }
                            // reset
                            curves = [];
                            that.run = false;
                        }
@@ -172,9 +208,18 @@
                                    that.crnBody.position.z = point.z + zOffset - that.crnBody.userData.crnBodyWidth/2;
                                    that.crnLoad.position.set(point.x, point.y + yOffset0, point.z + zOffset0 - that.crnLoad.userData.crnLoadWidth/2 + 5);
                                    that.crnFork.position.set(point.x, point.y + yOffset1, point.z + zOffset1 - that.crnLoad.userData.crnLoadWidth/2);
                                    if (curves[i].loaded === 1 && that.pallet) {
                                        that.pallet.position.set(point.x - xOffset + palletX, point.y + palletY, point.z + palletZ);
                                        that.goods.position.set(point.x - xOffset + goodsX, point.y + goodsY, point.z + goodsZ);
                                    }
                                    break
                                case 'fork':
                                    that.crnFork.position.set(point.x + xOffset1, point.y, point.z);
                                    // todo:luxiaotao 托盘+货物 运动 不是根据loaded,是根据上下定位
                                    if (curves[i].loaded === 1 && that.pallet) {
                                        that.pallet.position.setX(point.x + palletX);
                                        that.goods.position.setX(point.x + goodsX);
                                    }
                                    break
                                default:
                                    break
static/js/object/StoreGoods.js
@@ -2,6 +2,14 @@
import {OBJLoader} from "../lib/OBJLoader.js";
import * as THREE from '../three.module.js';
const palletX = -18;
const palletY = 2;
const palletZ = -46;
const goodsX = -17;
const goodsY = 5;
const goodsZ = -6;
function StoreGoods(object, data, shelf) {
    let that = this;
    that.data = data;
@@ -40,9 +48,10 @@
                let positionY = that.shelf.bottomHight + (item.lev1-1)*that.shelf.binHeight || 0;
                let positionZ = (item.bay1-1)*-that.shelf.binHeight || 0;
                clone.position.x = -18 + positionX;
                clone.position.y = 2 + positionY;
                clone.position.z = -46 + positionZ;
                clone.name = item.loc_no + "-" + "Pallet";
                clone.position.x = palletX + positionX;
                clone.position.y = palletY + positionY;
                clone.position.z = palletZ + positionZ;
                that.object.addObject(clone);
            })
        });
@@ -68,9 +77,10 @@
            let positionY = that.shelf.bottomHight + (item.lev1-1)*that.shelf.binHeight || 0;
            let positionZ = (item.bay1-1)*-that.shelf.binHeight || 0;
            clone.position.x = -17 + positionX;
            clone.position.y = 5 + positionY;
            clone.position.z = -6 + positionZ;
            clone.name = item.loc_no + "-" + "Goods";
            clone.position.x = goodsX + positionX;
            clone.position.y = goodsY + positionY;
            clone.position.z = goodsZ + positionZ;
            that.object.addObject(clone);
        })
    });
views/index.html
@@ -234,8 +234,8 @@
    var speedDom = document.getElementById("speed");
    var timer = setInterval(function () {
        if (percent < 100.00) {
            percent += 0.04;
            // percent += 1;
            // percent += 0.04;
            percent += 1;
            speedDom.innerText = percent.toFixed(2);
        } else {
            speedDom.innerText = '100.00';
@@ -248,7 +248,7 @@
    $(document).on('click','.btn-word', function () {
        fullScreen();
        $("#mask").fadeOut(3000, function () {  // 3000
        $("#mask").fadeOut(1, function () {  // 3000
            $("#menu").addClass("show");
            setTimeout(function () {
                $("#ship-type-ul").css("transform", "translateY(-40px)");
@@ -262,7 +262,7 @@
                setTimeout(function () {
                    removeClass(document.getElementById("title-box"), "show");
                }, 5000);
            }, 1000);   // 1000
            }, 1);   // 1000
        });
        $("#title-box, #logo").addClass("show");
        $("#ship-info-btn").removeClass("show");
@@ -270,5 +270,20 @@
        $("#ship-type-ul").css("transform", "translateY(-20px)");
    });
    // 开始模拟
    $(document).on('click','.task-confirm', function () {
        $.ajax({
            // url: 'http://47.97.1.152:58080/jkwcs/three/start',
            url: 'http://localhost:9090/jkwcs/three/start',
            type: "GET",
            data: {},
            success: function (res) {
                if (res.code !== 200) {
                    alert(res.msg);
                }
            }
        })
    })
</script>
</html>