chunk-08676f4a.ebe54ee7.js 10.0 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-08676f4a"],{"2c3e":function(e,r,t){var n=t("da84"),a=t("83ab"),i=t("9f7f").MISSED_STICKY,s=t("c6b6"),c=t("edd0"),o=t("69f3").get,u=RegExp.prototype,d=n.TypeError;a&&i&&c(u,"sticky",{configurable:!0,get:function(){if(this!==u){if("RegExp"===s(this))return!!o(this).sticky;throw d("Incompatible receiver, RegExp required")}}})},"4d63":function(e,r,t){var n=t("83ab"),a=t("da84"),i=t("e330"),s=t("94ca"),c=t("7156"),o=t("9112"),u=t("241c").f,d=t("3a9b"),f=t("44e7"),p=t("577e"),l=t("90d8"),g=t("9f7f"),v=t("aeb0"),h=t("cb2d"),m=t("d039"),_=t("1a2d"),b=t("69f3").enforce,w=t("2626"),x=t("b622"),y=t("fce3"),I=t("107c"),k=x("match"),C=a.RegExp,$=C.prototype,E=a.SyntaxError,O=i($.exec),j=i("".charAt),R=i("".replace),S=i("".indexOf),P=i("".slice),Y=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,N=/a/g,T=new C(M)!==M,A=g.MISSED_STICKY,D=g.UNSUPPORTED_Y,q=n&&(!T||A||y||I||m((function(){return N[k]=!1,C(M)!=M||C(N)==N||"/a/i"!=C(M,"i")}))),z=function(e){for(var r,t=e.length,n=0,a="",i=!1;n<=t;n++)r=j(e,n),"\\"!==r?i||"."!==r?("["===r?i=!0:"]"===r&&(i=!1),a+=r):a+="[\\s\\S]":a+=r+j(e,++n);return a},J=function(e){for(var r,t=e.length,n=0,a="",i=[],s={},c=!1,o=!1,u=0,d="";n<=t;n++){if(r=j(e,n),"\\"===r)r+=j(e,++n);else if("]"===r)c=!1;else if(!c)switch(!0){case"["===r:c=!0;break;case"("===r:O(Y,P(e,n+1))&&(n+=2,o=!0),a+=r,u++;continue;case">"===r&&o:if(""===d||_(s,d))throw new E("Invalid capture group name");s[d]=!0,i[i.length]=[d,u],o=!1,d="";continue}o?d+=r:a+=r}return[a,i]};if(s("RegExp",q)){for(var K=function(e,r){var t,n,a,i,s,u,g=d($,this),v=f(e),h=void 0===r,m=[],_=e;if(!g&&v&&h&&e.constructor===K)return e;if((v||d($,e))&&(e=e.source,h&&(r=l(_))),e=void 0===e?"":p(e),r=void 0===r?"":p(r),_=e,y&&"dotAll"in M&&(n=!!r&&S(r,"s")>-1,n&&(r=R(r,/s/g,""))),t=r,A&&"sticky"in M&&(a=!!r&&S(r,"y")>-1,a&&D&&(r=R(r,/y/g,""))),I&&(i=J(e),e=i[0],m=i[1]),s=c(C(e,r),g?this:$,K),(n||a||m.length)&&(u=b(s),n&&(u.dotAll=!0,u.raw=K(z(e),t)),a&&(u.sticky=!0),m.length&&(u.groups=m)),e!==_)try{o(s,"source",""===_?"(?:)":_)}catch(w){}return s},U=u(C),B=0;U.length>B;)v(K,C,U[B++]);$.constructor=K,K.prototype=$,h(a,"RegExp",K,{constructor:!0})}w("RegExp")},"61f7":function(e,r,t){"use strict";t.d(r,"a",(function(){return i})),t.d(r,"c",(function(){return u})),t.d(r,"b",(function(){return d}));var n=t("fc11"),a=t("f3f3");t("ac1f"),t("00b4"),t("5319"),t("4d63"),t("c607"),t("2c3e"),t("25f0"),t("498a"),t("d3b7"),t("b64b"),t("99af");function i(e,r){/(y+)/.test(r)&&(r=r.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length)));var t={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds()};for(var n in t)if(new RegExp("(".concat(n,")")).test(r)){var a=t[n]+"";r=r.replace(RegExp.$1,1===RegExp.$1.length?a:s(a))}return r}function s(e){return("00"+e).substr(e.length)}var c={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"};var o=function(e,r){e.message=function(e){return r.replace("%s",e||"")}};function u(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(a["a"])({required:!0,message:e,type:"string"},r)}function d(e){return f.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,e)}o(u,"请输入%s"),o(d,"%s格式不正确");var f=Object.keys(c).reduce((function(e,r){return e[r]=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s="range"===r?{min:e[0],max:e[1]}:Object(n["a"])({},r,e);return Object(a["a"])(Object(a["a"])({message:t.replace(":".concat(r),"range"===r?"".concat(e[0],"-").concat(e[1]):e),type:"string"},s),i)},o(e[r],c[r]),e}),{})},"8c8a":function(e,r,t){"use strict";var n=function(){var e=this,r=e.$createElement,t=e._self._c||r;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(r){r.target.composing||(e.price=r.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(r){r.target.composing||(e.refund_price=r.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?e.orderInfo.remark:"请填写备注信息...",maxlength:"100"},domProps:{value:e.remark},on:{input:function(r){r.target.composing||(e.remark=r.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()}}})])},a=[],i=t("c964"),s=(t("96cf"),t("a9e3"),t("61f7")),c=t("69ae"),o=t("42e3"),u={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 r=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n,a,i,u,d,f;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=r,a={},i=e.price,u=e.refund_price,d=n.orderInfo.refund_status,f=e.remark,0!=n.status||0!==d){t.next=19;break}return t.prev=2,t.next=5,r.$validator({price:[Object(s["c"])(s["c"].message("金额")),Object(s["b"])(s["b"].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(c["b"])(t.t0));case 10:a.total_price=r.orderInfo.total_price,a.total_postage=r.orderInfo.total_price,a.pay_postage=r.orderInfo.pay_postage,a.gain_integral=r.orderInfo.gain_integral,a.pay_price=e.price,a.order_id=e.order_id,Object(o["f"])(e.id,a).then((function(){r.$emit("closechange",!1),n.$dialog.success("改价成功")})).catch((function(e){n.$dialog.error(e.msg)})),t.next=45;break;case 19:if(0!=n.status||1!==d){t.next=34;break}return t.prev=20,t.next=23,r.$validator({refund_price:[Object(s["c"])(s["c"].message("金额")),Object(s["b"])(s["b"].message("金额"))]}).validate({refund_price:u});case 23:t.next=28;break;case 25:return t.prev=25,t.t1=t["catch"](20),t.abrupt("return",Object(c["b"])(t.t1));case 28:a.price=e.refund_price,a.type=e.type,a.order_id=e.order_id,Object(o["w"])(a).then((function(e){r.$emit("closechange",!1),n.$dialog.success("操作成功")}),(function(e){r.$emit("closechange",!1),n.$dialog.error(e.msg)})),t.next=45;break;case 34:return t.prev=34,t.next=37,r.$validator({remark:[Object(s["c"])(s["c"].message("备注"))]}).validate({remark:f});case 37:t.next=42;break;case 39:return t.prev=39,t.t2=t["catch"](34),t.abrupt("return",Object(c["b"])(t.t2));case 42:a.remark=f,a.order_id=e.order_id,Object(o["x"])(a).then((function(e){r.$emit("closechange",!1),n.$dialog.success("提交成功")}),(function(e){r.$emit("closechange",!1),n.$dialog.error(e.msg)}));case 45:case"end":return t.stop()}}),t,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})}}},d=u,f=(t("92e4"),t("2877")),p=Object(f["a"])(d,n,a,!1,null,"72963ce8",null);r["a"]=p.exports},"92e4":function(e,r,t){"use strict";var n=t("b376"),a=t.n(n);a.a},b376:function(e,r,t){},c607:function(e,r,t){var n=t("da84"),a=t("83ab"),i=t("fce3"),s=t("c6b6"),c=t("edd0"),o=t("69f3").get,u=RegExp.prototype,d=n.TypeError;a&&i&&c(u,"dotAll",{configurable:!0,get:function(){if(this!==u){if("RegExp"===s(this))return!!o(this).dotAll;throw d("Incompatible receiver, RegExp required")}}})},edd0:function(e,r,t){var n=t("13d2"),a=t("9bf2");e.exports=function(e,r,t){return t.get&&n(t.get,r,{getter:!0}),t.set&&n(t.set,r,{setter:!0}),a.f(e,r,t)}}}]);