| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-460697bf"],{1194:function(e,r,t){t("a770")},"2c3e":function(e,r,t){var n=t("83ab"),a=t("9f7f").MISSED_STICKY,i=t("c6b6"),c=t("edd0"),s=t("69f3").get,o=RegExp.prototype,d=TypeError;n&&a&&c(o,"sticky",{configurable:!0,get:function(){if(this!==o){if("RegExp"===i(this))return!!s(this).sticky;throw new d("Incompatible receiver, RegExp required")}}})},"4d63":function(e,r,t){var n=t("83ab"),a=t("cfe9"),i=t("e330"),c=t("94ca"),s=t("7156"),o=t("9112"),d=t("7c73"),u=t("241c").f,f=t("3a9b"),p=t("44e7"),l=t("577e"),g=t("90d8"),v=t("9f7f"),m=t("aeb0"),h=t("cb2d"),_=t("d039"),b=t("1a2d"),w=t("69f3").enforce,k=t("2626"),y=t("b622"),I=t("fce3"),x=t("107c"),C=y("match"),O=a.RegExp,$=O.prototype,j=a.SyntaxError,E=i($.exec),R=i("".charAt),S=i("".replace),N=i("".indexOf),P=i("".slice),Y=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,T=/a/g,A=(t=new O(M)!==M,v.MISSED_STICKY),D=v.UNSUPPORTED_Y;y=n&&(!t||A||I||x||_((function(){return T[C]=!1,O(M)!==M||O(T)===T||"/a/i"!==String(O(M,"i"))})));if(c("RegExp",y)){for(var q=function(e,r){var t,n,a=f($,this),i=p(e),c=void 0===r,u=[],v=e;if(!a&&i&&c&&e.constructor===q)return e;if((i||f($,e))&&(e=e.source,c)&&(r=g(v)),e=void 0===e?"":l(e),r=void 0===r?"":l(r),v=e,i=r=I&&"dotAll"in M&&(t=!!r&&-1<N(r,"s"))?S(r,/s/g,""):r,A&&"sticky"in M&&(n=!!r&&-1<N(r,"y"))&&D&&(r=S(r,/y/g,"")),x&&(e=(c=(e=>{for(var r,t=e.length,n=0,a="",i=[],c=d(null),s=!1,o=!1,u=0,f="";n<=t;n++){if("\\"===(r=R(e,n)))r+=R(e,++n);else if("]"===r)s=!1;else if(!s)switch(!0){case"["===r:s=!0;break;case"("===r:if(a+=r,"?:"===P(e,n+1,n+3))continue;E(Y,P(e,n+1))&&(n+=2,o=!0),u++;continue;case">"===r&&o:if(""===f||b(c,f))throw new j("Invalid capture group name");c[f]=!0,o=!(i[i.length]=[f,u]),f="";continue}o?f+=r:a+=r}return[a,i]})(e))[0],u=c[1]),c=s(O(e,r),a?this:$,q),(t||n||u.length)&&(r=w(c),t&&(r.dotAll=!0,r.raw=q((e=>{for(var r,t=e.length,n=0,a="",i=!1;n<=t;n++)"\\"===(r=R(e,n))?a+=r+R(e,++n):i||"."!==r?("["===r?i=!0:"]"===r&&(i=!1),a+=r):a+="[\\s\\S]";return a})(e),i)),n&&(r.sticky=!0),u.length)&&(r.groups=u),e!==v)try{o(c,"source",""===v?"(?:)":v)}catch(e){}return c},z=u(O),J=0;z.length>J;)m(q,O,z[J++]);($.constructor=q).prototype=$,h(a,"RegExp",q,{constructor:!0})}k("RegExp")},"61f7":function(e,r,t){t.d(r,"a",(function(){return i})),t.d(r,"c",(function(){return o})),t.d(r,"b",(function(){return d}));var n=t("ade3"),a=t("5530");function i(e,r){/(y+)/.test(r)&&(r=r.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length)));var t,n,a={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds()};for(t in a)new RegExp("(".concat(t,")")).test(r)&&(n=a[t]+"",r=r.replace(RegExp.$1,1===RegExp.$1.length?n:("00"+n).substr(n.length)));return r}t("99af"),t("13d5"),t("e9f5"),t("9485"),t("b64b"),t("d3b7"),t("4d63"),t("c607"),t("ac1f"),t("2c3e"),t("00b4"),t("25f0"),t("5319"),t("498a");var c={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"};function s(e,r){e.message=function(e){return r.replace("%s",e||"")}}function o(e){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Object(a.a)({required:!0,message:e,type:"string"},r)}function d(e){return u.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,e)}s(o,"请输入%s"),s(d,"%s格式不正确");var u=Object.keys(c).reduce((function(e,r){return e[r]=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},c="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"},c),i)},s(e[r],c[r]),e}),{})},"8c8a":function(e,r,t){var n=t("c14f"),a=t("1da1"),i=(t("a9e3"),t("61f7")),c=t("69ae"),s=t("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 r=this;return Object(a.a)(Object(n.a)().m((function t(){var a,o,d,u,f,p,l;return Object(n.a)().w((function(t){for(;;)switch(t.p=t.n){case 0:if(a=r,o={},p=e.price,d=e.refund_price,u=a.orderInfo.refund_status,f=e.remark,0==a.status&&0===u)return t.p=1,t.n=2,r.$validator({price:[Object(i.c)(i.c.message("金额")),Object(i.b)(i.b.message("金额"))]}).validate({price:p});t.n=5;break;case 2:t.n=4;break;case 3:return t.p=3,p=t.v,t.a(2,Object(c.b)(p));case 4:o.total_price=r.orderInfo.total_price,o.total_postage=r.orderInfo.total_price,o.pay_postage=r.orderInfo.pay_postage,o.gain_integral=r.orderInfo.gain_integral,o.pay_price=e.price,o.order_id=e.order_id,Object(s.f)(e.id,o).then((function(){r.$emit("closechange",!1),a.$dialog.success("改价成功")})).catch((function(e){a.$dialog.error(e.msg)})),t.n=14;break;case 5:if(0==a.status&&1===u)return t.p=6,t.n=7,r.$validator({refund_price:[Object(i.c)(i.c.message("金额")),Object(i.b)(i.b.message("金额"))]}).validate({refund_price:d});t.n=10;break;case 7:t.n=9;break;case 8:return t.p=8,l=t.v,t.a(2,Object(c.b)(l));case 9:o.price=e.refund_price,o.type=e.type,o.order_id=e.order_id,Object(s.w)(o).then((function(e){r.$emit("closechange",!1),a.$dialog.success("操作成功")}),(function(e){r.$emit("closechange",!1),a.$dialog.error(e.msg)})),t.n=14;break;case 10:return t.p=10,t.n=11,r.$validator({remark:[Object(i.c)(i.c.message("备注"))]}).validate({remark:f});case 11:t.n=13;break;case 12:return t.p=12,l=t.v,t.a(2,Object(c.b)(l));case 13:o.remark=f,o.order_id=e.order_id,Object(s.x)(o).then((function(e){r.$emit("closechange",!1),a.$dialog.success("提交成功")}),(function(e){r.$emit("closechange",!1),a.$dialog.error(e.msg)}));case 14:return t.a(2)}}),t,null,[[10,12],[6,8],[1,3]])})))()},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})}}};t("1194"),t=t("2877"),t=Object(t.a)(o,(function(){var e=this,r=e._self._c;return r("div",[r("div",{staticClass:"priceChange",class:!0===e.change?"on":""},[r("div",{staticClass:"priceTitle"},[e._v("\n "+e._s(0===e.status?1===e.orderInfo.refund_status?"立即退款":"一键改价":"订单备注")+"\n "),r("span",{directives:[{name:"db-click",rawName:"v-db-click"}],staticClass:"iconfontYI icon-guanbi",on:{click:e.close}})]),0===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(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(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(r){r.target.composing||(e.price=r.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(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(r){r.target.composing||(e.refund_price=r.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||"请填写备注信息...",maxlength:"100"},domProps:{value:e.remark},on:{input:function(r){r.target.composing||(e.remark=r.target.value)}}})]),r("div",{directives:[{name:"db-click",rawName:"v-db-click"}],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?r("div",{directives:[{name:"db-click",rawName:"v-db-click"}],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,"e20391c4",null);r.a=t.exports},a770:function(e,r,t){},c607:function(e,r,t){var n=t("83ab"),a=t("fce3"),i=t("c6b6"),c=t("edd0"),s=t("69f3").get,o=RegExp.prototype,d=TypeError;n&&a&&c(o,"dotAll",{configurable:!0,get:function(){if(this!==o){if("RegExp"===i(this))return!!s(this).dotAll;throw new d("Incompatible receiver, RegExp required")}}})}}]);
|