1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-ea392bac"],{"0fc4":function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"c",(function(){return o})),r.d(t,"b",(function(){return a}));var n=r("b6bd");function i(){return Object(n.a)({url:"erp/config",method:"get"})}function o(e){return Object(n.a)({url:"store/erp/shop",method:"get",params:e})}function a(e){return Object(n.a)({url:"product/import_erp_product",method:"post",data:e})}},"61b5":function(e,t,r){},"61f7":function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(r,!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length)));var r={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds()};for(var n in r)if(new RegExp("(".concat(n,")")).test(t)){var i=r[n]+"";t=t.replace(RegExp.$1,1===RegExp.$1.length?i:s(i))}return t}function s(e){return("00"+e).substr(e.length)}r.d(t,"a",(function(){return a})),r.d(t,"c",(function(){return u})),r.d(t,"b",(function(){return l}));var c={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"},d=function(e,t){e.message=function(e){return t.replace("%s",e||"")}};function u(e){return i({required:!0,message:e,type:"string"},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function l(e){return f.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,e)}d(u,"请输入%s"),d(l,"%s格式不正确");var f=Object.keys(c).reduce((function(e,t){return e[t]=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a="range"===t?{min:e[0],max:e[1]}:o({},t,e);return i({message:r.replace(":".concat(t),"range"===t?"".concat(e[0],"-").concat(e[1]):e),type:"string"},a,{},n)},d(e[t],c[t]),e}),{})},"8c8a":function(e,t,r){"use strict";var n=r("a34a"),i=r.n(n),o=r("61f7"),a=r("69ae"),s=r("42e3");function c(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}var d={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,t=(e=i.a.mark((function e(t){var r,n,c,d,u,l=this;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this,n={},c=t.price,d=t.refund_price,r.orderInfo.refund_status,u=t.remark,0!=r.status){e.next=19;break}return e.prev=2,e.next=5,this.$validator({price:[Object(o.c)(o.c.message("金额")),Object(o.b)(o.b.message("金额"))]}).validate({price:c});case 5:e.next=10;break;case 7:return e.prev=7,e.t0=e.catch(2),e.abrupt("return",Object(a.b)(e.t0));case 10:n.total_price=this.orderInfo.total_price,n.total_postage=this.orderInfo.total_price,n.pay_postage=this.orderInfo.pay_postage,n.gain_integral=this.orderInfo.gain_integral,n.pay_price=t.price,n.order_id=t.order_id,Object(s.f)(t.id,n).then((function(){l.$emit("closechange",!1),r.$dialog.success("改价成功")})).catch((function(e){r.$dialog.error(e.msg)})),e.next=49;break;case 19:if(2!=r.status){e.next=37;break}return e.prev=20,e.next=23,this.$validator({refund_price:[Object(o.c)(o.c.message("金额")),Object(o.b)(o.b.message("金额"))]}).validate({refund_price:d});case 23:e.next=28;break;case 25:return e.prev=25,e.t1=e.catch(20),e.abrupt("return",Object(a.b)(e.t1));case 28:if(n.refund_price=parseFloat(t.refund_price),n.type=t.type,!(n.refund_price<=0)){e.next=32;break}return e.abrupt("return",r.$dialog.error("请输入退款金额"));case 32:if(!(n.refund_price>parseFloat(r.orderInfo.pay_price))){e.next=34;break}return e.abrupt("return",r.$dialog.error("退款应小于支付金额"));case 34:Object(s.G)(t.id,n).then((function(e){l.$emit("closechange",!1),r.$dialog.success("操作成功")}),(function(e){l.$emit("closechange",!1),r.$dialog.error(e.msg)})),e.next=49;break;case 37:if(1!=r.status){e.next=49;break}return e.prev=38,e.next=41,this.$validator({remark:[Object(o.c)(o.c.message("备注"))]}).validate({remark:u});case 41:e.next=46;break;case 43:return e.prev=43,e.t2=e.catch(38),e.abrupt("return",Object(a.b)(e.t2));case 46:n.remark=u,n.order_id=t.order_id,Object(s.x)(n).then((function(e){l.$emit("closechange",!1),r.$dialog.success("提交成功")}),(function(e){l.$emit("closechange",!1),r.$dialog.error(e.msg)}));case 49:case"end":return e.stop()}}),e,this,[[2,7],[20,25],[38,43]])})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){c(o,n,i,a,s,"next",e)}function s(e){c(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),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})}}},u=(r("d088"),r("2877")),l=Object(u.a)(d,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("div",{staticClass:"priceChange",class:!0===e.change?"on":""},[r("div",{staticClass:"priceTitle"},[e._v("\n "+e._s(0===e.status?"一键改价":2===e.status?"立即退款":"订单备注")+"\n "),r("span",{staticClass:"iconfontYI icon-guanbi",on:{click:e.close}})]),0===e.status||2===e.status?r("div",{staticClass:"listChange"},[0===e.orderInfo.refund_status?r("div",{staticClass:"item acea-row row-between-wrapper"},[r("div",[e._v("商品总价(¥)")]),r("div",{staticClass:"money"},[e._v("\n "+e._s(e.orderInfo.total_price)),r("span",{staticClass:"iconfontYI icon-suozi"})])]):e._e(),0===e.orderInfo.refund_status?r("div",{staticClass:"item acea-row row-between-wrapper"},[r("div",[e._v("原始邮费(¥)")]),r("div",{staticClass:"money"},[e._v("\n "+e._s(e.orderInfo.pay_postage)),r("span",{staticClass:"iconfontYI icon-suozi"})])]):e._e(),0===e.orderInfo.refund_status?r("div",{staticClass:"item acea-row row-between-wrapper"},[r("div",[e._v("实际支付(¥)")]),r("div",{staticClass:"money"},[r("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?r("div",{staticClass:"item acea-row row-between-wrapper"},[r("div",[e._v("实际支付(¥)")]),r("div",{staticClass:"money"},[e._v("\n "+e._s(e.orderInfo.pay_price)),r("span",{staticClass:"iconfontYI icon-suozi"})])]):e._e(),1===e.orderInfo.refund_status?r("div",{staticClass:"item acea-row row-between-wrapper"},[r("div",[e._v("退款金额(¥)")]),r("div",{staticClass:"money"},[r("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()]):r("div",{staticClass:"listChange"},[r("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)}}})]),r("div",{staticClass:"modify",on:{click:e.save}},[e._v("\n "+e._s(0===e.status||1===e.status?"立即修改":"确认退款")+"\n ")]),2===e.status?r("div",{staticClass:"modify1",on:{click:e.refuse}},[e._v("\n 拒绝退款\n ")]):e._e()]),r("div",{directives:[{name:"show",rawName:"v-show",value:!0===e.change,expression:"change === true"}],staticClass:"maskModel",on:{touchmove:function(e){e.preventDefault()}}})])}),[],!1,null,"2be7127a",null);t.a=l.exports},afa3:function(e,t,r){e.exports=r.p+"view_admin/img/line.05bf1c84.jpg"},b311:function(e,t,r){var n;n=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=6)}([function(e,t){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var r=e.hasAttribute("readonly");r||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),r||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var n=window.getSelection(),i=document.createRange();i.selectNodeContents(e),n.removeAllRanges(),n.addRange(i),t=n.toString()}return t}},function(e,t){function r(){}r.prototype={on:function(e,t,r){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var n=this;function i(){n.off(e,i),t.apply(r,arguments)}return i._=t,this.on(e,i,r)},emit:function(e){for(var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),n=0,i=r.length;n<i;n++)r[n].fn.apply(r[n].ctx,t);return this},off:function(e,t){var r=this.e||(this.e={}),n=r[e],i=[];if(n&&t)for(var o=0,a=n.length;o<a;o++)n[o].fn!==t&&n[o].fn._!==t&&i.push(n[o]);return i.length?r[e]=i:delete r[e],this}},e.exports=r,e.exports.TinyEmitter=r},function(e,t,r){var n=r(3),i=r(4);e.exports=function(e,t,r){if(!e&&!t&&!r)throw new Error("Missing required arguments");if(!n.string(t))throw new TypeError("Second argument must be a String");if(!n.fn(r))throw new TypeError("Third argument must be a Function");if(n.node(e))return function(e,t,r){return e.addEventListener(t,r),{destroy:function(){e.removeEventListener(t,r)}}}(e,t,r);if(n.nodeList(e))return function(e,t,r){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,r)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,r)}))}}}(e,t,r);if(n.string(e))return function(e,t,r){return i(document.body,e,t,r)}(e,t,r);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var r=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===r||"[object HTMLCollection]"===r)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,r){var n=r(5);function i(e,t,r,i,o){var a=function(e,t,r,i){return function(r){r.delegateTarget=n(r.target,t),r.delegateTarget&&i.call(e,r)}}.apply(this,arguments);return e.addEventListener(r,a,o),{destroy:function(){e.removeEventListener(r,a,o)}}}e.exports=function(e,t,r,n,o){return"function"==typeof e.addEventListener?i.apply(null,arguments):"function"==typeof r?i.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return i(e,t,r,n,o)})))}},function(e,t){var r=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}e.exports=function(e,t){for(;e&&e.nodeType!==r;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},function(e,t,r){"use strict";r.r(t);var n=r(0),i=r.n(n),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}return a(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=r+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=i()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=i()(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":o(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}(),c=r(1),d=r.n(c),u=r(2),l=r.n(u),f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),v=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.resolveOptions(r),n.listenClick(e),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,d.a),p(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===f(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=l()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new s({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return _("action",e)}},{key:"defaultTarget",value:function(e){var t=_("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return _("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,r=!!document.queryCommandSupported;return t.forEach((function(e){r=r&&!!document.queryCommandSupported(e)})),r}}]),t}();function _(e,t){var r="data-clipboard-"+e;if(t.hasAttribute(r))return t.getAttribute(r)}t.default=v}]).default},e.exports=n()},cec3:function(e,t,r){},d088:function(e,t,r){"use strict";var n=r("cec3");r.n(n).a},f23d:function(e,t,r){"use strict";r.r(t);var n=[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"line"},[t("img",{attrs:{src:r("afa3")}})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"pictrue acea-row row-center-wrapper"},[t("span",{staticClass:"iconfont iconpc-youhuiquan"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"pictrue acea-row row-center-wrapper"},[t("span",{staticClass:"iconfont iconpc-jifen"})])}],i=r("8c8a"),o=r("b311"),a=r.n(o),s=r("42e3"),c=r("0fc4"),d=(r("61f7"),r("69ae"),r("d708")),u={name:"AdminOrder",components:{PriceChange:i.a},props:{},data:function(){return{roterPre:d.a.roterPre,routePreKF:d.a.routePreKF,openErp:!1,giveData:{give_integral:0,give_coupon:[]},giveCartInfo:[],order:!1,change:!1,orderId:"",orderInfo:{},status:0,title:"",payType:"",types:"",isReturen:0}},watch:{$route:function(e){void 0!=e&&(this.orderId=e,this.getIndex())}},mounted:function(){this.getErpConfig(),this.getIndex(),this.$nextTick((function(){var e=this,t=document.getElementsByClassName("copy-data");new a.a(t).on("success",(function(){e.$dialog.success("复制成功")}))}))},methods:{getErpConfig:function(){var e=this;Object(c.a)().then((function(t){e.openErp=t.data.open_erp})).catch((function(t){e.$Message.error(t.msg)}))},more:function(){this.order=!this.order},modify:function(e){1!=e&&openErp||(this.change=!0,this.status=e)},changeclose:function(e){this.change=e,this.getIndex()},closeChange:function(e){this.change=e},getIndex:function(){var e=this,t=this,r=this.$route.params.goname||0;this.isReturen=r,(1==r?Object(s.I)(this.$route.params.id):Object(s.v)(this.$route.params.id)).then((function(r){t.types=r.data.orderInfo._status._type,t.title=r.data.orderInfo._status._title,t.giveData.give_coupon=r.data.orderInfo.give_coupon,t.giveData.give_integral=r.data.orderInfo.give_integral;var n=[],i=[];r.data.orderInfo.cartInfo.forEach((function(e,t){1==e.is_gift?i.push(e):n.push(e)})),r.data.orderInfo.cartInfo=n,t.$set(t,"giveCartInfo",i),t.orderInfo=r.data.orderInfo,e.$nextTick((function(){var e=this,t=document.getElementsByClassName("copy-data");new a.a(t).on("success",(function(){e.$dialog.success("复制成功")}))}))}),(function(e){t.$dialog.error(e.msg)}))},offlinePay:function(){var e=this;openErp||setOfflinePay({orderId:this.orderInfo.orderId}).then((function(t){e.$dialog.success(t.msg),e.getIndex()}),(function(t){e.$dialog.error(t.msg)}))}}},l=(r("fe73"),r("2877")),f=Object(l.a)(u,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.orderInfo?r("div",{staticClass:"order-details pos-order-details"},[r("div",{staticClass:"header acea-row row-middle"},[r("div",{staticClass:"state"},[e._v(e._s(e.title))]),r("div",{staticClass:"data"},[r("div",{staticClass:"order-num"},[e._v("订单:"+e._s(e.orderInfo.order_id))]),r("div",[r("span",{staticClass:"time"},[e._v(e._s(e.orderInfo._add_time))])])])]),"looks"!=e.$route.params.goname?r("div",{staticClass:"remarks acea-row"},[r("span",{staticClass:"iconfontYI icon-zhinengkefu- mr10"}),r("span",{staticClass:"line1",staticStyle:{"text-align":"left",width:"6.2rem"},domProps:{textContent:e._s(e.orderInfo.remark?e.orderInfo.remark:"订单未备注,点击添加备注信息")},on:{click:function(t){return e.modify(1)}}})]):e._e(),e.orderInfo.real_name?r("div",{staticClass:"orderingUser acea-row row-middle"},[r("span",{staticClass:"iconfontYI icon-yonghu2"}),e._v(e._s(e.orderInfo.real_name)+"\n ")]):e._e(),0==e.orderInfo.product_type&&"fictitious"!=e.orderInfo.delivery_type?r("div",{staticClass:"address"},[r("div",{staticClass:"name"},[e._v("\n "+e._s(e.orderInfo.real_name)),r("span",{staticClass:"phone"},[e._v(e._s(e.orderInfo.user_phone))])]),r("div",[e._v(e._s(e.orderInfo.user_address))])]):e._e(),e._m(0),r("div",{staticClass:"pos-order-goods"},[e._l(e.orderInfo.cartInfo,(function(t,n){return r("div",{key:n,staticClass:"goods acea-row row-between-wrapper"},[r("div",{staticClass:"picTxt acea-row row-between-wrapper"},[r("div",{staticClass:"pictrue"},[r("img",{attrs:{src:t.productInfo.image}})]),r("div",{staticClass:"text"},[r("div",{staticClass:"info line2"},[t.is_gift?r("span",{staticClass:"font-color-red"},[e._v("[赠品]")]):e._e(),e._v("\n "+e._s(t.productInfo.store_name)+"\n ")]),r("div",{staticClass:"attr line1"},[e._v(e._s(t.productInfo.attrInfo.suk))])])]),r("div",{staticClass:"money"},[r("div",{staticClass:"x-money"},[e._v("¥"+e._s(t.productInfo.attrInfo.price))]),r("div",{staticClass:"num"},[e._v("x"+e._s(t.cart_num))]),r("div",{staticClass:"y-money"},[e._v("¥"+e._s(t.productInfo.ot_price))])])])})),r("div",{staticClass:"giveGoods"},[e._l(e.giveCartInfo,(function(t,n){return r("div",{key:n,staticClass:"item acea-row row-between-wrapper"},[r("div",{staticClass:"picTxt acea-row row-middle"},[r("div",{staticClass:"pictrue"},[t.productInfo.attrInfo?r("img",{attrs:{src:t.productInfo.attrInfo.image}}):r("img",{attrs:{src:t.productInfo.image}})]),r("div",{staticClass:"texts"},[r("div",{staticClass:"name line1"},[e._v("[赠品]"+e._s(t.productInfo.store_name))]),t.productInfo.attrInfo?r("div",{staticClass:"limit line1"},[e._v(e._s(t.productInfo.attrInfo.suk))]):e._e()])]),r("div",{staticClass:"num"},[e._v("x"+e._s(t.cart_num))])])})),e._l(e.giveData.give_coupon,(function(t,n){return e.giveData.give_coupon.length?r("div",{key:n,staticClass:"item acea-row row-between-wrapper"},[r("div",{staticClass:"picTxt acea-row row-middle"},[e._m(1,!0),r("div",{staticClass:"texts"},[r("div",{staticClass:"line1"},[e._v("[赠品]"+e._s(t.coupon_title))])])])]):e._e()})),e.giveData.give_integral>0?r("div",{staticClass:"item acea-row row-between-wrapper"},[r("div",{staticClass:"picTxt acea-row row-middle"},[e._m(2),r("div",{staticClass:"texts"},[r("div",{staticClass:"line1"},[e._v("[赠品]"+e._s(e.giveData.give_integral)+"积分")])])])]):e._e()],2)],2),r("div",{staticClass:"public-total"},[e._v("\n 共"+e._s(e.orderInfo.cart_num)+"件商品,应支付\n "),r("span",{staticClass:"money"},[e._v("¥"+e._s(e.orderInfo.pay_price))]),e._v(" ( 邮费 ¥"+e._s(e.orderInfo.pay_postage)+"\n )\n ")]),"fictitious"==e.orderInfo.delivery_type&&1!=e.orderInfo.product_type?r("div",{staticClass:"wrapper"},[e.orderInfo.fictitious_content?r("div",{staticClass:"item acea-row row-between"},[r("div",[e._v("虚拟备注:")]),r("div",{staticClass:"conter"},[e._v(e._s(e.orderInfo.fictitious_content))])]):e._e()]):e._e(),e.orderInfo.virtual_info&&1==e.orderInfo.product_type?r("div",{staticClass:"wrapper"},[r("div",{staticClass:"item acea-row row-between"},[r("div",[e._v("卡密发货:")]),r("div",{staticClass:"conter"},[e._v(e._s(e.orderInfo.virtual_info))])])]):e._e(),e.orderInfo.custom_form&&e.orderInfo.custom_form.length?r("div",{staticClass:"wrapper",staticStyle:{"border-bottom":"1px solid #eee"}},e._l(e.orderInfo.custom_form,(function(t,n){return t.value?r("div",{key:n,staticClass:"item acea-row row-between"},[r("div",[e._v(e._s(t.titleConfig.value)+":")]),"dateranges"==t.name?r("div",{staticClass:"conter"},[e._v(e._s(t.value[0]+"/"+t.value[1]))]):"uploadPicture"==t.name?r("div",{staticClass:"conter"},e._l(t.value,(function(e,t){return r("div",{key:t,staticClass:"pictrue"},[r("img",{attrs:{src:e}})])})),0):r("div",{staticClass:"conter"},[e._v(e._s(t.value))])]):e._e()})),0):e._e(),r("div",{staticClass:"wrapper"},[r("div",{staticClass:"item acea-row row-between"},[r("div",[e._v("订单编号:")]),r("div",{staticClass:"conter acea-row row-middle row-right"},[e._v("\n "+e._s(e.orderInfo.order_id)+"\n "),r("span",{staticClass:"copy copy-data",attrs:{"data-clipboard-text":e.orderInfo.order_id}},[e._v("复制")])])]),r("div",{staticClass:"item acea-row row-between"},[r("div",[e._v("支付时间:")]),r("div",{staticClass:"conter"},[e._v(e._s(e.orderInfo._pay_time))])]),r("div",{staticClass:"item acea-row row-between"},[r("div",[e._v("支付状态:")]),r("div",{staticClass:"conter"},[e._v("\n "+e._s(e.title)+"\n ")])]),r("div",{staticClass:"item acea-row row-between"},[r("div",[e._v("支付方式:")]),r("div",{staticClass:"conter"},[e._v(e._s(e.orderInfo._status?e.orderInfo._status._payType:""))])]),e.orderInfo.mark?r("div",{staticClass:"item acea-row row-between"},[1==e.isReturen?r("div",[e._v("退款留言:")]):r("div",[e._v("买家留言:")]),r("div",{staticClass:"conter"},[e._v(e._s(e.orderInfo.mark))])]):e._e(),e.orderInfo.refund_goods_explain?r("div",{staticClass:"item acea-row row-between"},[r("div",[e._v("退货留言:")]),r("div",{staticClass:"conter"},[e._v(e._s(e.orderInfo.refund_goods_explain))])]):e._e(),e.orderInfo.refund_img&&e.orderInfo.refund_img.length?r("div",{staticClass:"item acea-row row-between"},[r("div",[e._v("退款凭证:")]),r("div",{staticClass:"conter"},e._l(e.orderInfo.refund_img,(function(e,t){return r("div",{staticClass:"pictrue"},[r("img",{attrs:{src:e,mode:"aspectFill"}})])})),0)]):e._e(),e.orderInfo.refund_goods_img&&e.orderInfo.refund_goods_img.length?r("div",{staticClass:"item acea-row row-between"},[r("div",[e._v("退货凭证:")]),r("div",{staticClass:"conter"},e._l(e.orderInfo.refund_goods_img,(function(e,t){return r("div",{staticClass:"pictrue"},[r("img",{attrs:{src:e,mode:"aspectFill"}})])})),0)]):e._e()]),r("div",{staticClass:"wrapper"},[r("div",{staticClass:"item acea-row row-between"},[r("div",[e._v("商品总价:")]),r("div",{staticClass:"conter"},[e._v("¥"+e._s((parseFloat(e.orderInfo.total_price)-parseFloat(e.orderInfo.vip_true_price)).toFixed(2)))])]),e.orderInfo.vip_true_price>0?r("div",{staticClass:"item acea-row row-between"},[r("div",[e._v("会员商品优惠:")]),r("div",{staticClass:"conter"},[e._v("-¥"+e._s(parseFloat(e.orderInfo.vip_true_price).toFixed(2)))])]):e._e(),r("div",{staticClass:"item acea-row row-between"},[r("div",[e._v("优惠券抵扣:")]),r("div",{staticClass:"conter"},[e._v("-¥"+e._s(e.orderInfo.coupon_price))])]),r("div",{staticClass:"item acea-row row-between"},[r("div",[e._v("运费:")]),r("div",{staticClass:"conter"},[e._v("¥"+e._s(e.orderInfo.pay_postage))])]),e.orderInfo.use_integral>0?r("div",{staticClass:"item acea-row row-between"},[r("div",[e._v("积分抵扣:")]),r("div",{staticClass:"conter"},[e._v("-¥"+e._s(parseFloat(e.orderInfo.deduction_price).toFixed(2)))])]):e._e(),e._l(e.orderInfo.promotions_detail,(function(t,n){return parseFloat(t.promotions_price)?r("div",{key:n,staticClass:"item acea-row row-between"},[r("div",[e._v(e._s(t.title)+":")]),r("div",{staticClass:"conter"},[e._v("-¥"+e._s(parseFloat(t.promotions_price).toFixed(2)))])]):e._e()})),r("div",{staticClass:"actualPay acea-row row-right"},[e._v("\n 实付款:"),r("span",{staticClass:"money font-color-red"},[e._v("¥"+e._s(e.orderInfo.pay_price))])])],2),"express"===e.orderInfo.deliveryType?r("div",{staticClass:"wrapper"},[r("div",{staticClass:"item acea-row row-between"},[r("div",[e._v("配送方式:")]),"express"===e.orderInfo.delivery_type?r("div",{staticClass:"conter"},[e._v("\n 快递\n ")]):e._e(),"send"===e.orderInfo.delivery_type?r("div",{staticClass:"conter"},[e._v("送货")]):e._e()]),r("div",{staticClass:"item acea-row row-between"},["express"===e.orderInfo.delivery_type?r("div",[e._v("快递公司:")]):e._e(),"send"===e.orderInfo.delivery_type?r("div",[e._v("送货人:")]):e._e(),r("div",{staticClass:"conter"},[e._v(e._s(e.orderInfo.deliveryName))])]),r("div",{staticClass:"item acea-row row-between"},["express"===e.orderInfo.delivery_type?r("div",[e._v("快递单号:")]):e._e(),"send"===e.orderInfo.delivery_type?r("div",[e._v("送货人电话:")]):e._e(),r("div",{staticClass:"conter"},[e._v("\n "+e._s(e.orderInfo.delivery_id)),r("span",{staticClass:"copy copy-data",attrs:{"data-clipboard-text":e.orderInfo.delivery_id}},[e._v("复制")])])])]):e._e(),r("div",{staticStyle:{height:"1.2rem"}}),"looks"!=e.$route.params.goname?r("div",{staticClass:"footer acea-row row-right row-middle"},[r("div",{staticClass:"more"}),0===e.types?r("div",{staticClass:"bnt cancel",class:e.openErp?"on":"",on:{click:function(t){return e.modify(0)}}},[e._v("\n 一键改价\n ")]):e._e(),-1===e.types?r("div",{staticClass:"bnt cancel",class:e.openErp?"on":"",on:{click:function(t){return e.modify(2)}}},[e._v("\n 立即退款\n ")]):e._e(),r("div",{staticClass:"bnt cancel",on:{click:function(t){return e.modify(1)}}},[e._v("订单备注")]),"offline"===e.orderInfo.pay_type&&0===e.orderInfo.paid?r("div",{staticClass:"bnt cancel",class:e.openErp?"on":"",on:{click:e.offlinePay}},[e._v("\n 确认付款\n ")]):e._e(),1!==e.types||2===e.orderInfo.shipping_type||null!==e.orderInfo.pinkStatus&&2!==e.orderInfo.pinkStatus?e._e():r("router-link",{staticClass:"bnt delivery",class:e.openErp?"on":"",attrs:{disabled:e.openErp,to:{path:e.routePreKF+"/orderDelivery/"+e.orderInfo.id+"/"+e.orderInfo.order_id,query:{productType:e.orderInfo.product_type}}}},[e._v("去发货\n ")])],1):e._e(),r("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)}}})],1):e._e()}),n,!1,null,"54670246",null);t.default=f.exports},fe73:function(e,t,r){"use strict";var n=r("61b5");r.n(n).a}}]);
|