(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=0&&(this.tagObj.bins[this.tagObj.index].state=0,this.ctx.save(),this.clearCanvas(this.$refs.tagcanvas,this.ctx),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),this.ctx.restore())},setBinState:function(){var t=this;if(this.setBinStateDlgVisible=!1,this.tagObj.index>=0){this.tagObj.bins[this.tagObj.index].state=this.binState,0==this.binState?this.tagObj.bins[this.tagObj.index].batch_num="":this.tagObj.bins[this.tagObj.index].batch_num=this.selBatchNumber,this.ctx.save(),this.clearCanvas(this.$refs.tagcanvas,this.ctx),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),this.ctx.restore(),console.log(this.tagObj.bins[this.tagObj.index].state);for(var e=[],s=0;s=0){this.setBinStateDlgVisible=!0,this.selBatchNumber="",this.binState=0;var e={channel:this.tagObj.bins[this.tagObj.index].area_id,bin:this.tagObj.bins[this.tagObj.index].id};n.a.GetBinStoreInfo(e).then(function(e){var s=e.data.data;if(null!=s.batch){t.selBatchNumber=s.batch,t.binState=s.layers.length;for(var i=0;i=0&&(this.setAreaStateDlgVisible=!0,this.selectType=2,"ALL"==this.selBatchNumber&&(this.selBatchNumber=""))},updateAreaState:function(t){if(this.clickRightHtml.style.display="none",this.tagObj.index>=0){for(var e=this.tagObj.bins[this.tagObj.index].area_id,s=0;s0?(e.fillStyle="rgb(48, 168, 85)",e.fillRect(t[s].x,t[s].y,t[s].w,t[s].l),e.fillStyle="#FFFFFF",e.fillText(t[s].state+"",t[s].x+3,t[s].y+t[s].l-5)):(e.strokeStyle="rgb(48, 68, 85)",e.strokeRect(t[s].x,t[s].y,t[s].w,t[s].l));else if(t[s].batch==this.selBatchNumber)t[s].state>0?(e.fillStyle="rgb(48, 168, 85)",e.fillRect(t[s].x,t[s].y,t[s].w,t[s].l),e.fillStyle="#FFFFFF",e.fillText(t[s].state+"",t[s].x+3,t[s].y+t[s].l-5)):(e.strokeStyle="rgb(48, 68, 85)",e.strokeRect(t[s].x,t[s].y,t[s].w,t[s].l));else if("ALL"==this.selBatchNumber){if(""==t[s].batch)continue;t[s].state>0?(e.fillStyle="rgb(48, 168, 85)",e.fillRect(t[s].x,t[s].y,t[s].w,t[s].l),e.fillStyle="#FFFFFF",e.fillText(t[s].state+"",t[s].x+3,t[s].y+t[s].l-5)):(e.strokeStyle="rgb(48, 68, 85)",e.strokeRect(t[s].x,t[s].y,t[s].w,t[s].l))}},drawOldRecs:function(t,e){if(0==t.length)return 0;for(var s=0;so||sr)&&(this.ctx.save(),this.clearCanvas(this.$refs.tagcanvas,this.ctx),this.ctx.translate(this.translateX,this.translateY),this.ctx.scale(this.curZoom,this.curZoom),this.drawOldRecs(this.tagObj.recs,this.ctx),this.drawBins(this.tagObj.bins,this.ctx),this.ctx.restore())}},mouseDown:function(t){if(this.editMode){this.clickRightHtml.style.display="none";var e={offsetX:this.centerX-(this.centerX-t.offsetX)/this.curZoom,offsetY:this.centerY-(this.centerY-t.offsetY)/this.curZoom};this.tagObj.x=e.offsetX,this.tagObj.y=e.offsetY,this.tagObj.index=this.getEventIndex(this.tagObj.bins,this.tagObj.x,this.tagObj.y,this.tagObj.radious),2!=t.button?(this.ctx.save(),this.ctx.translate(this.translateX,this.translateY),this.ctx.scale(this.curZoom,this.curZoom),this.tagObj.index>=0&&(this.tagObj.startX=this.tagObj.bins[this.tagObj.index].x,this.tagObj.startY=this.tagObj.bins[this.tagObj.index].y,this.tagObj.side=this.getEventArea(this.tagObj.bins[this.tagObj.index],this.tagObj.x,this.tagObj.y,this.tagObj.radious),this.drawLitRecs(this.ctx,this.prepareLitRecs(this.tagObj.bins[this.tagObj.index]),this.tagObj.recSize)),this.changeResizeCursor(this.$refs.tagcanvas,this.tagObj.side),this.ctx.restore()):this.tagObj.index>=0&&(this.tagObj.isRightClick=!0)}},mouseUp:function(t){if(this.editMode){this.clickRightHtml.style.display="none";this.centerX,this.centerX,t.offsetX,this.curZoom,this.centerY,this.centerY,t.offsetY,this.curZoom;if(1==this.tagObj.isRightClick)return console.log("this.tagObj.isRightClick"),this.tagObj.index=this.getEventIndex(this.tagObj.bins,this.tagObj.x,this.tagObj.y,this.tagObj.radious),void(this.tagObj.isRightClick=!1);this.ctx.save(),this.ctx.translate(this.translateX,this.translateY),this.ctx.scale(this.curZoom,this.curZoom),this.ctx.restore()}},mouseMove:function(t){if(this.editMode){var e,s;this.ctx.save(),this.clearCanvas(this.$refs.tagcanvas,this.ctx),this.translateX=t.offsetX-(t.offsetX-this.translateX),this.translateY=t.offsetY-(t.offsetY-this.translateY),this.ctx.translate(this.translateX,this.translateY),this.ctx.scale(this.curZoom,this.curZoom),this.drawOldRecs(this.tagObj.recs,this.ctx),this.drawBins(this.tagObj.bins,this.ctx);var i=this.centerX-(this.centerX-t.offsetX)/this.curZoom,a=this.centerY-(this.centerY-t.offsetY)/this.curZoom;if((e=this.getEventIndex(this.tagObj.bins,i,a,this.tagObj.radious))>-1){var n=this.tagObj.bins[e];s=this.getEventArea(n,i,a,this.tagObj.radious)}else s=0;this.changeResizeCursor(this.$refs.tagcanvas,s),this.tagObj.showLitRecs&&e>=0&&s>0&&this.drawLitRecs(this.ctx,this.prepareLitRecs(this.tagObj.bins[e]),this.tagObj.recSize),this.ctx.restore()}},contextMenu:function(t){if(this.editMode){if(this.tagObj.index>=0){var e=document.getElementById("div").getBoundingClientRect();this.clickRightHtml.style.display="block",this.clickRightHtml.style.left=t.clientX-e.x+"px",this.clickRightHtml.style.top=t.clientY-e.y+"px"}return!1}},getEventIndex:function(t,e,s,i){if(0==t.length)return-1;for(var a=0;at[a].x-i&&et[a].y-i&&st.x-i&&et.y-i&&st.y+i&&st.y+t.h-i&&st.x+t.w-i&&et.y-i&&st.x+i&&et.y+t.h-i&&st.x+i&&et.y-i&&st.y+i&&st.y+t.h-i&&s-1:t.showOnlyBatchBin},on:{change:[function(e){var s=t.showOnlyBatchBin,i=e.target,a=!!i.checked;if(Array.isArray(s)){var n=t._i(s,null);i.checked?n<0&&(t.showOnlyBatchBin=s.concat([null])):n>-1&&(t.showOnlyBatchBin=s.slice(0,n).concat(s.slice(n+1)))}else t.showOnlyBatchBin=a},t.inputchecked]}}),t._v(" "),s("span",[t._v("仅显示批次库位")]),t._v(" "),1==t.showOnlyBatchBin?s("el-autocomplete",{staticClass:"inline-input",attrs:{"fetch-suggestions":t.querySearch,"trigger-on-focus":!1,placeholder:"请输入名称后匹配建议"},model:{value:t.selBatchNumber,callback:function(e){t.selBatchNumber=e},expression:"selBatchNumber"}}):t._e()],1),t._v(" "),s("dp-canvas",{attrs:{"data-model":t.data_model,"sel-batch-number":t.selBatchNumber,"batch-number":t.batchNumber,"edit-mode":t.editMode,"show-only-batch-bin":t.showOnlyBatchBin},on:{changeState:t.SaveStockInfo}})],1)},[],!1,null,null,null));f.options.__file="check.vue";e.default=f.exports},"RU/L":function(t,e,s){s("Rqdy");var i=s("WEpk").Object;t.exports=function(t,e,s){return i.defineProperty(t,e,s)}},Rqdy:function(t,e,s){var i=s("Y7ZC");i(i.S+i.F*!s("jmDH"),"Object",{defineProperty:s("2faE").f})},SEkw:function(t,e,s){t.exports={default:s("RU/L"),__esModule:!0}},YEIV:function(t,e,s){"use strict";e.__esModule=!0;var i=function(t){return t&&t.__esModule?t:{default:t}}(s("SEkw"));e.default=function(t,e,s){return e in t?(0,i.default)(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}},a4yd:function(t,e,s){"use strict";var i=s("t3Un");e.a={GetCameraList:function(){return Object(i.a)({url:"/fast/GetCameraList",method:"post"})},SetFastMode:function(t){return Object(i.a)({url:"/fast/SetFastMode",method:"post",data:t})},GetFastMode:function(){return Object(i.a)({url:"/fast/GetFastMode",method:"post"})}}},"c/X4":function(t,e,s){"use strict";var i=s("t3Un");e.a={GetBinsInfo:function(t){return Object(i.a)({url:"/storage/GetBinsInfo",method:"post",data:t})},GetStoreModel:function(){return Object(i.a)({url:"/store/GetStoreModel",method:"post"})},GetStoreModel2:function(){return Object(i.a)({url:"/store/GetStoreModel2",method:"post"})},ImportBinModelData:function(t){return Object(i.a)({url:"/store/ImportBinModel",method:"post",data:t})},SetStoreModel:function(t){return Object(i.a)({url:"/store/SetStoreModel",method:"post",data:t})},SaveStockInfo:function(t){return Object(i.a)({url:"/store/SaveStockInfo",method:"post",data:t})},saveBasicInfo:function(t){return Object(i.a)({url:"/store/SaveBasicInfo",method:"post",data:t})},getBasicInfo:function(){return Object(i.a)({url:"/store/GetBasicInfo",method:"post"})},getStoreStatData:function(){return Object(i.a)({url:"/store/GetStoreStatData",method:"post"})},getCheckRecord:function(){return Object(i.a)({url:"/store/GetCheckRecord",method:"post"})},getBatchList:function(){return Object(i.a)({url:"/storage/GetBatchList",method:"post"})},getAllBatchList:function(){return Object(i.a)({url:"/storage/GetAllBatchList",method:"post"})},getProductionBatchList:function(){return Object(i.a)({url:"/erp/GetProductionBatchList",method:"post"})},addBatchNumber:function(t){return Object(i.a)({url:"/storage/AddBatchNumber",method:"post",data:t})},GetCurrentBatchAndPackage:function(){return Object(i.a)({url:"/storage/GetCurrentBatchAndPackage",method:"post"})},SetCurrentBatchAndPackage:function(t){return Object(i.a)({url:"/storage/SetCurrentBatchAndPackage",method:"post",data:t})},getBatchInfo:function(t){return Object(i.a)({url:"/storage/GetBatchInfo",method:"post",data:t})},SetBinStoreInfo:function(t){return Object(i.a)({url:"/storage/SetBinStoreInfo",method:"post",data:t})},GetBinStoreInfo:function(t){return Object(i.a)({url:"/storage/GetBinStoreInfo",method:"post",data:t})},getInOutInfo:function(t){return Object(i.a)({url:"/storage/getInOutInfo",method:"post",data:t})},getProductByBatch:function(t){return Object(i.a)({url:"/storage/getProductByBatch",method:"post",data:t})}}},vish:function(t,e,s){"use strict";var i=s("GM6z");s.n(i).a}}]);