bztang-admin/addons/yun_shop/static/app/js/chunk-fe74aeec.e138924c.js

1 line
16 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fe74aeec"],{1763:function(t,e,i){"use strict";i("7d74")},"37ac":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,"#chain_shop #header[data-v-1f093291]{background-color:#fff}#chain_shop #header .header_user[data-v-1f093291]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:1.25rem .625rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;position:relative}#chain_shop #header .header_user .img[data-v-1f093291]{width:3.5rem;height:3.5rem;border:.125rem solid #f5f5f5;border-radius:1.75rem;margin-right:.625rem;overflow:hidden}#chain_shop #header .header_user .img img[data-v-1f093291]{width:100%}#chain_shop #header .header_user .name li[data-v-1f093291]{font-size:18px;font-weight:700}#chain_shop #header .header_info[data-v-1f093291]{border-top:.0625rem solid #ebebeb;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.625rem 0}#chain_shop #header .header_info ul[data-v-1f093291]{width:50%;padding-left:1.25rem}#chain_shop #header .header_info ul li[data-v-1f093291]{text-align:left;line-height:1.875rem}#chain_shop #header .header_info ul li[data-v-1f093291]:first-child{color:#8c8c8c;font-size:15px}#chain_shop #header .header_info ul li[data-v-1f093291]:last-child{font-size:22px}#chain_shop #header .header_info ul li:last-child span[data-v-1f093291]{font-size:15px}#chain_shop #order_info[data-v-1f093291]{margin-top:.625rem;background-color:#fff}#chain_shop #order_info .tab_box[data-v-1f093291]{width:100%;padding:10px 0}#chain_shop #order_info .select_box .select_tab[data-v-1f093291]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;border-bottom:.0625rem solid #ebebeb}#chain_shop #order_info .select_box .select_tab li[data-v-1f093291]{width:33.33%;height:2.5rem;line-height:2.5rem;font-size:16px}#chain_shop #order_info .select_box .select_list[data-v-1f093291]{padding-left:.875rem;border-bottom:.0625rem solid #ebebeb}#chain_shop #order_info .select_box .select_list ul[data-v-1f093291]:last-child{border:none}#chain_shop #order_info .select_box .select_list ul[data-v-1f093291]{padding:.625rem 0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;border-bottom:.0625rem solid #ebebeb}#chain_shop #order_info .select_box .select_list ul li[data-v-1f093291]:first-child{width:50%;text-align:left;white-space:nowrap}#chain_shop #order_info .select_box .select_list ul li:first-child div[data-v-1f093291]:first-child{font-size:1rem;text-overflow:ellipsis;overflow:hidden;word-break:break-all}#chain_shop #order_info .select_box .select_list ul li:first-child div[data-v-1f093291]:last-child{font-size:.85rem;color:#8c8c8c}#chain_shop #order_info .select_box .select_list ul li[data-v-1f093291]:nth-child(2){width:25%;font-size:16px}#chain_shop #order_info .select_box .select_list ul li:nth-child(2) span[data-v-1f093291]{font-size:14px}#chain_shop #order_info .select_box .select_list ul li[data-v-1f093291]:last-child{width:25%;font-size:16px}",""]),t.exports=e},"7d74":function(t,e,i){var a=i("37ac");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("499e").default;s("e0e77fc4",a,!0,{sourceMap:!1,shadowMode:!1})},a471:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAIAAAC2BqGFAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4g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FWAA7p0Dz8Roxi0AAAAASUVORK5CYII="},a653b:function(t,e,i){"use strict";i.r(e);var a,s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"chain_shop"}},[a("c-title",{attrs:{hide:!1,text:"门店信息"}}),a("div",{attrs:{id:"header"}},[a("div",{staticClass:"header_user"},[a("div",{staticClass:"img"},[a("img",{attrs:{src:t.store_info.thumb?t.store_info.thumb:i("a471")}})]),a("ul",{staticClass:"name"},[a("li",[t._v(t._s(t.store_info.store_name))])])]),a("div",{staticClass:"header_info"},[a("ul",[a("li",[t._v("订单数")]),a("li",[t._v(t._s(t.store_count.order_count)),a("span",[t._v("个")])])]),a("ul",[a("li",[t._v(t._s(t.income_name_text))]),a("li",[a("span",[t._v(t._s(t.$i18n.t("money")))]),t._v(t._s(t.store_count.amount_total))])])])]),a("div",{attrs:{id:"order_info"}},[a("div",{staticClass:"tab_box"},[a("van-tabs",{attrs:{type:"card"},on:{click:t.toggle},model:{value:t.currentIndex,callback:function(e){t.currentIndex=e},expression:"currentIndex"}},[t.open_store_balance?a("van-tab",{attrs:{title:"充值订单",name:"3"}}):t._e(),a("van-tab",{attrs:{title:"门店订单",name:"1"}}),a("van-tab",{attrs:{title:"收银台订单",name:"2"}})],1)],1),t.open_store_show?a("div",{staticClass:"select_box"},[t._m(0),a("div",{staticClass:"select_list"},[a("van-pull-refresh",{attrs:{"success-text":"刷新成功"},on:{refresh:t.storeLoadTop},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},t._l(t.balanceInfo,(function(e,i){return a("ul",{key:i},[a("li",{staticStyle:{width:"50%"}},[a("div",[t._v(t._s(e.sn))]),a("div")]),a("li",{staticStyle:{width:"25%"}},[a("span",[t._v(t._s(t.$i18n.t("money")))]),t._v(t._s(e.price))]),a("li",{staticStyle:{width:"25%"}},[t._v(t._s(e.status_name))])])})),0)],1)]):t._e(),t.store_order_show?a("div",{staticClass:"select_box"},[t._m(1),a("div",{staticClass:"select_list"},[a("van-pull-refresh",{attrs:{"success-text":"刷新成功"},on:{refresh:t.storeLoadTop},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},t._l(t.storeList,(function(e,i){return a("ul",{key:i},[a("li",{staticStyle:{width:"50%"}},[a("div",[t._v(t._s(e.order.order_sn))]),a("div",[t._v(t._s(e.order.create_time))])]),a("li",{staticStyle:{width:"25%"}},[a("span",[t._v(t._s(t.$i18n.t("money")))]),t._v(t._s(e.order.price))]),a("li",{staticStyle:{width:"25%"}},[t._v(t._s(e.order.status_name))])])})),0)],1)]):t._e(),t.cashier_order_show?a("div",{staticClass:"select_box"},[t._m(2),a("div",{staticClass:"select_list"},[a("van-pull-refresh",{attrs:{"success-text":"刷新成功"},on:{refresh:t.cashierLoadTop},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},t._l(t.cashierList,(function(e,i){return a("ul",{key:i},[a("li",[a("div",[t._v(t._s(e.order.order_sn))]),a("div",[t._v(t._s(e.order.create_time))])]),a("li",[a("span",[t._v(t._s(t.$i18n.t("money")))]),t._v(t._s(e.order.price))]),a("li",[t._v(t._s(e.order.status_name))])])})),0)],1)]):t._e()]),a("div",[a("audio",{staticStyle:{opacity:"0"},attrs:{autoplay:"",controls:"",id:"yp"}},[a("source",{attrs:{src:t.vedioSrc,type:"audio/mpeg"}})])])],1)},o=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("ul",{staticClass:"select_tab"},[i("li",{staticStyle:{width:"50%"}},[t._v("订单编号")]),i("li",{staticStyle:{width:"25%"}},[t._v("订单金额")]),i("li",{staticStyle:{width:"25%"}},[t._v("订单状态")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("ul",{staticClass:"select_tab"},[i("li",{staticStyle:{width:"50%"}},[t._v("订单编号")]),i("li",{staticStyle:{width:"25%"}},[t._v("订单金额")]),i("li",{staticStyle:{width:"25%"}},[t._v("订单状态")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("ul",{staticClass:"select_tab"},[i("li",[t._v("订单编号")]),i("li",[t._v("订单金额")]),i("li",[t._v("订单状态")])])}],r=(i("99af"),i("6968")),n=i("ac0d"),l="plugin.store-cashier.frontend.boss.child-store.index",c="plugin.store-cashier.frontend.boss.child-store.getStoreOrderList",d="plugin.store-cashier.frontend.boss.child-store.getCashierOrderList",h="plugin.store-cashier.frontend.boss.voice-broadcast.verifyOpenAudio",_="plugin.store-cashier.frontend.boss.voice-broadcast.index",u={mixins:[n["a"]],data:function(){return{store_info:{},store_count:{},tabArr:["门店订单","收银台订单"],currentIndex:0,store_order_show:!0,cashier_order_show:!1,storeList:[],store_loading:!1,store_allLoaded:!1,store_goload:!0,store_isLoadMore:!0,store_page:1,store_total_page:0,cashierList:[],cashier_loading:!1,cashier_allLoaded:!1,cashier_goload:!0,cashier_isLoadMore:!0,cashier_page:1,cashier_total_page:0,vedioSrc:"",income_name_text:"",isLoading:!1,open_store_balance:!1,open_store_show:!1,balanceInfo:[],isLoadMore:!0,page:1,total_page:0}},activated:function(){var t=this;this.initData(),this.getStoreInfo(),this.getStoreList(),this.isOpenAudio(),this.customizeIncome(),this.$nextTick((function(){t.autoClick()}))},mounted:function(){},deactivated:function(){this.closeTimeInterval()},methods:{initData:function(){this.page=1,this.isLoadMore=!0,this.total_page=0,this.currentIndex=0,this.store_order_show=!1,this.open_store_show=!1,this.open_store_balance=!1,this.cashier_order_show=!1,this.store_info={},this.store_count={},this.tabArr=["门店订单","收银台订单"],this.vedioSrc="",this.initStoreData(),this.initCashierData()},getStoreInfo:function(){var t=this;$http.get(l,{store_id:this.$route.params.id},"加载中...").then((function(e){1==e.result&&(t.store_info=e.data.store,t.store_count=e.data.statistics,t.getCashierList(t.store_info.cashier_id),e.data.open_store_balance?(t.open_store_balance=e.data.open_store_balance,t.open_store_show=!0,t.getBalance()):t.store_order_show=!0)})).catch((function(t){}))},toggle:function(t){this.currentIndex=t,1==t?(this.store_order_show=!0,this.cashier_order_show=!1,this.open_store_show=!1):3==t?(this.balanceInfo=[],this.page=1,this.last_page=0,this.open_store_show=!0,this.store_order_show=!1,this.cashier_order_show=!1,this.getBalance()):(this.store_order_show=!1,this.cashier_order_show=!0,this.open_store_show=!1)},getBalance:function(){var t=this;this.isLoadMore=!1,$http.get("plugin.store-cashier.frontend.store.balance.award.boss",{}).then((function(e){1==e.result?(t.balanceInfo=e.data.list.data,t.total_page=e.data.list.last_page,t.isLoadMore=!0,t.total_page||(t.total_page=0),t.currentIndex=3):(that.page=that.page-1,that.isLoadMore=!1)})).catch((function(t){}))},initStoreData:function(){this.storeList=[],this.store_loading=!1,this.store_allLoaded=!1,this.store_goload=!0,this.store_isLoadMore=!0,this.store_page=1,this.store_total_page=0},getStoreList:function(){var t=this;$http.get(c,{store_id:this.$route.params.id,page:this.store_page}).then((function(e){1==e.result&&(t.storeList=e.data.data,t.store_total_page=e.data.last_page,t.isLoading=!1)})).catch((function(t){}))},getMoreStoreList:function(){var t=this;if(this.store_page!=this.store_total_page)return this.store_page>=this.store_total_page?(this.store_loading=!0,void(this.store_allLoaded=!0)):(this.store_page=this.store_page+1,void $http.get(c,{store_id:this.$route.params.id,page:this.store_page},"加载中...").then((function(e){if(1!=e.result)return t.store_page=t.store_page-1,t.store_loading=!0,t.store_allLoaded=!0,void(t.store_isLoadMore=!1);t.store_loading=!1,t.store_allLoaded=!1,t.storeList=t.storeList.concat(e.data.data),t.isLoadMore=!0})).catch((function(t){})))},storeLoadTop:function(){this.initStoreData(),this.getStoreList()},getMoreData:function(){this.store_order_show?(this.isLoadMore=!1,this.storeLoadBottom()):this.open_store_show?this.moreBalance():(this.isLoadMore=!1,this.cashierLoadBottom())},storeLoadBottom:function(){this.store_isLoadMore&&(this.getMoreStoreList(),this.$refs.store_loadmore.onBottomLoaded())},moreBalance:function(){var t=this,e={};this.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,e.page=this.page,$http.get("plugin.store-cashier.frontend.store.balance.award.boss",e,"").then((function(e){if(t.isLoadMore=!0,1===e.result){var i=e.data.list.data;t.balanceInfo=t.balanceInfo.concat(i)}else t.page=t.page-1,t.isLoadMore=!1}),(function(t){})).catch((function(t){})))},initCashierData:function(){this.cashierList=[],this.cashier_loading=!1,this.cashier_allLoaded=!1,this.cashier_goload=!0,this.cashier_isLoadMore=!0,this.cashier_page=1,this.cashier_total_page=0},getCashierList:function(t){var e=this;$http.get(d,{cashier_id:t,page:this.cashier_page}).then((function(t){1==t.result&&(e.cashierList=t.data.data,e.cashier_total_page=t.data.last_page,e.isLoading=!1)})).catch((function(t){}))},getMoreCashierList:function(){var t=this;if(this.cashier_page!=this.cashier_total_page)return this.cashier_page>=this.cashier_total_page?(this.cashier_loading=!0,void(this.cashier_allLoaded=!0)):(this.cashier_page=this.cashier_page+1,void $http.get(d,{cashier_id:this.store_info.cashier_id,page:this.cashier_page},"加载中...").then((function(e){if(1!=e.result)return t.cashier_page=t.cashier_page-1,t.cashier_loading=!0,t.cashier_allLoaded=!0,void(t.cashier_isLoadMore=!1);t.cashier_loading=!1,t.cashier_allLoaded=!1,t.cashierList=t.cashierList.concat(e.data.data),t.isLoadMore=!0})).catch((function(t){})))},cashierLoadTop:function(){this.initCashierData(),this.getCashierList(this.store_info.cashier_id)},cashierLoadBottom:function(){this.cashier_isLoadMore&&(this.getMoreCashierList(),this.$refs.cashier_loadmore.onBottomLoaded())},isOpenAudio:function(){var t=this;$http.get(h,{store_id:this.$route.params.id}).then((function(e){1==e.result?1==e.data.audio_open&&t.getAudio():t.$dialog.alert({message:e.msg})})).catch((function(t){}))},getAudio:function(){var t=this;a=setInterval((function(){$http.get(_,{store_id:t.$route.params.id}).then((function(e){1==e.result&&(t.vedioSrc=e.data.url,t.$nextTick((function(){t.audioPlay()})))})).catch((function(t){}))}),5e3)},audioPlay:function(){var t={url:document.location.href};$http.post("member.member.wxJsSdkConfig",t).then((function(t){1==t.result&&(wx.config(t.data.config),wx.ready((function(){var t=document.getElementById("yp");t.load(),t.play(),WeixinJSBridge.invoke("getNetworkType",{},(function(e){t.load(),t.play()}))})))})).catch((function(t){}))},closeTimeInterval:function(){clearInterval(a)},autoClick:function(){if(document.all)document.getElementById("chain_shop").click();else{var t=document.createEvent("MouseEvents");t.initEvent("click",!1,!0),document.getElementById("chain_shop").dispatchEvent(t)}},show:function(){var t=document.getElementById("yp");t.load(),t.play()},customizeIncome:function(){var t=this.fun.initMailLanguage();this.income_name_text=t.income.income_name}},components:{cTitle:r["a"]}},p=u,f=p,g=(i("1763"),i("2877")),v=Object(g["a"])(f,s,o,!1,null,"1f093291",null);e["default"]=v.exports},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var a=document.documentElement,s=document.body,o={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return a&&a.scrollTop?t=a.scrollTop:s&&(t=s.scrollTop),t},getClientHeight:function(){var t=0;return t=s.clientHeight&&a.clientHeight?Math.min(s.clientHeight,a.clientHeight):Math.max(s.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(s.scrollHeight,a.scrollHeight)},handleScroll:function(){this.otherScroll();var t=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=t>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}}}]);