From 0b75b43cca6c04f49ddeae6d873ac53185e390bc Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期四, 07 四月 2022 13:08:36 +0800
Subject: [PATCH] #

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

diff --git a/static/js/object/StoreGoods.js b/static/js/object/StoreGoods.js
index eb50d8b..1f24897 100644
--- a/static/js/object/StoreGoods.js
+++ b/static/js/object/StoreGoods.js
@@ -46,7 +46,15 @@
                         clone.name = item.loc_no + "-" + "Pallet";
                         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";
                         break;
                     default:
                         console.error("InitPallet param[type] error ===>> " + type);
@@ -98,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