(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-b88f"],{34:function(e,t){},A0nZ:function(e,t,i){"use strict";var a=i("iCc5"),s=i.n(a),n=i("Gvnp");t.a=function e(t){s()(this,e);var i={length:t.Length,width:t.Width,height:t.Height,position:{x:t.Position.X,y:t.Position.Y,z:t.Position.Z},style:{transparent:1,opacity:.4,color:1560252,depthTest:0}},a=new n.a(i);return a.name=t.Name,a.uuid=t.No,a.direction=t.Direction,a.storage_type=t.Storage_Type,a.type=t.type,"goods"===t.type&&(a.weights=t.weights),a.state=t.state,a}},CNAP:function(e,t,i){"use strict";i.d(t,"a",function(){return s});var a=i("Womt");function s(e,t){(new a.TextureLoader).load("/static/images/floor.jpg",function(i){i.wrapS=i.wrapT=a.RepeatWrapping,i.repeat.set(10,10);var s=new a.BoxGeometry(e.length,1,e.depth),n=new a.MeshBasicMaterial({map:i,side:a.DoubleSide}),o=new a.Mesh(s,n);o.position.y=-.5,o.name="地面",t.addObject(o)})}},CvMc:function(e,t,i){"use strict";var a=i("t3Un");t.a={GetAgvsList:function(){return Object(a.a)({url:"/agv/GetAgvsList",method:"post"})},CancelTask:function(e){return Object(a.a)({url:"/agv/cancelTask",method:"post",data:e})},GetAgvStatus:function(e){return Object(a.a)({url:"/agv/getAgvStatus",method:"post",data:e})},GetTaskRecord:function(e){return Object(a.a)({url:"/agv/getTaskRecord",method:"post",data:e})},retrievePallet:function(e){return Object(a.a)({url:"/agv/retrievePallet",method:"post",data:e})},BatchRetrievePallet:function(e){return Object(a.a)({url:"/agv/BatchRetrievePallet",method:"post",data:e})},setWorkStoreTunnel:function(e){return Object(a.a)({url:"/agv/setWorkStoreTunnel",method:"post",data:e})},getWorkStoreTunnel:function(e){return Object(a.a)({url:"/agv/getWorkStoreTunnel",method:"post",data:e})},productOutStore:function(e){return Object(a.a)({url:"/agv/ProductOutStore",method:"post",data:e})},productBatchOutStore:function(e){return Object(a.a)({url:"/agv/ProductBatchOutStore",method:"post",data:e})},productBatchBackStore:function(e){return Object(a.a)({url:"/agv/ProductBatchBackStore",method:"post",data:e})},productInStoreNow:function(){return Object(a.a)({url:"/agv/productInStoreNow",method:"post"})},palletInStore:function(e){return Object(a.a)({url:"/agv/PalletOutStacker",method:"post",data:e})},palletOutStoreNow:function(){return Object(a.a)({url:"/agv/palletOutStoreNow",method:"post"})}}},FgYo:function(e,t,i){"use strict";var a=i("TGos");i.n(a).a},Gvnp:function(e,t,i){"use strict";var a=i("iCc5"),s=i.n(a),n=i("Womt");function o(){}o.hasObj=function(e){return null!=e&&void 0!==e},o.createMaterial=function(e,t,i){var a=16711680,s=null,r=null,_=0,c=0,l=0,h=1;o.hasObj(i)&&(a=i.color||16711680,s=i.image||null,_=i.allowRepeat||0,c=i.transparent||0,l=i.opacity||0,h=i.depthTest);var u=new n.MeshPhongMaterial({map:r,color:a});return null!=s&&(r=(new n.TextureLoader).load(s),1==_&&(r.repeat.x=e/128,r.repeat.y=t/128,r.repeat.y=5,r.wrapS=r.wrapT=n.RepeatWrapping),u=new n.MeshBasicMaterial({map:r})),1==c&&(u.transparent=!0),0==h&&(u.depthTest=!1),u.opacity=l,u},o.transPosition=function(e,t){return e.X=e.X+t.X,e.Y=e.Y+t.Y,e.Z=e.Z+t.Z,e},o.getQueryVariable=function(e){for(var t=window.location.search.substring(1).split("&"),i=0;i库位名称:"+d.name+"
")+"现存货物数:"+d.state+"
";for(var g=0;g包重:"+d.weights[g]+"kg "}else p=(p=p+"巷道号:"+d.name+"
")+"存储货物数量:"+d.state+"包
";r.innerHTML=p,(l=[]).push(d),a.selectedObjects=l}else r.style.cssText="display:none;"}else r.style.cssText="display:none;"}),window.addEventListener("dblclick",function(e){var s,n;s=e.clientX,n=e.clientY;var h=o.getBoundingClientRect();c.x=(s-h.x)/o.clientWidth*2-1,c.y=-(n-h.y)/o.clientHeight*2+1,_.setFromCamera(c,i);var u=_.intersectObjects([t],!0);if(0!=u.length){var d=u[0].object;if("Store"==d.type){var p=u[0].object.uuid;(l=[]).push(d),a.selectedObjects=l,window.top.location.href="#/store3d/store3dsub?area_no="+p}}else r.style.cssText="display:none;"})}},Nf6j:function(e,t,i){"use strict";var a=i("iCc5"),s=i.n(a),n=i("Womt");i("WY20"),i("So0U");t.a=function e(t,i,a,o,r){s()(this,e);parseInt(r.showLength/2),parseInt(r.showWidth/2);for(var _=0;_=0){var c=parseInt(t[_].l/r.showScaleX)||1,l=parseInt(t[_].w/r.showScaleY)||1,h=(t[_].x-r.centerBinX)/r.showScaleX,u=(t[_].y-r.centerBinY)/r.showScaleY,d=new n.PlaneGeometry(c,l),p=new n.MeshPhongMaterial({color:617108,side:n.DoubleSide}),g=new n.Mesh(d,p);g.position.y=2,g.position.z=u,g.position.x=h,g.rotation.x=-Math.PI/2,r.addObject(g)}}},PP8T:function(e,t,i){"use strict";var a=i("iCc5"),s=i.n(a),n=i("Womt"),o=(i("Gvnp"),i("A0nZ"));t.a=function e(t,i,a,r,_){if(s()(this,e),0!=i.length){var c=i[0].l/_.showScaleX,l=i[0].w/_.showScaleY,h=c,u=.6*l;if(t.w>t.h){var d=h;h=u,u=d}for(var p=new n.BoxGeometry(h,.6*l,u),g=new n.BoxGeometry(h,6,u),m=["/static/images/side.jpg","/static/images/side.jpg","/static/images/side1.jpg","/static/images/side.jpg","/static/images/side.jpg","/static/images/side.jpg"],M=["/static/images/side1.jpg","/static/images/side1.jpg","/static/images/side1.jpg","/static/images/side1.jpg","/static/images/side1.jpg","/static/images/side1.jpg"],w=["/static/images/pallet_lr.jpg","/static/images/pallet_lr.jpg","/static/images/pallet_ud.jpg","/static/images/pallet_ud.jpg","/static/images/pallet_fb.jpg","/static/images/pallet_fb.jpg"],f=[],b=[],O=[],E=0;E0&&0===i[T].storage_type)for(var L=0;L0&&1==i[T].storage_type)for(var x=0;xreal_width&&(this.showLength=container.clientWidth,this.showWidth=parseInt(this.showLength*real_width/real_length)),this.showScaleX=1*real_length/this.showLength,this.showScaleY=1*real_width/this.showWidth}},{key:"start",value:function(){var e=this;this.timerVehicle=setInterval(function(){e.updateVehicleList()},5e3),this.timerStore=setInterval(function(){e.updateStore(e)},1e4),this.initMain(),this.animate()}},{key:"clearPage",value:function(){this.scene=null,this.camera=null,this.outlinePass=null,this.orbitControl=null,cancelAnimationFrame(this.myReq),this.renderer.dispose(),this.renderer.forceContextLoss(),this.renderer.domElement=null,this.renderer=null,this.composer=null,clearInterval(this.timerVehicle),clearInterval(this.timerStore)}},{key:"initScene",value:function(){this.scene=new three__WEBPACK_IMPORTED_MODULE_3__.Scene}},{key:"initFloor",value:function(){var e=[];e.length=parseInt(this.area.w/this.showScaleX),e.depth=parseInt(this.area.h/this.showScaleY),new _Floor__WEBPACK_IMPORTED_MODULE_6__.a(e,this)}},{key:"initAgvCar",value:function(){var e=this;_api_agv__WEBPACK_IMPORTED_MODULE_19__.a.GetAgvStatus({type:"FORKLIFT"}).then(function(t){var i=JSON.parse(babel_runtime_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_0___default()(t)).data.data[0];console.log(i),(new _AGVCar__WEBPACK_IMPORTED_MODULE_8__.a).Load(e,"showAgvCar","froklift",0)})}},{key:"initStoreBuilding",value:function initStoreBuilding(){var Store3DModel=eval("("+window.localStorage.getItem("Store3DModel")+")");new _StoreBuilding__WEBPACK_IMPORTED_MODULE_11__.a(Store3DModel.data.charge,Store3DModel.data.origin,this)}},{key:"showAgvCar",value:function(e,t,i){var a=[];a.name=t,a.index=i,a.object=e,0===i?e.position.set(0,0,0):e.position.set(-1200,20,1200),this.agvList.push(a),this.addObject(e)}},{key:"initStats",value:function(){var e=new stats_js__WEBPACK_IMPORTED_MODULE_4__;return e.domElement.style.position="absolute",e.domElement.style.left="0px",e.domElement.style.top="0px",document.body.appendChild(e.domElement),e}},{key:"initStock",value:function initStock(){var Store3DModel=eval("("+window.localStorage.getItem("Store3DModel")+")");new _StoreStatusSub__WEBPACK_IMPORTED_MODULE_12__.a(this.area,this.bins_select,Store3DModel.data.origin,Store3DModel.data.size,this)}},{key:"initAreas",value:function initAreas(){var Store3DModel=eval("("+window.localStorage.getItem("Store3DModel")+")");new _StoreAreas__WEBPACK_IMPORTED_MODULE_9__.a(Store3DModel.data.areas,Store3DModel.data.bins,Store3DModel.data.origin,Store3DModel.data.size,this)}},{key:"initBins",value:function initBins(){var Store3DModel=eval("("+window.localStorage.getItem("Store3DModel")+")");new _StoreBinsSub__WEBPACK_IMPORTED_MODULE_10__.a(this.bins_select,this.area,Store3DModel.data.origin,Store3DModel.data.size,this)}},{key:"initCamera",value:function(){this.camera=new three__WEBPACK_IMPORTED_MODULE_3__.PerspectiveCamera(60,container.clientWidth/container.clientHeight,.1,1e4),this.camera.position.x=0,this.camera.position.y=130,this.camera.position.z=130,this.camera.lookAt(0,0,0),this.scene.add(this.camera)}},{key:"initRenderer",value:function(){this.renderer=new three__WEBPACK_IMPORTED_MODULE_3__.WebGLRenderer({antialias:!0,alpha:!0,logarithmicDepthBuffer:!0}),this.renderer.setSize(container.clientWidth,container.clientHeight),this.renderer.setClearColor(16119285),this.renderer.setPixelRatio(window.devicePixelRatio),container.appendChild(this.renderer.domElement)}},{key:"initComposer",value:function(){this.composer=new three_outlinepass__WEBPACK_IMPORTED_MODULE_14__.EffectComposer(this.renderer);var e=new three_outlinepass__WEBPACK_IMPORTED_MODULE_14__.RenderPass(this.scene,this.camera);this.outlinePass=new three_outlinepass__WEBPACK_IMPORTED_MODULE_14__.OutlinePass(new three__WEBPACK_IMPORTED_MODULE_3__.Vector2(container.clientWidth,container.clientHeight),this.scene,this.camera),this.composer.addPass(e),this.composer.addPass(this.outlinePass)}},{key:"removeObject",value:function(e){}},{key:"initLight",value:function(){var e=new three__WEBPACK_IMPORTED_MODULE_3__.AmbientLight(16777215,1);e.position.set(0,0,0),this.addObject(e);var t=new three__WEBPACK_IMPORTED_MODULE_3__.DirectionalLight(16777215,.3);t.position.set(0,200,0),this.addObject(t);var i=new three__WEBPACK_IMPORTED_MODULE_3__.PointLight(16777215,.3);i.position.set(-500,200,0),this.addObject(i);var a=new three__WEBPACK_IMPORTED_MODULE_3__.PointLight(16777215,.3);a.position.set(500,200,0),this.addObject(a)}},{key:"initOrbitControl",value:function(){this.orbitControl=new three_examples_jsm_controls_OrbitControls__WEBPACK_IMPORTED_MODULE_15__.a(this.camera,this.renderer.domElement),this.orbitControl.enableDamping=!0,this.orbitControl.dampingFactor=.5,this.orbitControl.minDistance=0,this.orbitControl.maxDistance=2e4,this.orbitControl.maxPolarAngle=Math.PI/2.2}},{key:"initAxisHelper",value:function(){var e=new three__WEBPACK_IMPORTED_MODULE_3__.AxisHelper(1e3);this.addObject(e)}},{key:"addObject",value:function(e){this.scene.add(e),this.objects.push(e)}},{key:"initReSize",value:function(){var e=this;window.addEventListener("resize",function(){var t=container.clientWidth,i=container.clientHeight;e.camera.aspect=t/i,console.log("------------------------"),console.log(e.camera.aspect),e.camera.updateProjectionMatrix(),e.renderer.setSize(t,i),e.composer.setSize(t,i)},!1)}},{key:"animate",value:function(){requestAnimationFrame(this.animate.bind(this)),null!=this.composer&&this.composer.render()}},{key:"updateVehicleList",value:function updateVehicleList(){var _this5=this,Store3DModel=eval("("+window.localStorage.getItem("Store3DModel")+")"),vehicle_list=document.getElementById("vehicle_list");vehicle_list.innerHTML="";var param={type:"FORKLIFT"};_api_agv__WEBPACK_IMPORTED_MODULE_19__.a.GetAgvStatus(param).then(function(e){var t=JSON.parse(babel_runtime_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_0___default()(e)).data.data[0],i=parseInt(_this5.showLength/2),a=parseInt(_this5.showWidth/2),s=parseInt((t.posX-Store3DModel.data.origin.x)/_this5.showScaleX-i)||0,n=parseInt(a-(t.posY-Store3DModel.data.origin.y)/_this5.showScaleY)||0;_this5.agvList[0].object.position.set(s,0,n),_this5.agvList[0].object.lookAt(s,0,n)})}},{key:"updateStore",value:function(e){var t=this;_api_store__WEBPACK_IMPORTED_MODULE_17__.a.GetStoreModel().then(function(e){var i=babel_runtime_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_0___default()(e.data);window.localStorage.setItem("Store3DModel",i),t.scene.remove(t.storestatus0),t.scene.remove(t.storestatus1),t.initStock()}),_api_task__WEBPACK_IMPORTED_MODULE_18__.a.UpdateTaskState().then(function(e){})}}]),_class}();__webpack_exports__.a=_class},ZbKm:function(e,t,i){"use strict";var a=i("iCc5"),s=i.n(a),n=i("Womt");i("WY20"),i("So0U");t.a=function e(t,i,a){s()(this,e);for(var o=["/static/images/powery.png","/static/images/powery.png","/static/images/powerz.png","/static/images/power.png","/static/images/power.png","/static/images/powery.png"],r=[],_=0;_n[r]&&(n[r]=t[c].x+t[c].w),t[c].y>o[r]&&(o[r]=t[c].y+t[c].h),t[c].x=e.x&&t[_].x<=e.x+e.w&&t[_].y>=e.y&&t[_].y<=e.y+e.h&&(t[_].x>s&&(s=t[_].x+t[_].w/2),t[_].y>o&&(o=t[_].y+t[_].h/2),t[_].x