(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-65bf"],{E4jr:function(t,e,s){},GQeE:function(t,e,s){t.exports={default:s("iq4v"),__esModule:!0}},MpAr:function(t,e,s){"use strict";s.r(e);var a=s("GQeE"),n=s.n(a),i={name:"WarehouseVisualization",props:{warehouseData:{type:Array,default:function(){return[]}}},data:function(){return{selectedCell:null,highlightedRowLayer:null}},computed:{groupedWarehouseData:function(){for(var t=[],e=0;e<this.warehouseData.length;e+=4)t.push(this.warehouseData.slice(e,e+4));return t},columnCount:function(){return this.warehouseData.length>0?n()(this.warehouseData[0]).filter(function(t){return"行-层"!==t}).length:0},totalCells:function(){return this.warehouseData.length*this.columnCount}},methods:{selectCell:function(t,e,s){this.selectedCell={rowLayer:t,column:e,status:s},this.highlightedRowLayer=t},getStatusText:function(t){return{0:"空库位",1:"有托盘无物料",2:"有物料有托盘"}[t]||"未知状态"},countStatus:function(t){var e=this,s=0;return this.warehouseData.forEach(function(a){for(var n=1;n<=e.columnCount;n++)a[n]===t&&s++}),s},getGroupRange:function(t){var e=4*t,s=Math.min(e+3,this.warehouseData.length-1);return(this.warehouseData[e]?this.warehouseData[e]["行-层"]:"")+" 到 "+(this.warehouseData[s]?this.warehouseData[s]["行-层"]:"")}}},u=(s("TWpH"),s("KHd+")),l=Object(u.a)(i,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"warehouse-container"},[s("div",{staticClass:"warehouse-header"},[s("div",{staticClass:"controls"},[t._m(0),t._v(" "),s("div",{staticClass:"info-display"},[t.selectedCell?s("div",{staticClass:"selected-info"},[t._v("\n          选中: 行-层 "+t._s(t.selectedCell.rowLayer)+" | 列 "+t._s(t.selectedCell.column)+" | 状态: "+t._s(t.getStatusText(t.selectedCell.status))+"\n        ")]):t._e(),t._v(" "),s("div",{staticClass:"summary"},[t._v("\n          总计: "+t._s(t.totalCells)+" 个库位 | 有物料: "+t._s(t.countStatus(2))+" | 有托盘: "+t._s(t.countStatus(1))+" | 空闲: "+t._s(t.countStatus(0))+"\n        ")])])])]),t._v(" "),s("div",{staticClass:"warehouse-main"},t._l(t.groupedWarehouseData,function(e,a){return s("div",{key:a,staticClass:"warehouse-group"},[s("h3",[t._v("立库组 "+t._s(a+1)+" ("+t._s(t.getGroupRange(a))+")")]),t._v(" "),s("div",{staticClass:"warehouse-rack"},[s("div",{staticClass:"column-labels"},t._l(t.columnCount,function(e){return s("div",{key:e,staticClass:"column-label"},[t._v("\n            "+t._s(e)+"\n          ")])})),t._v(" "),s("div",{staticClass:"rows-container"},t._l(e,function(e,a){return s("div",{key:a,staticClass:"row",class:{"highlighted-row":t.highlightedRowLayer===e["行-层"]}},[s("div",{staticClass:"row-label"},[t._v(t._s(e["行-层"]))]),t._v(" "),t._l(t.columnCount,function(a){return s("div",{key:a,staticClass:"cell",class:"status-"+e[a],attrs:{title:"行-层: "+e["行-层"]+" | 列: "+a+" | 状态: "+t.getStatusText(e[a])},on:{click:function(s){t.selectCell(e["行-层"],a,e[a])}}},[t._v("\n              "+t._s(e[a])+"\n            ")])})],2)}))])])}))])},[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"legend"},[s("div",{staticClass:"legend-item"},[s("div",{staticClass:"color-box status-2"}),t._v(" "),s("span",[t._v("有物料有托盘 (2)")])]),t._v(" "),s("div",{staticClass:"legend-item"},[s("div",{staticClass:"color-box status-1"}),t._v(" "),s("span",[t._v("有托盘无物料 (1)")])]),t._v(" "),s("div",{staticClass:"legend-item"},[s("div",{staticClass:"color-box status-0"}),t._v(" "),s("span",[t._v("空库位 (0)")])])])}],!1,null,"201a21e2",null);l.options.__file="index.vue";e.default=l.exports},Mqbl:function(t,e,s){var a=s("JB68"),n=s("w6GO");s("zn7N")("keys",function(){return function(t){return n(a(t))}})},TWpH:function(t,e,s){"use strict";var a=s("E4jr");s.n(a).a},iq4v:function(t,e,s){s("Mqbl"),t.exports=s("WEpk").Object.keys},zn7N:function(t,e,s){var a=s("Y7ZC"),n=s("WEpk"),i=s("KUxP");t.exports=function(t,e){var s=(n.Object||{})[t]||Object[t],u={};u[t]=e(s),a(a.S+a.F*i(function(){s(1)}),"Object",u)}}}]);