From 6d391ee71131033b547d2e3025555d6dc5ddddd1 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期二, 21 六月 2022 17:32:34 +0800
Subject: [PATCH] #
---
static/js/object/StoreGoods.js | 36 ++++++++++++++++++++++++++++++++++++
1 files changed, 36 insertions(+), 0 deletions(-)
diff --git a/static/js/object/StoreGoods.js b/static/js/object/StoreGoods.js
index eb50d8b..fff753f 100644
--- a/static/js/object/StoreGoods.js
+++ b/static/js/object/StoreGoods.js
@@ -44,9 +44,27 @@
positionZ = (item.bay1-1)*-ref.binHeight || 0;
clone.name = item.loc_no + "-" + "Pallet";
+ clone.traverse (function (child) {
+ if (child instanceof THREE.Mesh) {
+ child.name = item.loc_no + "-" + child.name;
+ }
+ })
break;
case 2:
+ positionX = ref.position.x || 0;
+ positionY = ref.position.y || 0;
+ positionZ = ref.position.z || 0;
+ positionX -= 48 - 1;
+ positionY += 20;
+ positionZ -= 138 + 20;
+
+ clone.name = item.wrkNo + "-" + "Pallet";
+ clone.traverse (function (child) {
+ if (child instanceof THREE.Mesh) {
+ child.name = item.wrkNo + "-" + child.name;
+ }
+ })
break;
default:
console.error("InitPallet param[type] error ===>> " + type);
@@ -96,9 +114,27 @@
positionZ = (item.bay1-1)*-ref.binHeight || 0;
clone.name = item.loc_no + "-" + "Goods";
+ clone.traverse (function (child) {
+ if (child instanceof THREE.Mesh) {
+ child.name = item.loc_no + "-" + child.name;
+ }
+ })
break;
case 2:
+ positionX = ref.position.x || 0;
+ positionY = ref.position.y || 0;
+ positionZ = ref.position.z || 0;
+ positionX -= 48 - 1;
+ positionY += 20;
+ positionZ -= 138 + 20;
+
+ clone.name = item.wrkNo + "-" + "Goods";
+ clone.traverse (function (child) {
+ if (child instanceof THREE.Mesh) {
+ child.name = item.wrkNo + "-" + child.name;
+ }
+ })
break;
default:
console.error("InitGoods param[type] error ===>> " + type);
--
Gitblit v1.9.1