Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 518a5cc0
authored
Jan 20, 2025
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
收入
1 parent
ffe5edc9
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
90 additions
and
101 deletions
components/HomeFrame/components/Income/DayTips.vue
components/HomeFrame/components/Income/Detail.vue
components/HomeFrame/components/Income/History.vue
components/HomeFrame/components/Income/index.vue
components/HomeFrame/components/Point/DayPoint.vue
components/HomeFrame/components/Point/LevelPoint.vue
components/HomeFrame/index.vue
mixin/point.js
components/HomeFrame/components/Income/DayTips.vue
View file @
518a5cc
...
@@ -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-
19 16:59:59
* @LastEditTime: 2025-01-
20 10:03:51
* @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
-->
-->
...
@@ -217,7 +217,7 @@ export default {
...
@@ -217,7 +217,7 @@ export default {
},
},
{
{
label
:
'提成比例'
,
label
:
'提成比例'
,
value
:
'
c
ommissionRatio'
,
value
:
'
outputC
ommissionRatio'
,
unit
:
'%'
unit
:
'%'
}
}
],
],
...
...
components/HomeFrame/components/Income/Detail.vue
View file @
518a5cc
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<td>
{{
index
+
1
}}
</td>
<td>
{{
index
+
1
}}
</td>
<td
v-for=
"(colValue, colKey) in tabelTr"
:key=
"colKey"
>
<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>
<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>
</td>
</tr>
</tr>
</table>
</table>
...
...
components/HomeFrame/components/Income/History.vue
View file @
518a5cc
...
@@ -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-
19 15:19:45
* @LastEditTime: 2025-01-
20 11:35:39
* @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
-->
-->
...
@@ -113,6 +113,8 @@ export default {
...
@@ -113,6 +113,8 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
IncomeList
=
this
.
IncomeList
.
sort
((
a
,
b
)
=>
a
.
sort
-
b
.
sort
)
console
.
log
(
this
.
IncomeList
,
'IncomeList'
)
const
query
=
uni
.
createSelectorQuery
().
in
(
this
)
const
query
=
uni
.
createSelectorQuery
().
in
(
this
)
query
query
.
select
(
'.canvas-box'
)
.
select
(
'.canvas-box'
)
...
@@ -282,8 +284,14 @@ export default {
...
@@ -282,8 +284,14 @@ export default {
continue
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) {
// if (this.canPersent[i] == 0) {
// i++
// i++
// ctx.fillText(this.canvasList[i].date, 30 + gap * i, this.height + 10)
// ctx.fillText(this.canvasList[i].date, 30 + gap * i, this.height + 10)
...
...
components/HomeFrame/components/Income/index.vue
View file @
518a5cc
...
@@ -15,11 +15,11 @@
...
@@ -15,11 +15,11 @@
<view
class=
"time-go"
></view>
<view
class=
"time-go"
></view>
</view>
</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
class=
"sprite-icon icon-tips-b"
></view>
最终的交付数以厂家提供的交付数为准,个人填写的交付数仅为工资测算参考。
最终的交付数以厂家提供的交付数为准,个人填写的交付数仅为工资测算参考。
</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"
>
<view
class=
"income-store"
>
<My-Store
:merchants=
"incomeDetail.merchants"
></My-Store>
<My-Store
:merchants=
"incomeDetail.merchants"
></My-Store>
</view>
</view>
...
...
components/HomeFrame/components/Point/DayPoint.vue
View file @
518a5cc
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @Date: 2024-04-08 11:30:30
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-
08 16:17:34
* @LastEditTime: 2025-01-
20 10:32:31
-->
-->
<
template
>
<
template
>
<view
class=
"point-box"
>
<view
class=
"point-box"
>
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
<view
class=
"dailog-footer"
>
<view
class=
"dailog-footer"
>
<template
v-if=
"selectItem.jump"
>
<template
v-if=
"selectItem.jump"
>
<view
class=
"dailog-btn disabled"
@
click=
"show = false"
>
关闭
</view>
<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
>
</
template
>
<view
class=
"dailog-btn"
v-else
@
click=
"show = false"
>
好的
</view>
<view
class=
"dailog-btn"
v-else
@
click=
"show = false"
>
好的
</view>
</view>
</view>
...
@@ -59,10 +59,10 @@ export default {
...
@@ -59,10 +59,10 @@ export default {
{
title
:
'考勤打卡'
,
typeCode
:
'T006'
,
content
:
'完成日常打卡'
,
rules
:
'请打开嘀加智慧云企业微信进行上下班打卡'
,
logo
:
require
(
'@/assets/images/point/day-time.png'
)
},
{
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
:
'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
:
'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
:
'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
:
'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
:
'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
:
'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'
)
}
{
title
:
'行为异常'
,
typeCode
:
'T008'
,
content
:
'完成预学习'
,
rules
:
'即将跳转至客户档案通过录入预交车客户学习推荐套餐方案话术或客户案例广场学习更多套餐方案话术'
,
logo
:
require
(
'@/assets/images/point/day-study.png'
)
}
],
],
dayList
:
[],
dayList
:
[],
...
@@ -72,12 +72,14 @@ export default {
...
@@ -72,12 +72,14 @@ export default {
},
},
watch
:
{
watch
:
{
show
(
val
)
{
show
(
val
)
{
console
.
log
(
this
.
$store
.
state
.
user
.
haveCustomerAccess
,
'this.$store.state.user.haveCustomerAccess'
)
if
(
!
val
)
{
if
(
!
val
)
{
clearInterval
(
this
.
timer
)
clearInterval
(
this
.
timer
)
this
.
second
=
3
this
.
second
=
3
}
}
}
}
},
},
mounted
()
{},
methods
:
{
methods
:
{
getDetail
(
countDate
,
day
)
{
getDetail
(
countDate
,
day
)
{
uni
.
$api
.
pointApi
.
pointDayTask
({
countDate
:
`
${
countDate
}
-
${
day
}
`
}).
then
(
res
=>
{
uni
.
$api
.
pointApi
.
pointDayTask
({
countDate
:
`
${
countDate
}
-
${
day
}
`
}).
then
(
res
=>
{
...
@@ -85,10 +87,18 @@ export default {
...
@@ -85,10 +87,18 @@ export default {
const
index
=
this
.
list
.
findIndex
(
i
=>
i
.
typeCode
===
item
.
typeCode
)
const
index
=
this
.
list
.
findIndex
(
i
=>
i
.
typeCode
===
item
.
typeCode
)
item
.
logo
=
this
.
list
[
index
].
logo
item
.
logo
=
this
.
list
[
index
].
logo
item
.
jump
=
this
.
list
[
index
].
jump
item
.
jump
=
this
.
list
[
index
].
jump
item
.
jumpUrl
=
this
.
list
[
index
].
jumpUrl
item
.
content
=
this
.
list
[
index
].
content
item
.
content
=
this
.
list
[
index
].
content
item
.
rules
=
this
.
list
[
index
].
rules
item
.
rules
=
this
.
list
[
index
].
rules
})
})
this
.
dayList
=
res
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
this
.
completed
=
res
.
filter
(
i
=>
i
.
completed
).
length
})
})
},
},
...
@@ -99,7 +109,7 @@ export default {
...
@@ -99,7 +109,7 @@ export default {
this
.
second
--
this
.
second
--
if
(
this
.
second
==
1
)
{
if
(
this
.
second
==
1
)
{
clearInterval
(
this
.
timer
)
clearInterval
(
this
.
timer
)
this
.
$emit
(
'jump'
)
this
.
$emit
(
'jump'
,
val
.
jumpUrl
)
}
}
},
1000
)
},
1000
)
}
}
...
...
components/HomeFrame/components/Point/LevelPoint.vue
View file @
518a5cc
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @Date: 2024-04-08 11:30:30
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-
17 14:51:31
* @LastEditTime: 2025-01-
20 13:41:26
-->
-->
<
template
>
<
template
>
<view
class=
"point-box"
>
<view
class=
"point-box"
>
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
<!--
<ul
v-if=
"item.list"
>
<!--
<ul
v-if=
"item.list"
>
<li
v-for=
"(l, i) in item.list"
>
{{
l
}}
</li>
<li
v-for=
"(l, i) in item.list"
>
{{
l
}}
</li>
</ul>
-->
</ul>
-->
<view
v-html=
"
item.content || item.otherRewards
"
></view>
<view
v-html=
"
getHtml(item.content || item.otherRewards)
"
></view>
</td>
</td>
</tr>
</tr>
</table>
</table>
...
@@ -107,6 +107,9 @@ export default {
...
@@ -107,6 +107,9 @@ export default {
this
.
isHigh
=
isHigh
this
.
isHigh
=
isHigh
},
},
methods
:
{
methods
:
{
getHtml
(
val
)
{
return
val
.
replaceAll
(
'\n'
,
'<br/>'
)
},
getDetail
(
countDate
)
{
getDetail
(
countDate
)
{
this
.
getRule
(
1
)
this
.
getRule
(
1
)
this
.
getRule
(
2
)
this
.
getRule
(
2
)
...
...
components/HomeFrame/index.vue
View file @
518a5cc
<
template
>
<
template
>
<view
<view
class=
"container"
@
click=
"handleTouchStart"
>
class=
"container"
@
click=
"handleTouchStart"
>
<view
:class=
"['home',
{ show: !id
&&
showHome }]">
<view
:class=
"['home',
{ show: !id
&&
showHome }]">
<left-side
<left-side
:userInfo=
"userInfo"
:tabIndex
.
sync=
"tabIndex"
ref=
"leftBox"
@
changeTab=
"$emit('changeTab', $event)"
@
stopAudio=
"stopAudio"
/>
:userInfo=
"userInfo"
:tabIndex
.
sync=
"tabIndex"
ref=
"leftBox"
@
changeTab=
"$emit('changeTab', $event)"
@
stopAudio=
"stopAudio"
/>
<view
class=
"right-side"
>
<view
class=
"right-side"
>
<template
v-if=
"tabIndex == 0"
>
<template
v-if=
"tabIndex == 0"
>
<view
class=
"right-content"
>
<view
class=
"right-content"
>
<view
<view
class=
"start"
@
click=
"$emit('start')"
>
class=
"start"
<image
class=
"start-btn"
src=
"../../assets/images/home/start.gif"
alt=
"开始接待"
/>
@
click=
"$emit('start')"
<image
class=
"start-border"
src=
"../../assets/images/home/start-border.png"
/>
>
<image
class=
"start-btn"
src=
"../../assets/images/home/start.gif"
alt=
"开始接待"
/>
<image
class=
"start-border"
src=
"../../assets/images/home/start-border.png"
/>
</view>
</view>
<view
class=
"module-list"
>
<view
class=
"module-list"
>
<slot
name=
"module"
/>
<slot
name=
"module"
/>
...
@@ -34,16 +15,9 @@
...
@@ -34,16 +15,9 @@
</view>
</view>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<component
<component
:is=
"componentName"
:userInfo=
"userInfo"
@
showPage=
"handleShowPage"
/>
:is=
"componentName"
:userInfo=
"userInfo"
@
showPage=
"handleShowPage"
/>
</
template
>
</
template
>
<view
<view
class=
"store-addr"
v-if=
"footerBox"
>
class=
"store-addr"
v-if=
"footerBox"
>
<view
class=
"icon-addr sprite-icon icon-addr"
></view>
<view
class=
"icon-addr sprite-icon icon-addr"
></view>
<view
class=
"addr-text"
>
{{ userInfo.shopMerchantName }}
</view>
<view
class=
"addr-text"
>
{{ userInfo.shopMerchantName }}
</view>
</view>
</view>
...
@@ -52,41 +26,17 @@
...
@@ -52,41 +26,17 @@
<view
:class=
"['detail', { show: id }]"
>
<view
:class=
"['detail', { show: id }]"
>
<slot
name=
"detail"
/>
<slot
name=
"detail"
/>
</view>
</view>
<view
<view
class=
"point-page"
v-if=
"!showHome"
>
class=
"point-page"
<component
:is=
"pointComponentName"
@
backHome=
"backHome"
@
jump=
"jump"
:transfer=
"transfer"
/>
v-if=
"!showHome"
>
<component
:is=
"pointComponentName"
@
backHome=
"backHome"
@
jump=
"jump"
:transfer=
"transfer"
/>
</view>
</view>
<!-- 未点击开始接待,弹窗 -->
<!-- 未点击开始接待,弹窗 -->
<MessageBox
<MessageBox
ref=
"previewRef"
@
confirm=
"$emit('preview')"
:popupW=
"704"
content=
"直接点击素材可进行预览,若面向车主展示,请点击「开始接待」"
confirmBtnText=
"预览素材"
@
cancel=
"$emit('previewCancel')"
@
close=
"$emit('previewClose')"
></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 ref="tipBox" @cancel="tipCancel" @confirm="tipConfirm" content="系统检测到您在当前页面停留较久,是否仍在客户接待中?" cancelBtnText="否" confirmBtnText="是"></MessageBox> -->
<!-- 退出弹框 -->
<!-- 退出弹框 -->
<MessageBox
<MessageBox
:popupW=
"704"
ref=
"finish"
:content=
"finishContene"
:isFooter=
"false"
>
:popupW=
"704"
ref=
"finish"
:content=
"finishContene"
:isFooter=
"false"
>
<view
class=
"footer"
>
<view
class=
"footer"
>
<view
<view
class=
"footer-btn confirm flex"
@
click=
"$emit('openStep')"
>
class=
"footer-btn confirm flex"
@
click=
"$emit('openStep')"
>
<
template
v-if=
"finishDoneText"
>
<
template
v-if=
"finishDoneText"
>
{{
finishDoneText
}}
{{
finishDoneText
}}
</
template
>
</
template
>
...
@@ -95,10 +45,7 @@
...
@@ -95,10 +45,7 @@
<text>
(推荐)
</text>
<text>
(推荐)
</text>
</
template
>
</
template
>
</view>
</view>
<view
<view
class=
"footer-btn cancel flex"
@
click=
"$emit('backHome')"
>
class=
"footer-btn cancel flex"
@
click=
"$emit('backHome')"
>
仍要退出
仍要退出
<text>
(不推荐)
</text>
<text>
(不推荐)
</text>
</view>
</view>
...
@@ -107,11 +54,7 @@
...
@@ -107,11 +54,7 @@
<!-- 升级弹框 -->
<!-- 升级弹框 -->
<update-box
/>
<update-box
/>
<slot
name=
"content"
/>
<slot
name=
"content"
/>
<web-view
<web-view
@
message=
"handlerMessage"
ref=
"webview"
src=
"/hybrid/html/index.html"
></web-view>
@
message=
"handlerMessage"
ref=
"webview"
src=
"/hybrid/html/index.html"
></web-view>
</view>
</view>
</template>
</template>
<
script
>
<
script
>
...
@@ -143,7 +86,7 @@ export default {
...
@@ -143,7 +86,7 @@ export default {
default
:
'当前操作视为强制退出接待,若需正常流程完成接待请点击「完成接待」'
default
:
'当前操作视为强制退出接待,若需正常流程完成接待请点击「完成接待」'
}
}
},
},
data
()
{
data
()
{
return
{
return
{
transfer
:
''
,
transfer
:
''
,
footerBox
:
true
,
footerBox
:
true
,
...
@@ -153,25 +96,25 @@ export default {
...
@@ -153,25 +96,25 @@ export default {
tabIndex
:
0
tabIndex
:
0
}
}
},
},
mounted
()
{
mounted
()
{
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
this
.
userInfo
=
userInfo
this
.
userInfo
=
userInfo
this
.
checkVersion
()
this
.
checkVersion
()
},
},
provide
()
{
provide
()
{
return
{
return
{
showPage
:
this
.
handleShowPage
,
showPage
:
this
.
handleShowPage
,
hideFooter
:
this
.
handleFooter
hideFooter
:
this
.
handleFooter
}
}
},
},
computed
:
{
computed
:
{
previewRef
()
{
previewRef
()
{
return
this
.
$refs
.
previewRef
return
this
.
$refs
.
previewRef
},
},
finishRef
()
{
finishRef
()
{
return
this
.
$refs
.
finish
return
this
.
$refs
.
finish
},
},
componentName
()
{
componentName
()
{
const
len
=
this
.
$refs
.
leftBox
.
tabs
.
length
const
len
=
this
.
$refs
.
leftBox
.
tabs
.
length
if
(
this
.
tabIndex
==
0
)
return
'HomeSlot'
if
(
this
.
tabIndex
==
0
)
return
'HomeSlot'
else
if
(
this
.
tabIndex
==
1
)
return
'RecordList'
else
if
(
this
.
tabIndex
==
1
)
return
'RecordList'
...
@@ -180,17 +123,21 @@ export default {
...
@@ -180,17 +123,21 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
handleFooter
(
val
)
{
handleFooter
(
val
)
{
this
.
footerBox
=
val
this
.
footerBox
=
val
},
},
backHome
()
{
backHome
()
{
this
.
showHome
=
true
this
.
showHome
=
true
},
},
jump
(
)
{
jump
(
val
)
{
this
.
showHome
=
true
this
.
showHome
=
true
if
(
val
==
'CustomerFile'
)
{
this
.
tabIndex
=
2
return
}
this
.
$emit
(
'start'
)
this
.
$emit
(
'start'
)
},
},
handleShowPage
(
name
,
transfer
)
{
handleShowPage
(
name
,
transfer
)
{
this
.
transfer
=
transfer
this
.
transfer
=
transfer
this
.
showHome
=
false
this
.
showHome
=
false
this
.
pointComponentName
=
name
this
.
pointComponentName
=
name
...
...
mixin/point.js
View file @
518a5cc
...
@@ -8,6 +8,7 @@ export default {
...
@@ -8,6 +8,7 @@ export default {
icon
:
'jbgz-icon'
,
icon
:
'jbgz-icon'
,
content
:
'基本工资 = 职级工资÷应出勤天数×实际出勤天数'
,
content
:
'基本工资 = 职级工资÷应出勤天数×实际出勤天数'
,
value
:
'actualBasicSalary'
,
value
:
'actualBasicSalary'
,
sort
:
1
,
base
:
true
base
:
true
},
},
{
{
...
@@ -16,6 +17,7 @@ export default {
...
@@ -16,6 +17,7 @@ export default {
content
:
'历史已发放提成订单客户本月退单,当月冲减该月提成'
,
content
:
'历史已发放提成订单客户本月退单,当月冲减该月提成'
,
value
:
'refundOffset'
,
value
:
'refundOffset'
,
recordKey
:
'refundOffsetRecords'
,
recordKey
:
'refundOffsetRecords'
,
sort
:
4
,
tabelTh
:
[
tabelTh
:
[
{
{
title
:
'序号'
,
title
:
'序号'
,
...
@@ -58,6 +60,7 @@ export default {
...
@@ -58,6 +60,7 @@ export default {
],
],
value
:
'equityCommission'
,
value
:
'equityCommission'
,
recordKey
:
'equityMerchantCommissions'
,
recordKey
:
'equityMerchantCommissions'
,
sort
:
2
,
tabelTh
:
[
tabelTh
:
[
{
{
title
:
'序号'
,
title
:
'序号'
,
...
@@ -73,7 +76,10 @@ export default {
...
@@ -73,7 +76,10 @@ export default {
],
],
tabelTr
:
[
tabelTr
:
[
{
{
name
:
'merchantName'
,
name
:
val
=>
{
const
typeName
=
val
.
thirdLevelGoodsTypeName
||
val
.
secondaryGoodsTypeName
||
val
.
goodsTypeName
return
`
${
val
.
merchantName
}${
typeName
?
`-
${
typeName
}
`
:
''
}
`
},
style
:
val
=>
{
style
:
val
=>
{
return
val
==
1
?
'color: #3773F8;background-color:rgba(55, 115, 248, .2)'
:
'color: #7C2CF5;background-color: rgba(124, 44, 245, .2);'
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 {
...
@@ -91,6 +97,7 @@ export default {
content
:
'日报填写错误或未在约定时间内填写日版'
,
content
:
'日报填写错误或未在约定时间内填写日版'
,
value
:
'dailyDeductMoney'
,
value
:
'dailyDeductMoney'
,
recordKey
:
'dailyDeductionRecords'
,
recordKey
:
'dailyDeductionRecords'
,
sort
:
5
,
tabelTh
:
[
tabelTh
:
[
{
{
title
:
'序号'
,
title
:
'序号'
,
...
@@ -121,6 +128,7 @@ export default {
...
@@ -121,6 +128,7 @@ export default {
content
:
'轻改产值x提成系数x提成比例'
,
content
:
'轻改产值x提成系数x提成比例'
,
value
:
'lightCommission'
,
value
:
'lightCommission'
,
recordKey
:
'lightMerchantCommissions'
,
recordKey
:
'lightMerchantCommissions'
,
sort
:
3
,
tabelTh
:
[
tabelTh
:
[
{
{
title
:
'序号'
,
title
:
'序号'
,
...
@@ -134,7 +142,15 @@ export default {
...
@@ -134,7 +142,15 @@ export default {
width
:
20
width
:
20
}
}
],
],
tabelTr
:
[
'merchantName'
,
'commission'
]
tabelTr
:
[
{
name
:
val
=>
{
const
typeName
=
val
.
thirdLevelGoodsTypeName
||
val
.
secondaryGoodsTypeName
||
val
.
goodsTypeName
return
`
${
val
.
merchantName
}${
typeName
?
`-
${
typeName
}
`
:
''
}
`
}
},
'commission'
]
},
},
{
{
label
:
'平板接待扣款'
,
label
:
'平板接待扣款'
,
...
@@ -142,6 +158,7 @@ export default {
...
@@ -142,6 +158,7 @@ export default {
content
:
'无效或虚假平板接待以及末使用平板接待'
,
content
:
'无效或虚假平板接待以及末使用平板接待'
,
value
:
'padDeductMoney'
,
value
:
'padDeductMoney'
,
recordKey
:
'padDeductionRecords'
,
recordKey
:
'padDeductionRecords'
,
sort
:
6
,
tabelTh
:
[
tabelTh
:
[
{
{
title
:
'序号'
,
title
:
'序号'
,
...
@@ -171,20 +188,24 @@ export default {
...
@@ -171,20 +188,24 @@ export default {
icon
:
'bydyj-icon'
,
icon
:
'bydyj-icon'
,
content
:
'本月递延金 = 本月提成 × 10%'
,
content
:
'本月递延金 = 本月提成 × 10%'
,
desc
:
'递延金将于6个月后提成发放时返还'
,
desc
:
'递延金将于6个月后提成发放时返还'
,
value
:
'deferExpenses'
value
:
'deferExpenses'
,
sort
:
7
,
showUnit
:
'-'
},
},
{
{
label
:
'返还递延金'
,
label
:
'返还递延金'
,
icon
:
'ffdyj-icon'
,
icon
:
'ffdyj-icon'
,
content
:
'本月递延金 = 提成(M-6)× 10%'
,
content
:
'本月递延金 = 提成(M-6)× 10%'
,
desc
:
'6个月前提成递延金在本月返还'
,
desc
:
'6个月前提成递延金在本月返还'
,
value
:
'deferIncome'
value
:
'deferIncome'
,
sort
:
8
},
},
{
{
label
:
'其他'
,
label
:
'其他'
,
icon
:
'qt-icon'
,
icon
:
'qt-icon'
,
content
:
'其他扣款、奖励事项'
,
content
:
'其他扣款、奖励事项'
,
recordKey
:
'otherDeductionRecords'
,
recordKey
:
'otherDeductionRecords'
,
sort
:
9
,
tabelTh
:
[
tabelTh
:
[
{
{
title
:
'序号'
,
title
:
'序号'
,
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment