(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1dc688d2"],{"060a":function(e,t,n){e.exports=n.p+"img/no_tk.401d40f4.png"},"1c3a":function(e,t,n){},"3b2b":function(e,t,n){var i=n("7726"),r=n("5dbc"),o=n("86cc").f,a=n("9093").f,s=n("aae3"),c=n("0bfb"),l=i.RegExp,d=l,u=l.prototype,f=/a/g,h=/a/g,p=new l(f)!==f;if(n("9e1e")&&(!p||n("79e5")((function(){return h[n("2b4c")("match")]=!1,l(f)!=f||l(h)==h||"/a/i"!=l(f,"i")})))){l=function(e,t){var n=this instanceof l,i=s(e),o=void 0===t;return!n&&i&&e.constructor===l&&o?e:r(p?new d(i&&!o?e.source:e,t):d((i=e instanceof l)?e.source:e,i&&o?c.call(e):t),n?this:u,l)};for(var g=function(e){e in l||o(l,e,{configurable:!0,get:function(){return d[e]},set:function(t){d[e]=t}})},v=a(d),m=0;v.length>m;)g(v[m++]);u.constructor=l,l.prototype=u,n("2aba")(i,"RegExp",l)}n("7a56")("RegExp")},"3e35":function(e,t,n){"use strict";var i=n("827d"),r=n.n(i);r.a},"468b":function(e,t,n){e.exports=n.p+"img/no_all.174e30c0.png"},"5d77":function(e,t,n){"use strict";var i=n("1c3a"),r=n.n(i);r.a},"5f70":function(e,t,n){e.exports=n.p+"img/no_fh.977a0fb8.png"},"61f7":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return u}));n("8e6e"),n("ac6a"),n("456d");var i=n("bd86");n("6b54"),n("3b2b"),n("a481");function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function o(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return o({required:!0,message:e,type:"string"},t)}function u(e){return f.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,e)}l(d,"请输入%s"),l(u,"%s格式不正确");var f=Object.keys(c).reduce((function(e,t){return e[t]=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a="range"===t?{min:e[0],max:e[1]}:Object(i["a"])({},t,e);return o(o({message:n.replace(":".concat(t),"range"===t?"".concat(e[0],"-").concat(e[1]):e),type:"string"},a),r)},l(e[t],c[t]),e}),{})},"6db4":function(e,t,n){!function(e,i){i(t,n("2b0e"))}(0,(function(e,t){"use strict";function n(e,t,n){document.addEventListener?e.addEventListener(t,n):e.attachEvent("on"+t,n)}function i(e,t,n){document.addEventListener?e.removeEventListener(t,n):e.detachEvent("on"+t,n)}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){return t={exports:{}},e(t,t.exports),t.exports}function a(){var e={},t=0,n=0,i=0;return{add:function(r,o){o||(o=r,r=0),r>n?n=r:r(e||14))return t=n,!0}},h=function(e,t,n){var i,r,o,a,s,c=function c(){var l=(new Date).getTime()-a;l=0?i=setTimeout(c,t-l):(i=null,n||(s=e.apply(o,r),i||(o=r=null)))};return function(){o=this,r=arguments,a=(new Date).getTime();var l=n&&!i;return i||(i=setTimeout(c,t)),l&&(s=e.apply(o,r),o=r=null),s}},p={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"stripContainer",staticClass:"happy-scroll-strip",class:[e.horizontal?"happy-scroll-strip--horizontal":"happy-scroll-strip--vertical"],style:[e.initLocation],on:{"!wheel":function(t){return t.stopPropagation(),e.handlerWheel(t)}}},[n("div",{ref:"strip",staticClass:"happy-scroll-bar",style:[e.translate,r({},e.config.sizeAttr,e.length+"px"),e.initSize,{background:e.color},{opacity:e.isOpacity}],on:{mousedown:function(t){return t.stopPropagation(),e.handlerMouseDown(t)}}})])},staticRenderFns:[],name:"happy-scroll-strip",props:{horizontal:Boolean,left:Boolean,top:Boolean,move:{type:Number,default:0},size:{type:[Number,String],default:4},minLengthV:{type:Number,default:40},minLengthH:{type:Number,default:40},color:{type:String,default:"rgba(51,51,51,0.2)"},throttle:{type:Number,default:14}},data:function(){return{config:{},startMove:!1,binded:!1,length:0,percentage:0,maxOffset:0,currentOffset:0,moveThrottle:f(this.throttle)}},watch:{currentOffset:function(e){0===e?this.emitLocationEvent("start",0):e===this.maxOffset&&this.emitLocationEvent("end",e/this.percentage)}},computed:{initSize:function(){return r({},this.horizontal?"height":"width",this.size+"px")},isOpacity:function(){return this.percentage<1?1:0},translate:function(){var e=this.move*this.percentage;if(this.$refs.stripContainer)return e<0&&(e=0),e>this.maxOffset&&(e=this.maxOffset),this.currentOffset=e,{transform:this.config.translate+"("+e+"px)"}},initLocation:function(){return this.horizontal?this.top?{top:0,bottom:"auto"}:"":this.left?{left:0,right:"auto"}:""}},methods:{emitLocationEvent:function(e,t){var n=this.horizontal?"horizontal":"vertical";this.$emit(n+"-"+e,t)},computeStrip:function(e,t){var n=this.$refs.stripContainer[this.config.client];this.length=n*(t/e);var i=this.horizontal?this.minLengthH:this.minLengthV;i<1&&(i*=n),this.length=this.lengththis.maxOffset&&(e=this.maxOffset),t&&e>0&&e4?e:void 0}())},t.isLegacyOpera=function(){return!!window.opera}})),S=o((function(e){(e.exports={}).getOption=function(e,t,n){var i=e[t];return void 0!==i&&null!==i||void 0===n?i:n}})),x=function(e){function t(){for(u=!0;d.size();){var e=d;d=a(),e.process()}u=!1}function n(){l=r(t)}function i(e){return clearTimeout(e)}function r(e){return function(e){return setTimeout(e,0)}(e)}var o=(e=e||{}).reporter,s=S.getOption(e,"async",!0),c=S.getOption(e,"auto",!0);c&&!s&&(o&&o.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),s=!0);var l,d=a(),u=!1;return{add:function(e,t){!u&&c&&s&&0===d.size()&&n(),d.add(e,t)},force:function(e){u||(void 0===e&&(e=s),l&&(i(l),l=null),e?n():t())}}},C="_erd",k={initState:function(e){return e[C]={},s(e)},getState:s,cleanState:function(e){delete e[C]}},$=function(e){function t(e){return r(e).object}var n=(e=e||{}).reporter,i=e.batchProcessor,r=e.stateHandler.getState;if(!n)throw new Error("Missing required dependency: reporter.");return{makeDetectable:function(e,t,o){o||(o=t,t=e,e=null),e=e||{},_.isIE(8)?o(t):function(e,t){function o(){function i(){if("static"===c.position){e.style.position="relative";var t=function(e,t,n,i){var r=n[i];"auto"!==r&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(r)&&(e.warn("An element that is positioned static has style."+i+"="+r+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+i+" will be set to 0. Element: ",t),t.style[i]=0)};t(n,e,c,"top"),t(n,e,c,"right"),t(n,e,c,"bottom"),t(n,e,c,"left")}}""!==c.position&&(i(c),s=!0);var o=document.createElement("object");o.style.cssText=a,o.tabIndex=-1,o.type="text/html",o.onload=function(){function n(e,t){e.contentDocument?t(e.contentDocument):setTimeout((function(){n(e,t)}),100)}s||i(),n(this,(function(n){t(e)}))},_.isIE()||(o.data="about:blank"),e.appendChild(o),r(e).object=o,_.isIE()&&(o.data="about:blank")}var a="display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; padding: 0; margin: 0; opacity: 0; z-index: -1000; pointer-events: none;",s=!1,c=window.getComputedStyle(e),l=e.offsetWidth,d=e.offsetHeight;r(e).startSize={width:l,height:d},i?i.add(o):o()}(t,o)},addListener:function(e,n){function i(){n(e)}if(!t(e))throw new Error("Element is not detectable by this strategy.");_.isIE(8)?(r(e).object={proxy:i},e.attachEvent("onresize",i)):t(e).contentDocument.defaultView.addEventListener("resize",i)},uninstall:function(e){_.isIE(8)?e.detachEvent("onresize",r(e).object.proxy):e.removeChild(t(e)),delete r(e).object}}},I=g.forEach,O=function(e){function t(e){e.className+=" "+u+"_animation_active"}function n(e,t,n){if(e.addEventListener)e.addEventListener(t,n);else{if(!e.attachEvent)return a.error("[scroll] Don't know how to add event listeners.");e.attachEvent("on"+t,n)}}function i(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n);else{if(!e.detachEvent)return a.error("[scroll] Don't know how to remove event listeners.");e.detachEvent("on"+t,n)}}function r(e){return c(e).container.childNodes[0].childNodes[0].childNodes[0]}function o(e){return c(e).container.childNodes[0].childNodes[0].childNodes[1]}var a=(e=e||{}).reporter,s=e.batchProcessor,c=e.stateHandler.getState,l=e.idHandler;if(!s)throw new Error("Missing required dependency: batchProcessor");if(!a)throw new Error("Missing required dependency: reporter.");var d=function(){var e=document.createElement("div");e.style.cssText="position: absolute; width: 1000px; height: 1000px; visibility: hidden; margin: 0; padding: 0;";var t=document.createElement("div");t.style.cssText="position: absolute; width: 500px; height: 500px; overflow: scroll; visibility: none; top: -1500px; left: -1500px; visibility: hidden; margin: 0; padding: 0;",t.appendChild(e),document.body.insertBefore(t,document.body.firstChild);var n=500-t.clientWidth,i=500-t.clientHeight;return document.body.removeChild(t),{width:n,height:i}}(),u="erd_scroll_detection_container";return function(e,t){if(!document.getElementById(e)){var n=t+"_animation",i="/* Created by the element-resize-detector library. */\n";i+="."+t+" > div::-webkit-scrollbar { display: none; }\n\n",i+="."+t+"_animation_active { -webkit-animation-duration: 0.1s; animation-duration: 0.1s; -webkit-animation-name: "+n+"; animation-name: "+n+"; }\n",i+="@-webkit-keyframes "+n+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(t,n){n=n||function(e){document.head.appendChild(e)};var i=document.createElement("style");i.innerHTML=t,i.id=e,n(i)}(i+="@keyframes "+n+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}("erd_scroll_detection_scrollbar_style",u),{makeDetectable:function(e,i,f){function h(){if(e.debug){var t=Array.prototype.slice.call(arguments);if(t.unshift(l.get(i),"Scroll: "),a.log.apply)a.log.apply(null,t);else for(var n=0;ni&&(n=e.biggerMoveH.toLocaleLowerCase()),"start"===n&&(e.moveY=0,e.slideYChange(e.moveY)),"end"===n&&(e.moveY=t.clientHeight,e.slideYChange(e.moveY)),i=t.clientHeight,n="",t.clientWidthr&&(n=e.biggerMoveV.toLocaleLowerCase()),"start"===n&&(e.moveX=0,e.slideXChange(e.moveX)),"end"===n&&(e.moveX=t.clientWidth,e.slideXChange(e.moveX)),r=t.clientWidth}))}},setContainerSize:function(){this.initSize={width:this.$refs["happy-scroll"].clientWidth+20+"px",height:this.$refs["happy-scroll"].clientHeight+20+"px"}},checkScrollMode:function(){if(void 0===L._happyJS._isScrollNotUseSpace){var e=this.$slots.default[0].elm,t=this.$refs.container;(e.offsetHeight>t.clientHeight||e.offsetWidth>t.clientWidth)&&(t.offsetWidth>t.clientWidth||t.offsetHeight>t.clientHeight?L._happyJS._isScrollNotUseSpace=!1:L._happyJS._isScrollNotUseSpace=!0,this.isScrollNotUseSpace=L._happyJS._isScrollNotUseSpace)}}},beforeCreate:function(){var e=L._happyJS=L._happyJS||{};this.isScrollNotUseSpace=e._isScrollNotUseSpace},created:function(){this.updateSyncScroll=h((function(){this.$emit("update:scrollTop",this.moveY),this.$emit("update:scrollLeft",this.moveX)}),this.throttle)},mounted:function(){var e=this;this.setContainerSize(),this.$nextTick((function(){e.computeStripX(),e.computeStripY(),e.checkScrollMode(),e.initBrowserSize(),e.$nextTick((function(){e.scrollTop&&(e.$refs.container.scrollTop=+e.scrollTop),e.scrollLeft&&(e.$refs.container.scrollLeft=+e.scrollLeft)}))})),this.resizeListener(),this.$watch("browserHSize",this.setContainerSize),this.$watch("browserVSize",this.setContainerSize)}};"undefined"!=typeof window&&window.Vue&&Vue.component("happy-scroll",H);var j={install:function(e){e.component("happy-scroll",H)},version:"2.1.1"};e.default=j,e.HappyScroll=H,e.version="2.1.1",Object.defineProperty(e,"__esModule",{value:!0})}))},"7a1a":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("6b6c");function r(){return Object(i["a"])({url:"service/info",method:"get",kefu:!0})}},"827d":function(e,t,n){},"87bc":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"container",staticClass:"pos-order-list"},[i("div",{staticClass:"head-box"},[i("div",{staticClass:"nav acea-row row-around row-middle"},[i("div",{staticClass:"item",class:""===e.where.type?"on":"",on:{click:function(t){return e.changeStatus("")}}},[e._v("\n 全部\n ")]),i("div",{staticClass:"item",class:0===e.where.type?"on":"",on:{click:function(t){return e.changeStatus(0)}}},[e._v("\n 未支付\n ")]),i("div",{staticClass:"item",class:2===e.where.type?"on":"",on:{click:function(t){return e.changeStatus(2)}}},[e._v("\n 未收货\n ")]),i("div",{staticClass:"item",class:-1===e.where.type?"on":"",on:{click:function(t){return e.changeStatus(-1)}}},[e._v("\n 退款中\n ")])]),i("div",{staticClass:"input-box"},[i("Input",{attrs:{placeholder:"搜索订单编号"},on:{"on-enter":e.bindSearch},model:{value:e.where.search,callback:function(t){e.$set(e.where,"search",t)},expression:"where.search"}})],1)]),i("div",{staticClass:"list"},[i("vue-scroll",{ref:"scrollBox",staticStyle:{height:"100%"},attrs:{ops:e.ops},on:{"load-before-deactivate":e.handleWordsScroll}},[i("div",{staticClass:"slot-load",attrs:{slot:"load-deactive"},slot:"load-deactive"}),i("div",{staticClass:"slot-load",attrs:{slot:"load-beforeDeactive"},slot:"load-beforeDeactive"}),i("div",{staticClass:"slot-load",attrs:{slot:"load-active"},slot:"load-active"},[e._v("下滑加载更多")]),e.list.length>0?e._l(e.list,(function(t,n){return i("div",{key:n,staticClass:"item"},[i("div",{staticClass:"order-num acea-row row-middle",on:{click:function(n){return e.toDetail(t)}}},[e._v("\n 订单号:"+e._s(t.order_id)+"\n "),i("span",{staticClass:"time"},[e._v("下单时间:"+e._s(t._add_time))])]),e._l(t.cartInfo,(function(n,r){return i("div",{key:r,staticClass:"pos-order-goods"},[i("div",{staticClass:"goods acea-row row-between-wrapper",on:{click:function(n){return e.toDetail(t)}}},[i("div",{staticClass:"picTxt acea-row row-between-wrapper"},[i("div",{staticClass:"pictrue"},[i("img",{attrs:{src:n.productInfo.image}})]),i("div",{staticClass:"text "},[i("div",{staticClass:"info line2"},[e._v("\n "+e._s(n.productInfo.store_name)+"\n ")]),n.productInfo.attrInfo.suk?i("div",{staticClass:"attr line1"},[e._v("\n "+e._s(n.productInfo.attrInfo.suk)+"\n ")]):e._e()])]),i("div",{staticClass:"money"},[i("div",{staticClass:"x-money"},[e._v("¥"+e._s(n.productInfo.attrInfo.price))]),i("div",{staticClass:"num"},[e._v("x"+e._s(n.cart_num))]),i("div",{staticClass:"y-money"})])])])})),i("div",{staticClass:"public-total"},[e._v("\n 共"+e._s(t.total_num)+"件商品,应支付\n "),i("span",{staticClass:"money"},[e._v("¥"+e._s(t.pay_price))]),e._v(" ( 邮费 ¥"+e._s(t.pay_postage)+"\n )\n ")]),i("div",{staticClass:"operation acea-row row-between-wrapper"},[i("div",{staticClass:"more"}),i("div",{staticClass:"acea-row row-middle"},[0===t.paid?i("div",{staticClass:"bnt",on:{click:function(n){return e.modify(t,0)}}},[e._v("\n 一键改价\n ")]):e._e(),i("div",{staticClass:"bnt",on:{click:function(n){return e.modify(t,1)}}},[e._v("订单备注")]),-1===t._status._type&&1===t.refund_status?i("div",{staticClass:"bnt",on:{click:function(n){return e.modify(t,0)}}},[e._v("\n 立即退款\n ")]):e._e(),"offline"===t.pay_type&&0===t.paid?i("div",{staticClass:"bnt cancel",on:{click:function(n){return e.offlinePay(t)}}},[e._v("\n 确认付款\n ")]):e._e(),1===t._status._type&&2!==t.shipping_type?i("router-link",{staticClass:"bnt",attrs:{to:"/kefu/orderDelivery/"+t.id+"/"+t.order_id}},[e._v("去发货\n ")]):e._e(),1===t._status._type&&2===t.shipping_type?i("div",{staticClass:"bnt cancel",on:{click:function(n){return e.storeCancellation(t)}}},[e._v("\n 去核销\n ")]):e._e()],1)])],2)})):e._e(),e.loading||0!==e.list.length||""!==e.where.type?e._e():[i("div",{staticStyle:{"text-align":"center"}},[i("img",{staticStyle:{width:"3.9rem"},attrs:{src:n("468b"),alt:""}}),i("p",{staticStyle:{color:"#9F9F9F"}},[e._v("亲,该客户暂无订单~")])])],e.loading||0!==e.list.length||0!==e.where.type?e._e():[i("div",{staticStyle:{"text-align":"center"}},[i("img",{staticStyle:{width:"3.9rem"},attrs:{src:n("ea87"),alt:""}}),i("p",{staticStyle:{color:"#9F9F9F"}},[e._v("暂无未支付订单~")])])],e.loading||0!==e.list.length||2!==e.where.type?e._e():[i("div",{staticStyle:{"text-align":"center"}},[i("img",{staticStyle:{width:"3.9rem"},attrs:{src:n("5f70"),alt:""}}),i("p",{staticStyle:{color:"#9F9F9F"}},[e._v("暂无未收货订单~")])])],e.loading||0!==e.list.length||-1!==e.where.type?e._e():[i("div",{staticStyle:{"text-align":"center"}},[i("img",{staticStyle:{width:"3.9rem"},attrs:{src:n("060a"),alt:""}}),i("p",{staticStyle:{color:"#9F9F9F"}},[e._v("暂无退款订单~")])])]],2)],1),e.orderInfo?i("PriceChange",{attrs:{change:e.change,orderInfo:e.orderInfo,status:e.status},on:{closechange:function(t){return e.changeclose(t)},closeChange:function(t){return e.closeChange(t)}}}):e._e(),e.iShidden?i("write-off",{attrs:{iShidden:e.iShidden,orderInfo:e.orderInfo},on:{cancel:e.cancel,confirm:e.confirm}}):e._e()],1)},r=[],o=(n("96cf"),n("3b8d")),a=n("8c8a"),s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.loading&&!e.loaded?n("div",{staticClass:"Loads acea-row row-center-wrapper",staticStyle:{"margin-top":".2rem","font-size":"12px"}},[e.loading?[n("div",{staticClass:"iconfontYI icon-jiazai loading acea-row row-center-wrapper"}),e._v("\n 正在加载中\n ")]:[e._v("\n 上拉加载更多\n ")]],2):e._e()},c=[],l={name:"Loading",props:{loaded:Boolean,loading:Boolean},created:function(){}},d=l,u=n("2877"),f=Object(u["a"])(d,s,c,!1,null,null,null),h=f.exports,p=n("42e3"),g=n("61f7"),v=n("69ae"),m=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.iShidden,expression:"iShidden"}]},[n("div",{staticClass:"WriteOff"},[n("div",{staticClass:"pictrue"},[n("img",{attrs:{src:e.orderInfo.cartInfo[0].productInfo.image}})]),n("div",{staticClass:"num acea-row row-center-wrapper"},[e._v("\n "+e._s(e.orderInfo.order_id)+"\n "),n("div",{staticClass:"views",on:{click:function(t){return e.toDetail(e.orderInfo)}}},[e._v("\n 查看"),n("span",{staticClass:"iconfont icon-jiantou views-jian"})])]),n("div",{staticClass:"tip"},[e._v("确定要核销此订单吗?")]),n("div",{staticClass:"sure",on:{click:e.confirm}},[e._v("确定核销")]),n("div",{staticClass:"sure cancel",on:{click:e.cancel}},[e._v("取消")])]),n("div",{staticClass:"maskModel",on:{touchmove:function(e){e.preventDefault()}}})])},b=[],y={name:"WriteOff",props:{iShidden:{type:Boolean,default:!0},orderInfo:{type:Object,default:null}},data:function(){return{}},methods:{toDetail:function(e){this.$router.push({path:"/kefu/orderDetail/"+e.id+"/looks"})},cancel:function(){this.$emit("cancel",!1)},confirm:function(){this.$emit("confirm",!1)}}},w=y,_=(n("8ba5"),Object(u["a"])(w,m,b,!1,null,"021d8284",null)),S=_.exports,x=n("6db4"),C=n("7a1a"),k={name:"AdminOrderList",components:{WriteOff:S,PriceChange:a["a"],Loading:h,HappyScroll:x["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(e){var t=this;void 0!=e&&(t.where.type=e,t.init())},types:function(){this.getIndex()}},created:function(){Object(C["a"])().then((function(e){window.document.title="".concat(e.data.site_name," - 订单列表")}))},mounted:function(){var e=this;this.current="",this.getIndex(),this.$scroll(this.$refs.container,(function(){!e.loading&&e.getIndex()}))},methods:{bindSearch:function(){this.init()},storeCancellation:function(e){this.orderInfo=e,this.iShidden=!0},cancel:function(e){this.iShidden=e},confirm:function(){var e=this;Object(p["z"])(this.orderInfo.id).then((function(t){e.iShidden=!1,e.init(),e.$dialog.success(t.msg)})).catch((function(t){e.$dialog.error(t.msg)}))},more:function(e){this.current===e?this.current="":this.current=e},modify:function(e,t){this.change=!0,this.orderInfo=e,this.status=t},closeChange:function(e){this.change=e},changeclose:function(e){this.change=e,this.init()},getRefuse:function(e){orderRefuseApi(data).then((function(){that.change=!1,that.$dialog.success("已拒绝退款"),that.init()})).catch((function(e){that.$dialog.error(e.message)}))},savePrice:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var n,i,r,o,a,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=this,i={},r=t.price,o=t.refundPrice,a=n.orderInfo.refundStatus,s=t.remark,0!=n.status||0!==a){e.next=15;break}return e.prev=2,e.next=5,this.$validator({price:[Object(g["c"])(g["c"].message("金额"))]}).validate({price:r});case 5:e.next=10;break;case 7:return e.prev=7,e.t0=e["catch"](2),e.abrupt("return",Object(v["b"])(e.t0));case 10:i.price=r,i.orderId=t.orderId,editPriceApi(i).then((function(){n.change=!1,n.$dialog.success("改价成功"),n.init()})).catch((function(e){n.$dialog.error(e.message)})),e.next=41;break;case 15:if(0!=n.status||1!==a){e.next=30;break}return e.prev=16,e.next=19,this.$validator({refundPrice:[Object(g["c"])(g["c"].message("金额")),Object(g["b"])(g["b"].message("金额"))]}).validate({refundPrice:o});case 19:e.next=24;break;case 21:return e.prev=21,e.t1=e["catch"](16),e.abrupt("return",Object(v["b"])(e.t1));case 24:i.amount=o,i.type=t.type,i.orderId=t.orderId,orderRefundApi(i).then((function(e){n.change=!1,n.$dialog.success("退款成功"),n.init()}),(function(e){n.change=!1,n.$dialog.error(e.message)})),e.next=41;break;case 30:return e.prev=30,e.next=33,this.$validator({remark:[Object(g["c"])(g["c"].message("备注"))]}).validate({remark:s});case 33:e.next=38;break;case 35:return e.prev=35,e.t2=e["catch"](30),e.abrupt("return",Object(v["b"])(e.t2));case 38:i.mark=s,i.id=t.id,orderMarkApi(i).then((function(e){n.change=!1,n.$dialog.success("提交成功"),n.init()}),(function(e){n.change=!1,n.$dialog.error(e.msg)}));case 41:case"end":return e.stop()}}),e,this,[[2,7],[16,21],[30,35]])})));function t(t){return e.apply(this,arguments)}return t}(),init:function(){this.list=[],this.where.page=1,this.loaded=!1,this.loading=!1,this.getIndex(),this.current=""},getIndex:function(){var e=this;this.loading||this.loaded||(this.loading=!0,Object(p["o"])(this.$route.params.toUid,this.where).then((function(t){e.loading=!1,e.loaded=t.data.length0&&e.$refs["scrollBox"].refresh()}))}),(function(t){e.$dialog.error(t.msg)})))},changeStatus:function(e){this.where.type!==e&&(this.where.type=e,this.init())},toDetail:function(e){this.$router.push({path:"/kefu/orderDetail/"+e.id})},offlinePay:function(e){},handleWordsScroll:function(e,t,n){this.getIndex(),n()}}},$=k,I=(n("3e35"),Object(u["a"])($,i,r,!1,null,"07560010",null));t["default"]=I.exports},"8ba5":function(e,t,n){"use strict";var i=n("cf3d"),r=n.n(i);r.a},"8c8a":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"priceChange",class:!0===e.change?"on":""},[n("div",{staticClass:"priceTitle"},[e._v("\n "+e._s(0===e.status?1===e.orderInfo.refund_status?"立即退款":"一键改价":"订单备注")+"\n "),n("span",{staticClass:"iconfontYI icon-guanbi",on:{click:e.close}})]),0===e.status?n("div",{staticClass:"listChange"},[0===e.orderInfo.refund_status?n("div",{staticClass:"item acea-row row-between-wrapper"},[n("div",[e._v("商品总价(¥)")]),n("div",{staticClass:"money"},[e._v("\n "+e._s(e.orderInfo.total_price)),n("span",{staticClass:"iconfontYI icon-suozi"})])]):e._e(),0===e.orderInfo.refund_status?n("div",{staticClass:"item acea-row row-between-wrapper"},[n("div",[e._v("原始邮费(¥)")]),n("div",{staticClass:"money"},[e._v("\n "+e._s(e.orderInfo.pay_postage)),n("span",{staticClass:"iconfontYI icon-suozi"})])]):e._e(),0===e.orderInfo.refund_status?n("div",{staticClass:"item acea-row row-between-wrapper"},[n("div",[e._v("实际支付(¥)")]),n("div",{staticClass:"money"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.price,expression:"price"}],class:!0===e.focus?"on":"",attrs:{type:"text"},domProps:{value:e.price},on:{focus:e.priceChange,input:function(t){t.target.composing||(e.price=t.target.value)}}})])]):e._e(),1===e.orderInfo.refund_status?n("div",{staticClass:"item acea-row row-between-wrapper"},[n("div",[e._v("实际支付(¥)")]),n("div",{staticClass:"money"},[e._v("\n "+e._s(e.orderInfo.pay_price)),n("span",{staticClass:"iconfontYI icon-suozi"})])]):e._e(),1===e.orderInfo.refund_status?n("div",{staticClass:"item acea-row row-between-wrapper"},[n("div",[e._v("退款金额(¥)")]),n("div",{staticClass:"money"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.refund_price,expression:"refund_price"}],class:!0===e.focus?"on":"",attrs:{type:"text"},domProps:{value:e.refund_price},on:{focus:e.priceChange,input:function(t){t.target.composing||(e.refund_price=t.target.value)}}})])]):e._e()]):n("div",{staticClass:"listChange"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.remark,expression:"remark"}],attrs:{placeholder:e.orderInfo.remark?e.orderInfo.remark:"请填写备注信息...",maxlength:"100"},domProps:{value:e.remark},on:{input:function(t){t.target.composing||(e.remark=t.target.value)}}})]),n("div",{staticClass:"modify",on:{click:e.save}},[e._v("\n "+e._s(0===e.orderInfo.refund_status||1===e.status?"立即修改":"确认退款")+"\n ")]),1===e.orderInfo.refund_status&&0===e.status?n("div",{staticClass:"modify1",on:{click:e.refuse}},[e._v("\n 拒绝退款\n ")]):e._e()]),n("div",{directives:[{name:"show",rawName:"v-show",value:!0===e.change,expression:"change === true"}],staticClass:"maskModel",on:{touchmove:function(e){e.preventDefault()}}})])},r=[],o=(n("96cf"),n("3b8d")),a=(n("c5f6"),n("61f7")),s=n("69ae"),c=n("42e3"),l={name:"PriceChange",components:{},props:{change:Boolean,orderInfo:{type:Object,default:null},status:{type:Number,default:0}},data:function(){return{focus:!1,price:0,refund_price:0,remark:""}},watch:{orderInfo:function(){this.price=this.orderInfo.pay_price,this.refund_price=this.orderInfo.pay_price,this.remark=this.orderInfo.remark}},methods:{priceChange:function(){this.focus=!0},close:function(){this.price=this.orderInfo.pay_price,this.$emit("closeChange",!1)},save:function(){this.savePrice({price:this.price,refund_price:this.refund_price,type:1,remark:this.remark,id:this.orderInfo.id,order_id:this.orderInfo.order_id})},savePrice:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var n,i,r,o,l,d,u=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=this,i={},r=t.price,o=t.refund_price,l=n.orderInfo.refund_status,d=t.remark,0!=n.status||0!==l){e.next=19;break}return e.prev=2,e.next=5,this.$validator({price:[Object(a["c"])(a["c"].message("金额")),Object(a["b"])(a["b"].message("金额"))]}).validate({price:r});case 5:e.next=10;break;case 7:return e.prev=7,e.t0=e["catch"](2),e.abrupt("return",Object(s["b"])(e.t0));case 10:i.total_price=this.orderInfo.total_price,i.total_postage=this.orderInfo.total_price,i.pay_postage=this.orderInfo.pay_postage,i.gain_integral=this.orderInfo.gain_integral,i.pay_price=t.price,i.order_id=t.order_id,Object(c["f"])(t.id,i).then((function(){u.$emit("closechange",!1),n.$dialog.success("改价成功")})).catch((function(e){n.$dialog.error(e.msg)})),e.next=45;break;case 19:if(0!=n.status||1!==l){e.next=34;break}return e.prev=20,e.next=23,this.$validator({refund_price:[Object(a["c"])(a["c"].message("金额")),Object(a["b"])(a["b"].message("金额"))]}).validate({refund_price:o});case 23:e.next=28;break;case 25:return e.prev=25,e.t1=e["catch"](20),e.abrupt("return",Object(s["b"])(e.t1));case 28:i.price=t.refund_price,i.type=t.type,i.order_id=t.order_id,Object(c["w"])(i).then((function(e){u.$emit("closechange",!1),n.$dialog.success("操作成功")}),(function(e){u.$emit("closechange",!1),n.$dialog.error(e.msg)})),e.next=45;break;case 34:return e.prev=34,e.next=37,this.$validator({remark:[Object(a["c"])(a["c"].message("备注"))]}).validate({remark:d});case 37:e.next=42;break;case 39:return e.prev=39,e.t2=e["catch"](34),e.abrupt("return",Object(s["b"])(e.t2));case 42:i.remark=d,i.order_id=t.order_id,Object(c["x"])(i).then((function(e){u.$emit("closechange",!1),n.$dialog.success("提交成功")}),(function(e){u.$emit("closechange",!1),n.$dialog.error(e.msg)}));case 45:case"end":return e.stop()}}),e,this,[[2,7],[20,25],[34,39]])})));function t(t){return e.apply(this,arguments)}return t}(),refuse:function(){this.savePrice({price:this.price,refund_price:this.refund_price,type:2,remark:this.remark,id:this.orderInfo.id,order_id:this.orderInfo.order_id})}}},d=l,u=(n("5d77"),n("2877")),f=Object(u["a"])(d,i,r,!1,null,"56fed036",null);t["a"]=f.exports},cf3d:function(e,t,n){},ea87:function(e,t,n){e.exports=n.p+"img/no_zf.e61fe9b5.png"}}]);