(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/production/history"],{"07e1":function(e,t,n){"use strict";var i=n("6126"),a=n.n(i);a.a},"5bc7":function(e,t,n){"use strict";n.r(t);var i=n("8637"),a=n("ae03");for(var o in a)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("07e1");var r=n("f0c5"),u=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);t["default"]=u.exports},6126:function(e,t,n){},8637:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));var i={uniDatetimePicker:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker")]).then(n.bind(null,"d9b2"))}},a=function(){var e=this,t=e.$createElement,n=(e._self._c,e.__map(e.data,(function(t,n){var i=e.__get_orig(t),a=e.getTime(t.startTime),o=e.getTime(t.endTime)||"未结束",r=e.getJob(t.endTime,t.startTime);return{$orig:i,m0:a,m1:o,m2:r}})));e.$mp.data=Object.assign({},{$root:{l0:n}})},o=[]},"8b82":function(e,t,n){"use strict";(function(e){var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n("2eee")),o=i(n("c973")),r=n("56c9"),u={data:function(){return{wu:!1,name:"",TotalOutput:0,TotalelIminate:0,data:[],BeginSingle:"",FinishSingle:""}},onLoad:function(t){this.BeginSingle=this.getTime1(),this.FinishSingle=this.getTime1(),this.name=t.name,this.name&&(e.setNavigationBarTitle({title:this.name}),this.getData())},methods:{getData:function(){var t=this;return(0,o.default)(a.default.mark((function n(){var i;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.showLoading({title:"加载中"}),n.next=3,(0,r.history)({name:t.name,startTime:t.BeginSingle,endTime:t.FinishSingle,accessToken:e.getStorageSync("tokenInfo"),account:e.getStorageSync("account")});case 3:i=n.sent,e.hideLoading(),t.data=i.data.list,console.log(t.data),0===t.data.length&&(t.wu=!0),t.TotalOutput=i.data.outputNumber,t.TotalelIminate=i.data.rejectNumber;case 10:case"end":return n.stop()}}),n)})))()},change1:function(e){this.BeginSingle=e,console.log(this.BeginSingle),this.getData()},change2:function(e){this.FinishSingle=e,console.log(this.FinishSingle),this.getData()},getTime:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=new Date(e),n=t.getFullYear(),i=t.getMonth()+1,a=t.getDate(),o=t.getHours()<10?"0"+t.getHours():t.getHours(),r=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes();i>=1&&i<=9&&(i="0"+i),a>=0&&a<=9&&(a="0"+a);var u=n+"-"+i+"-"+a+" "+o+":"+r;return u},getTime1:function(){var e=new Date,t=e.getFullYear(),n=e.getMonth()+1,i=e.getDate();n>=1&&n<=9&&(n="0"+n),i>=0&&i<=9&&(i="0"+i);var a=t+"-"+n+"-"+i;return a},getJob:function(e,t){var n=e?new Date(e).getTime():(new Date).getTime(),i=new Date(t).getTime(),a=n-i,o=Math.floor(a/864e5),r=a%864e5,u=Math.floor(r/36e5),c=r%36e5,s=Math.floor(c/6e4);return o+"天"+u+"小时"+s+"分钟"}}};t.default=u}).call(this,n("543d")["default"])},ae03:function(e,t,n){"use strict";n.r(t);var i=n("8b82"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=a.a},c48b:function(e,t,n){"use strict";(function(e,t){var i=n("4ea4");n("9012");i(n("66fd"));var a=i(n("5bc7"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])}},[["c48b","common/runtime","common/vendor"]]]);