| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b9d39322"],{"00f3":function(t,e,i){"use strict";i("d085")},d085: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("div",{staticClass:"yj-total-wrap"},[e("div",{staticClass:"yj-total-nums"},[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",{style:t.numStyle(t.totalActPrice,!0)},[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)+")")]),Number(t.nextDayDeduct)>0?e("span",{staticStyle:{"font-size":"15px","font-weight":"bold","margin-left":"15px",color:"#e67e22"}},[t._v("隔天售后扣减:¥"+t._s(t.nextDayDeduct))]):t._e()]),e("div",{staticClass:"yj-total-tip"},[e("div",[t._v("金额已按售后扣减(隔天售后记在通过日,可为负;订单数不减)。")]),e("div",[t._v("纸箱/打包/运费仍按入库日剩余数量统计。")])])])]},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"},style:t.numStyle(i.row.tkPrice),on:{click:function(e){return e.stopPropagation(),t.getTkDetail(i.row)}}},[t._v(t._s(t.formatNum(i.row.tkPrice)))])]}},{key:"table-column-actPrice",fn:function({scope:i}){return[e("div",{style:t.numStyle(i.row.actPrice)},[t._v(t._s(t.formatNum(i.row.actPrice)))])]}}])})],1)},r=[],s=(i("b138"),i("5880")),o={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,nextDayDeduct:0,debt:"0"}},computed:{...Object(s["mapGetters"])(["shopInfo"])},methods:{formatNum(t){const e=parseFloat(t);return isNaN(e)?0:e},numStyle(t,e){const i=Number(t),a=!isNaN(i)&&i<0;return e?"font-size:15px;font-weight:bold;margin-left:15px;"+(a?"color:#e74c3c;":""):a?"color:#e74c3c;font-weight:bold;":""},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=this.formatNum(t.totalActPrice),this.totalOrderPrice=this.formatNum(t.totalOrderPrice),this.totalCarton=this.formatNum(t.totalCarton),this.totalPack=this.formatNum(t.totalPack),this.totalFreight=this.formatNum(t.totalFreight),this.totalTkPrice=this.formatNum(t.totalTkPrice),this.totalOnlyTkPrice=this.formatNum(t.totalOnlyTkPrice),this.totalNum=this.formatNum(t.totalNum),this.nextDayDeduct=this.formatNum(t.nextDayDeduct),{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})}}},n=o,l=(i("00f3"),i("1805")),c=Object(l["a"])(n,a,r,!1,null,"0551272c",null);e["default"]=c.exports}}]);
|