Commit 518a5cc0 by 前端

收入

1 parent ffe5edc9
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-08 09:51:43
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-19 16:59:59
* @LastEditTime: 2025-01-20 10:03:51
* @FilePath: \gl-tape\components\HomeFrame\components\Income\Tips.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -217,7 +217,7 @@ export default {
},
{
label: '提成比例',
value: 'commissionRatio',
value: 'outputCommissionRatio',
unit: '%'
}
],
......
......@@ -10,7 +10,7 @@
<td>{{ index + 1 }}</td>
<td v-for="(colValue, colKey) in tabelTr" :key="colKey">
<text class="car-box" v-if="colValue.style" :style="colValue.style(item[colValue.type])">{{ colValue.text(item[colValue.type]) }}</text>
{{ colValue.format ? colValue.format(item[colValue.key]) : item[colValue.name ? colValue.name : colValue] }}
{{ colValue.format ? colValue.format(item[colValue.key]) : colValue.name ? colValue.name(item) : item[colValue] }}
</td>
</tr>
</table>
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-07 13:49:15
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-19 15:19:45
* @LastEditTime: 2025-01-20 11:35:39
* @FilePath: \gl-tape\components\HomeFrame\components\Income\History.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -113,6 +113,8 @@ export default {
}
},
mounted() {
this.IncomeList = this.IncomeList.sort((a, b) => a.sort - b.sort)
console.log(this.IncomeList, 'IncomeList')
const query = uni.createSelectorQuery().in(this)
query
.select('.canvas-box')
......@@ -282,8 +284,14 @@ export default {
continue
}
// 柱状图上的数据
ctx.fillText('¥' + this.formatNumber(this.canvasList[i].num), 30 + gap * i, this.height - this.canPersent[i] - 15)
// 获取文本宽度
const text = '¥' + this.formatNumber(this.canvasList[i].num)
const textWidth = ctx.measureText(text).width
// 计算文本的起始位置以使其居中
const textX = 40 + gap * i - textWidth / 2
ctx.fillText(text, textX, this.height - this.canPersent[i] - 15)
// if (this.canPersent[i] == 0) {
// i++
// ctx.fillText(this.canvasList[i].date, 30 + gap * i, this.height + 10)
......
......@@ -15,11 +15,11 @@
<view class="time-go"></view>
</view>
</view>
<view class="footer-box flex-center">
<view class="footer-box flex-center" v-if="!showPassword">
<view class="sprite-icon icon-tips-b"></view>
最终的交付数以厂家提供的交付数为准,个人填写的交付数仅为工资测算参考。
</view>
<view class="income-body" v-if="incomeDetail.merchants.length">
<view class="income-body" v-if="incomeDetail.merchants.length && !showPassword">
<view class="income-store">
<My-Store :merchants="incomeDetail.merchants"></My-Store>
</view>
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-08 16:17:34
* @LastEditTime: 2025-01-20 10:32:31
-->
<template>
<view class="point-box">
......@@ -38,7 +38,7 @@
<view class="dailog-footer">
<template v-if="selectItem.jump">
<view class="dailog-btn disabled" @click="show = false">关闭</view>
<view class="dailog-btn" @click="$emit('jump')">跳转({{ second }}s)</view>
<view class="dailog-btn" @click="$emit('jump', selectItem.jumpUrl)">跳转({{ second }}s)</view>
</template>
<view class="dailog-btn" v-else @click="show = false">好的</view>
</view>
......@@ -59,10 +59,10 @@ export default {
{ title: '考勤打卡', typeCode: 'T006', content: '完成日常打卡', rules: '请打开嘀加智慧云企业微信进行上下班打卡', logo: require('@/assets/images/point/day-time.png') },
{ title: '日报填写', typeCode: 'T005', content: '完成日报填写', rules: '请打开嘀加智慧云企业微信生意助手员工版填写日报', logo: require('@/assets/images/point/day-report.png') },
{ title: '平板接待', typeCode: 'T007', content: '完成平板接待', rules: '即将跳转至展业助手开始接待', logo: require('@/assets/images/point/day-ipad.png'), jump: true },
{ title: '飞行督导带教', typeCode: 'T001', content: '带教课程学习', rules: '请联系督导了解最近培训计划并参与培训', logo: require('@/assets/images/point/day-training.png') },
{ title: '总部集中培训', typeCode: 'T002', content: '总部集中培训', rules: '请打开嘀加智慧云企业微信生意助手员工版,进行AI趣练学习', logo: require('@/assets/images/point/day-train.png') },
{ title: '学习类', typeCode: 'T004', content: '完成学习课程', rules: '请联系运营同事,将您的优秀的经验进行开课分享', logo: require('@/assets/images/point/day-course.png') },
{ title: '预学习', typeCode: 'T003', content: '完成预学习', rules: '即将跳转至客户档案通过录入预交车客户学习推荐套餐方案话术或客户案例广场学习更多套餐方案话术', logo: require('@/assets/images/point/day-study.png') },
{ title: '飞行督导带教', typeCode: 'T001', content: '带教课程学习', rules: '请联系督导、运营了解最近培训计划并参与培训', logo: require('@/assets/images/point/day-training.png') },
{ title: '总部集中培训', typeCode: 'T002', content: '总部集中培训', rules: '请联系督导、运营了解最近培训计划并参与培训', logo: require('@/assets/images/point/day-train.png') },
{ title: '学习类', typeCode: 'T004', content: '完成学习课程', rules: '请联系督导、运营了解最近培训计划并参与培训', logo: require('@/assets/images/point/day-course.png') },
{ title: '预学习', typeCode: 'T003', content: '完成预学习', rules: '即将跳转至客户档案通过录入预交车客户学习推荐套餐方案话术或客户案例广场学习更多套餐方案话术(如门店未开通客户档案则无法访问,请联系运营部门开通)', logo: require('@/assets/images/point/day-study.png'), jump: true, jumpUrl: 'CustomerFile' },
{ title: '行为异常', typeCode: 'T008', content: '完成预学习', rules: '即将跳转至客户档案通过录入预交车客户学习推荐套餐方案话术或客户案例广场学习更多套餐方案话术', logo: require('@/assets/images/point/day-study.png') }
],
dayList: [],
......@@ -72,12 +72,14 @@ export default {
},
watch: {
show(val) {
console.log(this.$store.state.user.haveCustomerAccess, 'this.$store.state.user.haveCustomerAccess')
if (!val) {
clearInterval(this.timer)
this.second = 3
}
}
},
mounted() {},
methods: {
getDetail(countDate, day) {
uni.$api.pointApi.pointDayTask({ countDate: `${countDate}-${day}` }).then(res => {
......@@ -85,10 +87,18 @@ export default {
const index = this.list.findIndex(i => i.typeCode === item.typeCode)
item.logo = this.list[index].logo
item.jump = this.list[index].jump
item.jumpUrl = this.list[index].jumpUrl
item.content = this.list[index].content
item.rules = this.list[index].rules
})
this.dayList = res
if (!this.$store.state.user.haveCustomerAccess) {
this.dayList.forEach(i => {
if (i.jumpUrl) {
i.jump = false
}
})
}
this.completed = res.filter(i => i.completed).length
})
},
......@@ -99,7 +109,7 @@ export default {
this.second--
if (this.second == 1) {
clearInterval(this.timer)
this.$emit('jump')
this.$emit('jump', val.jumpUrl)
}
}, 1000)
}
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-17 14:51:31
* @LastEditTime: 2025-01-20 13:41:26
-->
<template>
<view class="point-box">
......@@ -66,7 +66,7 @@
<!-- <ul v-if="item.list">
<li v-for="(l, i) in item.list">{{ l }}</li>
</ul> -->
<view v-html="item.content || item.otherRewards"></view>
<view v-html="getHtml(item.content || item.otherRewards)"></view>
</td>
</tr>
</table>
......@@ -107,6 +107,9 @@ export default {
this.isHigh = isHigh
},
methods: {
getHtml(val) {
return val.replaceAll('\n', '<br/>')
},
getDetail(countDate) {
this.getRule(1)
this.getRule(2)
......
<template>
<view
class="container"
@click="handleTouchStart"
>
<view class="container" @click="handleTouchStart">
<view :class="['home', { show: !id && showHome }]">
<left-side
:userInfo="userInfo"
:tabIndex.sync="tabIndex"
ref="leftBox"
@changeTab="$emit('changeTab', $event)"
@stopAudio="stopAudio"
/>
<left-side :userInfo="userInfo" :tabIndex.sync="tabIndex" ref="leftBox" @changeTab="$emit('changeTab', $event)" @stopAudio="stopAudio" />
<view class="right-side">
<template v-if="tabIndex == 0">
<view class="right-content">
<view
class="start"
@click="$emit('start')"
>
<image
class="start-btn"
src="../../assets/images/home/start.gif"
alt="开始接待"
/>
<image
class="start-border"
src="../../assets/images/home/start-border.png"
/>
<view class="start" @click="$emit('start')">
<image class="start-btn" src="../../assets/images/home/start.gif" alt="开始接待" />
<image class="start-border" src="../../assets/images/home/start-border.png" />
</view>
<view class="module-list">
<slot name="module" />
......@@ -34,16 +15,9 @@
</view>
</template>
<template v-else>
<component
:is="componentName"
:userInfo="userInfo"
@showPage="handleShowPage"
/>
<component :is="componentName" :userInfo="userInfo" @showPage="handleShowPage" />
</template>
<view
class="store-addr"
v-if="footerBox"
>
<view class="store-addr" v-if="footerBox">
<view class="icon-addr sprite-icon icon-addr"></view>
<view class="addr-text">{{ userInfo.shopMerchantName }}</view>
</view>
......@@ -52,41 +26,17 @@
<view :class="['detail', { show: id }]">
<slot name="detail" />
</view>
<view
class="point-page"
v-if="!showHome"
>
<component
:is="pointComponentName"
@backHome="backHome"
@jump="jump"
:transfer="transfer"
/>
<view class="point-page" v-if="!showHome">
<component :is="pointComponentName" @backHome="backHome" @jump="jump" :transfer="transfer" />
</view>
<!-- 未点击开始接待,弹窗 -->
<MessageBox
ref="previewRef"
@confirm="$emit('preview')"
:popupW="704"
content="直接点击素材可进行预览,若面向车主展示,请点击「开始接待」"
confirmBtnText="预览素材"
@cancel="$emit('previewCancel')"
@close="$emit('previewClose')"
></MessageBox>
<MessageBox ref="previewRef" @confirm="$emit('preview')" :popupW="704" content="直接点击素材可进行预览,若面向车主展示,请点击「开始接待」" confirmBtnText="预览素材" @cancel="$emit('previewCancel')" @close="$emit('previewClose')"></MessageBox>
<!-- 停留弹框 -->
<!-- <MessageBox ref="tipBox" @cancel="tipCancel" @confirm="tipConfirm" content="系统检测到您在当前页面停留较久,是否仍在客户接待中?" cancelBtnText="否" confirmBtnText="是"></MessageBox> -->
<!-- 退出弹框 -->
<MessageBox
:popupW="704"
ref="finish"
:content="finishContene"
:isFooter="false"
>
<MessageBox :popupW="704" ref="finish" :content="finishContene" :isFooter="false">
<view class="footer">
<view
class="footer-btn confirm flex"
@click="$emit('openStep')"
>
<view class="footer-btn confirm flex" @click="$emit('openStep')">
<template v-if="finishDoneText">
{{ finishDoneText }}
</template>
......@@ -95,10 +45,7 @@
<text>(推荐)</text>
</template>
</view>
<view
class="footer-btn cancel flex"
@click="$emit('backHome')"
>
<view class="footer-btn cancel flex" @click="$emit('backHome')">
仍要退出
<text>(不推荐)</text>
</view>
......@@ -107,11 +54,7 @@
<!-- 升级弹框 -->
<update-box />
<slot name="content" />
<web-view
@message="handlerMessage"
ref="webview"
src="/hybrid/html/index.html"
></web-view>
<web-view @message="handlerMessage" ref="webview" src="/hybrid/html/index.html"></web-view>
</view>
</template>
<script>
......@@ -143,7 +86,7 @@ export default {
default: '当前操作视为强制退出接待,若需正常流程完成接待请点击「完成接待」'
}
},
data () {
data() {
return {
transfer: '',
footerBox: true,
......@@ -153,25 +96,25 @@ export default {
tabIndex: 0
}
},
mounted () {
mounted() {
const userInfo = uni.$storage.get('userInfo') || {}
this.userInfo = userInfo
this.checkVersion()
},
provide () {
provide() {
return {
showPage: this.handleShowPage,
hideFooter: this.handleFooter
}
},
computed: {
previewRef () {
previewRef() {
return this.$refs.previewRef
},
finishRef () {
finishRef() {
return this.$refs.finish
},
componentName () {
componentName() {
const len = this.$refs.leftBox.tabs.length
if (this.tabIndex == 0) return 'HomeSlot'
else if (this.tabIndex == 1) return 'RecordList'
......@@ -180,17 +123,21 @@ export default {
}
},
methods: {
handleFooter (val) {
handleFooter(val) {
this.footerBox = val
},
backHome () {
backHome() {
this.showHome = true
},
jump () {
jump(val) {
this.showHome = true
if (val == 'CustomerFile') {
this.tabIndex = 2
return
}
this.$emit('start')
},
handleShowPage (name, transfer) {
handleShowPage(name, transfer) {
this.transfer = transfer
this.showHome = false
this.pointComponentName = name
......
......@@ -8,6 +8,7 @@ export default {
icon: 'jbgz-icon',
content: '基本工资 = 职级工资÷应出勤天数×实际出勤天数',
value: 'actualBasicSalary',
sort: 1,
base: true
},
{
......@@ -16,6 +17,7 @@ export default {
content: '历史已发放提成订单客户本月退单,当月冲减该月提成',
value: 'refundOffset',
recordKey: 'refundOffsetRecords',
sort: 4,
tabelTh: [
{
title: '序号',
......@@ -58,6 +60,7 @@ export default {
],
value: 'equityCommission',
recordKey: 'equityMerchantCommissions',
sort: 2,
tabelTh: [
{
title: '序号',
......@@ -73,7 +76,10 @@ export default {
],
tabelTr: [
{
name: 'merchantName',
name: val => {
const typeName = val.thirdLevelGoodsTypeName || val.secondaryGoodsTypeName || val.goodsTypeName
return `${val.merchantName}${typeName ? `-${typeName}` : ''}`
},
style: val => {
return val == 1 ? 'color: #3773F8;background-color:rgba(55, 115, 248, .2)' : 'color: #7C2CF5;background-color: rgba(124, 44, 245, .2);'
},
......@@ -91,6 +97,7 @@ export default {
content: '日报填写错误或未在约定时间内填写日版',
value: 'dailyDeductMoney',
recordKey: 'dailyDeductionRecords',
sort: 5,
tabelTh: [
{
title: '序号',
......@@ -121,6 +128,7 @@ export default {
content: '轻改产值x提成系数x提成比例',
value: 'lightCommission',
recordKey: 'lightMerchantCommissions',
sort: 3,
tabelTh: [
{
title: '序号',
......@@ -134,7 +142,15 @@ export default {
width: 20
}
],
tabelTr: ['merchantName', 'commission']
tabelTr: [
{
name: val => {
const typeName = val.thirdLevelGoodsTypeName || val.secondaryGoodsTypeName || val.goodsTypeName
return `${val.merchantName}${typeName ? `-${typeName}` : ''}`
}
},
'commission'
]
},
{
label: '平板接待扣款',
......@@ -142,6 +158,7 @@ export default {
content: '无效或虚假平板接待以及末使用平板接待',
value: 'padDeductMoney',
recordKey: 'padDeductionRecords',
sort: 6,
tabelTh: [
{
title: '序号',
......@@ -171,20 +188,24 @@ export default {
icon: 'bydyj-icon',
content: '本月递延金 = 本月提成 × 10%',
desc: '递延金将于6个月后提成发放时返还',
value: 'deferExpenses'
value: 'deferExpenses',
sort: 7,
showUnit: '-'
},
{
label: '返还递延金',
icon: 'ffdyj-icon',
content: '本月递延金 = 提成(M-6)× 10%',
desc: '6个月前提成递延金在本月返还',
value: 'deferIncome'
value: 'deferIncome',
sort: 8
},
{
label: '其他',
icon: 'qt-icon',
content: '其他扣款、奖励事项',
recordKey: 'otherDeductionRecords',
sort: 9,
tabelTh: [
{
title: '序号',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!