1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[4332],{4332:function(t,e,a){a.r(e),a.d(e,{default:function(){return S}});var s=function(){var t=this,e=t._self._c;return e("div",{ref:"container",staticClass:"main-box",attrs:{id:"container"}},[e("el-row",{staticClass:"box",attrs:{gutter:8}},[e("el-col",{attrs:{span:14}},[e("div",{staticClass:"left-top"},[e("div",{staticClass:"top-title"},[e("svg-icon",{staticStyle:{"font-size":"22px","margin-right":"8px"},attrs:{"icon-class":"home_title1"}}),e("span",{staticClass:"titleStyle"},[t._v("生产进度")])],1),e("div",{staticClass:"line-order-msg"},[e("div",[e("span",{staticClass:"title",staticStyle:{margin:"0 8px 32px 0"}},[t._v("产线名称")]),e("el-select",{staticStyle:{width:"160px"},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("el-row",{attrs:{gutter:16}},[e("el-col",{attrs:{span:12}},[e("el-row",{staticClass:"plan_num"},[e("el-col",{staticClass:"left-icon",attrs:{span:8}},[e("svg-icon",{staticStyle:{"font-size":"50px"},attrs:{"icon-class":"home_plan"}})],1),e("el-col",{style:{paddingLeft:32*t.beilv+"px"},attrs:{span:16}},[e("p",{staticClass:"num"},[t._v(" "+t._s(t.productMsg.planNum)+" ")]),e("p",{staticClass:"words"},[t._v("计划数量")])])],1)],1),e("el-col",{attrs:{span:12}},[e("el-row",{staticClass:"product_num"},[e("el-col",{staticClass:"left-icon",attrs:{span:8}},[e("svg-icon",{staticStyle:{"font-size":"50px"},attrs:{"icon-class":"home_product"}})],1),e("el-col",{style:{paddingLeft:32*t.beilv+"px"},attrs:{span:16}},[e("p",{staticClass:"num"},[t._v(" "+t._s(t.productMsg.realProductNum)+" ")]),e("p",{staticClass:"words"},[t._v("生产数量")])])],1)],1)],1)],1)]),e("div",{staticClass:"left-bottom"},[e("span",{staticClass:"title"},[t._v("生产信息")]),e("span",{staticStyle:{"margin-left":"16px"}},[t._v("工单号: "+t._s(t.productMsg.code))]),e("ring-chart",{attrs:{chartMsg:t.productMsg,beilv:t.beilv}})],1)]),e("el-col",{attrs:{span:10}},[e("div",{staticClass:"right"},[e("progress-details",{attrs:{detailMsg:t.detailMsg,beilv:t.beilv}})],1)])],1)],1)},r=[],n=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"100%"},style:{height:t.chartHeight+"px"},attrs:{id:"productRing"}})])},o=[],i=a(7171),l=a(475),c=a(5468),u={mixins:[c.Z],name:"RingChart",data(){return{chartHeight:(0,l.NC)(439)-60}},props:{chartMsg:{type:Object,default:()=>({chart:""})}},mounted(){this.$nextTick((()=>{this.initChart()})),window.addEventListener("resize",(()=>{this.chartHeight=(0,l.NC)(439)-60}))},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=i.S1(t),console.log(this.chartMsg);var e=this.chartMsg.finishNum?this.chartMsg.finishNum:0,a=this.chartMsg.okNum?this.chartMsg.okNum:0,s=this.chartMsg.wasteNum?this.chartMsg.wasteNum:0,r=this.chartMsg.reprocessNum?this.chartMsg.reprocessNum:0,n=this.chartMsg.tuneNum?this.chartMsg.tuneNum:0,o={tooltip:{trigger:"item"},legend:{icon:"circle",top:"0%",left:"-10px"},series:[{type:"pie",zlevel:1,radius:["48%","50%"],center:["50%","60%"],label:{show:!0,position:"center",color:"#9A9EBA",formatter:["{a|"+e+"}","{b|总生产数量}"].join("\n\n"),rich:{a:{color:"#262626",fontSize:50},b:{color:"#979797",fontSize:22}}},itemStyle:{shadowBlur:10,shadowColor:"rgba(209, 204, 214, 0.64)",color:"#fff"},tooltip:{show:!1},emphasis:{scale:!1},data:[100]},{type:"pie",radius:["62%","63%"],center:["50%","60%"],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:["50%","62%"],center:["50%","60%"],clockwise:!0,avoidLabelOverlap:!1,emphasis:{scale:!1},silent:!0,label:{show:!0,formatter(t){return["{a|"+t.name+"}","{b|"+t.value+"}"].join("\n\n")},color:"inherit",rich:{a:{fontSize:18},b:{color:"#000",fontSize:24}}},labelLine:{length2:60},data:[{value:r,name:"待再加工",itemStyle:{color:"#ffb750"}},{value:a,name:"良品数量",itemStyle:{color:"#288aff"}},{value:s,name:"废品数量",itemStyle:{color:"#7a34fd"}},{value:n,name:"调机数量",itemStyle:{color:"#50d277"}}]}]};this.chart.setOption(o,!0)}}},d=u,p=a(1001),m=(0,p.Z)(d,n,o,!1,null,null,null),h=m.exports,f=function(){var t=this,e=t._self._c;return e("div",{staticClass:"order-detail"},[e("span",{staticClass:"title"},[t._v("生产信息")]),e("el-row",{staticClass:"detail-box"},[e("el-col",{attrs:{span:10}},[e("div",{staticClass:"column-box border-right"},[e("p",{staticClass:"box"},[e("span",{staticClass:"tip-value"},[t._v(t._s(t.planStartTime))]),e("span",{staticClass:"tip"},[t._v("计划开始时间")])]),e("p",{staticClass:"box"},[e("span",{staticClass:"tip-value"},[t._v(t._s(t.planEndTime))]),e("span",{staticClass:"tip"},[t._v("计划结束时间")])]),e("p",{staticClass:"box"},[e("span",{staticClass:"tip-value"},[t._v(t._s(t.startTime))]),e("span",{staticClass:"tip"},[t._v("实际开始时间")])]),e("p",{staticClass:"box clear-border"},[e("span",{staticClass:"tip-value"},[t._v(t._s(t.detailMsg.sumProcessTime?t.detailMsg.sumProcessTime+"分钟":"-"))]),e("span",{staticClass:"tip"},[t._v("累计加工时长")])])])]),e("el-col",{attrs:{span:7}},[e("div",{staticClass:"column-box border-right"},[e("p",{staticClass:"box"},[e("span",{staticClass:"tip-value"},[t._v(t._s(t.detailMsg.code))]),e("span",{staticClass:"tip"},[t._v("工单编号")])]),e("p",{staticClass:"box"},[e("span",{staticClass:"tip-value"},[t._v(t._s(t.detailMsg.planNum))]),e("span",{staticClass:"tip"},[t._v("计划数量")])]),e("p",{staticClass:"box"},[e("span",{staticClass:"tip-value"},[t._v(t._s(t.type))]),e("span",{staticClass:"tip"},[t._v("工单类型")])]),e("p",{staticClass:"box clear-border"},[e("span",{staticClass:"tip-value"},[t._v(t._s(t.process))]),e("span",{staticClass:"tip"},[t._v("工单进度")])])])]),e("el-col",{attrs:{span:7}},[e("div",{staticClass:"column-box"},[e("p",{staticClass:"box"},[e("span",{staticClass:"tip-value"},[t._v(t._s(t.status))]),e("span",{staticClass:"tip"},[t._v("工单状态")])]),e("p",{staticClass:"box"},[e("span",{staticClass:"tip-value"},[t._v(t._s(t.detailMsg.realProductNum))]),e("span",{staticClass:"tip"},[t._v("完成数量")])]),e("p",{staticClass:"box"},[e("span",{staticClass:"tip-value"},[t._v(t._s(t.detailMsg.productSpec))]),e("span",{staticClass:"tip"},[t._v("产品型号")])]),e("p",{staticClass:"box clear-border"},[e("span",{staticClass:"tip-value"},[t._v(t._s(t.yieldNum))]),e("span",{staticClass:"tip"},[t._v("工单良率")])])])])],1)],1)},g=[],v={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.status&&(t=e.dataName)})),t},planStartTime(){return(0,l.g6)(this.detailMsg.planStartTime)},planEndTime(){return(0,l.g6)(this.detailMsg.planEndTime)},process(){return this.detailMsg.process?(100*this.detailMsg.process).toFixed(0)+"%":""},yieldNum(){return this.detailMsg.yield?(100*this.detailMsg.yield).toFixed(0)+"%":""},startTime(){return(0,l.g6)(this.detailMsg.startTime)}}},C=v,b=(0,p.Z)(C,f,g,!1,null,"1be9dfe2",null),_=b.exports,M=a(5591),y=a(5093),w={name:"WorkOrderProgress",components:{RingChart:h,ProgressDetails:_},data(){return{beilv:1,lineName:1,nameList:JSON.parse(localStorage.getItem("publicList")).proLineVoList,productMsg:{},detailMsg:{}}},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,M.b6)({productionLineId:this.lineName}).then((t=>{console.log(t),0===t.code&&(this.productMsg=t.data)}))},getProcess(){(0,y.Mk)({productionLineId:this.lineName}).then((t=>{console.log(t),0===t.code&&(this.detailMsg=t.data)}))}}},x=w,Z=(0,p.Z)(x,s,r,!1,null,"7e4304c8",null),S=Z.exports},5591:function(t,e,a){a.d(e,{FH:function(){return i},Hp:function(){return c},JQ:function(){return o},SI:function(){return n},Vx:function(){return u},WQ:function(){return m},b6:function(){return d},iv:function(){return r},jL:function(){return l},m:function(){return p}});var s=a(8859);function r(){return(0,s.Z)({url:"/common/getList",method:"post"})}function n(){return(0,s.Z)({url:"/common/getTreeData",method:"post"})}function o(t){return(0,s.Z)({url:"/common/updateEqSeq",method:"post",data:t})}function i(t){return(0,s.Z)({url:"/common/attachment/downloadFile",method:"get",responseType:"blob",params:t,timeout:6e4})}function l(t){return(0,s.Z)({url:"/common/getFpyData",method:"post",data:t})}function c(t){return(0,s.Z)({url:"/common/getAlarmData",method:"post",data:t})}function u(t){return(0,s.Z)({url:"/common/getCapacityData",method:"post",data:t})}function d(t){return(0,s.Z)({url:"/common/getProductData",method:"post",data:t})}function p(t){return(0,s.Z)({url:"/common/getMaterialData",method:"post",data:t})}const m="/api/common/attachment/uploadFileFormData"},5093:function(t,e,a){a.d(e,{EM:function(){return u},EO:function(){return d},F7:function(){return v},Hq:function(){return S},Mk:function(){return r},Nm:function(){return w},Ol:function(){return h},SN:function(){return M},TQ:function(){return f},To:function(){return o},Tp:function(){return m},W9:function(){return n},Xe:function(){return i},a1:function(){return g},ag:function(){return b},dg:function(){return y},j4:function(){return _},lb:function(){return l},n8:function(){return x},w3:function(){return c},wM:function(){return Z},xz:function(){return C},zz:function(){return p}});var s=a(8859);function r(t){return(0,s.Z)({url:"/order/workOrderProcess/getProcessInfo",method:"post",data:t})}function n(t){return(0,s.Z)({url:"/order/workOrder/page",method:"post",data:t})}function o(t){return(0,s.Z)({url:"/order/workOrder/add",method:"post",data:t})}function i(t){return(0,s.Z)({url:"/order/workOrder/delete",method:"post",data:t})}function l(t){return(0,s.Z)({url:"/order/workOrder/update",method:"post",data:t})}function c(t){return(0,s.Z)({url:"/order/workOrder/get",method:"post",data:t})}function u(t){return(0,s.Z)({url:"/order/workOrder/release",method:"post",data:t})}function d(t){return(0,s.Z)({url:"/order/workOrder/finish",method:"post",data:t})}function p(t){return(0,s.Z)({url:"/order/workOrder/importTemplate",method:"post",data:t})}const m="/api/order/workOrder/import";function h(t){return(0,s.Z)({url:"/order/ProData/page",method:"post",data:t})}function f(t){return(0,s.Z)({url:"/order/ProData/export",method:"post",responseType:"blob",data:t,timeout:6e4})}function g(t){return(0,s.Z)({url:"/order/unloadPallet/page",method:"post",data:t})}function v(t){return(0,s.Z)({url:"/order/unloadPallet/add",method:"post",data:t})}function C(t){return(0,s.Z)({url:"/order/unloadPallet/get",method:"post",data:t})}function b(t){return(0,s.Z)({url:"/order/unloadPallet/update",method:"post",data:t})}function _(t){return(0,s.Z)({url:"/order/unloadPallet/verify",method:"post",formState:!0,data:t})}function M(t){return(0,s.Z)({url:"/order/unloadPallet/finish",method:"post",data:t})}function y(t){return(0,s.Z)({url:"/order/unloadPallet/continuePack",method:"post",data:t})}function w(t){return(0,s.Z)({url:"/order/unloadPallet/getDetail",method:"post",data:t})}function x(t){return(0,s.Z)({url:"/order/unloadPallet/glassIdTrace",method:"post",formState:!0,data:t})}function Z(t){return(0,s.Z)({url:"/order/reloadRack/reload",method:"post",data:t})}function S(t){return(0,s.Z)({url:"/order/reloadRack/end",method:"post",data:t})}}}]); |