From 0a6e149ec5684f243bdadb0b8ef780cb71000ace Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@63.com> Date: 星期三, 06 四月 2022 15:48:35 +0800 Subject: [PATCH] # --- static/js/object/StaTask.js | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/static/js/object/StaTask.js b/static/js/object/StaTask.js index 0f79d58..eb2f998 100644 --- a/static/js/object/StaTask.js +++ b/static/js/object/StaTask.js @@ -1,8 +1,10 @@ -import {StoreGoods} from './StoreGoods.js'; +import {InitPallet, InitGoods} from './StoreGoods.js'; // 杈撻�佺嚎褰撳墠杩愯鐘舵�佸璞� function StaTask(staData, object) { let that = this; + + that.object = object; that.no = 0; that.run = false; @@ -11,10 +13,17 @@ that.inlet = -1; that.outlet = -1; + that.position = null; + let init = function () { that.no = staData.no; that.inlet = staData.inlet; that.outlet = staData.outlet; + + let item = getArrVal(conveyObjects.objects, "no", that.no+""); + if (!that.position && item) { + that.position = item.position; + } } init(); @@ -23,11 +32,14 @@ console.error(staData.no + "鍙疯緭閫佺嚎鏇存柊澶辫触"); return; } + if (that.loaded === 0 && staData.loaded === 1) { // 鏃犺揣 ===>> 鏈夎揣 // 1.鍏ュ簱绗竴绔� 銆愭柊澧炪�� if (that.inlet === 1) { + InitPallet(that.object); + InitGoods(that.object); // 2.鏉ヨ嚜鍏朵粬绔欑偣鐨勮揣鐗� 銆愮Щ鍔ㄣ�� } else { -- Gitblit v1.9.1