Commit 177e8319 by 前端

收入

1 parent e6ce6076

7.47 MB | W: | H:

7.51 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -31,7 +31,9 @@ ...@@ -31,7 +31,9 @@
</template> </template>
<script> <script>
import point from '@/mixin/point'
export default { export default {
mixins: [point],
name: 'calendar', name: 'calendar',
props: { props: {
// 是否显示周标题 // 是否显示周标题
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn * @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-08 10:31:49 * @Date: 2025-01-08 10:31:49
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-09 18:26:55 * @LastEditTime: 2025-01-10 09:34:32
* @FilePath: \gl-tape\components\HomeFrame\components\Income\Dailog.vue * @FilePath: \gl-tape\components\HomeFrame\components\Income\Dailog.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<view class="dailog-panel"> <view class="dailog-panel">
<view class="dailog-box" :style="{ width: width }"> <view class="dailog-box" :style="{ width: width }">
<view class="dailog-header flex"> <view class="dailog-header flex">
<view :class="`sprite-icon icon-${icon}`" v-if="icon"></view> <view :class="[`sprite-icon icon-${icon}`, { enlarge: icon }]" v-if="icon"></view>
<view class="sprite-icon icon-income-count" v-else></view> <view class="sprite-icon icon-income-count" v-else></view>
<view class="dailog-title">{{ title }}</view> <view class="dailog-title">{{ title }}</view>
<view class="dailog-close" @click="close"><uni-icons type="closeempty" size="20"></uni-icons></view> <view class="dailog-close" @click="close"><uni-icons type="closeempty" size="20"></uni-icons></view>
...@@ -79,6 +79,10 @@ export default { ...@@ -79,6 +79,10 @@ export default {
font-weight: 600; font-weight: 600;
margin-top: -4rpx; margin-top: -4rpx;
} }
.enlarge {
transform: scale(1.5);
margin-right: 30rpx;
}
.dailog-close { .dailog-close {
margin-left: auto; margin-left: auto;
text-align: right; text-align: right;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn * @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-08 09:51:43 * @Date: 2025-01-08 09:51:43
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-09 18:21:34 * @LastEditTime: 2025-01-10 14:00:53
* @FilePath: \gl-tape\components\HomeFrame\components\Income\Tips.vue * @FilePath: \gl-tape\components\HomeFrame\components\Income\Tips.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -32,10 +32,10 @@ ...@@ -32,10 +32,10 @@
<view class="total-time">截至2025-1-5</view> <view class="total-time">截至2025-1-5</view>
</view> </view>
<view class="total-detail flex"> <view class="total-detail flex">
<view class="month-box"> <view class="month-box" v-for="(item, index) in outputList" :key="index">
<view class="month-header flex"> <view class="month-header flex">
<view class="sprite-icon icon-yw-icon"></view> <view :class="`sprite-icon icon-${item.icon}`"></view>
<text>单延保</text> <text>{{ item.sence }}</text>
</view> </view>
<view class="value-box flex"> <view class="value-box flex">
<view class="value-desc flex"> <view class="value-desc flex">
...@@ -54,39 +54,11 @@ ...@@ -54,39 +54,11 @@
</view> </view>
</view> </view>
<view class="value-detail"> <view class="value-detail">
<view class="detail-item" v-for="(item, index) in 3"> <view class="detail-item" v-for="(v, k) in outputDetail" :key="k">
<view class="detail-label"> <view class="detail-label">
<text>渗透率</text> <text>{{ v.label }}</text>
<uni-icons type="help" size="15" color="#A2A2A8"></uni-icons> <uni-icons type="help" size="15" color="#A2A2A8" v-if="v.content" @click="clickTips(v)"></uni-icons>
</view>
<view class="detail-num">54</view>
</view>
</view>
</view>
<view class="month-box">
<view class="month-header flex">
<view class="sprite-icon icon-yw-icon"></view>
<text>单延保</text>
</view>
<view class="value-box flex">
<view class="value-desc flex">
<view class="value-title">产值</view>
<view class="value-price">
<text>¥</text>
217,200
</view>
</view>
<view class="value-desc flex">
<view class="value-title">成交</view>
<view class="value-price">
17
<text>单</text>
</view>
</view> </view>
</view>
<view class="value-detail">
<view class="detail-item" v-for="(item, index) in 3">
<view class="detail-label">渗透率</view>
<view class="detail-num">54</view> <view class="detail-num">54</view>
</view> </view>
</view> </view>
...@@ -118,7 +90,7 @@ ...@@ -118,7 +90,7 @@
<view class="income-detail-item flex" v-for="(item, index) in IncomeList" :key="index"> <view class="income-detail-item flex" v-for="(item, index) in IncomeList" :key="index">
<view :class="`sprite-icon icon-${item.icon}`"></view> <view :class="`sprite-icon icon-${item.icon}`"></view>
<view class="item-label">{{ item.label }}</view> <view class="item-label">{{ item.label }}</view>
<uni-icons type="help" size="15" color="#A2A2A8"></uni-icons> <uni-icons type="help" size="15" color="#A2A2A8" @click="clickTips(item)"></uni-icons>
<view class="item-value">{{ item.value }}</view> <view class="item-value">{{ item.value }}</view>
<view class="item-next" @click="showDetail(item)"></view> <view class="item-next" @click="showDetail(item)"></view>
</view> </view>
...@@ -127,28 +99,31 @@ ...@@ -127,28 +99,31 @@
</view> </view>
<Dailog @close="show = false" v-if="show" width="1288rpx" :title="detail.label" :icon="detail.icon"> <Dailog @close="show = false" v-if="show" width="1288rpx" :title="detail.label" :icon="detail.icon">
<view class="dailog-body" slot="content"> <view class="dailog-body" slot="content">
<view class="table-container">
<table class="table-box"> <table class="table-box">
<tr class="th"> <tr class="th">
<th v-for="(item, index) in tabelTh" :key="index" :style="{ width: item.width + '%' }">{{ item.title }}</th> <th v-for="(item, index) in tabelTh" :key="index" :style="{ width: item.width + '%' }">{{ item.title }}</th>
</tr> </tr>
<tr class="tr"> <tr class="tr" v-for="(item, index) in tabelTr" :key="index">
<td v-for="(item, index) in tabelTr" :key="index"> <td>{{ index + 1 }}</td>
<ul v-if="item.list"> <td v-for="(colValue, colKey) in item.list" :key="colKey">
<li v-for="(l, i) in item.list">{{ l }}</li> {{ colValue }}
</ul>
<template v-else>
{{ item.content }}
</template>
</td> </td>
</tr> </tr>
</table> </table>
</view>
<view class="table-footer flex"> <view class="table-footer flex">
<text>延保提成合计:</text> <text>{{ detail.label }}合计:</text>
<text class="price">¥ 15465.0</text> <text class="price">¥ 15465.0</text>
</view> </view>
</view> </view>
</Dailog> </Dailog>
<Tips @close="tipsShow = false" v-if="tipsShow" width="1288rpx" :title="tipsDetail.label">
<view class="dailog-body" slot="content">
<view class="dailog-content">{{ tipsDetail.content }}</view>
<view class="dailog-desc">{{ tipsDetail.desc }}</view>
</view>
</Tips>
<MessageBox ref="drawVisible" position="bottom" :isFooter="false" title="请选择业务类型" :maxHeight="1000"> <MessageBox ref="drawVisible" position="bottom" :isFooter="false" title="请选择业务类型" :maxHeight="1000">
<view class="select-box"> <view class="select-box">
<view class="select-item" :class="{ checked: form.type == item.label }" @click="select(item.label)" v-for="(item, index) in list" :key="index"> <view class="select-item" :class="{ checked: form.type == item.label }" @click="select(item.label)" v-for="(item, index) in list" :key="index">
...@@ -160,15 +135,53 @@ ...@@ -160,15 +135,53 @@
</template> </template>
<script> <script>
import Tips from './Tips'
import Dailog from './Dailog' import Dailog from './Dailog'
export default { export default {
components: { components: {
Tips,
Dailog Dailog
}, },
inject: ['showPage'],
data() { data() {
return { return {
show: false, show: false,
tipsDetail: {},
tipsShow: false,
activeIndex: 0, activeIndex: 0,
outputDetail: [
{
label: '渗透率',
content: '渗透率 = 成交订单数 / 应触客台数',
value: ''
},
{
label: '提成系数',
content: '根据不同的渗透率情况,将按照不同提成系数进行提成发放。',
value: ''
},
{
label: '提成比例',
value: ''
}
],
outputList: [
{
sence: '延保',
icon: 'yw-icon',
value: 0
},
{
sence: '安心包Max',
icon: 'yw-icon',
value: 0
},
{
sence: '轻改',
icon: 'yw-icon',
value: 1
}
],
tabelTh: [ tabelTh: [
{ {
title: '序号', title: '序号',
...@@ -179,10 +192,10 @@ export default { ...@@ -179,10 +192,10 @@ export default {
}, },
{ {
title: '提成', title: '提成',
width: 10 width: 20
} }
], ],
tabelTr: [], tabelTr: [{ list: [2, 3] }, { list: [2, 3] }],
tabList: [ tabList: [
{ {
name: '问界' name: '问界'
...@@ -197,46 +210,57 @@ export default { ...@@ -197,46 +210,57 @@ export default {
{ {
label: '基本工资', label: '基本工资',
icon: 'jbgz-icon', icon: 'jbgz-icon',
content: '基本工资 = 职级工资÷应出勤天数×实际出勤天数',
value: '1000' value: '1000'
}, },
{ {
label: '退单冲减', label: '退单冲减',
icon: 'tdcj-icon', icon: 'tdcj-icon',
content: '历史已发放提成订单客户本月退单,当月冲减该月提成',
value: '1000' value: '1000'
}, },
{ {
label: '会员权益/升级', label: '会员权益/升级',
icon: 'qytc-icon', icon: 'qytc-icon',
content: '权益提成 = 权益产值 × 提成系数 × 提成比例',
value: '1000' value: '1000'
}, },
{ {
label: '日报扣款', label: '日报扣款',
icon: 'rbkk-icon', icon: 'rbkk-icon',
content: '日报填写错误或未在约定时间内填写日版',
value: '1000' value: '1000'
}, },
{ {
label: '轻改提成', label: '轻改提成',
icon: 'qgtc-icon', icon: 'qgtc-icon',
content: '轻改产值x提成系数x提成比例',
value: '1000' value: '1000'
}, },
{ {
label: '平板接待扣款', label: '平板接待扣款',
icon: 'pbjd-icon', icon: 'pbjd-icon',
content: '无效或虚假平板接待以及末使用平板接待',
value: '1000' value: '1000'
}, },
{ {
label: '本月递延金', label: '本月递延金',
icon: 'bydyj-icon', icon: 'bydyj-icon',
content: '本月递延金 = 本月提成 × 10%',
desc: '递延金将于6个月后提成发放时返还',
value: '1000' value: '1000'
}, },
{ {
label: '返还递延金', label: '返还递延金',
icon: 'ffdyj-icon', icon: 'ffdyj-icon',
content: '本月递延金 = 提成(M-6)× 10%',
desc: '6个月前提成递延金在本月返还',
value: '1000' value: '1000'
}, },
{ {
label: '其他', label: '其他',
icon: 'qt-icon', icon: 'qt-icon',
content: '其他扣款、奖励事项',
value: '1000' value: '1000'
} }
], ],
...@@ -285,7 +309,14 @@ export default { ...@@ -285,7 +309,14 @@ export default {
caseList: [] caseList: []
} }
}, },
mounted() {
this.outputList = this.outputList.filter(i => i.value == 0)
},
methods: { methods: {
clickTips(item) {
this.tipsDetail = item
this.tipsShow = true
},
showDetail(item) { showDetail(item) {
this.detail = item this.detail = item
this.show = true this.show = true
...@@ -421,7 +452,7 @@ export default { ...@@ -421,7 +452,7 @@ export default {
border-radius: 16rpx; border-radius: 16rpx;
display: grid; display: grid;
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(3, 1fr);
padding: 16rpx 0rpx; margin-top: 16rpx;
.detail-item { .detail-item {
.detail-label { .detail-label {
font-size: 24rpx; font-size: 24rpx;
...@@ -573,6 +604,10 @@ export default { ...@@ -573,6 +604,10 @@ export default {
} }
} }
} }
.table-container {
max-height: 50vh;
overflow: auto;
}
.table-box { .table-box {
width: 100%; width: 100%;
padding: 0 64rpx; padding: 0 64rpx;
...@@ -580,6 +615,7 @@ export default { ...@@ -580,6 +615,7 @@ export default {
/* 防止边框合并 */ /* 防止边框合并 */
border-spacing: 0; border-spacing: 0;
border: none; border: none;
.th { .th {
position: sticky; position: sticky;
top: 0; top: 0;
...@@ -603,6 +639,7 @@ export default { ...@@ -603,6 +639,7 @@ export default {
background: #edf2ff; background: #edf2ff;
height: 88rpx; height: 88rpx;
font-size: 26rpx; font-size: 26rpx;
box-sizing: border-box;
color: #333333; color: #333333;
&:first-child { &:first-child {
...@@ -612,6 +649,8 @@ export default { ...@@ -612,6 +649,8 @@ export default {
&:last-child { &:last-child {
border-radius: 0 16rpx 16rpx 0; border-radius: 0 16rpx 16rpx 0;
text-align: right;
padding-right: 48rpx;
} }
} }
...@@ -624,26 +663,15 @@ export default { ...@@ -624,26 +663,15 @@ export default {
height: 88rpx; height: 88rpx;
font-size: 26rpx; font-size: 26rpx;
color: #333333; color: #333333;
text-align: left; text-align: center;
padding: 20rpx 40rpx; box-sizing: border-box;
&:last-child {
text-align: right;
padding-right: 48rpx;
}
text { text {
color: #c8c8cc; color: #c8c8cc;
} }
ul {
width: 100%;
padding: 0;
li {
list-style: none; /* 移除默认的列表样式 */
font-size: 26rpx;
color: #333333;
line-height: 46rpx;
&::before {
content: '•'; /* 使用Unicode字符作为点 */
color: #a2a2a8; /* 设置点的颜色 */
margin-right: 12rpx; /* 设置点与文字的间距 */
}
}
}
&.line { &.line {
border-bottom: 16rpx solid #fff; border-bottom: 16rpx solid #fff;
} }
...@@ -671,4 +699,18 @@ export default { ...@@ -671,4 +699,18 @@ export default {
margin-left: auto; margin-left: auto;
} }
} }
.dailog-body {
padding: 0 152rpx;
.dailog-content {
font-size: 32rpx;
color: #1a1a1a;
line-height: 52rpx;
}
.dailog-desc {
font-size: 32rpx;
color: #808291;
line-height: 52rpx;
margin-top: 64rpx;
}
}
</style> </style>
<!-- <!--
* @Author: 前端 qianduan01@didihu.com.cn * @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-08 09:51:43 * @Date: 2025-01-08 10:31:49
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-08 10:31:05 * @LastEditTime: 2025-01-10 13:47:22
* @FilePath: \gl-tape\components\HomeFrame\components\Income\Tips.vue * @FilePath: \gl-tape\components\HomeFrame\components\Income\Dailog.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
<template> <template>
<view class="dailog-panel"> <view class="dailog-panel">
<view class="dailog-box"> <view class="dailog-box" :style="{ width: width }">
<view class="dailog-header"> <view class="dailog-header flex">
<view class="dailog-title">{{ selectItem.title }}</view> <view class="sprite-icon icon-info-icon"></view>
<view class="dailog-title">{{ title }}</view>
<view class="dailog-close" @click="close"><uni-icons type="closeempty" size="20"></uni-icons></view> <view class="dailog-close" @click="close"><uni-icons type="closeempty" size="20"></uni-icons></view>
</view> </view>
<view class="dailog-content">{{ selectItem.content }}</view> <slot name="content" />
<view class="dailog-desc">{{ selectItem.desc }}</view>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
export default { export default {
props: {
width: {
type: String,
default: '1040rpx'
},
title: String
},
data() { data() {
return { return {}
show: '',
selectItem: {
title: '权益提成',
content: '权益提成 = 权益产值 × 提成系数 × 提成比例',
desc: '提成比例'
}
}
}, },
methods: { methods: {
close() { close() {
...@@ -46,11 +46,11 @@ export default { ...@@ -46,11 +46,11 @@ export default {
height: 100vh; height: 100vh;
inset: 0; inset: 0;
background-color: rgba(0, 0, 0, 0.5); background-color: rgba(0, 0, 0, 0.5);
z-index: 999;
.dailog-box { .dailog-box {
position: fixed; position: fixed;
left: 50%; left: 50%;
top: 50%; top: 50%;
width: 1040rpx;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
background: #fff; background: #fff;
background-image: linear-gradient(179deg, #d6e9ff 12%, #ffffff 100%); /* 顶部渐变和底部白色 */ background-image: linear-gradient(179deg, #d6e9ff 12%, #ffffff 100%); /* 顶部渐变和底部白色 */
...@@ -62,12 +62,16 @@ export default { ...@@ -62,12 +62,16 @@ export default {
border-radius: 48rpx; border-radius: 48rpx;
padding-bottom: 96rpx; padding-bottom: 96rpx;
.dailog-header { .dailog-header {
display: flex;
padding: 40rpx 48rpx; padding: 40rpx 48rpx;
.dailog-title { .dailog-title {
font-size: 40rpx; font-size: 40rpx;
color: #1a1a1a; color: #1a1a1a;
font-weight: 600; font-weight: 600;
margin-top: -4rpx;
}
.enlarge {
transform: scale(1.5);
margin-right: 30rpx;
} }
.dailog-close { .dailog-close {
margin-left: auto; margin-left: auto;
...@@ -78,21 +82,6 @@ export default { ...@@ -78,21 +82,6 @@ export default {
} }
} }
} }
.dailog-content {
font-size: 32rpx;
color: #1a1a1a;
line-height: 52rpx;
padding: 0 120rpx 0 152rpx;
margin-top: 32rpx;
}
.dailog-desc {
font-size: 32rpx;
color: #808291;
padding: 0 120rpx 0 152rpx;
margin-top: 32rpx;
line-height: 48rpx;
}
.dailog-logo { .dailog-logo {
text-align: center; text-align: center;
image { image {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<view class="level-desc">初级驻店</view> <view class="level-desc">初级驻店</view>
<view class="sprite-icon icon-js-icon"></view> <view class="sprite-icon icon-js-icon"></view>
</view> </view>
<view class="time-box"> <view class="time-box" @click="jump('Calendar')">
<view class="sprite-icon icon-work-icon"></view> <view class="sprite-icon icon-work-icon"></view>
<view class="level-label">本月出勤</view> <view class="level-label">本月出勤</view>
<view class="time-day">22/27</view> <view class="time-day">22/27</view>
...@@ -41,14 +41,19 @@ export default { ...@@ -41,14 +41,19 @@ export default {
showPassword: false showPassword: false
} }
}, },
inject: ['hideFooter'], inject: ['hideFooter', 'showPage'],
mounted() { mounted() {
this.hideFooter(false) this.hideFooter(false)
}, },
destroyed() { destroyed() {
this.hideFooter(true) this.hideFooter(true)
}, },
methods: {} methods: {
jump(name, val) {
console.log(name, 99)
this.showPage(name, val)
}
}
} }
</script> </script>
...@@ -116,7 +121,7 @@ export default { ...@@ -116,7 +121,7 @@ export default {
} }
.income-body { .income-body {
display: grid; display: grid;
grid-template-columns: 66% 34%; grid-template-columns: 68% 32%;
column-gap: 48rpx; column-gap: 48rpx;
height: calc(100vh - 260rpx); height: calc(100vh - 260rpx);
width: calc(100% - 110rpx); width: calc(100% - 110rpx);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!