Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit abb4733a
authored
Mar 19, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
UI调整
1 parent
17816aa5
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
12 deletions
packagesList/packageOutput/components/OutputLine/OutputLine.scss
packagesList/packageOutput/pages/monthReport/monthReport.js
packagesList/packageOutput/pages/monthReport/monthReport.wxml
utils/util.js
packagesList/packageOutput/components/OutputLine/OutputLine.scss
View file @
abb4733
...
@@ -31,11 +31,10 @@
...
@@ -31,11 +31,10 @@
}
}
.searchTime
{
.searchTime
{
margin-top
:
24
rpx
;
padding
:
24rpx
0
rpx
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
z-index
:
9999
;
z-index
:
9999
;
margin-bottom
:
20rpx
;
position
:
relative
;
position
:
relative
;
.time
{
.time
{
...
@@ -43,7 +42,7 @@
...
@@ -43,7 +42,7 @@
// border: 2rpx solid #EBEBEB;
// border: 2rpx solid #EBEBEB;
// border-radius: 32rpx;
// border-radius: 32rpx;
background
:
#FFFFFF
;
background
:
#FFFFFF
;
border
:
1
rpx
solid
#C3C3C3
;
border
:
2
rpx
solid
#C3C3C3
;
border-radius
:
6rpx
;
border-radius
:
6rpx
;
font-weight
:
400
;
font-weight
:
400
;
font-size
:
20rpx
;
font-size
:
20rpx
;
...
@@ -57,7 +56,7 @@
...
@@ -57,7 +56,7 @@
// color: #4466F0;
// color: #4466F0;
color
:
#fff
;
color
:
#fff
;
background
:
#3582EE
;
background
:
#3582EE
;
border
:
1pr
x
solid
#3582EE
;
border
:
2rp
x
solid
#3582EE
;
}
}
.time
+
.time
{
.time
+
.time
{
...
...
packagesList/packageOutput/pages/monthReport/monthReport.js
View file @
abb4733
...
@@ -151,6 +151,15 @@ Page({
...
@@ -151,6 +151,15 @@ Page({
}
}
}
}
}
}
let
orderValue
=
{
1
:
{
unit
:
'¥'
,
value
:
'outputValue'
,
mult
:
1
},
2
:
{
unit
:
''
,
value
:
'successCount'
,
mult
:
1
},
3
:
{
unit
:
''
,
value
:
'quotationCount'
,
mult
:
1
},
4
:
{
sign
:
'%'
,
value
:
'conversionRate'
,
mult
:
100
}
}
dataT
[
type
][
timeType
]()
dataT
[
type
][
timeType
]()
ActivityApi
[
apiName
](
params
).
then
(
res
=>
{
ActivityApi
[
apiName
](
params
).
then
(
res
=>
{
const
list
=
res
.
employeeOutputList
||
res
.
staffList
const
list
=
res
.
employeeOutputList
||
res
.
staffList
...
@@ -159,7 +168,9 @@ Page({
...
@@ -159,7 +168,9 @@ Page({
const
billboard
=
staffList
.
map
((
item
,
idx
)
=>
{
const
billboard
=
staffList
.
map
((
item
,
idx
)
=>
{
return
{
return
{
sort
:
idx
+
1
,
sort
:
idx
+
1
,
value
:
item
.
outputValue
||
item
.
orderMoneyTotal
||
0
,
unit
:
(
type
==
2
&&
timeType
==
'month'
)?
orderValue
[
selectValue
].
unit
:
'¥'
,
sign
:
(
type
==
2
&&
timeType
==
'month'
)?
orderValue
[
selectValue
].
sign
:
''
,
value
:
(
type
==
2
&&
timeType
==
'month'
)
?
item
[
orderValue
[
selectValue
].
value
]
*
orderValue
[
selectValue
].
mult
:
(
item
.
outputValue
||
item
.
orderMoneyTotal
||
0
),
name
:
item
.
transferName
||
item
.
employeeName
name
:
item
.
transferName
||
item
.
employeeName
}
}
})
})
...
...
packagesList/packageOutput/pages/monthReport/monthReport.wxml
View file @
abb4733
...
@@ -76,7 +76,7 @@
...
@@ -76,7 +76,7 @@
<view class="billboard-item-bar">
<view class="billboard-item-bar">
<view class="bill-border">
<view class="bill-border">
<view class="bill-name">{{item.name}}</view>
<view class="bill-name">{{item.name}}</view>
<view class="bill-num" wx:if="{{item.name}}"><text class="unit"
>¥</text>{{item.value}}
</view>
<view class="bill-num" wx:if="{{item.name}}"><text class="unit"
wx:if="{{item.unit}}">{{item.unit}}</text>{{item.value}}<text class="unit" wx:if="{{item.sign}}">{{item.sign}}</text>
</view>
</view>
</view>
<glsx-image webp custom-class="bill-bg" src="output/bill0{{item.sort}}.png"></glsx-image>
<glsx-image webp custom-class="bill-bg" src="output/bill0{{item.sort}}.png"></glsx-image>
</view>
</view>
...
...
utils/util.js
View file @
abb4733
...
@@ -169,7 +169,7 @@ const getImgVersion = () => {
...
@@ -169,7 +169,7 @@ const getImgVersion = () => {
};
};
//获取当前页面路径
//获取当前页面路径
const
getCurrentPageUrl
=
()
=>
{
const
getCurrentPageUrl
=
()
=>
{
const
pages
=
getCurrentPages
()
const
pages
=
getCurrentPages
()
const
currentPage
=
pages
[
pages
.
length
-
1
]
const
currentPage
=
pages
[
pages
.
length
-
1
]
const
url
=
`/
${
currentPage
.
route
}
`
const
url
=
`/
${
currentPage
.
route
}
`
...
@@ -181,7 +181,7 @@ const deepClone = (target) => {
...
@@ -181,7 +181,7 @@ const deepClone = (target) => {
const
map
=
new
WeakMap
()
const
map
=
new
WeakMap
()
function
isObject
(
target
)
{
function
isObject
(
target
)
{
return
(
typeof
target
===
'object'
&&
target
)
||
typeof
target
===
'function'
return
(
typeof
target
===
'object'
&&
target
)
||
typeof
target
===
'function'
}
}
function
clone
(
data
)
{
function
clone
(
data
)
{
...
@@ -241,7 +241,7 @@ const deepClone = (target) => {
...
@@ -241,7 +241,7 @@ const deepClone = (target) => {
}
}
//设置标题
//设置标题
const
setNavigationBarTitle
=
(
title
)
=>
{
const
setNavigationBarTitle
=
(
title
)
=>
{
wx
.
getSystemInfo
({
wx
.
getSystemInfo
({
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
// console.log('++++++++++++++', res);
// console.log('++++++++++++++', res);
...
@@ -253,7 +253,7 @@ const setNavigationBarTitle = (title) =>{
...
@@ -253,7 +253,7 @@ const setNavigationBarTitle = (title) =>{
// space = space + ' ';
// space = space + ' ';
// }
// }
width
=
width
-
(
title
.
length
)
/
2
width
=
width
-
(
title
.
length
)
/
2
for
(
let
i
=
0
;
i
<
width
;
i
++
)
{
for
(
let
i
=
0
;
i
<
width
;
i
++
)
{
space
=
space
+
' '
;
space
=
space
+
' '
;
...
@@ -345,7 +345,12 @@ const checkRule = function (obj, formRule) {
...
@@ -345,7 +345,12 @@ const checkRule = function (obj, formRule) {
}
}
return
false
return
false
}
}
const
accMul
=
(
arg1
,
arg2
)
=>
{
var
m
=
0
,
s1
=
arg1
.
toString
(),
s2
=
arg2
.
toString
();
try
{
m
+=
s1
.
split
(
"."
)[
1
].
length
}
catch
(
e
)
{
}
try
{
m
+=
s2
.
split
(
"."
)[
1
].
length
}
catch
(
e
)
{
}
return
Number
(
s1
.
replace
(
"."
,
""
))
*
Number
(
s2
.
replace
(
"."
,
""
))
/
Math
.
pow
(
10
,
m
)
}
const
Util
=
{
const
Util
=
{
getImgVersion
,
getImgVersion
,
...
@@ -360,6 +365,7 @@ const Util = {
...
@@ -360,6 +365,7 @@ const Util = {
deepClone
,
deepClone
,
setNavigationBarTitle
,
setNavigationBarTitle
,
moneyThreeForTwoThousands
,
moneyThreeForTwoThousands
,
checkRule
checkRule
,
accMul
};
};
export
default
Util
;
export
default
Util
;
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