| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5bb86f36"],{4844:function(t,e,i){"use strict";i("ce27")},ce27:function(t,e,i){},dd0f:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"shop-list"},[e("x-crud",{on:{load:t.onLoad},scopedSlots:t._u([{key:"slot-date-select",fn:function(){return[e("el-date-picker",{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"}})]},proxy:!0},{key:"slot-order-debt",fn:function({scope:i}){return[e("el-radio-group",{staticStyle:{"margin-right":"20px","padding-top":"6px","margin-left":"20px"},on:{change:t.changeDebt},model:{value:t.debt,callback:function(e){t.debt=e},expression:"debt"}},[e("el-radio",{attrs:{label:"0"}},[t._v("全部")]),e("el-radio",{attrs:{label:"1"}},[t._v("待结款")]),e("el-radio",{attrs:{label:"2"}},[t._v("已结款")])],1)]}},{key:"slot-total-amount",fn:function(){return[e("span",{staticStyle:{"font-size":"15px","font-weight":"bold"}},[t._v("订单数:"+t._s(t.totalNum))]),e("span",{staticStyle:{"font-size":"15px","font-weight":"bold","margin-left":"15px"}},[t._v("订单金额:"+t._s(t.totalOrderPrice))]),e("span",{staticStyle:{"font-size":"15px","font-weight":"bold","margin-left":"15px"}},[t._v("退款金额:"+t._s(t.totalTkPrice))]),e("span",{staticStyle:{"font-size":"15px","font-weight":"bold","margin-left":"15px"}},[t._v("(仅退款金额:"+t._s(t.totalOnlyTkPrice)+")")]),e("span",{staticStyle:{"font-size":"15px","font-weight":"bold","margin-left":"15px"}},[t._v("实际金额:"+t._s(t.totalActPrice))]),e("span",{staticStyle:{"font-size":"15px","font-weight":"bold","margin-left":"15px"}},[t._v("含(纸箱:"+t._s(t.totalCarton))]),e("span",{staticStyle:{"font-size":"15px","font-weight":"bold","margin-left":"15px"}},[t._v("打包费:"+t._s(t.totalPack))]),e("span",{staticStyle:{"font-size":"15px","font-weight":"bold","margin-left":"15px"}},[t._v("运费:"+t._s(t.totalFreight)+")")])]},proxy:!0},{key:"slot-export-data",fn:function(){return[e("el-button",{staticStyle:{"margin-left":"60px"},attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.exportDue()}}},[t._v("导出数据")])]},proxy:!0},{key:"slot-column-option",fn:function({scope:i}){return[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.goChange(i.row)}}},[t._v("查看明细")])]}},{key:"table-column-tkPrice",fn:function({scope:i}){return[e("div",{staticStyle:{cursor:"pointer"},on:{click:function(e){return e.stopPropagation(),t.getTkDetail(i.row)}}},[t._v(t._s(i.row.tkPrice?parseFloat(i.row.tkPrice):0))])]}}])})],1)},r=[],s=(i("f16c"),i("5880")),n={data(){return{crud:null,pickerOptions:{shortcuts:[{text:"最近一周",onClick(t){const e=new Date,i=new Date;i.setTime(i.getTime()-6048e5),t.$emit("pick",[i,e])}},{text:"最近一个月",onClick(t){const e=new Date,i=new Date;i.setTime(i.getTime()-2592e6),t.$emit("pick",[i,e])}},{text:"最近三个月",onClick(t){const e=new Date,i=new Date;i.setTime(i.getTime()-7776e6),t.$emit("pick",[i,e])}}]},currentDateList:"",startTime:"",endTime:"",searchTime:"",totalActPrice:0,totalOrderPrice:0,totalCarton:0,totalPack:0,totalFreight:0,totalTkPrice:0,totalOnlyTkPrice:0,totalNum:0,debt:"0"}},computed:{...Object(s["mapGetters"])(["shopInfo"])},methods:{getTkDetail(t){let e={ghsId:t.id,ghsName:t.name,searchTime:this.searchTime,startTime:this.startTime,endTime:this.endTime,status:1};this.$router.push({path:"/in/refund-list",query:e})},goChange(t){let e={};e.ghsName=t.name,e.startTime=this.startTime,e.endTime=this.endTime,e.searchTime=this.searchTime,e.status=4,this.$router.push({path:"/in/list",query:e})},exportDue(){this.$service.statCgGhs.getProfile({searchTime:this.searchTime,startTime:this.startTime,endTime:this.endTime,debt:this.debt,export:1}).then(t=>{t.file&&(window.location.href=t.file)})},onLoad({ctx:t,app:e}){this.app=e,t.service({page:()=>this.$service.statCgGhs.getProfile({searchTime:this.searchTime,startTime:this.startTime,endTime:this.endTime,debt:this.debt}).then(t=>(this.totalActPrice=t.totalActPrice?t.totalActPrice:0,this.totalOrderPrice=t.totalOrderPrice?t.totalOrderPrice:0,this.totalCarton=t.totalCarton?t.totalCarton:0,this.totalPack=t.totalPack?t.totalPack:0,this.totalFreight=t.totalFreight?t.totalFreight:0,this.totalTkPrice=t.totalTkPrice?t.totalTkPrice:0,this.totalOnlyTkPrice=t.totalOnlyTkPrice?t.totalOnlyTkPrice:0,this.totalNum=t.totalNum?t.totalNum:0,{list:t.list}))}).set("table",{columns:[{label:"ID",prop:"id",align:"center"},{label:"供货商",prop:"name",align:"center"},{label:"订单数",prop:"num",align:"center"},{label:"订单金额",prop:"orderPrice",align:"center"},{label:"退款金额",prop:"tkPrice",align:"center"},{label:"实际金额",prop:"actPrice",align:"center"},{label:"纸箱费",prop:"carton",align:"center"},{label:"打包费",prop:"pack",align:"center"},{label:"运费",prop:"freight",align:"center"}],op:{visible:!0,props:{width:250,align:"center",fixed:"right",label:"操作"},layout:["slot-column-option"]}}).set("layout",[["slot-date-select","slot-order-debt","flex1","slot-export-data"],["data-table"],["slot-total-amount","flex1"]]).done(),e.refresh()},getSearchDate(){this.searchTime="custom",this.startTime=this.currentDateList[0],this.endTime=this.currentDateList[1],this.app.refresh({searchTime:this.searchTime,startTime:this.startTime,endTime:this.endTime,debt:this.debt})},changeDebt(t){this.debt=t,this.app.refresh({searchTime:this.searchTime,startTime:this.startTime,endTime:this.endTime,debt:this.debt})}}},o=n,l=(i("4844"),i("1805")),c=Object(l["a"])(o,a,r,!1,null,"5ec73699",null);e["default"]=c.exports}}]);
|