You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
17 KiB
JavaScript
1 line
17 KiB
JavaScript
(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{"02f0":function(t,e,r){"use strict";r.r(e);var n=r("4884");for(var i in n)["default"].indexOf(i)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(i);var a=r("828b"),s=Object(a["a"])(n["default"],void 0,void 0,!1,null,null,null,!1,void 0,void 0);e["default"]=s.exports},"0b7c":function(t,e,r){var n=r("3b2d");uni.addInterceptor({returnValue:function(t){return!t||"object"!==n(t)&&"function"!==typeof t||"function"!==typeof t.then?t:new Promise((function(e,r){t.then((function(t){return t[0]?r(t[0]):e(t[1])}))}))}})},"215f":function(t,e,r){t.exports=r.p+"static/three_left.png"},2851:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.getEnamellingSummaryData=void 0;var i=n(r("cb9c"));e.getEnamellingSummaryData=function(){return(0,i.default)({url:"/mes/mesEnamellingWorkorder/getEnamellingSummaryData"})}},"2ca2":function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={onLaunch:function(){t("log","App Launch"," at App.vue:4")},onShow:function(){t("log","App Show"," at App.vue:7")},onHide:function(){t("log","App Hide"," at App.vue:10")}};e.default=r}).call(this,r("f3b9")["default"])},"3b2d":function(t,e){function r(e){return t.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports["default"]=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},"3d8f":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={401:"\u8ba4\u8bc1\u5931\u8d25\uff0c\u65e0\u6cd5\u8bbf\u95ee\u7cfb\u7edf\u8d44\u6e90",403:"\u5f53\u524d\u64cd\u4f5c\u6ca1\u6709\u6743\u9650",404:"\u8bbf\u95ee\u8d44\u6e90\u4e0d\u5b58\u5728",default:"\u7cfb\u7edf\u672a\u77e5\u9519\u8bef\uff0c\u8bf7\u53cd\u9988\u7ed9\u7ba1\u7406\u5458"}},"47a9":function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports["default"]=t.exports},4884:function(t,e,r){"use strict";r.r(e);var n=r("2ca2"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"5a43":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r("2851"),i={data:function(){return{statistics:[{title:"\u4eca\u65e5\u6392\u4ea7\u6570\u91cf",value:0,imageUrl:r("bd07"),leftArrowsUrl:r("215f"),rightArrowsUrl:r("c9f2")},{title:"\u6392\u4ea7\u4e2d\u6570\u91cf",value:0,imageUrl:r("bd07"),leftArrowsUrl:r("215f"),rightArrowsUrl:r("c9f2")},{title:"\u751f\u4ea7\u4e2d\u6570\u91cf",value:0,imageUrl:r("bd07"),leftArrowsUrl:r("215f"),rightArrowsUrl:r("c9f2")}],titleList:[{text:"\u5e8f\u53f7",flex:1},{text:"\u6f06\u5305\u5de5\u5355\u53f7",flex:2},{text:"\u8bbe\u5907\u7f16\u53f7",flex:1},{text:"\u8f74\u53f7",flex:1},{text:"\u89c4\u683c",flex:1},{text:"\u578b\u53f7",flex:2},{text:"\u91cd\u91cf(kg)",flex:1},{text:"\u72b6\u6001",flex:1},{text:"\u7ebf\u76d8",flex:1}],tableDataAll:[],tableData:[],tabelHeight:0,showHeight:0,timer:null,pageNum:0,time:5e3,pageSize:12,tableTextTip:"\u6682\u65e0\u6570\u636e",refreshTime:3e4}},mounted:function(){this.getData();var t=this;this.$nextTick((function(){uni.getSystemInfo({success:function(e){t.tabelHeight=e.windowHeight-20,t.getEleHeight(".headline"),t.getEleHeight(".statistics"),t.getEleHeight(".table-title-item")}})}))},beforeDestroy:function(){this.timer&&(clearTimeout(this.timer),this.timer=null),this.timerId&&(clearTimeout(this.timerId),this.timerId=null)},methods:{startApply:function(){var t=this,e=!1;this.tableData=this.tableDataAll.slice(this.pageNum*this.pageSize,this.pageSize),this.tableDataAll.length<=this.pageSize&&(this.pageNum=0,e=!0);this.timer=setTimeout((function r(){e&&(t.pageNum=-1),t.pageNum++;var n=t.pageNum*t.pageSize,i=n+t.pageSize;t.tableData=t.tableDataAll.slice(n,i),t.tableData.length<t.pageSize||i>=t.tableDataAll.length?(e=!0,t.timer=setTimeout(r,t.time)):(e=!1,t.timer=setTimeout(r,t.time))}),this.time)},getEleHeight:function(t){var e=this;uni.createSelectorQuery().select(t).boundingClientRect((function(r){e.tabelHeight-=r.height,".table-title-item"===t&&(e.showHeight=e.tabelHeight/e.pageSize)})).exec()},getStatusName:function(t){var e="";switch(t){case"0":e="\u5df2\u6392\u4ea7";break;case"1":e="\u751f\u4ea7\u4e2d";break;case"2":e="\u5df2\u5b8c\u5de5";break;case"3":e="\u5df2\u4f5c\u5e9f";break;default:break}return e},refresh:function(){this.timerId&&clearInterval(this.timerId),this.timerId=setInterval(this.getData,this.refreshTime)},getData:function(){var t=this;(0,n.getEnamellingSummaryData)().then((function(e){if(200===e.code){var r=e.data||{};if(t.statistics[0].value=r.todaySchedulingNum||0,t.statistics[1].value=r.schedulingNum||0,t.statistics[2].value=r.productionNum||0,t.tableDataAll=r.mesEnamellingWorkorders||[],0===t.tableDataAll.length)return t.tableData=[],t.tableTextTip="\u6682\u65e0\u6570\u636e",void t.refresh();if(t.isgetStartApply)return;t.refresh(),t.isgetStartApply=!0,t.startApply()}else t.refresh()})).catch((function(){t.refresh()}))}}};e.default=i},"644c":function(t,e,r){t.exports=r.p+"static/pageBg.png"},"751e":function(t,e,r){"use strict";r.r(e);var n=r("5a43"),i=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"77ba":function(t,e,r){"use strict";r.r(e);var n=r("c523"),i=r("751e");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);var s=r("828b"),o=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"990557ea",null,!1,n["a"],void 0);e["default"]=o.exports},"7ca3":function(t,e,r){var n=r("d551");t.exports=function(t,e,r){return e=n(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports["default"]=t.exports},"828b":function(t,e,r){"use strict";function n(t,e,r,n,i,a,s,o,l,u){var c,f="function"===typeof t?t.options:t;if(l){f.components||(f.components={});var p=Object.prototype.hasOwnProperty;for(var d in l)p.call(l,d)&&!p.call(f.components,d)&&(f.components[d]=l[d])}if(u&&("function"===typeof u.beforeCreate&&(u.beforeCreate=[u.beforeCreate]),(u.beforeCreate||(u.beforeCreate=[])).unshift((function(){this[u.__module]=this})),(f.mixins||(f.mixins=[])).push(u)),e&&(f.render=e,f.staticRenderFns=r,f._compiled=!0),n&&(f.functional=!0),a&&(f._scopeId="data-v-"+a),s?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},f._ssrRegister=c):i&&(c=o?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(f.functional){f._injectStyles=c;var _=f.render;f.render=function(t,e){return c.call(e),_(t,e)}}else{var v=f.beforeCreate;f.beforeCreate=v?[].concat(v,c):[c]}return{exports:t,options:f}}r.d(e,"a",(function(){return n}))},"84fd":function(t,e,r){var n=null;n="http://106.227.91.181:9081/api";var i={baseUrl:n,appInfo:{name:"\u6f06\u5305\u8f66\u95f4\u770b\u677f",version:"1.1.0",logo:"/static/logo.png",site_url:"http://ruoyi.vip",agreements:[{title:"\u9690\u79c1\u653f\u7b56",url:"https://ruoyi.vip/protocol.html"},{title:"\u7528\u6237\u670d\u52a1\u534f\u8bae",url:"https://ruoyi.vip/protocol.html"}]}};t.exports=i},"8dea":function(t,e,r){if("undefined"===typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(r){return e.resolve(t()).then((function(){return r}))}),(function(r){return e.resolve(t()).then((function(){throw r}))}))}),"undefined"!==typeof uni&&uni&&uni.requireGlobal){var n=uni.requireGlobal();ArrayBuffer=n.ArrayBuffer,Int8Array=n.Int8Array,Uint8Array=n.Uint8Array,Uint8ClampedArray=n.Uint8ClampedArray,Int16Array=n.Int16Array,Uint16Array=n.Uint16Array,Int32Array=n.Int32Array,Uint32Array=n.Uint32Array,Float32Array=n.Float32Array,Float64Array=n.Float64Array,BigInt64Array=n.BigInt64Array,BigUint64Array=n.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),__definePage("pages/index/index",(function(){return Vue.extend(r("77ba").default)}))},"951c":function(t,e){t.exports=Vue},bd07:function(t,e,r){t.exports=r.p+"static/bottom_count.png"},c523:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","screen"),attrs:{_i:0}},[n("image",{staticClass:t._$s(1,"sc","bg-image"),attrs:{src:t._$s(1,"a-src",r("644c")),_i:1}}),n("view",{staticClass:t._$s(2,"sc","headline"),attrs:{_i:2}}),n("view",{staticClass:t._$s(3,"sc","statistics"),attrs:{_i:3}},t._l(t._$s(4,"f",{forItems:t.statistics}),(function(e,r,i,a){return n("view",{key:t._$s(4,"f",{forIndex:i,key:r}),staticClass:t._$s("4-"+a,"sc","statistics-list"),attrs:{_i:"4-"+a}},[n("view",{staticClass:t._$s("5-"+a,"sc","image"),style:t._$s("5-"+a,"s",{backgroundImage:"url("+e.imageUrl+")"}),attrs:{_i:"5-"+a}},[t._v(t._$s("5-"+a,"t0-0",t._s(e.value)))]),n("view",{staticClass:t._$s("6-"+a,"sc","title-arrows-box"),attrs:{_i:"6-"+a}},[n("view",{staticClass:t._$s("7-"+a,"sc","arrows"),style:t._$s("7-"+a,"s",{backgroundImage:"url("+e.leftArrowsUrl+")"}),attrs:{_i:"7-"+a}}),n("view",{staticClass:t._$s("8-"+a,"sc","title"),attrs:{_i:"8-"+a}},[t._v(t._$s("8-"+a,"t0-0",t._s(e.title)))]),n("view",{staticClass:t._$s("9-"+a,"sc","arrows"),style:t._$s("9-"+a,"s",{backgroundImage:"url("+e.rightArrowsUrl+")"}),attrs:{_i:"9-"+a}})])])})),0),n("view",{staticClass:t._$s(10,"sc","content border-box"),attrs:{_i:10}},[n("view",{staticClass:t._$s(11,"sc","table-title-item"),attrs:{_i:11}},t._l(t._$s(12,"f",{forItems:t.titleList}),(function(e,r,i,a){return n("view",{key:t._$s(12,"f",{forIndex:i,key:r}),staticClass:t._$s("12-"+a,"sc","table-title-list"),style:t._$s("12-"+a,"s",{flex:e.flex}),attrs:{_i:"12-"+a}},[t._v(t._$s("12-"+a,"t0-0",t._s(e.text)))])})),0),t._$s(13,"i",t.tableDataAll.length>0)?n("view",{staticClass:t._$s(13,"sc","table-content-item"),style:t._$s(13,"s",{height:t.tabelHeight+"px"}),attrs:{_i:13}},t._l(t._$s(14,"f",{forItems:t.tableData}),(function(e,r,i,a){return n("view",{key:t._$s(14,"f",{forIndex:i,key:e.id}),staticClass:t._$s("14-"+a,"sc","table-content-list"),style:t._$s("14-"+a,"s",{height:t.showHeight+"px"}),attrs:{_i:"14-"+a}},[n("view",{staticClass:t._$s("15-"+a,"sc","overflow-one"),attrs:{_i:"15-"+a}},[t._v(t._$s("15-"+a,"t0-0",t._s(t.pageNum*t.pageSize+1+r)))]),n("view",{staticClass:t._$s("16-"+a,"sc","overflow-one"),attrs:{_i:"16-"+a}},[t._v(t._$s("16-"+a,"t0-0",t._s(e.enamellingCode)))]),n("view",{staticClass:t._$s("17-"+a,"sc","overflow-one"),attrs:{_i:"17-"+a}},[t._v(t._$s("17-"+a,"t0-0",t._s(e.equipmentCode)))]),n("view",{staticClass:t._$s("18-"+a,"sc","overflow-one"),attrs:{_i:"18-"+a}},[t._v(t._$s("18-"+a,"t0-0",t._s(e.axleNumber)))]),n("view",{staticClass:t._$s("19-"+a,"sc","overflow-one"),attrs:{_i:"19-"+a}},[t._v(t._$s("19-"+a,"t0-0",t._s(e.specification)))]),n("view",{staticClass:t._$s("20-"+a,"sc","overflow-one"),attrs:{_i:"20-"+a}},[t._v(t._$s("20-"+a,"t0-0",t._s(e.model)))]),n("view",{staticClass:t._$s("21-"+a,"sc","overflow-one"),attrs:{_i:"21-"+a}},[t._v(t._$s("21-"+a,"t0-0",t._s(e.weight)))]),n("view",{staticClass:t._$s("22-"+a,"sc","overflow-one"),attrs:{_i:"22-"+a}},[t._v(t._$s("22-"+a,"t0-0",t._s(t.getStatusName(e.status))))]),n("view",{staticClass:t._$s("23-"+a,"sc","overflow-one"),attrs:{_i:"23-"+a}},[t._v(t._$s("23-"+a,"t0-0",t._s(e.wireDisc)))])])})),0):n("view",{staticClass:t._$s(24,"sc","table-content-item empty"),style:t._$s(24,"s",{height:t.tabelHeight+"px"}),attrs:{_i:24}},[t._v(t._$s(24,"t0-0",t._s(t.tableTextTip)))])])])},i=[]},c9f2:function(t,e,r){t.exports=r.p+"static/three_right.png"},cb9c:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r("7ca3")),a=n(r("84fd")),s=n(r("3d8f")),o=r("d4ea");function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){(0,i.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var c=a.default.baseUrl,f=function(t){if(t.header=t.header||{},t.params){var e=t.url+"?"+(0,o.tansParams)(t.params);e=e.slice(0,-1),t.url=e}return new Promise((function(e,r){uni.request({method:t.method||"get",timeout:t.timeout||12e4,url:t.baseUrl||c+t.url,data:t.data,header:u(u({},t.header),{},{"x-tenant-id":"0"}),dataType:"json"}).then((function(t){var n=t,i=n.data.code||200;s.default[i]||n.data.msg||s.default["default"];500===i?r("500"):200!==i&&r(i),e(n.data)})).catch((function(t){var e=t.message;"Network Error"===e?e="\u7f51\u7edc\u4e0d\u7a33\u5b9a,\u8bf7\u68c0\u67e5\u7f51\u7edc ":"request:fail"===t.errMsg?e="\u540e\u7aef\u63a5\u53e3\u8fde\u63a5\u5f02\u5e38":"request:fail timeout"===t.errMsg?e="\u7cfb\u7edf\u63a5\u53e3\u8bf7\u6c42\u8d85\u65f6":e.includes("Request failed with status code")&&(e="\u7cfb\u7edf\u63a5\u53e3"+e.substr(e.length-3)+"\u5f02\u5e38"),r(t)}))}))};e.default=f},d4ea:function(t,e,r){"use strict";var n=r("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.showConfirm=function(t){return new Promise((function(e,r){uni.showModal({title:"\u63d0\u793a",content:t,cancelText:"\u53d6\u6d88",confirmText:"\u786e\u5b9a",success:function(t){e(t)}})}))},e.tansParams=function(t){for(var e="",r=0,n=Object.keys(t);r<n.length;r++){var a=n[r],s=t[a],o=encodeURIComponent(a)+"=";if(null!==s&&""!==s&&"undefined"!==typeof s)if("object"===(0,i.default)(s))for(var l=0,u=Object.keys(s);l<u.length;l++){var c=u[l];if(null!==s[c]&&""!==s[c]&&"undefined"!==typeof s[c]){var f=a+"["+c+"]",p=encodeURIComponent(f)+"=";e+=p+encodeURIComponent(s[c])+"&"}}else e+=o+encodeURIComponent(s)+"&"}return e},e.toast=function(t){uni.showToast({icon:"none",title:t})};var i=n(r("3b2d"))},d551:function(t,e,r){var n=r("3b2d")["default"],i=r("e6db");t.exports=function(t){var e=i(t,"string");return"symbol"==n(e)?e:e+""},t.exports.__esModule=!0,t.exports["default"]=t.exports},e66d:function(t,e,r){"use strict";var n=r("47a9"),i=n(r("7ca3"));r("8dea");var a=n(r("02f0")),s=n(r("951c"));function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}r("0b7c"),s.default.config.productionTip=!1,a.default.mpType="app";var l=new s.default(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach((function(e){(0,i.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},a.default));l.$mount()},e6db:function(t,e,r){var n=r("3b2d")["default"];t.exports=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports["default"]=t.exports},f3b9:function(t,e,r){"use strict";function n(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function i(){return"string"===typeof __channelId__&&__channelId__}function a(t,e){switch(n(e)){case"Function":return"function() { [native code] }";default:return e}}function s(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];console[t].apply(console,r)}function o(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var s=e.shift();if(i())return e.push(e.pop().replace("at ","uni-app:///")),console[s].apply(console,e);var o=e.map((function(t){var e=Object.prototype.toString.call(t).toLowerCase();if("[object object]"===e||"[object array]"===e)try{t="---BEGIN:JSON---"+JSON.stringify(t,a)+"---END:JSON---"}catch(i){t=e}else if(null===t)t="---NULL---";else if(void 0===t)t="---UNDEFINED---";else{var r=n(t).toUpperCase();t="NUMBER"===r||"BOOLEAN"===r?"---BEGIN:"+r+"---"+t+"---END:"+r+"---":String(t)}return t})),l="";if(o.length>1){var u=o.pop();l=o.join("---COMMA---"),0===u.indexOf(" at ")?l+=u:l+="---COMMA---"+u}else l=o[0];console[s](l)}r.r(e),r.d(e,"log",(function(){return s})),r.d(e,"default",(function(){return o}))}},[["e66d","app-config"]]]); |