"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[3712],{3712:function(t,e,a){a.r(e),a.d(e,{default:function(){return O}});var i=function(){var t=this,e=t._self._c;return e("div",{ref:"container",staticClass:"main-box",style:{padding:"0 "+8*t.beilv+"px "},attrs:{id:"container"}},[e("el-row",{staticClass:"top-box",attrs:{gutter:8}},[e("el-col",{attrs:{span:10}},[e("div",{staticClass:"top-left"},[e("div",{staticClass:"top-title",style:{padding:16*t.beilv+"px "+18*t.beilv+"px "+20*t.beilv+"px"}},[e("svg-icon",{style:{fontSize:22*t.beilv+"px",marginRight:8*t.beilv+"px"},attrs:{"icon-class":"home_title1"}}),e("span",{staticClass:"titleStyle",style:{fontSize:16*t.beilv+"px"}},[t._v("生产进度")])],1),e("ul",{staticClass:"line-order-msg"},[e("li",{style:{width:"40%",paddingLeft:24*t.beilv+"px"}},[e("div",{style:{fontSize:16*t.beilv+"px"}},[e("span",{staticClass:"title",style:{margin:"0 "+5*t.beilv+"px "+40*t.beilv+"px 0"}},[t._v("产线名称")]),e("el-select",{style:{width:150*t.beilv+"px"},attrs:{placeholder:"请选择名称",size:"small"},on:{change:t.changeLine},model:{value:t.lineName,callback:function(e){t.lineName=e},expression:"lineName"}},t._l(t.nameList,(function(t){return e("el-option",{key:t.dataCode,attrs:{label:t.dataName,value:t.dataCode}})})),1)],1),e("div",{staticClass:"num-box",style:{paddingRight:32*t.beilv+"px"}},[e("div",{staticClass:"plan_num",style:{padding:16*t.beilv+"px 0 "+16*t.beilv+"px "+32*t.beilv+"px",marginBottom:16*t.beilv+"px"}},[e("svg-icon",{style:{fontSize:32*t.beilv+"px",marginBottom:6*t.beilv+"px"},attrs:{"icon-class":"home_plan"}}),e("p",{staticClass:"num",style:{fontSize:24*t.beilv+"px",marginBottom:8*t.beilv+"px"}},[t._v(" "+t._s(t.productMsg.planNum)+" ")]),e("p",{staticClass:"words",style:{fontSize:14*t.beilv+"px"}},[t._v(" 计划数量 ")])],1),e("div",{staticClass:"product_num",style:{padding:16*t.beilv+"px 0 "+16*t.beilv+"px "+32*t.beilv+"px",marginBottom:16*t.beilv+"px"}},[e("svg-icon",{style:{fontSize:32*t.beilv+"px",marginBottom:8*t.beilv+"px"},attrs:{"icon-class":"home_product"}}),e("p",{staticClass:"num",style:{fontSize:24*t.beilv+"px",marginBottom:6*t.beilv+"px"}},[t._v(" "+t._s(t.productMsg.realProductNum)+" ")]),e("p",{staticClass:"words",style:{fontSize:14*t.beilv+"px"}},[t._v(" 生产数量 ")])],1)])]),e("li",{style:{width:"60%",paddingLeft:24*t.beilv+"px"}},[e("div",{style:{fontSize:16*t.beilv+"px"}},[e("span",{staticClass:"title",style:{margin:"0 "+20*t.beilv+"px "+32*t.beilv+"px 0"}},[t._v("生产信息")]),e("span",[t._v("工单号: "+t._s(t.productMsg.code))]),e("ring-chart",{attrs:{chartMsg:t.productMsg,beilv:t.beilv}})],1)])])])]),e("el-col",{attrs:{span:14}},[e("div",{staticClass:"top-right"},[e("progress-details",{attrs:{detailMsg:t.detailMsg,beilv:t.beilv}})],1)])],1),e("el-row",[e("el-col",{attrs:{span:24}},[e("div",{staticClass:"bottom-box"},[e("progress-statistics",{attrs:{lineName:t.lineName,beilv:t.beilv}})],1)])],1)],1)},s=[],l=function(){var t=this,e=t._self._c;return e("div",{style:{paddingLeft:50*t.beilv+"px"}},[e("div",{style:{height:280*t.beilv+"px",width:280*t.beilv+"px"},attrs:{id:"productRing"}})])},n=[],o=a(7171),r=a(5468),p={mixins:[r.Z],name:"RingChart",props:{chartMsg:{type:Object,default:()=>({chart:""})},beilv:{type:Number,default:1}},mounted(){this.$nextTick((()=>{this.initChart()}))},watch:{chartMsg:function(){this.initChart()}},beforeDestroy(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart(){null!==this.chart&&""!==this.chart&&void 0!==this.chart&&this.chart.dispose();var t=document.getElementById("productRing");this.chart=o.S1(t),console.log(this.chartMsg);var e=this.chartMsg.finishNum,a=this.chartMsg.okNum,i=this.chartMsg.wasteNum,s=this.chartMsg.reprocessNum,l=this.chartMsg.tuneNum,n={color:["#288aff","#7a34fd","#ffb750","#95f3b1"],tooltip:{trigger:"item"},legend:{icon:"circle",bottom:"0%",left:"center",itemWidth:8,itemHeight:8},series:[{type:"pie",zlevel:1,radius:["55%","58%"],center:["50%","40%"],label:{show:!1},itemStyle:{shadowBlur:10,shadowColor:"rgba(209, 204, 214, 0.64)",color:"#fff"},tooltip:{show:!1},emphasis:{scale:!1},data:[100]},{type:"pie",radius:["70%","71%"],center:["50%","40%"],zlevel:1,label:{show:!1},itemStyle:{shadowBlur:10,shadowColor:"rgba(0,0,0,.5)",color:"#fff"},tooltip:{show:!1},emphasis:{scale:!1},data:[100]},{name:"Access From",zlevel:2,type:"pie",radius:["58%","70%"],center:["50%","40%"],clockwise:!0,avoidLabelOverlap:!1,emphasis:{scale:!1},silent:!0,label:{show:!0,position:"center",color:"#9A9EBA",formatter:["{a|"+e+"}","{b|总生产数量}"].join("\n\n"),rich:{a:{color:"#262626",fontSize:24},b:{color:"#979797",fontSize:12}}},labelLine:{show:!1},data:[{value:a,name:"良品数量 "+a,itemStyle:{color:"#288aff"}},{value:i,name:"废品数量 "+i,itemStyle:{color:"#7a34fd"}},{value:s,name:"待再加工 "+s,itemStyle:{color:"#ffb750"}},{value:l,name:"调机数量 "+l,itemStyle:{color:"#95f3b1"}}]}]};this.chart.setOption(n,!0)}}},d=p,u=a(1001),c=(0,u.Z)(d,l,n,!1,null,null,null),m=c.exports,b=function(){var t=this,e=t._self._c;return e("el-row",{staticClass:"detail-box",style:{paddingTop:16*t.beilv+"px"}},[e("el-col",{attrs:{span:8}},[e("div",{staticClass:"column-box border-right",style:{paddingLeft:60*t.beilv+"px"}},[e("p",{staticClass:"box",style:{marginTop:27*t.beilv+"px"}},[e("span",{staticClass:"tip-value",style:{fontSize:27*t.beilv+"px",marginBottom:6*t.beilv+"px"}},[t._v(t._s(t.detailMsg.code))]),e("span",{staticClass:"tip",style:{fontSize:16*t.beilv+"px"}},[t._v("工单编号")])]),e("p",{staticClass:"box",style:{marginTop:27*t.beilv+"px"}},[e("span",{staticClass:"tip-value",style:{fontSize:27*t.beilv+"px",marginBottom:6*t.beilv+"px"}},[t._v(t._s(t.detailMsg.planNum))]),e("span",{staticClass:"tip",style:{fontSize:16*t.beilv+"px"}},[t._v("计划数量")])]),e("p",{staticClass:"box",style:{marginTop:27*t.beilv+"px"}},[e("span",{staticClass:"tip-value",style:{fontSize:27*t.beilv+"px",marginBottom:6*t.beilv+"px"}},[t._v(t._s(t.type))]),e("span",{staticClass:"tip",style:{fontSize:16*t.beilv+"px"}},[t._v("工单类型")])]),e("p",{staticClass:"box",style:{marginTop:27*t.beilv+"px"}},[e("span",{staticClass:"tip-value",style:{fontSize:27*t.beilv+"px",marginBottom:6*t.beilv+"px"}},[t._v(t._s(t.detailMsg.productSpec))]),e("span",{staticClass:"tip",style:{fontSize:16*t.beilv+"px"}},[t._v("产品型号")])])])]),e("el-col",{attrs:{span:8}},[e("div",{staticClass:"column-box border-right",style:{paddingLeft:60*t.beilv+"px"}},[e("p",{staticClass:"box",style:{marginTop:27*t.beilv+"px"}},[e("span",{staticClass:"tip-value",style:{fontSize:27*t.beilv+"px",marginBottom:6*t.beilv+"px"}},[t._v(t._s(t.status))]),e("span",{staticClass:"tip",style:{fontSize:16*t.beilv+"px"}},[t._v("工单状态")])]),e("p",{staticClass:"box",style:{marginTop:27*t.beilv+"px"}},[e("span",{staticClass:"tip-value",style:{fontSize:27*t.beilv+"px",marginBottom:6*t.beilv+"px"}},[t._v(t._s(t.detailMsg.realProductNum))]),e("span",{staticClass:"tip",style:{fontSize:16*t.beilv+"px"}},[t._v("完成数量")])]),e("p",{staticClass:"box",style:{marginTop:27*t.beilv+"px"}},[e("span",{staticClass:"tip-value",style:{fontSize:27*t.beilv+"px",marginBottom:6*t.beilv+"px"}},[t._v(t._s(t.planStartTime))]),e("span",{staticClass:"tip",style:{fontSize:16*t.beilv+"px"}},[t._v("计划开始时间")])]),e("p",{staticClass:"box",style:{marginTop:27*t.beilv+"px"}},[e("span",{staticClass:"tip-value",style:{fontSize:27*t.beilv+"px",marginBottom:6*t.beilv+"px"}},[t._v(t._s(t.planEndTime))]),e("span",{staticClass:"tip",style:{fontSize:16*t.beilv+"px"}},[t._v("计划结束时间")])])])]),e("el-col",{attrs:{span:8}},[e("div",{staticClass:"column-box",style:{paddingLeft:60*t.beilv+"px"}},[e("p",{staticClass:"box",style:{marginTop:27*t.beilv+"px"}},[e("span",{staticClass:"tip-value",style:{fontSize:27*t.beilv+"px",marginBottom:6*t.beilv+"px"}},[t._v(t._s(t.process))]),e("span",{staticClass:"tip",style:{fontSize:16*t.beilv+"px"}},[t._v("工单进度")])]),e("p",{staticClass:"box",style:{marginTop:27*t.beilv+"px"}},[e("span",{staticClass:"tip-value",style:{fontSize:27*t.beilv+"px",marginBottom:6*t.beilv+"px"}},[t._v(t._s(t.yieldNum))]),e("span",{staticClass:"tip",style:{fontSize:16*t.beilv+"px"}},[t._v("工单良率")])]),e("p",{staticClass:"box",style:{marginTop:27*t.beilv+"px"}},[e("span",{staticClass:"tip-value",style:{fontSize:27*t.beilv+"px",marginBottom:6*t.beilv+"px"}},[t._v(t._s(t.detailMsg.sumProcessTime?t.detailMsg.sumProcessTime:"-"))]),e("span",{staticClass:"tip",style:{fontSize:16*t.beilv+"px"}},[t._v("累计加工时长")])]),e("p",{staticClass:"box",style:{marginTop:27*t.beilv+"px"}},[e("span",{staticClass:"tip-value",style:{fontSize:27*t.beilv+"px",marginBottom:6*t.beilv+"px"}},[t._v(t._s(t.startTime))]),e("span",{staticClass:"tip",style:{fontSize:16*t.beilv+"px"}},[t._v("实际开始时间")])])])])],1)},v=[],h=a(475),f={name:"ProgressDetails",data(){return{list:JSON.parse(localStorage.getItem("publicList"))}},props:{detailMsg:{type:Object,default:()=>{}},beilv:{type:Number,default:1}},computed:{type(){let t="";return this.list.orderTypeVoList.map((e=>{e.dataCode===this.detailMsg.type&&(t=e.dataName)})),t},status(){let t="";return this.list.orderStatusVoList.map((e=>{e.dataCode===this.detailMsg.type&&(t=e.dataName)})),t},planStartTime(){return(0,h.g6)(this.detailMsg.planStartTime)},planEndTime(){return(0,h.g6)(this.detailMsg.planEndTime)},process(){return 100*this.detailMsg.process+"%"},yieldNum(){return 100*this.detailMsg.yield+"%"},startTime(){return(0,h.g6)(this.detailMsg.startTime)}}},g=f,x=(0,u.Z)(g,b,v,!1,null,"63ceee10",null),y=x.exports,C=function(){var t=this,e=t._self._c;return e("div",{staticClass:"statistics",style:{fontSize:16*t.beilv+"px"}},[e("span",{staticClass:"title"},[t._v(t._s(t.line)+"在制品统计")]),e("base-table",{attrs:{"table-props":t.tableProps1,"table-data":t.tableData1}}),e("span",{staticClass:"title"},[t._v("面磨单元在制品统计")]),e("base-table",{attrs:{"table-props":t.tableProps2,"table-data":t.tableData2}}),e("span",{staticClass:"title"},[t._v("终检单元在制品统计")]),e("base-table",{attrs:{"table-props":t.tableProps3,"table-data":t.tableData3}})],1)},_=[];const S=[{prop:"name1",label:"精切单元",minWidth:100},{prop:"name2",label:"磨边单元",minWidth:100},{prop:"name3",label:"磨边后传送带",minWidth:120},{prop:"name4",label:"磨边后清洗单元",minWidth:120},{prop:"name5",label:"磨边清洗后传送带",minWidth:140},{prop:"name6",label:"再研磨上片单元",minWidth:120},{prop:"name7",label:"面磨单元",minWidth:100},{prop:"name8",label:"面磨后传送带",minWidth:120},{prop:"name9",label:"面磨后清洗单元",minWidth:120},{prop:"name10",label:"面磨后清洗传送带",minWidth:140},{prop:"name11",label:"终检传送带",minWidth:100},{prop:"name12",label:"终检下片单元",minWidth:120}],z=[{prop:"name1",label:"贴合机",minWidth:100},{prop:"name2",label:"压合机",minWidth:100},{prop:"name3",label:"干式传送带",minWidth:120},{prop:"name4",label:"湿式传送带",minWidth:120},{prop:"name5",label:"剥片机1",minWidth:140},{prop:"name6",label:"剥片机2",minWidth:120},{prop:"name7",label:"托盘清洗机",minWidth:100},{prop:"name8",label:"成品传动带",minWidth:120},{prop:"name9",label:"托盘缓存",minWidth:120},{prop:"name10",label:"SLC研磨机1",minWidth:140},{prop:"name11",label:"SLC研磨机2",minWidth:100},{prop:"name12",label:"LGC研磨机1",minWidth:120}],w=[{prop:"name1",label:"水平架B1工位",minWidth:100},{prop:"name2",label:"水平架B2工位",minWidth:100},{prop:"name3",label:"水平架A1工位",minWidth:120},{prop:"name4",label:"水平架A2工位",minWidth:120},{prop:"name5",label:"废片工位",minWidth:140}];var M={name:"ProgressStatistics",data(){return{list:JSON.parse(localStorage.getItem("publicList")).proLineVoList,tableProps1:S,tableData1:[{name1:111}],tableProps2:z,tableData2:[{name1:111}],tableProps3:w,tableData3:[{name1:111}]}},props:{lineName:{type:Number,default:1},beilv:{type:Number,default:1}},computed:{line(){let t="";return this.list.map((e=>{e.dataCode===this.lineName&&(t=e.dataName)})),t}}},N=M,W=(0,u.Z)(N,C,_,!1,null,"3a8e1127",null),P=W.exports,Z=a(5591),L=a(5093),T={name:"WorkOrderProgress",components:{RingChart:m,ProgressDetails:y,ProgressStatistics:P},data(){return{beilv:1,lineName:1,nameList:JSON.parse(localStorage.getItem("publicList")).proLineVoList,productMsg:{},detailMsg:{},tableLine:[],tableGrind:[],tableFinal:[]}},mounted(){this.beilv=document.getElementById("container").offsetWidth/1920,window.addEventListener("resize",(()=>{this.isFullScreen?this.beilv=document.body.offsetWidth/1920:this.beilv=document.getElementById("container").offsetWidth/1920})),this.changeLine()},methods:{changeLine(){this.getProductMsg(),this.getProcess()},getProductMsg(){(0,Z.b6)({productionLineId:this.lineName}).then((t=>{console.log(t),0===t.code&&(this.productMsg=t.data)}))},getProcess(){(0,L.Mk)({productionLineId:this.lineName}).then((t=>{console.log(t),0===t.code&&(this.detailMsg=t.data)}))},getLineGlassCount(){(0,L.YV)({productionLineId:this.lineName}).then((t=>{console.log(t)}))},getGrindGlassCount(){(0,L.sq)({productionLineId:this.lineName}).then((t=>{console.log(t)}))},getFinalClassCount(){(0,L.k5)({productionLineId:this.lineName}).then((t=>{console.log(t)}))}}},k=T,B=(0,u.Z)(k,i,s,!1,null,"946347de",null),O=B.exports},5591:function(t,e,a){a.d(e,{FH:function(){return o},Hp:function(){return r},JQ:function(){return n},SI:function(){return l},WQ:function(){return u},b6:function(){return p},iv:function(){return s},m:function(){return d}});var i=a(8859);function s(){return(0,i.Z)({url:"/common/getList",method:"post"})}function l(){return(0,i.Z)({url:"/common/getTreeData",method:"post"})}function n(t){return(0,i.Z)({url:"/common/updateEqSeq",method:"post",data:t})}function o(t){return(0,i.Z)({url:"/common/attachment/downloadFile",method:"get",responseType:"blob",params:t,timeout:6e4})}function r(t){return(0,i.Z)({url:"/common/getAlarmData",method:"post",data:t})}function p(t){return(0,i.Z)({url:"/common/getProductData",method:"post",data:t})}function d(t){return(0,i.Z)({url:"/common/getMaterialData",method:"post",data:t})}const u="/api/common/attachment/uploadFileFormData"},5093:function(t,e,a){a.d(e,{EM:function(){return m},EO:function(){return b},F7:function(){return g},Hq:function(){return N},Mk:function(){return s},Nm:function(){return z},SN:function(){return _},To:function(){return p},Tp:function(){return h},W9:function(){return r},Xe:function(){return d},YV:function(){return l},a1:function(){return f},ag:function(){return y},dg:function(){return S},j4:function(){return C},k5:function(){return o},lb:function(){return u},n8:function(){return w},sq:function(){return n},w3:function(){return c},wM:function(){return M},xz:function(){return x},zz:function(){return v}});var i=a(8859);function s(t){return(0,i.Z)({url:"/order/workOrderProcess/getProcessInfo",method:"post",data:t})}function l(t){return(0,i.Z)({url:"/order/workOrderProcess/lineGlassCount",method:"post",data:t})}function n(t){return(0,i.Z)({url:"/order/workOrderProcess/grindGlassCount",method:"post",data:t})}function o(t){return(0,i.Z)({url:"/order/workOrderProcess/FinalClassCount",method:"post",data:t})}function r(t){return(0,i.Z)({url:"/order/workOrder/page",method:"post",data:t})}function p(t){return(0,i.Z)({url:"/order/workOrder/add",method:"post",data:t})}function d(t){return(0,i.Z)({url:"/order/workOrder/delete",method:"post",data:t})}function u(t){return(0,i.Z)({url:"/order/workOrder/update",method:"post",data:t})}function c(t){return(0,i.Z)({url:"/order/workOrder/get",method:"post",data:t})}function m(t){return(0,i.Z)({url:"/order/workOrder/release",method:"post",data:t})}function b(t){return(0,i.Z)({url:"/order/workOrder/finish",method:"post",data:t})}function v(t){return(0,i.Z)({url:"/order/workOrder/importTemplate",method:"post",data:t})}const h="/api/order/workOrder/import";function f(t){return(0,i.Z)({url:"/order/unloadPallet/page",method:"post",data:t})}function g(t){return(0,i.Z)({url:"/order/unloadPallet/add",method:"post",data:t})}function x(t){return(0,i.Z)({url:"/order/unloadPallet/get",method:"post",data:t})}function y(t){return(0,i.Z)({url:"/order/unloadPallet/update",method:"post",data:t})}function C(t){return(0,i.Z)({url:"/order/unloadPallet/verify",method:"post",formState:!0,data:t})}function _(t){return(0,i.Z)({url:"/order/unloadPallet/finish",method:"post",data:t})}function S(t){return(0,i.Z)({url:"/order/unloadPallet/continuePack",method:"post",data:t})}function z(t){return(0,i.Z)({url:"/order/unloadPallet/getDetail",method:"post",data:t})}function w(t){return(0,i.Z)({url:"/order/unloadPallet/glassIdTrace",method:"post",formState:!0,data:t})}function M(t){return(0,i.Z)({url:"/order/reloadRack/reload",method:"post",data:t})}function N(t){return(0,i.Z)({url:"/order/reloadRack/end",method:"post",data:t})}}}]);