chunk-2500a632.c258320b.js 7.0 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2500a632"],{"123a":function(t,e,a){"use strict";a.r(e);var i=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[t._v(" 账单时间:"),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:a}){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:"-1"}},[t._v("全部")]),e("el-radio",{attrs:{label:"1"}},[t._v("待结款")]),e("el-radio",{attrs:{label:"0"}},[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.totalCartonNum)+"个 ¥"+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:a}){return[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.goChange(a.row)}}},[t._v("查看明细")])]}},{key:"table-column-tkPrice",fn:function({scope:a}){return[e("div",{staticStyle:{cursor:"pointer"},style:t.numStyle(a.row.tkPrice),on:{click:function(e){return e.stopPropagation(),t.getTkDetail(a.row)}}},[t._v(t._s(t.formatNum(a.row.tkPrice)))])]}},{key:"table-column-actPrice",fn:function({scope:a}){return[e("div",{style:t.numStyle(a.row.actPrice)},[t._v(t._s(t.formatNum(a.row.actPrice)))])]}}])})],1)},r=[],o=(a("b138"),a("5880")),n={data(){return{crud:null,pickerOptions:{shortcuts:[{text:"最近一周",onClick(t){const e=new Date,a=new Date;a.setTime(a.getTime()-6048e5),t.$emit("pick",[a,e])}},{text:"最近一个月",onClick(t){const e=new Date,a=new Date;a.setTime(a.getTime()-2592e6),t.$emit("pick",[a,e])}},{text:"最近三个月",onClick(t){const e=new Date,a=new Date;a.setTime(a.getTime()-7776e6),t.$emit("pick",[a,e])}}]},currentDateList:"",startTime:"",endTime:"",searchTime:"",totalActPrice:0,totalOrderPrice:0,totalCarton:0,totalCartonNum:0,totalPack:0,totalFreight:0,totalTkPrice:0,totalOnlyTkPrice:0,totalNum:0,nextDayDeduct:0,debt:"-1"}},computed:{...Object(o["mapGetters"])(["shopInfo"])},methods:{formatNum(t){const e=parseFloat(t);return isNaN(e)?0:e},numStyle(t,e){const a=Number(t),i=!isNaN(a)&&a<0;return e?"font-size:15px;font-weight:bold;margin-left:15px;"+(i?"color:#e74c3c;":""):i?"color:#e74c3c;font-weight:bold;":""},goChange(t){let e={};e.customName=t.name,e.startTime=this.startTime,e.endTime=this.endTime,e.searchTime=this.searchTime,this.$router.push({path:"/order/list",query:e})},getTkDetail(t){let e={customId:t.id,customName:t.name,searchTime:this.searchTime,startTime:this.startTime,endTime:this.endTime,status:1};this.$router.push({path:"/order/refund-list",query:e})},exportDue(){this.$service.order.getYj({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.order.getYj({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.totalCartonNum=t.totalCartonNum?t.totalCartonNum: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,this.nextDayDeduct=t.nextDayDeduct?t.nextDayDeduct:0,{list:t.list}))}).set("table",{columns:[{label:"ID",prop:"id",align:"center"},{label:"客户",prop:"name",align:"center"},{label:"手机号",prop:"mobile",align:"center"},{label:"订单数",prop:"num",align:"center"},{label:"订单金额",prop:"orderPrice",align:"center"},{label:"退款金额",prop:"tkPrice",align:"center"},{label:"实际金额",prop:"actPrice",align:"center"},{label:"纸箱数",prop:"cartonNum",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})}}},s=n,l=(a("3451"),a("1805")),c=Object(l["a"])(s,i,r,!1,null,"6af25aaa",null);e["default"]=c.exports},3451:function(t,e,a){"use strict";a("9a9f")},"9a9f":function(t,e,a){}}]);