| | |
| | | that.object = object; |
| | | |
| | | that.no = 0; |
| | | that.objectType = null; |
| | | that.isDel = false; |
| | | that.readyIn = false; |
| | | that.run = false; |
| | |
| | | |
| | | let item = getArrVal(conveyObjects.objects, "no", that.no+""); |
| | | if (!that.position && item) { |
| | | that.objectType = item.objectType; |
| | | that.position = item.position; |
| | | } |
| | | if (!item) { |
| | |
| | | that.object.removeObject(that.wrkNo + "-Goods"); |
| | | } |
| | | |
| | | InitPallet(that.object, [{wrkNo: staData.wrkNo}], {position: that.position}, 2); |
| | | InitGoods(that.object, [{wrkNo: staData.wrkNo}], {position: that.position}, 2); |
| | | InitPallet(that.object, [{wrkNo: staData.wrkNo}], {position: that.position, objectType: that.objectType}, 2); |
| | | InitGoods(that.object, [{wrkNo: staData.wrkNo}], {position: that.position, objectType: that.objectType}, 2); |
| | | } |
| | | } |
| | | |
| | |
| | | clone.name = item.loc_no + "-" + "Pallet"; |
| | | break; |
| | | case 2: |
| | | positionX = ref.position.x || 0; |
| | | positionY = ref.position.y || 0; |
| | | positionZ = ref.position.z || 0; |
| | | switch (ref.objectType) { |
| | | case 'chain': |
| | | positionX = ref.position.x || 0; |
| | | positionY = ref.position.y || 0; |
| | | positionZ = ref.position.z || 0; |
| | | |
| | | positionX -= 48 - 1; |
| | | positionY += 20; |
| | | positionZ -= 138 + 20; |
| | | positionX -= 48 - 1; |
| | | positionY += 20; |
| | | positionZ -= 138 + 20; |
| | | break |
| | | case 'roller': |
| | | break |
| | | default: |
| | | break |
| | | } |
| | | |
| | | clone.name = item.wrkNo + "-" + "Pallet"; |
| | | break; |
| | |
| | | clone.name = item.loc_no + "-" + "Goods"; |
| | | break; |
| | | case 2: |
| | | positionX = ref.position.x || 0; |
| | | positionY = ref.position.y || 0; |
| | | positionZ = ref.position.z || 0; |
| | | switch (ref.objectType) { |
| | | case 'chain': |
| | | positionX = ref.position.x || 0; |
| | | positionY = ref.position.y || 0; |
| | | positionZ = ref.position.z || 0; |
| | | |
| | | positionX -= 48 - 1; |
| | | positionY += 20; |
| | | positionZ -= 138 + 20; |
| | | positionX -= 48 - 1; |
| | | positionY += 20; |
| | | positionZ -= 138 + 20; |
| | | break |
| | | case 'roller': |
| | | break |
| | | default: |
| | | break |
| | | } |
| | | |
| | | clone.name = item.wrkNo + "-" + "Goods"; |
| | | break; |