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 e0771e2d
authored
Apr 27, 2025
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V4.52.0' of
http://192.168.3.233:8090/glsx/gl_tape
into SAAS+V4.52.0
2 parents
f400fe42
e68d7a8e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
43 additions
and
27 deletions
components/HomeFrame/components/Income/History.vue
components/HomeFrame/components/Income/MyStore.vue
components/HomeFrame/components/Income/baseDetail.vue
components/HomeFrame/components/Income/baseDialog.vue
mixin/point.js
mixin/timeout.js
components/HomeFrame/components/Income/History.vue
View file @
e0771e2
...
@@ -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: yangming@didihu.com.cn yangming@didihu.com.cn
* @LastEditors: yangming@didihu.com.cn yangming@didihu.com.cn
* @LastEditTime: 2025-04-2
4 14:46:57
* @LastEditTime: 2025-04-2
5 17:00:20
* @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
-->
-->
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
<view
class=
"footer-up flex"
>
<view
class=
"footer-up flex"
>
<view
class=
"sprite-icon icon-income-card"
></view>
<view
class=
"sprite-icon icon-income-card"
></view>
<view
class=
"footer-label"
>
当月收入
</view>
<view
class=
"footer-label"
>
当月收入
</view>
<view
class=
"income-mark"
v-if=
"salaryDetail.confirmSalary"
>
系统测算
</view>
<view
class=
"income-mark"
v-if=
"
!
salaryDetail.confirmSalary"
>
系统测算
</view>
<view
class=
"income-mark primary"
v-else
>
应发工资
</view>
<view
class=
"income-mark primary"
v-else
>
应发工资
</view>
</view>
</view>
<view
class=
"footer-price"
>
<view
class=
"footer-price"
>
...
@@ -43,13 +43,13 @@
...
@@ -43,13 +43,13 @@
{{
salaryDetail
.
correctSalary
||
0
}}
{{
salaryDetail
.
correctSalary
||
0
}}
</view>
</view>
</view>
</view>
<view
class=
"income-list"
:style=
"
{ height: 'calc(100% -
52
4rpx)' }">
<view
class=
"income-list"
:style=
"
{ height: 'calc(100% -
48
4rpx)' }">
<template
v-for=
"(item, index) in IncomeList"
>
<template
v-for=
"(item, index) in IncomeList"
>
<view
class=
"income-item"
:key=
"index"
v-if=
"isShow(item.value)"
>
<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"
>
{{
item
.
showUnit
}}{{
formatNumber
(
salaryDetail
[
item
.
value
]
||
'0'
)
}}
</view>
<view
class=
"item-price"
>
{{
item
.
showUnit
}}{{
formatNumber
(
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) || item.showNext
"
></view>
</view>
</view>
</
template
>
</
template
>
</view>
</view>
...
@@ -382,7 +382,11 @@ export default {
...
@@ -382,7 +382,11 @@ export default {
ctx
.
moveTo
(
20
,
y
)
ctx
.
moveTo
(
20
,
y
)
ctx
.
lineTo
(
30
,
y
)
ctx
.
lineTo
(
30
,
y
)
// ctx.stroke()
// ctx.stroke()
i
!=
0
&&
ctx
.
fillText
(
'¥'
+
step
*
i
,
0
,
y
+
5
)
if
(
i
!=
0
)
{
ctx
.
setFillStyle
(
'#808291'
)
ctx
.
fillText
(
'¥'
+
step
*
i
,
0
,
y
+
5
)
ctx
.
setFillStyle
(
'#000'
)
// 恢复默认字体颜色
}
}
}
// 柱状图之间的间隔
// 柱状图之间的间隔
// 绘制7个粗线条 (300-20)/7 = 40,所以 i 每次要加上40 20为左右间隔
// 绘制7个粗线条 (300-20)/7 = 40,所以 i 每次要加上40 20为左右间隔
...
@@ -392,7 +396,9 @@ export default {
...
@@ -392,7 +396,9 @@ export default {
for
(
var
i
=
0
;
i
<
this
.
canPersent
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
this
.
canPersent
.
length
;
i
++
)
{
console
.
log
(
this
.
canvasList
[
i
],
'this.canvasList[i]'
)
console
.
log
(
this
.
canvasList
[
i
],
'this.canvasList[i]'
)
// 横坐标的数据
// 横坐标的数据
ctx
.
setFillStyle
(
'#808291'
)
ctx
.
fillText
(
this
.
canvasList
[
i
].
date
,
30
+
gap
*
i
,
this
.
height
+
10
)
ctx
.
fillText
(
this
.
canvasList
[
i
].
date
,
30
+
gap
*
i
,
this
.
height
+
10
)
ctx
.
setFillStyle
(
'#000'
)
// 恢复默认字体颜色
if
(
this
.
canvasList
[
i
].
num
==
0
)
{
if
(
this
.
canvasList
[
i
].
num
==
0
)
{
continue
continue
}
}
...
@@ -412,7 +418,7 @@ export default {
...
@@ -412,7 +418,7 @@ export default {
// }
// }
ctx
.
beginPath
()
ctx
.
beginPath
()
ctx
.
setStrokeStyle
(
i
==
index
?
'rgba(44, 102, 247, 1)'
:
'rgba(44, 102, 247, 0.2)'
)
//设置柱状图颜色
ctx
.
setStrokeStyle
(
i
==
index
?
'rgba(44, 102, 247, 1)'
:
'rgba(44, 102, 247, 0.2)'
)
//设置柱状图颜色
ctx
.
moveTo
(
40
+
gap
*
i
,
this
.
height
-
this
.
canPersent
[
i
]
-
6
)
ctx
.
moveTo
(
40
+
gap
*
i
,
this
.
height
-
this
.
canPersent
[
i
]
-
2
)
ctx
.
lineTo
(
40
+
gap
*
i
,
this
.
height
-
15
)
ctx
.
lineTo
(
40
+
gap
*
i
,
this
.
height
-
15
)
ctx
.
lineWidth
=
10
ctx
.
lineWidth
=
10
ctx
.
lineCap
=
'round'
//设置线条样式
ctx
.
lineCap
=
'round'
//设置线条样式
...
...
components/HomeFrame/components/Income/MyStore.vue
View file @
e0771e2
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
<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"
>
{{
item
.
showUnit
}}{{
formatNumber
(
salaryDetail
[
item
.
value
]
||
'0'
)
}}
</view>
<view
class=
"item-value"
>
{{
item
.
showUnit
}}{{
formatNumber
(
salaryDetail
[
item
.
value
]
||
'0'
)
}}
</view>
<view
class=
"item-next"
@
click=
"showDetail(item)"
v-if=
"
salaryDetail[item.value] && item.tabelTh
"
></view>
<view
class=
"item-next"
@
click=
"showDetail(item)"
v-if=
"
(salaryDetail[item.value] && item.tabelTh) || item.showNext
"
></view>
</view>
</view>
</
template
>
</
template
>
</view>
</view>
...
...
components/HomeFrame/components/Income/baseDetail.vue
View file @
e0771e2
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<view
class=
"table-footer flex"
>
<view
class=
"table-footer flex"
>
<text>
合计:
{{
detail
.
label
}}{{
detail
.
exceptionDetailList
&&
detail
.
exceptionDetailList
.
length
}}
次
</text>
<text>
合计:
{{
detail
.
label
}}{{
detail
.
exceptionDetailList
&&
detail
.
exceptionDetailList
.
length
}}
次
</text>
<text
class=
"price"
>
{{
detail
.
total
}}
</text>
<text
class=
"price"
>
{{
detail
.
total
}}
</text>
<text
class=
"total-text"
>
{{
getCount
(
detail
.
exceptionDetailList
)
}}
</text>
<text
class=
"total-text"
>
{{
getCount
(
detail
.
exceptionDetailList
)
}}
天
</text>
</view>
</view>
<view
class=
"tips-box"
>
{{
detail
.
tips
}}
</view>
<view
class=
"tips-box"
>
{{
detail
.
tips
}}
</view>
</view>
</view>
...
@@ -87,7 +87,7 @@ export default {
...
@@ -87,7 +87,7 @@ export default {
/* 所有单元格都有边框 */
/* 所有单元格都有边框 */
border-top
:
none
;
border-top
:
none
;
/* 除了首行外,所有行的上方无边框 */
/* 除了首行外,所有行的上方无边框 */
background
:
#edf
2
ff
;
background
:
#edf
3
ff
;
height
:
88
rpx
;
height
:
88
rpx
;
font-size
:
26
rpx
;
font-size
:
26
rpx
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
...
@@ -135,10 +135,12 @@ export default {
...
@@ -135,10 +135,12 @@ export default {
&
:first-child
{
&
:first-child
{
border-left
:
none
;
border-left
:
none
;
border-radius
:
0
;
}
}
&
:last-child
{
&
:last-child
{
border-right
:
none
;
border-right
:
none
;
border-radius
:
0
;
}
}
}
}
}
}
...
...
components/HomeFrame/components/Income/baseDialog.vue
View file @
e0771e2
...
@@ -57,6 +57,24 @@ const WORK_TH = [
...
@@ -57,6 +57,24 @@ const WORK_TH = [
value
:
'deductionDays'
value
:
'deductionDays'
}
}
]
]
const
LACK_TH
=
[
{
title
:
'考勤日期'
,
value
:
'clockInDate'
},
{
title
:
'类型'
,
value
:
'attendanceType'
},
{
title
:
'状态'
,
value
:
'exceptionState'
},
{
title
:
'扣减考勤天数'
,
value
:
'deductionDays'
}
]
const
CLOTHING_TH
=
[
const
CLOTHING_TH
=
[
{
{
title
:
'考勤日期'
,
title
:
'考勤日期'
,
...
@@ -104,7 +122,7 @@ export default {
...
@@ -104,7 +122,7 @@ export default {
},
},
{
{
label
:
'缺卡'
,
label
:
'缺卡'
,
th
:
WOR
K_TH
,
th
:
LAC
K_TH
,
tips
:
'当月前两次补卡不扣减,第三次开始每次扣减0.5天'
,
tips
:
'当月前两次补卡不扣减,第三次开始每次扣减0.5天'
,
value
:
3
value
:
3
},
},
...
@@ -255,6 +273,7 @@ export default {
...
@@ -255,6 +273,7 @@ export default {
.item-num
{
.item-num
{
color
:
#181a1f
;
color
:
#181a1f
;
font-size
:
48
rpx
;
font-size
:
48
rpx
;
margin-top
:
8
rpx
;
text
{
text
{
font-size
:
32
rpx
;
font-size
:
32
rpx
;
}
}
...
...
mixin/point.js
View file @
e0771e2
...
@@ -9,19 +9,7 @@ export default {
...
@@ -9,19 +9,7 @@ export default {
content
:
'基本工资 = 职级工资÷应出勤天数×实际出勤天数'
,
content
:
'基本工资 = 职级工资÷应出勤天数×实际出勤天数'
,
value
:
'actualBasicSalary'
,
value
:
'actualBasicSalary'
,
recordKey
:
'refundOffsetRecords'
,
recordKey
:
'refundOffsetRecords'
,
tabelTh
:
[
showNext
:
true
,
{
title
:
'序号'
,
width
:
10
},
{
title
:
'日期'
},
{
title
:
'提成'
,
width
:
20
}
],
sort
:
1
,
sort
:
1
,
base
:
true
base
:
true
},
},
...
...
mixin/timeout.js
View file @
e0771e2
/*
/*
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-08 11:28:48
* @Date: 2024-04-08 11:28:48
* @LastEditors:
limi
n
* @LastEditors:
yangming@didihu.com.cn yangming@didihu.com.c
n
* @LastEditTime: 2025-0
1-08 16:04:45
* @LastEditTime: 2025-0
4-25 16:10:40
* @FilePath: \gl_tape\mixin\timeout.js
* @FilePath: \gl_tape\mixin\timeout.js
* @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
*/
*/
const
TIMER_DURATION
=
40
*
60
*
1000
//40分钟
const
TIMER_DURATION
=
40
*
60
*
1000
//40分钟
const
TIMER_INTERVAL
=
1
*
60
*
1000
//1分钟检一次
const
TIMER_INTERVAL
=
1
*
60
*
1000
//1分钟检一次
const
TIMER_TIMEOUT
=
TIMER_DURATION
/
TIMER_INTERVAL
const
TIMER_TIMEOUT
=
TIMER_DURATION
/
TIMER_INTERVAL
export
default
{
export
default
{
methods
:
{
methods
:
{
...
@@ -26,6 +26,7 @@ export default {
...
@@ -26,6 +26,7 @@ export default {
this
.
endWatchClick
()
this
.
endWatchClick
()
this
.
stopRecorder
()
this
.
stopRecorder
()
}
}
uni
.
$logger
.
local
.
info
(
'== 未触碰平板计时 =='
+
this
.
__counter
+
'分钟'
)
this
.
__counter
++
this
.
__counter
++
},
TIMER_INTERVAL
)
},
TIMER_INTERVAL
)
},
},
...
...
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