bztang-admin/addons/yun_shop/static/app/js/chunk-86680cc8.2483b202.js

1 line
14 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-86680cc8"],{"0afd":function(e,t,a){var i=a("24fb");t=i(!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 i=a("0afd");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=a("499e").default;r("fe6ccb1e",i,!0,{sourceMap:!1,shadowMode:!1})},"400d":function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,'.verification-page[data-v-a0815354]{margin:.625rem .625rem 0 .625rem}.verification-page .search-padding[data-v-a0815354]{padding:0;border:.0313rem solid #dadada}.pb-20[data-v-a0815354]{padding-bottom:.625rem}.mb-10[data-v-a0815354]{margin-bottom:.3125rem}.search-sell[data-v-a0815354]{padding:.8125rem 0 .875rem .8125rem;background-color:#fff;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}.search-sell .search-sn[data-v-a0815354]{width:9.375rem;margin-right:.625rem}.search-sell .search-order[data-v-a0815354],.search-sell .search-verifier[data-v-a0815354]{width:8.125rem;margin-right:.625rem}.search-sell .search-name[data-v-a0815354]{width:10.625rem}.search-sell .search-btn[data-v-a0815354]{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}.search-sell .van-search__content[data-v-a0815354],.verifier-time[data-v-a0815354]{background-color:#fff}.verifier-time[data-v-a0815354]{padding:.3125rem .75rem .625rem .8125rem}.verifier-time .title[data-v-a0815354]{font-size:.8125rem;color:#222;text-align:left}.verifier-time .start-time[data-v-a0815354]{font-size:.75rem;color:#777}.verifier-list[data-v-a0815354]{margin-top:.625rem}.verifier-list .name[data-v-a0815354]{text-align:left}.order-item .sell-info[data-v-a0815354]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:.9375rem 0 .9375rem 0;position:relative;font-size:.75rem;color:#666}.order-item .sell-info span[data-v-a0815354]{text-align:left}.order-item .sell-info .name[data-v-a0815354]{padding:.3125rem 0 .3125rem 0}.sell-info[data-v-a0815354]: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},"425e":function(e,t,a){var i=a("400d");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=a("499e").default;r("7b603bea",i,!0,{sourceMap:!1,shadowMode:!1})},"5dc0":function(e,t,a){var i=a("d411");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=a("499e").default;r("4b1d691f",i,!0,{sourceMap:!1,shadowMode:!1})},a257:function(e,t,a){"use strict";a("425e")},ac0d:function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));var i=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 i&&i.scrollTop?e=i.scrollTop:r&&(e=r.scrollTop),e},getClientHeight:function(){var e=0;return e=r.clientHeight&&i.clientHeight?Math.min(r.clientHeight,i.clientHeight):Math.max(r.clientHeight,i.clientHeight),e},getScrollHeight:function(){return Math.max(r.scrollHeight,i.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 i=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(){}}),s=o,n=(a("eaaa"),a("2877")),l=Object(n["a"])(s,i,r,!1,null,"308c5e3e",null);t["a"]=l.exports},d411:function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,".verification-page[data-v-a0815354] .van-search{padding:0;border:.0313rem solid #dadada}",""]),e.exports=t},dce4:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"verification-page"},[a("c-title",{attrs:{hide:!1,text:"核销明细"}}),a("div",{staticClass:"flex-a-c search-sell"},[a("div",{staticClass:"flex-a-c pb-20"},[a("div",{staticClass:"search-sn"},[a("van-search",{attrs:{placeholder:"姓名/手机号","custom-class":"search-padding","use-left-icon-slot":""},on:{input:e.modelInput},model:{value:e.query.coupon_member_kwd,callback:function(t){e.$set(e.query,"coupon_member_kwd",t)},expression:"query.coupon_member_kwd"}})],1),a("div",{staticClass:"search-name"},[a("van-search",{attrs:{placeholder:"订单编号","custom-class":"search-padding","use-left-icon-slot":""},on:{input:e.modelInput},model:{value:e.query.order_sn,callback:function(t){e.$set(e.query,"order_sn",t)},expression:"query.order_sn"}},[a("div",{attrs:{slot:"left-icon"},slot:"left-icon"})])],1)]),a("div",{staticClass:"search-order"},[a("van-search",{attrs:{placeholder:"商品名称","custom-class":"search-padding","use-left-icon-slot":""},on:{input:e.modelInput},model:{value:e.query.goods_name,callback:function(t){e.$set(e.query,"goods_name",t)},expression:"query.goods_name"}},[a("div",{attrs:{slot:"left-icon"},slot:"left-icon"})])],1),a("div",{staticClass:"search-verifier"},[a("van-search",{attrs:{"custom-class":"verifier-pb","field-class":"verifier-field",placeholder:"核销员昵称/姓名","use-left-icon-slot":""},on:{input:e.modelInput},model:{value:e.query.clerk_member_kwd,callback:function(t){e.$set(e.query,"clerk_member_kwd",t)},expression:"query.clerk_member_kwd"}},[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:"verifier-time"},[a("div",{staticClass:"title"},[e._v("选择核销时间")]),a("div",{staticClass:"flex-a-c flex-j-sb start-time mb-10",on:{click:e.startTimeOn}},[a("div",[e._v("起始时间")]),a("div",{staticClass:"flex-a-c"},[a("span",[e._v(e._s(e.startDate))]),a("div",{staticClass:"iconfont icon-advertise-next"})])]),a("div",{staticClass:"flex-a-c flex-j-sb start-time",on:{click:e.endTimeOn}},[a("div",[e._v("终止时间")]),a("div",{staticClass:"flex-a-c"},[a("span",[e._v(e._s(e.endDate))]),a("div",{staticClass:"iconfont icon-advertise-next"})])])]),a("van-popup",{attrs:{position:"bottom"},on:{close:function(t){return e.onClose("start")}},model:{value:e.startShow,callback:function(t){e.startShow=t},expression:"startShow"}},[a("van-datetime-picker",{attrs:{title:"选择年月",type:"date","min-date":e.minDate,formatter:e.formatter},on:{cancel:function(t){return e.onClose("start")},confirm:function(t){return e.onConfirm(e.currentDate,"start",t)}},model:{value:e.currentDate,callback:function(t){e.currentDate=t},expression:"currentDate"}})],1),a("van-popup",{attrs:{position:"bottom"},on:{close:function(t){return e.onClose("end")}},model:{value:e.endShow,callback:function(t){e.endShow=t},expression:"endShow"}},[a("van-datetime-picker",{attrs:{title:"选择年月",type:"date","min-date":e.minDate,formatter:e.formatter},on:{cancel:function(t){return e.onClose("end")},confirm:function(t){return e.onConfirm(e.terminateDate,"end",t)}},model:{value:e.terminateDate,callback:function(t){e.terminateDate=t},expression:"terminateDate"}})],1),e.examineList.length>0?a("div",{staticClass:"verifier-list"},e._l(e.examineList,(function(t,i){return a("block",{key:i},[a("sell-orderItem",{attrs:{sellItem:t,sellType:1}},[a("div",{staticClass:"sell-info"},[a("span",[e._v("订单编号:"+e._s(t.order_sn))]),a("div",{staticClass:"name"},[e._v(e._s(t.member&&t.member.name)+""+e._s(t.member&&t.member.mobile)+"")]),a("span",[e._v("消费券编号:"+e._s(t.coupon_sn))])])])],1)})),1):a("van-empty",{attrs:{description:"空空如也"}})],1)},r=[],o=a("2909"),s=(a("a9e3"),a("99af"),a("6968")),n=a("ac0d"),l=a("adf1"),c={components:{cTitle:s["a"],sellOrderItem:l["a"]},mixins:[n["a"]],data:function(){return{query:{cstore_id:null,coupon_member_kwd:"",clerk_member_kwd:"",order_sn:"",goods_name:"",start_time:"",end_time:""},isLoadMore:!0,page:1,totalPage:0,examineList:[],startShow:!1,endShow:!1,currentDate:new Date,terminateDate:new Date,minDate:new Date,startDate:"",endDate:"",formatter:function(e,t){return"year"===e?"".concat(t,"年"):"month"===e?"".concat(t,"月"):t}}},activated:function(){var e;""!==(null!==(e=this.$route.query.storeId)&&void 0!==e?e:"")&&(this.query.cstore_id=Number(this.$route.query.storeId));var t=(new Date).getFullYear();this.minDate=new Date((new Date).setFullYear(t-10)),this.examineLists()},methods:{startTimeOn:function(){this.startShow=!0},endTimeOn:function(){this.endShow=!0},formatDate:function(e){return e=new Date(e),"".concat(e.getFullYear(),"-").concat(e.getMonth()+1,"-").concat(e.getDate())},onSearch:function(){this.examineLists()},onClose:function(e){"start"===e?this.startShow=!1:this.endShow=!1},onConfirm:function(e,t,a){var i=Math.round(new Date(e).getTime()/1e3),r=new Date(new Date(new Date(e).toLocaleDateString()).getTime()+864e5-1)/1e3;"start"===t?(this.startShow=!1,this.startDate=this.formatDate(e),this.query.start_time=i):(this.endShow=!1,this.endDate=this.formatDate(e),this.query.end_time=parseInt(r))},examineLists:function(){var e=this,t=this.query;t.page=this.page,$http.post("plugin.coupon-store.frontend.store-manage.examineList",t,"正在获取").then((function(t){if(1==t.result){var a=t.data;e.goodsMore=!0,e.totalPage=a.last_page,e.totalPage||(e.page=0),e.examineList=a.data}else e.page=e.page-1,e.goodsMore=!1,e.$dialog.alert({message:t.msg})}),(function(e){}))},getMoreData:function(){var e=this;if(this.isLoadMore=!1,!(this.page>=this.totalPage)){this.page+=1;var t=this.query;t.page=this.page,$http.post("plugin.coupon-store.frontend.store-manage.examineList",t,"正在获取").then((function(t){if(1==t.result){var a=t.data,i=a.data;e.goodsMore=!0,e.examineList=[].concat(Object(o["a"])(e.examineList),Object(o["a"])(i))}else e.page=e.page-1,e.goodsMore=!1,e.$dialog.alert({message:t.msg})}),(function(e){}))}},handleScroll:function(){this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()&&this.isLoadMore&&this.getMoreData()}}},d=c,m=d,f=(a("e550"),a("a257"),a("2877")),u=Object(f["a"])(m,i,r,!1,null,"a0815354",null);t["default"]=u.exports},e550:function(e,t,a){"use strict";a("5dc0")},eaaa:function(e,t,a){"use strict";a("0d73")}}]);