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([["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(t,i,e){"use strict";e.r(i);var n=e("b6a6"),a=e("45e4");for(var s in a)["default"].indexOf(s)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(s);e("1373");var o=e("828b"),r=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"6e4f99d3",null,!1,n["a"],void 0);i["default"]=r.exports},b6a6:function(t,i,e){"use strict";e.d(i,"b",(function(){return n})),e.d(i,"c",(function(){return a})),e.d(i,"a",(function(){}));var n=function(){var t=this,i=t.$createElement,e=(t._self._c,t.array.length&&t.array[t.index].name),n=t.list.length,a=t.__map(t.orderlist,(function(i,e){var n=t.__get_orig(i),a=i.cart_id.length;return{$orig:n,g2:a}})),s=!t.orderlist.length&&!t.loading;t.$mp.data=Object.assign({},{$root:{g0:e,g1:n,l0:a,g3:s}})},a=[]},f587:function(t,i,e){"use strict";(function(t,i){var n=e("47a9");e("7561");n(e("3240"));var a=n(e("620b"));t.__webpack_require_UNI_MP_PLUGIN__=e,i(a.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])}},[["f587","common/runtime","common/vendor"]]]); |