2 lines
14 KiB
JavaScript
Vendored
2 lines
14 KiB
JavaScript
Vendored
(self["webpackChunkerp"]=self["webpackChunkerp"]||[]).push([[67],{853:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return f}});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"pageBox"},[e("div",{staticClass:"cardBox"},[e("div",{staticClass:"searchBox"},[e("div",{staticClass:"row"},[e("span",[t._v("店铺:")]),e("el-select",{attrs:{placeholder:"店铺"},model:{value:t.filter.shop_id,callback:function(e){t.$set(t.filter,"shop_id",e)},expression:"filter.shop_id"}},t._l(t.shopsList,(function(t){return e("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),e("div",{staticClass:"row"},[e("span",[t._v("售后单状态:")]),e("el-select",{attrs:{placeholder:"请选择"},model:{value:t.filter.after_sales_status,callback:function(e){t.$set(t.filter,"after_sales_status",e)},expression:"filter.after_sales_status"}},t._l(t.statusList,(function(t){return e("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),e("div",{staticClass:"row"},[e("span",[t._v("订单编号:")]),e("el-input",{attrs:{clearable:""},model:{value:t.filter.order_sn,callback:function(e){t.$set(t.filter,"order_sn",e)},expression:"filter.order_sn"}})],1),e("div",{staticClass:"row"},[e("span",[t._v("售后单编号:")]),e("el-input",{attrs:{clearable:""},model:{value:t.filter.after_sales_biz_sn,callback:function(e){t.$set(t.filter,"after_sales_biz_sn",e)},expression:"filter.after_sales_biz_sn"}})],1),e("div",{staticClass:"row"},[e("span",[t._v("创建时间:")]),e("el-date-picker",{staticStyle:{width:"340px"},attrs:{type:"datetimerange","range-separator":"-","start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:t.addTime,callback:function(e){t.addTime=e},expression:"addTime"}})],1),e("div",{staticClass:"row"},[e("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.handleSearch}},[t._v("筛选")]),e("el-button",{attrs:{type:"warning",icon:"el-icon-download"},on:{click:t.handleExport}},[t._v("数据导出")])],1)])]),e("el-card",[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.afterList,border:""}},[e("el-table-column",{attrs:{prop:"after_sales_biz_sn",label:"售后单编号"}}),e("el-table-column",{attrs:{prop:"order_sn",label:"父订单编号"}}),e("el-table-column",{attrs:{label:"店铺"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("span",[t._v(t._s(t.Shops[r.row.shop_id]))])]}}])}),e("el-table-column",{attrs:{prop:"refund_amount",label:"退款金额"}}),e("el-table-column",{attrs:{prop:"refund_shipping_amount",label:"用户申请退运费金额"}}),e("el-table-column",{attrs:{prop:"reason",label:"退款原因"}}),e("el-table-column",{attrs:{prop:"description",label:"描述"}}),e("el-table-column",{attrs:{label:"退款图片",width:"220"},scopedSlots:t._u([{key:"default",fn:function(r){return[r.row.image_list?e("div",{staticClass:"imgBox"},t._l(r.row.image_list,(function(t,n){return e("el-image",{key:n,staticClass:"img",attrs:{src:t,"preview-src-list":r.row.image_list}})})),1):t._e()]}}])}),e("el-table-column",{attrs:{prop:"apply_type",label:"申请类型"}}),e("el-table-column",{attrs:{label:"售后单状态"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("span",[t._v(t._s(t.STATUS[r.row.after_sales_status]))])]}}])}),e("el-table-column",{attrs:{prop:"after_sale_created_at",label:"售后单创建时间"}})],1),e("div",{staticClass:"page-pagination"},[e("el-pagination",{attrs:{"current-page":t.page,"page-sizes":[10,20,50,100],"page-size":t.pageSize,layout:"prev, pager, next, sizes, total, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)],1)},a=[],s=r(5522),i=r(9998),u=r(7484),o=r.n(u),l={data(){return{loading:!1,page:1,pageSize:10,total:0,afterList:[],filter:{shop_id:"",after_sales_status:"",order_sn:"",after_sales_biz_sn:""},shopsList:[],Shops:{},addTime:[],statusList:[{id:0,name:"未发起售后"},{id:1,name:"退款中"},{id:2,name:"退款成功"},{id:3,name:"待处理"},{id:4,name:"拒绝退款"},{id:6,name:"待(顾客)退货"},{id:7,name:"待(团长)确认退货"},{id:8,name:"(顾客)撤销"},{id:9,name:"(系统)关闭"}],STATUS:{0:"未发起售后",1:"退款中",2:"退款成功",3:"待处理",4:"拒绝退款",6:"待(顾客)退货",7:"待(团长)确认退货",8:"(顾客)撤销",9:"(系统)关闭"}}},methods:{fetchList(){this.loading=!0;let t={page:this.page,per_page:this.pageSize,...this.filter,created_at_start:this.addTime?this.addTime[0]:"",created_at_end:this.addTime?this.addTime[1]:""};(0,s.Hf)(t).then((t=>{this.afterList=t.data.data,this.total=t.data.meta.total,this.loading=!1})).catch((()=>{this.loading=!1}))},handleSizeChange(t){this.page=1,this.pageSize=t,this.fetchList()},handleCurrentChange(t){this.page=t,this.fetchList()},handleSearch(){this.page=1,this.fetchList()},getShopsList(){let t={page:1,per_page:999};(0,i.nH)(t).then((t=>{this.shopsList=t.data.data,t.data.data.forEach((t=>{this.Shops[t.id]=t.name}))}))},handleExport(){let t={...this.filter,created_at_start:this.addTime?this.addTime[0]:"",created_at_end:this.addTime?this.addTime[1]:""};window.open("/api/plat_after_sale_orders?"+this.objectToQueryString(t))},objectToQueryString(t){return Object.keys(t).map((e=>encodeURIComponent(e)+"="+(t[e]?encodeURIComponent(t[e]):""))).join("&")}},mounted(){let t=o()().format("YYYY-MM-DD")+" 23:59:59",e=o()().subtract(30,"day").format("YYYY-MM-DD")+" 00:00:00";this.addTime=[e,t],this.getShopsList(),this.fetchList()}},c=l,d=r(1001),h=(0,d.Z)(c,n,a,!1,null,"326a4ffe",null),f=h.exports},7484:function(t){!function(e,r){t.exports=r()}(0,(function(){"use strict";var t=1e3,e=6e4,r=36e5,n="millisecond",a="second",s="minute",i="hour",u="day",o="week",l="month",c="quarter",d="year",h="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,_={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},g=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},$={s:g,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),a=r%60;return(e<=0?"+":"-")+g(n,2,"0")+":"+g(a,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),a=e.clone().add(n,l),s=r-a<0,i=e.clone().add(n+(s?-1:1),l);return+(-(n+(r-a)/(s?a-i:i-a))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:l,y:d,w:o,d:u,D:h,h:i,m:s,s:a,ms:n,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},v="en",b={};b[v]=_;var y="$isDayjsObject",S=function(t){return t instanceof k||!(!t||!t[y])},w=function t(e,r,n){var a;if(!e)return v;if("string"==typeof e){var s=e.toLowerCase();b[s]&&(a=s),r&&(b[s]=r,a=s);var i=e.split("-");if(!a&&i.length>1)return t(i[0])}else{var u=e.name;b[u]=e,a=u}return!n&&a&&(v=a),a||!n&&v},M=function(t,e){if(S(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new k(r)},D=$;D.l=w,D.i=S,D.w=function(t,e){return M(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var k=function(){function _(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[y]=!0}var g=_.prototype;return g.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(D.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(p);if(n){var a=n[2]-1||0,s=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)):new Date(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)}}return new Date(e)}(t),this.init()},g.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},g.$utils=function(){return D},g.isValid=function(){return!(this.$d.toString()===f)},g.isSame=function(t,e){var r=M(t);return this.startOf(e)<=r&&r<=this.endOf(e)},g.isAfter=function(t,e){return M(t)<this.startOf(e)},g.isBefore=function(t,e){return this.endOf(e)<M(t)},g.$g=function(t,e,r){return D.u(t)?this[e]:this.set(r,t)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(t,e){var r=this,n=!!D.u(e)||e,c=D.p(t),f=function(t,e){var a=D.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return n?a:a.endOf(u)},p=function(t,e){return D.w(r.toDate()[t].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},m=this.$W,_=this.$M,g=this.$D,$="set"+(this.$u?"UTC":"");switch(c){case d:return n?f(1,0):f(31,11);case l:return n?f(1,_):f(0,_+1);case o:var v=this.$locale().weekStart||0,b=(m<v?m+7:m)-v;return f(n?g-b:g+(6-b),_);case u:case h:return p($+"Hours",0);case i:return p($+"Minutes",1);case s:return p($+"Seconds",2);case a:return p($+"Milliseconds",3);default:return this.clone()}},g.endOf=function(t){return this.startOf(t,!1)},g.$set=function(t,e){var r,o=D.p(t),c="set"+(this.$u?"UTC":""),f=(r={},r[u]=c+"Date",r[h]=c+"Date",r[l]=c+"Month",r[d]=c+"FullYear",r[i]=c+"Hours",r[s]=c+"Minutes",r[a]=c+"Seconds",r[n]=c+"Milliseconds",r)[o],p=o===u?this.$D+(e-this.$W):e;if(o===l||o===d){var m=this.clone().set(h,1);m.$d[f](p),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](p);return this.init(),this},g.set=function(t,e){return this.clone().$set(t,e)},g.get=function(t){return this[D.p(t)]()},g.add=function(n,c){var h,f=this;n=Number(n);var p=D.p(c),m=function(t){var e=M(f);return D.w(e.date(e.date()+Math.round(t*n)),f)};if(p===l)return this.set(l,this.$M+n);if(p===d)return this.set(d,this.$y+n);if(p===u)return m(1);if(p===o)return m(7);var _=(h={},h[s]=e,h[i]=r,h[a]=t,h)[p]||1,g=this.$d.getTime()+n*_;return D.w(g,this)},g.subtract=function(t,e){return this.add(-1*t,e)},g.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||f;var n=t||"YYYY-MM-DDTHH:mm:ssZ",a=D.z(this),s=this.$H,i=this.$m,u=this.$M,o=r.weekdays,l=r.months,c=r.meridiem,d=function(t,r,a,s){return t&&(t[r]||t(e,n))||a[r].slice(0,s)},h=function(t){return D.s(s%12||12,t,"0")},p=c||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(m,(function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return D.s(e.$y,4,"0");case"M":return u+1;case"MM":return D.s(u+1,2,"0");case"MMM":return d(r.monthsShort,u,l,3);case"MMMM":return d(l,u);case"D":return e.$D;case"DD":return D.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return d(r.weekdaysMin,e.$W,o,2);case"ddd":return d(r.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(s);case"HH":return D.s(s,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return p(s,i,!0);case"A":return p(s,i,!1);case"m":return String(i);case"mm":return D.s(i,2,"0");case"s":return String(e.$s);case"ss":return D.s(e.$s,2,"0");case"SSS":return D.s(e.$ms,3,"0");case"Z":return a}return null}(t)||a.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,h,f){var p,m=this,_=D.p(h),g=M(n),$=(g.utcOffset()-this.utcOffset())*e,v=this-g,b=function(){return D.m(m,g)};switch(_){case d:p=b()/12;break;case l:p=b();break;case c:p=b()/3;break;case o:p=(v-$)/6048e5;break;case u:p=(v-$)/864e5;break;case i:p=v/r;break;case s:p=v/e;break;case a:p=v/t;break;default:p=v}return f?p:D.a(p)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return b[this.$L]},g.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=w(t,e,!0);return n&&(r.$L=n),r},g.clone=function(){return D.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},_}(),T=k.prototype;return M.prototype=T,[["$ms",n],["$s",a],["$m",s],["$H",i],["$W",u],["$M",l],["$y",d],["$D",h]].forEach((function(t){T[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),M.extend=function(t,e){return t.$i||(t(e,k,M),t.$i=!0),M},M.locale=w,M.isDayjs=S,M.unix=function(t){return M(1e3*t)},M.en=b[v],M.Ls=b,M.p={},M}))},5522:function(t,e,r){"use strict";r.d(e,{EB:function(){return c},Hf:function(){return d},Rh:function(){return s},YQ:function(){return u},g4:function(){return i},kT:function(){return l},lU:function(){return o},mr:function(){return a}});var n=r(8430);function a(t){return(0,n.Z)({url:"/api/plat_goods",method:"get",params:t})}function s(t,e){return(0,n.Z)({url:"/api/plat_goods/"+t,method:"patch",params:e})}function i(t){return(0,n.Z)({url:"/api/plat_goods/"+t,method:"delete"})}function u(t){return(0,n.Z)({url:"/api/plat/sync/"+t+"/stock/",method:"post"})}function o(t){return(0,n.Z)({url:"/api/plat_orders",method:"get",params:t})}function l(t){return(0,n.Z)({url:"/api/print/orders",method:"get",params:t})}function c(t){return(0,n.Z)({url:"/api/print/success",method:"put",params:t})}function d(t){return(0,n.Z)({url:"/api/plat_after_sale_orders",method:"get",params:t})}},9998:function(t,e,r){"use strict";r.d(e,{$i:function(){return s},OV:function(){return c},Vq:function(){return h},_d:function(){return l},dT:function(){return f},hA:function(){return a},nH:function(){return i},ow:function(){return o},rV:function(){return u},tA:function(){return d}});var n=r(8430);function a(){return(0,n.Z)({url:"/api/shop_platforms",method:"get"})}function s(t){return(0,n.Z)({url:"/api/shops",method:"post",data:t})}function i(t){return(0,n.Z)({url:"/api/shops",method:"get",params:t})}function u(t){return(0,n.Z)({url:`/api/download/${t}/goods`,method:"get"})}function o(t,e){return(0,n.Z)({url:`/api/shops/${t}`,method:"patch",params:e})}function l(t){return(0,n.Z)({url:"/api/sync/shop/stock",method:"put",params:t})}function c(){return(0,n.Z)({url:"/api/shop/ship",method:"get"})}function d(t,e){return(0,n.Z)({url:"/api/shop/ship/senders",method:"get",params:{shop_id:t,shop_ship_id:e}})}function h(t){return(0,n.Z)({url:"/api/shop/ship/senders",method:"post",params:t})}function f(t){return(0,n.Z)({url:"/api/order/reset",method:"get"})}}}]);
|
|
//# sourceMappingURL=67.159af9a1.js.map
|