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 lines
4.9 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["package1/index/statisticsDetail"],{"0ecc":function(t,e,a){"use strict";a.r(e);var n=a("9412"),i=a("24d3");for(var u in i)["default"].indexOf(u)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(u);a("1b47");var r=a("828b"),o=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=o.exports},"1b47":function(t,e,a){"use strict";var n=a("7326"),i=a.n(n);i.a},"24d3":function(t,e,a){"use strict";a.r(e);var n=a("78db"),i=a.n(n);for(var u in n)["default"].indexOf(u)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(u);e["default"]=i.a},7326:function(t,e,a){},"78db":function(t,e,a){"use strict";(function(t){var n=a("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("af34")),u={data:function(){return{dataType:"",dataList:[],range:[],items:["拿货(按订单)","拿货(按商品)","拿货(按客户)"],status:"loadmore",userType:t.getStorageSync("type"),pageNum:1,pages:1}},filters:{removeStr:function(t){if(console.log("val",t),null==t)return"";var e=t.indexOf(".");return-1!==e?t.substring(0,e):t}},onReachBottom:function(){this.pageNum>=this.pages||(this.status="loading",this.pageNum++,this.getDetailList())},onLoad:function(t){this.dataType=t.value,this.range=JSON.parse(t.range)},onShow:function(){1==t.getStorageSync("noLoad")?t.removeStorageSync("noLoad"):this.getDetailList()},methods:{getDetailList:function(){var t,e,a=this;this.status="loading","xiaoshou"==this.dataType?(t="/app/sale/totalAmountDetail",e={startDate:this.range[0],endDate:this.range[1],pageNum:this.pageNum,pageSize:"10"}):"shishou"==this.dataType?(t="/app/sale/totalAlreadyEarnDetail",e={startDate:this.range[0],endDate:this.range[1],pageNum:this.pageNum,pageSize:"10"}):"lirun"==this.dataType?(t="/app/sale/totalAmountDetail",e={startDate:this.range[0],endDate:this.range[1],pageNum:this.pageNum,pageSize:"10"}):"jinhuo"==this.dataType?(t="/app/purchase/purchasingCostDetail",e={startDate:this.range[0],endDate:this.range[1],pageNum:this.pageNum,pageSize:"10"}):"tuihuo"==this.dataType?(t="/app/return/returnTotalAmountDetail",e={startDate:this.range[0],endDate:this.range[1],pageNum:this.pageNum,pageSize:"10"}):"xiadankehu"==this.dataType&&(t="/app/sale/customerSaleDetail",e={startDate:this.range[0],endDate:this.range[1],pageNum:this.pageNum,pageSize:"10"}),this.tui.request(t,"POST",e,!1,!1).then((function(t){a.status="nomore",200==t.code?(1==a.pages?a.dataList=t.result.records:a.dataList=[].concat((0,i.default)(a.dataList),(0,i.default)(t.result.records)),a.pages=t.result.pages):a.tui.toast(t.message)}))},onClickItem:function(t){this.current!==t.currentIndex&&(this.current=t.currentIndex),0==t.currentIndex?(this.duizhangList=[],this.pageNum=1,this.pages=1,this.duizhangdan()):(1==t.currentIndex||2==t.currentIndex)&&(this.list=[],this.pageNum=1,this.getList())},gotoDetail:function(e){this.page=1,t.setStorageSync("noLoad",!0),"jinhuo"==this.dataType?t.navigateTo({url:"/package1/index/waitStorageDetail?id="+e}):t.navigateTo({url:"/package1/index/orderDetail?id="+e})}}};e.default=u}).call(this,a("df3c")["default"])},9412:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return u})),a.d(e,"a",(function(){return n}));var n={uniTable:function(){return a.e("uni_modules/uni-table/components/uni-table/uni-table").then(a.bind(null,"e2fa"))},uniTr:function(){return a.e("uni_modules/uni-table/components/uni-tr/uni-tr").then(a.bind(null,"9b2f"))},uniTh:function(){return a.e("uni_modules/uni-table/components/uni-th/uni-th").then(a.bind(null,"83ad"))},uniTd:function(){return a.e("uni_modules/uni-table/components/uni-td/uni-td").then(a.bind(null,"5776"))},uLoadmore:function(){return Promise.all([a.e("common/vendor"),a.e("uni_modules/uview-ui/components/u-loadmore/u-loadmore")]).then(a.bind(null,"9fc5"))}},i=function(){var t=this,e=t.$createElement,a=(t._self._c,t.__map(t.dataList,(function(e,a){var n=t.__get_orig(e),i="xiaoshou"==t.dataType?t._f("removeStr")(e.saleDate):null;return{$orig:n,f0:i}}))),n=t.__map(t.dataList,(function(e,a){var n=t.__get_orig(e),i="shishou"==t.dataType?t._f("removeStr")(e.paymentDay):null;return{$orig:n,f1:i}})),i=t.__map(t.dataList,(function(e,a){var n=t.__get_orig(e),i="lirun"==t.dataType?t._f("removeStr")(e.saleDate):null;return{$orig:n,f2:i}})),u=t.__map(t.dataList,(function(e,a){var n=t.__get_orig(e),i="jinhuo"==t.dataType?t._f("removeStr")(e.purchaseDate):null;return{$orig:n,f3:i}})),r=t.__map(t.dataList,(function(e,a){var n=t.__get_orig(e),i="tuihuo"==t.dataType?t._f("removeStr")(e.returnSaleDate):null;return{$orig:n,f4:i}}));t.$mp.data=Object.assign({},{$root:{l0:a,l1:n,l2:i,l3:u,l4:r}})},u=[]},e781:function(t,e,a){"use strict";(function(t,e){var n=a("47a9");a("7859");n(a("3240"));var i=n(a("0ecc"));t.__webpack_require_UNI_MP_PLUGIN__=a,e(i.default)}).call(this,a("3223")["default"],a("df3c")["createPage"])}},[["e781","common/runtime","common/vendor"]]]);