1 line
10 KiB
JavaScript
1 line
10 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-58da3d39"],{"071e":function(e,t,a){"use strict";a("c29d")},"0afd":function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".ell[data-v-308c5e3e]{text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.order-item[data-v-308c5e3e]{background-color:#fff;border-radius:.3125rem;padding:.8438rem .8125rem .75rem .8125rem;margin-bottom:.625rem}.order-head[data-v-308c5e3e]{margin-bottom:.8125rem}.order-head .sn[data-v-308c5e3e]{font-size:.75rem;color:#666}.order-head .state[data-v-308c5e3e]{font-size:.875rem;color:#ff3a00}.card-wrap .img[data-v-308c5e3e]{margin:0 .5938rem 0 0}.card-wrap .img[data-v-308c5e3e],.card-wrap .img img[data-v-308c5e3e]{width:4.375rem;height:4.375rem}.card-main[data-v-308c5e3e]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.card-main .name[data-v-308c5e3e]{font-size:.875rem;font-weight:700;color:#222}.card-main .attribute[data-v-308c5e3e]{margin:.5rem 0 0 0;font-size:.7163rem;color:#979797}.attribute .num[data-v-308c5e3e]{margin:0 1.9375rem 0 0}.card-main .discount-price[data-v-308c5e3e],.card-main .price[data-v-308c5e3e]{font-size:.6875rem;color:#ff3a00;font-weight:500}.card-main .discount-price span[data-v-308c5e3e],.card-main .price span[data-v-308c5e3e]{font-size:1rem}.card-main .shop-pay[data-v-308c5e3e]{padding:1px 4px;border-radius:.1563rem;text-align:center;background-color:#ff4000;font-size:.625rem;color:#fff;margin:0 .25rem 0 1.75rem}.order-item .number-use[data-v-308c5e3e]{font-size:.75rem;color:#222;margin-top:.8125rem}",""]),e.exports=t},"0d73":function(e,t,a){var s=a("0afd");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var r=a("499e").default;r("fe6ccb1e",s,!0,{sourceMap:!1,shadowMode:!1})},"3328a":function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".sell-page[data-v-09ac3570] .van-search{padding:0;border:.0313rem solid #dadada}",""]),e.exports=t},4330:function(e,t,a){var s=a("71d49");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var r=a("499e").default;r("30ed27ae",s,!0,{sourceMap:!1,shadowMode:!1})},"71d49":function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,'.sell-page[data-v-09ac3570]{margin:.625rem .625rem 0 .625rem}.sell-page .search-padding[data-v-09ac3570]{padding:0;border:.0313rem solid #dadada}.search-sell[data-v-09ac3570]{padding:.8125rem .8125rem .875rem .8125rem}.search-sell[data-v-09ac3570],.search-sell .van-search__content[data-v-09ac3570]{background-color:#fff}.search-sell .search-sn[data-v-09ac3570]{width:8.125rem;margin-right:.625rem}.search-sell .search-name[data-v-09ac3570]{width:8.125rem;margin-right:.5625rem}.search-sell .search-btn[data-v-09ac3570]{width:3.125rem;height:1.875rem;line-height:1.875rem;text-align:center;background-image:-webkit-linear-gradient(175deg,#ff3d04,#ff6a3f);background-image:linear-gradient(-85deg,#ff3d04,#ff6a3f);font-size:.75rem;color:#fff;border-radius:.3125rem}.sell-page .tabs-bg[data-v-09ac3570],.sell-page .van-tabs__scroll[data-v-09ac3570]{background-color:transparent}.sell-orderList[data-v-09ac3570]{margin-top:.75rem}.order-item .sell-info[data-v-09ac3570]{padding:.9375rem 0 .9375rem 0;position:relative;font-size:.75rem;color:#666;text-align:left}.sell-info[data-v-09ac3570]:before{content:" ";position:absolute;left:0;bottom:0;width:100%;height:2rpx;border-top:2rpx solid #e9e9e9;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}',""]),e.exports=t},ac0d:function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));var s=document.documentElement,r=document.body,o={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var e=0;return s&&s.scrollTop?e=s.scrollTop:r&&(e=r.scrollTop),e},getClientHeight:function(){var e=0;return e=r.clientHeight&&s.clientHeight?Math.min(r.clientHeight,s.clientHeight):Math.max(r.clientHeight,s.clientHeight),e},getScrollHeight:function(){return Math.max(r.scrollHeight,s.scrollHeight)},handleScroll:function(){this.otherScroll();var e=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=e>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},adf1:function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"order-item"},[1===e.sellType?a("div",{staticClass:"order-head flex-a-c flex-j-sb"},[a("div",{staticClass:"sn"},[e._v(e._s(e.sellItem.examine_time_str))])]):a("div",{staticClass:"order-head flex-a-c flex-j-sb"},[a("div",{staticClass:"sn"},[e._v("订单编号:"+e._s(e.sellItem.order_sn))]),a("div",{staticClass:"state"},[e._v(e._s(e.sellItem.status_name))])]),a("div",{staticClass:"card-wrap flex"},[a("div",{staticClass:"img"},[a("img",{attrs:{src:e.sellItem.order_goods&&e.sellItem.order_goods.thumb}})]),a("div",{staticClass:"card-main flex"},[a("div",{staticClass:"flex-j-sb "},[a("div",{staticClass:"name ell"},[e._v(e._s(e.sellItem.order_goods&&e.sellItem.order_goods.title))])]),a("div",{staticClass:"flex-a-c"},[a("div",{staticClass:"price"},[e._v(" ¥"),a("span",[e._v(e._s(e.sellItem.order_goods&&e.sellItem.order_goods.price))])]),a("div",{staticClass:"shop-pay flex-a-c flex-j-c"},[e._v("到店付")]),a("div",{staticClass:"discount-price"},[e._v(" ¥"),a("span",[e._v(e._s(e.sellItem.offline_price))])])])])]),e._t("default"),a("div",{staticClass:"flex-a-c flex-j-sa number-use"},[1===e.sellType?a("div",[e._v("核销员:"+e._s(e.sellItem.clerk&&e.sellItem.clerk.nickname))]):e._e(),a("div",[e._v("总次数:"+e._s(e.sellItem.sum_count))]),2===e.sellType?a("div",[e._v("已使用:"+e._s(e.sellItem.use_count))]):e._e(),a("div",[e._v("未使用:"+e._s(e.sellItem.rest_count))])])],2)},r=[],o=(a("a9e3"),{name:"",components:{},props:{sellItem:{type:Object,default:function(){return{}}},sellType:{type:Number,default:1}},data:function(){return{}},computed:{},watch:{},methods:{},created:function(){},mounted:function(){},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}}),i=o,n=(a("eaaa"),a("2877")),l=Object(n["a"])(i,s,r,!1,null,"308c5e3e",null);t["a"]=l.exports},c29d:function(e,t,a){var s=a("3328a");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var r=a("499e").default;r("00b47476",s,!0,{sourceMap:!1,shadowMode:!1})},d622:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sell-page"},[a("c-title",{attrs:{hide:!1,text:"售卖明细"}}),a("div",{staticClass:"flex-a-c search-sell"},[a("div",{staticClass:"search-sn"},[a("van-search",{attrs:{placeholder:"订单编号","custom-class":"search-padding","use-left-icon-slot":""},model:{value:e.ordersn,callback:function(t){e.ordersn=t},expression:"ordersn"}},[a("div",{attrs:{slot:"left-icon"},slot:"left-icon"})])],1),a("div",{staticClass:"search-name"},[a("van-search",{attrs:{placeholder:"姓名/手机号","custom-class":"search-padding","use-left-icon-slot":""},model:{value:e.couponMemberKwd,callback:function(t){e.couponMemberKwd=t},expression:"couponMemberKwd"}},[a("div",{attrs:{slot:"left-icon"},slot:"left-icon"})])],1),a("div",{staticClass:"search-btn flex-a-c flex-j-c",on:{click:e.onSearch}},[e._v("搜索")])]),a("div",{staticClass:"sell-tabs"},[a("van-tabs",{attrs:{active:e.status,"custom-class":"tabs-bg","line-width":"60rpx","title-inactive-color":"#222222","title-active-color":"#FF3A00"},on:{change:e.onTabChange}},e._l(e.tabs,(function(e,t){return a("block",{key:t},[a("van-tab",{attrs:{title:e.name,name:e.status}})],1)})),1)],1),e.orderList.length>0?a("div",{staticClass:"sell-orderList"},e._l(e.orderList,(function(t,s){return a("block",{key:s},[a("sell-orderItem",{attrs:{sellItem:t,sellType:2}},[a("div",{staticClass:"sell-info"},[a("span",{},[e._v(e._s(t.member&&t.member.name)+" ("+e._s(t.member&&t.member.mobile)+")")])])])],1)})),1):a("van-empty",{attrs:{description:"空空如也"}})],1)},r=[],o=a("2909"),i=(a("a9e3"),a("99af"),a("6968")),n=a("adf1"),l=a("ac0d"),c={components:{sellOrderItem:n["a"],cTitle:i["a"]},mixins:[l["a"]],data:function(){return{storeId:null,ordersn:"",couponMemberKwd:"",status:0,isLoadMore:!0,page:1,totalPage:0,orderList:[],tabs:[{name:"全部",status:0},{name:"待核销",status:2},{name:"退款订单",status:-1}]}},activated:function(){var e;""!==(null!==(e=this.$route.query.storeId)&&void 0!==e?e:"")&&(this.storeId=Number(this.$route.query.storeId)),this.orderLists()},methods:{modelInput:function(e,t){},onSearch:function(){this.orderLists()},onTabChange:function(e){this.status=e,this.orderLists()},handleScroll:function(){this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()&&this.isLoadMore&&this.getMoreData()},orderLists:function(){var e=this,t={cstore_id:this.storeId,coupon_member_kwd:this.couponMemberKwd,order_sn:this.ordersn,status:this.status,page:1};$http.post("plugin.coupon-store.frontend.store-manage.orderList",t,"正在获取").then((function(t){if(1==t.result){var a=t.data,s=a.data;e.isLoadMore=!0,e.totalPage=a.last_page,e.totalPage||(e.totalPage=0),e.orderList=s}else e.page=e.page-1,e.isLoadMore=!1,e.$dialog.alert({message:t.msg})}),(function(e){}))},getMoreData:function(){var e=this;if(this.isLoadMore=!1,!(this.page>=this.totalPage)){this.page=this.page+1;var t={cstore_id:this.storeId,coupon_member_kwd:this.couponMemberKwd,order_sn:this.ordersn,status:this.status,page:this.page};$http.post("plugin.coupon-store.frontend.store-manage.orderList",t,"正在获取").then((function(t){if(1==t.result){var a=t.data,s=a.data;e.isLoadMore=!0,e.orderList=[].concat(Object(o["a"])(e.orderList),Object(o["a"])(s))}else e.page=e.page-1,e.isLoadMore=!1,e.$dialog.alert({message:t.msg})}),(function(e){}))}}}},d=c,m=d,u=(a("071e"),a("f185"),a("2877")),f=Object(u["a"])(m,s,r,!1,null,"09ac3570",null);t["default"]=f.exports},eaaa:function(e,t,a){"use strict";a("0d73")},f185:function(e,t,a){"use strict";a("4330")}}]); |