Compare commits
	
		
			No commits in common. "8a75afdf81bb760db3798341090b4327beb5f847" and "fefa7ff476a183566236d8ff5772f41837219286" have entirely different histories.
		
	
	
		
			8a75afdf81
			...
			fefa7ff476
		
	
		|  | @ -732,25 +732,25 @@ export const constantRoutes = [ | ||||||
|         meta: { title: '顶点奖金拨比汇总' }, |         meta: { title: '顶点奖金拨比汇总' }, | ||||||
|         hidden: true |         hidden: true | ||||||
|       }, |       }, | ||||||
|       // {
 |       { | ||||||
|       //   path: 'topPerformancepv',
 |         path: 'topPerformancepv', | ||||||
|       //   name: 'TopPerformancepv',
 |         name: 'TopPerformancepv', | ||||||
|       //   component: () => import('@/views/settlementCenter/topPerformancepv/index'),
 |         component: () => import('@/views/settlementCenter/topPerformancepv/index'), | ||||||
|       //   meta: { title: '顶点奖金拨比业绩统计' },
 |         meta: { title: '顶点奖金拨比业绩统计' }, | ||||||
|       //   hidden: true
 |         hidden: true | ||||||
|       // },
 |       }, | ||||||
|       // {
 |       { | ||||||
|       //   path: 'lenTopPerformance',
 |         path: 'lenTopPerformance', | ||||||
|       //   name: 'LenTopPerformance',
 |         name: 'LenTopPerformance', | ||||||
|       //   component: () => import('@/views/settlementCenter/lenTopPerformance/index'),
 |         component: () => import('@/views/settlementCenter/lenTopPerformance/index'), | ||||||
|       //   meta: { title: '乐享顶点奖金拨比列表' }
 |         meta: { title: '乐享顶点奖金拨比列表' } | ||||||
|       // },
 |       }, | ||||||
|       // {
 |       { | ||||||
|       //   path: 'personalAllocation',
 |         path: 'personalAllocation', | ||||||
|       //   name: 'PersonalAllocation',
 |         name: 'PersonalAllocation', | ||||||
|       //   component: () => import('@/views/settlementCenter/performanceRatio/personalAllocation'),
 |         component: () => import('@/views/settlementCenter/performanceRatio/personalAllocation'), | ||||||
|       //   meta: { title: '个人伞下拨比查询' }
 |         meta: { title: '个人伞下拨比查询' } | ||||||
|       // },
 |       }, | ||||||
|       { |       { | ||||||
|         path: 'sourceBonus', |         path: 'sourceBonus', | ||||||
|         name: 'sourceBonus', |         name: 'sourceBonus', | ||||||
|  |  | ||||||
|  | @ -210,6 +210,26 @@ export default { | ||||||
|   data() { |   data() { | ||||||
|     return { |     return { | ||||||
|       loading: false, |       loading: false, | ||||||
|  |       typeList: [ | ||||||
|  |         { | ||||||
|  |           value: 0, | ||||||
|  |           label: '前台' | ||||||
|  |         }, | ||||||
|  |         { | ||||||
|  |           value: 1, | ||||||
|  |           label: '后台' | ||||||
|  |         } | ||||||
|  |       ], | ||||||
|  |       digList: [ | ||||||
|  |         { | ||||||
|  |           value: 0, | ||||||
|  |           label: '允许' | ||||||
|  |         }, | ||||||
|  |         { | ||||||
|  |           value: 1, | ||||||
|  |           label: '禁止' | ||||||
|  |         } | ||||||
|  |       ], | ||||||
|       menuList: [ |       menuList: [ | ||||||
|         { |         { | ||||||
|           id: 0, |           id: 0, | ||||||
|  | @ -234,147 +254,69 @@ export default { | ||||||
|           checked: false, |           checked: false, | ||||||
|           prop: 'creationTime' |           prop: 'creationTime' | ||||||
|         }, |         }, | ||||||
|  |         // { | ||||||
|  |         //   id: 2, | ||||||
|  |         //   text: '隶属团队', | ||||||
|  |         //   checked: true, | ||||||
|  |         //   prop: "teamName", | ||||||
|  |         // }, | ||||||
|  |         // { | ||||||
|  |         //   id: 28, | ||||||
|  |         //   text: "首购PV拨比(%)", | ||||||
|  |         //   checked: true, | ||||||
|  |         //   prop: "mainBonusPvRate", | ||||||
|  |         //   total: "mainBonusPvRateSum", | ||||||
|  |         // }, | ||||||
|  |         // { | ||||||
|  |         //   id: 29, | ||||||
|  |         //   text: "复购PV拨比(%)", | ||||||
|  |         //   checked: true, | ||||||
|  |         //   prop: "repurBonusPvRate", | ||||||
|  |         //   total: "repurBonusPvRateSum", | ||||||
|  |         // }, | ||||||
|         { |         { | ||||||
|           id: 4, |           id: 4, | ||||||
|           text: `${'精品专区'}`, |           text: `${'注册专区'}`, | ||||||
|           checked: true, |           checked: true, | ||||||
|           prop: 'mainRegAmount', |           prop: 'mainRegAmount', | ||||||
|           total: 'mainRegAmount' |           total: 'mainRegAmountSum' | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|           id: 5, |           id: 5, | ||||||
|           text: `${'商城专区'}`, |           text: `${'升级专区'}`, | ||||||
|           checked: true, |           checked: true, | ||||||
|           prop: 'mainRepurAmount', |           prop: 'mainUpAmount', | ||||||
|           total: 'mainRepurAmount' |           total: 'mainUpAmountSum' | ||||||
|         }, |         }, | ||||||
|  |         // { | ||||||
|  |         //   id: 5, | ||||||
|  |         //   text: `${'云代注册'}(¥)`, | ||||||
|  |         //   checked: true, | ||||||
|  |         //   prop: "agentRegAmount", | ||||||
|  |         //   total: "agentRegAmountSum", | ||||||
|  |         // }, | ||||||
|  |         // { | ||||||
|  |         //   id: 6, | ||||||
|  |         //   text: `${'云代升级'}(¥)`, | ||||||
|  |         //   checked: true, | ||||||
|  |         //   prop: "agentUpAmount", | ||||||
|  |         //   total: "agentUpAmountSum", | ||||||
|  |         // }, | ||||||
|         { |         { | ||||||
|           id: 6, |           id: 6, | ||||||
|           text: `${'五折专区'}`, |           text: `${'首购金额'}(¥)`, | ||||||
|           checked: true, |           checked: true, | ||||||
|           prop: 'retailConsumeAmount', |           prop: 'firstPurchaseAll', | ||||||
|           total: 'retailConsumeAmount' |           total: 'firstPurchaseAllSum' | ||||||
|         }, |  | ||||||
|         { |  | ||||||
|           id: 7, |  | ||||||
|           text: `${'合计金额'}`, |  | ||||||
|           checked: false, |  | ||||||
|           prop: 'totalAmount', |  | ||||||
|           total: 'totalAmount' |  | ||||||
|         }, |  | ||||||
|         { |  | ||||||
|           id: 8, |  | ||||||
|           text: `${'直推收益'}`, |  | ||||||
|           checked: true, |  | ||||||
|           prop: 'introduceBonus', |  | ||||||
|           total: 'introduceBonus' |  | ||||||
|         }, |  | ||||||
|         { |  | ||||||
|           id: 9, |  | ||||||
|           text: `${'直推收益拨比(%)'}`, |  | ||||||
|           checked: true, |  | ||||||
|           prop: 'introduceBonusRate', |  | ||||||
|           total: 'introduceBonusRate' |  | ||||||
|         }, |  | ||||||
|         { |  | ||||||
|           id: 10, |  | ||||||
|           text: `${'阶段收益'}`, |  | ||||||
|           checked: true, |  | ||||||
|           prop: 'storeIncome', |  | ||||||
|           total: 'storeIncome' |  | ||||||
|         }, |  | ||||||
|         { |  | ||||||
|           id: 11, |  | ||||||
|           text: `${'阶段收益拨比(%)'}`, |  | ||||||
|           checked: true, |  | ||||||
|           prop: 'storeIncomeRate', |  | ||||||
|           total: 'storeIncomeRate' |  | ||||||
|         }, |  | ||||||
|         { |  | ||||||
|           id: 12, |  | ||||||
|           text: `${'精品级差收益'}`, |  | ||||||
|           checked: true, |  | ||||||
|           prop: 'rangeIncome41', |  | ||||||
|           total: 'rangeIncome41' |  | ||||||
|         }, |  | ||||||
|         { |  | ||||||
|           id: 13, |  | ||||||
|           text: `${'精品级差收益拨比(%)'}`, |  | ||||||
|           checked: true, |  | ||||||
|           prop: 'rangeIncome41Rate', |  | ||||||
|           total: 'rangeIncome41Rate' |  | ||||||
|         }, |  | ||||||
|         { |  | ||||||
|           id: 14, |  | ||||||
|           text: `${'精品平级收益'}`, |  | ||||||
|           checked: true, |  | ||||||
|           prop: 'sameLevelIncome41', |  | ||||||
|           total: 'sameLevelIncome41' |  | ||||||
|         }, |  | ||||||
|         { |  | ||||||
|           id: 15, |  | ||||||
|           text: `${'精品平级收益拨比(%)'}`, |  | ||||||
|           checked: true, |  | ||||||
|           prop: 'sameLevelIncome41Rate', |  | ||||||
|           total: 'sameLevelIncome41Rate' |  | ||||||
|         }, |  | ||||||
|         { |  | ||||||
|           id: 16, |  | ||||||
|           text: `${'见点收益'}`, |  | ||||||
|           checked: true, |  | ||||||
|           prop: 'globalPoints', |  | ||||||
|           total: 'globalPoints' |  | ||||||
|         }, |  | ||||||
|         { |  | ||||||
|           id: 17, |  | ||||||
|           text: `${'见点收益拨比(%)'}`, |  | ||||||
|           checked: true, |  | ||||||
|           prop: 'globalPointsRate', |  | ||||||
|           total: 'globalPointsRate' |  | ||||||
|         }, |  | ||||||
|         { |  | ||||||
|           id: 18, |  | ||||||
|           text: `${'商城级差收益'}`, |  | ||||||
|           checked: true, |  | ||||||
|           prop: 'rangeIncome43', |  | ||||||
|           total: 'rangeIncome43' |  | ||||||
|         }, |  | ||||||
|         { |  | ||||||
|           id: 19, |  | ||||||
|           text: `${'商城级差收益拨比(%)'}`, |  | ||||||
|           checked: true, |  | ||||||
|           prop: 'rangeIncome43Rate', |  | ||||||
|           total: 'rangeIncome43Rate' |  | ||||||
|         }, |  | ||||||
|         { |  | ||||||
|           id: 20, |  | ||||||
|           text: `${'商城平级收益'}`, |  | ||||||
|           checked: true, |  | ||||||
|           prop: 'sameLevelIncome43', |  | ||||||
|           total: 'sameLevelIncome43' |  | ||||||
|         }, |  | ||||||
|         { |  | ||||||
|           id: 21, |  | ||||||
|           text: `${'商城平级收益拨比(%)'}`, |  | ||||||
|           checked: true, |  | ||||||
|           prop: 'sameLevelIncome43Rate', |  | ||||||
|           total: 'sameLevelIncome43Rate' |  | ||||||
|         }, |  | ||||||
|         { |  | ||||||
|           id: 22, |  | ||||||
|           text: `${'五折级差收益'}`, |  | ||||||
|           checked: true, |  | ||||||
|           prop: 'rangeIncome47', |  | ||||||
|           total: 'rangeIncome47' |  | ||||||
|         }, |  | ||||||
|         { |  | ||||||
|           id: 23, |  | ||||||
|           text: `${'五折级差收益拨比(%)'}`, |  | ||||||
|           checked: true, |  | ||||||
|           prop: 'rangeIncome47Rate', |  | ||||||
|           total: 'rangeIncome47Rate' |  | ||||||
|         }, |         }, | ||||||
| 
 | 
 | ||||||
|  |         // { | ||||||
|  |         //   id: 8, | ||||||
|  |         //   text: `${'直推收益'}(¥)`, | ||||||
|  |         //   checked: true, | ||||||
|  |         //   prop: "introduceBonus", | ||||||
|  |         //   total: "introduceBonusSum", | ||||||
|  |         // }, | ||||||
|         // { |         // { | ||||||
|         //   id: 9, |         //   id: 9, | ||||||
|         //   text: `${'拓展收益'}(¥)`, |         //   text: `${'拓展收益'}(¥)`, | ||||||
|  | @ -445,34 +387,41 @@ export default { | ||||||
|         //   checked: false, |         //   checked: false, | ||||||
|         //   prop: 'agentRepurAmount', |         //   prop: 'agentRepurAmount', | ||||||
|         // }, |         // }, | ||||||
|         // { |         { | ||||||
|         //   id: 7, |           id: 7, | ||||||
|         //   text: `${'复购金额'}(¥)`, |           text: `${'复购金额'}(¥)`, | ||||||
|         //   checked: false, |           checked: false, | ||||||
|         //   prop: 'mainRepurAmount', |           prop: 'mainRepurAmount', | ||||||
|         //   total: 'mainRepurAmountSum' |           total: 'mainRepurAmountSum' | ||||||
|         // }, |         }, | ||||||
|         // { |         { | ||||||
|         //   id: 8, |           id: 8, | ||||||
|         //   text: `${this.$t('重消金额')}(¥)`, |           text: `${this.$t('重消金额')}(¥)`, | ||||||
|         //   checked: false, |           checked: false, | ||||||
|         //   prop: 'retailConsumeAmount', |           prop: 'retailConsumeAmount', | ||||||
|         //   total: 'retailConsumeAmountSum' |           total: 'retailConsumeAmountSum' | ||||||
|         // }, |         }, | ||||||
|         // { |         { | ||||||
|         //   id: 10, |           id: 9, | ||||||
|         //   text: `${this.$t('极差收益')}(¥)`, |           text: `${this.$t('合计金额')}(¥)`, | ||||||
|         //   checked: false, |           checked: false, | ||||||
|         //   prop: 'retailRangeIncome', |           prop: 'totalAmount', | ||||||
|         //   total: 'retailRangeIncomeSum' |           total: 'totalAmountSum' | ||||||
|         // }, |         }, | ||||||
|         // { |         { | ||||||
|         //   id: 11, |           id: 10, | ||||||
|         //   text: '极差收益拨比(%)', |           text: `${this.$t('极差收益')}(¥)`, | ||||||
|         //   checked: false, |           checked: false, | ||||||
|         //   prop: 'retailRangeIncomeRate', |           prop: 'retailRangeIncome', | ||||||
|         //   total: 'retailRangeIncomeRateSum' |           total: 'retailRangeIncomeSum' | ||||||
|         // }, |         }, | ||||||
|  |         { | ||||||
|  |           id: 11, | ||||||
|  |           text: '极差收益拨比(%)', | ||||||
|  |           checked: false, | ||||||
|  |           prop: 'retailRangeIncomeRate', | ||||||
|  |           total: 'retailRangeIncomeRateSum' | ||||||
|  |         }, | ||||||
|         // { |         // { | ||||||
|         //   id: 12, |         //   id: 12, | ||||||
|         //   text: `${this.$t("平级收益")}(¥)`, |         //   text: `${this.$t("平级收益")}(¥)`, | ||||||
|  | @ -480,6 +429,105 @@ export default { | ||||||
|         //   prop: "retailSameLevelIncome", |         //   prop: "retailSameLevelIncome", | ||||||
|         //   total: "retailSameLevelIncomeSum", |         //   total: "retailSameLevelIncomeSum", | ||||||
|         // }, |         // }, | ||||||
|  |         { | ||||||
|  |           id: 12, | ||||||
|  |           text: `${this.$t('平级收益V1-V4')}(¥)`, | ||||||
|  |           checked: false, | ||||||
|  |           prop: 'retailSameLevelIncomeV1V4', | ||||||
|  |           total: 'retailSameLevelIncomeV1V4Sum' | ||||||
|  |         }, | ||||||
|  |         { | ||||||
|  |           id: 13, | ||||||
|  |           text: `${this.$t('平级收益V1-V4拨比')}(%)`, | ||||||
|  |           checked: false, | ||||||
|  |           prop: 'retailSameLevelIncomeV1V4Rate', | ||||||
|  |           total: 'sameLevelIncomeV1V4RateSum' | ||||||
|  |         }, | ||||||
|  |         { | ||||||
|  |           id: 14, | ||||||
|  |           text: `${this.$t('平级收益V5')}(¥)`, | ||||||
|  |           checked: false, | ||||||
|  |           prop: 'retailSameLevelIncomeV5', | ||||||
|  |           total: 'retailSameLevelIncomeV5Sum' | ||||||
|  |         }, | ||||||
|  |         { | ||||||
|  |           id: 15, | ||||||
|  |           text: `${this.$t('平级收益V5拨比')}(%)`, | ||||||
|  |           checked: false, | ||||||
|  |           prop: 'retailSameLevelIncomeV5Rate', | ||||||
|  |           total: 'sameLevelIncomeV5RateSum' | ||||||
|  |         }, | ||||||
|  |         { | ||||||
|  |           id: 16, | ||||||
|  |           text: `${this.$t('区域收益')}(¥)`, | ||||||
|  |           checked: false, | ||||||
|  |           prop: 'retailAreaIncome', | ||||||
|  |           total: 'retailAreaIncomeSum' | ||||||
|  |         }, | ||||||
|  |         { | ||||||
|  |           id: 17, | ||||||
|  |           text: `${this.$t('区域收益拨比')}(%)`, | ||||||
|  |           checked: false, | ||||||
|  |           prop: 'retailAreaIncomeRate', | ||||||
|  |           total: 'retailAreaIncomeRateSum' | ||||||
|  |         }, | ||||||
|  | 
 | ||||||
|  |         { | ||||||
|  |           id: 18, | ||||||
|  |           text: `${this.$t('福利平均收益')}(¥)`, | ||||||
|  |           checked: false, | ||||||
|  |           prop: 'retailBenefitAvgIncome', | ||||||
|  |           total: 'retailBenefitAvgIncomeSum' | ||||||
|  |         }, | ||||||
|  |         { | ||||||
|  |           id: 19, | ||||||
|  |           text: `${this.$t('福利平均收益拨比')}(%)`, | ||||||
|  |           checked: false, | ||||||
|  |           prop: 'retailBenefitAvgIncomeRate', | ||||||
|  |           total: 'retailBenefitAvgIncomeRateSum' | ||||||
|  |         }, | ||||||
|  |         { | ||||||
|  |           id: 20, | ||||||
|  |           text: `${this.$t('福利加权收益')}(¥)`, | ||||||
|  |           checked: false, | ||||||
|  |           prop: 'retailBenefitIncome', | ||||||
|  |           total: 'retailBenefitIncomeSum' | ||||||
|  |         }, | ||||||
|  |         { | ||||||
|  |           id: 21, | ||||||
|  |           text: `${this.$t('福利加权收益拨比')}(%)`, | ||||||
|  |           checked: false, | ||||||
|  |           prop: 'retailBenefitIncomeRate', | ||||||
|  |           total: 'retailBenefitIncomeRateSum' | ||||||
|  |         }, | ||||||
|  |         { | ||||||
|  |           id: 22, | ||||||
|  |           text: `${this.$t('福利极差收益')}(¥)`, | ||||||
|  |           checked: false, | ||||||
|  |           prop: 'retailBenefitRangeIncome', | ||||||
|  |           total: 'retailBenefitRangeIncomeSum' | ||||||
|  |         }, | ||||||
|  |         { | ||||||
|  |           id: 23, | ||||||
|  |           text: `${this.$t('福利极差收益拨比')}(%)`, | ||||||
|  |           checked: false, | ||||||
|  |           prop: 'retailBenefitRangeIncomeRate', | ||||||
|  |           total: 'benefitRangeIncomeRateSum' | ||||||
|  |         }, | ||||||
|  |         { | ||||||
|  |           id: 24, | ||||||
|  |           text: `${this.$t('商城重消')}(¥)`, | ||||||
|  |           checked: false, | ||||||
|  |           prop: 'backPoints', | ||||||
|  |           total: 'backPointsSum' | ||||||
|  |         }, | ||||||
|  |         { | ||||||
|  |           id: 25, | ||||||
|  |           text: `${this.$t('商城重消拨比')}(%)`, | ||||||
|  |           checked: false, | ||||||
|  |           prop: 'backPointsRate', | ||||||
|  |           total: 'backPointsRateSum' | ||||||
|  |         }, | ||||||
|         // { |         // { | ||||||
|         //   id: 19, |         //   id: 19, | ||||||
|         //   text: `${'复购极差收益'}(¥)`, |         //   text: `${'复购极差收益'}(¥)`, | ||||||
|  | @ -527,15 +575,22 @@ export default { | ||||||
|           text: `${'总拨出金额'}(¥)`, |           text: `${'总拨出金额'}(¥)`, | ||||||
|           checked: false, |           checked: false, | ||||||
|           prop: 'totalBonus', |           prop: 'totalBonus', | ||||||
|           total: 'totalBonus' |           total: 'totalBonusSum' | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|           id: 27, |           id: 27, | ||||||
|           text: '总拨出比例' + '(%)', |           text: '总拨出比例' + '(%)', | ||||||
|           checked: false, |           checked: false, | ||||||
|           prop: 'totalBonusRate', |           prop: 'totalBonusRate', | ||||||
|           total: 'totalBonusRate' |           total: 'totalBonusRateSum' | ||||||
|         } |         } | ||||||
|  | 
 | ||||||
|  |         // { | ||||||
|  |         //   id: 28, | ||||||
|  |         //   text: '截止日期', | ||||||
|  |         //   checked: false, | ||||||
|  |         //   prop: 'endDate', | ||||||
|  |         // }, | ||||||
|       ], |       ], | ||||||
|       creationTime: [], |       creationTime: [], | ||||||
|       creationTime1: [], |       creationTime1: [], | ||||||
|  | @ -576,8 +631,6 @@ export default { | ||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   mounted() { |   mounted() { | ||||||
|     // 初始化日期为昨天 |  | ||||||
|     this.creationTime = this.getYesterdayRange() |  | ||||||
|     // 获取下拉 |     // 获取下拉 | ||||||
|     this.getData() |     this.getData() | ||||||
|     // 获取列表 |     // 获取列表 | ||||||
|  | @ -585,15 +638,6 @@ export default { | ||||||
|     // this.getUserRoute(); |     // this.getUserRoute(); | ||||||
|   }, |   }, | ||||||
|   methods: { |   methods: { | ||||||
|     // 获取昨天日期范围 [昨天, 昨天] |  | ||||||
|     getYesterdayRange() { |  | ||||||
|       const yesterday = new Date() |  | ||||||
|       yesterday.setDate(yesterday.getDate() - 1) |  | ||||||
|       const yesterdayStr = yesterday.getFullYear() + '-' + |  | ||||||
|         String(yesterday.getMonth() + 1).padStart(2, '0') + '-' + |  | ||||||
|         String(yesterday.getDate()).padStart(2, '0') |  | ||||||
|       return [yesterdayStr, yesterdayStr] |  | ||||||
|     }, |  | ||||||
|     getPkBdVertexStr(e) { |     getPkBdVertexStr(e) { | ||||||
|       const arr = e.map((item) => item[1]) |       const arr = e.map((item) => item[1]) | ||||||
|       const pkBdVertexStr = arr.join(',') |       const pkBdVertexStr = arr.join(',') | ||||||
|  | @ -651,7 +695,7 @@ export default { | ||||||
|         pkTeamCodeStr: '', |         pkTeamCodeStr: '', | ||||||
|         pkBdVertexStr: '' |         pkBdVertexStr: '' | ||||||
|       } |       } | ||||||
|       this.creationTime = this.getYesterdayRange() |       this.creationTime = [] | ||||||
|     }, |     }, | ||||||
|     getData() { |     getData() { | ||||||
|       api.accountList().then((res) => { |       api.accountList().then((res) => { | ||||||
|  |  | ||||||
|  | @ -240,53 +240,67 @@ export default { | ||||||
|           prop: 'memberName' |           prop: 'memberName' | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|           text: `${'精品专区金额'}`, |           text: `${'首购金额'}(¥)`, | ||||||
|           prop: 'mainRegAmount' |           prop: 'firstPurchaseAll' | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|           text: `精品专区奖金`, |           text: `首购金额占比(%)`, | ||||||
|  |           prop: 'firstPurchaseRatio' | ||||||
|  |         }, | ||||||
|  | 
 | ||||||
|  |         { | ||||||
|  |           text: `首购奖金(¥)`, | ||||||
|           prop: 'mainBonus' |           prop: 'mainBonus' | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|           text: `精品专区拨比(%)`, |           text: `首购金额拨比(%)`, | ||||||
|           prop: 'mainBonusRate' |           prop: 'mainBonusRate' | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|           text: `${'商城专区金额'}`, |           text: '首购PV拨比(%)', | ||||||
|           prop: 'mainRepurAmount' |           prop: 'mainBonusPvRate' | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|           text: `商城专区奖金`, |           text: '直推拨比(%)', | ||||||
|           prop: 'mainRepurBonus' |           prop: 'introduceBonusRate' | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|           text: `商城专区拨比(%)`, |           text: '拓展拨比(%)', | ||||||
|           prop: 'mainRepurBonusRate' |           prop: 'orgBonusRate' | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|           text: `${'五折专区金额'}`, |           text: '服务补贴拨比(%)', | ||||||
|           prop: 'retailConsumeAmount' |           prop: 'serviceBonusRate' | ||||||
|  |         }, | ||||||
|  | 
 | ||||||
|  |         { | ||||||
|  |           text: '复购金额(¥)', | ||||||
|  |           prop: 'repurchaseAllAmount' | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|           text: `五折专区奖金`, |           text: '复购奖金(¥)', | ||||||
|           prop: 'retailConsumeBonus' |           prop: 'repurBonus' | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|           text: `五折专区拨比(%)`, |           text: '复购金额拨比(%)', | ||||||
|           prop: 'retailConsumeBonusRate' |           prop: 'repurBonusRate' | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|           text: `合计金额`, |           text: '复购PV拨比(%)', | ||||||
|           prop: 'totalAmount' |           prop: 'repurBonusPvRate' | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|           text: `${'总拨出金额'}`, |           text: `拓展平均碰次`, | ||||||
|           prop: 'totalBonus' |           prop: 'orgAvTouch' | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|           text: `总拨出比例(%)`, |           text: `拓展最高碰次`, | ||||||
|           prop: 'totalBonusRate' |           prop: 'orgMaxTouch' | ||||||
|         }, |         }, | ||||||
|  |         { | ||||||
|  |           text: `拓展封顶人数`, | ||||||
|  |           prop: 'orgTopNumber' | ||||||
|  |         } | ||||||
|       ], |       ], | ||||||
|       creationTime: [], |       creationTime: [], | ||||||
|       creationTime1: [], |       creationTime1: [], | ||||||
|  | @ -326,21 +340,12 @@ export default { | ||||||
|   }, |   }, | ||||||
|   mounted() { |   mounted() { | ||||||
|     // 获取下拉 |     // 获取下拉 | ||||||
|     this.creationTime = this.getYesterdayRange() |  | ||||||
|     this.getData() |     this.getData() | ||||||
|     // 获取列表 |     // 获取列表 | ||||||
|     this.getDataList() |     this.getDataList() | ||||||
|     // this.getUserRoute(); |     // this.getUserRoute(); | ||||||
|   }, |   }, | ||||||
|   methods: { |   methods: { | ||||||
|     getYesterdayRange() { |  | ||||||
|       const yesterday = new Date() |  | ||||||
|       yesterday.setDate(yesterday.getDate() - 1) |  | ||||||
|       const yesterdayStr = yesterday.getFullYear() + '-' + |  | ||||||
|         String(yesterday.getMonth() + 1).padStart(2, '0') + '-' + |  | ||||||
|         String(yesterday.getDate()).padStart(2, '0') |  | ||||||
|       return [yesterdayStr, yesterdayStr] |  | ||||||
|     }, |  | ||||||
|     getTotal() { |     getTotal() { | ||||||
|       api |       api | ||||||
|         .topSubtotal(Object.assign({}, this.queryParams, this.select)) |         .topSubtotal(Object.assign({}, this.queryParams, this.select)) | ||||||
|  | @ -378,7 +383,7 @@ export default { | ||||||
|         pkTeamCodeStr: '', |         pkTeamCodeStr: '', | ||||||
|         pkBdVertexStr: '' |         pkBdVertexStr: '' | ||||||
|       } |       } | ||||||
|       this.creationTime = this.getYesterdayRange() |       this.creationTime = [] | ||||||
|     }, |     }, | ||||||
|     getData() { |     getData() { | ||||||
|       api.accountList().then((res) => { |       api.accountList().then((res) => { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue