mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-12-01 14:40:44 +00:00
2 lines
18 KiB
JavaScript
Vendored
2 lines
18 KiB
JavaScript
Vendored
(self["webpackChunkerp"]=self["webpackChunkerp"]||[]).push([[147],{8810:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return f}});var r=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:"店铺"},on:{change:function(e){return t.handleSearch()}},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:"请选择"},on:{change:function(e){return t.handleSearch()}},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:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleSearch.apply(null,arguments)}},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:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleSearch.apply(null,arguments)}},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"},on:{change:function(e){return t.handleSearch()}},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(n){return[e("span",[t._v(t._s(t.Shops[n.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(n){return[n.row.image_list?e("div",{staticClass:"imgBox"},t._l(n.row.image_list,(function(t,r){return e("el-image",{key:r,staticClass:"img",attrs:{src:t,"preview-src-list":n.row.image_list}})})),1):t._e()]}}])}),e("el-table-column",{attrs:{prop:"apply_type",label:"申请类型"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(t.APPLYTYPE[n.row.apply_type]))])]}}])}),e("el-table-column",{attrs:{label:"售后单状态"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(t.STATUS[n.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=(n(8858),n(1318),n(3228),n(5522)),i=n(9998),o=n(7484),u=n.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,n=new Blob([e]),r=(new Date).toLocaleDateString(),a=`售后单列表${r}.xlsx`;if("download"in document.createElement("a")){const t=document.createElement("a");t.download=a,t.style.display="none",t.href=URL.createObjectURL(n),document.body.appendChild(t),t.click(),URL.revokeObjectURL(t.href),document.body.removeChild(t)}else navigator.msSaveBlob(n,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=n(1001),h=(0,d.Z)(l,r,a,!1,null,"6c4b71cd",null),f=h.exports},7484:function(t){!function(e,n){t.exports=n()}(0,(function(){"use strict";var t=1e3,e=6e4,n=36e5,r="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"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},_=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:_,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),a=n%60;return(e<=0?"+":"-")+_(r,2,"0")+":"+_(a,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),a=e.clone().add(r,c),s=n-a<0,i=e.clone().add(r+(s?-1:1),c);return+(-(r+(n-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:r,Q:l}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},y="en",$={};$[y]=g;var b="$isDayjsObject",S=function(t){return t instanceof D||!(!t||!t[b])},w=function t(e,n,r){var a;if(!e)return y;if("string"==typeof e){var s=e.toLowerCase();$[s]&&(a=s),n&&($[s]=n,a=s);var i=e.split("-");if(!a&&i.length>1)return t(i[0])}else{var o=e.name;$[o]=e,a=o}return!r&&a&&(y=a),a||!r&&y},k=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new D(n)},M=v;M.l=w,M.i=S,M.w=function(t,e){return k(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[b]=!0}var _=g.prototype;return _.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(M.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(p);if(r){var a=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[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 M},_.isValid=function(){return!(this.$d.toString()===f)},_.isSame=function(t,e){var n=k(t);return this.startOf(e)<=n&&n<=this.endOf(e)},_.isAfter=function(t,e){return k(t)<this.startOf(e)},_.isBefore=function(t,e){return this.endOf(e)<k(t)},_.$g=function(t,e,n){return M.u(t)?this[e]:this.set(n,t)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(t,e){var n=this,r=!!M.u(e)||e,l=M.p(t),f=function(t,e){var a=M.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?a:a.endOf(o)},p=function(t,e){return M.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},m=this.$W,g=this.$M,_=this.$D,v="set"+(this.$u?"UTC":"");switch(l){case d:return r?f(1,0):f(31,11);case c:return r?f(1,g):f(0,g+1);case u:var y=this.$locale().weekStart||0,$=(m<y?m+7:m)-y;return f(r?_-$:_+(6-$),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 n,u=M.p(t),l="set"+(this.$u?"UTC":""),f=(n={},n[o]=l+"Date",n[h]=l+"Date",n[c]=l+"Month",n[d]=l+"FullYear",n[i]=l+"Hours",n[s]=l+"Minutes",n[a]=l+"Seconds",n[r]=l+"Milliseconds",n)[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[M.p(t)]()},_.add=function(r,l){var h,f=this;r=Number(r);var p=M.p(l),m=function(t){var e=k(f);return M.w(e.date(e.date()+Math.round(t*r)),f)};if(p===c)return this.set(c,this.$M+r);if(p===d)return this.set(d,this.$y+r);if(p===o)return m(1);if(p===u)return m(7);var g=(h={},h[s]=e,h[i]=n,h[a]=t,h)[p]||1,_=this.$d.getTime()+r*g;return M.w(_,this)},_.subtract=function(t,e){return this.add(-1*t,e)},_.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=t||"YYYY-MM-DDTHH:mm:ssZ",a=M.z(this),s=this.$H,i=this.$m,o=this.$M,u=n.weekdays,c=n.months,l=n.meridiem,d=function(t,n,a,s){return t&&(t[n]||t(e,r))||a[n].slice(0,s)},h=function(t){return M.s(s%12||12,t,"0")},p=l||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return M.s(e.$y,4,"0");case"M":return o+1;case"MM":return M.s(o+1,2,"0");case"MMM":return d(n.monthsShort,o,c,3);case"MMMM":return d(c,o);case"D":return e.$D;case"DD":return M.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return d(n.weekdaysMin,e.$W,u,2);case"ddd":return d(n.weekdaysShort,e.$W,u,3);case"dddd":return u[e.$W];case"H":return String(s);case"HH":return M.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 M.s(i,2,"0");case"s":return String(e.$s);case"ss":return M.s(e.$s,2,"0");case"SSS":return M.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(r,h,f){var p,m=this,g=M.p(h),_=k(r),v=(_.utcOffset()-this.utcOffset())*e,y=this-_,$=function(){return M.m(m,_)};switch(g){case d:p=$()/12;break;case c:p=$();break;case l:p=$()/3;break;case u:p=(y-v)/6048e5;break;case o:p=(y-v)/864e5;break;case i:p=y/n;break;case s:p=y/e;break;case a:p=y/t;break;default:p=y}return f?p:M.a(p)},_.daysInMonth=function(){return this.endOf(c).$D},_.$locale=function(){return $[this.$L]},_.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},_.clone=function(){return M.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 k.prototype=L,[["$ms",r],["$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])}})),k.extend=function(t,e){return t.$i||(t(e,D,k),t.$i=!0),k},k.locale=w,k.isDayjs=S,k.unix=function(t){return k(1e3*t)},k.en=$[y],k.Ls=$,k.p={},k}))},5522:function(t,e,n){"use strict";n.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},se:function(){return p}});var r=n(8430);function a(t){return(0,r.Z)({url:"/api/plat_goods",method:"get",params:t})}function s(t,e){return(0,r.Z)({url:"/api/plat_goods/"+t,method:"patch",params:e})}function i(t){return(0,r.Z)({url:"/api/plat_goods/"+t,method:"delete"})}function o(t){return(0,r.Z)({url:"/api/plat/sync/"+t+"/stock/",method:"post"})}function u(t){return(0,r.Z)({url:"/api/plat_orders",method:"get",params:t})}function c(t){return(0,r.Z)({url:"/api/print/orders",method:"get",params:t})}function l(t){return(0,r.Z)({url:"/api/print/success",method:"put",params:t})}function d(t){return(0,r.Z)({url:"/api/plat_after_sale_orders",method:"get",params:t})}function h(t){return(0,r.Z)({url:"/api/plat_orders",method:"get",params:t,responseType:"blob"})}function f(t){return(0,r.Z)({url:"/api/plat_after_sale_orders",method:"get",params:t,responseType:"blob"})}function p(t){return(0,r.Z)({url:"/api/print/orders",method:"get",params:t})}},9998:function(t,e,n){"use strict";n.d(e,{$i:function(){return s},C$:function(){return m},OV:function(){return l},Vq:function(){return h},_d:function(){return c},dT:function(){return f},hA:function(){return a},i$:function(){return p},nH:function(){return i},ow:function(){return u},rV:function(){return o},tA:function(){return d}});var r=n(8430);function a(){return(0,r.Z)({url:"/api/shop_platforms",method:"get"})}function s(t){return(0,r.Z)({url:"/api/shops",method:"post",data:t})}function i(t){return(0,r.Z)({url:"/api/shops",method:"get",params:t})}function o(t){return(0,r.Z)({url:`/api/download/${t}/goods`,method:"get"})}function u(t,e){return(0,r.Z)({url:`/api/shops/${t}`,method:"patch",params:e})}function c(t){return(0,r.Z)({url:"/api/sync/shop/stock",method:"put",params:t})}function l(){return(0,r.Z)({url:"/api/shop/ship",method:"get"})}function d(t,e){return(0,r.Z)({url:"/api/shop/ship/senders",method:"get",params:{shop_id:t,shop_ship_id:e}})}function h(t){return(0,r.Z)({url:"/api/shop/ship/senders",method:"post",params:t})}function f(t){return(0,r.Z)({url:"/api/order/reset",method:"get"})}function p(t){return(0,r.Z)({url:"/api/shop_sends",method:"get",params:t})}function m(t){return(0,r.Z)({url:"/api/shop_sends",method:"post",params:t})}},926:function(t,e,n){"use strict";var r=n(3043),a=n(9985),s=n(6648),i=n(4201),o=i("toStringTag"),u=Object,c="Arguments"===s(function(){return arguments}()),l=function(t,e){try{return t[e]}catch(n){}};t.exports=r?s:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=l(e=u(t),o))?n:c?s(e):"Object"===(r=s(e))&&a(e.callee)?"Arguments":r}},2148:function(t,e,n){"use strict";var r=n(8702),a=n(2560);t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),a.f(t,e,n)}},3043:function(t,e,n){"use strict";var r=n(4201),a=r("toStringTag"),s={};s[a]="z",t.exports="[object z]"===String(s)},4327:function(t,e,n){"use strict";var r=n(926),a=String;t.exports=function(t){if("Symbol"===r(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,n){if(t<n)throw new e("Not enough arguments");return t}},8858:function(t,e,n){"use strict";var r=n(1880),a=n(8844),s=n(4327),i=n(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"&&r(u,"delete",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return l(this,t);var r=[];d(this,(function(t,e){h(r,{key:e,value:t})})),i(e,1);var a,o=s(t),u=s(n),f=0,p=0,m=!1,g=r.length;while(f<g)a=r[f++],m||a.key===o?(m=!0,l(this,a.key)):p++;while(p<g)a=r[p++],a.key===o&&a.value===u||c(this,a.key,a.value)}),{enumerable:!0,unsafe:!0})},1318:function(t,e,n){"use strict";var r=n(1880),a=n(8844),s=n(4327),i=n(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)||r(u,"has",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return l(this,t);var r=c(this,t);i(e,1);var a=s(n),o=0;while(o<r.length)if(r[o++]===a)return!0;return!1}),{enumerable:!0,unsafe:!0})},3228:function(t,e,n){"use strict";var r=n(7697),a=n(8844),s=n(2148),i=URLSearchParams.prototype,o=a(i.forEach);r&&!("size"in i)&&s(i,"size",{get:function(){var t=0;return o(this,(function(){t++})),t},configurable:!0,enumerable:!0})}}]);
|
|
//# sourceMappingURL=147.34297e9a.js.map
|