From aa1cc88de27980764647a829a8a8261aee4aa873 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期三, 06 四月 2022 17:05:34 +0800
Subject: [PATCH] #

---
 static/js/object/StaTask.js    |    6 +++---
 static/js/object/StoreGoods.js |   10 ++++++++++
 2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/static/js/object/StaTask.js b/static/js/object/StaTask.js
index eb2f998..b8384ac 100644
--- a/static/js/object/StaTask.js
+++ b/static/js/object/StaTask.js
@@ -38,8 +38,8 @@
 
             // 1.鍏ュ簱绗竴绔� 銆愭柊澧炪��
             if (that.inlet === 1) {
-                InitPallet(that.object);
-                InitGoods(that.object);
+                InitPallet(that.object, [{wrkNo: staData.wrkNo}], {position: that.position}, 2);
+                InitGoods(that.object, [{wrkNo: staData.wrkNo}], null, 2);
 
             // 2.鏉ヨ嚜鍏朵粬绔欑偣鐨勮揣鐗� 銆愮Щ鍔ㄣ��
             } else {
@@ -60,7 +60,7 @@
         // 瀹炴椂鏇存柊
         that.loaded = staData.loaded;
 
-        that.run = true;
+        // that.run = true;
 
     }
 
diff --git a/static/js/object/StoreGoods.js b/static/js/object/StoreGoods.js
index eb50d8b..945f414 100644
--- a/static/js/object/StoreGoods.js
+++ b/static/js/object/StoreGoods.js
@@ -46,7 +46,17 @@
                         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;
+
+                        clone.name = item.wrkNo + "-" + "Pallet";
                         break;
                     default:
                         console.error("InitPallet param[type] error ===>> " + type);

--
Gitblit v1.9.1