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
3 months ago
|
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/admin/distribution/index"],{1373:function(t,i,e){"use strict";var n=e("4ad9"),a=e.n(n);a.a},"37df":function(t,i,e){"use strict";(function(t){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=e("e727"),a=e("bad7"),s={name:"adminOrder",components:{Loading:function(){e.e("components/Loading/index").then(function(){return resolve(e("b025"))}.bind(null,e)).catch(e.oe)},emptyPage:function(){e.e("components/emptyPage").then(function(){return resolve(e("bc18"))}.bind(null,e)).catch(e.oe)},NavBar:function(){e.e("components/NavBar").then(function(){return resolve(e("5962"))}.bind(null,e)).catch(e.oe)}},data:function(){return{hidden:!0,index:0,detailtabs:"today",footer:"list",type:"1",arrays:[],array:[],storeInfoid:0,census:{},list:[],orderlist:[],count:{},page:1,limit:15,loaded:!1,loading:!1,user:{},ids:"",verify_code:"",imgHost:a.HTTP_REQUEST_URL,iconColor:"#FFFFFF",isScrolling:!1}},onLoad:function(){this.userInfo(),this.footerTab("list")},methods:{userInfo:function(){var t=this;(0,n.deliveryInfo)().then((function(i){t.user=i.data,t.array=i.data.store_info.map((function(t){return t})),t.arrays=i.data.store_info.map((function(t){return t.name}));var e={id:0,name:"全部"};t.array.unshift(e),t.arrays.unshift(e.name)}))},getStatistics:function(){var t=this,i={store_id:this.storeInfoid,data:this.detailtabs};(0,n.deliveryStatistics)(i).then((function(i){t.census=i.data}))},deliveryLists:function(){var t=this,i={page:this.page,limit:this.limit,store_id:this.storeInfoid,data:this.detailtabs};this.loading||this.loaded||(this.loading=!0,(0,n.deliveryList)(i).then((function(i){t.loading=!1,t.loaded=i.data.length<t.limit,t.page+=1,t.list.push.apply(t.list,i.data)})))},getOrderList:function(){var t=this;this.loading||this.loaded||(this.loading=!0,(0,n.deliveryOrderList)({type:this.type,page:this.page,limit:this.limit}).then((function(i){t.loading=!1,t.count=i.data.data,t.loaded=i.data.list.length<t.limit,t.page+=1;for(var e=[],n=0;n<i.data.list.length;n++){e=[];for(var a=0;a<i.data.list[n].user_address.length;a++)" "!=i.data.list[n].user_address[a]&&e.push(i.data.list[n].user_address[a]);i.data.list[n].user_address=e.join("")}t.orderlist.push.apply(t.orderlist,i.data.list)})))},init:function(){this.orderlist=[],this.list=[],this.page=1,this.loaded=!1,this.loading=!1},to:function(){var i=this;t.scanCode({scanType:["qrCode","barCode"],success:function(t){var e=decodeURIComponent(t.path);i.verify_code=e.split("code=")[1],i.codeChange()},fail:function(t){}})},codeChange:function(){var i=this;return this.verify_code?/^[0-9]*$/.test(this.verify_code)?(i.$util.Tips({title:"查询中"}),void setTimeout((function(){(0,n.orderWriteoffInfo)(2,{verify_code:i.verify_code,code_type:2}).then((function(e){200==e.status?t.navigateTo({url:"./scanning/index?code="+i.verify_code}):i.$util.Tips({title:e.msg})})).catch((function(t){i.$util.Tips({title:t})}))}),800)):i.$util.Tips({title:"请输入正确的核销码"}):i.$util.Tips({title:"请输入核销码"})},footerTab:function(t){this.footer=t,this.init(),"tongji"==t&&(this.deliveryLists(),this.getStatistics()),"list"==t&&this.getOrderList()},tab:function(t){this.type=t,this.init(),this.getOrderList()},hiddened:function(t){this.hidden=!this.hidden},cancel:function(){this.hidden=!this.hidden},bindPickerChange:function(t){this.hidden=!this.hidden,this.index=t.target.value,this.storeInfoid=this.array[this.index].id,this.init(),this.getStatistics(),this.deliveryLists()},detailtab:function(t){this.detailtabs=t,this.init(),this.deliveryLists(),this.getStatistics()},jump:function(i){t.navigateTo({url:"orderDetail/index?id="+i})}},onReachBottom:function(){"tongji"==this.footer&&this.deliveryList(),"list"==this.footer&&this.getOrderList()}};i.default=s}).call(this,e("df3c")["default"])},"45e4":function(t,i,e){"use strict";e.r(i);var n=e("37df"),a=e.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(s);i["default"]=a.a},"4ad9":function(t,i,e){},"620b":function(
|