Files
oms/back/public/static/js/chunk-0ea8.9babcf3f.js
2026-03-10 18:45:36 +08:00

1 line
25 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-0ea8"],{A0nZ:function(e,t,i){"use strict";var a=i("iCc5"),o=i.n(a),r=i("Gvnp");t.a=function e(t){o()(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 r.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}},Bp9D:function(e,t,i){"use strict";var a=i("iCc5"),o=i.n(a),r=i("Womt");i("Gvnp");t.a=function e(t,i,a,s){if(o()(this,e),0!=t.length){for(var n=t[0].l/s.showScaleX,_=t[0].w/s.showScaleY,l=new r.BoxGeometry(n,.6*_,.6*_),c=new r.BoxGeometry(n,6,.6*_),h=["/static/images/side.jpg","/static/images/side.jpg","/static/images/side1.jpg","/static/images/side.jpg","/static/images/side.jpg","/static/images/side.jpg"],u=["/static/images/side1.jpg","/static/images/side1.jpg","/static/images/side1.jpg","/static/images/side1.jpg","/static/images/side1.jpg","/static/images/side1.jpg"],d=["/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"],p=[],g=[],m=[],M=0;M<h.length;M++)p.push(new r.MeshPhongMaterial({color:"white",map:r.ImageUtils.loadTexture(h[M],void 0,void 0)})),g.push(new r.MeshPhongMaterial({color:"white",map:r.ImageUtils.loadTexture(u[M],void 0,void 0)})),m.push(new r.MeshPhongMaterial({color:"white",map:r.ImageUtils.loadTexture(d[M],void 0,void 0)}));for(var w=new r.InstancedMesh(l,new r.MeshFaceMaterial(p),300),O=new r.InstancedMesh(l,new r.MeshFaceMaterial(g),1e3),E=new r.InstancedMesh(c,new r.MeshFaceMaterial(m),30),f=new r.Object3D,b=parseInt(s.showLength/2),v=parseInt(s.showWidth/2),P=0,D=0,S=0,y=0;y<t.length;y++){if(t[y].state>0&&0==t[y].storage_type)for(var I=0;I<t[y].state;I++){var C=t[y].x/s.showScaleX-b,B=(a.y-t[y].y)/s.showScaleY-v;f.position.set(C,.6*_/2+.6*_*I+2,B),f.updateMatrix(),0!==I?O.setMatrixAt(P++,f.matrix):w.setMatrixAt(D++,f.matrix)}if(t[y].state>0&&1==t[y].storage_type)for(var T=0;T<t[y].state;T++){var L=t[y].x/s.showScaleX-b,j=(a.y-t[y].y)/s.showScaleY-v;f.position.set(L,6*T+6,j),f.updateMatrix(),E.setMatrixAt(S++,f.matrix)}}return[w,O,E]}}},CNAP:function(e,t,i){"use strict";i.d(t,"a",function(){return o});var a=i("Womt");function o(e,t){(new a.TextureLoader).load("/static/images/floor.jpg",function(i){i.wrapS=i.wrapT=a.RepeatWrapping,i.repeat.set(10,10);var o=new a.BoxGeometry(e.length,1,e.depth),r=new a.MeshBasicMaterial({map:i,side:a.DoubleSide}),s=new a.Mesh(o,r);s.position.y=-.5,s.name="地面",t.addObject(s)})}},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"})}}},Gvnp:function(e,t,i){"use strict";var a=i("iCc5"),o=i.n(a),r=i("Womt");function s(){}s.hasObj=function(e){return null!=e&&void 0!==e},s.createMaterial=function(e,t,i){var a=16711680,o=null,n=null,_=0,l=0,c=0,h=1;s.hasObj(i)&&(a=i.color||16711680,o=i.image||null,_=i.allowRepeat||0,l=i.transparent||0,c=i.opacity||0,h=i.depthTest);var u=new r.MeshPhongMaterial({map:n,color:a});return null!=o&&(n=(new r.TextureLoader).load(o),1==_&&(n.repeat.x=e/128,n.repeat.y=t/128,n.repeat.y=5,n.wrapS=n.wrapT=r.RepeatWrapping),u=new r.MeshBasicMaterial({map:n})),1==l&&(u.transparent=!0),0==h&&(u.depthTest=!1),u.opacity=c,u},s.transPosition=function(e,t){return e.X=e.X+t.X,e.Y=e.Y+t.Y,e.Z=e.Z+t.Z,e},s.getQueryVariable=function(e){for(var t=window.location.search.substring(1).split("&"),i=0;i<t.length;i++){var a=t[i].split("=");if(a[0]==e)return a[1]}return!1};t.a=function e(t){o()(this,e),this.length=t.length||1,this.width=t.width||1,this.height=t.height||1,this.Name=t.objName,this.Direction=t.Direction,this.positionX=t.position.x||0,this.positionY=t.position.y||0,this.positionZ=t.position.z||0,this.style=t.style||{color:16711680},this.stypeType=this.style.type||0;var i=s.createMaterial(this.width,this.height,this.style);1==this.stypeType&&((i=[]).push(s.createMaterial(this.width,this.height,this.style.up)),i.push(s.createMaterial(this.width,this.height,this.style.down)),i.push(s.createMaterial(this.width,this.height,this.style.right)),i.push(s.createMaterial(this.width,this.height,this.style.left)),i.push(s.createMaterial(this.width,this.height,this.style.fore)),i.push(s.createMaterial(this.width,this.height,this.style.behind)));var a=new r.BoxGeometry(this.length,this.height,this.width),n=new r.Mesh(a,i);return n.name=this.Name,n.direction=this.direction,n.position.x=this.positionX,n.position.y=this.positionY,n.position.z=this.positionZ,n}},McB7:function(e,t,i){"use strict";var a=i("iCc5"),o=i.n(a),r=i("Womt");t.a=function e(t,i,a,s,n){o()(this,e);var _=new r.Raycaster,l=new r.Vector2,c=[];window.addEventListener("click",function(e){var o,r;e.changedTouches?(o=e.changedTouches[0].pageX,r=e.changedTouches[0].pageY):(o=e.clientX,r=e.clientY);var h=s.getBoundingClientRect();l.x=(o-h.x)/s.clientWidth*2-1,l.y=-(r-h.y)/s.clientHeight*2+1,_.setFromCamera(l,i);var u=_.intersectObjects([t],!0);if(0!=u.length){var d=u[0].object;if(console.log("selectObject",d),"Store"===d.type||"goods"===d.type){n.style.cssText="display:block;position:absolute;",n.style.left=o,n.style.top=r-40,n.style.cssText+="width:200px;top:100px;left:100px;z-index:99999;background-color:#66666666; ","Store"===d.type?n.style.cssText+="height:150px;":"goods"===d.type&&(n.style.cssText+="height:300px;"),n.style.cssText+="border-radius:5px; ",n.style.cssText+="padding-left:10px; ",n.style.cssText+="padding-top:10px; ",n.style.cssText+="font-size:20px; ",n.style.cssText+="line-height:30px; ",n.style.cssText+="top:"+(r-80)+"px",n.style.cssText+=";left:"+o+"px";var p="";if("goods"===d.type){p=(p=p+"<p>库位名称:"+d.name+"</p>")+"<p>现存货物数:"+d.state+"</p>";for(var g=0;g<d.weights.length;g++)p=p+"<p>包重:"+d.weights[g]+"kg </p>"}else p=(p=p+"<p>巷道号:"+d.name+"</p>")+"<p>存储货物数量:"+d.state+"包 </p>";n.innerHTML=p,(c=[]).push(d),a.selectedObjects=c}else n.style.cssText="display:none;"}else n.style.cssText="display:none;"}),window.addEventListener("dblclick",function(e){var o,r;o=e.clientX,r=e.clientY;var h=s.getBoundingClientRect();l.x=(o-h.x)/s.clientWidth*2-1,l.y=-(r-h.y)/s.clientHeight*2+1,_.setFromCamera(l,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;(c=[]).push(d),a.selectedObjects=c,window.top.location.href="#/store3d/store3dsub?area_no="+p}}else n.style.cssText="display:none;"})}},"VI+e":function(e,t,i){"use strict";var a=i("iCc5"),o=i.n(a),r=i("Womt");i("WY20"),i("So0U");t.a=function e(t,i,a,s){o()(this,e);for(var n=0;n<t.length;n++)if(parseInt(t[n].state)>=0){var _=parseInt(s.showLength/2),l=parseInt(s.showWidth/2),c=parseInt(t[n].l/s.showScaleX)||1,h=parseInt(t[n].w/s.showScaleY)||1,u=t[n].x/s.showScaleX-_,d=(a.y-t[n].y)/s.showScaleY-l,p=new r.PlaneGeometry(c,h),g=new r.MeshPhongMaterial({color:617108,side:r.DoubleSide}),m=new r.Mesh(p,g);m.position.y=2,m.position.z=d,m.position.x=u,m.rotation.x=-Math.PI/2,s.addObject(m)}}},"WLF+":function(module,__webpack_exports__,__webpack_require__){"use strict";var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("sk9p"),babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__),babel_runtime_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("gDS+"),babel_runtime_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(babel_runtime_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_1__),babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("iCc5"),babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__),babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("V7oC"),babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__),three__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("Womt"),stats_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("MZFn"),stats_js__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(stats_js__WEBPACK_IMPORTED_MODULE_5__),_tweenjs_tween_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("IrXD"),_Floor__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("CNAP"),_Route__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("rNma"),_AGVCar__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("qO91"),_StoreAreas__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("y4LO"),_StoreBins__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("VI+e"),_StoreBuilding__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("ZbKm"),_StoreStatus__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("Bp9D"),_ObjectSelect__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("McB7"),three_outlinepass__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("fwjr"),three_outlinepass__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(three_outlinepass__WEBPACK_IMPORTED_MODULE_15__),three_examples_jsm_controls_OrbitControls__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("RyHr"),three_examples_jsm_controls_PointerLockControls__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("sxfH"),_api_store__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("c/X4"),_api_task__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("sZnh"),_api_agv__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("CvMc"),_api_position__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("bm9Z"),_class=function(){function _class(e,t,i){babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this,_class),this.scene=null,this.camera=null,this.container=e,this.label=i,this.panel=t,this.renderer=null,this.objects=[],this.firstTime=1,this.time=0,this.origin=[],this.roomRateShow=1,this.goodTypes=[],this.objectsRoomRate=[],this.velocity=new three__WEBPACK_IMPORTED_MODULE_4__.Vector3,this.direction=new three__WEBPACK_IMPORTED_MODULE_4__.Vector3,this.prevTime=performance.now(),this.moveForward=!1,this.moveBackward=!1,this.moveLeft=!1,this.moveRight=!1,this.canJump=!1,this.objectLockPointer=[],this.spriteIsShow=1,this.storeIsShow=0,this.groupIsShow=0,this.shelfIsShow=0,this.time_now=(new Date).getTime()/1e3,this.time_old=(new Date).getTime()/1e3,this.timerVehicle=null,this.timerStore=null,this.showScaleX=1,this.showScaleY=1,this.showLength=0,this.showWidth=0,this.agvList=[],this.storestatus0=null,this.storestatus1=null,this.stats=null}return babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(_class,[{key:"initMain",value:function(){this.initScene(),this.initCamera(),this.initRenderer(),this.initOrbitControl(),this.initLight(),this.initComposer(),this.initObjectSelect(),this.initReSize(),this.initStoreModel()}},{key:"initStoreModel",value:function(){var e=this;_api_store__WEBPACK_IMPORTED_MODULE_18__.a.GetStoreModel().then(function(t){var i=babel_runtime_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_1___default()(t.data);window.localStorage.setItem("Store3DModel",i),e.calcShowParam(),e.initFloor(),e.initAreas(),e.initBins(),e.initStock(),e.initStoreBuilding(),e.initAgvCar()})}},{key:"initObjectSelect",value:function(){new _ObjectSelect__WEBPACK_IMPORTED_MODULE_14__.a(this.scene,this.camera,this.outlinePass,this.container,this.label)}},{key:"calcShowParam",value:function calcShowParam(){var Store3DModel=eval("("+window.localStorage.getItem("Store3DModel")+")"),real_length=parseInt(Store3DModel.data.size.x-Store3DModel.data.origin.x),real_width=parseInt(Store3DModel.data.size.y-Store3DModel.data.origin.y);real_length>real_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_4__.Scene}},{key:"initFloor",value:function(){var e=[];e.length=parseInt(2*this.showLength),e.depth=parseInt(this.showWidth),new _Floor__WEBPACK_IMPORTED_MODULE_7__.a(e,this)}},{key:"initAgvCar",value:function(){var e=this;_api_agv__WEBPACK_IMPORTED_MODULE_20__.a.GetAgvStatus({type:"FORKLIFT"}).then(function(t){var i=JSON.parse(babel_runtime_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_1___default()(t)).data.data[0];console.log(i),(new _AGVCar__WEBPACK_IMPORTED_MODULE_9__.a).Load(e,"showAgvCar","froklift",0)})}},{key:"initStoreBuilding",value:function initStoreBuilding(){var Store3DModel=eval("("+window.localStorage.getItem("Store3DModel")+")");new _StoreBuilding__WEBPACK_IMPORTED_MODULE_12__.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_5__;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")+")"),_ref=new _StoreStatus__WEBPACK_IMPORTED_MODULE_13__.a(Store3DModel.data.bins,Store3DModel.data.origin,Store3DModel.data.size,this),_ref2=babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_ref,3),res=_ref2[0],resTop=_ref2[1],resPallet=_ref2[2];this.addObject(res),this.addObject(resTop),this.addObject(resPallet)}},{key:"initAreas",value:function initAreas(){var Store3DModel=eval("("+window.localStorage.getItem("Store3DModel")+")");new _StoreAreas__WEBPACK_IMPORTED_MODULE_10__.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 _StoreBins__WEBPACK_IMPORTED_MODULE_11__.a(Store3DModel.data.bins,Store3DModel.data.origin,Store3DModel.data.size,this)}},{key:"initCamera",value:function(){this.camera=new three__WEBPACK_IMPORTED_MODULE_4__.PerspectiveCamera(60,container.clientWidth/container.clientHeight,.1,1e4),this.camera.position.x=0,this.camera.position.y=1e3,this.camera.position.z=1e3,this.camera.lookAt(0,0,0),this.scene.add(this.camera)}},{key:"initRenderer",value:function(){this.renderer=new three__WEBPACK_IMPORTED_MODULE_4__.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_15__.EffectComposer(this.renderer);var e=new three_outlinepass__WEBPACK_IMPORTED_MODULE_15__.RenderPass(this.scene,this.camera);this.outlinePass=new three_outlinepass__WEBPACK_IMPORTED_MODULE_15__.OutlinePass(new three__WEBPACK_IMPORTED_MODULE_4__.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_4__.AmbientLight(16777215,1);e.position.set(0,0,0),this.addObject(e);var t=new three__WEBPACK_IMPORTED_MODULE_4__.DirectionalLight(16777215,.3);t.position.set(0,200,0),this.addObject(t);var i=new three__WEBPACK_IMPORTED_MODULE_4__.PointLight(16777215,.3);i.position.set(-500,200,0),this.addObject(i);var a=new three__WEBPACK_IMPORTED_MODULE_4__.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_16__.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_4__.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 _this4=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_20__.a.GetAgvStatus(param).then(function(e){var t=JSON.parse(babel_runtime_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_1___default()(e)).data.data[0],i=parseInt(_this4.showLength/2),a=parseInt(_this4.showWidth/2),o=parseInt((t.posX-Store3DModel.data.origin.x)/_this4.showScaleX-i)||0,r=parseInt(a-(t.posY-Store3DModel.data.origin.y)/_this4.showScaleY)||0;_this4.agvList[0].object.position.set(o,0,r),_this4.agvList[0].object.lookAt(o,0,r)})}},{key:"updateStore",value:function(e){var t=this;_api_store__WEBPACK_IMPORTED_MODULE_18__.a.GetStoreModel().then(function(e){var i=babel_runtime_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_1___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_19__.a.UpdateTaskState().then(function(e){})}}]),_class}();__webpack_exports__.a=_class},ZbKm:function(e,t,i){"use strict";var a=i("iCc5"),o=i.n(a),r=i("Womt");i("WY20"),i("So0U");t.a=function e(t,i,a){o()(this,e);for(var s=["/static/images/powery.png","/static/images/powery.png","/static/images/powerz.png","/static/images/power.png","/static/images/power.png","/static/images/powery.png"],n=[],_=0;_<s.length;_++)n.push(new r.MeshPhongMaterial({color:"white",map:r.ImageUtils.loadTexture(s[_],void 0,void 0)}));var l=parseInt(a.showLength/2),c=parseInt(a.showWidth/2),h=parseInt((t.x-i.x)/a.showScaleX-l)||0,u=parseInt(c-(t.y-i.y)/a.showScaleY)||0,d=new r.BoxGeometry(30,50,30),p=new r.MeshFaceMaterial(n),g=new r.Mesh(d,p);g.position.y=25,g.position.x=h,g.position.z=u,a.addObject(g)}},bm9Z:function(e,t,i){"use strict";i("t3Un")},"c/X4":function(e,t,i){"use strict";var a=i("t3Un");t.a={GetBinsInfo:function(e){return Object(a.a)({url:"/storage/GetBinsInfo",method:"post",data:e})},GetStoreModel:function(){return Object(a.a)({url:"/store/GetStoreModel",method:"post"})},GetStoreModel2:function(){return Object(a.a)({url:"/store/GetStoreModel2",method:"post"})},ImportBinModelData:function(e){return Object(a.a)({url:"/store/ImportBinModel",method:"post",data:e})},SetStoreModel:function(e){return Object(a.a)({url:"/store/SetStoreModel",method:"post",data:e})},SaveStockInfo:function(e){return Object(a.a)({url:"/store/SaveStockInfo",method:"post",data:e})},saveBasicInfo:function(e){return Object(a.a)({url:"/store/SaveBasicInfo",method:"post",data:e})},getBasicInfo:function(){return Object(a.a)({url:"/store/GetBasicInfo",method:"post"})},getStoreStatData:function(){return Object(a.a)({url:"/store/GetStoreStatData",method:"post"})},getCheckRecord:function(){return Object(a.a)({url:"/store/GetCheckRecord",method:"post"})},getBatchList:function(){return Object(a.a)({url:"/storage/GetBatchList",method:"post"})},getAllBatchList:function(){return Object(a.a)({url:"/storage/GetAllBatchList",method:"post"})},getProductionBatchList:function(){return Object(a.a)({url:"/erp/GetProductionBatchList",method:"post"})},addBatchNumber:function(e){return Object(a.a)({url:"/storage/AddBatchNumber",method:"post",data:e})},GetCurrentBatchAndPackage:function(){return Object(a.a)({url:"/storage/GetCurrentBatchAndPackage",method:"post"})},SetCurrentBatchAndPackage:function(e){return Object(a.a)({url:"/storage/SetCurrentBatchAndPackage",method:"post",data:e})},getBatchInfo:function(e){return Object(a.a)({url:"/storage/GetBatchInfo",method:"post",data:e})},SetBinStoreInfo:function(e){return Object(a.a)({url:"/storage/SetBinStoreInfo",method:"post",data:e})},GetBinStoreInfo:function(e){return Object(a.a)({url:"/storage/GetBinStoreInfo",method:"post",data:e})},getInOutInfo:function(e){return Object(a.a)({url:"/storage/getInOutInfo",method:"post",data:e})},getProductByBatch:function(e){return Object(a.a)({url:"/storage/getProductByBatch",method:"post",data:e})}}},qO91:function(e,t,i){"use strict";var a=i("iCc5"),o=i.n(a),r=i("V7oC"),s=i.n(r),n=i("Womt"),_=i("5kJi"),l=i("QIYC"),c=function(){function e(t){o()(this,e),t=t||{scale:.1},this.scale=t.scale}return s()(e,[{key:"Load",value:function(e,t,i,a){(new l.a).load("/static/obj/Double-Fork-AGV.mtl",function(o){o.preload();var r=new _.a;r.setMaterials(o),r.load("/static/obj/Double-Fork-AGV.obj",function(o){o.scale.set(.03,.03,.03),o.traverse(function(e){e instanceof n.Mesh&&(e.geometry.applyMatrix((new n.Matrix4).makeRotationY(Math.PI/2)),e.material.transparent=!0)}),e[t](o,i,a)})})}}]),e}();t.a=c},rNma:function(e,t,i){"use strict";i("Womt")},sZnh:function(e,t,i){"use strict";var a=i("t3Un");t.a={GetTaskRecord:function(e){return Object(a.a)({url:"/agv/getTaskRecord",method:"post",data:e})}}},y4LO:function(e,t,i){"use strict";var a=i("iCc5"),o=i.n(a),r=i("Womt"),s=(i("WY20"),i("So0U")),n=i("MT78"),_=i.n(n),l=function e(t,i){o()(this,e);var a=document.createElement("div");a.style.width="200px",a.style.height="200px",this.signChart=_.a.init(a);var s={backgroundColor:"rgba(0, 0, 0, 0)",title:{text:t.Name,textStyle:{color:"#096a94",fontSize:40,fontWeight:"bold"},left:"center",bottom:"42%",itemGap:60},tooltip:{show:!1},legend:{},series:[{name:"内圈",type:"pie",hoverAnimation:!1,tooltip:{},radius:[0,"0%"],color:["#096a94","#096a94","#096a94","#096a94"],label:{normal:{show:!1,position:"center",color:"#fff",formatter:function(e){return e.value}}},labelLine:{normal:{show:!1}},data:[{value:0,itemStyle:{normal:{color:"#096a94"}}}]}]};this.signChart.setOption(s);var n=this.signChart;window.onresize=function(){n.resize()},this.signChart.on("finished",function(){var e=(new r.TextureLoader).load(n.getDataURL()),a=new r.SpriteMaterial({transparent:!0,map:e,side:r.DoubleSide}),o=new r.Sprite(a);o.type="StoreSign",o.scale.set(250,250,1),o.uuid=t.No,o.name=t.Name;var s=t.Height-50;o.position.set(t.Position.X,s,t.Position.Z),i.addObject(o),i.objectLockPointer.push(o)})},c=i("A0nZ");t.a=function e(t,i,a,r,n){o()(this,e),(new s.a).load("/static/font/helvetiker_regular.typeface.json",function(e){for(var a=[999999999,999999999],o=[999999999,999999999],r=[0,0],s=[0,0],n=0;n<2;n++)for(var l=0;l<t.length;l++)t[l].area_type==n&&(t[l].x>r[n]&&(r[n]=t[l].x+t[l].w),t[l].y>s[n]&&(s[n]=t[l].y+t[l].h),t[l].x<a[n]&&(a[n]=t[l].x),t[l].y<o[n]&&(o[n]=t[l].y));for(var c=0;c<t.length;c++)_(t[c],i)});var _=function(e,t){for(var i=999999999,a=999999999,o=0,s=0,_=0;_<t.length;_++)t[_].x>=e.x&&t[_].x<=e.x+e.w&&t[_].y>=e.y&&t[_].y<=e.y+e.h&&(t[_].x>o&&(o=t[_].x+t[_].w/2),t[_].y>s&&(s=t[_].y+t[_].h/2),t[_].x<i&&(i=t[_].x-t[_].w/2),t[_].y<a&&(a=t[_].y-t[_].h/2));var h=parseInt(n.showLength/2),u=parseInt(n.showWidth/2),d=parseInt((o-i)/n.showScaleX)||1,p=parseInt((s-a)/n.showScaleY)||1;p<5&&(p=20);var g=(o+i)/2/n.showScaleX-h,m=(r.y-(s+a)/2)/n.showScaleY-u,M={Length:d,Width:p,Height:150,Storage_Type:e.storage_type,Position:{X:g,Y:75,Z:m},Name:e.name,No:e.id,state:e.goods_count,type:"Store"},w=new c.a(M);n.addObject(w),new l(M,n)}}}}]);