Commit 018911dc by 李伟康

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

2 parents b3c61981 0875444e
......@@ -140,5 +140,13 @@ module.exports = {
projectName: 'boutique',
...data
})
},
/**直级介绍配置查询 */
getJobConfig(data) {
return http.post({
method: 'dj.smartcarlife.api.job.rank.config.search',
projectName: 'boutique',
...data
})
}
}
import http from "../request/http";
import http from '../request/http'
module.exports = {
/**获取短信 */
getSmsCode (data = {}) {
data.projectName = "boutique";
return http.fetch("dj.api.smartcarlife.sms.get.code", data);
getSmsCode(data = {}) {
data.projectName = 'boutique'
return http.fetch('dj.api.smartcarlife.sms.get.code', data)
},
/**手机验证码登录 */
smsLogin (data = {}) {
smsLogin(data = {}) {
data.projectName = 'boutique'
data.source = 'MINIAPP'
data.productCode = 'PC00c2'
return http.fetch('dj.api.smartcarlife.sms.applogin', data)
},
/**免登 */
autoLogin (data = {}) {
data.projectName = "boutique";
return http.fetch("dj.api.smartcarlife.sms.noSignIn.login", data);
autoLogin(data = {}) {
data.projectName = 'boutique'
return http.fetch('dj.api.smartcarlife.sms.noSignIn.login', data)
},
// 获取园区店下的4s店
getSceneMerchantRefStoreList (data) {
data.projectName = "boutique";
getSceneMerchantRefStoreList(data) {
data.projectName = 'boutique'
return http.post({
method: "dj.api.scenemerchantref.query4SRefByYqShopByLogin",
...data,
});
method: 'dj.api.scenemerchantref.query4SRefByYqShopByLogin',
...data
})
},
/**获取帐号列表 */
getListSelectAccount (data = {}) {
data.projectName = "boutique";
return http.fetch("dj.api.smartcarlife.workWechat.listSelectAccount", data);
getListSelectAccount(data = {}) {
data.projectName = 'boutique'
return http.fetch('dj.api.smartcarlife.workWechat.listSelectAccount', data)
},
/**选择帐号登陆 */
selectAccountLogin (data) {
data.projectName = "boutique";
selectAccountLogin(data) {
data.projectName = 'boutique'
return http.post({
method: "dj.api.smartcarlife.workWechat.selectAccountLogin",
...data,
});
method: 'dj.api.smartcarlife.workWechat.selectAccountLogin',
...data
})
},
// 选择4s店和场景
selectMerchantScene (data) {
data.projectName = "boutique";
selectMerchantScene(data) {
data.projectName = 'boutique'
return http.post({
method: "dj.api.smartcarlife.selectMerchantScene",
...data,
});
method: 'dj.api.smartcarlife.selectMerchantScene',
...data
})
},
// 获取园区店开通的场景入口
getYqMerchantSceneConfigAPI (data) {
data.projectName = "boutique";
getYqMerchantSceneConfigAPI(data) {
data.projectName = 'boutique'
return http.post({
method: "dj.api.smartcarlife.select.openScene.info",
...data,
});
method: 'dj.api.smartcarlife.select.openScene.info',
...data
})
},
/**退出*/
logout (data = {}) {
logout(data = {}) {
data.projectName = 'boutique'
return http.fetch('dj.api.smartcarlife.logout', data);
return http.fetch('dj.api.smartcarlife.logout', data)
},
/**
* 查询门店品牌 "渠道标识channelType 1.问界 2.比亚迪 3.其他"
* 查询门店品牌 "渠道标识channelType 1.问界 2.比亚迪 3.其他"
*/
getMerchantBrand (data = {}) {
data.projectName = "boutique";
getMerchantBrand(data = {}) {
data.projectName = 'boutique'
return http.post({
method: "dj.api.smartcarlife.recepiton.findMerchantBrand",
...data,
});
method: 'dj.api.smartcarlife.recepiton.findMerchantBrand',
...data
})
},
/**
* 查询门店保险权益
*/
getMerchantInsuranceList (data = {}) {
data.projectName = "boutique";
getMerchantInsuranceList(data = {}) {
data.projectName = 'boutique'
return http.post({
method: "dj.api.smartcarlife.recepiton.findMerchantItem",
...data,
});
method: 'dj.api.smartcarlife.recepiton.findMerchantItem',
...data
})
},
};
/**
* 员工隐私密码验证
*/
verifyStaffPassword(data = {}) {
data.projectName = 'boutique'
return http.post({
method: 'dj.api.smartcarlife.staff.private.password.verify',
...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 {
return
}
const clock = this.clockInDateList.find(i => i.day == day)
return clock.isClock
return clock?.isClock
},
getDetail() {
const { phone: staffPhone } = uni.$storage.get('userInfo')
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-08 09:51:43
* @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
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -12,7 +12,7 @@
<view class="sprite-icon icon-tips"></view>
<text>今日TIPS</text>
</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="item-header flex">
<view class="sprite-icon icon-store-icon"></view>
......@@ -27,8 +27,14 @@
</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-btn" @click="calDaliog = true">
<view class="tips-btn" @click="IncomeCal">
<text>收入测算</text>
<view class="tip-img">
<view class="sprite-icon icon-btn-tips"></view>
......@@ -37,11 +43,11 @@
</view>
<Dailog @close="calDaliog = false" v-if="calDaliog" width="1600rpx" title="职级晋升、渗透率提升后收入测算">
<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">
<view class="input-item" :key="index" v-if="!(item.key == 'configCarType' && form.sceneType == 1)">
<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>
<uni-icons class="arrow" type="right" :size="16"></uni-icons>
</view>
......@@ -75,21 +81,24 @@
</Dailog>
<Dailog @close="show = false" v-if="show" width="1360rpx" title="收入测算结果">
<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-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-desc">
<view class="value-desc flex">
<view class="value-title">本月产值</view>
<view class="value-price">
<text>¥</text>
{{ item.totalPrice }}
</view>
</view>
<view class="value-desc">
<view class="value-desc flex">
<view class="value-title">成交</view>
<view class="value-price">
{{ item.subOrderCount }}
{{ item.subOrderCount || 0 }}
<text>单</text>
</view>
</view>
......@@ -97,7 +106,7 @@
<view class="value-detail">
<view class="detail-item" v-for="(output, i) in outputDetail">
<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>
......@@ -244,10 +253,7 @@ export default {
}
]
},
form: {
shouldToShopCount: '',
goodsTypeList: []
},
form: {},
drawInfo: {},
salaryDetail: {},
selectList: [
......@@ -318,10 +324,16 @@ export default {
console.log(val)
}
},
formItem: {
handler(val) {
const fL = val.filter(i => i)
if (fL.length == 4 && this.form.sceneType == 0) {
this.getLatestConfigDetail()
}
},
deep: true
},
'form.sceneType'(val) {
if (val === '0') {
this.getLatestConfigDetail()
}
if (val === '1') {
this.form.goodsTypeList = [
{
......@@ -331,7 +343,22 @@ export default {
}
}
},
computed: {
formItem() {
const { merchantId, sceneType, jobType, configCarType } = this.form
return [merchantId, sceneType, jobType, configCarType]
}
},
methods: {
IncomeCal() {
this.calDaliog = true
this.form = {
shouldToShopCount: '',
goodsTypeList: [],
sceneType: '1'
}
this.selectKey = ''
},
getDetail() {
const { phone: staffPhone, merchantId } = uni.$storage.get('userInfo')
uni.$api.pointApi.getTipsMessage({ staffPhone, merchantId }).then(res => {
......@@ -420,6 +447,19 @@ export default {
height: calc(100vh - 540rpx);
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 {
padding: 30rpx 32rpx;
width: 100%;
......@@ -496,7 +536,17 @@ export default {
.dailog-body {
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 {
width: 100%;
display: flex;
......@@ -507,10 +557,15 @@ export default {
&.select-container {
margin-bottom: 128rpx;
display: grid;
grid-template-columns: 31% 38% 31%;
gap: 40rpx;
grid-template-columns: 31% 38% 31%;
}
&.row_2 {
grid-template-columns: 50% 50%;
.input-label {
width: 150rpx;
}
}
&.num-second {
flex-wrap: wrap;
......@@ -569,11 +624,16 @@ export default {
}
.month-box {
width: 552rpx;
height: 308rpx;
background-image: linear-gradient(180deg, #e6f1ff 0%, #f5f8ff 100%);
border-radius: 24rpx;
width: 472rpx;
height: 260rpx;
background: #ffffff;
margin-bottom: 40rpx;
.month-mark {
font-size: 24rpx;
color: #808291;
padding-left: 30rpx;
padding-top: 28rpx;
}
.value-box {
display: flex;
margin: 0 30rpx;
......@@ -581,18 +641,17 @@ export default {
.value-desc {
flex: 1;
text-align: center;
padding: 20rpx 0 0;
.value-title {
font-size: 24rpx;
color: #181a1f;
color: #adb0b8;
line-height: 36rpx;
}
.value-price {
font-weight: 600;
font-size: 40rpx;
color: #2c66f7;
line-height: 60rpx;
font-size: 36rpx;
color: #181a1f;
margin-left: 8rpx;
text {
font-size: 22rpx;
......@@ -602,8 +661,6 @@ export default {
}
.value-detail {
width: 488rpx;
height: 116rpx;
background: #ffffff;
border-radius: 16rpx;
margin: 10rpx auto;
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-07 13:49:15
* @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
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -17,7 +17,7 @@
<view class="history-box">
<view class="chart-box">
<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>
<text>点击柱形图切换月份</text>
</view>
......@@ -27,25 +27,27 @@
</view>
<view class="income-box">
<view class="income-header">
<text>{{ year }}年8月收入</text>
<text>{{ year - 1 }}年8月收入</text>
</view>
<view class="income-tips">
<view class="sprite-icon icon-tips-b"></view>
<text>以下未包括 个人所得税、社保等事项</text>
</view>
<view class="income-list">
<view class="income-item" v-for="(item, index) in IncomeList" :key="index">
<view class="item-label" @click="handleShow(item)">{{ item.label }}</view>
<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-expand" @click="showDetail(item)" v-if="salaryDetail[item.value] && item.tabelTh"></view>
</view>
<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>
<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-expand" @click="showDetail(item)" v-if="salaryDetail[item.value] && item.tabelTh"></view>
</view>
</template>
</view>
<view class="income-footer">
<view class="footer-label">当月收入</view>
<view class="footer-price">
<text>¥</text>
{{ salaryDetail.correctSalary }}
{{ salaryDetail.correctSalary || 0 }}
</view>
</view>
</view>
......@@ -106,6 +108,15 @@ export default {
.exec()
},
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) {
uni.$api.pointApi.pageStat({ salaryMonthBegin: `${this.year - 1}-1`, salaryMonthEnd: `${this.year - 1}-12` }).then(res => {
const list = res.list || []
......@@ -124,9 +135,9 @@ export default {
}
}
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 {
*/
monthSalaryDetail(salaryMonth) {
uni.$api.pointApi.monthSalaryDetail({ salaryMonth }).then(res => {
this.salaryDetail = res
this.salaryDetail = res || {}
})
},
......@@ -188,7 +199,7 @@ export default {
if (this.canvasList[i].num) {
this.showChart(i) // 重新绘制图表,如果需要更新显示
const month = this.canvasList[i].date.replace(/\D+/, '')
this.monthSalaryDetail(this.year + '-' + month)
this.monthSalaryDetail(this.year - 1 + '-' + month)
}
break
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-10 14:54:29
* @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
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -50,13 +50,13 @@
<view class="value-title">产值</view>
<view class="value-price">
<text>¥</text>
{{ item.calculateValue || '-' }}
{{ item.calculateValue || '0' }}
</view>
</view>
<view class="value-desc flex">
<view class="value-title">成交</view>
<view class="value-price">
{{ item.orderCount || '-' }}
{{ item.orderCount || '0' }}
<text>单</text>
</view>
</view>
......@@ -67,7 +67,7 @@
<text>{{ v.label }}</text>
<uni-icons type="help" size="15" color="#A2A2A8" v-if="v.content" @click="clickTips(v)"></uni-icons>
</view>
<view class="detail-num">{{ item[v.value] || '-' }}</view>
<view class="detail-num">{{ item[v.value] || '0' }}</view>
</view>
</view>
</view>
......@@ -91,17 +91,19 @@
</view>
<view class="panel-bottom">
<text>¥</text>
{{ salaryDetail.correctSalary }}
{{ salaryDetail.correctSalary || 0 }}
</view>
</view>
<view class="income-detail">
<view class="income-detail-item flex" v-for="(item, index) in IncomeList" :key="index">
<view :class="`sprite-icon icon-${item.icon}`"></view>
<view class="item-label">{{ item.label }}</view>
<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-next" @click="showDetail(item)" v-if="item.tabelTh && salaryDetail[item.value]"></view>
</view>
<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="item-label">{{ item.label }}</view>
<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-next" @click="showDetail(item)" v-if="item.tabelTh && salaryDetail[item.value]"></view>
</view>
</template>
</view>
<view class="income-footer">个人所得税、社保、迟到、早退等月初统一核算,不包括在收入测算中。实际发放工资以工资核算为准。</view>
</view>
......@@ -192,29 +194,7 @@ export default {
},
commissionsInfo: [{}],
scene0PenetrationRateCommissions: [],
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: '延保提成'
}
],
tipsList: [],
list: [],
show: false,
calDaliog: false,
......@@ -222,9 +202,7 @@ export default {
}
},
mounted() {
console.log(8888)
this.outputList = this.outputList.filter(i => i.value == 0)
this.getSalaryDetail()
},
watch: {
'form.merchantId'(val) {
......@@ -239,9 +217,9 @@ export default {
}
},
methods: {
getSalaryDetail() {
uni.$api.pointApi.monthSalaryDetail({ salaryMonth: '2024-11' }).then(res => {
this.salaryDetail = res
getDetail(salaryMonth) {
uni.$api.pointApi.monthSalaryDetail({ salaryMonth }).then(res => {
this.salaryDetail = res || {}
})
console.log(this.salaryDetail, 'salaryDetail')
},
......@@ -271,9 +249,20 @@ export default {
this.commissionsInfo = commissionsOther.nscene0PenetrationRateGoodsCommissions || []
}
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() {
const result = this.scene0PenetrationRateCommissions.find(i => {
return i.configCarType == this.activeIndex
......
......@@ -2,19 +2,40 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-10 14:54:29
* @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
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<view class="calendar-container">
<view class="job-container">
<view class="nav-bar">
<view class="back" @click="back">
<uni-icons type="left" :size="20" color="#000"></uni-icons>
</view>
<view class="title"><text>晋升介绍</text></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>
</template>
......@@ -22,10 +43,70 @@
import point from '@/mixin/point'
export default {
mixins: [point],
props: {
transfer: {
type: Object,
default: () => {}
}
},
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: {}
methods: {
getDetail() {
this.activeIndex = this.transfer.jobType
this.getJobConfig()
},
changeTab(index) {
this.activeIndex = index
this.getJobConfig(index)
},
getJobConfig() {
uni.$api.pointApi.getJobConfig({ jobType: this.activeIndex }).then(res => {
this.jobDetail = res || {}
})
}
}
}
</script>
......@@ -55,13 +136,55 @@ export default {
}
}
}
.calendar-box {
.job-box {
width: calc(100vw - 128rpx);
margin: 30rpx auto 0;
height: calc(100vh - 220rpx);
background: #ffffff;
border-radius: 48rpx;
padding: 64rpx;
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>
......@@ -5,7 +5,7 @@
<view class="level-box" @click="jump('Promotion')">
<view class="sprite-icon icon-zj-icon"></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>
<view class="time-box" @click="jump('Calendar')">
......@@ -52,7 +52,20 @@ export default {
components: { DayTips, Password, MyStore },
data() {
return {
// showPassword: true
showPassword: false,
jobTypeList: {
0: '实习生(理论)',
1: '实习生(实践)',
2: '初级驻店',
3: '中级驻店',
4: '高级驻店',
5: '小店长',
6: '大店长',
7: '初级区域督导',
8: '中级区域督导',
9: '高级区域督导'
},
incomeDetail: {
staffName: 'string',
staffPhone: 'string',
......@@ -122,9 +135,8 @@ export default {
* @param {String} name pages/HomeFrame/components/Point/下的vue文件名
* @param {Number|String} val 传递的参数
*/
jump(name, val) {
console.log(name, 99)
this.showPage(name, val)
jump(name) {
this.showPage(name, { jobType: this.incomeDetail.jobType })
}
}
}
......@@ -228,9 +240,7 @@ export default {
transform: translate(-50%, -50%);
background: #fff;
background-image: linear-gradient(179deg, #d6e9ff 12%, #ffffff 100%); /* 顶部渐变和底部白色 */
background-size:
100% 110rpx,
100% calc(100% - 110rpx); /* 分别设置渐变和白色的背景大小 */
background-size: 100% 110rpx, 100% calc(100% - 110rpx); /* 分别设置渐变和白色的背景大小 */
background-repeat: no-repeat, no-repeat; /* 确保背景不重复 */
background-position: top, bottom; /* 分别设置渐变和白色的位置 */
width: 1040rpx;
......
const target = ['ip', 'dev', 'uat', 'prod', 'beta']
const index = 2
const index = 1
/**
*
0本地
......
<template>
<view>
<home-frame
@preview="preview"
@start="start"
ref="home"
:id="id"
@openStep="openStep"
@backHome="backHome"
@changeTab="changeTab"
>
<view
class="module-box"
slot="module"
>
<home-frame @preview="preview" @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">
<view
:key="index"
:class="['item', i.class]"
:style="i.style"
@click="toDetail(i)"
v-if="!i.hide"
>
<view :key="index" :class="['item', i.class]" :style="i.style" @click="toDetail(i)" v-if="!i.hide">
<template v-if="i.showAlt">
<view class="item-text flex">{{ i.title }}</view>
</template>
<template v-else>
<image
class="item-img"
:src="i.thumbnail"
mode="scaleToFill"
@error="errorImg(index)"
/>
<image class="item-img" :src="i.thumbnail" mode="scaleToFill" @error="errorImg(index)" />
</template>
</view>
</template>
</view>
<template slot="detail">
<detail
:id.sync="id"
:media="moduleList"
:type.sync="type"
:toolList="toolList"
:aitoCarModelIds="aitoCarModelIds"
@back="back"
@done="done"
ref="detail"
/>
<detail :id.sync="id" :media="moduleList" :type.sync="type" :toolList="toolList" :aitoCarModelIds="aitoCarModelIds" @back="back" @done="done" ref="detail" />
</template>
<template slot="content">
<!-- <novice-guide
......@@ -73,7 +42,7 @@ import HomeFrame from '@/components/HomeFrame/index.vue'
export default {
// mixins: [storge],
components: { HomeFrame, detail, NoviceGuide },
data () {
data() {
return {
moduleList: [],
toolList: [],
......@@ -82,16 +51,16 @@ export default {
chooseItem: {},
tabIndex: 0,
recording: false,
aitoCarModelIds:[]
aitoCarModelIds: []
}
},
computed: {
channelType () {
channelType() {
const { channelType } = uni.$storage.get('userInfo')
return channelType || 1 //默认问界
}
},
onBackPress (options) {
onBackPress(options) {
if (options.from === 'backbutton') {
// 物理返回按钮触发
// 阻止默认行为,即不执行页面返回
......@@ -101,12 +70,12 @@ export default {
// 其他情况允许正常返回
return false
},
onLoad () {
onLoad() {
this.setViewInfo()
this.getSoure()
this.get_Vehicle_Sales_Data()
},
onShow () {
onShow() {
const userInfo = uni.$storage.get('userInfo')
if (!userInfo.shopMerchantId || !userInfo.shopMerchantName) {
uni.$storage.rm('userInfo')
......@@ -120,11 +89,11 @@ export default {
},
methods: {
...mapMutations('audio', ['setReceptionStatus']),
init () {
init() {
this.findPayInfo()
},
/**获取车型&销售数据 */
get_Vehicle_Sales_Data () {
get_Vehicle_Sales_Data() {
const userInfo = uni.$storage.get('userInfo'),
storageCarBrandList = uni.$storage.get('carBrandList'),
storageEmployeeList = uni.$storage.get('employeeList'),
......@@ -160,7 +129,7 @@ export default {
},
// 查询素材
// 查询素材
async getSoure () {
async getSoure() {
/**比亚迪 */
if (this.channelType == 2) {
let { moduleList, toolList } = await uni.$api.systemApi.getBydMockData(true)
......@@ -209,7 +178,7 @@ export default {
)
this.setViewInfo(moduleList, toolList)
} 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) {
let configList
try {
......@@ -256,8 +225,7 @@ export default {
const receptionSourceDetailListType = Array.isArray(e.receptionSourceDetailList)
return {
...e,
receptionSourceDetailList: e.receptionSourceDetailList ? await uni.$api.systemApi.imgToBase64(e.receptionSourceDetailList,
receptionSourceDetailListType ? 'detailUrl' : '', receptionSourceDetailListType) : undefined,
receptionSourceDetailList: e.receptionSourceDetailList ? await uni.$api.systemApi.imgToBase64(e.receptionSourceDetailList, receptionSourceDetailListType ? 'detailUrl' : '', receptionSourceDetailListType) : 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
}
......@@ -277,26 +245,26 @@ export default {
}
}
},
errorImg (index) {
errorImg(index) {
this.moduleList[index].showAlt = true
},
async start () {
async start() {
if (this.recording) return
uni.showLoading({
mask: true
})
// const result = await this.$permision.requestAndroidPermission('android.permission.RECORD_AUDIO')
// if (result !== 1) {
// uni.showToast({
// title: '为了记录语音通话,请打开录音权限',
// icon: 'none'
// })
// return
// }
const result = await this.$permision.requestAndroidPermission('android.permission.RECORD_AUDIO')
if (result !== 1) {
uni.showToast({
title: '为了记录语音通话,请打开录音权限',
icon: 'none'
})
return
}
this.getSoure()
this.clearHistory()
// this.$refs.home.startAudio()
this.$refs.home.startAudio()
this.id = this.moduleList[0].id
this.type = 'edit'
this.recording = true
......@@ -304,14 +272,14 @@ export default {
uni.hideLoading()
}, 1e3)
},
toDetail (item) {
toDetail(item) {
this.chooseItem = item
this.$refs.home.previewRef.open()
},
cancel () {
cancel() {
this.$refs.home.previewRef.close()
},
preview () {
preview() {
let { id, title } = this.chooseItem
this.type = 'preview'
this.id = id
......@@ -319,7 +287,7 @@ export default {
this.cancel()
},
// 完成接待
done (e) {
done(e) {
this.$refs.home.finishRef.close()
if (this.recording) this.$refs.home.stopAudio()
this.recording = false
......@@ -331,14 +299,14 @@ export default {
this.$store.dispatch('clearReceptionTrack')
}, 1500)
},
back () {
back() {
const detailRef = this.$refs.detail
if (detailRef.showPayPage) return (detailRef.showPayPage = false)
if (!this.id) return uni.navigateBack()
if (this.type != 'preview') return this.$refs.home.finishRef.open()
this.backHome()
},
backHome () {
backHome() {
if (this.recording) this.$refs.home.stopAudio(true)
this.$refs.home.finishRef.close()
this.id = ''
......@@ -347,23 +315,23 @@ export default {
this.init()
this.recording = false
},
nextStep () {
nextStep() {
let { id } = this.moduleList[0]
this.type = 'preview'
this.id = id
},
clearHistory () {
clearHistory() {
this.$store.dispatch('clearCustomerInfo')
this.$store.dispatch('clearHistory')
this.$refs.home.setBooks([])
this.$store.dispatch('clearReceptionTrack')
},
openStep () {
openStep() {
this.$refs.home.finishRef.close()
this.$refs.detail.open()
},
// 查询门店支付配置
async findPayInfo () {
async findPayInfo() {
const { shopMerchantId } = uni.$storage.get('userInfo')
const data = await uni.$api.commonApi.findPayInfo({
merchantId: shopMerchantId
......@@ -387,13 +355,13 @@ export default {
})
this.$store.dispatch('setPaymentType', paymentType)
},
changeTab (index) {
changeTab(index) {
this.tabIndex = index
if (index == 0) this.init()
},
/**按序加载车型 */
async getCarBrandsList (carBrandList, index) {
async getCarBrandsList(carBrandList, index) {
const item = carBrandList[index]
if (!item) return
const carList = uni.getStorageSync(`${item.id}_${item.brandId}_carlist`)
......@@ -410,7 +378,7 @@ export default {
}
},
/**素材内容 */
setViewInfo (_moduleList, _toolList) {
setViewInfo(_moduleList, _toolList) {
if (_moduleList && _toolList) {
this.moduleList = _moduleList
this.toolList = _toolList
......
import { getTime } from './util'
import { serializeIfObject } from '../utils'
class LogCat {
main = plus.android.runtimeMainActivity()
File = plus.android.importClass('java.io.File')
Environment = plus.android.importClass('android.os.Environment')
BufferedWriter = plus.android.importClass('java.io.BufferedWriter')
FileOutputStream = plus.android.importClass('java.io.FileOutputStream')
OutputStreamWriter = plus.android.importClass('java.io.OutputStreamWriter')
// BufferedReader = plus.android.importClass('java.io.BufferedReader')
// FileInputStream = plus.android.importClass('java.io.FileInputStream')
// InputStreamReader = plus.android.importClass('java.io.InputStreamReader')
LogPath = ''
constructor(folderName = '_zyzs_log') {
if (this.Environment.MEDIA_MOUNTED || !this.Environment.isExternalStorageRemovable()) {
this.LogPath = this.main.getExternalFilesDir(null).getPath() + folderName
} else {
this.LogPath = this.main.getFilesDir().getPath() + folderName
}
console.log('日志文件存放路径->', this.LogPath)
}
writeLog(tag, messages) {
writeLog(tag, messages) {
return
let msg = serializeIfObject(messages)
let date = getTime('YYYY-MM-DD')
let datetime = getTime()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!