From 82e858eff40dc40f1d3288949681e1535c8fc6b3 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期四, 07 四月 2022 08:12:58 +0800
Subject: [PATCH] #

---
 static/js/object/StoreGoods.js |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/static/js/object/StoreGoods.js b/static/js/object/StoreGoods.js
index 945f414..1f24897 100644
--- a/static/js/object/StoreGoods.js
+++ b/static/js/object/StoreGoods.js
@@ -46,15 +46,13 @@
                         clone.name = item.loc_no + "-" + "Pallet";
                         break;
                     case 2:
-                        console.log(item);
-                        console.log(ref)
                         positionX = ref.position.x || 0;
                         positionY = ref.position.y || 0;
                         positionZ = ref.position.z || 0;
 
-                        positionX -= 46;
-                        positionY += 50;
-                        positionZ -= 128;
+                        positionX -= 48 - 1;
+                        positionY += 20;
+                        positionZ -= 138 + 20;
 
                         clone.name = item.wrkNo + "-" + "Pallet";
                         break;
@@ -108,7 +106,15 @@
                     clone.name = item.loc_no + "-" + "Goods";
                     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";
                     break;
                 default:
                     console.error("InitGoods param[type] error ===>> " + type);

--
Gitblit v1.9.1