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 e002e12d
authored
Aug 29, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v4.27.0_0831' of
http://192.168.3.233:8090/saas_plus/business-assi…
…stant into v4.27.0_0831
2 parents
037dd448
b09708a1
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
205 additions
and
114 deletions
packageMine/pages/customerManagement/editCustomer/editCustomer.js
packageMine/pages/serviceManage/editService/editService.js
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.json
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.scss
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.wxml
packagesList/packageOutput/pages/newSummary/newSummary.scss
pages/tab/mine/mine.js
pages/tab/outputValue/components/CommissionPopup/CommissionPopup.js
pages/tab/outputValue/components/CommissionPopup/CommissionPopup.wxml
pages/tab/outputValue/components/ScreenConfirmBox/ScreenConfirmBox.js
pages/tab/outputValue/components/ScreenConfirmBox/ScreenConfirmBox.wxml
pages/tab/outputValue/components/employees/employess.js
pages/tab/outputValue/components/employees/employess.scss
pages/tab/outputValue/components/employees/employess.wxml
pages/tab/outputValue/components/merchant/merchant.json
pages/tab/outputValue/components/merchantCom/MerchantScene/MerchantScene.scss
pages/tab/outputValue/components/merchantCom/MerchantScene/MerchantScene.wxml
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.scss
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.wxml
pages/tab/outputValue/components/merchantCom/serviceTotal/serviceTotal.json
pages/tab/outputValue/components/merchantCom/serviceTotal/serviceTotal.scss
pages/tab/outputValue/components/merchantCom/serviceTotal/serviceTotal.wxml
pages/tab/outputValue/outputValue.js
密码.txt
packageMine/pages/customerManagement/editCustomer/editCustomer.js
View file @
e002e12
...
@@ -133,15 +133,16 @@ Page({
...
@@ -133,15 +133,16 @@ Page({
// 逆地址解析
// 逆地址解析
// 代码共6位,前两位代表省(一级)、中间两位为市/地区(二级),最后两位为区县(三级),区code获取省code和市code
// 代码共6位,前两位代表省(一级)、中间两位为市/地区(二级),最后两位为区县(三级),区code获取省code和市code
mapApi
.
detailedAdrress
([
res
.
latitude
,
res
.
longitude
]).
then
(
obj
=>
{
mapApi
.
detailedAdrress
([
res
.
latitude
,
res
.
longitude
]).
then
(
obj
=>
{
let
cityName
=
typeof
obj
?.
ad_info
?.
city
==
'string'
?
obj
?.
ad_info
?.
city
:
obj
?.
ad_info
?.
province
_this
.
setData
({
_this
.
setData
({
[
'formData.latitude'
]:
obj
?.
location
?.
lat
,
[
'formData.latitude'
]:
obj
?.
location
?.
lat
,
[
'formData.longitude'
]:
obj
?.
location
?.
lng
,
[
'formData.longitude'
]:
obj
?.
location
?.
lng
,
[
'formData.provinceName'
]:
obj
?.
ad_info
?.
province
,
[
'formData.provinceName'
]:
obj
?.
ad_info
?.
province
,
[
'formData.provinceCode'
]:
obj
?.
ad_info
?.
adcode
.
slice
(
0
,
2
)
+
'0000'
,
[
'formData.provinceCode'
]:
obj
?.
ad_info
?.
adcode
.
slice
(
0
,
2
)
+
'0000'
,
[
'formData.cityName'
]:
obj
?.
ad_info
?.
city
,
[
'formData.cityName'
]:
cityName
,
[
'formData.cityCode'
]:
obj
?.
ad_info
?.
adcode
.
slice
(
0
,
4
)
+
'00'
,
[
'formData.cityCode'
]:
obj
?.
ad_info
?.
adcode
.
slice
(
0
,
4
)
+
'00'
,
[
'formData.merchantAddress'
]:
res
?.
name
,
[
'formData.merchantAddress'
]:
res
?.
name
,
region
:
[
obj
?.
ad_info
?.
province
,
obj
?.
ad_info
?.
city
]
region
:
[
obj
?.
ad_info
?.
province
,
cityName
]
})
})
})
})
}
}
...
...
packageMine/pages/serviceManage/editService/editService.js
View file @
e002e12
...
@@ -135,15 +135,16 @@ Page({
...
@@ -135,15 +135,16 @@ Page({
// 逆地址解析
// 逆地址解析
// 代码共6位,前两位代表省(一级)、中间两位为市/地区(二级),最后两位为区县(三级),区code获取省code和市code
// 代码共6位,前两位代表省(一级)、中间两位为市/地区(二级),最后两位为区县(三级),区code获取省code和市code
mapApi
.
detailedAdrress
([
res
.
latitude
,
res
.
longitude
]).
then
(
obj
=>
{
mapApi
.
detailedAdrress
([
res
.
latitude
,
res
.
longitude
]).
then
(
obj
=>
{
let
cityName
=
typeof
obj
?.
ad_info
?.
city
==
'string'
?
obj
?.
ad_info
?.
city
:
obj
?.
ad_info
?.
province
_this
.
setData
({
_this
.
setData
({
[
'formData.latitude'
]:
obj
?.
location
?.
lat
,
[
'formData.latitude'
]:
obj
?.
location
?.
lat
,
[
'formData.longitude'
]:
obj
?.
location
?.
lng
,
[
'formData.longitude'
]:
obj
?.
location
?.
lng
,
[
'formData.provinceName'
]:
obj
?.
ad_info
?.
province
,
[
'formData.provinceName'
]:
obj
?.
ad_info
?.
province
,
[
'formData.provinceCode'
]:
obj
?.
ad_info
?.
adcode
.
slice
(
0
,
2
)
+
'0000'
,
[
'formData.provinceCode'
]:
obj
?.
ad_info
?.
adcode
.
slice
(
0
,
2
)
+
'0000'
,
[
'formData.cityName'
]:
obj
?.
ad_info
?.
city
,
[
'formData.cityName'
]:
cityName
,
[
'formData.cityCode'
]:
obj
?.
ad_info
?.
adcode
.
slice
(
0
,
4
)
+
'00'
,
[
'formData.cityCode'
]:
obj
?.
ad_info
?.
adcode
.
slice
(
0
,
4
)
+
'00'
,
[
'formData.merchantAddress'
]:
res
?.
name
,
[
'formData.merchantAddress'
]:
res
?.
name
,
region
:
[
obj
?.
ad_info
?.
province
,
obj
?.
ad_info
?.
city
]
region
:
[
obj
?.
ad_info
?.
province
,
cityName
]
})
})
})
})
}
}
...
...
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.json
View file @
e002e12
{
{
"component"
:
true
,
"component"
:
true
,
"usingComponents"
:
{}
"usingComponents"
:
{},
"styleIsolation"
:
"shared"
}
}
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.scss
View file @
e002e12
...
@@ -25,21 +25,22 @@
...
@@ -25,21 +25,22 @@
text-align
:
center
;
text-align
:
center
;
font-weight
:
500
;
font-weight
:
500
;
font-size
:
26rpx
;
font-size
:
26rpx
;
color
:
#3
93B3E
;
color
:
#3
23436
;
padding
:
20rpx
0
;
padding
:
20rpx
0
;
}
}
&
-txt
{
&
-txt
{
font-family
:
"ali-medium"
;
font-weight
:
500
;
height
:
40rpx
;
height
:
40rpx
;
line-height
:
40rpx
;
line-height
:
40rpx
;
margin-bottom
:
14rpx
;
margin-bottom
:
12rpx
;
// font-weight: 600;
font-size
:
28rpx
;
// font-family: 'number';
}
}
&
-label
{
&
-label
{
font-size
:
2
0
rpx
;
font-size
:
2
4
rpx
;
color
:
#
8A8C90
;
color
:
#
323436
;
}
}
}
}
...
@@ -125,6 +126,9 @@
...
@@ -125,6 +126,9 @@
}
}
&
-txt
{
&
-txt
{
font-family
:
"ali-bold"
;
font-weight
:
700
;
font-size
:
26rpx
;
color
:
#323436
;
color
:
#323436
;
}
}
...
@@ -227,7 +231,7 @@
...
@@ -227,7 +231,7 @@
content
:
''
;
content
:
''
;
position
:
absolute
;
position
:
absolute
;
bottom
:
-27rpx
;
bottom
:
-27rpx
;
right
:
67rpx
;
right
:
67rpx
;
width
:
0
;
width
:
0
;
height
:
0
;
height
:
0
;
border
:
18rpx
solid
;
border
:
18rpx
solid
;
...
@@ -287,6 +291,8 @@
...
@@ -287,6 +291,8 @@
.txt-red
{
.txt-red
{
color
:
#F35251
;
color
:
#F35251
;
font-family
:
"ali-bold"
;
font-weight
:
700
;
}
}
// .th,
// .th,
...
@@ -335,14 +341,16 @@
...
@@ -335,14 +341,16 @@
margin-top
:
32rpx
;
margin-top
:
32rpx
;
.suggest-title
{
.suggest-title
{
box-sizing
:
border-box
;
width
:
116rpx
;
width
:
116rpx
;
height
:
36rpx
;
height
:
36rpx
;
line-height
:
36rpx
;
line-height
:
36rpx
;
font-weight
:
600
;
font-weight
:
600
;
font-size
:
20rpx
;
font-size
:
20rpx
;
color
:
#3E71FE
;
color
:
#3E71FE
;
background
:
rgba
(
62
,
113
,
254
,
0
.12
)
;
background
:
#3e71fe
1f
;
border-radius
:
4rpx
;
border-radius
:
4rpx
;
padding
:
0
8rpx
;
}
}
.suggest-txt
{
.suggest-txt
{
...
@@ -371,7 +379,7 @@
...
@@ -371,7 +379,7 @@
.step-txt
{
.step-txt
{
width
:
calc
(
100%
-
72rpx
);
width
:
calc
(
100%
-
72rpx
);
font-size
:
22rpx
;
font-size
:
22rpx
;
color
:
#
8A8C90
;
color
:
#
636465
;
}
}
}
}
}
}
...
@@ -390,11 +398,12 @@
...
@@ -390,11 +398,12 @@
box-sizing
:
border-box
;
box-sizing
:
border-box
;
display
:
flex
;
display
:
flex
;
font-size
:
20rpx
;
font-size
:
20rpx
;
font-weight
:
600
;
color
:
#3666FE
;
color
:
#3666FE
;
padding
:
0
20rpx
;
padding
:
0
20rpx
;
height
:
100%
;
height
:
52rpx
;
background
:
rgba
(
54
,
102
,
254
,
0
.06
)
;
line-height
:
51rpx
;
border
:
2rpx
solid
rgba
(
62
,
113
,
254
,
0
.70
)
;
border
:
1rpx
solid
#3E71FE
;
border-radius
:
30rpx
;
border-radius
:
30rpx
;
margin-right
:
4rpx
;
margin-right
:
4rpx
;
...
...
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.wxml
View file @
e002e12
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
<view class="rank-left">
<view class="rank-left">
<view class="rank-num">{{idx + 1}}</view>
<view class="rank-num">{{idx + 1}}</view>
<view class="rank-head">
<view class="rank-head">
<glsx-image wx:if="{{subItem.shareType == 1}}" class="icon-wechat" src="output/icon-wechat
.webp
" />
<glsx-image wx:if="{{subItem.shareType == 1}}" class="icon-wechat" src="output/icon-wechat
-sigle.png
" />
<image wx:if="{{subItem.imageUrl}}" src="{{subItem.imageUrl}}" />
<image wx:if="{{subItem.imageUrl}}" src="{{subItem.imageUrl}}" />
<glsx-image wx:else src="output/icon-head.webp" />
<glsx-image wx:else src="output/icon-head.webp" />
</view>
</view>
...
...
packagesList/packageOutput/pages/newSummary/newSummary.scss
View file @
e002e12
...
@@ -216,8 +216,8 @@
...
@@ -216,8 +216,8 @@
}
}
.activity-item.open.active
{
.activity-item.open.active
{
background
:
#3666
FE
;
background
:
#3666
fe
1a
;
color
:
#
FFFFFF
;
color
:
#
3666FE
;
}
}
.activity-item.no-open.active
{
.activity-item.no-open.active
{
...
...
pages/tab/mine/mine.js
View file @
e002e12
...
@@ -180,7 +180,8 @@ Page({
...
@@ -180,7 +180,8 @@ Page({
//解决因为使用await 异步导致数据没同步已经开始调用onshow方法
//解决因为使用await 异步导致数据没同步已经开始调用onshow方法
this
.
setData
({
this
.
setData
({
serviceMerchantId
,
serviceMerchantId
,
userInfo
:
userInfo
.
subLoginUser
// userInfo: userInfo.subLoginUser
userInfo
})
})
let
{
serviceMerchatList
}
=
await
getMockData
()
||
{
serviceMerchatList
:
[]
}
let
{
serviceMerchatList
}
=
await
getMockData
()
||
{
serviceMerchatList
:
[]
}
...
...
pages/tab/outputValue/components/CommissionPopup/CommissionPopup.js
View file @
e002e12
...
@@ -13,33 +13,7 @@ Component({
...
@@ -13,33 +13,7 @@ Component({
* 组件的初始数据
* 组件的初始数据
*/
*/
data
:
{
data
:
{
monthCommossionData
:
[
monthCommossionData
:
[],
{
month
:
'2023-08'
,
ruleStatus
:
'1'
,
commission
:
5230
},
{
month
:
'2023-07'
,
ruleStatus
:
'1'
,
commission
:
5230
},
{
month
:
'2023-06'
,
ruleStatus
:
'0'
,
commission
:
5230
},
{
month
:
'2023-05'
,
ruleStatus
:
'1'
,
commission
:
5230
},
{
month
:
'2023-04'
,
ruleStatus
:
'0'
,
commission
:
5230
},
{
month
:
'2023-03'
,
ruleStatus
:
'1'
,
commission
:
5230.1
}
],
nowMonth
:
getNowMonth
()
nowMonth
:
getNowMonth
()
},
},
...
...
pages/tab/outputValue/components/CommissionPopup/CommissionPopup.wxml
View file @
e002e12
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<view class="month">{{item.performanceMonth}}<view class="inline_b" wx:if="{{nowMonth == item.performanceMonth}}">(当前月)</view></view>
<view class="month">{{item.performanceMonth}}<view class="inline_b" wx:if="{{nowMonth == item.performanceMonth}}">(当前月)</view></view>
<view wx:if="{{nowMonth == item.performanceMonth}}" class="tips">提成在本月完结后自动计算</view>
<view wx:if="{{nowMonth == item.performanceMonth}}" class="tips">提成在本月完结后自动计算</view>
<view wx:if="{{nowMonth != item.performanceMonth && (item.commissionBonus != null || item.constructionBonus != null)}}" class="commissionNum">¥{{filter.money_three_for_two_thousands(item.staffType == 0 ? (item.commissionBonus || '0.00') : (item.constructionBonus || '0.00'), false)}}</view>
<view wx:if="{{nowMonth != item.performanceMonth && (item.commissionBonus != null || item.constructionBonus != null)}}" class="commissionNum">¥{{filter.money_three_for_two_thousands(item.staffType == 0 ? (item.commissionBonus || '0.00') : (item.constructionBonus || '0.00'), false)}}</view>
<view wx:el
se="
">-</view>
<view wx:el
if="{{nowMonth != item.performanceMonth}}
">-</view>
</view>
</view>
</scroll-view>
</scroll-view>
</popup>
</popup>
pages/tab/outputValue/components/ScreenConfirmBox/ScreenConfirmBox.js
View file @
e002e12
...
@@ -17,7 +17,7 @@ Component({
...
@@ -17,7 +17,7 @@ Component({
thisPage
.
setData
({
thisPage
.
setData
({
isShowFilterScreen
:
true
isShowFilterScreen
:
true
})
})
if
(
!
this
.
data
.
formData
.
startTime
||
!
this
.
data
.
formData
.
endTime
)
this
.
setDate
()
// 默认展示当前月份
//
if (!this.data.formData.startTime || !this.data.formData.endTime) this.setDate() // 默认展示当前月份
this
.
setViewData
()
this
.
setViewData
()
}
}
}
}
...
@@ -97,7 +97,7 @@ Component({
...
@@ -97,7 +97,7 @@ Component({
changeMerchantRange
(
e
)
{
changeMerchantRange
(
e
)
{
let
{
merchantRange
,
subIndex
,
formData
}
=
this
.
data
let
{
merchantRange
,
subIndex
,
formData
}
=
this
.
data
let
{
merchantId
}
=
e
.
detail
let
{
merchantId
}
=
e
.
detail
this
.
reset
()
this
.
reset
(
''
,
false
)
merchantRange
.
forEach
((
item
,
index
)
=>
{
merchantRange
.
forEach
((
item
,
index
)
=>
{
item
.
show
=
true
item
.
show
=
true
if
(
item
.
merchantId
==
merchantId
)
{
if
(
item
.
merchantId
==
merchantId
)
{
...
@@ -106,7 +106,7 @@ Component({
...
@@ -106,7 +106,7 @@ Component({
}
}
})
})
formData
.
partnerMerchantIds
=
[
merchantId
]
formData
.
partnerMerchantIds
=
[
merchantId
]
if
(
!
this
.
data
.
formData
.
startTime
||
!
this
.
data
.
formData
.
endTime
)
this
.
setDate
()
// 未选择时间默认展示当前月份
//
if (!this.data.formData.startTime || !this.data.formData.endTime) this.setDate() // 未选择时间默认展示当前月份
this
.
setData
({
this
.
setData
({
merchantRange
,
merchantRange
,
subIndex
,
subIndex
,
...
@@ -214,7 +214,9 @@ Component({
...
@@ -214,7 +214,9 @@ Component({
wx
.
$api
.
showLoading
(
'加载中'
)
wx
.
$api
.
showLoading
(
'加载中'
)
let
{
userInfo
,
formData
,
staffList
,
sceneList
}
=
this
.
data
let
{
userInfo
,
formData
,
staffList
,
sceneList
}
=
this
.
data
formData
.
sceneType
=
sceneList
.
filter
(
val
=>
val
.
active
)[
0
]?.
id
||
''
formData
.
sceneType
=
sceneList
.
filter
(
val
=>
val
.
active
)[
0
]?.
id
||
''
formData
.
staffUUIDs
=
staffList
.
filter
(
val
=>
val
.
active
).
map
(
subVal
=>
{
if
(
subVal
.
uuid
)
return
subVal
.
uuid
})
let
staffArr
=
[]
staffList
.
filter
(
val
=>
val
.
active
).
map
(
subVal
=>
{
if
(
subVal
.
uuid
)
staffArr
.
push
(
subVal
.
uuid
)})
formData
.
staffUUIDs
=
staffArr
this
.
triggerEvent
(
'screenFlag'
)
this
.
triggerEvent
(
'screenFlag'
)
this
.
setData
({
screenConfirmFlag
:
true
})
this
.
setData
({
screenConfirmFlag
:
true
})
const
thisPage
=
wx
.
$router
.
getPageInstance
()
const
thisPage
=
wx
.
$router
.
getPageInstance
()
...
@@ -242,11 +244,13 @@ Component({
...
@@ -242,11 +244,13 @@ Component({
this
.
setData
({
screenConfirmFlag
:
false
})
this
.
setData
({
screenConfirmFlag
:
false
})
}
}
},
},
reset
()
{
reset
(
e
,
isresetTime
=
true
)
{
let
{
formData
,
userInfo
,
sceneList
,
staffList
,
tabType
,
merchantRange
,
subIndex
}
=
this
.
data
let
{
formData
,
userInfo
,
sceneList
,
staffList
,
tabType
,
merchantRange
,
subIndex
}
=
this
.
data
formData
.
partnerMerchantIds
=
[
userInfo
.
subLoginUser
.
merchantId
]
formData
.
partnerMerchantIds
=
[
userInfo
.
subLoginUser
.
merchantId
]
formData
.
startTime
=
''
if
(
isresetTime
)
{
formData
.
endTime
=
''
formData
.
startTime
=
''
formData
.
endTime
=
''
}
// this.setDate()
// this.setDate()
this
.
setData
({
this
.
setData
({
isShowCalendarMonth
:
false
isShowCalendarMonth
:
false
...
...
pages/tab/outputValue/components/ScreenConfirmBox/ScreenConfirmBox.wxml
View file @
e002e12
...
@@ -50,10 +50,10 @@
...
@@ -50,10 +50,10 @@
</view>
</view>
<view class="date_box">
<view class="date_box">
<view class="date_item" wx:if="{{formData.startTime}}">{{filter.filterDate(formData.startTime) || '开始时间'}}</view>
<view class="date_item" wx:if="{{formData.startTime}}">{{filter.filterDate(formData.startTime) || '开始时间'}}</view>
<view class="date_item placeholder" wx:else>
YYYY/MM
</view>
<view class="date_item placeholder" wx:else>
请选择
</view>
<view>-</view>
<view>-</view>
<view class="date_item" wx:if="{{formData.endTime}}">{{filter.filterDate(formData.endTime) || '结束时间'}}</view>
<view class="date_item" wx:if="{{formData.endTime}}">{{filter.filterDate(formData.endTime) || '结束时间'}}</view>
<view class="date_item placeholder" wx:else>
YYYY/MM
</view>
<view class="date_item placeholder" wx:else>
请选择
</view>
</view>
</view>
</view>
</view>
<view class="box" wx:if="{{tabType == 0}}">
<view class="box" wx:if="{{tabType == 0}}">
...
...
pages/tab/outputValue/components/employees/employess.js
View file @
e002e12
...
@@ -4,6 +4,7 @@ const IMAGES = Object.freeze({
...
@@ -4,6 +4,7 @@ const IMAGES = Object.freeze({
})
})
import
outputValueApi
from
'~/api/outputValueApi/index'
import
outputValueApi
from
'~/api/outputValueApi/index'
import
{
IMG_URL
}
from
'~/utils/constantData'
import
{
IMG_URL
}
from
'~/utils/constantData'
import
Util
from
'~/utils/util'
Component
({
Component
({
/**
/**
* 组件的属性列表
* 组件的属性列表
...
@@ -57,7 +58,8 @@ Component({
...
@@ -57,7 +58,8 @@ Component({
})
})
},
},
onBottomRefresh
()
{
onBottomRefresh
()
{
this
.
getListData
()
let
{
isInit
}
=
this
.
data
// 是否首次进入页面
this
.
getListData
(
false
,
isInit
)
},
},
refreshList
()
{
refreshList
()
{
this
.
setData
({
this
.
setData
({
...
@@ -65,7 +67,8 @@ Component({
...
@@ -65,7 +67,8 @@ Component({
nothing
:
false
,
nothing
:
false
,
total
:
0
total
:
0
})
})
this
.
getListData
(
true
)
let
{
isInit
}
=
this
.
data
this
.
getListData
(
true
,
isInit
)
},
},
actionOperationResult
(
val1
,
val2
,
rate
=
false
){
actionOperationResult
(
val1
,
val2
,
rate
=
false
){
...
@@ -81,8 +84,19 @@ Component({
...
@@ -81,8 +84,19 @@ Component({
const
p
=
Math
.
max
(
len1
,
len2
)
const
p
=
Math
.
max
(
len1
,
len2
)
return
Math
.
pow
(
10
,
p
)
return
Math
.
pow
(
10
,
p
)
},
},
getListData
(
isReset
=
false
)
{
getLastDay
(
year
,
month
)
{
var
new_year
=
year
//取当前的年份
var
new_month
=
month
++
//取下一个月的第一天,方便计算(最后一天不固定)
if
(
month
>
12
)
{
new_month
-=
12
//月份减
new_year
++
//年份增
}
var
new_date
=
new
Date
(
new_year
,
new_month
,
1
)
//取当年当月中的第一天
return
new
Date
(
new_date
.
getTime
()
-
1000
*
60
*
60
*
24
).
getDate
()
//获取当月最后一天日期
},
getListData
(
isReset
=
false
,
isInit
=
false
)
{
let
_this
=
this
let
_this
=
this
_this
.
setData
({
isInit
})
if
(
isReset
)
{
if
(
isReset
)
{
_this
.
setData
({
_this
.
setData
({
pageNum
:
1
,
pageNum
:
1
,
...
@@ -92,15 +106,22 @@ Component({
...
@@ -92,15 +106,22 @@ Component({
}
}
let
{
pageNum
,
pageSize
,
merchantOutputValuesPageSize
,
nothing
,
isAsk
,
dataList
}
=
_this
.
data
let
{
pageNum
,
pageSize
,
merchantOutputValuesPageSize
,
nothing
,
isAsk
,
dataList
}
=
_this
.
data
const
thisPage
=
wx
.
$router
.
getPageInstance
()
const
thisPage
=
wx
.
$router
.
getPageInstance
()
let
params
=
{
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
{
pageNum
,
pageNum
,
pageSize
,
pageSize
,
merchantOutputValuesPageSize
,
merchantOutputValuesPageSize
,
...
thisPage
.
data
.
screenFormData
...
thisPage
.
data
.
screenFormData
}
}))
this
.
setData
({
searchFormData
:
thisPage
.
data
.
screenFormData
})
delete
params
.
shopMerchantNames
delete
params
.
shopMerchantNames
delete
params
.
sceneType
// 删除场景参数
delete
params
.
sceneType
// 删除场景参数
let
month
=
new
Date
().
getMonth
()
+
1
let
year
=
new
Date
().
getFullYear
()
let
day
=
this
.
getLastDay
(
year
,
month
)
if
(
isInit
)
{
// 首次进入页面 我的员工请求当前月份数据
params
.
startTime
=
year
+
'-'
+
month
+
'-01'
+
' 00:00:00'
params
.
endTime
=
year
+
'-'
+
month
+
'-'
+
day
+
' 23:59:59'
}
this
.
setData
({
searchFormData
:
params
})
if
(
nothing
||
isAsk
)
{
if
(
nothing
||
isAsk
)
{
return
return
}
}
...
...
pages/tab/outputValue/components/employees/employess.scss
View file @
e002e12
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
background
:
#FFFFFF
;
background
:
#FFFFFF
;
box-shadow
:
0
2rpx
20rpx
0
#b4bacc
52
;
box-shadow
:
0
2rpx
20rpx
0
#b4bacc
52
;
border-radius
:
16rpx
;
border-radius
:
16rpx
;
padding
:
40rpx
0
24rpx
24rpx
;
padding
:
40rpx
0
0
24rpx
;
margin
:
0
24rpx
24rpx
0
;
margin
:
0
24rpx
24rpx
0
;
.staff_messsage
{
.staff_messsage
{
padding-right
:
26rpx
;
padding-right
:
26rpx
;
...
@@ -67,6 +67,7 @@
...
@@ -67,6 +67,7 @@
text
{
text
{
color
:
#4772FC
;
color
:
#4772FC
;
font-size
:
36rpx
;
font-size
:
36rpx
;
font-family
:
'ali-bold'
;
font-weight
:
700
;
font-weight
:
700
;
}
}
}
}
...
@@ -110,6 +111,7 @@
...
@@ -110,6 +111,7 @@
}
}
.merchant_box
{
.merchant_box
{
padding-top
:
24rpx
;
padding-top
:
24rpx
;
font-size
:
28rpx
;
.title
{
.title
{
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#8A8C90
;
color
:
#8A8C90
;
...
@@ -120,23 +122,32 @@
...
@@ -120,23 +122,32 @@
.flex
{
.flex
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding-right
:
30rpx
;
padding-right
:
30rpx
;
font-family
:
'ali-bold'
;
}
}
.flex_1
{
.flex_1
{
width
:
calc
(
100%
-
552rpx
);
width
:
calc
(
100%
-
552rpx
);
padding-right
:
0
;
padding-right
:
0
;
}
}
.flex_2
{
.flex_2
{
width
:
196
rpx
;
width
:
200
rpx
;
}
}
.flex_3
{
.flex_3
{
width
:
314rpx
;
width
:
314rpx
;
padding-right
:
52rpx
;
padding-right
:
52rpx
;
}
}
.font_wei
{
.font_wei700
{
font-size
:
28rpx
;
font-weight
:
700
;
font-weight
:
700
;
color
:
#323436
;
color
:
#323436
;
margin-bottom
:
8rpx
;
margin-bottom
:
8rpx
;
font-family
:
'ali-bold'
;
}
.font_wei500
{
font-weight
:
500
;
font-family
:
'ali-medium'
;
}
.font_wei400
{
font-weight
:
400
;
font-family
:
'ali-medium'
;
}
}
.name
{
.name
{
font-size
:
26rpx
;
font-size
:
26rpx
;
...
@@ -160,6 +171,7 @@
...
@@ -160,6 +171,7 @@
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
padding-bottom
:
24rpx
;
image
{
image
{
width
:
92rpx
;
width
:
92rpx
;
height
:
36rpx
;
height
:
36rpx
;
...
...
pages/tab/outputValue/components/employees/employess.wxml
View file @
e002e12
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
refresher-threshold="104"
refresher-threshold="104"
scroll-top="{{scrollTop}}"
scroll-top="{{scrollTop}}"
class="list"
class="list"
style="height: {{searchFormData.startTime && searchFormData.endTime ? 'calc(100
vh
- 48rpx)' : '100%'}}"
style="height: {{searchFormData.startTime && searchFormData.endTime ? 'calc(100
%
- 48rpx)' : '100%'}}"
refresher-triggered="{{triggered}}">
refresher-triggered="{{triggered}}">
<view class="empty_box"></view>
<view class="empty_box"></view>
<block wx:for="{{dataList}}" wx:key="index">
<block wx:for="{{dataList}}" wx:key="index">
...
@@ -40,18 +40,20 @@
...
@@ -40,18 +40,20 @@
<view class="title flex_spa-arr">
<view class="title flex_spa-arr">
<view class="flex_3 flex">服务门店</view>
<view class="flex_3 flex">服务门店</view>
<view class="flex_2 flex">产值/客单价</view>
<view class="flex_2 flex">产值/客单价</view>
<view class="flex_1
padd_r16
flex">订单/转化率</view>
<view class="flex_1 flex">订单/转化率</view>
</view>
</view>
<block wx:for="{{item.outputValueStats}}" wx:for-index="subIndex" wx:for-item="subItem" wx:key="subIndex">
<block wx:for="{{item.outputValueStats}}" wx:for-index="subIndex" wx:for-item="subItem" wx:key="subIndex">
<view class="merchant_item flex_spa-arr" wx:if="{{subIndex < 3 || item.showMore}}" style="{{(item.outputValueStats.length > 3 && !item.showMore && subIndex == 2) || (item.outputValueStats.length > 3 && item.showMore && subIndex == (item.outputValueStats.length - 1)) ? 'border:none;' : ''}}">
<view hidden="{{subIndex >= 3 && !item.showMore}}" class="item_content">
<view class="flex_3 name flex">{{subItem.shopMerchantName}}</view>
<view class="merchant_item flex_spa-arr" style="{{(item.outputValueStats.length > 3 && !item.showMore && subIndex == 2) || (item.outputValueStats.length > 3 && item.showMore && subIndex == (item.outputValueStats.length - 1)) || (item.outputValueStats.length <= 3 && subIndex == (item.outputValueStats.length - 1)) ? 'border:none;' : ''}}">
<view class="flex_2 flex">
<view class="flex_3 name flex">{{subItem.shopMerchantName}}</view>
<view class="font_wei">{{'¥' + filter.money_three_for_two_thousands(subItem.totalOrderMoney || '0.00', true)}}</view>
<view class="flex_2 flex">
<view>{{'¥' + filter.money_three_for_two_thousands(subItem.customerUnitPrice || '0.00', true)}}</view>
<view class="font_wei700">{{'¥' + filter.money_three_for_two_thousands(subItem.totalOrderMoney || '0.00', true)}}</view>
</view>
<view class="font_wei500">{{'¥' + filter.money_three_for_two_thousands(subItem.customerUnitPrice || '0.00', true)}}</view>
<view class="flex_1 padd_r16 flex">
</view>
<view class="font_wei">{{subItem.orderCount}}单</view>
<view class="flex_1 flex">
<view>{{subItem.conversionRate}}%</view>
<view class="font_wei700">{{subItem.orderCount}}单</view>
<view class="font_wei500">{{subItem.conversionRate}}%</view>
</view>
</view>
</view>
</view>
</view>
<view class="showMore" wx:if="{{subIndex >= 3 && subIndex === (item.outputValueStats.length - 1) && !item.showMore}}" bindtap="showMore" data-index="{{index}}" data-flag="{{true}}">
<view class="showMore" wx:if="{{subIndex >= 3 && subIndex === (item.outputValueStats.length - 1) && !item.showMore}}" bindtap="showMore" data-index="{{index}}" data-flag="{{true}}">
...
@@ -67,24 +69,29 @@
...
@@ -67,24 +69,29 @@
<view class="title flex_spa-arr" >
<view class="title flex_spa-arr" >
<view class="flex_3 flex">服务门店</view>
<view class="flex_3 flex">服务门店</view>
<view class="flex_2 flex">订单台次</view>
<view class="flex_2 flex">订单台次</view>
<view class="flex_1
padd_r16
flex">激励费</view>
<view class="flex_1 flex">激励费</view>
</view>
</view>
<block wx:for="{{item.constructionStats}}" wx:for-index="subIndex" wx:for-item="subItem" wx:key="subIndex">
<block wx:for="{{item.constructionStats}}" wx:for-index="subIndex" wx:for-item="subItem" wx:key="subIndex">
<view class="merchant_item flex_spa-arr" style="{{item.constructionStats.length > 3 && !item.showMore && subIndex == 2 ? 'border:none;' : ''}}" wx:if="{{subIndex < 3 || item.showMore}}">
<view hidden="{{subIndex >= 3 && !item.showMore}}" class="item_content">
<view class="flex_3 name flex">{{subItem.shopMerchantName}}</view>
<view class="merchant_item flex_spa-arr" style="{{(item.outputValueStats.length > 3 && !item.showMore && subIndex == 2) || (item.outputValueStats.length > 3 && item.showMore && subIndex == (item.outputValueStats.length - 1)) || (item.outputValueStats.length <= 3 && subIndex == (item.outputValueStats.length - 1)) ? 'border:none;' : ''}}">
<view class="flex_2 flex">
<view class="flex_3 name flex">{{subItem.shopMerchantName}}</view>
<view class="font_wei">升级膜{{subItem.upgradeConstructionCount || '-'}}台/次</view>
<view class="flex_2 flex">
<view>赠送膜{{subItem.notUpgradeConstructionCount || '-'}}台/次</view>
<view class="font_wei700">升级膜{{subItem.upgradeConstructionCount || '-'}}台/次</view>
<view class="font_wei400">赠送膜{{subItem.notUpgradeConstructionCount || '-'}}台/次</view>
</view>
<view class="flex_1 flex">
<view class="font_wei700" wx:if="{{subItem.upgradeIncentiveFee && subItem.upgradeConstructionCount}}">¥{{subItem.upgradeIncentiveFee}}X{{subItem.upgradeConstructionCount}}</view>
<view class="font_wei700" wx:if="{{!subItem.upgradeIncentiveFee || !subItem.upgradeConstructionCount}}">-</view>
<view class="font_wei400" wx:if="{{subItem.notUpgradeIncentiveFee && subItem.notUpgradeConstructionCount}}">¥{{subItem.notUpgradeIncentiveFee}}X{{subItem.notUpgradeConstructionCount}}</view>
<view class="font_wei400" wx:if="{{!subItem.notUpgradeIncentiveFee || !subItem.notUpgradeConstructionCount}}">-</view>
</view>
</view>
</view>
<view class="
flex_1 padd_r16 flex
">
<view class="
showMore" wx:if="{{subIndex >= 3 && subIndex === (item.constructionStats.length - 1) && !item.showMore}}" bindtap="showMore" data-index="{{index}}
">
<
view class="font_wei" wx:if="{{subItem.upgradeIncentiveFee}}">¥{{subItem.upgradeIncentiveFee}}X{{subItem.upgradeConstructionCount}}</view
>
<
glsx-image src="output/show_more_icon.png" webp></glsx-image
>
<view class="font_wei" wx:if="{{!subItem.upgradeIncentiveFee}}">-
</view>
</view>
<view wx:if="{{subItem.notUpgradeIncentiveFee}}">¥{{subItem.notUpgradeIncentiveFee}}X{{subItem.notUpgradeConstructionCount}}</view
>
<view class="showMore" wx:if="{{subIndex >= 3 && subIndex === (item.constructionStats.length - 1) && item.showMore}}" bindtap="showMore" data-index="{{index}}" data-flag="{{false}}"
>
<
view wx:if="{{!subItem.notUpgradeIncentiveFee}}">-</view
>
<
glsx-image src="output/show_more_icon_up.png" webp></glsx-image
>
</view>
</view>
</view>
<view class="showMore" wx:if="{{subIndex >= 3 && subIndex === (item.constructionStats.length - 1) && !item.showMore}}" bindtap="showMore" data-index="{{index}}">
<glsx-image src="output/show_more_icon.png" webp></glsx-image>
</view>
</view>
</block>
</block>
</block>
</block>
...
...
pages/tab/outputValue/components/merchant/merchant.json
View file @
e002e12
{
{
"component"
:
true
,
"component"
:
true
,
"styleIsolation"
:
"shared"
,
"usingComponents"
:
{
"usingComponents"
:
{
"service-total"
:
"../merchantCom/serviceTotal/serviceTotal"
,
"service-total"
:
"../merchantCom/serviceTotal/serviceTotal"
,
"merchant-all"
:
"../merchantCom/merchantAll/merchantAll"
,
"merchant-all"
:
"../merchantCom/merchantAll/merchantAll"
,
...
...
pages/tab/outputValue/components/merchantCom/MerchantScene/MerchantScene.scss
View file @
e002e12
...
@@ -15,31 +15,45 @@
...
@@ -15,31 +15,45 @@
align-items
:
center
;
align-items
:
center
;
}
}
.f-28
{
font-size
:
28rpx
;
}
.f-24
{
font-size
:
24rpx
;
}
.num
{
.num
{
font-weight
:
600
;
font-family
:
"ali-medium"
;
font-weight
:
500
;
font-size
:
28rpx
;
font-size
:
28rpx
;
color
:
#323436
;
color
:
#323436
;
}
}
.num-blue
{
.num-blue
{
font-family
:
"ali-bold"
;
font-weight
:
700
;
font-weight
:
700
;
font-size
:
36rpx
;
font-size
:
36rpx
;
color
:
#4772FC
;
color
:
#4772FC
;
}
}
.num-grey
{
.num-grey
{
font-family
:
"ali-medium"
;
font-weight
:
500
;
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#8A8C90
;
color
:
#8A8C90
;
}
}
.num-green
{
.num-green
{
font-weight
:
600
;
font-family
:
"ali-medium"
;
font-weight
:
500
;
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#00C580
;
color
:
#00C580
;
}
}
.num-red
{
.num-red
{
font-weight
:
600
;
font-family
:
"ali-medium"
;
font-weight
:
500
;
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#F35251
;
color
:
#F35251
;
}
}
...
@@ -95,10 +109,12 @@
...
@@ -95,10 +109,12 @@
top
:
66rpx
;
top
:
66rpx
;
right
:
24rpx
;
right
:
24rpx
;
text-align
:
right
;
text-align
:
right
;
color
:
#8A8C90
;
}
}
.business-total-other
{
.business-total-other
{
text-align
:
right
;
text-align
:
right
;
color
:
#8A8C90
;
}
}
.top-num-box
{
.top-num-box
{
...
@@ -196,12 +212,14 @@
...
@@ -196,12 +212,14 @@
margin
:
8rpx
0
;
margin
:
8rpx
0
;
.crowdfund-total
{
.crowdfund-total
{
width
:
260rpx
;
height
:
40rpx
;
height
:
40rpx
;
line-height
:
40rpx
;
line-height
:
40rpx
;
font-size
:
22rpx
;
font-size
:
22rpx
;
color
:
#B6B7B7
;
color
:
#B6B7B7
;
margin
:
0
40rpx
;
margin
:
0
40rpx
;
flex-shrink
:
1
;
flex-shrink
:
1
;
text-align
:
center
;
}
}
.com-month
{
.com-month
{
...
...
pages/tab/outputValue/components/merchantCom/MerchantScene/MerchantScene.wxml
View file @
e002e12
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
</view>
</view>
<view class="top-num-box">
<view class="top-num-box">
<view>
<view>
<view class="num-blue ft-40">
¥
{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.total || 0)}}</view>
<view class="num-blue ft-40">
<text class="f-28">¥</text>
{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.total || 0)}}</view>
<view class="total-txt num-grey" wx:if="{{curInfo.curMonthTotalData.total == 0}}">暂无业务收入</view>
<view class="total-txt num-grey" wx:if="{{curInfo.curMonthTotalData.total == 0}}">暂无业务收入</view>
</view>
</view>
<view>
<view>
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
<view class="title-name text-hide">{{item.merchantName}}</view>
<view class="title-name text-hide">{{item.merchantName}}</view>
<text class="tips-store">门店</text>
<text class="tips-store">门店</text>
</view>
</view>
<view class="num-blue">
¥
{{filter.money_three_for_two_thousands(item.bizTotal || 0)}}</view>
<view class="num-blue">
<text class="f-24">¥</text>
{{filter.money_three_for_two_thousands(item.bizTotal || 0)}}</view>
</view>
</view>
<!-- 内容 - 售后众筹 -->
<!-- 内容 - 售后众筹 -->
<view wx:if="{{sceneObj.name == 'crowdfund'}}" class="list-content crowdfund-box">
<view wx:if="{{sceneObj.name == 'crowdfund'}}" class="list-content crowdfund-box">
...
@@ -84,6 +84,7 @@
...
@@ -84,6 +84,7 @@
</view>
</view>
<view class="flex">
<view class="flex">
<view wx:for="{{sceneFormList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx" class="cur-block {{sceneObj.name}}">
<view wx:for="{{sceneFormList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx" class="cur-block {{sceneObj.name}}">
<view wx:if="{{currentMonth != curInfo.yearMonth}}" class="label">{{subItem.label}}</view>
<view class="num">
<view class="num">
<text wx:if="{{subItem.prefix}}">{{subItem.prefix}}</text>
<text wx:if="{{subItem.prefix}}">{{subItem.prefix}}</text>
{{filter.money_three_for_two_thousands(item.curMonthTotalData[0][subItem.name] || 0)}}
{{filter.money_three_for_two_thousands(item.curMonthTotalData[0][subItem.name] || 0)}}
...
...
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.scss
View file @
e002e12
...
@@ -15,31 +15,50 @@
...
@@ -15,31 +15,50 @@
align-items
:
center
;
align-items
:
center
;
}
}
.flex-center
{
display
:
flex
;
align-items
:
center
;
}
.f-28
{
font-size
:
28rpx
;
}
.f-24
{
font-size
:
24rpx
;
}
.num
{
.num
{
font-weight
:
600
;
font-family
:
"ali-medium"
;
font-weight
:
500
;
font-size
:
28rpx
;
font-size
:
28rpx
;
color
:
#323436
;
color
:
#323436
;
}
}
.num-blue
{
.num-blue
{
font-family
:
"ali-bold"
;
font-weight
:
700
;
font-weight
:
700
;
font-size
:
36rpx
;
font-size
:
36rpx
;
color
:
#4772FC
;
color
:
#4772FC
;
}
}
.num-grey
{
.num-grey
{
font-family
:
"ali-medium"
;
font-weight
:
500
;
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#8A8C90
;
color
:
#8A8C90
;
}
}
.num-green
{
.num-green
{
font-weight
:
600
;
font-family
:
"ali-medium"
;
font-weight
:
500
;
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#00C580
;
color
:
#00C580
;
}
}
.num-red
{
.num-red
{
font-weight
:
600
;
font-family
:
"ali-medium"
;
font-weight
:
500
;
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#F35251
;
color
:
#F35251
;
}
}
...
@@ -77,6 +96,8 @@
...
@@ -77,6 +96,8 @@
right
:
24rpx
;
right
:
24rpx
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
font-size
:
24rpx
;
color
:
#5A6066
;
}
}
.top-num-box
{
.top-num-box
{
...
@@ -201,6 +222,11 @@
...
@@ -201,6 +222,11 @@
.label.num-grey
{
.label.num-grey
{
color
:
#8A8C90
;
color
:
#8A8C90
;
}
}
.icon-arrow
{
width
:
32rpx
;
height
:
32rpx
;
}
}
}
.compare-block
{
.compare-block
{
...
...
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.wxml
View file @
e002e12
...
@@ -3,14 +3,14 @@
...
@@ -3,14 +3,14 @@
<view class="merchant-all">
<view class="merchant-all">
<view class="top">
<view class="top">
<view class="switch-box" wx:if="{{curInfo.merchantDataList.length}}">对比上月
<view class="switch-box" wx:if="{{curInfo.merchantDataList.length}}">对比上月
<switch style="zoom:.
6
; margin-left: 8rpx;" color="#3666FE" checked="{{switchChecked}}" bindchange="switchChange" />
<switch style="zoom:.
7
; margin-left: 8rpx;" color="#3666FE" checked="{{switchChecked}}" bindchange="switchChange" />
</view>
</view>
<view>
<view>
<text class="num-month">{{date.month}}</text><text class="month">月</text><text class="year">{{date.year}}年</text>
<text class="num-month">{{date.month}}</text><text class="month">月</text><text class="year">{{date.year}}年</text>
</view>
</view>
<view class="top-num-box">
<view class="top-num-box">
<view>
<view>
<view class="num-blue ft-40">
¥
{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.total || 0)}}</view>
<view class="num-blue ft-40">
<text class="f-28">¥</text>
{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.total || 0)}}</view>
<view class="total-txt">本月业绩产生至{{curInfo.merchantDataList.length}}家门店</view>
<view class="total-txt">本月业绩产生至{{curInfo.merchantDataList.length}}家门店</view>
</view>
</view>
<view wx:if="{{searchForm.startTime && searchForm.endTime}}">
<view wx:if="{{searchForm.startTime && searchForm.endTime}}">
...
@@ -29,13 +29,16 @@
...
@@ -29,13 +29,16 @@
<view class="title-name text-hide">{{item.merchantName}}</view>
<view class="title-name text-hide">{{item.merchantName}}</view>
<text class="tips-store">门店</text>
<text class="tips-store">门店</text>
</view>
</view>
<view class="num-blue">
¥
{{filter.money_three_for_two_thousands(item.curMonthTotalData.total || 0)}}</view>
<view class="num-blue">
<text class="f-24">¥</text>
{{filter.money_three_for_two_thousands(item.curMonthTotalData.total || 0)}}</view>
</view>
</view>
<!-- 内容 -->
<!-- 内容 -->
<view class="list-content">
<view class="list-content">
<view class="flex">
<view class="flex">
<view wx:for="{{sceneFormList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx" class="cur-block">
<view wx:for="{{sceneFormList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx" class="cur-block">
<view class="label num-grey">{{subItem.label}}</view>
<view class="label num-grey flex-center">
{{subItem.label}}
<glsx-image src="output/icon-arrow-right.png" class="icon-arrow" />
</view>
<view class="num">¥{{filter.money_three_for_two_thousands(item.curMonthTotalData[subItem.name] || 0)}}</view>
<view class="num">¥{{filter.money_three_for_two_thousands(item.curMonthTotalData[subItem.name] || 0)}}</view>
</view>
</view>
</view>
</view>
...
@@ -47,7 +50,7 @@
...
@@ -47,7 +50,7 @@
</view>
</view>
<view class="flex">
<view class="flex">
<view wx:for="{{sceneFormList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx" class="compare-block">
<view wx:for="{{sceneFormList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx" class="compare-block">
<view
wx:if="{{compareList[index][subItem.name] == 0
}}">0</view>
<view
class="num-grey" wx:if="{{compareList[index][subItem.name] == 0 || compareList[index][subItem.name] < 1
}}">0</view>
<view wx:else class="{{compareList[index][subItem.name + 'Sign'] ? 'num-red' : 'num-green'}}"><text>{{compareList[index][subItem.name + 'Sign'] ? '+' : '-'}}</text>¥{{filter.money_three_for_two_thousands(compareList[index][subItem.name])}}</view>
<view wx:else class="{{compareList[index][subItem.name + 'Sign'] ? 'num-red' : 'num-green'}}"><text>{{compareList[index][subItem.name + 'Sign'] ? '+' : '-'}}</text>¥{{filter.money_three_for_two_thousands(compareList[index][subItem.name])}}</view>
</view>
</view>
</view>
</view>
...
...
pages/tab/outputValue/components/merchantCom/serviceTotal/serviceTotal.json
View file @
e002e12
{
{
"component"
:
true
,
"component"
:
true
,
"usingComponents"
:
{}
"usingComponents"
:
{},
"styleIsolation"
:
"shared"
}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/outputValue/components/merchantCom/serviceTotal/serviceTotal.scss
View file @
e002e12
...
@@ -33,7 +33,12 @@
...
@@ -33,7 +33,12 @@
.total
{
.total
{
height
:
154rpx
;
height
:
154rpx
;
.money-symbol
{
font-size
:
28rpx
;
}
.num
{
.num
{
font-family
:
"ali-bold"
;
font-weight
:
700
;
font-weight
:
700
;
font-size
:
40rpx
;
font-size
:
40rpx
;
color
:
#3666FE
;
color
:
#3666FE
;
...
@@ -47,12 +52,16 @@
...
@@ -47,12 +52,16 @@
.content
{
.content
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
.cur-block
{
width
:
33
.33%
;
}
.num
{
.num
{
font-family
:
"ali-bold"
;
color
:
#323436
;
color
:
#323436
;
font-weight
:
6
00
;
font-weight
:
5
00
;
margin-top
:
16rpx
;
margin-top
:
16rpx
;
}
}
}
}
...
...
pages/tab/outputValue/components/merchantCom/serviceTotal/serviceTotal.wxml
View file @
e002e12
...
@@ -8,10 +8,10 @@
...
@@ -8,10 +8,10 @@
<view class="box">
<view class="box">
<view class="total">
<view class="total">
<view class="label">总产值</view>
<view class="label">总产值</view>
<view class="num">
¥
{{filter.money_three_for_two_thousands(totalObj.total || 0)}}</view>
<view class="num">
<text class="money-symbol">¥</text>
{{filter.money_three_for_two_thousands(totalObj.total || 0)}}</view>
</view>
</view>
<view class="content">
<view class="content">
<view wx:for="{{sceneFormList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
<view wx:for="{{sceneFormList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx"
class="cur-block"
>
<view class="label">{{subItem.label}}</view>
<view class="label">{{subItem.label}}</view>
<view class="num">¥{{filter.money_three_for_two_thousands(totalObj[subItem.name] || 0)}}</view>
<view class="num">¥{{filter.money_three_for_two_thousands(totalObj[subItem.name] || 0)}}</view>
</view>
</view>
...
...
pages/tab/outputValue/outputValue.js
View file @
e002e12
...
@@ -67,16 +67,16 @@ Page({
...
@@ -67,16 +67,16 @@ Page({
},
},
init
()
{
init
()
{
this
.
setUserInfo
()
this
.
setUserInfo
()
this
.
searchEvent
(
true
)
this
.
searchEvent
(
true
,
true
)
},
},
// 筛选回调
// 筛选回调
searchEvent
(
isNoBack
=
false
)
{
searchEvent
(
isNoBack
=
false
,
isInit
=
false
)
{
console
.
log
(
this
.
data
.
screenFormData
,
'screenFormData'
)
console
.
log
(
this
.
data
.
screenFormData
,
'screenFormData'
)
if
(
!
isNoBack
)
this
.
back
()
if
(
!
isNoBack
)
this
.
back
()
let
merchantModule
=
this
.
selectComponent
(
'#merchant'
)
let
merchantModule
=
this
.
selectComponent
(
'#merchant'
)
merchantModule
.
merchantRefresh
&&
merchantModule
.
merchantRefresh
(
true
)
merchantModule
.
merchantRefresh
&&
merchantModule
.
merchantRefresh
(
true
)
let
employessModule
=
this
.
selectComponent
(
'#employess'
)
let
employessModule
=
this
.
selectComponent
(
'#employess'
)
employessModule
.
getListData
&&
employessModule
.
getListData
(
true
)
employessModule
.
getListData
&&
employessModule
.
getListData
(
true
,
isInit
)
},
},
setUserInfo
()
{
setUserInfo
()
{
let
{
userInfo
}
=
wx
.
$storage
.
get
()
let
{
userInfo
}
=
wx
.
$storage
.
get
()
...
...
密码.txt
View file @
e002e12
cxserviceShop 5393603egh(开发)
cxserviceShop 5393603egh(开发)
账号登录: 10988866666(超管)xiong110
账号登录: 10988866666(超管)xiong110
测试环境 bb123456 密码 bb123456
测试环境 bb123456 密码 bb123456
15816539335/a123456 测试环境超管
xiaoxiong1hao a123456
xiaoxiong1hao a123456
csysfws a123456
csysfws a123456
生意助手小程序--生意助手2号
生意助手小程序--生意助手2号
...
...
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