1 line
22 KiB
JavaScript
1 line
22 KiB
JavaScript
|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-5c2e"],{"0C95":function(t,e,s){"use strict";var i=s("5DiQ");s.n(i).a},"5DiQ":function(t,e,s){},CvMc:function(t,e,s){"use strict";var i=s("t3Un");e.a={GetAgvsList:function(){return Object(i.a)({url:"/agv/GetAgvsList",method:"post"})},CancelTask:function(t){return Object(i.a)({url:"/agv/cancelTask",method:"post",data:t})},GetAgvStatus:function(t){return Object(i.a)({url:"/agv/getAgvStatus",method:"post",data:t})},GetTaskRecord:function(t){return Object(i.a)({url:"/agv/getTaskRecord",method:"post",data:t})},retrievePallet:function(t){return Object(i.a)({url:"/agv/retrievePallet",method:"post",data:t})},BatchRetrievePallet:function(t){return Object(i.a)({url:"/agv/BatchRetrievePallet",method:"post",data:t})},setWorkStoreTunnel:function(t){return Object(i.a)({url:"/agv/setWorkStoreTunnel",method:"post",data:t})},getWorkStoreTunnel:function(t){return Object(i.a)({url:"/agv/getWorkStoreTunnel",method:"post",data:t})},productOutStore:function(t){return Object(i.a)({url:"/agv/ProductOutStore",method:"post",data:t})},productBatchOutStore:function(t){return Object(i.a)({url:"/agv/ProductBatchOutStore",method:"post",data:t})},productBatchBackStore:function(t){return Object(i.a)({url:"/agv/ProductBatchBackStore",method:"post",data:t})},productInStoreNow:function(){return Object(i.a)({url:"/agv/productInStoreNow",method:"post"})},palletInStore:function(t){return Object(i.a)({url:"/agv/PalletOutStacker",method:"post",data:t})},palletOutStoreNow:function(){return Object(i.a)({url:"/agv/palletOutStoreNow",method:"post"})}}},GM6z:function(t,e,s){},MNrc:function(t,e,s){"use strict";s.r(e);var i=s("YEIV"),a=s.n(i),n=(s("CvMc"),s("c/X4")),o={name:"tagcanvas",props:["data-model","batchNumber","editMode","showOnlyBatchBin","selBatchNumber"],data:function(){return{ctx:"",tagObj:{newrecsObj:{},recs:[],bins:[],x:0,y:0,url:"",radious:5,recSize:5,showLitRecs:!0,index:-1,side:0,startX:0,startY:0,isRightClick:!1},showScaleX:1,showScaleY:1,fontZoom:1,curZoom:1,translateX:0,translateY:0,centerX:-1,centerY:-1,showOnlyBatchBin:!1,centerX0:-1,centerY0:-1,editMode:!1,modeName:"编辑",area_title:"",setBinStateDlgVisible:!1,setAreaStateDlgVisible:!1,binState:0,areaState:0,packageNo:["","","","","","","","","",""],start_bin:"",end_bin:"",selBatchNumber:"ALL",selectType:-1}},watch:{dataModel:function(t,e){if(t){if(t.size.x>t.size.y)this.$refs.tagcanvas.width=this.showLength=window.innerWidth,this.$refs.tagcanvas.height=this.showWidth=window.innerHeight*t.size.x*1/t.size.y,console.log("--------------------1---------------------"),this.$refs.tagcanvas.width=this.showLength=2500,this.$refs.tagcanvas.height=this.showWidth=2200,document.getElementById("map").scrollTo(2500,2200);else this.$refs.tagcanvas.height=this.showWidth=window.innerHeight-150,this.$refs.tagcanvas.width=this.showLength=window.innerHeight*t.size.x*1/t.size.y,this.$refs.tagcanvas.width=this.showLength=2500,this.$refs.tagcanvas.height=this.showWidth=2200,document.getElementById("map").scrollTo(2500,2200);this.tagObj.recs=t.areas,this.tagObj.bins=t.bins,this.tagObj.size=t.size,this.beginDraw()}}},mounted:function(){this.ctx=this.$refs.tagcanvas.getContext("2d"),this.clickRightHtml=document.getElementById("clickRightMenu"),this.clickRightHtml.style.display="none"},methods:{recoverDraw:function(){this.clearCanvas(this.$refs.tagcanvas,this.ctx),this.fontZoom=this.curZoom=1,this.centerX=this.centerX0=this.centerY=this.centerY0=-1,this.translateX=this.translateY=0,this.ctx.translate(this.translateX,this.translateY),this.ctx.scale(this.curZoom,this.curZoom),this.drawBins(this.tagObj.bins,this.ctx),this.drawOldRecs(this.tagObj.recs,this.ctx)},beginDraw:function(){var t=this.tagObj.size,e=parseInt(1*t.x),s=parseInt(1*t.y);this.showScaleX=1*e/this.showLength,this.showScaleY=1*s/this.showWidth;for(var i=0;i<this.tagObj.bins.length;i++)this.tagObj.bins[i].x/=this.showScaleX,this.tagObj.bins[i].y/=this.showScaleY,this.tagObj.bins[i].w*=.6,this.tagObj.bins[i].w/=this.showScaleY,this.tagObj.bins[i].l=this.tagObj.bins[i].w;this.drawBins(this.tagObj.bin
|