chunk-d4bc29ce.b69a8ec4.js 8.1 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d4bc29ce"],{"34ca":function(e,t,i){"use strict";i("7d69")},"7d69":function(e,t,i){},aacd:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-list-content"},[t("x-crud",{staticClass:"liu-crud-wrap",on:{load:e.onLoad},scopedSlots:e._u([{key:"slot-tabs",fn:function(){return[t("el-tabs",{staticClass:"liu-tabs",attrs:{type:"border-card"},on:{"tab-click":e.handleClick},model:{value:e.tabIndex,callback:function(t){e.tabIndex=t},expression:"tabIndex"}},e._l(e.tabsData,(function(e,i){return t("el-tab-pane",{key:i,attrs:{label:""+e.text,name:e.key}})})),1)]},proxy:!0},{key:"table-column-refundType",fn:function({scope:t}){return[e._v(" "+e._s(1==t.row.refundType?"退货并退款":"仅退款")+" ")]}},{key:"table-column-status",fn:function({scope:t}){return[e._v(" "+e._s(0==t.row.status?"审核中":1==t.row.status?"已完成":"其它")+" ")]}},{key:"slot-export-order",fn:function(){return[t("el-button",{staticStyle:{"margin-left":"60px"},attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.exportData()}}},[e._v("导出记录")])]},proxy:!0},{key:"table-column-addTime",fn:function({scope:i}){return[t("span",[e._v(" "+e._s(i.row.addTime?i.row.addTime.substr(5,11):"")+" ")])]}},{key:"table-column-passTime",fn:function({scope:i}){return[t("span",[e._v(" "+e._s(i.row.passTime?i.row.passTime.substr(5,11):"")+" ")])]}},{key:"table-column-orderTime",fn:function({scope:i}){return[t("span",[e._v(" "+e._s(i.row.orderTime?i.row.orderTime.substr(5,11):"")+" ")])]}},{key:"slot-search-option",fn:function({scope:i}){return[t("el-select",{staticStyle:{width:"130px","margin-right":"10px"},attrs:{filterable:"",remote:"","reserve-keyword":"",placeholder:"搜索供货商",clearable:"","remote-method":e.searchGhs,loading:e.loading,size:"mini"},on:{change:e.getCurrentGhs},model:{value:e.currentGhsName,callback:function(t){e.currentGhsName=t},expression:"currentGhsName"}},e._l(e.ghsList,(function(e){return t("el-option",{key:e.id,attrs:{label:""+e.name,value:e.id}})})),1),t("el-select",{staticStyle:{width:"110px","margin-left":"8px"},attrs:{size:"mini",placeholder:"操作人",clearable:!0},on:{change:e.getKdStaff},model:{value:e.currentStaffName,callback:function(t){e.currentStaffName=t},expression:"currentStaffName"}},e._l(e.staffList,(function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),t("span",{staticStyle:{"margin-left":"9px","font-size":"16px"}},[e._v("采购单日期:")]),t("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":e.pickerOptions,size:"mini"},on:{change:e.getSearchDate},model:{value:e.currentDateList,callback:function(t){e.currentDateList=t},expression:"currentDateList"}}),t("span",{staticStyle:{"margin-left":"9px","font-size":"16px"}},[e._v("售后申请日:")]),t("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":e.pickerOptions,size:"mini"},on:{change:e.getSearchRefundDate},model:{value:e.currentRefundDateList,callback:function(t){e.currentRefundDateList=t},expression:"currentRefundDateList"}})]}},{key:"slot-total-amount",fn:function(){return[t("span",{staticStyle:{"font-size":"15px","font-weight":"bold","margin-left":"15px"}},[e._v("总金额:"+e._s(e.totalRefundPrice))])]},proxy:!0}])})],1)},s=[],a=i("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}],modalData:{},drapShow:!1,name1:"",mobile1:"",confirmMobile1:"",fileUrl:"",currentStaffName:"",currentStaffId:0,staffList:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick(e){const t=new Date,i=new Date;i.setTime(i.getTime()-6048e5),e.$emit("pick",[i,t])}},{text:"最近一个月",onClick(e){const t=new Date,i=new Date;i.setTime(i.getTime()-2592e6),e.$emit("pick",[i,t])}},{text:"最近三个月",onClick(e){const t=new Date,i=new Date;i.setTime(i.getTime()-7776e6),e.$emit("pick",[i,t])}}]},startTime:"",endTime:"",searchTime:"",currentDateList:[],refundStartTime:"",refundEndTime:"",refundSearchTime:"",currentRefundDateList:[],status:"-1",totalRefundPrice:0,currentGhsName:"",currentGhsId:0,ghsList:[],loading:!1}},computed:{...Object(a["mapGetters"])(["token"])},created(){},mounted(){let e=this;e.$service.shopAdmin.getAllStaff().then(t=>{e.staffList=t.list})},methods:{getCurrentGhs(e){this.currentGhsId=e,this.refreshData()},searchGhs(e){let t=this;""!==e?(this.loading=!0,this.$service.ghs.list({name:e}).then(e=>{t.loading=!1,t.ghsList=e.list})):this.ghsList=[]},getKdStaff(e){this.currentStaffId=e,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,ghsId:this.currentGhsId})},exportData(){this.$service.cgRefund.getList({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,ghsId:this.currentGhsId}).then(e=>{e.file&&(window.location.href=e.file)})},handleClick(){this.status=this.tabIndex,this.refreshData()},onLoad({ctx:e,app:t}){this.app=t,this.$route.query.ghsId&&(this.currentGhsId=this.$route.query.ghsId,this.currentGhsName=this.$route.query.ghsName?this.$route.query.ghsName:"",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())),e.service(this.$service.cgRefund).set("table",{columns:[{prop:"id",label:"ID",align:"center",width:80},{prop:"refundSn",label:"退款单号",align:"center",width:140},{prop:"orderTime",label:"采购单日期",align:"center",width:120},{prop:"relateOrderSn",label:"采购单号",align:"center",width:140},{prop:"ghsId",label:"供货商ID",align:"center",width:90},{prop:"ghsName",label:"供货商",align:"center",width:160},{prop:"refundPrice",label:"金额",align:"center",width:90},{prop:"status",label:"状态",align:"center",width:100},{prop:"refundType",label:"售后类型",align:"center",width:110},{prop:"shopAdminName",label:"操作人",align:"center",width:110},{prop:"addTime",label:"申请日期",align:"center",width:110},{prop:"passTime",label:"通过日期",align:"center",width:110},{prop:"remark",label:"备注",align:"center",width:150}],op:{visible:!0,props:{width:180,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(e,{next:t})=>{let i=await t(e);this.totalRefundPrice=i.totalRefundPrice?parseFloat(i.totalRefundPrice):0}).done(),this.refreshData()}}},c=n,l=(i("34ca"),i("1805")),o=Object(l["a"])(c,r,s,!1,null,"71c16cf4",null);t["default"]=o.exports}}]);