王总上门按摩后台代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1 lines
3.9 KiB

webpackJsonp([9],{IMDQ:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("PJh5"),r=a.n(n),i={data:function(){return{loading:!1,downloadLoading:!1,searchForm:{page:1,limit:10,coach_name:""},storeList:[],tableData:[],total:0}},created:function(){this.getTableDataList()},methods:{resetForm:function(t){this.$refs[t].resetFields(),this.getTableDataList(1)},handleSizeChange:function(t){this.searchForm.limit=t,this.handleCurrentChange(1)},handleCurrentChange:function(t){this.searchForm.page=t,this.getTableDataList()},getTableDataList:function(t){var e=this;t&&(this.searchForm.page=1),this.loading=!0,this.$api.finance.financeList(this.searchForm).then(function(t){e.loading=!1,200===t.code&&(t.data.data.map(function(t){t.service_car_price=(t.service_price+t.car_price).toFixed(2)}),e.tableData=t.data.data,e.total=t.data.total)})}},filters:{handleTime:function(t,e){return 1===e?r()(1e3*t).format("YYYY-MM-DD"):2===e?r()(1e3*t).format("HH:mm:ss"):r()(1e3*t).format("YYYY-MM-DD HH:mm:ss")}}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"lb-finance"},[a("top-nav"),t._v(" "),a("div",{staticClass:"page-main"},[a("el-row",{staticClass:"page-search-form"},[a("el-form",{ref:"searchForm",attrs:{inline:!0,model:t.searchForm},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{attrs:{label:t.$t("action.attendantName")+"名称",prop:"coach_name"}},[a("el-input",{attrs:{placeholder:"请输入"+t.$t("action.attendantName")+"名称"},model:{value:t.searchForm.coach_name,callback:function(e){t.$set(t.searchForm,"coach_name",e)},expression:"searchForm.coach_name"}})],1),t._v(" "),a("el-form-item",[a("lb-button",{staticStyle:{"margin-right":"5px"},attrs:{size:"medium",type:"primary",icon:"el-icon-search"},on:{click:function(e){return t.getTableDataList(1)}}},[t._v(t._s(t.$t("action.search")))]),t._v(" "),a("lb-button",{staticStyle:{"margin-right":"5px"},attrs:{size:"medium",icon:"el-icon-refresh-left"},on:{click:function(e){return t.resetForm("searchForm")}}},[t._v(t._s(t.$t("action.reset")))])],1)],1)],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData,"header-cell-style":{background:"#f5f7fa",color:"#606266"}}},[a("el-table-column",{attrs:{prop:"coach_name",label:t.$t("action.attendantName")+"名称"}}),t._v(" "),a("el-table-column",{attrs:{prop:"staff_text",label:"收入(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex-column"},[a("div",{staticClass:"c-success"},[t._v("+¥"+t._s(e.row.order_price))]),t._v(" "),a("div",[t._v(t._s(e.row.order_count)+"笔")])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"total_price",label:"提现(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex-column"},[a("div",{staticClass:"c-warning"},[t._v("-¥"+t._s(e.row.total_price))]),t._v(" "),a("div",[t._v(t._s(e.row.total_count)+"笔")])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"total_price",label:"实际到账(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex-column"},[a("div",{staticClass:"c-success"},[t._v("+¥"+t._s(e.row.wallet_price))]),t._v(" "),a("div",[t._v(t._s(e.row.wallet_count)+"笔")])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"total_price",label:"当前余额"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex-column"},[a("div",{staticClass:"c-link"},[t._v("¥"+t._s(e.row.service_car_price))])])]}}])})],1),t._v(" "),a("lb-page",{attrs:{batch:!1,page:t.searchForm.page,pageSize:t.searchForm.limit,total:t.total},on:{handleSizeChange:t.handleSizeChange,handleCurrentChange:t.handleCurrentChange}})],1)],1)},staticRenderFns:[]};var l=a("VU/8")(i,s,!1,function(t){a("hifC"),a("jfK+")},"data-v-b26c5fd4",null);e.default=l.exports},hifC:function(t,e){},"jfK+":function(t,e){}});