Files
jianfeng-server/public/static/js/72.js
2025-10-02 10:33:06 +08:00

1 line
6.1 KiB
JavaScript
Executable File

webpackJsonp([72],{"93xJ":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l={data:function(){return{statusOptions:[{label:"全部",value:0},{label:"未入账",value:1},{label:"已入账",value:2},{label:"已退款",value:3}],fxType:{1:"一级分销提成",2:"二级分销提成"},type:{1:"商城",2:"土地",3:"认养"},statusType:{1:"未入账",2:"已入账",3:"已退款"},searchForm:{limit:10,page:1,status:0,name:""},loading:!1,total:0,tableData:[]}},activated:function(){this.getTableDataList()},methods:{resetForm:function(t){this.$refs[t].resetFields(),this.getTableDataList(1)},getTableDataList:function(t){var e=this;t&&(this.searchForm.page=1),this.loading=!0;var a=this.searchForm;this.$api.distribution.cashList(a).then(function(t){console.log(t),e.loading=!1,200===t.code&&(e.total=t.data.total,e.tableData=t.data.data)})},delReocde:function(t){console.log(t)},handleSizeChange:function(t){this.searchForm.limit=t,this.handleCurrentChange(1)},handleCurrentChange:function(t){this.searchForm.page=t,this.getTableDataList()}},filters:{handleTime:function(t,e){return 1===e?moment(1e3*t).format("YYYY-MM-DD"):2===e?moment(1e3*t).format("HH:mm:ss"):moment(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-dis-commission"},[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:"输入查询",prop:"name"}},[a("el-input",{attrs:{placeholder:"请输入姓名/微信昵称"},model:{value:t.searchForm.name,callback:function(e){t.$set(t.searchForm,"name",e)},expression:"searchForm.name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:t.searchForm.status,callback:function(e){t.$set(t.searchForm,"status",e)},expression:"searchForm.status"}},t._l(t.statusOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1)],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:"id",label:"ID",fixed:""}}),t._v(" "),a("el-table-column",{attrs:{prop:"user_id",label:"用户ID"}}),t._v(" "),a("el-table-column",{attrs:{prop:"user_name",label:"姓名","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{prop:"nickName",label:"微信昵称","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{prop:"source_info.nickName",label:"下单人昵称","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{prop:"cover",label:"下单人头像","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("lb-image",{attrs:{src:t.row.source_info.avatarUrl}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"order_code",label:"系统订单号","min-width":"160"}}),t._v(" "),a("el-table-column",{attrs:{prop:"transaction_id",label:"商户订单号","min-width":"160"}}),t._v(" "),a("el-table-column",{attrs:{prop:"fx_type",label:"类型","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t.fxType[e.row.fx_type])+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"status",label:"状态","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t.statusType[e.row.status])+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"goods_info_text",width:"300",label:"商品信息"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.order_goods,function(e,l){return a("div",{key:l,staticClass:"pb-sm"},[a("div",{staticClass:"flex-center pt-md"},[a("lb-image",{staticClass:"avatar radius-5",attrs:{src:e.goods_cover}}),t._v(" "),a("div",{staticClass:"flex-1 f-caption c-caption ml-md mr-lg",staticStyle:{width:"180px"}},[a("div",{staticClass:"f-paragraph c-title ellipsis",staticStyle:{"line-height":"1.2"}},[t._v("\n "+t._s(e.goods_name)+"\n ")]),t._v(" "),a("div",{staticClass:"c-title ellipsis"},[t._v("\n "+t._s(e.spe_name)+"\n ")]),t._v(" "),a("div",{staticClass:"flex-between"},[a("div",{staticClass:"flex-y-baseline"},[a("div",{staticClass:"c-warning"},[t._v("\n "+t._s("¥"+e.singe_pay_price)+"\n ")]),t._v(" "),a("div",{staticClass:"ml-sm"},[t._v("提成比例 "+t._s(e.balance)+"%")])]),t._v(" "),a("div",[t._v("x"+t._s(e.num))])])])],1)])})}}])}),t._v(" "),a("el-table-column",{attrs:{label:"订单金额","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s("¥"+e.row.order_price)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"分销佣金","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s("¥"+e.row.cash)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"时间","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("p",[t._v(t._s(t._f("handleTime")(e.row.create_time,1)))]),t._v(" "),a("p",[t._v(t._s(t._f("handleTime")(e.row.create_time,2)))])]}}])})],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 n=a("VU/8")(l,s,!1,function(t){a("FufV")},"data-v-38408cc4",null);e.default=n.exports},FufV:function(t,e){}});