|
@@ -44,7 +44,7 @@
|
|
height: capsule.height + 'px',
|
|
height: capsule.height + 'px',
|
|
lineHeight: capsule.height + 'px;'
|
|
lineHeight: capsule.height + 'px;'
|
|
}"
|
|
}"
|
|
- v-if="listQuery.manager > 0"
|
|
|
|
|
|
+ v-if="isManage && tabSmallCurrentIndex == 1"
|
|
@click="showRightDrawer"
|
|
@click="showRightDrawer"
|
|
>
|
|
>
|
|
<text class="iconfont icon-shaixuan"></text>
|
|
<text class="iconfont icon-shaixuan"></text>
|
|
@@ -61,7 +61,7 @@
|
|
<text class="item-text">{{ item.name }}<text class="line"></text></text>
|
|
<text class="item-text">{{ item.name }}<text class="line"></text></text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="search-smalltab" v-if="listQuery.manager > 0">
|
|
|
|
|
|
+ <view class="search-smalltab" v-if="isManage">
|
|
<view
|
|
<view
|
|
class="tab-item"
|
|
class="tab-item"
|
|
v-for="(item, index) in listItemTab"
|
|
v-for="(item, index) in listItemTab"
|
|
@@ -73,7 +73,7 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="club-main" :style="{ paddingTop: listQuery.manager > 0 ? '374rpx' : '268rpx' }">
|
|
|
|
|
|
+ <view class="club-main" :style="{ paddingTop: isManage ? '374rpx' : '268rpx' }">
|
|
<view v-if="isEmpty" class="empty-container">
|
|
<view v-if="isEmpty" class="empty-container">
|
|
<image
|
|
<image
|
|
class="club-empty-image"
|
|
class="club-empty-image"
|
|
@@ -103,11 +103,13 @@
|
|
<text class="tags sv" v-if="club.vipFlag == 1">SVIP</text>
|
|
<text class="tags sv" v-if="club.vipFlag == 1">SVIP</text>
|
|
<text class="tags xf" v-if="club.newDeal === 1">新分配</text>
|
|
<text class="tags xf" v-if="club.newDeal === 1">新分配</text>
|
|
</view>
|
|
</view>
|
|
- <view class="list-ntel">
|
|
|
|
|
|
+ <view class="list-ntel" v-if="tabSmallCurrentIndex === 1">
|
|
|
|
+ <text class="list-link">销售:{{ club.serviceName ? club.serviceName : '' }}</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="list-ntel" v-else>
|
|
<text class="list-link">{{ club.linkMan ? club.linkMan : '' }}</text>
|
|
<text class="list-link">{{ club.linkMan ? club.linkMan : '' }}</text>
|
|
<text class="list-texl">{{ club.contractMobile ? club.contractMobile : '' }}</text>
|
|
<text class="list-texl">{{ club.contractMobile ? club.contractMobile : '' }}</text>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="list-cell-btn">
|
|
<view class="list-cell-btn">
|
|
@@ -121,7 +123,7 @@
|
|
{{ showBadge(club.orderNum) }}
|
|
{{ showBadge(club.orderNum) }}
|
|
</text>
|
|
</text>
|
|
</view>
|
|
</view>
|
|
- <view class="btn" @click.stop="handleReplaceClub(club)">更换协销</view>
|
|
|
|
|
|
+ <view class="btn" v-if="isManage && club.serviceProviderId != 1342" @click.stop="handleReplaceClub(club)">更换协销</view>
|
|
<view class="btn" @click.stop="handleClubinfo(club)" v-if="club.recordCount === 1"
|
|
<view class="btn" @click.stop="handleClubinfo(club)" v-if="club.recordCount === 1"
|
|
>注册行为记录</view
|
|
>注册行为记录</view
|
|
>
|
|
>
|
|
@@ -149,6 +151,7 @@
|
|
<!-- 筛选抽屉 -->
|
|
<!-- 筛选抽屉 -->
|
|
<cm-clubDrawer
|
|
<cm-clubDrawer
|
|
ref="screendrawer"
|
|
ref="screendrawer"
|
|
|
|
+ v-if="rightDrawer"
|
|
:rightDrawer="rightDrawer"
|
|
:rightDrawer="rightDrawer"
|
|
@handSearchConfirm="handSearchConfirmData"
|
|
@handSearchConfirm="handSearchConfirmData"
|
|
>
|
|
>
|
|
@@ -165,6 +168,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import { mapState, mapMutations } from 'vuex'
|
|
import authorize from '@/common/config/authorize.js'
|
|
import authorize from '@/common/config/authorize.js'
|
|
import tuiLoadmore from '@/components/tui-components/loadmore/loadmore'
|
|
import tuiLoadmore from '@/components/tui-components/loadmore/loadmore'
|
|
import tuiNomore from '@/components/tui-components/nomore/nomore'
|
|
import tuiNomore from '@/components/tui-components/nomore/nomore'
|
|
@@ -178,9 +182,8 @@ const defaultListQuery = {
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
spId: 0,
|
|
spId: 0,
|
|
status: 90,
|
|
status: 90,
|
|
- manager:0,
|
|
|
|
- leaderId:0,
|
|
|
|
type:1,
|
|
type:1,
|
|
|
|
+ groupServiceId:0
|
|
|
|
|
|
}
|
|
}
|
|
export default {
|
|
export default {
|
|
@@ -218,15 +221,19 @@ export default {
|
|
salesParams: {
|
|
salesParams: {
|
|
clubId: 0,
|
|
clubId: 0,
|
|
spId: 0
|
|
spId: 0
|
|
- }
|
|
|
|
|
|
+ },
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- onLoad() {},
|
|
|
|
|
|
+ onLoad() {
|
|
|
|
+ console.log('isManage',this.isManage)
|
|
|
|
+ },
|
|
|
|
+ computed: {
|
|
|
|
+ ...mapState(['isManage'])
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
async initGetStotage() {
|
|
async initGetStotage() {
|
|
const userInfo = await this.$api.getStorage()
|
|
const userInfo = await this.$api.getStorage()
|
|
this.listQuery.spId = userInfo.serviceProviderId ? userInfo.serviceProviderId : 0
|
|
this.listQuery.spId = userInfo.serviceProviderId ? userInfo.serviceProviderId : 0
|
|
- this.listQuery.manager = userInfo.manager ? userInfo.manager : 0
|
|
|
|
this.GetSellerClubList()
|
|
this.GetSellerClubList()
|
|
},
|
|
},
|
|
GetSellerClubList() {
|
|
GetSellerClubList() {
|
|
@@ -340,18 +347,21 @@ export default {
|
|
this.listQuery.type = 1
|
|
this.listQuery.type = 1
|
|
this.listQuery.status = 90
|
|
this.listQuery.status = 90
|
|
this.listQuery.pageNum = 1
|
|
this.listQuery.pageNum = 1
|
|
|
|
+ this.listQuery.groupServiceId = 0
|
|
this.GetSellerClubList()
|
|
this.GetSellerClubList()
|
|
break
|
|
break
|
|
case 1:
|
|
case 1:
|
|
this.listQuery.type = 2
|
|
this.listQuery.type = 2
|
|
this.listQuery.status = 90
|
|
this.listQuery.status = 90
|
|
this.listQuery.pageNum = 1
|
|
this.listQuery.pageNum = 1
|
|
|
|
+ this.listQuery.groupServiceId = 0
|
|
this.GetSellerClubList()
|
|
this.GetSellerClubList()
|
|
break
|
|
break
|
|
case 2:
|
|
case 2:
|
|
this.listQuery.type = 3
|
|
this.listQuery.type = 3
|
|
this.listQuery.status = 90
|
|
this.listQuery.status = 90
|
|
this.listQuery.pageNum = 1
|
|
this.listQuery.pageNum = 1
|
|
|
|
+ this.listQuery.groupServiceId = 0
|
|
this.GetSellerClubList()
|
|
this.GetSellerClubList()
|
|
break
|
|
break
|
|
}
|
|
}
|
|
@@ -359,7 +369,7 @@ export default {
|
|
handSearchConfirmData(data) {
|
|
handSearchConfirmData(data) {
|
|
console.log('确定筛选', data)
|
|
console.log('确定筛选', data)
|
|
//确定筛选
|
|
//确定筛选
|
|
- this.listQuery.startAddTime = data.startAddTime
|
|
|
|
|
|
+ this.listQuery.groupServiceId = data.serviceProviderId
|
|
this.GetSellerClubList()
|
|
this.GetSellerClubList()
|
|
},
|
|
},
|
|
handleChoiceaSellerData(data) {
|
|
handleChoiceaSellerData(data) {
|