webpackJsonp([11],{"8LM+":function(e,t){},IMDQ:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Zz1P"),n=a.n(r),l={data:function(){return{loading:!1,downloadLoading:!1,userOptions:[{label:"农场",value:1},{label:"店铺",value:2}],searchForm:{page:1,limit:10,store_name:"",type:1},pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},range:"",storeList:[],tableData:[],total:0}},created:function(){this.getTableDataList()},methods:{resetForm:function(e){this.range="",this.$refs[e].resetFields(),this.getTableDataList(1)},handleSizeChange:function(e){this.searchForm.limit=e,this.handleCurrentChange(1)},handleCurrentChange:function(e){this.searchForm.page=e,this.getTableDataList()},getTableDataList:function(e){var t=this;e&&(this.searchForm.page=1),this.loading=!0;var a=this.searchForm,r=this.range;r&&r.length>0?(a.start_time=parseInt(r[0]/1e3),a.end_time=parseInt(r[1]/1e3)+86400-1):(a.start_time="",a.end_time=""),this.$api.finance.fincanceWaterList(a).then(function(e){t.loading=!1,200===e.code&&(t.tableData=e.data.data,t.total=e.data.total)})}},filters:{handleTime:function(e,t){return 1===t?n()(1e3*e).format("YYYY-MM-DD"):2===t?n()(1e3*e).format("HH:mm:ss"):n()(1e3*e).format("YYYY-MM-DD HH:mm:ss")}}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"lb-finance"},[a("top-nav"),e._v(" "),a("div",{staticClass:"page-main"},[a("el-row",{staticClass:"page-search-form"},[a("el-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},nativeOn:{submit:function(e){e.preventDefault()}}},[a("el-form-item",{attrs:{label:"类型",prop:"type"}},[a("el-select",{attrs:{placeholder:"请选择"},on:{change:function(t){return e.getTableDataList(1)}},model:{value:e.searchForm.type,callback:function(t){e.$set(e.searchForm,"type",t)},expression:"searchForm.type"}},e._l(e.userOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"名称",prop:"store_name"}},[a("el-input",{attrs:{placeholder:1===e.searchForm.type?"请输入农场名称":"请输入店铺名称"},model:{value:e.searchForm.store_name,callback:function(t){e.$set(e.searchForm,"store_name",t)},expression:"searchForm.store_name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"日期",prop:"start_time"}},[a("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"timestamp","picker-options":e.pickerOptions},on:{change:function(t){return e.getTableDataList(1)}},model:{value:e.range,callback:function(t){e.range=t},expression:"range"}})],1),e._v(" "),a("el-form-item",[a("lb-button",{staticStyle:{"margin-right":"5px"},attrs:{size:"medium",type:"primary",icon:"el-icon-search"},on:{click:function(t){return e.getTableDataList(1)}}},[e._v(e._s(e.$t("action.search")))]),e._v(" "),a("lb-button",{staticStyle:{"margin-right":"5px"},attrs:{size:"medium",icon:"el-icon-refresh-left"},on:{click:function(t){return e.resetForm("searchForm")}}},[e._v(e._s(e.$t("action.reset")))])],1)],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,"header-cell-style":{background:"#f5f7fa",color:"#606266"}}},[a("el-table-column",{attrs:{prop:"title",label:1===e.searchForm.type?"农场名称":"店铺名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"cash",label:""},scopedSlots:e._u([{key:"header",fn:function(t){return[a("div",[e._v("\n 可提余额(元)"),a("lb-tool-tips",{attrs:{padding:"2"}},[e._v("所有收入总金额,不含冻结金额,不含已经提现到账金额,不含配送已退款金额,实际可提金额")])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"income_cash",label:""},scopedSlots:e._u([{key:"header",fn:function(t){return[a("div",[e._v("\n 订单收入(元)"),a("lb-tool-tips",{attrs:{padding:"2"}},[e._v("不含冻结金额,包含已经提现到账的金额,所有实际到账的金额")])],1)]}},{key:"default",fn:function(t){return[a("div",{staticClass:"flex-column"},[a("div",{staticClass:"c-success"},[e._v("+"+e._s(t.row.income_cash))]),e._v(" "),a("div",[e._v(e._s(t.row.income_count)+"笔")])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"total_price",label:""},scopedSlots:e._u([{key:"header",fn:function(t){return[a("div",[e._v("\n 提现(元)"),a("lb-tool-tips",{attrs:{padding:"2"}},[e._v("实际提现到账成功")])],1)]}},{key:"default",fn:function(t){return[a("div",{staticClass:"flex-column"},[a("div",[e._v("-"+e._s(t.row.wallet_cash))]),e._v(" "),a("div",[e._v(e._s(t.row.wallet_count)+"笔")])])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"table-operate"},[a("lb-button",{attrs:{size:"mini",type:"primary",plain:""},on:{click:function(a){return e.$router.push("/finance/detail?id="+t.row.id+"&range="+e.range+"&type="+e.searchForm.type)}}},[e._v(e._s(e.$t("action.view")))])],1)]}}])})],1),e._v(" "),a("lb-page",{attrs:{batch:!1,page:e.searchForm.page,pageSize:e.searchForm.limit,total:e.total},on:{handleSizeChange:e.handleSizeChange,handleCurrentChange:e.handleCurrentChange}})],1)],1)},staticRenderFns:[]};var s=a("VU/8")(l,i,!1,function(e){a("8LM+"),a("jHwl")},"data-v-141eeed1",null);t.default=s.exports},jHwl:function(e,t){}});