Commit 0875444e by 张立顺

Merge branch 'SAAS+V4.49' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V4.49

2 parents eff0b547 8961c9d3
...@@ -140,5 +140,13 @@ module.exports = { ...@@ -140,5 +140,13 @@ module.exports = {
projectName: 'boutique', projectName: 'boutique',
...data ...data
}) })
},
/**直级介绍配置查询 */
getJobConfig(data) {
return http.post({
method: 'dj.smartcarlife.api.job.rank.config.search',
projectName: 'boutique',
...data
})
} }
} }

7.85 MB | W: | H:

2.3 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -87,7 +87,7 @@ export default { ...@@ -87,7 +87,7 @@ export default {
return return
} }
const clock = this.clockInDateList.find(i => i.day == day) const clock = this.clockInDateList.find(i => i.day == day)
return clock.isClock return clock?.isClock
}, },
getDetail() { getDetail() {
const { phone: staffPhone } = uni.$storage.get('userInfo') const { phone: staffPhone } = uni.$storage.get('userInfo')
......
...@@ -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-13 13:55:42 * @LastEditTime: 2025-01-13 15:53:34
* @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
--> -->
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<view class="sprite-icon icon-tips"></view> <view class="sprite-icon icon-tips"></view>
<text>今日TIPS</text> <text>今日TIPS</text>
</view> </view>
<view class="tips-body"> <view class="tips-body" v-if="tipsList.length">
<view class="tips-item" v-for="(item, index) in tipsList" :key="index"> <view class="tips-item" v-for="(item, index) in tipsList" :key="index">
<view class="item-header flex"> <view class="item-header flex">
<view class="sprite-icon icon-store-icon"></view> <view class="sprite-icon icon-store-icon"></view>
...@@ -27,8 +27,14 @@ ...@@ -27,8 +27,14 @@
</view> </view>
</view> </view>
</view> </view>
<view class="tips-body" v-else>
<view class="empty-box">
<image :src="require('@/assets/images/boutique/nothing.png')" mode="heightFix" />
<view class="empty-text">暂无记录</view>
</view>
</view>
<view class="tips-footer"> <view class="tips-footer">
<view class="tips-btn" @click="calDaliog = true"> <view class="tips-btn" @click="IncomeCal">
<text>收入测算</text> <text>收入测算</text>
<view class="tip-img"> <view class="tip-img">
<view class="sprite-icon icon-btn-tips"></view> <view class="sprite-icon icon-btn-tips"></view>
...@@ -37,11 +43,11 @@ ...@@ -37,11 +43,11 @@
</view> </view>
<Dailog @close="calDaliog = false" v-if="calDaliog" width="1600rpx" title="职级晋升、渗透率提升后收入测算"> <Dailog @close="calDaliog = false" v-if="calDaliog" width="1600rpx" title="职级晋升、渗透率提升后收入测算">
<view class="dailog-body" slot="content"> <view class="dailog-body" slot="content">
<view class="input-box select-container"> <view :class="{ 'input-box select-container': true, row_2: form.sceneType == 0 }">
<template v-for="(item, index) in selectList"> <template v-for="(item, index) in selectList">
<view class="input-item" :key="index" v-if="!(item.key == 'configCarType' && form.sceneType == 1)"> <view class="input-item" :key="index" v-if="!(item.key == 'configCarType' && form.sceneType == 1)">
<view class="input-label">{{ item.label }}</view> <view class="input-label">{{ item.label }}</view>
<view :class="['select flex', { placeholderStyle: !form[item.key] }]" @click="showPopup(item, item.key)"> <view :class="['select flex', { placeholderStyle: !getValue(item.key, form[item.key]) }]" @click="showPopup(item, item.key)">
<view class="text-hide">{{ getValue(item.key, form[item.key]) || '请选择' }}</view> <view class="text-hide">{{ getValue(item.key, form[item.key]) || '请选择' }}</view>
<uni-icons class="arrow" type="right" :size="16"></uni-icons> <uni-icons class="arrow" type="right" :size="16"></uni-icons>
</view> </view>
...@@ -75,21 +81,24 @@ ...@@ -75,21 +81,24 @@
</Dailog> </Dailog>
<Dailog @close="show = false" v-if="show" width="1360rpx" title="收入测算结果"> <Dailog @close="show = false" v-if="show" width="1360rpx" title="收入测算结果">
<view class="dailog-body flex" slot="content"> <view class="dailog-body flex" slot="content">
<view> <view class="output-box">
<view class="month-box" v-for="(item, index) in form.goodsTypeList" :key="index"> <view class="month-box" v-for="(item, index) in form.goodsTypeList" :key="index">
<view class="month-mark">{{ item.showName || '轻改' }}</view> <view class="month-mark flex">
<view :class="`sprite-icon icon-${item.showName ? 'yw-icon' : 'qg-tips'}`"></view>
<text>{{ item.showName || '轻改' }}</text>
</view>
<view class="value-box"> <view class="value-box">
<view class="value-desc"> <view class="value-desc flex">
<view class="value-title">本月产值</view> <view class="value-title">本月产值</view>
<view class="value-price"> <view class="value-price">
<text>¥</text> <text>¥</text>
{{ item.totalPrice }} {{ item.totalPrice }}
</view> </view>
</view> </view>
<view class="value-desc"> <view class="value-desc flex">
<view class="value-title">成交</view> <view class="value-title">成交</view>
<view class="value-price"> <view class="value-price">
{{ item.subOrderCount }} {{ item.subOrderCount || 0 }}
<text>单</text> <text>单</text>
</view> </view>
</view> </view>
...@@ -97,7 +106,7 @@ ...@@ -97,7 +106,7 @@
<view class="value-detail"> <view class="value-detail">
<view class="detail-item" v-for="(output, i) in outputDetail"> <view class="detail-item" v-for="(output, i) in outputDetail">
<view class="detail-label">{{ output.label }}</view> <view class="detail-label">{{ output.label }}</view>
<view class="detail-num">{{ salaryDetail.commissionRecord ? salaryDetail.commissionRecord[output.value] : salaryDetail.goodsTypeList[index][output.value] }}</view> <view class="detail-num">{{ salaryDetail.commissionRecord ? salaryDetail.commissionRecord[output.value] : salaryDetail.goodsTypeList[index][output.value] || 0 }}</view>
</view> </view>
</view> </view>
</view> </view>
...@@ -244,10 +253,7 @@ export default { ...@@ -244,10 +253,7 @@ export default {
} }
] ]
}, },
form: { form: {},
shouldToShopCount: '',
goodsTypeList: []
},
drawInfo: {}, drawInfo: {},
salaryDetail: {}, salaryDetail: {},
selectList: [ selectList: [
...@@ -318,10 +324,16 @@ export default { ...@@ -318,10 +324,16 @@ export default {
console.log(val) console.log(val)
} }
}, },
'form.sceneType'(val) { formItem: {
if (val === '0') { handler(val) {
const fL = val.filter(i => i)
if (fL.length == 4 && this.form.sceneType == 0) {
this.getLatestConfigDetail() this.getLatestConfigDetail()
} }
},
deep: true
},
'form.sceneType'(val) {
if (val === '1') { if (val === '1') {
this.form.goodsTypeList = [ this.form.goodsTypeList = [
{ {
...@@ -331,7 +343,22 @@ export default { ...@@ -331,7 +343,22 @@ export default {
} }
} }
}, },
computed: {
formItem() {
const { merchantId, sceneType, jobType, configCarType } = this.form
return [merchantId, sceneType, jobType, configCarType]
}
},
methods: { methods: {
IncomeCal() {
this.calDaliog = true
this.form = {
shouldToShopCount: '',
goodsTypeList: [],
sceneType: '1'
}
this.selectKey = ''
},
getDetail() { getDetail() {
const { phone: staffPhone, merchantId } = uni.$storage.get('userInfo') const { phone: staffPhone, merchantId } = uni.$storage.get('userInfo')
uni.$api.pointApi.getTipsMessage({ staffPhone, merchantId }).then(res => { uni.$api.pointApi.getTipsMessage({ staffPhone, merchantId }).then(res => {
...@@ -420,6 +447,19 @@ export default { ...@@ -420,6 +447,19 @@ export default {
height: calc(100vh - 540rpx); height: calc(100vh - 540rpx);
overflow-y: auto; overflow-y: auto;
.empty-box {
text-align: center;
margin-top: 160rpx;
image {
height: 224rpx;
}
.empty-text {
font-size: 28rpx;
color: #808291;
line-height: 40rpx;
text-align: center;
}
}
.tips-item { .tips-item {
padding: 30rpx 32rpx; padding: 30rpx 32rpx;
width: 100%; width: 100%;
...@@ -496,7 +536,17 @@ export default { ...@@ -496,7 +536,17 @@ export default {
.dailog-body { .dailog-body {
padding: 64rpx; padding: 64rpx;
.output-box {
width: 568rpx;
height: 648rpx;
background: #e6f1ff;
border: 2rpx solid #ffffff;
border-radius: 48rpx;
overflow-y: auto;
box-sizing: border-box;
overflow-x: hidden;
padding: 44rpx 48rpx;
}
.input-box { .input-box {
width: 100%; width: 100%;
display: flex; display: flex;
...@@ -507,10 +557,15 @@ export default { ...@@ -507,10 +557,15 @@ export default {
&.select-container { &.select-container {
margin-bottom: 128rpx; margin-bottom: 128rpx;
display: grid; display: grid;
grid-template-columns: 31% 38% 31%;
gap: 40rpx; gap: 40rpx;
grid-template-columns: 31% 38% 31%;
}
&.row_2 {
grid-template-columns: 50% 50%;
.input-label {
width: 150rpx;
}
} }
&.num-second { &.num-second {
flex-wrap: wrap; flex-wrap: wrap;
...@@ -569,11 +624,16 @@ export default { ...@@ -569,11 +624,16 @@ export default {
} }
.month-box { .month-box {
width: 552rpx; width: 472rpx;
height: 308rpx; height: 260rpx;
background-image: linear-gradient(180deg, #e6f1ff 0%, #f5f8ff 100%); background: #ffffff;
border-radius: 24rpx; margin-bottom: 40rpx;
.month-mark {
font-size: 24rpx;
color: #808291;
padding-left: 30rpx;
padding-top: 28rpx;
}
.value-box { .value-box {
display: flex; display: flex;
margin: 0 30rpx; margin: 0 30rpx;
...@@ -581,18 +641,17 @@ export default { ...@@ -581,18 +641,17 @@ export default {
.value-desc { .value-desc {
flex: 1; flex: 1;
text-align: center; text-align: center;
padding: 20rpx 0 0;
.value-title { .value-title {
font-size: 24rpx; font-size: 24rpx;
color: #181a1f; color: #adb0b8;
line-height: 36rpx; line-height: 36rpx;
} }
.value-price { .value-price {
font-weight: 600; font-size: 36rpx;
font-size: 40rpx; color: #181a1f;
color: #2c66f7; margin-left: 8rpx;
line-height: 60rpx;
text { text {
font-size: 22rpx; font-size: 22rpx;
...@@ -602,8 +661,6 @@ export default { ...@@ -602,8 +661,6 @@ export default {
} }
.value-detail { .value-detail {
width: 488rpx;
height: 116rpx;
background: #ffffff; background: #ffffff;
border-radius: 16rpx; border-radius: 16rpx;
margin: 10rpx auto; margin: 10rpx auto;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn * @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-07 13:49:15 * @Date: 2025-01-07 13:49:15
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-13 10:56:02 * @LastEditTime: 2025-01-13 16:16:13
* @FilePath: \gl-tape\components\HomeFrame\components\Income\History.vue * @FilePath: \gl-tape\components\HomeFrame\components\Income\History.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
--> -->
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<view class="history-box"> <view class="history-box">
<view class="chart-box"> <view class="chart-box">
<view class="chart-header"> <view class="chart-header">
<text class="year-text">{{ year }}年</text> <text class="year-text">{{ year - 1 }}年</text>
<view class="sprite-icon icon-tips-g"></view> <view class="sprite-icon icon-tips-g"></view>
<text>点击柱形图切换月份</text> <text>点击柱形图切换月份</text>
</view> </view>
...@@ -27,25 +27,27 @@ ...@@ -27,25 +27,27 @@
</view> </view>
<view class="income-box"> <view class="income-box">
<view class="income-header"> <view class="income-header">
<text>{{ year }}年8月收入</text> <text>{{ year - 1 }}年8月收入</text>
</view> </view>
<view class="income-tips"> <view class="income-tips">
<view class="sprite-icon icon-tips-b"></view> <view class="sprite-icon icon-tips-b"></view>
<text>以下未包括 个人所得税、社保等事项</text> <text>以下未包括 个人所得税、社保等事项</text>
</view> </view>
<view class="income-list"> <view class="income-list">
<view class="income-item" v-for="(item, index) in IncomeList" :key="index"> <template v-for="(item, index) in IncomeList">
<view class="income-item" :key="index" v-if="isShow(item.value)">
<view class="item-label" @click="handleShow(item)">{{ item.label }}</view> <view class="item-label" @click="handleShow(item)">{{ item.label }}</view>
<uni-icons type="help" size="18" color="#A2A2A8" @click="clickTips(item)"></uni-icons> <uni-icons type="help" size="18" color="#A2A2A8" @click="clickTips(item)"></uni-icons>
<view class="item-price">{{ salaryDetail[item.value] || 0 }}</view> <view class="item-price">{{ salaryDetail[item.value] || 0 }}</view>
<view class="item-expand" @click="showDetail(item)" v-if="salaryDetail[item.value] && item.tabelTh"></view> <view class="item-expand" @click="showDetail(item)" v-if="salaryDetail[item.value] && item.tabelTh"></view>
</view> </view>
</template>
</view> </view>
<view class="income-footer"> <view class="income-footer">
<view class="footer-label">当月收入</view> <view class="footer-label">当月收入</view>
<view class="footer-price"> <view class="footer-price">
<text>¥</text> <text>¥</text>
{{ salaryDetail.correctSalary }} {{ salaryDetail.correctSalary || 0 }}
</view> </view>
</view> </view>
</view> </view>
...@@ -106,6 +108,15 @@ export default { ...@@ -106,6 +108,15 @@ export default {
.exec() .exec()
}, },
methods: { methods: {
isShow(key) {
if (key == 'equityCommission' && !this.salaryDetail.equityCommission && this.salaryDetail.lightCommission) {
return
}
if (key == 'lightCommission' && !this.salaryDetail.lightCommission && this.salaryDetail.equityCommission) {
return
}
return true
},
getDetail(date) { getDetail(date) {
uni.$api.pointApi.pageStat({ salaryMonthBegin: `${this.year - 1}-1`, salaryMonthEnd: `${this.year - 1}-12` }).then(res => { uni.$api.pointApi.pageStat({ salaryMonthBegin: `${this.year - 1}-1`, salaryMonthEnd: `${this.year - 1}-12` }).then(res => {
const list = res.list || [] const list = res.list || []
...@@ -124,9 +135,9 @@ export default { ...@@ -124,9 +135,9 @@ export default {
} }
} }
this.canvasList = canvasList this.canvasList = canvasList
this.showChart() this.showChart(this.month - 1)
}) })
this.monthSalaryDetail(date) this.monthSalaryDetail(this.year - 1 + '-' + this.month)
}, },
/** /**
...@@ -136,7 +147,7 @@ export default { ...@@ -136,7 +147,7 @@ export default {
*/ */
monthSalaryDetail(salaryMonth) { monthSalaryDetail(salaryMonth) {
uni.$api.pointApi.monthSalaryDetail({ salaryMonth }).then(res => { uni.$api.pointApi.monthSalaryDetail({ salaryMonth }).then(res => {
this.salaryDetail = res this.salaryDetail = res || {}
}) })
}, },
...@@ -188,7 +199,7 @@ export default { ...@@ -188,7 +199,7 @@ export default {
if (this.canvasList[i].num) { if (this.canvasList[i].num) {
this.showChart(i) // 重新绘制图表,如果需要更新显示 this.showChart(i) // 重新绘制图表,如果需要更新显示
const month = this.canvasList[i].date.replace(/\D+/, '') const month = this.canvasList[i].date.replace(/\D+/, '')
this.monthSalaryDetail(this.year + '-' + month) this.monthSalaryDetail(this.year - 1 + '-' + month)
} }
break break
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn * @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-10 14:54:29 * @Date: 2025-01-10 14:54:29
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-13 14:04:46 * @LastEditTime: 2025-01-13 16:23:05
* @FilePath: \gl-tape\components\HomeFrame\components\Income\MyStore.vue * @FilePath: \gl-tape\components\HomeFrame\components\Income\MyStore.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
--> -->
...@@ -50,13 +50,13 @@ ...@@ -50,13 +50,13 @@
<view class="value-title">产值</view> <view class="value-title">产值</view>
<view class="value-price"> <view class="value-price">
<text>¥</text> <text>¥</text>
{{ item.calculateValue || '-' }} {{ item.calculateValue || '0' }}
</view> </view>
</view> </view>
<view class="value-desc flex"> <view class="value-desc flex">
<view class="value-title">成交</view> <view class="value-title">成交</view>
<view class="value-price"> <view class="value-price">
{{ item.orderCount || '-' }} {{ item.orderCount || '0' }}
<text>单</text> <text>单</text>
</view> </view>
</view> </view>
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
<text>{{ v.label }}</text> <text>{{ v.label }}</text>
<uni-icons type="help" size="15" color="#A2A2A8" v-if="v.content" @click="clickTips(v)"></uni-icons> <uni-icons type="help" size="15" color="#A2A2A8" v-if="v.content" @click="clickTips(v)"></uni-icons>
</view> </view>
<view class="detail-num">{{ item[v.value] || '-' }}</view> <view class="detail-num">{{ item[v.value] || '0' }}</view>
</view> </view>
</view> </view>
</view> </view>
...@@ -91,17 +91,19 @@ ...@@ -91,17 +91,19 @@
</view> </view>
<view class="panel-bottom"> <view class="panel-bottom">
<text>¥</text> <text>¥</text>
{{ salaryDetail.correctSalary }} {{ salaryDetail.correctSalary || 0 }}
</view> </view>
</view> </view>
<view class="income-detail"> <view class="income-detail">
<view class="income-detail-item flex" v-for="(item, index) in IncomeList" :key="index"> <template v-for="(item, index) in IncomeList">
<view class="income-detail-item flex" v-if="isShow(item.value)" :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" @click="clickTips(item)"></uni-icons> <uni-icons type="help" size="15" color="#A2A2A8" @click="clickTips(item)"></uni-icons>
<view class="item-value">{{ salaryDetail[item.value] || '0' }}</view> <view class="item-value">{{ salaryDetail[item.value] || '0' }}</view>
<view class="item-next" @click="showDetail(item)" v-if="item.tabelTh && salaryDetail[item.value]"></view> <view class="item-next" @click="showDetail(item)" v-if="item.tabelTh && salaryDetail[item.value]"></view>
</view> </view>
</template>
</view> </view>
<view class="income-footer">个人所得税、社保、迟到、早退等月初统一核算,不包括在收入测算中。实际发放工资以工资核算为准。</view> <view class="income-footer">个人所得税、社保、迟到、早退等月初统一核算,不包括在收入测算中。实际发放工资以工资核算为准。</view>
</view> </view>
...@@ -192,29 +194,7 @@ export default { ...@@ -192,29 +194,7 @@ export default {
}, },
commissionsInfo: [{}], commissionsInfo: [{}],
scene0PenetrationRateCommissions: [], scene0PenetrationRateCommissions: [],
tipsList: [ tipsList: [],
{
company: '榆林华睿通汽车销售服务有限公司',
title: '安心包Max渗透率提醒',
content: '本月安心包Max 渗透率为25%,超过20%。如果达到30%,延保提成系数将按照1.1执行,加油!',
time: '2025-01-07 09:30:00',
tips: '延保提成'
},
{
company: '榆林华睿通汽车销售服务有限公司',
title: '安心包Max渗透率提醒',
content: '本月安心包Max 渗透率为25%,超过20%。如果达到30%,延保提成系数将按照1.1执行,加油!',
time: '2025-01-07 09:30:00',
tips: '延保提成'
},
{
company: '榆林华睿通汽车销售服务有限公司',
title: '安心包Max渗透率提醒',
content: '本月安心包Max 渗透率为25%,超过20%。如果达到30%,延保提成系数将按照1.1执行,加油!',
time: '2025-01-07 09:30:00',
tips: '延保提成'
}
],
list: [], list: [],
show: false, show: false,
calDaliog: false, calDaliog: false,
...@@ -222,9 +202,7 @@ export default { ...@@ -222,9 +202,7 @@ export default {
} }
}, },
mounted() { mounted() {
console.log(8888)
this.outputList = this.outputList.filter(i => i.value == 0) this.outputList = this.outputList.filter(i => i.value == 0)
this.getSalaryDetail()
}, },
watch: { watch: {
'form.merchantId'(val) { 'form.merchantId'(val) {
...@@ -239,9 +217,9 @@ export default { ...@@ -239,9 +217,9 @@ export default {
} }
}, },
methods: { methods: {
getSalaryDetail() { getDetail(salaryMonth) {
uni.$api.pointApi.monthSalaryDetail({ salaryMonth: '2024-11' }).then(res => { uni.$api.pointApi.monthSalaryDetail({ salaryMonth }).then(res => {
this.salaryDetail = res this.salaryDetail = res || {}
}) })
console.log(this.salaryDetail, 'salaryDetail') console.log(this.salaryDetail, 'salaryDetail')
}, },
...@@ -271,9 +249,20 @@ export default { ...@@ -271,9 +249,20 @@ export default {
this.commissionsInfo = commissionsOther.nscene0PenetrationRateGoodsCommissions || [] this.commissionsInfo = commissionsOther.nscene0PenetrationRateGoodsCommissions || []
} }
console.log(this.commissionsInfo, 'commissionsInfo') console.log(this.commissionsInfo, 'commissionsInfo')
} else {
this.commissionsInfo = [{}]
} }
}) })
}, },
isShow(key) {
if (key == 'equityCommission' && !this.salaryDetail.equityCommission && this.salaryDetail.lightCommission) {
return
}
if (key == 'lightCommission' && !this.salaryDetail.lightCommission && this.salaryDetail.equityCommission) {
return
}
return true
},
getCommissionsInfo() { getCommissionsInfo() {
const result = this.scene0PenetrationRateCommissions.find(i => { const result = this.scene0PenetrationRateCommissions.find(i => {
return i.configCarType == this.activeIndex return i.configCarType == this.activeIndex
......
...@@ -2,19 +2,40 @@ ...@@ -2,19 +2,40 @@
* @Author: 前端 qianduan01@didihu.com.cn * @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-10 14:54:29 * @Date: 2025-01-10 14:54:29
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-10 15:15:36 * @LastEditTime: 2025-01-13 17:45:47
* @FilePath: \gl-tape\components\HomeFrame\components\Income\Promotion.vue * @FilePath: \gl-tape\components\HomeFrame\components\Income\Promotion.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="calendar-container"> <view class="job-container">
<view class="nav-bar"> <view class="nav-bar">
<view class="back" @click="back"> <view class="back" @click="back">
<uni-icons type="left" :size="20" color="#000"></uni-icons> <uni-icons type="left" :size="20" color="#000"></uni-icons>
</view> </view>
<view class="title"><text>晋升介绍</text></view> <view class="title"><text>晋升介绍</text></view>
</view> </view>
<view class="calendar-box"></view> <view class="job-box">
<view class="job-header">
<view class="job-tab flex-center">
<view class="tab-item flex" v-for="(item, index) in tabList" :key="index" :class="{ active: item.value === activeIndex }" @click="changeTab(item.value)">
<text>{{ item.label }}</text>
<view class="sprite-icon icon-two-arrow" v-if="index < tabList.length - 1"></view>
<view class="level-top" v-if="transfer.jobType == item.value">
<view class="sprite-icon icon-my-level"></view>
</view>
</view>
</view>
</view>
<view class="job-content">
<view class="job-item" v-for="(item, index) in jobList" :key="index">
<view class="item-title flex">
<view class="sprite-icon icon-promotion"></view>
<text>{{ item.title }}</text>
</view>
<view class="item-content" v-html="jobDetail[item.value]"></view>
</view>
</view>
</view>
</view> </view>
</template> </template>
...@@ -22,10 +43,70 @@ ...@@ -22,10 +43,70 @@
import point from '@/mixin/point' import point from '@/mixin/point'
export default { export default {
mixins: [point], mixins: [point],
props: {
transfer: {
type: Object,
default: () => {}
}
},
data() { data() {
return {} return {
jobDetail: {},
activeIndex: '',
//1-实习生(实践) ,2-初级驻店,3-中级驻店,4-高级驻店,10-见习驻店
tabList: [
{
label: '实习生',
value: 1
},
{
label: '见习驻店',
value: 10
},
{
label: '初级驻店',
value: 2
},
{
label: '中级驻店',
value: 3
},
{
label: '高级驻店',
value: 4
}
],
jobList: [
{
title: '职级介绍',
value: 'rankIntroduction'
},
{
title: '晋升介绍',
value: 'promotionIntroduction'
},
{
title: '降级介绍',
value: 'downgradeIntroduction'
}
]
}
},
methods: {
getDetail() {
this.activeIndex = this.transfer.jobType
this.getJobConfig()
}, },
methods: {} changeTab(index) {
this.activeIndex = index
this.getJobConfig(index)
},
getJobConfig() {
uni.$api.pointApi.getJobConfig({ jobType: this.activeIndex }).then(res => {
this.jobDetail = res || {}
})
}
}
} }
</script> </script>
...@@ -55,13 +136,55 @@ export default { ...@@ -55,13 +136,55 @@ export default {
} }
} }
} }
.calendar-box { .job-box {
width: calc(100vw - 128rpx); width: calc(100vw - 128rpx);
margin: 30rpx auto 0; margin: 30rpx auto 0;
height: calc(100vh - 220rpx);
background: #ffffff;
border-radius: 48rpx;
padding: 64rpx;
box-sizing: border-box; box-sizing: border-box;
background: rgba($color: #fff, $alpha: 0.35);
border-radius: 48rpx 48rpx 0 0;
.job-header {
height: 128rpx;
.job-tab {
height: 100%;
}
}
.job-tab {
.tab-item {
width: 15%;
justify-content: space-between;
padding-left: 4%;
position: relative;
.level-top {
position: absolute;
top: -50rpx;
left: 40rpx;
}
&.active {
color: #2c66f7;
font-weight: 600;
}
}
}
.job-content {
padding: 34rpx;
border-radius: 48rpx;
background: #fff;
height: calc(100vh - 350rpx);
overflow-y: auto;
.job-item {
.item-title {
font-size: 32rpx;
color: #2c66f7;
line-height: 48rpx;
height: 70rpx;
text {
margin-top: -4rpx;
}
}
.item-content {
padding-left: 64rpx;
}
}
}
} }
</style> </style>
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<view class="level-box" @click="jump('Promotion')"> <view class="level-box" @click="jump('Promotion')">
<view class="sprite-icon icon-zj-icon"></view> <view class="sprite-icon icon-zj-icon"></view>
<view class="level-label">职级</view> <view class="level-label">职级</view>
<view class="level-desc">初级驻店</view> <view class="level-desc">{{ jobTypeList[incomeDetail.jobType] }}</view>
<view class="sprite-icon icon-js-icon"></view> <view class="sprite-icon icon-js-icon"></view>
</view> </view>
<view class="time-box" @click="jump('Calendar')"> <view class="time-box" @click="jump('Calendar')">
...@@ -54,6 +54,18 @@ export default { ...@@ -54,6 +54,18 @@ export default {
return { return {
// showPassword: true // showPassword: true
showPassword: false, showPassword: false,
jobTypeList: {
0: '实习生(理论)',
1: '实习生(实践)',
2: '初级驻店',
3: '中级驻店',
4: '高级驻店',
5: '小店长',
6: '大店长',
7: '初级区域督导',
8: '中级区域督导',
9: '高级区域督导'
},
incomeDetail: { incomeDetail: {
staffName: 'string', staffName: 'string',
staffPhone: 'string', staffPhone: 'string',
...@@ -123,9 +135,8 @@ export default { ...@@ -123,9 +135,8 @@ export default {
* @param {String} name pages/HomeFrame/components/Point/下的vue文件名 * @param {String} name pages/HomeFrame/components/Point/下的vue文件名
* @param {Number|String} val 传递的参数 * @param {Number|String} val 传递的参数
*/ */
jump(name, val) { jump(name) {
console.log(name, 99) this.showPage(name, { jobType: this.incomeDetail.jobType })
this.showPage(name, val)
} }
} }
} }
......
<template> <template>
<view> <view>
<home-frame <home-frame @preview="preview" @start="start" ref="home" :id="id" @openStep="openStep" @backHome="backHome" @changeTab="changeTab">
@preview="preview" <view class="module-box" slot="module">
@start="start"
ref="home"
:id="id"
@openStep="openStep"
@backHome="backHome"
@changeTab="changeTab"
>
<view
class="module-box"
slot="module"
>
<template v-for="(i, index) in moduleList"> <template v-for="(i, index) in moduleList">
<view <view :key="index" :class="['item', i.class]" :style="i.style" @click="toDetail(i)" v-if="!i.hide">
:key="index"
:class="['item', i.class]"
:style="i.style"
@click="toDetail(i)"
v-if="!i.hide"
>
<template v-if="i.showAlt"> <template v-if="i.showAlt">
<view class="item-text flex">{{ i.title }}</view> <view class="item-text flex">{{ i.title }}</view>
</template> </template>
<template v-else> <template v-else>
<image <image class="item-img" :src="i.thumbnail" mode="scaleToFill" @error="errorImg(index)" />
class="item-img"
:src="i.thumbnail"
mode="scaleToFill"
@error="errorImg(index)"
/>
</template> </template>
</view> </view>
</template> </template>
</view> </view>
<template slot="detail"> <template slot="detail">
<detail <detail :id.sync="id" :media="moduleList" :type.sync="type" :toolList="toolList" :aitoCarModelIds="aitoCarModelIds" @back="back" @done="done" ref="detail" />
:id.sync="id"
:media="moduleList"
:type.sync="type"
:toolList="toolList"
:aitoCarModelIds="aitoCarModelIds"
@back="back"
@done="done"
ref="detail"
/>
</template> </template>
<template slot="content"> <template slot="content">
<!-- <novice-guide <!-- <novice-guide
...@@ -73,7 +42,7 @@ import HomeFrame from '@/components/HomeFrame/index.vue' ...@@ -73,7 +42,7 @@ import HomeFrame from '@/components/HomeFrame/index.vue'
export default { export default {
// mixins: [storge], // mixins: [storge],
components: { HomeFrame, detail, NoviceGuide }, components: { HomeFrame, detail, NoviceGuide },
data () { data() {
return { return {
moduleList: [], moduleList: [],
toolList: [], toolList: [],
...@@ -82,16 +51,16 @@ export default { ...@@ -82,16 +51,16 @@ export default {
chooseItem: {}, chooseItem: {},
tabIndex: 0, tabIndex: 0,
recording: false, recording: false,
aitoCarModelIds:[] aitoCarModelIds: []
} }
}, },
computed: { computed: {
channelType () { channelType() {
const { channelType } = uni.$storage.get('userInfo') const { channelType } = uni.$storage.get('userInfo')
return channelType || 1 //默认问界 return channelType || 1 //默认问界
} }
}, },
onBackPress (options) { onBackPress(options) {
if (options.from === 'backbutton') { if (options.from === 'backbutton') {
// 物理返回按钮触发 // 物理返回按钮触发
// 阻止默认行为,即不执行页面返回 // 阻止默认行为,即不执行页面返回
...@@ -101,12 +70,12 @@ export default { ...@@ -101,12 +70,12 @@ export default {
// 其他情况允许正常返回 // 其他情况允许正常返回
return false return false
}, },
onLoad () { onLoad() {
this.setViewInfo() this.setViewInfo()
this.getSoure() this.getSoure()
this.get_Vehicle_Sales_Data() this.get_Vehicle_Sales_Data()
}, },
onShow () { onShow() {
const userInfo = uni.$storage.get('userInfo') const userInfo = uni.$storage.get('userInfo')
if (!userInfo.shopMerchantId || !userInfo.shopMerchantName) { if (!userInfo.shopMerchantId || !userInfo.shopMerchantName) {
uni.$storage.rm('userInfo') uni.$storage.rm('userInfo')
...@@ -120,11 +89,11 @@ export default { ...@@ -120,11 +89,11 @@ export default {
}, },
methods: { methods: {
...mapMutations('audio', ['setReceptionStatus']), ...mapMutations('audio', ['setReceptionStatus']),
init () { init() {
this.findPayInfo() this.findPayInfo()
}, },
/**获取车型&销售数据 */ /**获取车型&销售数据 */
get_Vehicle_Sales_Data () { get_Vehicle_Sales_Data() {
const userInfo = uni.$storage.get('userInfo'), const userInfo = uni.$storage.get('userInfo'),
storageCarBrandList = uni.$storage.get('carBrandList'), storageCarBrandList = uni.$storage.get('carBrandList'),
storageEmployeeList = uni.$storage.get('employeeList'), storageEmployeeList = uni.$storage.get('employeeList'),
...@@ -160,7 +129,7 @@ export default { ...@@ -160,7 +129,7 @@ export default {
}, },
// 查询素材 // 查询素材
// 查询素材 // 查询素材
async getSoure () { async getSoure() {
/**比亚迪 */ /**比亚迪 */
if (this.channelType == 2) { if (this.channelType == 2) {
let { moduleList, toolList } = await uni.$api.systemApi.getBydMockData(true) let { moduleList, toolList } = await uni.$api.systemApi.getBydMockData(true)
...@@ -209,7 +178,7 @@ export default { ...@@ -209,7 +178,7 @@ export default {
) )
this.setViewInfo(moduleList, toolList) this.setViewInfo(moduleList, toolList)
} else { } else {
let { moduleList, toolList, default_moduleList, default_toolList, boutiqueDefaultCarBrandId,aitoCarModelIds } = await uni.$api.systemApi.getMockData(true) let { moduleList, toolList, default_moduleList, default_toolList, boutiqueDefaultCarBrandId, aitoCarModelIds } = await uni.$api.systemApi.getMockData(true)
if (this.channelType == 3) { if (this.channelType == 3) {
let configList let configList
try { try {
...@@ -256,8 +225,7 @@ export default { ...@@ -256,8 +225,7 @@ export default {
const receptionSourceDetailListType = Array.isArray(e.receptionSourceDetailList) const receptionSourceDetailListType = Array.isArray(e.receptionSourceDetailList)
return { return {
...e, ...e,
receptionSourceDetailList: e.receptionSourceDetailList ? await uni.$api.systemApi.imgToBase64(e.receptionSourceDetailList, receptionSourceDetailList: e.receptionSourceDetailList ? await uni.$api.systemApi.imgToBase64(e.receptionSourceDetailList, receptionSourceDetailListType ? 'detailUrl' : '', receptionSourceDetailListType) : undefined,
receptionSourceDetailListType ? 'detailUrl' : '', receptionSourceDetailListType) : undefined,
carTypeList: e.carTypeList ? await uni.$api.systemApi.imgToBase64(e.carTypeList, 'url') : undefined, carTypeList: e.carTypeList ? await uni.$api.systemApi.imgToBase64(e.carTypeList, 'url') : undefined,
screenList: e.screenList ? await uni.$api.systemApi.imgToBase64(e.screenList, 'url') : undefined screenList: e.screenList ? await uni.$api.systemApi.imgToBase64(e.screenList, 'url') : undefined
} }
...@@ -277,26 +245,26 @@ export default { ...@@ -277,26 +245,26 @@ export default {
} }
} }
}, },
errorImg (index) { errorImg(index) {
this.moduleList[index].showAlt = true this.moduleList[index].showAlt = true
}, },
async start () { async start() {
if (this.recording) return if (this.recording) return
uni.showLoading({ uni.showLoading({
mask: true mask: true
}) })
// const result = await this.$permision.requestAndroidPermission('android.permission.RECORD_AUDIO') const result = await this.$permision.requestAndroidPermission('android.permission.RECORD_AUDIO')
// if (result !== 1) { if (result !== 1) {
// uni.showToast({ uni.showToast({
// title: '为了记录语音通话,请打开录音权限', title: '为了记录语音通话,请打开录音权限',
// icon: 'none' icon: 'none'
// }) })
// return return
// } }
this.getSoure() this.getSoure()
this.clearHistory() this.clearHistory()
// this.$refs.home.startAudio() this.$refs.home.startAudio()
this.id = this.moduleList[0].id this.id = this.moduleList[0].id
this.type = 'edit' this.type = 'edit'
this.recording = true this.recording = true
...@@ -304,14 +272,14 @@ export default { ...@@ -304,14 +272,14 @@ export default {
uni.hideLoading() uni.hideLoading()
}, 1e3) }, 1e3)
}, },
toDetail (item) { toDetail(item) {
this.chooseItem = item this.chooseItem = item
this.$refs.home.previewRef.open() this.$refs.home.previewRef.open()
}, },
cancel () { cancel() {
this.$refs.home.previewRef.close() this.$refs.home.previewRef.close()
}, },
preview () { preview() {
let { id, title } = this.chooseItem let { id, title } = this.chooseItem
this.type = 'preview' this.type = 'preview'
this.id = id this.id = id
...@@ -319,7 +287,7 @@ export default { ...@@ -319,7 +287,7 @@ export default {
this.cancel() this.cancel()
}, },
// 完成接待 // 完成接待
done (e) { done(e) {
this.$refs.home.finishRef.close() this.$refs.home.finishRef.close()
if (this.recording) this.$refs.home.stopAudio() if (this.recording) this.$refs.home.stopAudio()
this.recording = false this.recording = false
...@@ -331,14 +299,14 @@ export default { ...@@ -331,14 +299,14 @@ export default {
this.$store.dispatch('clearReceptionTrack') this.$store.dispatch('clearReceptionTrack')
}, 1500) }, 1500)
}, },
back () { back() {
const detailRef = this.$refs.detail const detailRef = this.$refs.detail
if (detailRef.showPayPage) return (detailRef.showPayPage = false) if (detailRef.showPayPage) return (detailRef.showPayPage = false)
if (!this.id) return uni.navigateBack() if (!this.id) return uni.navigateBack()
if (this.type != 'preview') return this.$refs.home.finishRef.open() if (this.type != 'preview') return this.$refs.home.finishRef.open()
this.backHome() this.backHome()
}, },
backHome () { backHome() {
if (this.recording) this.$refs.home.stopAudio(true) if (this.recording) this.$refs.home.stopAudio(true)
this.$refs.home.finishRef.close() this.$refs.home.finishRef.close()
this.id = '' this.id = ''
...@@ -347,23 +315,23 @@ export default { ...@@ -347,23 +315,23 @@ export default {
this.init() this.init()
this.recording = false this.recording = false
}, },
nextStep () { nextStep() {
let { id } = this.moduleList[0] let { id } = this.moduleList[0]
this.type = 'preview' this.type = 'preview'
this.id = id this.id = id
}, },
clearHistory () { clearHistory() {
this.$store.dispatch('clearCustomerInfo') this.$store.dispatch('clearCustomerInfo')
this.$store.dispatch('clearHistory') this.$store.dispatch('clearHistory')
this.$refs.home.setBooks([]) this.$refs.home.setBooks([])
this.$store.dispatch('clearReceptionTrack') this.$store.dispatch('clearReceptionTrack')
}, },
openStep () { openStep() {
this.$refs.home.finishRef.close() this.$refs.home.finishRef.close()
this.$refs.detail.open() this.$refs.detail.open()
}, },
// 查询门店支付配置 // 查询门店支付配置
async findPayInfo () { async findPayInfo() {
const { shopMerchantId } = uni.$storage.get('userInfo') const { shopMerchantId } = uni.$storage.get('userInfo')
const data = await uni.$api.commonApi.findPayInfo({ const data = await uni.$api.commonApi.findPayInfo({
merchantId: shopMerchantId merchantId: shopMerchantId
...@@ -387,13 +355,13 @@ export default { ...@@ -387,13 +355,13 @@ export default {
}) })
this.$store.dispatch('setPaymentType', paymentType) this.$store.dispatch('setPaymentType', paymentType)
}, },
changeTab (index) { changeTab(index) {
this.tabIndex = index this.tabIndex = index
if (index == 0) this.init() if (index == 0) this.init()
}, },
/**按序加载车型 */ /**按序加载车型 */
async getCarBrandsList (carBrandList, index) { async getCarBrandsList(carBrandList, index) {
const item = carBrandList[index] const item = carBrandList[index]
if (!item) return if (!item) return
const carList = uni.getStorageSync(`${item.id}_${item.brandId}_carlist`) const carList = uni.getStorageSync(`${item.id}_${item.brandId}_carlist`)
...@@ -410,7 +378,7 @@ export default { ...@@ -410,7 +378,7 @@ export default {
} }
}, },
/**素材内容 */ /**素材内容 */
setViewInfo (_moduleList, _toolList) { setViewInfo(_moduleList, _toolList) {
if (_moduleList && _toolList) { if (_moduleList && _toolList) {
this.moduleList = _moduleList this.moduleList = _moduleList
this.toolList = _toolList this.toolList = _toolList
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!