(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-924d915e"],{"10a9":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{ref:"container",staticClass:"pos-order-list"},[r("div",{staticClass:"nav acea-row row-around row-middle"},[r("div",{staticClass:"item",class:"unPaid"==t.where.status?"on":"",on:{click:function(e){return t.changeStatus("unPaid")}}},[t._v("待付款")]),t._v(" "),r("div",{staticClass:"item",class:"notShipped"==t.where.status?"on":"",on:{click:function(e){return t.changeStatus("notShipped")}}},[t._v("\n 待发货\n ")]),t._v(" "),r("div",{staticClass:"item",class:"spike"==t.where.status?"on":"",on:{click:function(e){return t.changeStatus("spike")}}},[t._v("待收货")]),t._v(" "),r("div",{staticClass:"item",class:"toBeWrittenOff"==t.where.status?"on":"",on:{click:function(e){return t.changeStatus("toBeWrittenOff")}}},[t._v("\n 待核销\n ")]),t._v(" "),r("div",{staticClass:"item",class:"complete"==t.where.status?"on":"",on:{click:function(e){return t.changeStatus("complete")}}},[t._v("已完成")]),t._v(" "),r("div",{staticClass:"item",class:"refunding"==t.where.status?"on":"",on:{click:function(e){return t.changeStatus("refunding")}}},[t._v("退款")])]),t._v(" "),r("div",{staticClass:"list"},[t.list.length>0?t._l(t.list,(function(e,n){return r("div",{key:n,staticClass:"item"},[r("div",{staticClass:"order-num acea-row row-middle",on:{click:function(r){return t.toDetail(e)}}},[t._v("\n 订单号:"+t._s(e.orderId)+"\n "),r("span",{staticClass:"time"},[t._v("下单时间:"+t._s(e.createTime))])]),t._v(" "),t._l(e.productList,(function(n,i){return r("div",{key:i,staticClass:"pos-order-goods"},[r("div",{staticClass:"goods acea-row row-between-wrapper",on:{click:function(r){return t.toDetail(e)}}},[r("div",{staticClass:"picTxt acea-row row-between-wrapper"},[r("div",{staticClass:"pictrue"},[r("img",{attrs:{src:n.info.image}})]),t._v(" "),r("div",{staticClass:"text"},[r("div",{staticClass:"info line2"},[t._v("\n "+t._s(n.info.productName)+"\n ")]),t._v(" "),n.info.sku?r("div",{staticClass:"attr"},[t._v("\n "+t._s(n.info.sku)+"\n ")]):t._e()])]),t._v(" "),r("div",{staticClass:"money"},[r("div",{staticClass:"x-money"},[t._v("¥"+t._s(n.info.price))]),t._v(" "),r("div",{staticClass:"num"},[t._v("x"+t._s(n.info.payNum))]),t._v(" "),r("div",{staticClass:"y-money"})])])])})),t._v(" "),r("div",{staticClass:"public-total"},[t._v("\n 共"+t._s(e.totalNum?e.totalNum:1)+"件商品,应支付 "),r("span",{staticClass:"money"},[t._v("¥"+t._s(e.payPrice))]),t._v(" (\n 邮费 ¥"+t._s(e.totalPostage?e.totalPostage:0)+")\n ")]),t._v(" "),r("div",{staticClass:"operation acea-row row-between-wrapper"},[r("div",{staticClass:"more"}),t._v(" "),r("div",{staticClass:"acea-row row-middle"},[e.isAlterPrice||0!=e.paid?t._e():r("div",{staticClass:"bnt",on:{click:function(r){return t.modify(e,0)}}},[t._v("一键改价")]),t._v(" "),r("div",{staticClass:"bnt",on:{click:function(r){return t.modify(e,1)}}},[t._v("订单备注")]),t._v(" "),"refunding"===t.where.status&&1===e.refundStatus?r("div",{staticClass:"bnt",on:{click:function(r){return t.modify(e,2)}}},[t._v("\n 立即退款\n ")]):t._e(),t._v(" "),"refunding"===t.where.status&&1===e.refundStatus?r("div",{staticClass:"bnt",on:{click:function(r){return t.modify(e,3)}}},[t._v("\n 拒绝退款\n ")]):t._e(),t._v(" "),"notShipped"===t.where.status&&2!==e.shippingType&&2!==e.refundStatus?r("router-link",{staticClass:"bnt",attrs:{to:"/javaMobile/orderDelivery/"+e.orderId+"/"+e.id}},[t._v("去发货\n ")]):t._e(),t._v(" "),"toBeWrittenOff"===t.where.status&&2===e.shippingType&&t.isWriteOff&&0===e.refundStatus&&1==e.paid?r("router-link",{staticClass:"bnt",attrs:{to:"/javaMobile/orderCancellation"}},[t._v("去核销\n ")]):t._e()],1)])],2)})):t._e(),t._v(" "),t.loading||0!==t.list.length?t._e():[r("div",{staticStyle:{"text-align":"center"}},[t._v("暂无数据")])]],2),t._v(" "),r("Loading",{attrs:{loaded:t.loaded,loading:t.loading}}),t._v(" "),t.orderInfo?r("PriceChange",{attrs:{change:t.change,orderInfo:t.orderInfo,status:t.status},on:{closechange:function(e){return t.changeclose(e)},getRefuse:t.getRefuse}}):t._e()],1)},i=[],o=r("4c60"),a=r("b798"),s=r("f8b7"),c=r("61f7"),u=r("69ae"),l=r("ed08");function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function h(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */h=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof w?e:w,a=Object.create(o.prototype),s=new $(n||[]);return i(a,"_invoke",{value:S(t,r,s)}),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var v="suspendedStart",p="suspendedYield",g="executing",y="completed",m={};function w(){}function _(){}function b(){}var x={};u(x,a,(function(){return this}));var k=Object.getPrototypeOf,C=k&&k(k(N([])));C&&C!==r&&n.call(C,a)&&(x=C);var O=b.prototype=w.prototype=Object.create(x);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(i,o,a,s){var c=d(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==f(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function S(e,r,n){var i=v;return function(o,a){if(i===g)throw new Error("Generator is already running");if(i===y){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=E(s,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===v)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=g;var u=d(e,r,n);if("normal"===u.type){if(i=n.done?y:p,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function E(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,E(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var o=d(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function $(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;I(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function d(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(u){return void r(u)}s.done?e(c):Promise.resolve(c).then(n,i)}function v(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){d(o,n,i,a,s,"next",t)}function s(t){d(o,n,i,a,s,"throw",t)}a(void 0)}))}}var p={name:"AdminOrderList",components:{PriceChange:o["a"],Loading:a["a"]},props:{},data:function(){return{isWriteOff:Object(l["e"])(),current:"",change:!1,types:0,where:{page:1,limit:10,status:"unPaid"},list:[],loaded:!1,loading:!1,orderInfo:{},status:null}},watch:{"$route.params.types":function(t){var e=this;void 0!=t&&(e.where.status=t,e.init())},types:function(){this.getIndex()}},created:function(){r.e("chunk-2d0d6f43").then(r.t.bind(null,"756e",7))},mounted:function(){var t=this;this.where.status=this.$route.params.types,this.current="",this.getIndex(),this.$scroll(this.$refs.container,(function(){!t.loading&&t.getIndex()}))},methods:{more:function(t){this.current===t?this.current="":this.current=t},modify:function(t,e){this.change=!0,this.orderInfo=t,this.status=e},changeclose:function(t){this.change=t,this.init()},getRefuse:function(t,e){var r=this;Object(s["l"])({orderNo:t,reason:e}).then((function(){r.change=!1,r.$dialog.success("已拒绝退款"),r.init()})).catch((function(t){r.$dialog.error(t.message)}))},savePrice:function(){var t=v(h().mark((function t(e){var r,n,i,o,a,l;return h().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r=this,n={},i=e.price,o=e.refundPrice,a=r.orderInfo.refundStatus,l=e.remark,0!=r.status||0!==a){t.next=15;break}return t.prev=2,t.next=5,this.$validator({price:[Object(c["f"])(c["f"].message("金额"))]}).validate({price:i});case 5:t.next=10;break;case 7:return t.prev=7,t.t0=t["catch"](2),t.abrupt("return",Object(u["b"])(t.t0));case 10:n.price=i,n.orderNo=e.orderId,Object(s["editPriceApi"])(n).then((function(){r.change=!1,r.$dialog.success("改价成功"),r.init()})).catch((function(t){r.$dialog.error(t.message)})),t.next=41;break;case 15:if(0!=r.status||1!==a){t.next=30;break}return t.prev=16,t.next=19,this.$validator({refundPrice:[Object(c["f"])(c["f"].message("金额")),Object(c["e"])(c["e"].message("金额"))]}).validate({refundPrice:o});case 19:t.next=24;break;case 21:return t.prev=21,t.t1=t["catch"](16),t.abrupt("return",Object(u["b"])(t.t1));case 24:n.amount=o,n.type=e.type,n.orderNo=e.orderId,Object(s["k"])(n).then((function(t){r.change=!1,r.$dialog.success("退款成功"),r.init()}),(function(t){r.change=!1,r.$dialog.error(t.message)})),t.next=41;break;case 30:return t.prev=30,t.next=33,this.$validator({remark:[Object(c["f"])(c["f"].message("备注"))]}).validate({remark:l});case 33:t.next=38;break;case 35:return t.prev=35,t.t2=t["catch"](30),t.abrupt("return",Object(u["b"])(t.t2));case 38:n.mark=l,n.orderNo=e.orderId,Object(s["i"])(n).then((function(t){r.change=!1,r.$dialog.success("提交成功"),r.init()}),(function(t){r.change=!1,r.$dialog.error(t.message)}));case 41:case"end":return t.stop()}}),t,this,[[2,7],[16,21],[30,35]])})));function e(e){return t.apply(this,arguments)}return e}(),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(s["f"])(this.where).then((function(e){t.loading=!1,t.loaded=e.list.length