mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-11-30 22:20:45 +00:00
2 lines
18 KiB
JavaScript
Vendored
2 lines
18 KiB
JavaScript
Vendored
(self["webpackChunkerp"]=self["webpackChunkerp"]||[]).push([[330],{363: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",loading:t.exportLoading,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:"申请类型"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("span",[t._v(t._s(t.APPLYTYPE[r.row.apply_type]))])]}}])}),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(8858),r(1318),r(3228),r(5522)),i=r(9998),o=r(7484),u=r.n(o),c={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:"(系统)关闭"},APPLYTYPE:{0:"仅退款",1:"退货退款"},exportLoading:!1}},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(){this.exportLoading=!0;let t={...this.filter,created_at_start:this.addTime?this.addTime[0]:"",created_at_end:this.addTime?this.addTime[1]:"",is_export:1};(0,s.cb)(t).then((t=>{console.log(t.data),this.downLoadXls(t.data),this.$message({type:"success",message:"导出成功!"}),this.exportLoading=!1})).catch((()=>{this.exportLoading=!1}))},downLoadXls(t){const e=t,r=new Blob([e]),n=(new Date).toLocaleDateString(),a=`售后单列表${n}.xlsx`;if("download"in document.createElement("a")){const t=document.createElement("a");t.download=a,t.style.display="none",t.href=URL.createObjectURL(r),document.body.appendChild(t),t.click(),URL.revokeObjectURL(t.href),document.body.removeChild(t)}else navigator.msSaveBlob(r,a)},objectToQueryString(t){return Object.keys(t).map((e=>encodeURIComponent(e)+"="+(t[e]?encodeURIComponent(t[e]):""))).join("&")}},mounted(){let t=u()().format("YYYY-MM-DD")+" 23:59:59",e=u()().subtract(30,"day").format("YYYY-MM-DD")+" 00:00:00";this.addTime=[e,t],this.getShopsList(),this.fetchList()}},l=c,d=r(1001),h=(0,d.Z)(l,n,a,!1,null,"58bd27bb",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",o="day",u="week",c="month",l="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,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])+"]"}},_=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},v={s:_,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),a=r%60;return(e<=0?"+":"-")+_(n,2,"0")+":"+_(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,c),s=r-a<0,i=e.clone().add(n+(s?-1:1),c);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:c,y:d,w:u,d:o,D:h,h:i,m:s,s:a,ms:n,Q:l}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},$="en",b={};b[$]=g;var y="$isDayjsObject",S=function(t){return t instanceof D||!(!t||!t[y])},w=function t(e,r,n){var a;if(!e)return $;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 o=e.name;b[o]=e,a=o}return!n&&a&&($=a),a||!n&&$},M=function(t,e){if(S(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new D(r)},k=v;k.l=w,k.i=S,k.w=function(t,e){return M(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var D=function(){function g(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[y]=!0}var _=g.prototype;return _.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(k.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()},_.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()},_.$utils=function(){return k},_.isValid=function(){return!(this.$d.toString()===f)},_.isSame=function(t,e){var r=M(t);return this.startOf(e)<=r&&r<=this.endOf(e)},_.isAfter=function(t,e){return M(t)<this.startOf(e)},_.isBefore=function(t,e){return this.endOf(e)<M(t)},_.$g=function(t,e,r){return k.u(t)?this[e]:this.set(r,t)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(t,e){var r=this,n=!!k.u(e)||e,l=k.p(t),f=function(t,e){var a=k.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return n?a:a.endOf(o)},p=function(t,e){return k.w(r.toDate()[t].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},m=this.$W,g=this.$M,_=this.$D,v="set"+(this.$u?"UTC":"");switch(l){case d:return n?f(1,0):f(31,11);case c:return n?f(1,g):f(0,g+1);case u:var $=this.$locale().weekStart||0,b=(m<$?m+7:m)-$;return f(n?_-b:_+(6-b),g);case o:case h:return p(v+"Hours",0);case i:return p(v+"Minutes",1);case s:return p(v+"Seconds",2);case a:return p(v+"Milliseconds",3);default:return this.clone()}},_.endOf=function(t){return this.startOf(t,!1)},_.$set=function(t,e){var r,u=k.p(t),l="set"+(this.$u?"UTC":""),f=(r={},r[o]=l+"Date",r[h]=l+"Date",r[c]=l+"Month",r[d]=l+"FullYear",r[i]=l+"Hours",r[s]=l+"Minutes",r[a]=l+"Seconds",r[n]=l+"Milliseconds",r)[u],p=u===o?this.$D+(e-this.$W):e;if(u===c||u===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},_.set=function(t,e){return this.clone().$set(t,e)},_.get=function(t){return this[k.p(t)]()},_.add=function(n,l){var h,f=this;n=Number(n);var p=k.p(l),m=function(t){var e=M(f);return k.w(e.date(e.date()+Math.round(t*n)),f)};if(p===c)return this.set(c,this.$M+n);if(p===d)return this.set(d,this.$y+n);if(p===o)return m(1);if(p===u)return m(7);var g=(h={},h[s]=e,h[i]=r,h[a]=t,h)[p]||1,_=this.$d.getTime()+n*g;return k.w(_,this)},_.subtract=function(t,e){return this.add(-1*t,e)},_.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=k.z(this),s=this.$H,i=this.$m,o=this.$M,u=r.weekdays,c=r.months,l=r.meridiem,d=function(t,r,a,s){return t&&(t[r]||t(e,n))||a[r].slice(0,s)},h=function(t){return k.s(s%12||12,t,"0")},p=l||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 k.s(e.$y,4,"0");case"M":return o+1;case"MM":return k.s(o+1,2,"0");case"MMM":return d(r.monthsShort,o,c,3);case"MMMM":return d(c,o);case"D":return e.$D;case"DD":return k.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return d(r.weekdaysMin,e.$W,u,2);case"ddd":return d(r.weekdaysShort,e.$W,u,3);case"dddd":return u[e.$W];case"H":return String(s);case"HH":return k.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 k.s(i,2,"0");case"s":return String(e.$s);case"ss":return k.s(e.$s,2,"0");case"SSS":return k.s(e.$ms,3,"0");case"Z":return a}return null}(t)||a.replace(":","")}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(n,h,f){var p,m=this,g=k.p(h),_=M(n),v=(_.utcOffset()-this.utcOffset())*e,$=this-_,b=function(){return k.m(m,_)};switch(g){case d:p=b()/12;break;case c:p=b();break;case l:p=b()/3;break;case u:p=($-v)/6048e5;break;case o:p=($-v)/864e5;break;case i:p=$/r;break;case s:p=$/e;break;case a:p=$/t;break;default:p=$}return f?p:k.a(p)},_.daysInMonth=function(){return this.endOf(c).$D},_.$locale=function(){return b[this.$L]},_.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=w(t,e,!0);return n&&(r.$L=n),r},_.clone=function(){return k.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),L=D.prototype;return M.prototype=L,[["$ms",n],["$s",a],["$m",s],["$H",i],["$W",o],["$M",c],["$y",d],["$D",h]].forEach((function(t){L[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),M.extend=function(t,e){return t.$i||(t(e,D,M),t.$i=!0),M},M.locale=w,M.isDayjs=S,M.unix=function(t){return M(1e3*t)},M.en=b[$],M.Ls=b,M.p={},M}))},5522:function(t,e,r){"use strict";r.d(e,{EB:function(){return l},Hf:function(){return d},Rh:function(){return s},YQ:function(){return o},_:function(){return h},cb:function(){return f},g4:function(){return i},kT:function(){return c},lU:function(){return u},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 o(t){return(0,n.Z)({url:"/api/plat/sync/"+t+"/stock/",method:"post"})}function u(t){return(0,n.Z)({url:"/api/plat_orders",method:"get",params:t})}function c(t){return(0,n.Z)({url:"/api/print/orders",method:"get",params:t})}function l(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})}function h(t){return(0,n.Z)({url:"/api/plat_orders",method:"get",params:t,responseType:"blob"})}function f(t){return(0,n.Z)({url:"/api/plat_after_sale_orders",method:"get",params:t,responseType:"blob"})}},9998:function(t,e,r){"use strict";r.d(e,{$i:function(){return s},OV:function(){return l},Vq:function(){return h},_d:function(){return c},dT:function(){return f},hA:function(){return a},nH:function(){return i},ow:function(){return u},rV:function(){return o},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 o(t){return(0,n.Z)({url:`/api/download/${t}/goods`,method:"get"})}function u(t,e){return(0,n.Z)({url:`/api/shops/${t}`,method:"patch",params:e})}function c(t){return(0,n.Z)({url:"/api/sync/shop/stock",method:"put",params:t})}function l(){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"})}},926:function(t,e,r){"use strict";var n=r(3043),a=r(9985),s=r(6648),i=r(4201),o=i("toStringTag"),u=Object,c="Arguments"===s(function(){return arguments}()),l=function(t,e){try{return t[e]}catch(r){}};t.exports=n?s:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=l(e=u(t),o))?r:c?s(e):"Object"===(n=s(e))&&a(e.callee)?"Arguments":n}},2148:function(t,e,r){"use strict";var n=r(8702),a=r(2560);t.exports=function(t,e,r){return r.get&&n(r.get,e,{getter:!0}),r.set&&n(r.set,e,{setter:!0}),a.f(t,e,r)}},3043:function(t,e,r){"use strict";var n=r(4201),a=n("toStringTag"),s={};s[a]="z",t.exports="[object z]"===String(s)},4327:function(t,e,r){"use strict";var n=r(926),a=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},1500:function(t){"use strict";var e=TypeError;t.exports=function(t,r){if(t<r)throw new e("Not enough arguments");return t}},8858:function(t,e,r){"use strict";var n=r(1880),a=r(8844),s=r(4327),i=r(1500),o=URLSearchParams,u=o.prototype,c=a(u.append),l=a(u["delete"]),d=a(u.forEach),h=a([].push),f=new o("a=1&a=2&b=3");f["delete"]("a",1),f["delete"]("b",void 0),f+""!=="a=2"&&n(u,"delete",(function(t){var e=arguments.length,r=e<2?void 0:arguments[1];if(e&&void 0===r)return l(this,t);var n=[];d(this,(function(t,e){h(n,{key:e,value:t})})),i(e,1);var a,o=s(t),u=s(r),f=0,p=0,m=!1,g=n.length;while(f<g)a=n[f++],m||a.key===o?(m=!0,l(this,a.key)):p++;while(p<g)a=n[p++],a.key===o&&a.value===u||c(this,a.key,a.value)}),{enumerable:!0,unsafe:!0})},1318:function(t,e,r){"use strict";var n=r(1880),a=r(8844),s=r(4327),i=r(1500),o=URLSearchParams,u=o.prototype,c=a(u.getAll),l=a(u.has),d=new o("a=1");!d.has("a",2)&&d.has("a",void 0)||n(u,"has",(function(t){var e=arguments.length,r=e<2?void 0:arguments[1];if(e&&void 0===r)return l(this,t);var n=c(this,t);i(e,1);var a=s(r),o=0;while(o<n.length)if(n[o++]===a)return!0;return!1}),{enumerable:!0,unsafe:!0})},3228:function(t,e,r){"use strict";var n=r(7697),a=r(8844),s=r(2148),i=URLSearchParams.prototype,o=a(i.forEach);n&&!("size"in i)&&s(i,"size",{get:function(){var t=0;return o(this,(function(){t++})),t},configurable:!0,enumerable:!0})}}]);
|
|
//# sourceMappingURL=330.72e3c62e.js.map
|