Commit 8cc1fe18 by 匡雅琴

添加传值渠道

1 parent de2f5fc7
......@@ -16,8 +16,8 @@ const state = {
boutique: {
year: '',
channel: {
label: '',
value: ''
label: '全部渠道',
value: 'all'
}
}
}
......
......@@ -94,13 +94,16 @@ export default {
methods: {
init() {
const _year = this.$store.state.app.solarYear
this.getAllMerchantRank(_year)
const { boutique } = this.$store.state.app
const params = {
year: boutique.year,
channelName: boutique.channel.value
}
this.getAllMerchantRank(params)
},
// 获取门店总产值、客单价、转化率排行
async getAllMerchantRank(year) {
const _data = await this.api.boutique.getAllMerchantRank({ year })
console.log(_data);
async getAllMerchantRank(params) {
const _data = await this.api.boutique.getAllMerchantRank(params)
const { conversionRateRank, outputvalueRank, perCusTransRank } = _data.data.dataList[0]
this.storeOutputList = outputvalueRank
this.storePriceList = perCusTransRank
......
......@@ -75,13 +75,16 @@ export default {
methods: {
init() {
const _year = this.$store.state.app.solarYear
this.getAllStaffRank(_year)
const { boutique } = this.$store.state.app
const params = {
year: boutique.year,
channelName: boutique.channel.value
}
this.getAllStaffRank(params)
},
// 获取门店员工业绩、客单价、转化率排行
async getAllStaffRank(year) {
const _data = await this.api.boutique.getAllStaffRank({ year })
console.log(_data);
async getAllStaffRank(params) {
const _data = await this.api.boutique.getAllStaffRank(params)
const { performanceRank, perCusTransRank, conversionRateRank } = _data.data.dataList[0]
this.staffOutputList = performanceRank
this.staffPriceList = perCusTransRank
......
......@@ -6,11 +6,11 @@
</template>
<script>
import { changeMixin } from '@/mixins'
import { boutiqueMixin } from '@/mixins'
import BusinessDetailTrends from './BusinessDetailTrends.vue'
export default {
name: 'BoutiqueDetailLeft',
mixins: [changeMixin],
mixins: [boutiqueMixin],
components: {
BusinessDetailTrends
},
......
......@@ -33,13 +33,13 @@
<script>
import BarLineChart from '../boutique/BarLineChart.vue'
import { changeMixin } from '@/mixins'
import { boutiqueMixin } from '@/mixins'
export default {
name: 'BusinessDetailTrends',
components: {
BarLineChart
},
mixins: [changeMixin],
mixins: [boutiqueMixin],
props: {
merchantid: String
},
......
......@@ -16,11 +16,11 @@
</template>
<script>
import { changeMixin } from '@/mixins'
import { boutiqueMixin } from '@/mixins'
import RightViewContent from '../solar/RightViewContent.vue'
export default {
name: 'GoodsPayPropertion',
mixins: [changeMixin],
mixins: [boutiqueMixin],
components: {
RightViewContent
},
......
......@@ -11,10 +11,10 @@
</template>
<script>
import { changeMixin } from '@/mixins'
import { boutiqueMixin } from '@/mixins'
export default {
name: 'GoodsRanking',
mixins: [changeMixin],
mixins: [boutiqueMixin],
props: {
merchantid: String
},
......
......@@ -16,11 +16,11 @@
</template>
<script>
import { changeMixin } from '@/mixins'
import { boutiqueMixin } from '@/mixins'
import RightViewContent from '../solar/RightViewContent.vue'
export default {
name: 'GoodsSupplierPropertion',
mixins: [changeMixin],
mixins: [boutiqueMixin],
components: {
RightViewContent
},
......
......@@ -18,13 +18,13 @@
</template>
<script>
import { changeMixin } from '@/mixins'
import { boutiqueMixin } from '@/mixins'
import BoutiqueDetailLeft from './BoutiqueDetailLeft.vue'
import BoutiqueDetailRight from './BoutiqueDetailRight.vue'
import BoutiqueDetailDate from './BoutiqueDetailDate.vue'
export default {
name: 'BoutiqueDetail',
mixins: [changeMixin],
mixins: [boutiqueMixin],
components: {
BoutiqueDetailLeft,
BoutiqueDetailRight,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!