Files
PropertyDeployment/resources/Web/MicroCommunityMallWeb/html/js/chunk-2e7895e4.359d1476.js
Anfioo adfd019d2d 江门
1
2026-02-01 15:37:55 +08:00

2 lines
16 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2e7895e4"],{"03fe":function(t,a,e){},"170a":function(t,a,e){"use strict";e.d(a,"b",(function(){return l}));var i=e("b775");function l(t){return new Promise((a,e)=>{Object(i["a"])({url:"/affiliateRelation.listAffiliateRelation",method:"get",params:t}).then(t=>{const e=t.data;a(e)}).catch(t=>{e(t)})})}},5689:function(t,a,e){"use strict";e("03fe")},"77d6":function(t,a,e){"use strict";e("a03c")},8028:function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t._self._c;return a("div",{staticClass:"affiliate-user-detail"},[a("div",{staticClass:"white-bg padding-left padding-right padding-top border-radius-top"},[a("div",{staticClass:"flex justify-between"},[a("div",{staticClass:"text-title"},[t._v(" "+t._s(t.$t("affiliate.distributorDetails"))+" ")])]),a("div",{staticClass:"margin-top"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:6}},[a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-form-label"},[t._v(t._s(t.$t("affiliate.distributorId"))+"")]),a("label",[t._v(t._s(t.affiliateUserInfo.auId))])])]),a("el-col",{attrs:{span:6}},[a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-form-label"},[t._v(t._s(t.$t("affiliate.ruleName"))+":")]),a("label",[t._v(t._s(t.affiliateUserInfo.ruleName))])])]),a("el-col",{attrs:{span:6}},[a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-form-label"},[t._v(t._s(t.$t("affiliate.relatedUserName"))+":")]),a("label",[t._v(t._s(t.affiliateUserInfo.userName))])])]),a("el-col",{attrs:{span:6}},[a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-form-label"},[t._v(t._s(t.$t("affiliate.distributorLevel"))+":")]),a("label",[t._v(t._s(t._level(t.affiliateUserInfo.level)))])])]),a("el-col",{attrs:{span:6}},[a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-form-label"},[t._v(t._s(t.$t("affiliate.totalCommission"))+":")]),a("label",[t._v(t._s(t.affiliateUserInfo.totalCommission))])])]),a("el-col",{attrs:{span:6}},[a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-form-label"},[t._v(t._s(t.$t("affiliate.availableCommission"))+":")]),a("label",[t._v(t._s(t.affiliateUserInfo.availableCommission))])])]),a("el-col",{attrs:{span:6}},[a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-form-label"},[t._v(t._s(t.$t("affiliate.withdrawnCommission"))+":")]),a("label",[t._v(t._s(t.affiliateUserInfo.withdrawnCommission))])])]),a("el-col",{attrs:{span:6}},[a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-form-label"},[t._v(t._s(t.$t("affiliate.teamCount"))+":")]),a("label",[t._v(t._s(t.affiliateUserInfo.teamCount))])])])],1)],1),a("div",{staticClass:"vc-line-primary margin-top"}),a("div",{staticClass:"margin-top-sm"},[a("el-tabs",{on:{"tab-click":t.changeTab},model:{value:t.affiliateUserInfo._currentTab,callback:function(a){t.$set(t.affiliateUserInfo,"_currentTab",a)},expression:"affiliateUserInfo._currentTab"}},["1"===t.affiliateUserInfo.level?a("el-tab-pane",{attrs:{label:t.$t("affiliate.secondLevelDistributor"),name:"detailAffiliateUser"}}):t._e(),a("el-tab-pane",{attrs:{label:t.$t("affiliate.boundUsers"),name:"detailAffiliateRelation"}}),a("el-tab-pane",{attrs:{label:t.$t("affiliate.distributionOrders"),name:"detailAffiliateCommission"}}),a("el-tab-pane",{attrs:{label:t.$t("affiliate.withdrawalRecords"),name:"detailAffiliateWithdrawal"}})],1)],1)]),a("div",{staticClass:"white-bg padding-left padding-right padding-top border-radius-bottom"},["detailAffiliateUser"===t.affiliateUserInfo._currentTab?a("detail-affiliate-user",{ref:"detailAffiliateUser"}):t._e(),"detailAffiliateRelation"===t.affiliateUserInfo._currentTab?a("detail-affiliate-relation",{ref:"detailAffiliateRelation"}):t._e(),"detailAffiliateCommission"===t.affiliateUserInfo._currentTab?a("detail-affiliate-commission",{ref:"detailAffiliateCommission"}):t._e(),"detailAffiliateWithdrawal"===t.affiliateUserInfo._currentTab?a("detail-affiliate-withdrawal",{ref:"detailAffiliateWithdrawal"}):t._e()],1)])},l=[],n=e("b750"),s=function(){var t=this,a=t._self._c;return a("div",{staticClass:"detail-affiliate-user"},[a("div",{staticClass:"margin-top"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.affiliateUsers,border:""}},[a("el-table-column",{attrs:{prop:"userName",label:t.$t("affiliate.distributorName"),align:"center"}}),a("el-table-column",{attrs:{prop:"level",label:t.$t("affiliate.distributorLevel"),align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){return[t._v(" "+t._s(t._level(a.row.level))+" ")]}}])}),a("el-table-column",{attrs:{prop:"totalCommission",label:t.$t("affiliate.totalCommission"),align:"center"}}),a("el-table-column",{attrs:{prop:"availableCommission",label:t.$t("affiliate.availableCommission"),align:"center"}}),a("el-table-column",{attrs:{prop:"withdrawnCommission",label:t.$t("affiliate.withdrawnCommission"),align:"center"}}),a("el-table-column",{attrs:{prop:"createTime",label:t.$t("affiliate.createTime"),align:"center"}})],1),a("el-pagination",{staticClass:"pagination",attrs:{"current-page":t.pagination.currentPage,"page-sizes":[10,20,30,50],"page-size":t.pagination.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.pagination.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)])},r=[],o={name:"DetailAffiliateUser",data(){return{loading:!1,affiliateUsers:[],pagination:{currentPage:1,pageSize:10,total:0},parentId:""}},methods:{loadData(t){this.parentId=t.auId,this.getList()},async getList(){this.loading=!0;try{const t=await Object(n["d"])({parentId:this.parentId,page:this.pagination.currentPage,row:this.pagination.pageSize});this.affiliateUsers=t.data,this.pagination.total=t.records}catch(t){console.error("获取二级分销员列表失败:",t)}finally{this.loading=!1}},handleSizeChange(t){this.pagination.pageSize=t,this.getList()},handleCurrentChange(t){this.pagination.currentPage=t,this.getList()},_level(t){return"1"===t?this.$t("affiliate.firstLevel"):"2"===t?this.$t("affiliate.secondLevel"):""}}},f=o,c=(e("ac07"),e("2877")),d=Object(c["a"])(f,s,r,!1,null,"5a86ce65",null),u=d.exports,p=function(){var t=this,a=t._self._c;return a("div",{staticClass:"detail-affiliate-relation"},[a("div",{staticClass:"margin-top"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.detailAffiliateRelations,border:""}},[a("el-table-column",{attrs:{prop:"openId",label:t.$t("affiliate.openId"),align:"center"}}),a("el-table-column",{attrs:{prop:"relationLevel",label:t.$t("affiliate.relationLevel"),align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){return[t._v(" "+t._s(t._level(a.row.relationLevel))+" ")]}}])}),a("el-table-column",{attrs:{prop:"expireTime",label:t.$t("affiliate.expireTime"),align:"center"}}),a("el-table-column",{attrs:{prop:"createTime",label:t.$t("affiliate.createTime"),align:"center"}})],1),a("el-pagination",{staticClass:"pagination",attrs:{"current-page":t.pagination.currentPage,"page-sizes":[10,20,30,50],"page-size":t.pagination.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.pagination.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)])},g=[],h=e("170a"),m={name:"DetailAffiliateRelation",data(){return{loading:!1,detailAffiliateRelations:[],pagination:{currentPage:1,pageSize:10,total:0},auId:""}},methods:{loadData(t){this.auId=t.auId,this.getList()},async getList(){this.loading=!0;try{const t=await Object(h["b"])({auIdContain2Level:this.auId,page:this.pagination.currentPage,row:this.pagination.pageSize});this.detailAffiliateRelations=t.data,this.pagination.total=t.records}catch(t){console.error("获取绑定用户列表失败:",t)}finally{this.loading=!1}},handleSizeChange(t){this.pagination.pageSize=t,this.getList()},handleCurrentChange(t){this.pagination.currentPage=t,this.getList()},_level(t){return"1"===t?this.$t("affiliate.firstLevel"):"2"===t?this.$t("affiliate.secondLevel"):""}}},b=m,v=(e("9b52"),Object(c["a"])(b,p,g,!1,null,"5e6d9d8f",null)),_=v.exports,C=function(){var t=this,a=t._self._c;return a("div",{staticClass:"detail-affiliate-commission"},[a("div",{staticClass:"margin-top"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.affiliateCommissionManages,border:""}},[a("el-table-column",{attrs:{prop:"auName",label:t.$t("affiliate.distributorName"),align:"center"}}),a("el-table-column",{attrs:{prop:"orderId",label:t.$t("affiliate.relatedOrderId"),align:"center"}}),a("el-table-column",{attrs:{prop:"orderItemId",label:t.$t("affiliate.orderItemId"),align:"center"}}),a("el-table-column",{attrs:{prop:"userName",label:t.$t("affiliate.orderUserName"),align:"center"}}),a("el-table-column",{attrs:{prop:"relationLevel",label:t.$t("affiliate.relationLevel"),align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){return[t._v(" "+t._s(t._level(a.row.relationLevel))+" ")]}}])}),a("el-table-column",{attrs:{prop:"commissionRate",label:t.$t("affiliate.commissionRate"),align:"center"}}),a("el-table-column",{attrs:{prop:"orderAmount",label:t.$t("affiliate.orderAmount"),align:"center"}}),a("el-table-column",{attrs:{prop:"commissionAmount",label:t.$t("affiliate.commissionAmount"),align:"center"}}),a("el-table-column",{attrs:{prop:"state",label:t.$t("affiliate.orderStatus"),align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){return[t._v(" "+t._s(t._state(a.row.state))+" ")]}}])})],1),a("el-pagination",{staticClass:"pagination",attrs:{"current-page":t.pagination.currentPage,"page-sizes":[10,20,30,50],"page-size":t.pagination.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.pagination.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)])},w=[],I=e("b8d1"),$={name:"DetailAffiliateCommission",data(){return{loading:!1,affiliateCommissionManages:[],pagination:{currentPage:1,pageSize:10,total:0},auId:""}},methods:{loadData(t){this.auId=t.auId,this.getList()},async getList(){this.loading=!0;try{const t=await Object(I["b"])({auIdContain2Level:this.auId,page:this.pagination.currentPage,row:this.pagination.pageSize});this.affiliateCommissionManages=t.data,this.pagination.total=t.records}catch(t){console.error("获取分销订单列表失败:",t)}finally{this.loading=!1}},handleSizeChange(t){this.pagination.pageSize=t,this.getList()},handleCurrentChange(t){this.pagination.currentPage=t,this.getList()},_level(t){return"1"===t?this.$t("affiliate.firstLevel"):"2"===t?this.$t("affiliate.secondLevel"):""},_state(t){return"0"===t?this.$t("affiliate.pendingSettlement"):"1"===t?this.$t("affiliate.settled"):"2"===t?this.$t("affiliate.canceled"):""}}},A=$,U=(e("a84a"),Object(c["a"])(A,C,w,!1,null,"19cb7192",null)),z=U.exports,y=function(){var t=this,a=t._self._c;return a("div",{staticClass:"detail-affiliate-withdrawal"},[a("div",{staticClass:"margin-top"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.detailAffiliateWithdrawals,border:""}},[a("el-table-column",{attrs:{prop:"userName",label:t.$t("affiliate.distributor"),align:"center"}}),a("el-table-column",{attrs:{prop:"amount",label:t.$t("affiliate.withdrawalAmount"),align:"center"}}),a("el-table-column",{attrs:{prop:"realAmount",label:t.$t("affiliate.actualAmount"),align:"center"}}),a("el-table-column",{attrs:{prop:"fee",label:t.$t("affiliate.serviceFee"),align:"center"}}),a("el-table-column",{attrs:{prop:"accountType",label:t.$t("affiliate.accountType"),align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){return[t._v(" "+t._s(t._account_type(a.row.accountType))+" ")]}}])}),a("el-table-column",{attrs:{prop:"state",label:t.$t("affiliate.status"),align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){return[t._v(" "+t._s(t._state(a.row.state))+" ")]}}])}),a("el-table-column",{attrs:{prop:"completeTime",label:t.$t("affiliate.completeTime"),align:"center"}}),a("el-table-column",{attrs:{prop:"createTime",label:t.$t("affiliate.createTime"),align:"center"}})],1),a("el-pagination",{staticClass:"pagination",attrs:{"current-page":t.pagination.currentPage,"page-sizes":[10,20,30,50],"page-size":t.pagination.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.pagination.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)])},S=[],L=e("a430"),j={name:"DetailAffiliateWithdrawal",data(){return{loading:!1,detailAffiliateWithdrawals:[],pagination:{currentPage:1,pageSize:10,total:0},auId:""}},methods:{loadData(t){this.auId=t.auId,this.getList()},async getList(){this.loading=!0;try{const t=await Object(L["c"])({auIdContain2Level:this.auId,page:this.pagination.currentPage,row:this.pagination.pageSize});this.detailAffiliateWithdrawals=t.data,this.pagination.total=t.records}catch(t){console.error("获取提现记录列表失败:",t)}finally{this.loading=!1}},handleSizeChange(t){this.pagination.pageSize=t,this.getList()},handleCurrentChange(t){this.pagination.currentPage=t,this.getList()},_state(t){return"0"===t?this.$t("affiliate.applying"):"1"===t?this.$t("affiliate.processing"):"2"===t?this.$t("affiliate.completed"):"3"===t?this.$t("affiliate.rejected"):""},_account_type(t){return"1"===t?this.$t("affiliate.alipay"):"2"===t?this.$t("affiliate.wechat"):"3"===t?this.$t("affiliate.bankCard"):""}}},T=j,O=(e("5689"),Object(c["a"])(T,y,S,!1,null,"08a8fd60",null)),P=O.exports,x={name:"AffiliateUserDetail",components:{DetailAffiliateUser:u,DetailAffiliateRelation:_,DetailAffiliateCommission:z,DetailAffiliateWithdrawal:P},data(){return{affiliateUserInfo:{auId:"",ruleId:"",ruleName:"",userId:"",userName:"",level:"",state:"",totalCommission:"",availableCommission:"",withdrawnCommission:"",teamCount:"",_currentTab:"detailAffiliateUser"}}},created(){this.affiliateUserInfo.auId=this.$route.query.auId,this.affiliateUserInfo.auId&&this._listDetail()},methods:{async _listDetail(){try{const t=await Object(n["getAffiliateUserDetail"])({page:1,row:1,auId:this.affiliateUserInfo.auId});Object.assign(this.affiliateUserInfo,t.data[0]),this.changeTab(this.affiliateUserInfo._currentTab)}catch(t){console.error("获取分销员详情失败:",t)}},changeTab(t){this.affiliateUserInfo._currentTab=t,this.$nextTick(()=>{this.$refs[t]&&this.$refs[t].loadData({auId:this.affiliateUserInfo.auId})})},_level(t){return"1"===t?this.$t("affiliate.firstLevel"):"2"===t?this.$t("affiliate.secondLevel"):""},_auditState(t){return console.log(t),"0"===t?this.$t("affiliate.pendingReview"):"1"===t?this.$t("affiliate.approved"):"2"===t?this.$t("affiliate.rejected"):""}}},D=x,N=(e("77d6"),Object(c["a"])(D,i,l,!1,null,"9f4ffe8e",null));a["default"]=N.exports},"9b52":function(t,a,e){"use strict";e("e233")},a03c:function(t,a,e){},a430:function(t,a,e){"use strict";e.d(a,"c",(function(){return n})),e.d(a,"a",(function(){return s})),e.d(a,"b",(function(){return r}));var i=e("b775"),l=e("7323");function n(t){return new Promise((a,e)=>{t.shopId=Object(l["f"])(),Object(i["a"])({url:"/affiliateWithdrawal.listAffiliateWithdrawal",method:"get",params:t}).then(t=>{const e=t.data;a(e)}).catch(t=>{e(t)})})}function s(t){return new Promise((a,e)=>{t.shopId=Object(l["f"])(),Object(i["a"])({url:"/affiliateWithdrawal.auditAffiliateWithdrawal",method:"post",data:t}).then(t=>{const e=t.data;a(e)}).catch(t=>{e(t)})})}function r(t){return new Promise((a,e)=>{t.shopId=Object(l["f"])(),Object(i["a"])({url:"/affiliateWithdrawal.deleteAffiliateWithdrawal",method:"post",data:t}).then(t=>{const e=t.data;a(e)}).catch(t=>{e(t)})})}},a84a:function(t,a,e){"use strict";e("c77b")},aa0e:function(t,a,e){},ac07:function(t,a,e){"use strict";e("aa0e")},b750:function(t,a,e){"use strict";e.d(a,"d",(function(){return l})),e.d(a,"b",(function(){return n})),e.d(a,"a",(function(){return s}));var i=e("b775");function l(t){return new Promise((a,e)=>{Object(i["a"])({url:"/affiliateUser.listAffiliateUser",method:"get",params:t}).then(t=>{const e=t.data;a(e)}).catch(t=>{e(t)})})}function n(t){return new Promise((a,e)=>{Object(i["a"])({url:"/affiliateUser.deleteAffiliateUser",method:"post",data:t}).then(t=>{const i=t.data;0===i.code?a(i):e(new Error(i.msg))}).catch(t=>{e(t)})})}function s(t){return new Promise((a,e)=>{Object(i["a"])({url:"/affiliateUser.auditAffiliateUser",method:"post",data:t}).then(t=>{const e=t.data;a(e)}).catch(t=>{e(t)})})}},b8d1:function(t,a,e){"use strict";e.d(a,"b",(function(){return l}));var i=e("b775");function l(t){return new Promise((a,e)=>{Object(i["a"])({url:"/affiliateCommission.listAffiliateCommission",method:"get",params:t}).then(t=>{const e=t.data;a(e)}).catch(t=>{e(t)})})}},c77b:function(t,a,e){},e233:function(t,a,e){}}]);
//# sourceMappingURL=chunk-2e7895e4.359d1476.js.map