You can not 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
5.0 KiB
1 line
5.0 KiB
|
2 months ago
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["package1/index/dataStatistics"],{"2f32":function(o,t,n){"use strict";var e=n("6ff2"),a=n.n(e);a.a},4801:function(o,t,n){"use strict";n.r(t);var e=n("a261"),a=n("b7f9");for(var s in a)["default"].indexOf(s)<0&&function(o){n.d(t,o,(function(){return a[o]}))}(s);n("2f32");var i=n("828b"),u=Object(i["a"])(a["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],void 0);t["default"]=u.exports},"6ff2":function(o,t,n){},"966b":function(o,t,n){"use strict";(function(o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{showDan:"",showFormula:!1,range:[],shopInfo:{totalProfit:0,returnTotalAmount:0,saleReturnCost:0},showDayPrice:!1,type:o.getStorageSync("type")}},onShow:function(){""==this.range&&this.getMonth(),this.getSaleInfo()},methods:{goDetail:function(t){"xiaoshoulirun"==t?o.navigateTo({url:"/package1/index/lirun?value="+t+"&range="+JSON.stringify(this.range)}):"shijilirun"==t?this.showDayPrice=!0:"rexiao"==t?o.navigateTo({url:"/package1/index/fireGoods"}):"gongyingshang"==t?o.navigateTo({url:"/package1/index/calculatedBySupplier"}):"fenleitongji"==t?o.navigateTo({url:"/package2/index/classifiedStatistics"}):o.navigateTo({url:"/package1/index/statisticsDetail?value="+t+"&range="+JSON.stringify(this.range)})},changeFormula:function(o){var t=this;console.log(o),this.showFormula=!0,this.showDan=o,setTimeout((function(o){t.showFormula=!1}),2e3)},getSaleInfo:function(){var o=this;this.shopInfo={totalProfit:0,returnTotalAmount:0,saleReturnCost:0},this.tui.request("/app/sale/getShopAll","POST",{pageVo:{pageSize:5,pageNumber:1},startTime:this.range[0],endTime:this.range[1]},!1,!1).then((function(t){200==t.code?o.shopInfo=t.result:o.tui.toast(t.message)}))},getMonth:function(){var o=new Date,t=o.getFullYear().toString(),n=o.getMonth()+1<10?"0"+(o.getMonth()+1).toString():(o.getMonth()+1).toString(),e=o.getDate()<10?"0"+o.getDate().toString():o.getDate().toString(),a=t+"-"+n+"-"+e,s=t+"-"+n+"-01";this.range=[s,a]},searchList:function(){this.priceList=[],this.getSaleInfo()}}};t.default=n}).call(this,n("df3c")["default"])},a261:function(o,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return e}));var e={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,"4632"))},uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,"6bbb6"))}},a=function(){var o=this,t=o.$createElement,n=(o._self._c,((null==o.shopInfo.totalProfit?0:o.shopInfo.totalProfit)-o.shopInfo.returnTotalAmount+o.shopInfo.saleReturnCost).toFixed(2)),e=o.showDayPrice?(o.shopInfo.totalAmount-o.shopInfo.totalProfit).toFixed(2):null,a=o.showDayPrice?(o.shopInfo.totalAmount-(o.shopInfo.totalAmount-o.shopInfo.totalProfit)-o.shopInfo.returnTotalAmount+o.shopInfo.saleReturnCost).toFixed(2):null,s=o.showDayPrice&&0!=o.shopInfo.totalProfit&&null!=o.shopInfo.totalProfit&&0!=o.shopInfo.totalAmount&&null!=o.shopInfo.totalAmount?(o.shopInfo.totalProfit/o.shopInfo.totalAmount*100).toFixed(2):null,i=o.showDayPrice&&o.shopInfo.totalProfit-o.shopInfo.returnTotalAmount+o.shopInfo.saleReturnCost!=0&&o.shopInfo.totalProfit-o.shopInfo.returnTotalAmount+o.shopInfo.saleReturnCost!=null&&o.shopInfo.totalAmount-o.shopInfo.returnTotalAmount!=0&&o.shopInfo.totalAmount-o.shopInfo.returnTotalAmount!=null?((o.shopInfo.totalProfit-o.shopInfo.returnTotalAmount+o.shopInfo.saleReturnCost)/(o.shopInfo.totalAmount-o.shopInfo.returnTotalAmount)*100).toFixed(2):null,u=!o.showFormula||3!=o.showDan||0==o.shopInfo.totalProfit&&0==o.shopInfo.totalAmount?null:(o.shopInfo.totalProfit/o.shopInfo.totalAmount*100).toFixed(2),r=o.showFormula&&2==o.showDan?(o.shopInfo.totalAmount-(o.shopInfo.totalAmount-o.shopInfo.totalProfit)-o.shopInfo.returnTotalAmount+o.shopInfo.saleReturnCost).toFixed(2):null,l=o.showFormula&&2==o.showDan&&o.shopInfo.totalProfit-o.sho
|