chunk-62ddedc4.13efa1c4.js 8.8 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-62ddedc4"],{"52f0":function(t,e,r){"use strict";r.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-list-content"},[e("x-crud",{staticClass:"liu-crud-wrap",on:{load:t.onLoad},scopedSlots:t._u([{key:"slot-tabs",fn:function(){return[e("el-tabs",{staticClass:"liu-tabs",attrs:{type:"border-card"},on:{"tab-click":t.handleClick},model:{value:t.tabIndex,callback:function(e){t.tabIndex=e},expression:"tabIndex"}},t._l(t.tabsData,(function(t,r){return e("el-tab-pane",{key:r,attrs:{label:""+t.text,name:t.key}})})),1)]},proxy:!0},{key:"table-column-refundType",fn:function({scope:e}){return[t._v(" "+t._s(1==e.row.refundType?"退货并退款":"仅退款")+" ")]}},{key:"table-column-cause",fn:function({scope:e}){return[t._v(" "+t._s(0==e.row.cause?"质量问题":1==e.row.cause?"多开错开":2==e.row.cause?"打包原因":3==e.row.cause?"物流原因":"其它")+" ")]}},{key:"table-column-book",fn:function({scope:e}){return[t._v(" "+t._s(0==e.row.book?"常规":"预订退款")+" ")]}},{key:"table-column-status",fn:function({scope:e}){return[t._v(" "+t._s(0==e.row.status?"待审核":1==e.row.status?"已通过":2==e.row.status?"已驳回":3==e.row.status?"已取消":"其他")+" ")]}},{key:"slot-export-order",fn:function(){return[e("el-button",{staticStyle:{"margin-left":"60px"},attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.exportData()}}},[t._v("导出记录")])]},proxy:!0},{key:"table-column-addTime",fn:function({scope:r}){return[e("span",[t._v(" "+t._s(r.row.addTime?r.row.addTime.substr(5,11):"")+" ")])]}},{key:"table-column-passTime",fn:function({scope:r}){return[e("span",[t._v(" "+t._s(r.row.passTime?r.row.passTime.substr(5,11):"")+" ")])]}},{key:"table-column-orderTime",fn:function({scope:r}){return[e("span",[t._v(" "+t._s(r.row.orderTime?r.row.orderTime.substr(5,11):"")+" ")])]}},{key:"slot-search-option",fn:function({scope:r}){return[e("el-select",{staticStyle:{width:"130px","margin-right":"10px"},attrs:{filterable:"",remote:"","reserve-keyword":"",placeholder:"搜索客户",clearable:"","remote-method":t.searchCustom,loading:t.loading,size:"mini"},on:{change:t.getCurrentCustom},model:{value:t.currentCustomName,callback:function(e){t.currentCustomName=e},expression:"currentCustomName"}},t._l(t.customList,(function(t){return e("el-option",{key:t.id,attrs:{label:""+t.name,value:t.id}})})),1),e("el-select",{staticStyle:{width:"110px","margin-left":"8px"},attrs:{size:"mini",placeholder:"操作人",clearable:!0},on:{change:t.getKdStaff},model:{value:t.currentStaffName,callback:function(e){t.currentStaffName=e},expression:"currentStaffName"}},t._l(t.staffList,(function(t){return e("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1),e("span",{staticStyle:{"margin-left":"9px","font-size":"18px"}},[t._v("订单日期:")]),e("el-date-picker",{staticClass:"custom-date-picker",staticStyle:{"margin-right":"8px"},attrs:{type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","value-format":"yyyy-MM-dd","end-placeholder":"结束日期","picker-options":t.pickerOptions,size:"mini"},on:{change:t.getSearchDate},model:{value:t.currentDateList,callback:function(e){t.currentDateList=e},expression:"currentDateList"}}),e("span",{staticStyle:{"margin-left":"9px","font-size":"18px"}},[t._v("售后申请日期:")]),e("el-date-picker",{staticClass:"custom-date-picker",staticStyle:{"margin-right":"8px"},attrs:{type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","value-format":"yyyy-MM-dd","end-placeholder":"结束日期","picker-options":t.pickerOptions,size:"mini"},on:{change:t.getSearchRefundDate},model:{value:t.currentRefundDateList,callback:function(e){t.currentRefundDateList=e},expression:"currentRefundDateList"}})]}},{key:"slot-total-amount",fn:function(){return[e("span",{staticStyle:{"font-size":"15px","font-weight":"bold","margin-left":"15px"}},[t._v("总金额:"+t._s(t.totalRefundPrice))])]},proxy:!0}])})],1)},s=[],a=r("5880"),n={components:{},data(){return{app:null,tabIndex:"-1",tabsData:[{text:"全部",key:"-1",val:0},{text:"待审",key:"0",val:0},{text:"通过",key:"1",val:0},{text:"驳回",key:"2",val:0},{text:"取消",key:"3",val:0}],modalData:{},drapShow:!1,name1:"",mobile1:"",confirmMobile1:"",fileUrl:"",currentStaffName:"",currentStaffId:0,staffList:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick(t){const e=new Date,r=new Date;r.setTime(r.getTime()-6048e5),t.$emit("pick",[r,e])}},{text:"最近一个月",onClick(t){const e=new Date,r=new Date;r.setTime(r.getTime()-2592e6),t.$emit("pick",[r,e])}},{text:"最近三个月",onClick(t){const e=new Date,r=new Date;r.setTime(r.getTime()-7776e6),t.$emit("pick",[r,e])}}]},startTime:"",endTime:"",searchTime:"",currentDateList:[],refundStartTime:"",refundEndTime:"",refundSearchTime:"",currentRefundDateList:[],status:"-1",totalRefundPrice:0,currentCustomName:"",currentCustomId:0,customList:[],loading:!1}},computed:{...Object(a["mapGetters"])(["token"])},created(){},mounted(){let t=this;t.$service.shopAdmin.getAllStaff().then(e=>{t.staffList=e.list})},methods:{getCurrentCustom(t){this.currentCustomId=t,this.refreshData()},searchCustom(t){let e=this;""!==t?(this.loading=!0,this.$service.custom.list({name:t}).then(t=>{e.loading=!1,e.customList=t.list})):this.customList=[]},changeSearch(){let t=this;null!=this.T&&clearTimeout(this.T),this.T=setTimeout((function(){t.refreshData()}),650)},getKdStaff(t){this.currentStaffId=t,this.refreshData()},getSearchDate(){this.$util.isEmpty(this.currentDateList)?(this.searchTime="",this.startTime="",this.endTime=""):(this.searchTime="custom",this.startTime=this.currentDateList[0],this.endTime=this.currentDateList[1]),this.refreshData()},getSearchRefundDate(){this.$util.isEmpty(this.currentRefundDateList)?(this.refundSearchTime="",this.refundStartTime="",this.refundEndTime=""):(this.refundSearchTime="custom",this.refundStartTime=this.currentRefundDateList[0],this.refundEndTime=this.currentRefundDateList[1]),this.refreshData()},refreshData(){this.app.refresh({status:this.tabIndex,searchTime:this.searchTime,startTime:this.startTime,endTime:this.endTime,refundSearchTime:this.refundSearchTime,refundStartTime:this.refundStartTime,refundEndTime:this.refundEndTime,shopAdminId:this.currentStaffId,status:this.status,customId:this.currentCustomId})},exportData(){this.$service.refund.getRefundList({status:this.tabIndex,searchTime:this.searchTime,startTime:this.startTime,endTime:this.endTime,refundSearchTime:this.refundSearchTime,refundStartTime:this.refundStartTime,refundEndTime:this.refundEndTime,shopAdminId:this.currentStaffId,status:this.status,pageSize:9999999,export:1,customId:this.currentCustomId}).then(t=>{t.file&&(window.location.href=t.file)})},handleClick(){this.status=this.tabIndex,this.refreshData()},onLoad({ctx:t,app:e}){this.app=e,this.$route.query.customId&&(this.currentCustomId=this.$route.query.customId,this.currentCustomName=this.$route.query.customName?this.$route.query.customName:"",this.searchTime=this.$route.query.searchTime?this.$route.query.searchTime:"",this.startTime=this.$route.query.startTime?this.$route.query.startTime:"",this.endTime=this.$route.query.endTime?this.$route.query.endTime:"",""!=this.startTime&&""!=this.endTime&&(this.currentDateList=[this.startTime,this.endTime]),this.$route.query.status&&(this.status=this.$route.query.status,this.tabIndex=this.status.toString())),t.service(this.$service.refund).set("table",{columns:[{prop:"id",label:"ID",align:"center",width:80},{prop:"orderSn",label:"退款单号",align:"center",width:140},{prop:"orderTime",label:"订单日期",align:"center",width:100},{prop:"relateOrderSn",label:"订单号",align:"center",width:140},{prop:"customName",label:"客户",align:"center",width:160},{prop:"refundPrice",label:"金额",align:"center",width:110},{prop:"status",label:"状态",align:"center",width:100},{prop:"refundType",label:"售后类型",align:"center",width:120},{prop:"book",label:"类型",align:"center",width:90},{prop:"shopAdminName",label:"操作人",align:"center",width:110},{prop:"cause",label:"售后原因",align:"center",width:100},{prop:"addTime",label:"申请日期",align:"center",width:100},{prop:"passTime",label:"通过日期",align:"center",width:100},{prop:"remark",label:"备注",align:"center",width:100},{prop:"rejectReason",label:"驳回原因",align:"center",width:90}],op:{visible:!0,props:{width:90,align:"center",fixed:"right",label:"操作"},layout:[]}}).set("layout",[["slot-tabs"],["slot-search-option","flex1","slot-export-order"],["data-table"],["slot-total-amount","flex1","pagination"]]).on("refresh",async(t,{next:e})=>{let r=await e(t);this.totalRefundPrice=r.totalRefundPrice?parseFloat(r.totalRefundPrice):0}).done(),this.refreshData()}}},o=n,u=(r("a1dd"),r("1805")),c=Object(u["a"])(o,i,s,!1,null,"2601ce61",null);e["default"]=c.exports},a1dd:function(t,e,r){"use strict";r("c500")},c500:function(t,e,r){}}]);