mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-12-01 06:30:49 +00:00
4 lines
12 KiB
JavaScript
Vendored
4 lines
12 KiB
JavaScript
Vendored
(self["webpackChunkerp"]=self["webpackChunkerp"]||[]).push([[467],{7467:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return d}});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:"店铺"},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("筛选")])],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:"门店id"},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:"申请类型"}}),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, jumper, sizes, total",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)],1)},a=[],s=n(5522),i=n(9998),o={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}))}))}},mounted(){this.fetchList(),this.getShopsList()}},l=o,u=n(1001),c=(0,u.Z)(l,r,a,!1,null,"7f7daa61",null),d=c.exports},4865:function(t,e,n){var r,a;
|
|
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
* @license MIT */(function(s,i){r=i,a="function"===typeof r?r.call(e,n,e,t):r,void 0===a||(t.exports=a)})(0,(function(){var t={version:"0.2.0"},e=t.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function n(t,e,n){return t<e?e:t>n?n:t}function r(t){return 100*(-1+t)}function a(t,n,a){var s;return s="translate3d"===e.positionUsing?{transform:"translate3d("+r(t)+"%,0,0)"}:"translate"===e.positionUsing?{transform:"translate("+r(t)+"%,0)"}:{"margin-left":r(t)+"%"},s.transition="all "+n+"ms "+a,s}t.configure=function(t){var n,r;for(n in t)r=t[n],void 0!==r&&t.hasOwnProperty(n)&&(e[n]=r);return this},t.status=null,t.set=function(r){var o=t.isStarted();r=n(r,e.minimum,1),t.status=1===r?null:r;var l=t.render(!o),u=l.querySelector(e.barSelector),c=e.speed,d=e.easing;return l.offsetWidth,s((function(n){""===e.positionUsing&&(e.positionUsing=t.getPositioningCSS()),i(u,a(r,c,d)),1===r?(i(l,{transition:"none",opacity:1}),l.offsetWidth,setTimeout((function(){i(l,{transition:"all "+c+"ms linear",opacity:0}),setTimeout((function(){t.remove(),n()}),c)}),c)):setTimeout(n,c)})),this},t.isStarted=function(){return"number"===typeof t.status},t.start=function(){t.status||t.set(0);var n=function(){setTimeout((function(){t.status&&(t.trickle(),n())}),e.trickleSpeed)};return e.trickle&&n(),this},t.done=function(e){return e||t.status?t.inc(.3+.5*Math.random()).set(1):this},t.inc=function(e){var r=t.status;return r?("number"!==typeof e&&(e=(1-r)*n(Math.random()*r,.1,.95)),r=n(r+e,0,.994),t.set(r)):t.start()},t.trickle=function(){return t.inc(Math.random()*e.trickleRate)},function(){var e=0,n=0;t.promise=function(r){return r&&"resolved"!==r.state()?(0===n&&t.start(),e++,n++,r.always((function(){n--,0===n?(e=0,t.done()):t.set((e-n)/e)})),this):this}}(),t.render=function(n){if(t.isRendered())return document.getElementById("nprogress");l(document.documentElement,"nprogress-busy");var a=document.createElement("div");a.id="nprogress",a.innerHTML=e.template;var s,o=a.querySelector(e.barSelector),u=n?"-100":r(t.status||0),c=document.querySelector(e.parent);return i(o,{transition:"all 0 linear",transform:"translate3d("+u+"%,0,0)"}),e.showSpinner||(s=a.querySelector(e.spinnerSelector),s&&d(s)),c!=document.body&&l(c,"nprogress-custom-parent"),c.appendChild(a),a},t.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(e.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&d(t)},t.isRendered=function(){return!!document.getElementById("nprogress")},t.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective"in t?"translate3d":e+"Transform"in t?"translate":"margin"};var s=function(){var t=[];function e(){var n=t.shift();n&&n(e)}return function(n){t.push(n),1==t.length&&e()}}(),i=function(){var t=["Webkit","O","Moz","ms"],e={};function n(t){return t.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(t,e){return e.toUpperCase()}))}function r(e){var n=document.body.style;if(e in n)return e;var r,a=t.length,s=e.charAt(0).toUpperCase()+e.slice(1);while(a--)if(r=t[a]+s,r in n)return r;return e}function a(t){return t=n(t),e[t]||(e[t]=r(t))}function s(t,e,n){e=a(e),t.style[e]=n}return function(t,e){var n,r,a=arguments;if(2==a.length)for(n in e)r=e[n],void 0!==r&&e.hasOwnProperty(n)&&s(t,n,r);else s(t,a[1],a[2])}}();function o(t,e){var n="string"==typeof t?t:c(t);return n.indexOf(" "+e+" ")>=0}function l(t,e){var n=c(t),r=n+e;o(n,e)||(t.className=r.substring(1))}function u(t,e){var n,r=c(t);o(t,e)&&(n=r.replace(" "+e+" "," "),t.className=n.substring(1,n.length-1))}function c(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function d(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return t}))},5522:function(t,e,n){"use strict";n.d(e,{EB:function(){return c},Hf:function(){return d},Rh:function(){return s},YQ:function(){return o},g4:function(){return i},kT:function(){return u},lU:function(){return l},mr:function(){return a}});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 l(t){return(0,r.Z)({url:"/api/plat_orders",method:"get",params:t})}function u(t){return(0,r.Z)({url:"/api/print/orders",method:"get",params:t})}function c(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})}},9998:function(t,e,n){"use strict";n.d(e,{$i:function(){return s},OV:function(){return c},Vq:function(){return p},_d:function(){return u},dT:function(){return f},hA:function(){return a},nH:function(){return i},ow:function(){return l},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 l(t,e){return(0,r.Z)({url:`/api/shops/${t}`,method:"patch",params:e})}function u(t){return(0,r.Z)({url:"/api/sync/shop/stock",method:"put",params:t})}function c(){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 p(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"})}},3695:function(t,e,n){"use strict";n.d(e,{LP:function(){return a},gy:function(){return s}});const r="admin_token";function a(){return localStorage.getItem("token")}function s(){return localStorage.removeItem(r)}},8430:function(t,e,n){"use strict";var r=n(9669),a=n.n(r),s=n(3695),i=n(4865),o=n.n(i),l=n(4720),u=a().create({timeout:36e4});u.interceptors.request.use((t=>(t.headers.Authorization="Bearer "+(0,s.LP)(),o().start(),t)),(t=>Promise.reject(t))),u.interceptors.response.use((t=>{o().done();const e=t.status;if(200===e||201===e)return t}),(t=>(o().done(),400===t.response.status&&(0,l.Message)({message:t.response.data.errorMessage,type:"error"}),500===t.response.status&&(0,l.Message)({message:t.response.data.message,type:"error"}),Promise.reject(t)))),e.Z=u}}]);
|
|
//# sourceMappingURL=467.4c948c00.js.map
|