|
@@ -2,13 +2,13 @@
|
|
|
<view class="home">
|
|
|
<view class="top_view">
|
|
|
<u-navbar :title-bold="true" :border-bottom="false"
|
|
|
- :background="{ background: `rgba(64, 118, 214, ${scroll_top / 100})` }" :is-back="false" title=" ">
|
|
|
+ :background="{ background: `rgba(14, 9, 21, ${scroll_top / 100})` }" :is-back="false" title=" ">
|
|
|
<view class="title">{{ enterprise.enterpriseName || '工作台' }}</view>
|
|
|
</u-navbar>
|
|
|
<!-- <uniStatusBar></uniStatusBar> -->
|
|
|
<!-- <view class="title">{{ enterprise.enterpriseName || '--' }}</view> -->
|
|
|
<view class="user_img clearfix">
|
|
|
- <view class="img">
|
|
|
+ <view class="img" @click="setYg()">
|
|
|
<image :src="enterprise.logo" mode="aspectFill"></image>
|
|
|
<span class="img_title">{{ userInfo.name }}</span>
|
|
|
</view>
|
|
@@ -98,17 +98,17 @@
|
|
|
</view>
|
|
|
</view> -->
|
|
|
<!-- 内容 -->
|
|
|
- <view class="content">
|
|
|
+ <view class="content" >
|
|
|
<!-- 工作台 -->
|
|
|
- <view class="content_main" style="margin-top: 0;">
|
|
|
+ <view class="content_main" style="margin-top: 0;" v-if="roleType == 2">
|
|
|
<view class="content_top clearfix"
|
|
|
style="background: linear-gradient(270deg, #FDFFFE 0%, #EAFEEE 100%);">
|
|
|
<image src="../../static/img/ic-work.png" class="img"></image>
|
|
|
<text class="title-text">工作台</text>
|
|
|
- <view class="edit-btn float_right" @click="goPage('/pages/app/index')">
|
|
|
+ <!-- <view class="edit-btn float_right" @click="goPage('/pages/app/index')">
|
|
|
<u-icon name="edit-pen-fill" color="#4076D6" label-color="#4076D6" size="28" label="编辑"
|
|
|
label-size="28"></u-icon>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
</view>
|
|
|
<view class="cont">
|
|
|
<swiper class="swiper" indicator-color="#B8C0C8" indicator-active-color="#4076D6" :autoplay="false"
|
|
@@ -128,15 +128,15 @@
|
|
|
</swiper>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="content_main" style="margin-top: 0;">
|
|
|
+ <view class="content_main" style="margin-top: 0;" v-if="roleType != 2">
|
|
|
<view class="content_top clearfix"
|
|
|
style="background: linear-gradient(270deg, #FDFFFE 0%, #EAFEEE 100%);">
|
|
|
<image src="../../static/img/ic-work.png" class="img"></image>
|
|
|
<text class="title-text">工作台</text>
|
|
|
- <view class="edit-btn float_right" @click="goPage('/pages/app/index')">
|
|
|
+ <!-- <view class="edit-btn float_right" @click="goPage('/pages/app/index')">
|
|
|
<u-icon name="edit-pen-fill" color="#4076D6" label-color="#4076D6" size="28" label="编辑"
|
|
|
label-size="28"></u-icon>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
</view>
|
|
|
<view class="cont">
|
|
|
<swiper class="swiper" indicator-color="#B8C0C8" indicator-active-color="#4076D6" :autoplay="false"
|
|
@@ -156,7 +156,7 @@
|
|
|
</swiper>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="content_main" v-if="$accessCheck($Access.overview)">
|
|
|
+ <view class="content_main" v-if="$accessCheck($Access.overview) && roleType != 2">
|
|
|
<view class="content_top">
|
|
|
<image src="../../static/img/ic-jy.png" class="img" mode="aspectFill"></image>
|
|
|
<text class="title-text">经营概况</text>
|
|
@@ -228,7 +228,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 订单概况 -->
|
|
|
- <view class="content_main" v-if="$accessCheck($Access.overview)">
|
|
|
+ <view class="content_main" v-if="$accessCheck($Access.overview) && roleType != 2">
|
|
|
<view class="content_top clearfix"
|
|
|
style="background: linear-gradient(270deg, #FFFFFF 0%, #FDF6E8 100%); ">
|
|
|
<view class="float_left">
|
|
@@ -303,7 +303,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 近7日交易统计图 -->
|
|
|
- <view class="content_main" v-if="$accessCheck($Access.overview)">
|
|
|
+ <view class="content_main" v-if="$accessCheck($Access.overview) && roleType != 2">
|
|
|
<view class="content_top" style="background: linear-gradient(270deg, #FDFFFF 0%, #EAFAFE 100%);">
|
|
|
<image src="../../static/img/ic-jyh2.png" class="img" style="vertical-align: middle;"></image>
|
|
|
<text class="title-text">近7日交易趋势</text>
|
|
@@ -314,7 +314,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- tab -->
|
|
|
- <view class="content_main" v-if="$accessCheck($Access.overview)">
|
|
|
+ <view class="content_main" v-if="$accessCheck($Access.overview) && roleType != 2">
|
|
|
<view class="content_top tabs-ul">
|
|
|
<ul class="ul_tag">
|
|
|
<li v-for="(item, index) in tag" :key="index" @click="changeTag(item.value)" class="ul_tag_item"
|
|
@@ -366,9 +366,11 @@
|
|
|
<li class="clearfix progress-li" v-for="(item, index) in ranking.customerRanking"
|
|
|
:key="index">
|
|
|
<view style="width: 450rpx;border: 0;" class="float_left label ellipsis">
|
|
|
- {{ item.customerName }}</view>
|
|
|
+ {{ item.customerName }}
|
|
|
+ </view>
|
|
|
<view style="width: 200rpx;text-align: left;" class="float_right num">
|
|
|
- {{ item.numberOrMoney }}</view>
|
|
|
+ {{ item.numberOrMoney }}
|
|
|
+ </view>
|
|
|
</li>
|
|
|
</ul>
|
|
|
<ul class="progress-ul" v-if="rank_on === 4">
|
|
@@ -377,18 +379,19 @@
|
|
|
<view style="width: 450rpx;border: 0;" class="float_left label">{{ item.supplierName }}
|
|
|
</view>
|
|
|
<view style="width: 200rpx;text-align: left;" class="float_right num">
|
|
|
- {{ item.numberOrMoney }}</view>
|
|
|
+ {{ item.numberOrMoney }}
|
|
|
+ </view>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 员工订单 -->
|
|
|
- <view class="ygdd">
|
|
|
+ <view class="ygdd" v-if="ygYyList.length > 0">
|
|
|
<view class="dd-tit">
|
|
|
<view class="tit-left">
|
|
|
<view class="sx">
|
|
|
-
|
|
|
+
|
|
|
</view>
|
|
|
<view class="">
|
|
|
我的订单
|
|
@@ -399,36 +402,36 @@
|
|
|
<image src="../../static/img/down-right-w.png" mode=""></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="dd-wrap">
|
|
|
+ <view class="dd-wrap" v-for="yyitem in ygYyList" @click="goPage('/pagesS/order/orderinfo?id=' + yyitem.id)">
|
|
|
<view class="dd-id-status">
|
|
|
<view class="dd-stata">
|
|
|
- 待服务
|
|
|
+ {{yyitem.status == 1 ? '已完成': '待服务'}}
|
|
|
</view>
|
|
|
<view class="dd-id">
|
|
|
- ddddadfasfdasdf-adfas
|
|
|
+ {{yyitem.order_id}}
|
|
|
</view>
|
|
|
<view class="dd-status">
|
|
|
已预约
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="dd-info" style="margin-top: 20rpx;">
|
|
|
- 客服名称<text>小圆</text>
|
|
|
+ 客户名称<text>{{yyitem.customer}}</text>
|
|
|
</view>
|
|
|
<view class="dd-info">
|
|
|
- 下单时间<text>2022-11-03 9:30~10:30</text>
|
|
|
+ 下单时间<text>{{$utils.formatDate(yyitem.createTime)}}</text>
|
|
|
</view>
|
|
|
<view class="dd-info">
|
|
|
- 预约时间<text class="chs" style="color:#FF5600;">2022-11-03 9:30~10:30</text>
|
|
|
+ 预约时间<text class="chs" style="color:#FF5600;">{{$utils.formatDate(yyitem.time)}}</text>
|
|
|
</view>
|
|
|
<view class="dd-btm">
|
|
|
<view class="btm-price">
|
|
|
- 订单金额: <text>¥2400</text>
|
|
|
+ 订单金额: <text>¥{{yyitem.to_price}}</text>
|
|
|
</view>
|
|
|
- <view class="btm-btn">
|
|
|
+ <view class="btm-btn" @click.stop="goCall(yyitem.customer_mobile)">
|
|
|
联系客户
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="add-dd" @click="goPage('/pagesS/order/addorder')">
|
|
|
+ <view class="add-dd" @click.stop="goPage('/pagesS/order/addorder?id=' + yyitem.id)" v-if="yyitem.status == 0">
|
|
|
<image src="../../static/img/add-dd.png" mode=""></image>
|
|
|
<view class="">
|
|
|
添加项目
|
|
@@ -528,45 +531,46 @@
|
|
|
access: 'salesRanking'
|
|
|
},
|
|
|
{
|
|
|
- url: '/pagesS/yg/dkdetail',
|
|
|
+ url: '/pagesS/yg/dkdetail?type=yg',
|
|
|
label: '考勤记录',
|
|
|
- icon: 'custom-icon-paihangbang',
|
|
|
- color: '#f29611',
|
|
|
+ icon: 'custom-icon-liulanjilu-tianchong',
|
|
|
+ color: '#7747EE',
|
|
|
access: 'salesRanking'
|
|
|
},
|
|
|
{
|
|
|
url: '/pagesS/yg/gqdetail',
|
|
|
label: '股权管理',
|
|
|
- icon: 'custom-icon-piliangxiadan',
|
|
|
- color: '#f29611',
|
|
|
+ icon: 'custom-icon-group_fill',
|
|
|
+ color: '#4076D6',
|
|
|
access: 'OrderAdd'
|
|
|
},
|
|
|
{
|
|
|
url: '/pagesS/yg/yjjl',
|
|
|
label: '业绩奖励',
|
|
|
- icon: 'custom-icon-piliangxiadan',
|
|
|
- color: '#f29611',
|
|
|
+ icon: 'custom-icon-xiaoshouyuce',
|
|
|
+ color: '#5c6aff',
|
|
|
access: 'OrderAdd'
|
|
|
},
|
|
|
{
|
|
|
- url: '/pagesS/yg/gztx',
|
|
|
+ // url: '/pagesS/yg/gztx',
|
|
|
+ url: '/pagesS/yg/gzdetail?type=yg',
|
|
|
label: '工资提现',
|
|
|
- icon: 'custom-icon-piliangxiadan',
|
|
|
- color: '#f29611',
|
|
|
+ icon: 'custom-icon-mingxi',
|
|
|
+ color: '#5c6aff',
|
|
|
access: 'OrderAdd'
|
|
|
},
|
|
|
{
|
|
|
- url: '/pagesS/yg/ygdetail',
|
|
|
+ url: '/pagesS/yg/ygdetail?type=yg',
|
|
|
label: '我的评价',
|
|
|
- icon: 'custom-icon-piliangxiadan',
|
|
|
- color: '#f29611',
|
|
|
+ icon: 'custom-icon-quehuoshangpinshu',
|
|
|
+ color: '#5c6aff',
|
|
|
access: 'OrderAdd'
|
|
|
},
|
|
|
{
|
|
|
url: '/pagesS/yg/myteam',
|
|
|
label: '我的转介绍',
|
|
|
- icon: 'custom-icon-piliangxiadan',
|
|
|
- color: '#f29611',
|
|
|
+ icon: 'custom-icon-tiaobodanguanli',
|
|
|
+ color: '#7747EE',
|
|
|
access: 'OrderAdd'
|
|
|
}
|
|
|
]
|
|
@@ -582,55 +586,57 @@
|
|
|
{
|
|
|
url: '/pagesT/customer/selCustomert',
|
|
|
label: '客户拜访',
|
|
|
- icon: 'custom-icon-fuwu',
|
|
|
- color: '#f29611',
|
|
|
+ icon: 'custom-icon-baifang',
|
|
|
+ color: '#5c6aff',
|
|
|
access: 'CustomerListvisitedLogs'
|
|
|
},
|
|
|
{
|
|
|
url: '/pagesS/goods/xhplist',
|
|
|
label: '消耗品管理',
|
|
|
- icon: 'custom-icon-fuwu',
|
|
|
+ icon: 'custom-icon-shangpin2',
|
|
|
color: '#f29611',
|
|
|
access: 'CustomerListvisitedLogs'
|
|
|
},
|
|
|
{
|
|
|
url: '/pagesS/goods/valetbuy',
|
|
|
label: '代客预约',
|
|
|
- icon: 'custom-icon-fuwu',
|
|
|
- color: '#f29611',
|
|
|
+ icon: 'custom-icon-tuikuan',
|
|
|
+ color: '#e8443c',
|
|
|
access: 'CustomerListvisitedLogs'
|
|
|
},
|
|
|
{
|
|
|
url: '/pagesS/yg/dklist',
|
|
|
label: '员工打卡',
|
|
|
- icon: 'custom-icon-fuwu',
|
|
|
- color: '#f29611',
|
|
|
+ icon: 'custom-icon-liulanjilu-tianchong',
|
|
|
+ color: '#7747EE',
|
|
|
access: 'CustomerListvisitedLogs'
|
|
|
},
|
|
|
{
|
|
|
url: '/pagesS/yg/yglist?type=yg',
|
|
|
label: '门店员工',
|
|
|
- icon: 'custom-icon-fuwu',
|
|
|
- color: '#f29611',
|
|
|
+ icon: 'custom-icon-quehuoshangpinshu',
|
|
|
+ color: '#5c6aff',
|
|
|
access: 'CustomerListvisitedLogs'
|
|
|
},
|
|
|
{
|
|
|
url: '/pagesS/yg/yglist?type=gz',
|
|
|
label: '工资表',
|
|
|
- icon: 'custom-icon-fuwu',
|
|
|
- color: '#f29611',
|
|
|
+ icon: 'custom-icon-yue',
|
|
|
+ color: '#7747EE',
|
|
|
access: 'CustomerListvisitedLogs'
|
|
|
},
|
|
|
{
|
|
|
url: '/pages/order/OrderAdd',
|
|
|
label: '代客下单',
|
|
|
- icon: 'custom-icon-piliangxiadan',
|
|
|
- color: '#f29611',
|
|
|
+ icon: 'custom-icon-shoukuandanguanli',
|
|
|
+ color: '#5c6aff',
|
|
|
access: 'OrderAdd'
|
|
|
}
|
|
|
]
|
|
|
],
|
|
|
- scroll_top: 0
|
|
|
+ scroll_top: 0,
|
|
|
+ ygYyList: [],
|
|
|
+ roleType: 1,
|
|
|
};
|
|
|
},
|
|
|
onPageScroll(e) {
|
|
@@ -664,7 +670,12 @@
|
|
|
await this.getBasicSetup();
|
|
|
},
|
|
|
async onShow() {
|
|
|
+ this.roleType = uni.getStorageSync('roleType')
|
|
|
+ if(this.roleType == 2) {
|
|
|
+ this.getYgYyList()
|
|
|
+ }
|
|
|
// await this.getCommonAppInfo();
|
|
|
+
|
|
|
},
|
|
|
async onPullDownRefresh() {
|
|
|
await this.overview();
|
|
@@ -673,6 +684,31 @@
|
|
|
},
|
|
|
onShareAppMessage(res) {},
|
|
|
methods: {
|
|
|
+ setYg() {
|
|
|
+ let roleType = uni.getStorageSync('roleType')
|
|
|
+ if(roleType == 2) {
|
|
|
+ this.goPage('/pagesS/yg/setInfo')
|
|
|
+ }
|
|
|
+ },
|
|
|
+ goCall(phone) {
|
|
|
+ console.log(phone,'打电话');
|
|
|
+ uni.makePhoneCall({
|
|
|
+ phoneNumber: phone
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getYgYyList() {
|
|
|
+ this.$u.api.getYgYyList({
|
|
|
+ "page": 1, //分页页码,数字类型
|
|
|
+ "pageSize": 3,
|
|
|
+ "name": "", //搜索条件
|
|
|
+ "type": ''
|
|
|
+ }).then(({
|
|
|
+ data
|
|
|
+ }) => {
|
|
|
+ console.log(data, '员工订单')
|
|
|
+ this.ygYyList = data
|
|
|
+ })
|
|
|
+ },
|
|
|
...mapActions({
|
|
|
logout: 'logout'
|
|
|
}),
|
|
@@ -801,7 +837,8 @@
|
|
|
|
|
|
.home {
|
|
|
font-family: DIN-Medium;
|
|
|
-
|
|
|
+ height: 100vh;
|
|
|
+ background-color: #0e0915;
|
|
|
.top_bottom {
|
|
|
width: 686rpx;
|
|
|
margin: 0 auto;
|
|
@@ -849,7 +886,7 @@
|
|
|
.top_view {
|
|
|
padding: 0 32rpx 164rpx;
|
|
|
// height: calc(500rpx + var(--status-bar-height));
|
|
|
- background: linear-gradient(#4076d6, #4076d6, #4076d6, #4076d6, #f5f5f6 100%);
|
|
|
+ // background: linear-gradient(#4076d6, #4076d6, #4076d6, #4076d6, #f5f5f6 100%);
|
|
|
|
|
|
.title {
|
|
|
padding-left: 32rpx;
|
|
@@ -860,7 +897,6 @@
|
|
|
|
|
|
.user_img {
|
|
|
margin-top: 52rpx;
|
|
|
-
|
|
|
.img {
|
|
|
float: left;
|
|
|
|
|
@@ -1272,24 +1308,30 @@
|
|
|
border-radius: 12rpx;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.ygdd {
|
|
|
width: 100%;
|
|
|
background-color: #0c0a16;
|
|
|
padding-bottom: 20rpx;
|
|
|
+
|
|
|
.dd-tit {
|
|
|
padding: 0 37rpx;
|
|
|
height: 95rpx;
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
|
- .tit-left, .tit-right {
|
|
|
+
|
|
|
+ .tit-left,
|
|
|
+ .tit-right {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
}
|
|
|
+
|
|
|
.tit-left {
|
|
|
color: #e3c4a5;
|
|
|
font-size: 30rpx;
|
|
|
font-weight: bold;
|
|
|
+
|
|
|
.sx {
|
|
|
background-color: #e3c4a5;
|
|
|
width: 7rpx;
|
|
@@ -1298,16 +1340,19 @@
|
|
|
margin-right: 20rpx;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.tit-right {
|
|
|
font-size: 24rpx;
|
|
|
font-weight: 500;
|
|
|
color: #FFFFFF;
|
|
|
+
|
|
|
image {
|
|
|
width: 22rpx;
|
|
|
height: 22rpx;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.dd-wrap {
|
|
|
margin: auto;
|
|
|
width: 713rpx;
|
|
@@ -1317,6 +1362,7 @@
|
|
|
padding-top: 35rpx;
|
|
|
position: relative;
|
|
|
margin-bottom: 27rpx;
|
|
|
+
|
|
|
.dd-id-status {
|
|
|
height: 40rpx;
|
|
|
display: flex;
|
|
@@ -1324,6 +1370,7 @@
|
|
|
width: 100%;
|
|
|
font-size: 24rpx;
|
|
|
padding: 0 23rpx 0 43rpx;
|
|
|
+
|
|
|
.dd-stata {
|
|
|
flex-shrink: 0;
|
|
|
width: 123rpx;
|
|
@@ -1332,67 +1379,76 @@
|
|
|
border-radius: 5rpx;
|
|
|
text-align: center;
|
|
|
line-height: 39rpx;
|
|
|
-
|
|
|
+
|
|
|
font-weight: 400;
|
|
|
color: #FFFFFF;
|
|
|
}
|
|
|
+
|
|
|
.dd-id {
|
|
|
margin-left: 15rpx;
|
|
|
flex-grow: 1;
|
|
|
color: #1e395a;
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
+
|
|
|
.dd-status {
|
|
|
flex-shrink: 0;
|
|
|
font-weight: 400;
|
|
|
color: #FCA930;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.dd-info {
|
|
|
font-size: 28rpx;
|
|
|
font-weight: 500;
|
|
|
color: #A0A0A0;
|
|
|
padding-left: 42rpx;
|
|
|
+
|
|
|
text {
|
|
|
padding-left: 32rpx;
|
|
|
font-size: 26rpx;
|
|
|
font-weight: 500;
|
|
|
color: #173456;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
+
|
|
|
.dd-btm {
|
|
|
position: absolute;
|
|
|
bottom: 0;
|
|
|
height: 90rpx;
|
|
|
width: 713rpx;
|
|
|
- background: linear-gradient(to right,#fbf5eb,#ffffff);
|
|
|
+ background: linear-gradient(to right, #fbf5eb, #ffffff);
|
|
|
border-radius: 0 0 20rpx 20rpx;
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
|
padding: 0 20rpx 0 42rpx;
|
|
|
+
|
|
|
.btm-price {
|
|
|
font-size: 26rpx;
|
|
|
color: #56687f;
|
|
|
+
|
|
|
text {
|
|
|
- color:#ff1e00 ;
|
|
|
+ color: #ff1e00;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.btm-btn {
|
|
|
width: 126rpx;
|
|
|
height: 48rpx;
|
|
|
line-height: 48rpx;
|
|
|
- background:#ebccae;
|
|
|
+ background: #ebccae;
|
|
|
border-radius: 10rpx;
|
|
|
font-size: 24rpx;
|
|
|
font-weight: 400;
|
|
|
color: #0C0A15;
|
|
|
text-align: center;
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
+
|
|
|
.add-dd {
|
|
|
position: absolute;
|
|
|
bottom: 90rpx;
|
|
@@ -1403,15 +1459,15 @@
|
|
|
font-weight: 500;
|
|
|
color: #FF5600;
|
|
|
text-align: center;
|
|
|
+
|
|
|
image {
|
|
|
display: block;
|
|
|
margin: auto;
|
|
|
width: 36rpx;
|
|
|
height: 45rpx;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
</style>
|