(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-14545ee5"],{"060a":function(t,e,i){t.exports=i.p+"system_static/img/no_tk.401d40f4.png"},"076f":function(t,e,i){},"129f":function(t,e,i){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},"151e":function(t,e,i){i("da14")},"468b":function(t,e,i){t.exports=i.p+"system_static/img/no_all.174e30c0.png"},"5f70":function(t,e,i){t.exports=i.p+"system_static/img/no_fh.977a0fb8.png"},"6db4":function(t,e,i){function n(t,e,i){document.addEventListener?t.addEventListener(e,i):t.attachEvent("on"+e,i)}function o(t,e,i){document.addEventListener?t.removeEventListener(e,i):t.detachEvent("on"+e,i)}function r(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function s(t,e){return t(e={exports:{}},e.exports),e.exports}function a(){var t={},e=0,i=0,n=0;return{add:function(o,r){r||(r=o,o=0),i div::-webkit-scrollbar { display: none; }\n\n."+t+"_animation_active { -webkit-animation-duration: 0.1s; animation-duration: 0.1s; -webkit-animation-name: "+(t+="_animation")+"; animation-name: "+t+"; }\n@-webkit-keyframes "+t+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n@keyframes "+t+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",c=function(t){document.head.appendChild(t)},(l=document.createElement("style")).innerHTML=t,l.id=a,c(l)),{makeDetectable:function(t,i,a){function c(){if(t.debug){var e=Array.prototype.slice.call(arguments);if(e.unshift(f.get(i),"Scroll: "),d.log.apply)d.log.apply(null,e);else for(var n=0;nthis.maxOffset&&(t=this.maxOffset),this.currentOffset=t,{transform:this.config.translate+"("+t+"px)"}},initLocation:function(){return this.horizontal?this.top?{top:0,bottom:"auto"}:"":this.left?{left:0,right:"auto"}:""}},methods:{emitLocationEvent:function(t,e){var i=this.horizontal?"horizontal":"vertical";this.$emit(i+"-"+t,e)},computeStrip:function(t,e){var i=this.$refs.stripContainer[this.config.client],n=(this.length=i*(e/t),this.horizontal?this.minLengthH:this.minLengthV);n<1&&(n*=i),this.length=this.lengththis.maxOffset&&(t=this.maxOffset),e&&0{for(var t=3,e=document.createElement("div"),i=e.getElementsByTagName("i");e.innerHTML="\x3c!--[if gt IE "+ ++t+"]>e.clientHeight||t.offsetWidth>e.clientWidth)&&(e.offsetWidth>e.clientWidth||e.offsetHeight>e.clientHeight?E._happyJS._isScrollNotUseSpace=!1:E._happyJS._isScrollNotUseSpace=!0,this.isScrollNotUseSpace=E._happyJS._isScrollNotUseSpace)}},beforeCreate:function(){var t=E._happyJS=E._happyJS||{};this.isScrollNotUseSpace=t._isScrollNotUseSpace},created:function(){this.updateSyncScroll=p((function(){this.$emit("update:scrollTop",this.moveY),this.$emit("update:scrollLeft",this.moveX)}),this.throttle)},mounted:function(){var t=this;this.setContainerSize(),this.$nextTick((function(){t.computeStripX(),t.computeStripY(),t.checkScrollMode(),t.initBrowserSize(),t.$nextTick((function(){t.scrollTop&&(t.$refs.container.scrollTop=+t.scrollTop),t.scrollLeft&&(t.$refs.container.scrollLeft=+t.scrollLeft)}))})),this.resizeListener(),this.$watch("browserHSize",this.setContainerSize),this.$watch("browserVSize",this.setContainerSize)}},"undefined"!=typeof window&&window.Vue&&Vue.component("happy-scroll",L),e.default={install:function(t){t.component("happy-scroll",L)},version:"2.1.1"},e.HappyScroll=L,e.version="2.1.1",Object.defineProperty(e,"__esModule",{value:!0})},"7a1a":function(t,e,i){i.d(e,"a",(function(){return o}));var n=i("6b6c");function o(){return Object(n.a)({url:"service/info",method:"get",kefu:!0})}},"841c":function(t,e,i){var n=i("c65b"),o=i("d784"),r=i("825a"),s=i("861d"),a=i("1d80"),c=i("129f"),l=i("577e"),d=i("dc4a"),h=i("14c3");o("search",(function(t,e,i){return[function(e){var i=a(this),o=s(e)?d(e,t):void 0;return o?n(o,e,i):new RegExp(e)[t](l(i))},function(t){var n=r(this),o=(t=l(t),i(e,n,t));return o.done?o.value:(o=n.lastIndex,c(o,0)||(n.lastIndex=0),t=h(n,t),c(n.lastIndex,o)||(n.lastIndex=o),null===t?-1:t.index)}]}))},"87bc6":function(t,e,i){i.r(e),i("ac1f"),i("841c");var n=i("c14f"),o=i("1da1"),r=(i("14d9"),i("8c8a")),s={name:"Loading",props:{loaded:Boolean,loading:Boolean},created:function(){}},a=i("2877"),c=(s=Object(a.a)(s,(function(){var t=this,e=t._self._c;return t.loading&&!t.loaded?e("div",{staticClass:"Loads acea-row row-center-wrapper",staticStyle:{"margin-top":"0.2rem","font-size":"12px"}},[t.loading?[e("div",{staticClass:"iconfontYI icon-jiazai loading acea-row row-center-wrapper"}),t._v("\n 正在加载中\n ")]:[t._v(" 上拉加载更多 ")]],2):t._e()}),[],!1,null,null,null).exports,i("42e3")),l=i("61f7"),d=i("69ae"),h={name:"WriteOff",props:{iShidden:{type:Boolean,default:!0},orderInfo:{type:Object,default:null}},data:function(){return{}},methods:{toDetail:function(t){this.$router.push({path:"/kefu/orderDetail/"+t.id+"/looks"})},cancel:function(){this.$emit("cancel",!1)},confirm:function(){this.$emit("confirm",!1)}}},u=(h=(i("151e"),Object(a.a)(h,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.iShidden,expression:"iShidden"}]},[e("div",{staticClass:"WriteOff"},[e("div",{staticClass:"pictrue"},[e("img",{attrs:{src:t.orderInfo.cartInfo[0].productInfo.image}})]),e("div",{staticClass:"num acea-row row-center-wrapper"},[t._v("\n "+t._s(t.orderInfo.order_id)+"\n "),e("div",{directives:[{name:"db-click",rawName:"v-db-click"}],staticClass:"views",on:{click:function(e){return t.toDetail(t.orderInfo)}}},[t._v("\n 查看"),e("span",{staticClass:"iconfont icon-jiantou views-jian"})])]),e("div",{staticClass:"tip"},[t._v("确定要核销此订单吗?")]),e("div",{directives:[{name:"db-click",rawName:"v-db-click"}],staticClass:"sure",on:{click:t.confirm}},[t._v("确定核销")]),e("div",{directives:[{name:"db-click",rawName:"v-db-click"}],staticClass:"sure cancel",on:{click:t.cancel}},[t._v("取消")])]),e("div",{staticClass:"maskModel",on:{touchmove:function(t){t.preventDefault()}}})])}),[],!1,null,"df052a48",null).exports),i("6db4")),f=i("7a1a");h={name:"AdminOrderList",components:{WriteOff:h,PriceChange:r.a,Loading:s,HappyScroll:u.HappyScroll},props:{},data:function(){return{current:"",change:!1,types:0,where:{page:1,limit:15,search:"",type:""},list:[],loaded:!1,loading:!1,orderInfo:{},status:null,iShidden:!1,ops:{vuescroll:{mode:"slide",enable:!1,tips:{deactive:"Push to Load",active:"Release to Load",start:"Loading...",beforeDeactive:"Load Successfully!"},auto:!1,autoLoadDistance:0,pullRefresh:{enable:!1},pushLoad:{enable:!0,auto:!0,autoLoadDistance:10}},bar:{background:"#393232",opacity:".5",size:"2px"}}}},watch:{"$route.params.type":function(t){null!=t&&(this.where.type=t,this.init())},types:function(){this.getIndex()}},created:function(){Object(f.a)().then((function(t){window.document.title="".concat(t.data.site_name," - 订单列表")}))},mounted:function(){var t=this;this.current="",this.getIndex(),this.$scroll(this.$refs.container,(function(){t.loading||t.getIndex()}))},methods:{bindSearch:function(){this.init()},storeCancellation:function(t){this.orderInfo=t,this.iShidden=!0},cancel:function(t){this.iShidden=t},confirm:function(){var t=this;Object(c.z)(this.orderInfo.id).then((function(e){t.iShidden=!1,t.init(),t.$dialog.success(e.msg)})).catch((function(e){t.$dialog.error(e.msg)}))},more:function(t){this.current===t?this.current="":this.current=t},modify:function(t,e){this.change=!0,this.orderInfo=t,this.status=e},closeChange:function(t){this.change=t},changeclose:function(t){this.change=t,this.init()},getRefuse:function(t){orderRefuseApi(data).then((function(){that.change=!1,that.$dialog.success("已拒绝退款"),that.init()})).catch((function(t){that.$dialog.error(t.message)}))},savePrice:function(t){var e=this;return Object(o.a)(Object(n.a)().m((function i(){var o,r,s,a,c,h,u,f;return Object(n.a)().w((function(i){for(;;)switch(i.n){case 0:if(o=e,r={},s=t.price,a=t.refundPrice,c=o.orderInfo.refundStatus,h=t.remark,0==o.status&&0===c)return i.p=1,i.n=2,e.$validator({price:[Object(l.c)(l.c.message("金额"))]}).validate({price:s});i.n=5;break;case 2:i.n=4;break;case 3:return i.p=3,u=i.v,i.a(2,Object(d.b)(u));case 4:r.price=s,r.orderId=t.orderId,editPriceApi(r).then((function(){o.change=!1,o.$dialog.success("改价成功"),o.init()})).catch((function(t){o.$dialog.error(t.message)})),i.n=14;break;case 5:if(0==o.status&&1===c)return i.p=6,i.n=7,e.$validator({refundPrice:[Object(l.c)(l.c.message("金额")),Object(l.b)(l.b.message("金额"))]}).validate({refundPrice:a});i.n=10;break;case 7:i.n=9;break;case 8:return i.p=8,u=i.v,i.a(2,Object(d.b)(u));case 9:r.amount=a,r.type=t.type,r.orderId=t.orderId,orderRefundApi(r).then((function(t){o.change=!1,o.$dialog.success("退款成功"),o.init()}),(function(t){o.change=!1,o.$dialog.error(t.message)})),i.n=14;break;case 10:return i.p=10,i.n=11,e.$validator({remark:[Object(l.c)(l.c.message("备注"))]}).validate({remark:h});case 11:i.n=13;break;case 12:return i.p=12,f=i.v,i.a(2,Object(d.b)(f));case 13:r.mark=h,r.id=t.id,orderMarkApi(r).then((function(t){o.change=!1,o.$dialog.success("提交成功"),o.init()}),(function(t){o.change=!1,o.$dialog.error(t.msg)}));case 14:return i.a(2)}}),i,null,[[10,12],[6,8],[1,3]])})))()},init:function(){this.list=[],this.where.page=1,this.loaded=!1,this.loading=!1,this.getIndex(),this.current=""},getIndex:function(){var t=this;this.loading||this.loaded||(this.loading=!0,Object(c.o)(this.$route.params.toUid,this.where).then((function(e){t.loading=!1,t.loaded=e.data.length