Files
wms_base/wms_pro/qd/public/daping/static/js/0.5ff5b784cc759b8375a8.js

9 lines
77 KiB
JavaScript
Raw Normal View History

2024-12-21 15:09:27 +08:00
webpackJsonp([0],{"//Fk":function(t,e,i){t.exports={default:i("U5ju"),__esModule:!0}},"0m0y":function(t,e){},"1H6C":function(t,e,i){var s=function(){return this}()||Function("return this")(),a=s.regeneratorRuntime&&Object.getOwnPropertyNames(s).indexOf("regeneratorRuntime")>=0,r=a&&s.regeneratorRuntime;if(s.regeneratorRuntime=void 0,t.exports=i("HhN8"),a)s.regeneratorRuntime=r;else try{delete s.regeneratorRuntime}catch(t){s.regeneratorRuntime=void 0}},"21It":function(t,e,i){"use strict";var s=i("FtD3");t.exports=function(t,e,i){var a=i.config.validateStatus;i.status&&a&&!a(i.status)?e(s("Request failed with status code "+i.status,i.config,null,i.request,i)):t(i)}},"2KxR":function(t,e){t.exports=function(t,e,i,s){if(!(t instanceof e)||void 0!==s&&s in t)throw TypeError(i+": incorrect invocation!");return t}},"4ijW":function(t,e,i){"use strict";var s=i("//Fk"),a=i.n(s),r=i("mtWM"),n=i.n(r),o=i("yclV"),c=i("YtJ0"),l=i("YaEn");n.a.defaults.timeout=5e4,n.a.defaults.headers.post["Content-Type"]="application/json;charset=UTF-8",n.a.interceptors.request.use(function(t){return"post"===t.method&&(t.data.flag?t.data=t.data.formData:t.data=t.data),t},function(t){return Object(o.a)("错误的传参"),a.a.reject(t)}),n.a.interceptors.response.use(function(t){return a.a.resolve(t)},function(t){if(t&&t.response){switch(t.response.status){case 400:break;case 401:l.a.push("/setup")}return a.a.reject(t.response.data)}return a.a.reject(t)});var _=function(t,e){return new a.a(function(i,s){n.a.post(c.a.getters.baseUrl+"/"+t,e).then(function(t){i(t.data)},function(t){s(t.message)}).catch(function(t){s(t)})})};i.d(e,"b",function(){return u}),i.d(e,"a",function(){return d}),i.d(e,"c",function(){return v}),i.d(e,"d",function(){return f});var u=function(){return _("api/board/queryPickingPoint",{})},d=function(t){return _("api/board/pickingInfo",{code:t})},v=function(){return _("api/board/synthesizeInfo",{})},f=function(t,e){return _("api/bmMaterial/updateMaterialInfo",{material_id:t,single_weight:e})}},"5VQ+":function(t,e,i){"use strict";var s=i("cGG2");t.exports=function(t,e){s.forEach(t,function(i,s){s!==e&&s.toUpperCase()===e.toUpperCase()&&(t[e]=i,delete t[s])})}},"5zde":function(t,e,i){i("zQR9"),i("qyJz"),t.exports=i("FeBl").Array.from},"7GwW":function(t,e,i){"use strict";var s=i("cGG2"),a=i("21It"),r=i("DQCr"),n=i("oJlt"),o=i("GHBc"),c=i("FtD3"),l="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||i("thJu");t.exports=function(t){return new Promise(function(e,_){var u=t.data,d=t.headers;s.isFormData(u)&&delete d["Content-Type"];var v=new XMLHttpRequest,f="onreadystatechange",p=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in v||o(t.url)||(v=new window.XDomainRequest,f="onload",p=!0,v.onprogress=function(){},v.ontimeout=function(){}),t.auth){var h=t.auth.username||"",m=t.auth.password||"";d.Authorization="Basic "+l(h+":"+m)}if(v.open(t.method.toUpperCase(),r(t.url,t.params,t.paramsSerializer),!0),v.timeout=t.timeout,v[f]=function(){if(v&&(4===v.readyState||p)&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))){var i="getAllResponseHeaders"in v?n(v.getAllResponseHeaders()):null,s={data:t.responseType&&"text"!==t.responseType?v.response:v.responseText,status:1223===v.status?204:v.status,statusText:1223===v.status?"No Content":v.statusText,headers:i,config:t,request:v};a(e,_,s),v=null}},v.onerror=function(){_(c("Network Error",t,null,v)),v=null},v.ontimeout=function(){_(c("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",v)),v=null},s.isStandardBrowserEnv()){var g=i("p1b6"),b=(t.withCredentials||o(t.url))&&t.xsrfCookieName?g.read(t.xsrfCookieName):void 0;b&&(d[t.xsrfHeaderName]=b)}if("setRequestHeader"in v&&s.forEach(d,function(t,e){void 0===u&&"content-type"===e.toLowerCase()?delete d[e]:v.setRequestHeader(e,t)}),t.withCredentials&&(v.withCredentials=!0),t.responseType)try{v.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&v.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&v.u
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
t.exports=function(t){return null!=t&&(i(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&i(t.slice(0,0))}(t)||!!t._isBuffer)}},SH0T:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("Xxa5"),a=i.n(s),r=i("Gu7T"),n=i.n(r),o=i("exGp"),c=i.n(o),l=i("Cz8s"),_=i("4ijW"),u={components:{THeader:l.a},data:function(){return{htmlFontSize:0,interTime:this.$store.getters.setTime,timer:null,materList:[],historyList:[],myChart1:null,myChart2:null,myChart3:null,myChart4:null,lx_in_week:[],lx_out_week:[],tp_in_week:[],tp_out_week:[],lx_inventory:[],tp_inventory:[],lx_used:{},tp_used:{},lx_task:[],tp_task:[]}},created:function(){this.refresh()},mounted:function(){this.myChart1=this.$echarts.init(this.$refs.echartsRef1),this.myChart2=this.$echarts.init(this.$refs.echartsRef2),this.myChart3=this.$echarts.init(this.$refs.echartsRef3),this.myChart4=this.$echarts.init(this.$refs.echartsRef4)},destroyed:function(){null!==this.timer&&clearInterval(this.timer),null!==this.myChart1&&(this.myChart1.dispose(),this.myChart1=null),null!==this.myChart2&&(this.myChart2.dispose(),this.myChart2=null),null!==this.myChart3&&(this.myChart3.dispose(),this.myChart3=null),null!==this.myChart4&&(this.myChart4.dispose(),this.myChart4=null)},methods:{refresh:function(){var t=this;this._synthesizeInfo(),this.timer=setInterval(function(){t._synthesizeInfo()},this.interTime)},_synthesizeInfo:function(){var t=this;return c()(a.a.mark(function e(){var i;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(_.c)();case 2:i=e.sent,t.lx_used=i.lx_used,t.tp_used=i.tp_used,t.lx_in_week=[].concat(n()(i.lx_in_week)),t.lx_out_week=[].concat(n()(i.lx_out_week)),t.lx_task=[].concat(n()(i.lx_task)),t.tp_task=[].concat(n()(i.tp_task)),t.tp_in_week=[].concat(n()(i.tp_in_week)),t.tp_out_week=[].concat(n()(i.tp_out_week)),t.lx_inventory=[].concat(n()(i.lx_inventory)),t.tp_inventory=[].concat(n()(i.tp_inventory)),t.setEchart1(),t.setEchart2(),t.setEchart3(),t.setEchart4();case 17:case"end":return e.stop()}},e,t)}))()},adjustFontSize:function(t){return t*(window.innerWidth/960)},setEchart1:function(){var t=["rgba(15, 45, 115, .1)","#67D470","#B4C9EF","#BCBF5C","#EF5252","#6d5edd","#bf41bb","#f65621","#21f6eb","#64b0ad"],e=["#1980EA","rgba(15, 45, 115, .1)","rgba(15, 45, 115, .1)","rgba(15, 45, 115, .1)","rgba(15, 45, 115, .1)","rgba(15, 45, 115, .1)","rgba(15, 45, 115, .1)","rgba(15, 45, 115, .1)","rgba(15, 45, 115, .1)","rgba(15, 45, 115, .1)"],i=this.lx_inventory.slice(1);i.map(function(t){t.value=t.qty,t.name=t.name});var s=this.lx_inventory[0].total,a={color:["#1980EA","#67D470","#B4C9EF","#BCBF5C","#EF5252","#6d5edd","#bf41bb","#f65621","#21f6eb","#64b0ad"],grid:{top:0,left:0,right:0,bottom:0,containLabel:!0},title:{left:"50%",top:"50%",text:"{a|"+this.$t("page.total1")+"}\n{b|"+s+"}",textAlign:"center",textVerticalAlign:"middle",padding:0,textStyle:{rich:{a:{fontSize:this.adjustFontSize(12),lineHeight:this.adjustFontSize(18),color:"#A8C3E6"},b:{fontSize:this.adjustFontSize(17),lineHeight:this.adjustFontSize(17),fontWeight:"bold",color:"#DBE7F6"}}}},series:[{name:"内层实心圆",type:"pie",hoverOffset:0,radius:"58%",center:["50%","50%"],startAngle:270,label:{show:!1},itemStyle:{borderColor:"#2C4E6E",borderWidth:6,color:"#132942"},data:[{value:0}]},{name:"外层空心圆",type:"pie",hoverOffset:0,radius:["97%","97%"],center:["50%","50%"],startAngle:270,label:{show:!1},itemStyle:{borderColor:"#4677B8",borderWidth:1},data:[{value:0}]},{name:"设备运行统计内圈",type:"pie",radius:["70%","80%"],center:["50%","50%"],startAngle:270,labelLine:{show:!1},tooltip:{show:!1},itemStyle:{borderColor:"rgba(15, 45, 115, .1)",borderWidth:1,color:function(e){return t[e.dataIndex]}},label:{show:!1},data:i},{name:"设备运行统计外圈",type:"pie",radius:["80%","90%"],center:["50%","50%"],startAngle:270,labelLine:{show:!1},tooltip:{show:!1},itemStyle:{borderColor:"rgba(15, 45, 115, .1)",borderWidth:1,color:function(t){return e[t.dataIndex]}},label:{show:!1},data:i}]};this.my
//# sourceMappingURL=0.5ff5b784cc759b8375a8.js.map