| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-24523e24","chunk-6f623600"],{"1a54":function(e,t,r){"use strict";r.r(t);r("4786");var n=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{title:"售后记录",visible:e.visible,width:"720px","append-to-body":""},on:{"update:visible":function(t){e.visible=t},close:e.close}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[t("el-table",{attrs:{data:e.list,size:"small",border:"","empty-text":"暂无售后记录"}},[t("el-table-column",{attrs:{prop:"addTime",label:"申请时间","min-width":"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.addTime?t.row.addTime.substr(0,16):"-")+" ")]}}])}),t("el-table-column",{attrs:{prop:"orderSn",label:"售后单号","min-width":"140"}}),t("el-table-column",{attrs:{label:"类型",width:"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(1===Number(t.row.refundType)?"退货并退款":"只退款")+" ")]}}])}),t("el-table-column",{attrs:{prop:"refundPrice",label:"退款金额",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("¥"+e._s(e.formatMoney(t.row.refundPrice||t.row.price)))]}}])}),t("el-table-column",{attrs:{label:"状态",width:"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.statusText(t.row.status))+" ")]}}])}),t("el-table-column",{attrs:{prop:"shopAdminName",label:"操作人",width:"100"}})],1)],1),t("span",{attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:e.close}},[e._v("关闭")])],1)])},i=[],o=(r("8197"),r("c41f"),r("0401"),{0:"待审核",1:"已通过",2:"已驳回",3:"已取消"}),l={name:"refund-record-dialog",data:function(){return{visible:!1,loading:!1,list:[],orderSn:""}},methods:{open:function(e){var t=this;e&&e.orderSn?(this.visible=!0,this.orderSn=e.orderSn,this.loading=!0,this.$service.refund.list({orderSn:e.orderSn,page:1,pageSize:50}).then((function(e){Array.isArray(e)?t.list=e:t.list=e&&(e.list||e.data)||[]})).finally((function(){t.loading=!1}))):this.$message.warning("缺少订单号")},close:function(){this.visible=!1,this.list=[]},statusText:function(e){return o[Number(e)]||"-"},formatMoney:function(e){var t=Number(e);return Number.isNaN(t)?"0.00":t.toFixed(2)}}},a=l,s=r("1805"),u=Object(s["a"])(a,n,i,!1,null,null,null);t["default"]=u.exports},4054:function(e,t,r){"use strict";var n=r("29fd"),i=r("bd47"),o=r("5635"),l=RangeError,a=Math.floor;e.exports=function(e){var t=i(o(this)),r="",s=n(e);if(s<0||s===1/0)throw new l("Wrong number of repetitions");for(;s>0;(s=a(s/2))&&(t+=t))s%2&&(r+=t);return r}},8197:function(e,t,r){"use strict";var n=r("04c2");n({target:"Number",stat:!0},{isNaN:function(e){return e!==e}})},c41f:function(e,t,r){"use strict";var n=r("04c2"),i=r("42ee"),o=r("29fd"),l=r("13dd0"),a=r("4054"),s=r("56ce"),u=RangeError,c=String,d=Math.floor,f=i(a),b=i("".slice),h=i(1.1.toFixed),p=function(e,t,r){return 0===t?r:t%2===1?p(e,t-1,r*e):p(e*e,t/2,r)},w=function(e){var t=0,r=e;while(r>=4096)t+=12,r/=4096;while(r>=2)t+=1,r/=2;return t},v=function(e,t,r){var n=-1,i=r;while(++n<6)i+=t*e[n],e[n]=i%1e7,i=d(i/1e7)},m=function(e,t){var r=6,n=0;while(--r>=0)n+=e[r],e[r]=d(n/t),n=n%t*1e7},g=function(e){var t=6,r="";while(--t>=0)if(""!==r||0===t||0!==e[t]){var n=c(e[t]);r=""===r?n:r+f("0",7-n.length)+n}return r},_=s((function(){return"0.000"!==h(8e-5,3)||"1"!==h(.9,0)||"1.25"!==h(1.255,2)||"1000000000000000128"!==h(0xde0b6b3a7640080,0)}))||!s((function(){h({})}));n({target:"Number",proto:!0,forced:_},{toFixed:function(e){var t,r,n,i,a=l(this),s=o(e),d=[0,0,0,0,0,0],h="",_="0";if(s<0||s>20)throw new u("Incorrect fraction digits");if(a!==a)return"NaN";if(a<=-1e21||a>=1e21)return c(a);if(a<0&&(h="-",a=-a),a>1e-21)if(t=w(a*p(2,69,1))-69,r=t<0?a*p(2,-t,1):a/p(2,t,1),r*=4503599627370496,t=52-t,t>0){v(d,0,r),n=s;while(n>=7)v(d,1e7,0),n-=7;v(d,p(10,n,1),0),n=t-1;while(n>=23)m(d,1<<23),n-=23;m(d,1<<n),v(d,1,1),m(d,2),_=g(d)}else v(d,0,r),v(d,1<<-t,0),_=g(d)+f("0",s);return s>0?(i=_.length,_=h+(i<=s?"0."+f("0",s-i)+_:b(_,0,i-s)+"."+b(_,i-s))):_=h+_,_}})}}]);
|