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
5.0 KiB
1 lines
5.0 KiB
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["package2/other/logisticsDataStatisticsDetail"],{"247c":function(t,e,a){"use strict";var i=a("5c4b"),n=a.n(i);n.a},"5c4b":function(t,e,a){},"70b0":function(t,e,a){"use strict";(function(t,e){var i=a("47a9");a("7859");i(a("3240"));var n=i(a("fb4b"));t.__webpack_require_UNI_MP_PLUGIN__=a,e(n.default)}).call(this,a("3223")["default"],a("df3c")["createPage"])},a1ef:function(t,e,a){"use strict";a.r(e);var i=a("d0b9"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},c45b:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={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"))}},n=function(){var t=this,e=t.$createElement,a=(t._self._c,t.upCarList.length),i=a>0?t.upCarList.length>0&&t.upCarList[0].logisticsEntruckingLogList.length>0:null,n=a>0?t.upCarList.length>0&&t.upCarList[0].logisticsEntruckingLogList.length>0:null,r=t.upCarList.length>0&&t.upCarList[0].logisticsEntruckingLogList.length>0,o=t.allCarFee.toFixed(2),u=t.allCarFreight.toFixed(2),s=t.allPayXianjinNum.toFixed(2),l=t.allPayMonthNum.toFixed(2),c=t.allPayArraveNum.toFixed(2),d=t.allOrderNum.toFixed(2),g=t.orderList.length;t.$mp.data=Object.assign({},{$root:{g0:a,g1:i,g2:n,g3:r,g4:o,g5:u,g6:s,g7:l,g8:c,g9:d,g10:g}})},r=[]},d0b9:function(t,e,a){"use strict";(function(t){var i=a("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("af34")),r={data:function(){return{range:[],status:"nomore",pages:1,startDate:"",orderList:[],endDate:"",pageNum:1,allCarFee:0,allCarFreight:0,allOrderNum:0,allPayXianjinNum:0,allPayMonthNum:0,allPayArraveNum:0,upCarList:[]}},onLoad:function(t){var e=this;this.userId=t.id,this.startDate=t.day,this.endDate=t.day,this.getUpCarList(),this.getOrderList(),setTimeout((function(t){e.$forceUpdate()}),1e3)},onReachBottom:function(){this.pageNum>=this.pages||(this.status="loading",this.pageNum++,this.getOrderList())},methods:{getOrderList:function(){var e=this;t.request({url:this.tui.interfaceUrl()+"/app/logisticsOrder/getLogisticsOrderPageList",data:{companyId:t.getStorageSync("transCompany"),startDate:this.startDate,endDate:this.startDate,pageNum:this.pageNum,pageSize:"10"},header:{"content-type":"application/json",appWLToken:this.tui.getToken()},method:"POST",dataType:"json",success:function(a){if(e.status="nomore",401==a.data.code&&(t.clearStorage(),t.navigateTo({url:"/package2/login/login"})),200==a.data.code){1==e.pages?e.orderList=a.data.result.records:e.orderList=[].concat((0,n.default)(e.orderList),(0,n.default)(a.data.result.records));for(var i=0;i<e.orderList.length;i++)e.allOrderNum+=e.orderList[i].allCost,"0"==e.orderList[i].methodOfSettlement?e.allPayXianjinNum+=e.orderList[i].allCost:"1"==e.orderList[i].methodOfSettlement?e.allPayMonthNum+=e.orderList[i].allCost:"2"==e.orderList[i].methodOfSettlement&&(e.allPayArraveNum+=e.orderList[i].allCost);e.$forceUpdate(),e.pages=a.data.result.pages}},fail:function(t){e.tui.toast("网络不给力,请稍后再试~")}})},getUpCarList:function(){var e=this;t.request({url:this.tui.interfaceUrl()+"/app/logisticsEntruckingLog/getDateLogisticsEntruckingLogPageList",data:{companyId:t.getStorageSync("transCompany"),companyName:t.getStorageSync("companyName"),pageNum:this.pageNum,startDate:this.startDate,endDate:this.endDate,circuitId:"",circuitName:"",carNumber:""},header:{"content-type":"application/json",appWLToken:this.tui.getToken()},method:"POST",dataType:"json",success:function(a){if(401==a.data.code&&(t.clearStorage(),t.navigateTo({url:"/package2/login/login"})),200==a.data.code){e.upCarList=a.data.result.records;for(var i=0;i<e.upCarList.length;i++)for(var n=0;n<e.upCarList[i].logisticsEntruckingLogList.length;n++)e.allCarFee+=e.upCarList[i].logisticsEntruckingLogList[n].carFee,e.allCarFreight+=e.upCarList[i].logisticsEntruckingLogList[n].carFreight;e.$forceUpdate()}},fail:function(t){e.tui.toast("网络不给力,请稍后再试~")}})},xiaoshouDetail:function(e){t.navigateTo({url:"/package2/other/logisticsOrderDetail?item="+JSON.stringify(e)})}}};e.default=r}).call(this,a("df3c")["default"])},fb4b:function(t,e,a){"use strict";a.r(e);var i=a("c45b"),n=a("a1ef");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("247c");var o=a("828b"),u=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=u.exports}},[["70b0","common/runtime","common/vendor"]]]);
|