| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-426ffbbc"],{"2c3e":function(e,t,r){"use strict";var n=r("83ab"),a=r("9f7f").MISSED_STICKY,i=r("c6b6"),s=r("edd0"),c=r("69f3").get,o=RegExp.prototype,u=TypeError;n&&a&&s(o,"sticky",{configurable:!0,get:function(){if(this!==o){if("RegExp"===i(this))return!!c(this).sticky;throw new u("Incompatible receiver, RegExp required")}}})},"3c356":function(e,t,r){},"44da":function(e,t,r){"use strict";r("3c356")},"4d63":function(e,t,r){"use strict";var n=r("83ab"),a=r("da84"),i=r("e330"),s=r("94ca"),c=r("7156"),o=r("9112"),u=r("241c").f,d=r("3a9b"),p=r("44e7"),f=r("577e"),l=r("90d8"),g=r("9f7f"),v=r("aeb0"),h=r("cb2d"),m=r("d039"),_=r("1a2d"),b=r("69f3").enforce,w=r("2626"),x=r("b622"),y=r("fce3"),I=r("107c"),k=x("match"),C=a.RegExp,O=C.prototype,$=a.SyntaxError,j=i(O.exec),E=i("".charAt),R=i("".replace),S=i("".indexOf),P=i("".slice),Y=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,N=/a/g,T=(r=new C(M)!==M,g.MISSED_STICKY),A=g.UNSUPPORTED_Y;x=n&&(!r||T||y||I||m((function(){return N[k]=!1,C(M)!==M||C(N)===N||"/a/i"!==String(C(M,"i"))})));if(s("RegExp",x)){for(var D=function(e,t){var r,n,a=d(O,this),i=p(e),s=void 0===t,u=[],g=e;if(!a&&i&&s&&e.constructor===D)return e;if((i||d(O,e))&&(e=e.source,s)&&(t=l(g)),e=void 0===e?"":f(e),t=void 0===t?"":f(t),g=e,i=t=y&&"dotAll"in M&&(r=!!t&&-1<S(t,"s"))?R(t,/s/g,""):t,T&&"sticky"in M&&(n=!!t&&-1<S(t,"y"))&&A&&(t=R(t,/y/g,"")),I&&(e=(s=function(e){for(var t,r=e.length,n=0,a="",i=[],s={},c=!1,o=!1,u=0,d="";n<=r;n++){if("\\"===(t=E(e,n)))t+=E(e,++n);else if("]"===t)c=!1;else if(!c)switch(!0){case"["===t:c=!0;break;case"("===t:j(Y,P(e,n+1))&&(n+=2,o=!0),a+=t,u++;continue;case">"===t&&o:if(""===d||_(s,d))throw new $("Invalid capture group name");s[d]=!0,o=!(i[i.length]=[d,u]),d="";continue}o?d+=t:a+=t}return[a,i]}(e))[0],u=s[1]),s=c(C(e,t),a?this:O,D),(r||n||u.length)&&(t=b(s),r&&(t.dotAll=!0,t.raw=D(function(e){for(var t,r=e.length,n=0,a="",i=!1;n<=r;n++)"\\"===(t=E(e,n))?a+=t+E(e,++n):i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),a+=t):a+="[\\s\\S]";return a}(e),i)),n&&(t.sticky=!0),u.length)&&(t.groups=u),e!==g)try{o(s,"source",""===g?"(?:)":g)}catch(e){}return s},q=u(C),z=0;q.length>z;)v(D,C,q[z++]);(O.constructor=D).prototype=O,h(a,"RegExp",D,{constructor:!0})}w("RegExp")},"61f7":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 u}));var n=r("ade3"),a=r("5530");function i(e,t){/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length)));var r,n,a={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds()};for(r in a)new RegExp("(".concat(r,")")).test(t)&&(n=a[r]+"",t=t.replace(RegExp.$1,1===RegExp.$1.length?n:("00"+n).substr(n.length)));return t}r("ac1f"),r("00b4"),r("5319"),r("4d63"),r("c607"),r("2c3e"),r("25f0"),r("498a"),r("d3b7"),r("13d5"),r("b64b"),r("99af");var s={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"};function c(e,t){e.message=function(e){return t.replace("%s",e||"")}}function o(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Object(a.a)({required:!0,message:e,type:"string"},t)}function u(e){return d.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,e)}c(o,"请输入%s"),c(u,"%s格式不正确");var d=Object.keys(s).reduce((function(e,t){return e[t]=function(e){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},s="range"===t?{min:e[0],max:e[1]}:Object(n.a)({},t,e);return Object(a.a)(Object(a.a)({message:r.replace(":".concat(t),"range"===t?"".concat(e[0],"-").concat(e[1]):e),type:"string"},s),i)},c(e[t],s[t]),e}),{})},"8c8a":function(e,t,r){"use strict";var n=r("c7eb"),a=r("1da1"),i=(r("a9e3"),r("61f7")),s=r("69ae"),c=r("42e3"),o={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(e){var t=this;return Object(a.a)(Object(n.a)().mark((function r(){var a,o,u,d,p,f;return Object(n.a)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=t,o={},u=e.price,d=e.refund_price,p=a.orderInfo.refund_status,f=e.remark,0==a.status&&0===p)return r.prev=2,r.next=5,t.$validator({price:[Object(i.c)(i.c.message("金额")),Object(i.b)(i.b.message("金额"))]}).validate({price:u});r.next=19;break;case 5:r.next=10;break;case 7:return r.prev=7,r.t0=r.catch(2),r.abrupt("return",Object(s.b)(r.t0));case 10:o.total_price=t.orderInfo.total_price,o.total_postage=t.orderInfo.total_price,o.pay_postage=t.orderInfo.pay_postage,o.gain_integral=t.orderInfo.gain_integral,o.pay_price=e.price,o.order_id=e.order_id,Object(c.f)(e.id,o).then((function(){t.$emit("closechange",!1),a.$dialog.success("改价成功")})).catch((function(e){a.$dialog.error(e.msg)})),r.next=45;break;case 19:if(0==a.status&&1===p)return r.prev=20,r.next=23,t.$validator({refund_price:[Object(i.c)(i.c.message("金额")),Object(i.b)(i.b.message("金额"))]}).validate({refund_price:d});r.next=34;break;case 23:r.next=28;break;case 25:return r.prev=25,r.t1=r.catch(20),r.abrupt("return",Object(s.b)(r.t1));case 28:o.price=e.refund_price,o.type=e.type,o.order_id=e.order_id,Object(c.w)(o).then((function(e){t.$emit("closechange",!1),a.$dialog.success("操作成功")}),(function(e){t.$emit("closechange",!1),a.$dialog.error(e.msg)})),r.next=45;break;case 34:return r.prev=34,r.next=37,t.$validator({remark:[Object(i.c)(i.c.message("备注"))]}).validate({remark:f});case 37:r.next=42;break;case 39:return r.prev=39,r.t2=r.catch(34),r.abrupt("return",Object(s.b)(r.t2));case 42:o.remark=f,o.order_id=e.order_id,Object(c.x)(o).then((function(e){t.$emit("closechange",!1),a.$dialog.success("提交成功")}),(function(e){t.$emit("closechange",!1),a.$dialog.error(e.msg)}));case 45:case"end":return r.stop()}}),r,null,[[2,7],[20,25],[34,39]])})))()},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})}}};r("44da"),r=r("2877"),r=Object(r.a)(o,(function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"priceChange",class:!0===e.change?"on":""},[t("div",{staticClass:"priceTitle"},[e._v("\n "+e._s(0===e.status?1===e.orderInfo.refund_status?"立即退款":"一键改价":"订单备注")+"\n "),t("span",{staticClass:"iconfontYI icon-guanbi",on:{click:e.close}})]),0===e.status?t("div",{staticClass:"listChange"},[0===e.orderInfo.refund_status?t("div",{staticClass:"item acea-row row-between-wrapper"},[t("div",[e._v("商品总价(¥)")]),t("div",{staticClass:"money"},[e._v(e._s(e.orderInfo.total_price)),t("span",{staticClass:"iconfontYI icon-suozi"})])]):e._e(),0===e.orderInfo.refund_status?t("div",{staticClass:"item acea-row row-between-wrapper"},[t("div",[e._v("原始邮费(¥)")]),t("div",{staticClass:"money"},[e._v(e._s(e.orderInfo.pay_postage)),t("span",{staticClass:"iconfontYI icon-suozi"})])]):e._e(),0===e.orderInfo.refund_status?t("div",{staticClass:"item acea-row row-between-wrapper"},[t("div",[e._v("实际支付(¥)")]),t("div",{staticClass:"money"},[t("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?t("div",{staticClass:"item acea-row row-between-wrapper"},[t("div",[e._v("实际支付(¥)")]),t("div",{staticClass:"money"},[e._v(e._s(e.orderInfo.pay_price)),t("span",{staticClass:"iconfontYI icon-suozi"})])]):e._e(),1===e.orderInfo.refund_status?t("div",{staticClass:"item acea-row row-between-wrapper"},[t("div",[e._v("退款金额(¥)")]),t("div",{staticClass:"money"},[t("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()]):t("div",{staticClass:"listChange"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.remark,expression:"remark"}],attrs:{placeholder:e.orderInfo.remark||"请填写备注信息...",maxlength:"100"},domProps:{value:e.remark},on:{input:function(t){t.target.composing||(e.remark=t.target.value)}}})]),t("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?t("div",{staticClass:"modify1",on:{click:e.refuse}},[e._v("拒绝退款")]):e._e()]),t("div",{directives:[{name:"show",rawName:"v-show",value:!0===e.change,expression:"change === true"}],staticClass:"maskModel",on:{touchmove:function(e){e.preventDefault()}}})])}),[],!1,null,"72963ce8",null);t.a=r.exports},c607:function(e,t,r){"use strict";var n=r("83ab"),a=r("fce3"),i=r("c6b6"),s=r("edd0"),c=r("69f3").get,o=RegExp.prototype,u=TypeError;n&&a&&s(o,"dotAll",{configurable:!0,get:function(){if(this!==o){if("RegExp"===i(this))return!!c(this).dotAll;throw new u("Incompatible receiver, RegExp required")}}})}}]);
|