| | |
| | | </dependencies> |
| | | |
| | | <build> |
| | | <finalName>kdywcs</finalName> |
| | | <finalName>jmwcs</finalName> |
| | | <plugins> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | |
| | | name: @pom.build.finalName@ |
| | | datasource: |
| | | driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver |
| | | url: jdbc:sqlserver://10.10.10.200:1433;databasename=kdyasrs |
| | | url: jdbc:sqlserver://127.0.0.1:1433;databasename=jxjmasrs |
| | | # url: jdbc:sqlserver://192.168.4.15:1433;databasename=nbjfasrs |
| | | username: sa |
| | | password: sa@123 |
| | |
| | | enable: false |
| | | |
| | | wms: |
| | | url: localhost:8080/kdywms |
| | | url: localhost:8080/jmwms |
| | | |
| | | # 下位机配置 |
| | | wcs-slave: |
| | |
| | | devpPlcId: ${wcs-slave.devp[0].id} |
| | | staNo: 102 |
| | | row: 1 |
| | | bay: 25 |
| | | bay: 1 |
| | | lev: 1 |
| | | # 堆垛机入库站点2 |
| | | crnInStn[1]: |
| | | devpPlcId: ${wcs-slave.devp[0].id} |
| | | staNo: 105 |
| | | row: 1 |
| | | bay: 26 |
| | | bay: 1 |
| | | lev: 1 |
| | | # 堆垛机出库站点1 |
| | | crnOutStn[0]: |
| | | devpPlcId: ${wcs-slave.devp[0].id} |
| | | staNo: 102 |
| | | row: 1 |
| | | bay: 25 |
| | | bay: 1 |
| | | lev: 1 |
| | | # 堆垛机出库站点2 |
| | | crnOutStn[1]: |
| | | devpPlcId: ${wcs-slave.devp[0].id} |
| | | staNo: 105 |
| | | row: 1 |
| | | bay: 1 |
| | | lev: 1 |
| | | # 堆垛机2 |
| | | crn[1]: |
| | | id: 1 |
| | | ip: 10.10.10.120 |
| | | port: 102 |
| | | rack: 0 |
| | | slot: 0 |
| | | # 偏移量,当堆垛机站点列号=1时,偏移量=2 |
| | | offset: 2 |
| | | demo: false |
| | | # 堆垛机入库站1 |
| | | crnInStn[0]: |
| | | devpPlcId: ${wcs-slave.devp[0].id} |
| | | staNo: 102 |
| | | row: 1 |
| | | bay: 1 |
| | | lev: 5 |
| | | # 堆垛机入库站点2 |
| | | crnInStn[1]: |
| | | devpPlcId: ${wcs-slave.devp[0].id} |
| | | staNo: 105 |
| | | row: 1 |
| | | bay: 1 |
| | | lev: 5 |
| | | # 堆垛机出库站点1 |
| | | crnOutStn[0]: |
| | | devpPlcId: ${wcs-slave.devp[0].id} |
| | | staNo: 102 |
| | | row: 1 |
| | | bay: 1 |
| | | lev: 5 |
| | | # 堆垛机出库站点2 |
| | | crnOutStn[1]: |
| | | devpPlcId: ${wcs-slave.devp[0].id} |
| | |
| | | barcode: ${wcs-slave.barcode[1].id} |
| | | backSta: 103 |
| | | led: ${wcs-slave.led[1].id} |
| | | # 条码扫描仪1 左下 1楼开始,111 |
| | | |
| | | # 条码扫描仪1 |
| | | barcode[0]: |
| | | id: 1 |
| | | ip: 10.10.10.3 |
| | | port: 51236 |
| | | # 条码扫描仪2, 114 |
| | | # 条码扫描仪2 |
| | | barcode[1]: |
| | | id: 2 |
| | | ip: 10.10.10.4 |
| | | port: 51236 |
| | | |
| | | # LED1 |
| | | led[0]: |
| | | id: 1 |
| | |
| | | box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, 0.5), 7px 7px 20px 0px rgba(0, 0, 0, 0.1), |
| | | 4px 4px 5px 0px rgba(0, 0, 0, 0.1); |
| | | } |
| | | .barcode { |
| | | position: absolute; |
| | | color: #a19c9c; |
| | | border: 1px solid rgb(108,167,168); |
| | | cursor: pointer; |
| | | text-align: center; |
| | | background-color: rgb(157, 217, 162); |
| | | font-size: 10px; |
| | | } |
| | | /* 16 */ |
| | | .btn-16 { |
| | | border: none; |
| | |
| | | var baseUrl = "/kdywcs"; |
| | | var baseUrl = "/jmwcs"; |
| | | |
| | | // 赋值 |
| | | function setVal(el, val) { |
| | |
| | | track = '', |
| | | tracks = '', |
| | | stn = '', |
| | | barcode = '', |
| | | stns = '', |
| | | stnArr = [], |
| | | barcodeArr = [], |
| | | floorBtn = '', |
| | | floorBtns = '', |
| | | floorBtnss = '', |
| | |
| | | for (let i = 0; i < areas.length;i++) { |
| | | |
| | | let stnss = areas[i].stns |
| | | let barcodes = areas[i].barcode |
| | | let floor = areas[i].text |
| | | floorId = areas[i].id |
| | | var position = (i+1)*100 |
| | |
| | | var index = i |
| | | var n = 1 |
| | | stnArr[index] = '' |
| | | barcodeArr[index] = '' |
| | | total[index] = '' |
| | | for (let j = 0; j < stnss.length; j++) { |
| | | if (stnss[j].type == "stn") { |
| | |
| | | } |
| | | |
| | | } |
| | | console.log(areas[i].barcode) |
| | | for (let k = 0; k < barcodes.length; k++) { |
| | | barcode = "<div class='barcode' id='" + barcodes[k].id + |
| | | "'style='width:" + barcodes[k].width + |
| | | "px;height: " + barcodes[k].height + |
| | | "px;line-height: " + barcodes[k].height + |
| | | "px;top: "+ barcodes[k].top + |
| | | "px;left: "+ barcodes[k].left + "px'>" + "</div>" |
| | | barcodeArr[i] = barcodeArr[i] + barcode |
| | | } |
| | | |
| | | } |
| | | floorInfo = racks + rackDescs + tracks + crns + stnArr[0] + floorBtnss |
| | | floorInfo = racks + rackDescs + tracks + crns + stnArr[0] + floorBtnss + barcodeArr[0] |
| | | |
| | | $(".main-part").append(floorInfo) |
| | | $("#line-total").html(total[0]) |
| | |
| | | } |
| | | function changFloor(e) { |
| | | $(".main-part").empty() // 清空节点 |
| | | floorInfo = racks + stnArr[e] +rackDescs + crns + tracks + floorBtnss |
| | | floorInfo = racks + stnArr[e] +rackDescs + crns + tracks + floorBtnss + barcodeArr[e] |
| | | $(".main-part").append(floorInfo) |
| | | $("#line-total").empty() |
| | | $("#line-total").html(total[e]) |
| | |
| | | mapInfo = { |
| | | "mapName": "NBJFWCS", |
| | | "mapName": "JXJMWCS", |
| | | "rackCount": 18, |
| | | "crnCount": 7, |
| | | "stbCount": 77, |
| | | "hpPosition": 1, |
| | | "hpPosition": 0, |
| | | "minBayNo": 2, |
| | | "floors": 1, |
| | | "floors": 2, |
| | | "racks": [ |
| | | { |
| | | "type": "rack", |
| | | "id": "rack1", |
| | | "top": 324, |
| | | "left": 208, |
| | | "width": 1600, |
| | | "top": 296, |
| | | "left": 370, |
| | | "width": 1200, |
| | | "height": 26, |
| | | "minBayNo": 2, |
| | | "maxBayNo": 56 |
| | | "minBayNo": 1, |
| | | "maxBayNo": 15 |
| | | }, |
| | | { |
| | | "type": "rack", |
| | | "id": "rack2", |
| | | "top": 386, |
| | | "left": 208, |
| | | "width": 1600, |
| | | "top": 375, |
| | | "left": 370, |
| | | "width": 1200, |
| | | "height": 26, |
| | | "minBayNo": 2, |
| | | "maxBayNo": 56 |
| | | "minBayNo": 1, |
| | | "maxBayNo": 15 |
| | | }, |
| | | { |
| | | "type": "rack", |
| | | "id": "rack3", |
| | | "top": 403, |
| | | "left": 370, |
| | | "width": 1200, |
| | | "height": 26, |
| | | "minBayNo": 1, |
| | | "maxBayNo": 15 |
| | | }, |
| | | { |
| | | "type": "rack", |
| | | "id": "rack4", |
| | | "top": 470, |
| | | "left": 370, |
| | | "width": 1200, |
| | | "height": 26, |
| | | "minBayNo": 1, |
| | | "maxBayNo": 15 |
| | | }, |
| | | ], |
| | | "rackDescs": [ |
| | |
| | | "type": "track", |
| | | "id": "lb_track1", |
| | | "text": "", |
| | | "top": 370, |
| | | "left": 154, |
| | | "width": 1700, |
| | | "top": 346, |
| | | "left": 300, |
| | | "width": 1300, |
| | | "height": 2 |
| | | }, |
| | | { |
| | | "type": "crane", |
| | | "id": "crn-1", |
| | | "text": "1", |
| | | "top": 358, |
| | | "left": 805, |
| | | "top": 334, |
| | | "left": 1417, |
| | | "width": 93, |
| | | "height": 22 |
| | | }, |
| | | { |
| | | "type": "track", |
| | | "id": "lb_track2", |
| | | "text": "", |
| | | "top": 452, |
| | | "left": 300, |
| | | "width": 1300, |
| | | "height": 2 |
| | | }, |
| | | { |
| | | "type": "crane", |
| | | "id": "crn-2", |
| | | "text": "2", |
| | | "top": 440, |
| | | "left": 1417, |
| | | "width": 93, |
| | | "height": 22 |
| | | }, |
| | |
| | | "type": "stn", |
| | | "id": "site-105", |
| | | "text": "105", |
| | | "top": 386, |
| | | "left": 1007, |
| | | "top": 403, |
| | | "left": 193, |
| | | "width": 78, |
| | | "height": 24 |
| | | }, |
| | |
| | | "type": "stn", |
| | | "id": "site-102", |
| | | "text": "102", |
| | | "top": 386, |
| | | "left": 1087, |
| | | "width": 78, |
| | | "top": 377, |
| | | "left": 273, |
| | | "width": 95, |
| | | "height": 24 |
| | | }, |
| | | { |
| | | "type": "stn", |
| | | "id": "site-104", |
| | | "text": "104", |
| | | "top": 412, |
| | | "left": 1007, |
| | | "top": 377, |
| | | "left": 193, |
| | | "width": 78, |
| | | "height": 24 |
| | | }, |
| | |
| | | "type": "stn", |
| | | "id": "site-101", |
| | | "text": "101", |
| | | "top": 412, |
| | | "left": 1087, |
| | | "width": 78, |
| | | "top": 403, |
| | | "left": 273, |
| | | "width": 95, |
| | | "height": 24 |
| | | }, |
| | | { |
| | | "type": "stn", |
| | | "id": "site-103", |
| | | "text": "103", |
| | | "top": 438, |
| | | "left": 1007, |
| | | "top": 429, |
| | | "left": 193, |
| | | "width": 78, |
| | | "height": 24 |
| | | }, |
| | |
| | | "type": "stn", |
| | | "id": "site-100", |
| | | "text": "100", |
| | | "top": 438, |
| | | "left": 1087, |
| | | "top": 477, |
| | | "left": 193, |
| | | "width": 78, |
| | | "height": 24 |
| | | }, |
| | | { |
| | | "type": "stn", |
| | | "id": "site-110", |
| | | "text": "110", |
| | | "top": 376, |
| | | "left": 1512, |
| | | "width": 78, |
| | | "height": 24 |
| | | }, |
| | | { |
| | | "type": "stn", |
| | | "id": "site-111", |
| | | "text": "111", |
| | | "top": 403, |
| | | "left": 1512, |
| | | "width": 78, |
| | | "height": 24 |
| | | }, |
| | | { |
| | | "type": "stn", |
| | | "id": "site-112", |
| | | "text": "112", |
| | | "top": 376, |
| | | "left": 1592, |
| | | "width": 78, |
| | | "height": 24 |
| | | }, |
| | | { |
| | | "type": "stn", |
| | | "id": "site-113", |
| | | "text": "113", |
| | | "top": 403, |
| | | "left": 1592, |
| | | "width": 78, |
| | | "height": 24 |
| | | }, |
| | | { |
| | | "type": "stn", |
| | | "id": "site-114", |
| | | "text": "114", |
| | | "top": 376, |
| | | "left": 1672, |
| | | "width": 78, |
| | | "height": 24 |
| | | }, |
| | | { |
| | | "type": "stn", |
| | | "id": "site-115", |
| | | "text": "115", |
| | | "top": 403, |
| | | "left": 1672, |
| | | "width": 78, |
| | | "height": 24 |
| | | }, |
| | | { |
| | | "type": "stn", |
| | | "id": "site-116", |
| | | "text": "116", |
| | | "top": 350, |
| | | "left": 1672, |
| | | "width": 78, |
| | | "height": 24 |
| | | }, |
| | | { |
| | | "type": "stn", |
| | | "id": "site-117", |
| | | "text": "117", |
| | | "top": 324, |
| | | "left": 1672, |
| | | "width": 78, |
| | | "height": 24 |
| | | }, |
| | | ], |
| | | "barcode": [ |
| | | { |
| | | "type": "barcode", |
| | | "id": "barcode-1", |
| | | "text": "", |
| | | "top": 454, |
| | | "left": 192, |
| | | "width": 78, |
| | | "height": 20 |
| | | } |
| | | ] |
| | | }, |
| | | |
| | | { |
| | | "type": "floor", |
| | | "id": "page_floor1", |
| | | "text": "5F", |
| | | "top": 4, |
| | | "left": 22, |
| | | "width": 1819, |
| | | "height": 668, |
| | | "stns": [ |
| | | { |
| | | "type": "stn", |
| | | "id": "site-505", |
| | | "text": "505", |
| | | "top": 403, |
| | | "left": 193, |
| | | "width": 78, |
| | | "height": 24 |
| | | }, |
| | | { |
| | | "type": "stn", |
| | | "id": "site-502", |
| | | "text": "502", |
| | | "top": 377, |
| | | "left": 273, |
| | | "width": 95, |
| | | "height": 24 |
| | | }, |
| | | { |
| | | "type": "stn", |
| | | "id": "site-504", |
| | | "text": "504", |
| | | "top": 377, |
| | | "left": 193, |
| | | "width": 78, |
| | | "height": 24 |
| | | }, |
| | | { |
| | | "type": "stn", |
| | | "id": "site-501", |
| | | "text": "501", |
| | | "top": 403, |
| | | "left": 273, |
| | | "width": 95, |
| | | "height": 24 |
| | | }, |
| | | { |
| | | "type": "stn", |
| | | "id": "site-503", |
| | | "text": "503", |
| | | "top": 429, |
| | | "left": 193, |
| | | "width": 78, |
| | | "height": 24 |
| | | }, |
| | | { |
| | | "type": "stn", |
| | | "id": "site-500", |
| | | "text": "500", |
| | | "top": 477, |
| | | "left": 193, |
| | | "width": 78, |
| | | "height": 24 |
| | | }, |
| | | ], |
| | | "barcode": [ |
| | | { |
| | | "type": "barcode", |
| | | "id": "barcode-2", |
| | | "text": "", |
| | | "top": 454, |
| | | "left": 192, |
| | | "width": 78, |
| | | "height": 20 |
| | | } |
| | | ] |
| | | }, |
| | | ] |
| | | } |
| | | ] |
| | |
| | | |
| | | var offSet = 0; |
| | | unit = -28.5; |
| | | offSet = 1710; //145 |
| | | offSet = 276; //145 |
| | | |
| | | |
| | | // crnEl.animate({left: offSet + 'px'}, 1000); |
| | |
| | | if (res.code === 200) { |
| | | var barcodes = res.data; |
| | | for (var i = 0; i < barcodes.length; i++) { |
| | | $("#code-decoder-data-" + barcodes[i].barcodeId).html(barcodes[i].codeValue); |
| | | $("#barcode-"+barcodes[i].barcodeId).html(barcodes[i].codeValue ? barcodes[i].codeValue : "--"); |
| | | } |
| | | } else if (res.code === 403) { |
| | | parent.location.href = baseUrl + "/login"; |