dengjunjie
2025-07-09 7ca9651f81d7b84f054194d3d46fdbd1d9c8b922
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2842ee5e"],{"1fc8":function(e,t,c){"use strict";c("d007")},"869e":function(e,t,c){},"9ae1":function(e,t,c){"use strict";c("869e")},bb51:function(e,t,c){"use strict";c.r(t);var a=c("1258");const o={class:"right"},n={class:"row_tip"},l={class:"left"},i={style:{"margin-top":"80px"}};function s(e,t,c,s,r,b){const d=Object(a["resolveComponent"])("el-tooltip"),u=Object(a["resolveComponent"])("ElButton");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",null,[t[4]||(t[4]=Object(a["createElementVNode"])("div",{class:"title"},"库位平面图",-1)),Object(a["createElementVNode"])("div",{class:"main",style:Object(a["normalizeStyle"])({height:r.mian_height})},[Object(a["createElementVNode"])("div",o,[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(r.locationData,e=>(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{key:e.index},[Object(a["createElementVNode"])("div",n,"第"+Object(a["toDisplayString"])(e.index)+"层",1),(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.rows,c=>(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:"row",key:c.index},[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(c.cols,o=>(Object(a["openBlock"])(),Object(a["createBlock"])(d,{key:o.column,effect:"dark",placement:"top","show-after":200,"hide-after":0},Object(a["createSlots"])({default:Object(a["withCtx"])(()=>[Object(a["createElementVNode"])("div",{class:"item",style:Object(a["normalizeStyle"])({"background-color":b.GetBgColor(o)})},Object(a["toDisplayString"])(c.index)+"-"+Object(a["toDisplayString"])(o.column)+"-"+Object(a["toDisplayString"])(e.index),5)]),_:2},[99==o.locationStatus?{name:"content",fn:Object(a["withCtx"])(()=>[Object(a["createElementVNode"])("div",null,"物料名称: "+Object(a["toDisplayString"])(o.materielName),1),Object(a["createElementVNode"])("div",null,"数量:"+Object(a["toDisplayString"])(o.quantity)+"托",1)]),key:"0"}:0==o.locationStatus?{name:"content",fn:Object(a["withCtx"])(()=>[t[0]||(t[0]=Object(a["createElementVNode"])("div",null,"空货位",-1))]),key:"1"}:{name:"content",fn:Object(a["withCtx"])(()=>[Object(a["createElementVNode"])("div",null," 货位名称:"+Object(a["toDisplayString"])(o.row+"排"+o.column+"列"+o.layer+"层"),1),Object(a["createElementVNode"])("div",null,"货位状态:"+Object(a["toDisplayString"])(b.getStatusText(o.locationStatus)),1),Object(a["createElementVNode"])("div",null,"物料名称: "+Object(a["toDisplayString"])(o.materielName),1),Object(a["createElementVNode"])("div",null,"物料编号: "+Object(a["toDisplayString"])(o.materielCode),1),Object(a["createElementVNode"])("div",null,"批号:"+Object(a["toDisplayString"])(o.orderNo),1),Object(a["createElementVNode"])("div",null,"柜号:"+Object(a["toDisplayString"])(o.batchNo),1),Object(a["createElementVNode"])("div",null,"数量:"+Object(a["toDisplayString"])(o.quantity)+"托",1),Object(a["createElementVNode"])("div",null,"入库时间:"+Object(a["toDisplayString"])(o.inDate),1),Object(a["createElementVNode"])("div",null,"启用状态:"+Object(a["toDisplayString"])(b.getEnableStatusText(o.enalbeStatus)),1)]),key:"2"}]),1024))),128))]))),128))]))),128))]),Object(a["createElementVNode"])("div",l,[t[3]||(t[3]=Object(a["createElementVNode"])("br",null,null,-1)),Object(a["createVNode"])(u,{type:"success",class:"btn",onClick:b.GetViewData},{default:Object(a["withCtx"])(()=>t[1]||(t[1]=[Object(a["createTextVNode"])("刷新")])),_:1},8,["onClick"]),Object(a["createElementVNode"])("div",i,[t[2]||(t[2]=Object(a["createElementVNode"])("div",null,"说明",-1)),(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(r.infoMsg,e=>(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{key:e.bgcolor},[Object(a["createElementVNode"])("div",{class:"infoMsg",style:Object(a["normalizeStyle"])({"background-color":e.bgcolor})},Object(a["toDisplayString"])(e.msg),5)]))),128))])])],4)])}c("5d3c"),c("2e4f");var r=c("a997"),b={data(){return{slectData:[],scList:[],layers:[],Area:{house_name:"",tunnel:"",shelf_code:""},mian_height:"",infoMsg:[{bgcolor:"lightgreen",msg:"空货位",state:0},{bgcolor:"orange",msg:"有货",state:"Stored"},{bgcolor:"#2BB3D5",msg:"执行中",state:"InAssigned"},{bgcolor:"#ccc",msg:"禁用",state:"Lock"},{bgcolor:"red",msg:"异常",state:"error"},{bgcolor:"#b7ba6b",msg:"空托",state:99}],locationData:[]}},computed:{GetBgColor(){return e=>{var t="#b7ba6b";return 3==e.enalbeStatus?this.infoMsg.forEach(e=>{"Lock"==e.state&&(t=e.bgcolor)}):this.infoMsg.forEach(c=>{4==e.locationStatus||6==e.locationStatus||7==e.locationStatus?"InAssigned"==c.state&&(t=c.bgcolor):2==e.locationStatus||3==e.locationStatus?"Stored"==c.state&&(t=c.bgcolor):c.state==e.locationStatus&&(t=c.bgcolor)}),t}}},watch:{"Area.shelf_code"(e,t){this.scList=[],this.layers=[],this.slectData.forEach(t=>{t.areaName==e&&(this.Area.tunnel=t.tunnel[0],this.scList=t.tunnel,this.Area.layer="第"+t.layers[0]+"层",this.layers=t.layers)}),this.GetViewData()}},methods:{getTooltipContent(e){return`状态: ${this.getStatusText(e.locationStatus)}\n              启用状态: ${this.getEnableStatusText(e.enalbeStatus)}\n              托盘号: ${e.palletNo||"无"}`},getStatusText(e){const t={0:"空闲",1:"指定入库",2:"有货",3:"满货",4:"入库中",5:"指定出库",6:"出库中",7:"移库中",99:"空托盘"};return t[e]||"未知状态"},getEnableStatusText(e){const t={0:"正常",1:"只入",2:"只出",3:"禁用"};return t[e]||"未知"},GetViewData(){var e=this;this.http.post("/api/StockView/GetLocationStockView",{},"查询中").then(t=>{e.locationData=t.data})},SCChange(){this.GetViewData()}},mounted(){var e=document.getElementById("vol-main");this.mian_height=e.offsetHeight-40+"px";var t=this;this.http.get("/api/LocationInfo/GetLocationLayer",{},"查询中").then(e=>{t.slectData=e,t.Area.shelf_code=t.slectData[0].areaName,t.scList=t.slectData[0].tunnel,t.layers=t.slectData[0].layers}),this.GetViewData()},components:{ElButton:r["a"]}},d=(c("9ae1"),c("1fc8"),c("9c21")),u=c.n(d);const m=u()(b,[["render",s],["__scopeId","data-v-0095ffc2"]]);t["default"]=m},d007:function(e,t,c){}}]);