|
@@ -3,14 +3,14 @@
|
3
|
3
|
<div class="top">
|
4
|
4
|
<topCaseInfo :data="topCaseInfoData" :userName="userInfo.customer.RealName ? userInfo.customer.RealName : userInfo.customer.Name" @selectCase="showVanPicker"></topCaseInfo>
|
5
|
5
|
</div>
|
6
|
|
- <nav class="flex-h" v-if="userInfo.customer.MapUser !== ''">
|
|
6
|
+ <nav class="flex-h" v-if="userInfo.customer.MapUser !== '' && fromPage === 'sales'">
|
7
|
7
|
<a class="flex-item" v-for="(item,index) in cutNavList" :key="index" v-if="userInfo.customer.UserTypeId !== 'manager' || item.id !== '4'" :class="{'active': navActive === index}" @click="cutNav(index)">{{item.value}}</a>
|
8
|
8
|
</nav>
|
9
|
9
|
<div class="content">
|
10
|
10
|
<div>
|
11
|
11
|
<ul>
|
12
|
12
|
<li :hidden="navActive !== 0 && userInfo.customer.MapUser !== ''" class="placeOrder">
|
13
|
|
- <div class="topInfo flex-h" v-if="userInfo.customer.MapUser !== ''">
|
|
13
|
+ <div class="topInfo flex-h" v-if="userInfo.customer.MapUser !== '' && fromPage === 'sales'">
|
14
|
14
|
<div class="flex-item">
|
15
|
15
|
<div>
|
16
|
16
|
<span>共计已使用:{{caseTotal.total}}杯</span>
|
|
@@ -146,6 +146,7 @@ export default {
|
146
|
146
|
name: '',
|
147
|
147
|
data () {
|
148
|
148
|
return {
|
|
149
|
+ fromPage: '',
|
149
|
150
|
myRecommendUserList: [],
|
150
|
151
|
forbidList: [],
|
151
|
152
|
postCustomerData: {
|
|
@@ -261,6 +262,7 @@ export default {
|
261
|
262
|
noMore
|
262
|
263
|
},
|
263
|
264
|
created () {
|
|
265
|
+ this.fromPage = sessionStorage.getItem('from')
|
264
|
266
|
if (!this.userInfo.customer.MapUser) {
|
265
|
267
|
this.topCaseInfoData.ShowSelect = true
|
266
|
268
|
}
|
|
@@ -562,7 +564,7 @@ export default {
|
562
|
564
|
toOrders (subItem, item) {
|
563
|
565
|
const _that = this
|
564
|
566
|
this.getCaseConf({ caseid: subItem.CaseId }).then(res => {
|
565
|
|
- if (this.checkCanOrder()) {
|
|
567
|
+ if (this.checkCanOrder() && sessionStorage.getItem('from') === 'sales') {
|
566
|
568
|
_that.$toast('您的点单功能已被关闭!')
|
567
|
569
|
return
|
568
|
570
|
}
|