1 line
5.6 KiB
JavaScript
1 line
5.6 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/dataSummary/dayDetail"],{"0851":function(t,e,a){"use strict";a.r(e);var n=a("9d98"),i=a("5e45");for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("2051");var s,r=a("f0c5"),u=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"b57f777a",null,!1,n["a"],s);e["default"]=u.exports},2051:function(t,e,a){"use strict";var n=a("2826"),i=a.n(n);i.a},2826:function(t,e,a){},5200:function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a("2f62");function i(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function o(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?i(Object(a),!0).forEach((function(e){s(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):i(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function s(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var r=function(){a.e("components/uni-popup").then(function(){return resolve(a("bf63"))}.bind(null,a)).catch(a.oe)},u={data:function(){var e=this.$util.cutDate(new Date,"YYYY/MM/DD"),a=this.$util.cutDate(new Date,"YYYY/MM/DD","-90");return{pageData:{pageIndex:1,pageSize:10,sDate:e,SERVERPART_ID:"",isEnd:!1,isLoading:!0,endDate:e,startDate:a},sMsg:{},fixedY:-68,opacity:0,showPopupMiddle:!1,pageHieght:t.getSystemInfoSync().windowHeight,pageList:[],unUploadList:[]}},components:{popUp:r},methods:o(o({},(0,n.mapMutations)(["shouldReLoadingList"])),{},{bindDateChange:function(e){var a=e.detail.value;this.pageData.pageIndex=1,this.pageData.sDate=a.replace(/-/gi,"/"),t.showLoading({title:"正在加载"}),this.getList(),this.getHeader(),this.getUnUpLoadShops()},cardIcoPath:function(t){switch(t){case 3:return"/static/images/effective/jkcs.png";case 1:return"/static/images/effective/ewm.png";case 2:return"/static/images/effective/scj.png"}},showFixed:function(e){var a=e.detail;a.scrollTop>95&&a.scrollTop<162?(this.fixedY=a.scrollTop-95-68,this.opacity=(a.scrollTop-85)/68):a.scrollTop>162?(t.setNavigationBarColor({backgroundColor:"#EAEBEB"}),this.fixedY=0,this.opacity=1):(this.fixedY=-68,this.opacity=0)},getList:function(){var e=this;e.$request.$get("GetEndaccountDetails",{statistical_Date:this.pageData.sDate,Serverpart_Id:this.pageData.SERVERPART_ID,page_Index:this.pageData.pageIndex,page_Size:this.pageData.pageSize}).then((function(a){if(t.hideLoading(),a.Result_Code&&"100"==a.Result_Code){var n=a.Result_Data.List;e.pageList=1===e.pageData.pageIndex?n:e.pageList.concat(n),n.length<e.pageData.pageSize&&(e.pageData.isEnd=!0)}}))},getHeader:function(){var t=this;t.$request.$get("GetEndaccountListByDate",{statistical_Date:this.pageData.sDate,Serverpart_Id:this.pageData.SERVERPART_ID}).then((function(e){if(e.Result_Data.List&&100==e.Result_Code){var a=e.Result_Data.List[0];a.ENDACCOUNT_DATE=t.$util.cutDate(a.ENDACCOUNT_DATE,"MM月DD日"),a.DIFFERENT_PRICE_LESS=t.$util.fmoney(a.DIFFERENT_PRICE_LESS),a.DIFFERENT_PRICE_MORE=t.$util.fmoney(a.DIFFERENT_PRICE_MORE),t.sMsg=a,a.SHOP_UPCOUNT>0&&t.getUnUpLoadShops()}}))},goDetail:function(t){this.$util.toNextRoute("navigateTo","/pages/dataSummary/detail?SERVERPART_ID="+t.SERVERPART_ID+"&ENDACCOUNT_ID="+t.ENDACCOUNT_ID)},getUnUpLoadShops:function(){var t=this;t.$request.$get("GetUnUpLoadShops",{action_record:t.pageData.sDate,Serverpart_Id:t.pageData.SERVERPART_ID}).then((function(e){var a=e.Result_Data;t.unUploadList=a.List}))},reachBottom:function(){var t=this;t.pageData.isEnd||(t.pageData.pageIndex+=1,t.getList())},showPop:function(){this.sMsg.SHOP_UPCOUNT>0&&(this.showPopupMiddle=!0)},closePop:function(){this.showPopupMiddle=!1}}),onPullDownRefresh:function(){t.showLoading({title:"正在加载"}),this.pageData.pageIndex=1,this.pageData.isEnd=!1,this.getList(),this.getHeader(),setTimeout((function(){t.stopPullDownRefresh()}),1e3)},onReachBottom:function(){this.reachBottom()},onLoad:function(e){var a=this;t.showLoading({title:"正在加载"}),this.pageData.sDate=e.date,this.pageData.SERVERPART_ID=e.seviceId,this.getList(),this.getHeader(),t.$on("datasummary",(function(e){e&&(t.showLoading({title:"正在加载"}),a.pageData.pageIndex=1,a.pageData.isEnd=!1,a.getList(),a.getHeader(),a.shouldReLoadingList(!0))}))},onShow:function(){},onUnload:function(){this.$util.addUserBehavior(),t.$off("datasummary")},onHide:function(){}};e.default=u}).call(this,a("543d")["default"])},"5e45":function(t,e,a){"use strict";a.r(e);var n=a("5200"),i=a.n(n);for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},"9d98":function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return n}));var i=function(){var t=this,e=t.$createElement,a=(t._self._c,t.sMsg.CASHPAY?t.$util.fmoney(t.sMsg.CASHPAY,2):null),n=t.sMsg.CASHPAY?t.$util.fmoney(t.sMsg.CASHPAY,2):null,i=t.pageList.length>0?t.__map(t.pageList,(function(e,a){var n=t.__get_orig(e),i=t.$util.fmoney(e.CASHPAY),o=t.cardIcoPath(e.SCAN_TYPE);return{$orig:n,g2:i,m0:o}})):null;t.$mp.data=Object.assign({},{$root:{g0:a,g1:n,l0:i}})},o=[]},"9d9b":function(t,e,a){"use strict";(function(t){a("40da");n(a("66fd"));var e=n(a("0851"));function n(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,a("543d")["createPage"])}},[["9d9b","common/runtime","common/vendor"]]]); |