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 1f16e458
authored
Aug 22, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
代码冲突解决
2 parents
16f113b2
181c3f17
Hide whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
667 additions
and
151 deletions
api/outputValueApi/index.js
api/outputValueApi/outputValue.js
components/Nothing-tips/nothingTips.js
components/Nothing-tips/nothingTips.wxml
packageMine/pages/staffManage/staffList/staffList.js
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.scss
packagesList/packageOutput/pages/newSummary/newSummary.js
packagesList/packageOutput/pages/newSummary/newSummary.scss
packagesList/packageOutput/pages/newSummary/newSummary.wxml
pages/tab/mine/mine.js
pages/tab/outputValue/components/CommissionPopup/CommissionPopup.wxml
pages/tab/outputValue/components/ScreenBox/ScreenBox.js
pages/tab/outputValue/components/ScreenBox/ScreenBox.wxml
pages/tab/outputValue/components/ScreenConfirmBox/ScreenConfirmBox.js
pages/tab/outputValue/components/ScreenConfirmBox/ScreenConfirmBox.scss
pages/tab/outputValue/components/ScreenConfirmBox/ScreenConfirmBox.wxml
pages/tab/outputValue/components/Tab/Tab.js
pages/tab/outputValue/components/Tab/Tab.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.js
pages/tab/outputValue/components/merchantCom/MerchantScene/MerchantScene.wxml
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.js
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.json
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.scss
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.wxml
pages/tab/outputValue/components/selectMerchantPopup/selectMerchantPopup.js
pages/tab/outputValue/outputValue.js
pages/tab/outputValue/outputValue.wxml
api/outputValueApi/index.js
0 → 100644
View file @
1f16e45
import
outputValueApi
from
'./outputValue.js'
export
default
new
outputValueApi
()
api/outputValueApi/outputValue.js
0 → 100644
View file @
1f16e45
import
api
from
'~/utils/request/request'
class
outputValueApi
{
/** 我的员工分页 */
GETSTAFFLISTAPI
(
data
)
{
return
api
.
post
({
method
:
'scrm.api.busassistant.outputValue.staff.list'
,
...
data
})
}
/** 员工列表(仅员工信息筛选用) */
GETALLSTAFFDATAAPI
(
data
)
{
return
api
.
post
({
method
:
'scrm.api.busassistant.staff.list'
,
...
data
})
}
}
export
default
outputValueApi
components/Nothing-tips/nothingTips.js
View file @
1f16e45
...
...
@@ -10,7 +10,8 @@ Component({
bgColor
:
{
type
:
String
,
value
:
'#fff'
}
},
emptyDataStyle
:
String
},
/**
...
...
components/Nothing-tips/nothingTips.wxml
View file @
1f16e45
<!-- components/Nothing-tips/nothingTips.wxml -->
<view class="nothingCon custom-class" style="background-color: {{bgColor}};">
<view class="nothingCon custom-class" style="background-color: {{bgColor}};
{{emptyDataStyle}}
">
<image
wx:if="{{bg}}"
class="bg"
...
...
packageMine/pages/staffManage/staffList/staffList.js
View file @
1f16e45
...
...
@@ -76,7 +76,7 @@ Page({
staffList
:
tempList
,
currentPage
:
currentPage
+
1
,
total
:
res
.
total
,
nothing
:
res
.
count
==
tempList
.
length
,
nothing
:
res
.
total
==
tempList
.
length
,
triggered
:
false
})
if
(
isReset
)
{
...
...
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.scss
View file @
1f16e45
/* packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxss */
.crowdfund-layout
{
margin
:
20rpx
20rpx
;
//
margin: 20rpx 20rpx;
padding-bottom
:
136rpx
;
.box
{
...
...
@@ -61,6 +61,7 @@
&
-title
{
width
:
70%
;
color
:
#323436
;
}
&
-link
{
...
...
packagesList/packageOutput/pages/newSummary/newSummary.js
View file @
1f16e45
// packagesList/packageOutput/pages/openNewBusiness/openNewBusiness.js
import
outputApi
from
'~/api/outputApi/index'
import
{
tsFormatTime
}
from
'~/utils/format'
import
{
getMockData
}
from
'~/api/api'
import
{
IMG_URL
}
from
'~/utils/constantData'
Page
({
/**
* 页面的初始数据
*/
data
:
{
IMGURL
:
IMG_URL
,
merchantInfo
:
{},
tabList
:
[
{
label
:
'精品升级-太阳膜'
,
...
...
@@ -20,18 +24,21 @@ Page({
width
:
'30%'
}
],
tabIndx
:
0
,
chartDataPie
:
{
data
:
[]
}
chartDataPie
:{
data
:[]
},
tabIndx
:
1
,
// 众筹
scrollLeft
:
0
,
activityActive
:
0
,
isShowData
:
false
,
scenceList
:
[]
},
initData
()
{
let
{
tabIndx
}
=
this
.
data
// tabIndx == 1 ? this.crowdfundingData :
console
.
log
(
tabIndx
,
'tabIndx'
)
this
.
getAnalysisTendency
(
tabIndx
)
tabIndx
==
1
?
this
.
crowdfunding
()
:
this
.
getAnalysisTendency
(
tabIndx
)
console
.
log
(
tabIndx
,
'tabIndx'
);
},
crowdfundingData
()
{},
getAnalysisTendency
(
tabIndx
)
{
console
.
log
(
tabIndx
,
'tabIndx'
)
let
params
=
{
...
...
@@ -101,8 +108,272 @@ Page({
})
})
},
changeTabIndx
(
e
)
{
let
{
detail
}
=
e
this
.
setData
({
tabIndx
:
detail
})
},
// 众筹-start
crowdfunding
()
{
let
{
userInfo
}
=
wx
.
$storage
.
get
()
this
.
getMockInfo
(
userInfo
)
this
.
judgeAccount
()
this
.
getProList
(
'SC004'
)
},
async
getMockInfo
(
userInfo
)
{
let
res
=
await
getMockData
()
||
{
serviceMerchatList
:
[]
}
this
.
setData
({
mockObj
:
res
,
isShowService
:
res
.
serviceMerchatList
.
includes
(
userInfo
.
merchantId
+
''
)
})
},
// 判断是否Mock数据写死
judgeAccount
()
{
// 售后众筹-SC004
this
.
setData
({
[
'isMock.SC004'
]:
this
.
judgeCrowd
().
flag
})
},
// 售后众筹-SC004
judgeCrowd
(
pId
,
id
)
{
let
res
=
{
flag
:
false
,
pIdx
:
-
1
,
idx
:
-
1
}
if
(
this
.
data
.
mockObj
?.
crowdObj
)
{
let
pList
=
this
.
data
.
mockObj
.
crowdObj
.
map
(
item
=>
item
.
pMerchantId
)
for
(
let
i
=
0
;
i
<
this
.
data
.
mockObj
.
crowdObj
.
length
;
i
++
)
{
let
item
=
this
.
data
.
mockObj
.
crowdObj
[
i
]
let
cList
=
item
.
merchantList
.
map
(
k
=>
k
.
merhantId
)
if
(
cList
.
includes
((
id
||
this
.
data
.
merchantInfo
.
merchantId
)
+
''
)
&&
pList
.
includes
((
pId
||
this
.
data
.
merchantInfo
.
pMerchantId
)
+
''
))
{
res
=
{
flag
:
true
,
pIdx
:
i
,
idx
:
cList
.
findIndex
(
k
=>
k
==
(
id
||
this
.
data
.
merchantInfo
.
merchantId
))
}
break
}
}
}
return
res
},
// 处理SC004的mock数据
mockDealCrowd
(
data
)
{
var
obj
=
this
.
judgeCrowd
(
this
.
data
.
merchantInfo
.
pMerchantId
,
data
.
merchantId
)
if
(
!
obj
.
flag
)
{
return
data
}
var
mockActivityList
=
this
.
data
.
mockObj
?.
crowdObj
[
obj
.
pIdx
].
merchantList
[
obj
.
idx
].
activityList
var
actIds
=
mockActivityList
.
map
(
item
=>
item
.
activityId
)
data
.
activityList
.
forEach
(
item
=>
{
let
idx
=
actIds
.
findIndex
(
k
=>
k
==
item
.
activityId
)
if
(
idx
!=
-
1
)
{
item
.
activityName
=
mockActivityList
[
idx
].
activityName
item
.
mockPoster
=
mockActivityList
[
idx
].
postUrl
}
})
return
data
},
// 将已开通的活动提前
// openFlag:1-开通;0-未开通
dealOpenActivity
(
list
)
{
list
.
forEach
(
item
=>
{
let
tempList
=
[]
let
idx
=
0
item
.
productList
.
forEach
(
k
=>
{
k
.
openFlag
==
1
?
tempList
.
splice
(
idx
++
,
0
,
k
)
:
tempList
.
push
(
k
)
})
item
.
productList
=
tempList
})
return
list
},
// 获取产品列表
getProList
(
sceneCode
)
{
let
{
productCodes
}
=
this
.
data
.
merchantInfo
console
.
log
(
productCodes
,
'productCodes'
)
var
params
=
{
sceneCode
:
sceneCode
||
''
}
outputApi
.
findProByScene
(
params
).
then
(
res
=>
{
res
&&
res
[
0
]?.
productList
?.
forEach
(
item
=>
{
if
(
productCodes
.
includes
(
item
.
productCode
))
{
item
.
openFlag
=
1
}
})
var
res
=
this
.
dealOpenActivity
(
res
)
this
.
setData
({
scenceList
:
res
})
this
.
getActivityRevenue
()
})
},
// 产品切换
handleActChange
(
e
)
{
var
idx
=
e
.
currentTarget
.
dataset
.
idx
let
{
scenceList
}
=
this
.
data
this
.
setData
({
activityActive
:
idx
,
// openFlag:1-开通;0-不开通
isShowData
:
scenceList
[
0
].
productList
[
idx
].
openFlag
==
1
})
},
setCurActivity
()
{
let
{
scenceList
,
activityActive
}
=
this
.
data
this
.
setData
({
activityList
:
JSON
.
parse
(
JSON
.
stringify
(
this
.
data
.
sceneActivityObj
[
'scene4'
])),
// openFlag:1-开通;0-不开通
isShowData
:
scenceList
[
0
].
productList
[
activityActive
].
openFlag
==
1
})
// activityActive为0时,触发置顶(左)
if
(
this
.
data
.
activityActive
==
0
)
{
this
.
setData
({
scrollLeft
:
0
})
}
},
// 众筹-数据
getActivityRevenue
(
isFirst
=
false
)
{
wx
.
showLoading
()
outputApi
.
getActivityRevenue
({
merchantId
:
this
.
data
.
merchantInfo
.
merchantId
})
.
then
(
res
=>
{
var
actList
=
this
.
data
.
scenceList
[
0
].
productList
var
activitingIdx
=
-
1
actList
.
forEach
((
item
,
idx
)
=>
{
var
curItem
=
res
.
find
(
k
=>
k
.
goodsCategoryCode
==
item
.
productCode
)
if
(
curItem
)
{
curItem
=
this
.
mockDealCrowd
(
curItem
)
curItem
.
totalNum
=
curItem
.
activityList
.
length
curItem
.
shareBtnIdx
=
-
1
let
shareFlag
=
false
curItem
.
activityList
.
forEach
((
k
,
kIdx
)
=>
{
// 分享按钮判断shareStatus:活动分享状态 0:未分享 1:已分享
if
(
k
.
activityStatus
==
2
&&
k
.
shareStatus
==
0
)
{
curItem
.
shareBtnIdx
=
shareFlag
?
-
1
:
kIdx
+
''
shareFlag
=
true
}
// 时间
k
.
time
=
k
.
startTime
.
slice
(
0
,
16
).
replace
(
/-/g
,
'.'
)
+
' - '
+
k
.
endTime
.
slice
(
0
,
16
).
replace
(
/-/g
,
'.'
)
let
startTimeFormat
=
k
.
startTime
.
slice
(
0
,
10
).
replace
(
/-/g
,
'/'
)
+
' 00:00:00'
let
nowDateFormat
=
new
Date
().
toLocaleDateString
().
replace
(
/-/g
,
'/'
)
+
' 23:59:59'
// activityStatus 1:未开始 2:进行中 3:已结束
switch
(
k
.
activityStatus
)
{
case
1
:
k
.
interDays
=
parseInt
((
new
Date
(
startTimeFormat
).
getTime
()
-
new
Date
().
getTime
())
/
(
1000
*
60
*
60
*
24
))
+
1
k
.
realTime
=
'-'
break
case
2
:
let
endTimeFormat
=
k
.
endTime
.
slice
(
0
,
10
).
replace
(
/-/g
,
'/'
)
+
' 23:59:59'
k
.
interDays
=
parseInt
((
new
Date
().
getTime
()
-
new
Date
(
startTimeFormat
).
getTime
())
/
(
1000
*
60
*
60
*
24
))
+
1
k
.
toEndDays
=
parseInt
((
new
Date
(
endTimeFormat
).
getTime
()
-
new
Date
(
nowDateFormat
).
getTime
())
/
(
1000
*
60
*
60
*
24
))
+
1
k
.
realTime
=
k
.
realStartTime
?.
slice
(
0
,
16
).
replace
(
/-/g
,
'.'
)
+
' - '
+
'已开始'
+
k
.
interDays
+
'天'
break
case
3
:
k
.
interDays
=
parseInt
((
new
Date
(
nowDateFormat
).
getTime
()
-
new
Date
(
k
.
endTime
.
replace
(
/-/g
,
'/'
)).
getTime
())
/
(
1000
*
60
*
60
*
24
))
+
1
k
.
realTime
=
(
k
.
realStartTime
?.
slice
(
0
,
16
).
replace
(
/-/g
,
'.'
)
||
''
)
+
' - '
+
(
k
.
realEndTime
?.
slice
(
0
,
16
).
replace
(
/-/g
,
'.'
)
||
''
)
break
}
k
.
suggestTxtList
=
[]
k
.
suggestList
=
[]
if
(
k
.
activityStatus
==
2
)
{
k
.
suggestTxtList
.
push
(
'距离活动结束剩余'
+
k
.
toEndDays
+
'天'
)
if
(
k
.
visitCount
<
200
)
{
k
.
suggestTxtList
.
push
(
'低于200个独立访客'
)
k
.
suggestList
.
push
(
'低于200个独立访客,触达车主的数量太少,建议与4S店关键人沟通注册员工的转发执行情况'
)
}
if
(
k
.
shareRate
<
0.4
)
{
k
.
suggestTxtList
.
push
(
'分享员工占比低于40%'
)
k
.
suggestList
.
push
(
'分享员工占比低于40%,建议与4S店关键人沟通下注册员工的转发执行情况'
)
}
if
(
k
.
conversionRate
<
0.05
)
{
k
.
suggestTxtList
.
push
(
'点击转化率低于5%'
)
k
.
suggestList
.
push
(
'点击转化率低于5%,建议调整该产品的品类话术和营销内容'
)
}
k
.
suggestTxt
=
k
.
suggestTxtList
.
join
(
','
)
+
'。'
}
})
// 定位进行中的活动
if
(
activitingIdx
==
-
1
&&
curItem
.
shareBtnIdx
!=
-
1
)
{
activitingIdx
=
idx
}
actList
[
idx
].
outputData
=
curItem
}
else
{
actList
[
idx
].
outputData
=
[]
}
})
if
(
!
isFirst
)
{
this
.
setData
({
[
'sceneActivityObj.scene4'
]:
actList
})
this
.
setCurActivity
()
}
if
(
this
.
data
.
sceneCodeActive
==
'SC004'
&&
activitingIdx
!=
-
1
)
{
var
params
=
{
currentTarget
:
{
dataset
:
{
idx
:
activitingIdx
}
}
}
this
.
handleActChange
(
params
)
}
})
.
finally
(()
=>
{
wx
.
hideLoading
()
})
},
// 分享母链
async
handleBtnShare
(
e
)
{
const
idx
=
this
.
data
.
activityList
[
this
.
data
.
activityActive
].
outputData
.
shareBtnIdx
const
item
=
this
.
data
.
activityList
[
this
.
data
.
activityActive
].
outputData
.
activityList
[
idx
]
// const { options } = wx.$router.getPageInstance()
if
(
item
.
mockPoster
)
{
item
.
posterUrl
=
item
.
mockPoster
this
.
setData
({
crowdPosterItem
:
item
,
isShowTip
:
false
})
return
}
wx
.
$api
.
showLoading
(
'加载中...'
)
outputApi
.
getPosterUrl
({
id
:
item
.
activityId
})
.
then
(
res
=>
{
item
.
posterUrl
=
res
this
.
setData
({
crowdPosterItem
:
item
,
isShowTip
:
false
})
})
.
catch
(()
=>
{
wx
.
$api
.
showToast
(
'下载海报失败'
)
})
},
// 众筹-end
onRoute
()
{
this
.
getAnalysisTendency
(
this
.
data
.
tabIndx
)
wx
.
$router
.
getData
(
obj
=>
{
this
.
setData
({
merchantInfo
:
obj
})
this
.
initData
()
})
// this.getListSelectAccount(sessionId)
}
})
packagesList/packageOutput/pages/newSummary/newSummary.scss
View file @
1f16e45
...
...
@@ -12,6 +12,10 @@
height
:
100vh
;
overflow
:
hidden
;
.flex
{
display
:
flex
;
}
.titleBox
{
box-sizing
:
border-box
;
position
:
relative
;
...
...
@@ -26,11 +30,13 @@
font-size
:
28rpx
;
color
:
#282829
;
}
.imgBox
{
.imgBox
{
position
:
absolute
;
left
:
40rpx
;
// margin-right: auto;
}
.titleBox
.imgBox
image
{
width
:
40rpx
;
height
:
40rpx
;
...
...
@@ -67,17 +73,19 @@
}
}
.searchBar
{
height
:
88rpx
;
background-color
:
#fff
;
}
.conCom
{
box-sizing
:
border-box
;
.searchBar
{
height
:
88rpx
;
background-color
:
#fff
;
}
.conCom
{
box-sizing
:
border-box
;
height
:
calc
(
100%
);
padding
:
20rpx
20rpx
60rpx
;
// overflow: scroll;
overflow
:
hidden
;
}
}
.container
{
box-sizing
:
border-box
;
height
:
calc
(
100%
-
80rpx
);
...
...
@@ -91,4 +99,108 @@
color
:
transparent
;
}
// 众筹产品
.activity-box
{
width
:
100%
;
height
:
64rpx
;
.activity-item
{
box-sizing
:
border-box
;
flex-shrink
:
0
;
height
:
64rpx
;
line-height
:
64rpx
;
font-size
:
24rpx
;
padding
:
0
16rpx
;
margin-right
:
16rpx
;
border-radius
:
8rpx
;
background
:
#F7F7F7
;
}
.activity-item
:last-child
{
margin-right
:
0
;
}
.activity-item.open
{
color
:
#323436
;
}
.activity-item.no-open
{
color
:
#CCCED1
;
}
.activity-item.active
{
border-width
:
0
;
}
.activity-item.open.active
{
background
:
#3666FE
;
color
:
#FFFFFF
;
}
.activity-item.no-open.active
{
background
:
#3666fe
1a
;
color
:
#949494
;
}
}
// 众筹内容
.activity-content
{
position
:
relative
;
width
:
100%
;
height
:
100%
;
.content-empty
{
position
:
absolute
;
top
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
.img-empty
{
width
:
512rpx
;
height
:
512rpx
;
}
}
}
.btn-box
{
position
:
fixed
;
bottom
:
0
;
left
:
0
;
width
:
100%
;
height
:
116rpx
;
background-color
:
#FFFFFF
;
}
.btn-box.shadow
{
box-shadow
:
0
-2rpx
2rpx
0
rgba
(
0
,
0
,
0
,
0
.08
);
}
.btn
{
width
:
calc
(
100%
-
64rpx
);
height
:
88rpx
;
line-height
:
88rpx
;
text-align
:
center
;
font-size
:
28rpx
;
color
:
#FFFFFF
;
margin
:
14rpx
32rpx
;
.btn-blue
{
background
:
#3666FE
;
border-radius
:
8rpx
;
}
.btn-disabled
{
background
:
#CCCED1
;
border-radius
:
8rpx
;
}
.btn-share
{
background
:
#3666FE
;
border-radius
:
12rpx
;
// animation: xing ease-in-out 2s infinite;
}
}
}
\ No newline at end of file
packagesList/packageOutput/pages/newSummary/newSummary.wxml
View file @
1f16e45
<!--packagesList/packageOutput/pages/openNewBusiness/openNewBusiness.wxml-->
<!-- <text>packagesList/packageOutput/pages/openNewBusiness/openNewBusiness.wxml</text> -->
<view class="layout">
<<<<<<< HEAD
<view class="titleBox">
<view class="imgBox" bind:tap="back">
<image src="../../images/blackArrow.png" />
...
...
@@ -20,5 +21,39 @@
></output-echart>
</view>
<!-- <output-echart></output-echart>
=======
<view class="titleBox">
<view class="imgBox" bind:tap="back">
<image src="../../images/blackArrow.png" />
</view>
<view class="navigation-title-text">广西弘泽汽车销售服务…</view>
</view>
<tab tab="{{tabList}}" itemWidth="{{'30%'}}" index="{{tabIndx}}" bindclick="changeTabIndx" class="tabContainer" />
<view class="searchBar">
<!-- 众筹 -->
<scroll-view wx:if="{{tabIndx == 1}}" scroll-x="{{true}}" enable-flex class="activity-box" scroll-with-animation scroll-left="{{scrollLeft}}">
<view class="flex">
<view class="activity-item {{ activityActive == index ? 'active' : ''}} {{item.openFlag == 1 ? 'open' : 'no-open'}}" wx:for="{{scenceList[0].productList}}" wx:key="index" bindtap="handleActChange" data-idx="{{index}}">
{{item.productName}}
</view>
</view>
</scroll-view>
</view>
<view class="conCom">
<view wx:if="{{tabIndx == 1}}" class="activity-content">
<output-crowdfund wx:if="{{isShowData}}" orderObj="{{activityList[activityActive].outputData}}" bind:handleZhanReport="handleZhanReport" bind:posterTrack="posterTrack" hasReport="{{!isMock.SC004}}" />
<view wx:else class="content-empty">
<image class="img-empty" src="{{IMGURL}}output/sun-empty-transparent.png?v={{img_version}}" />
</view>
<view wx:if="{{activityList.length && isShowData && activityList[activityActive].outputData.shareBtnIdx && activityList[activityActive].outputData.shareBtnIdx != -1}}" class="isFullSucreen btn-box shadow" bindtap="handleBtnShare">
<view class="btn">
<view class="btn-share">活动进行中,分享母链海报开展活动</view>
</view>
</view>
</view>
<output-echart wx:else class="container" revenueData="{{revenueData}}" chartData="{{diagramList}}" tabIndex="{{tabIndx}}"></output-echart>
</view>
<!-- <output-echart></output-echart>
>>>>>>> 181c3f17dc769c9a09fc1c0899d222c93ced7ce9
<output-crowdfund></output-crowdfund> -->
</view>
\ No newline at end of file
pages/tab/mine/mine.js
View file @
1f16e45
...
...
@@ -189,6 +189,10 @@ Page({
onShow
:
function
()
{
this
.
messageBoxPageIsRead
()
this
.
getUnreadApi
()
let
{
userInfo
}
=
wx
.
$storage
.
get
()
this
.
setData
({
userInfo
:
userInfo
.
subLoginUser
})
},
/**
...
...
pages/tab/outputValue/components/CommissionPopup/CommissionPopup.wxml
View file @
1f16e45
...
...
@@ -15,11 +15,11 @@
<view>{{handleCommissionObj.staffName}}</view>
</view>
<scroll-view scroll-y class="month_box">
<view class="month_item" wx:for="{{
monthCommossionData
}}" wx:key="index">
<view class="month">{{item.
month}}<view class="inline_b" wx:if="{{nowMonth == item.m
onth}}">(当前月)</view></view>
<view wx:if="{{item.ruleStatus == '1' && nowMonth == item.
m
onth}}" class="tips">提成在本月完结后自动计算</view>
<view wx:if="{{item.ruleStatus == '
0'}}" class="tips">提成未设置,请登录后台设置
</view>
<view wx:
if="{{item.ruleStatus == '1' && nowMonth != item.month}}" class="commissionNum">¥{{filter.money_three_for_two_thousands(item.commission || '0.00', false)}}
</view>
<view class="month_item" wx:for="{{
handleCommissionObj.performance.performanceResults
}}" wx:key="index">
<view class="month">{{item.
performanceMonth}}<view class="inline_b" wx:if="{{nowMonth == item.performanceM
onth}}">(当前月)</view></view>
<view wx:if="{{item.ruleStatus == '1' && nowMonth == item.
performanceM
onth}}" class="tips">提成在本月完结后自动计算</view>
<view wx:if="{{item.ruleStatus == '
1' && nowMonth != item.performanceMonth && item.commission}}" class="commissionNum">¥{{filter.money_three_for_two_thousands(item.commission || '0.00', false)}}
</view>
<view wx:
else="">-
</view>
</view>
</scroll-view>
</popup>
pages/tab/outputValue/components/ScreenBox/ScreenBox.js
View file @
1f16e45
...
...
@@ -32,6 +32,11 @@ Component({
* 组件的方法列表
*/
methods
:
{
handleScreenFlag
()
{
this
.
setData
({
screenFlag
:
true
})
},
// 选择门店
handleSlectMerchant
()
{
this
.
setData
({
...
...
@@ -48,13 +53,15 @@ Component({
// 获取服务商下的4s店
getMerchantList
()
{
let
{
userInfo
}
=
wx
.
$storage
.
get
()
this
.
setData
({
pageLoaded
:
true
,
userInfo
})
getMerchantListApi
({
serviceMerchantId
:
userInfo
?.
subLoginUser
?.
merchantId
}).
then
(
res
=>
{
let
{
code
,
data
}
=
res
if
(
code
==
'0'
)
{
this
.
setData
({
merchantList
:
data
,
pageLoaded
:
true
,
userInfo
merchantList
:
data
})
}
})
...
...
@@ -63,7 +70,7 @@ Component({
let
{
merchantId
,
merchantName
}
=
e
.
detail
let
{
formData
}
=
this
.
data
const
thisPage
=
wx
.
$router
.
getPageInstance
()
formData
.
shopMerchantIds
=
[
merchantId
]
formData
.
shopMerchantIds
=
merchantId
?
[
merchantId
]
:
[
]
formData
.
shopMerchantNames
=
merchantName
this
.
setData
({
formData
...
...
pages/tab/outputValue/components/ScreenBox/ScreenBox.wxml
View file @
1f16e45
...
...
@@ -4,7 +4,7 @@
<view class="merchant_name">{{ formData.shopMerchantNames }}</view>
<glsx-image src="{{'output/drop_down.png'}}" class="icon" />
</view>
<view class="screen_item wid_140 {{
formData
}}" bindtap="filterTypeFn">
<view class="screen_item wid_140 {{
screenFlag ? 'active' : ''
}}" bindtap="filterTypeFn">
筛选
<glsx-image src="{{'output/drop_down.png'}}" class="icon" />
</view>
...
...
@@ -12,4 +12,4 @@
<!-- 选择门店 -->
<select-merchant-popup wx:if="{{popupShow}}" bind:hidePopup="handleSlectMerchant" bindmerchantConfirm="handleMerchantChange" selectInfo="{{formData}}" popShow="{{popupShow}}" merchantRange="{{merchantList}}" isTab="{{true}}"/>
<!-- 筛选 -->
<screen-confirm-box wx:if="{{pageLoaded}}" tabBarStyle="{{tabBarStyle}}" show="{{confirmShow}}" userInfo="{{userInfo}}" formData="{{formData}}" tabType="{{tabType}}" bindreloadMerchantList="getMerchantList"></screen-confirm-box>
\ No newline at end of file
<screen-confirm-box wx:if="{{pageLoaded}}" bindscreenFlag="handleScreenFlag" tabBarStyle="{{tabBarStyle}}" show="{{confirmShow}}" userInfo="{{userInfo}}" formData="{{formData}}" tabType="{{tabType}}"></screen-confirm-box>
\ No newline at end of file
pages/tab/outputValue/components/ScreenConfirmBox/ScreenConfirmBox.js
View file @
1f16e45
// pages/tab/output/components/ScreenConfirmBox/ScreenConfirmBox.js
import
USERAPI
from
'~/api/usersApi/index'
import
output
Api
from
'~/api/output
Api/index'
import
output
ValueApi
from
'~/api/outputValue
Api/index'
import
{
setUserInfo
}
from
'~/utils/cache/storageApi'
Component
({
/**
...
...
@@ -17,7 +17,7 @@ Component({
thisPage
.
setData
({
isShowFilterScreen
:
true
})
if
(
this
.
data
.
tabType
==
1
)
this
.
setDate
()
// 员工
默认展示当前月份
this
.
setDate
()
//
默认展示当前月份
this
.
setViewData
()
}
}
...
...
@@ -131,7 +131,15 @@ Component({
})
},
setDate
()
{
let
{
formData
}
=
this
.
data
let
month
=
new
Date
().
getMonth
()
+
1
let
year
=
new
Date
().
getFullYear
()
let
day
=
this
.
getLastDay
(
year
,
month
)
formData
.
startTime
=
year
+
'-'
+
month
+
'-01'
+
' 00:00:00'
formData
.
endTime
=
year
+
'-'
+
month
+
'-'
+
day
+
' 23:59:59'
this
.
setData
({
formData
})
},
getLastDay
(
year
,
month
)
{
var
new_year
=
year
//取当前的年份
...
...
@@ -145,28 +153,14 @@ Component({
},
// 员工数据
getStaffList
()
{
let
{
partnerMerchantIds
,
sceneType
}
=
this
.
data
.
formData
outputApi
.
getStaffList
({
partnerMerchantId
:
partnerMerchantIds
[
0
]}).
then
(
res
=>
{
let
_list
=
[]
// 1-会员权益/升级;2-精品升级
let
attrToNum
=
{
''
:
'totalStat'
,
'1'
:
'vdStat'
,
'2'
:
'boutiqueStat'
,
'3'
:
'carTransformStat'
}
_list
=
res
[
attrToNum
[
sceneType
||
''
]]
||
[]
let
arr
=
[]
_list
.
forEach
(
val
=>
{
val
.
list
.
length
&&
val
.
list
.
forEach
(
subVal
=>
{
arr
.
push
(
subVal
)
})
})
if
(
!
arr
.
length
||
arr
[
0
]?.
userName
!==
'全部'
)
{
let
{
partnerMerchantIds
}
=
this
.
data
.
formData
outputValueApi
.
GETALLSTAFFDATAAPI
({
partnerMerchantId
:
partnerMerchantIds
[
0
]}).
then
(
res
=>
{
let
arr
=
res
||
[]
if
(
!
arr
?.
length
||
arr
[
0
]?.
staffName
!==
'全部'
)
{
arr
.
unshift
({
active
:
true
,
u
serI
d
:
''
,
user
Name
:
'全部'
u
ui
d
:
''
,
staff
Name
:
'全部'
})
}
this
.
setData
({
...
...
@@ -210,18 +204,18 @@ Component({
wx
.
$api
.
showLoading
(
'加载中'
)
let
{
userInfo
,
formData
,
staffList
,
sceneList
}
=
this
.
data
formData
.
sceneType
=
sceneList
.
filter
(
val
=>
val
.
active
)[
0
]?.
id
||
''
formData
.
staffUUIDs
=
staffList
.
filter
(
val
=>
val
.
active
).
map
(
subVal
=>
{
return
subVal
.
userId
})
formData
.
staffUUIDs
=
staffList
.
filter
(
val
=>
val
.
active
).
map
(
subVal
=>
{
if
(
subVal
.
uuid
)
return
subVal
.
uuid
})
this
.
triggerEvent
(
'screenFlag'
)
const
thisPage
=
wx
.
$router
.
getPageInstance
()
if
(
formData
?.
partnerMerchantIds
[
0
]
!==
userInfo
.
subLoginUser
.
merchantId
)
{
USERAPI
.
switchSubLoginInfo
({
merchantId
:
formData
?.
partnerMerchantIds
[
0
]
}).
then
(
res
=>
{
setUserInfo
(
res
)
wx
.
$api
.
hideLoading
()
this
.
triggerEvent
(
'reloadMerchantList'
)
// 切换服务商 清空已选的门店
formData
.
shopMerchantIds
=
[]
formData
.
shopMerchantNames
=
'全部门店'
thisPage
.
setData
({
screenFormData
:
formData
screenFormData
:
formData
,
})
thisPage
.
searchEvent
()
})
...
...
pages/tab/outputValue/components/ScreenConfirmBox/ScreenConfirmBox.scss
View file @
1f16e45
...
...
@@ -38,7 +38,7 @@
padding
:
0
24rpx
;
}
.box
{
margin
:
0
24rpx
;
margin
:
0
24rpx
16rpx
;
}
.box
.title
{
...
...
pages/tab/outputValue/components/ScreenConfirmBox/ScreenConfirmBox.wxml
View file @
1f16e45
...
...
@@ -70,7 +70,7 @@
<view class="list_box">
<block wx:for="{{staffList}}" wx:key="index">
<view class="list_item {{item.active?'active':''}}" bindtap="choose" data-index="{{index}}" data-multiple="true" data-list-name="staffList">
<view>{{item.
user
Name}}</view>
<view>{{item.
staff
Name}}</view>
</view>
</block>
</view>
...
...
pages/tab/outputValue/components/Tab/Tab.js
View file @
1f16e45
...
...
@@ -21,6 +21,7 @@ Component({
type
:
Boolean
,
value
:
false
},
tabBoxStyle
:
String
,
index
:
{
type
:
Number
,
observer
:
function
(
n
)
{
...
...
pages/tab/outputValue/components/Tab/Tab.wxml
View file @
1f16e45
<wxs src="./Tab.wxs" module="filterUtils" />
<block>
<scroll-view class="tab-box flex" scroll-x enable-flex scroll-with-animation scroll-into-view="{{to}}" enhanced="{{true}}" show-scrollbar="{{false}}" style="{{tab
Height ? 'height: 88rpx;' : ''
}}">
<scroll-view class="tab-box flex" scroll-x enable-flex scroll-with-animation scroll-into-view="{{to}}" enhanced="{{true}}" show-scrollbar="{{false}}" style="{{tab
BoxStyle
}}">
<block wx:for="{{tab}}" wx:key="index">
<view class="tab {{index==count?'active':''}}" style="width:{{itemWidth}}; margin-left: 32rpx" bindtap="click" data-count="{{index}}">
<view class="text text-center" style="{{tab
Height ? 'height: 88rpx;' : ''
}}">{{item}}</view>
<view class="text text-center" style="{{tab
BoxStyle
}}">{{item}}</view>
<view wx:if="{{!noLine}}" class="line" style="{{tabHeight ? 'margin-top: 6rpx;' : ''}}" />
</view>
</block>
...
...
pages/tab/outputValue/components/employees/employess.js
View file @
1f16e45
...
...
@@ -2,13 +2,19 @@
const
IMAGES
=
Object
.
freeze
({
userAvatarUrl
:
`/personal/userAvatarUrl.png`
})
import
outputValueApi
from
'~/api/outputValueApi/index'
import
{
IMG_URL
}
from
'~/utils/constantData'
Component
({
/**
* 组件的属性列表
*/
properties
:
{
tabBarStyle
:
{
type
:
Number
,
observer
:
function
(
n
)
{
if
(
n
)
this
.
setData
({
emptyDataStyle
:
`height: calc(100vh -
${
n
}
px - 88rpx - 24rpx)`
})
}
}
},
/**
...
...
@@ -17,77 +23,18 @@ Component({
data
:
{
IMAGES
,
IMG_URL
,
dataList
:
[{
staffRoleName
:
'技师'
,
staffName
:
'张三'
,
staffUUID
:
1
,
totalOutputValue
:
185041
,
commissionFlag
:
false
,
outputValueType
:
1
,
outputValueStats
:
[
{
shopMerchantId
:
123123
,
shopMerchantName
:
'明明崇文4s店A明明崇文4s店A明明崇文4s店A明明崇文4s店A'
,
totalOrderMoney
:
15
,
customerUnitPrice
:
2000.01
,
orderCount
:
20
},
{
shopMerchantId
:
123123
,
shopMerchantName
:
'明明崇文4s店A'
,
totalOrderMoney
:
15
,
customerUnitPrice
:
2000.01
,
orderCount
:
20
},
{
shopMerchantId
:
123123
,
shopMerchantName
:
'明明崇文4s店A'
,
totalOrderMoney
:
15
,
customerUnitPrice
:
2000.01
,
orderCount
:
20
},
{
shopMerchantId
:
123123
,
shopMerchantName
:
'明明崇文4s店A'
,
totalOrderMoney
:
10
,
customerUnitPrice
:
2000.01
,
orderCount
:
15
}
]
},
{
staffRoleName
:
'驻店员工'
,
staffName
:
'李四'
,
staffUUID
:
1
,
totalOutputValue
:
185041
,
commissionFlag
:
true
,
outputValueType
:
2
,
constructionStats
:
[
{
shopMerchantId
:
123123
,
shopMerchantName
:
'明明崇文4s店A'
,
upgradeConstructionCount
:
15
,
notUpgradeConstructionCount
:
20
,
upgradeIncentiveFee
:
40
},
{
shopMerchantId
:
123123
,
shopMerchantName
:
'明明崇文4s店A'
,
upgradeConstructionCount
:
15
,
notUpgradeConstructionCount
:
20
,
upgradeIncentiveFee
:
40
},
{
shopMerchantId
:
123123
,
shopMerchantName
:
'明明崇文4s店A'
,
upgradeConstructionCount
:
15
,
notUpgradeConstructionCount
:
20
,
upgradeIncentiveFee
:
40
}
]
}],
dataList
:
[],
commissionPopup
:
false
,
handleCommissionObj
:
{},
bgUrl
:
`
${
IMG_URL
}
/personal/empty_tran.png`
,
pageNum
:
1
,
total
:
0
,
pageSize
:
4
,
merchantOutputValuesPageSize
:
9999
,
// 员工卡片服务门店数据分页
nothing
:
false
,
scrollTop
:
0
,
isAsk
:
false
,
emptyDataStyle
:
''
},
/**
...
...
@@ -107,6 +54,82 @@ Component({
this
.
setData
({
[
params
]:
true
})
},
onBottomRefresh
()
{
this
.
getListData
()
},
refreshList
()
{
this
.
setData
({
pageNum
:
1
,
nothing
:
false
,
total
:
0
})
this
.
getListData
(
true
)
},
actionOperationResult
(
val1
,
val2
,
rate
=
false
){
const
p
=
this
.
actionOperation
(
val1
,
val2
)
return
rate
?
((
val1
*
p
)
/
(
val2
*
p
))
*
100
:
((
val1
*
p
)
/
(
val2
*
p
)).
toFixed
(
2
)
},
actionOperation
(
val1
,
val2
){
const
len1
=
val1
.
toString
().
length
-
val1
.
toString
().
indexOf
(
"."
)
-
1
const
len2
=
val2
.
toString
().
length
-
val2
.
toString
().
indexOf
(
"."
)
-
1
const
p
=
Math
.
max
(
len1
,
len2
)
return
Math
.
pow
(
10
,
p
)
},
getListData
(
isReset
=
false
)
{
let
_this
=
this
if
(
isReset
)
{
_this
.
setData
({
pageNum
:
1
,
nothing
:
false
,
total
:
0
})
}
let
{
pageNum
,
pageSize
,
merchantOutputValuesPageSize
,
nothing
,
isAsk
,
dataList
}
=
_this
.
data
const
thisPage
=
wx
.
$router
.
getPageInstance
()
let
params
=
{
pageNum
,
pageSize
,
merchantOutputValuesPageSize
,
...
thisPage
.
data
.
screenFormData
}
delete
params
.
shopMerchantNames
if
(
nothing
||
isAsk
)
{
return
}
_this
.
setData
({
isAsk
:
true
})
outputValueApi
.
GETSTAFFLISTAPI
(
params
).
then
(
res
=>
{
let
{
list
,
total
}
=
res
list
?.
forEach
(
val
=>
{
val
?.
outputValueStats
?.
forEach
(
subVal
=>
{
subVal
.
customerUnitPrice
=
this
.
actionOperationResult
(
subVal
.
totalOrderMoney
,
subVal
.
upgradeOrderCount
)
// 客单价计算
subVal
.
conversionRate
=
this
.
actionOperationResult
(
subVal
.
upgradeOrderCount
,
subVal
.
orderCount
,
true
)
// 转化率
})
val
.
commissionFlag
=
val
?.
performance
?.
staffType
==
0
?
(
val
?.
performance
?.
performanceFlag
==
1
)
:
(
val
?.
performance
?.
constructionBonusFlag
==
1
)
// 是否设置提成 0关闭 1开启
})
let
tempList
=
isReset
?
list
||
[]
:
dataList
.
concat
(
list
||
[])
_this
.
setData
({
dataList
:
tempList
,
pageNum
:
pageNum
+
1
,
total
:
total
,
nothing
:
total
==
tempList
.
length
,
triggered
:
false
})
if
(
isReset
)
{
_this
.
setData
({
scrollTop
:
0
})
}
}).
finally
(
function
()
{
_this
.
setData
({
isAsk
:
false
,
triggered
:
false
})
})
}
}
})
pages/tab/outputValue/components/employees/employess.scss
View file @
1f16e45
...
...
@@ -2,6 +2,7 @@
.list
{
padding
:
0
16rpx
;
width
:
100%
;
height
:
100%
;
box-sizing
:
border-box
;
.empty_box
{
width
:
100%
;
...
...
@@ -34,6 +35,10 @@
font-weight
:
600
;
font-size
:
32rpx
;
color
:
#333333
;
max-width
:
200rpx
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
.role_name
{
margin
:
6rpx
0
0
8rpx
;
...
...
@@ -145,4 +150,7 @@
text-align
:
center
;
color
:
#CCCED1
;
padding-bottom
:
60rpx
;
}
.empty_data_box
{
padding
:
0
;
}
\ No newline at end of file
pages/tab/outputValue/components/employees/employess.wxml
View file @
1f16e45
<!--pages/tab/outputValue/components/employees/employess.wxml-->
<wxs src="../../index.wxs" module="filter" />
<scroll-view scroll-y
<scroll-view
scroll-y
enable-back-to-top
refresher-enabled="{{true}}"
bindrefresherrefresh="refreshList"
bindscrolltolower="onBottomRefresh"
refresher-threshold="104"
scroll-top="{{scrollTop}}"
class="list"
data-type="message"
refresher-triggered="{{triggered}}">
<view class="empty_box"></view>
<block wx:for="{{dataList}}" wx:key="index">
...
...
@@ -24,8 +25,8 @@
<view class="flex_spa-be">
<view class="merchant_num">服务门店·{{item.outputValueType == 1 ? item.outputValueStats.length : item.constructionStats.length}}家</view>
<view class="commission">
<view class="flex"
wx:if="{{item.commissionFlag}}"
data-target="{{item}}" bindtap="handleCommissionPopup"><text>提成</text><text class="arrow"></text></view>
<
view class="disabled" wx:else="">提成未设置</view
>
<view class="flex" data-target="{{item}}" bindtap="handleCommissionPopup"><text>提成</text><text class="arrow"></text></view>
<
!-- <view class="disabled" wx:else="">提成未设置</view> --
>
</view>
</view>
</view>
...
...
@@ -47,7 +48,7 @@
</view>
<view class="flex_1 padd_r16">
<view class="font_wei">{{subItem.orderCount}}单</view>
<view>{{subItem.
orderCount
}}%</view>
<view>{{subItem.
conversionRate
}}%</view>
</view>
</view>
<view class="showMore" wx:if="{{subIndex >= 3 && subIndex === (item.outputValueStats.length - 1) && !item.showMore}}" bindtap="showMore" data-index="{{index}}">
...
...
@@ -84,11 +85,11 @@
</view>
</view>
</block>
<view wx:if="{{!dataList.length}}" class="end-txt">
<nothing-tips tips="暂无数据~" bgColor="{{'#FFFFFF'}}" bg="{{bgUrl}}" />
</view>
<view wx:else class="end-txt">
<view>到底啦~</view>
<view wx:if="{{!dataList.length}}" class="end-txt empty_data_box">
<nothing-tips tips="暂无数据~" bgColor="{{'#FFFFFF'}}" bg="{{bgUrl}}" emptyDataStyle="{{emptyDataStyle}}"/>
</view>
<block wx:elif="{{nothing}}">
<view class="end-txt">到底了~</view>
</block>
</scroll-view>
<commissionPopup wx:if="commissionPopup" popShow="{{commissionPopup}}" bind:hidePopup="handleCommissionPopup" handleCommissionObj="{{handleCommissionObj}}"/>
pages/tab/outputValue/components/merchant/merchant.js
View file @
1f16e45
...
...
@@ -52,7 +52,9 @@ Component({
total
:
'19567'
},
merchantDataList
:
[{
merchantId
:
44211638
,
merchantName
:
'四川申蓉汇亚汽车贸易有限公司'
,
productCodes
:
[
'PC009'
],
curMonthTotalData
:
{
scene1Total
:
'5026'
,
scene0Total
:
'11000'
,
...
...
@@ -66,7 +68,9 @@ Component({
total
:
'0'
}
},
{
merchantId
:
44211638
,
merchantName
:
'四川港宏新通汽车销售服务有限公司'
,
productCodes
:
[
'PC003'
,
'PC005'
,
'PC006'
,
'PC007'
,
'PC009'
],
curMonthTotalData
:
{
scene1Total
:
'960'
,
scene0Total
:
'0'
,
...
...
pages/tab/outputValue/components/merchantCom/MerchantScene/MerchantScene.wxml
View file @
1f16e45
...
...
@@ -12,7 +12,7 @@
<view class="top-num-box">
<view>
<view class="num-blue ft-40">¥{{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="{{sceneObj.name != 'membranes'}}" class="label m-b-12">业务产值
...
...
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.js
View file @
1f16e45
...
...
@@ -45,6 +45,11 @@ Component({
})
console
.
log
(
this
.
data
.
compareList
,
'compareList---'
)
},
handleClick
(
e
)
{
let
{
info
}
=
e
.
currentTarget
.
dataset
console
.
log
(
info
)
wx
.
$router
.
go
(
'packagesList.newSummary'
,
info
)
},
switchChange
()
{
this
.
setData
({
switchChecked
:
!
this
.
data
.
switchChecked
...
...
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.json
View file @
1f16e45
{
"component"
:
true
,
"usingComponents"
:
{}
"usingComponents"
:
{},
"styleIsolation"
:
"shared"
}
\ No newline at end of file
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.scss
View file @
1f16e45
...
...
@@ -113,6 +113,14 @@
background-image
:
linear-gradient
(
179deg
,
#FAFAFA
0%
,
#FFFFFF
50%
);
}
.list
:hover
{
background
:
#000000
05
;
}
.title-box-first
:hover
{
background-image
:
none
;
}
.title-box
{
position
:
relative
;
padding
:
26rpx
24rpx
;
...
...
@@ -133,6 +141,16 @@
border-radius
:
0
4rpx
4rpx
0
;
}
.title-block
{
width
:
70%
;
display
:
flex
;
align-items
:
center
;
}
.title-name
{
width
:
calc
(
100%
-
72rpx
);
}
.tips-store
{
box-sizing
:
border-box
;
width
:
64rpx
;
...
...
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.wxml
View file @
1f16e45
...
...
@@ -23,10 +23,10 @@
</view>
<!-- 门店列表 -->
<view class="contanier">
<view wx:for="{{curInfo.merchantDataList}}" wx:key="index" class="list">
<view wx:for="{{curInfo.merchantDataList}}" wx:key="index" class="list"
bindtap="handleClick" data-info="{{item}}"
>
<view class="title-box flex-between {{index == 0 ? 'title-box-first' : ''}}">
<view>
{{item.merchantName}}
<view
class="title-block"
>
<view class="title-name text-hide">{{item.merchantName}}</view>
<text class="tips-store">门店</text>
</view>
<view class="num-blue">¥{{filter.money_three_for_two_thousands(item.curMonthTotalData.total || 0)}}</view>
...
...
pages/tab/outputValue/components/selectMerchantPopup/selectMerchantPopup.js
View file @
1f16e45
...
...
@@ -14,6 +14,7 @@ Component({
observer
:
function
(
n
)
{
if
(
n
)
{
let
{
merchantRange
,
selectInfo
}
=
this
.
data
console
.
log
(
selectInfo
)
let
activeIndex
=
merchantRange
.
findIndex
(
v
=>
v
.
merchantId
==
selectInfo
.
shopMerchantIds
[
0
])
if
(
merchantRange
.
length
)
merchantRange
.
unshift
({
merchantId
:
''
,
merchantName
:
'全部'
})
merchantRange
.
forEach
((
item
,
ind
)
=>
{
...
...
@@ -76,7 +77,9 @@ Component({
icon
:
'error'
})
}
else
{
if
(
actObj
.
merchantId
==
''
&&
actObj
.
merchantName
==
'全部'
)
actObj
.
merchantName
=
'所有门店'
if
(
actObj
.
merchantId
==
''
&&
actObj
.
merchantName
==
'全部'
)
{
actObj
.
merchantName
=
'所有门店'
}
this
.
changePicker
(
actObj
)
}
},
...
...
pages/tab/outputValue/outputValue.js
View file @
1f16e45
...
...
@@ -31,7 +31,8 @@ Page({
sceneType
:
''
,
staffUUIDs
:
[]
},
isShowFilterScreen
:
false
isShowFilterScreen
:
false
,
tabBoxStyle
:
''
},
back
()
{
this
.
setData
({
...
...
@@ -52,7 +53,8 @@ Page({
navbarReady
(
e
)
{
let
{
height
,
statusBarHeight
}
=
e
.
detail
this
.
setData
({
tabBarStyle
:
height
/
2
+
statusBarHeight
tabBarStyle
:
height
/
2
+
statusBarHeight
,
tabBoxStyle
:
`height:
${
height
}
rpx`
})
},
changeTabIndx
(
e
)
{
...
...
@@ -62,11 +64,15 @@ Page({
},
init
()
{
this
.
setUserInfo
()
this
.
searchEvent
(
true
)
},
// 筛选回调
searchEvent
(
isNoBack
=
false
)
{
console
.
log
(
this
.
data
.
screenFormData
,
'screenFormData'
)
if
(
!
isNoBack
)
this
.
back
()
let
merchantModule
=
this
.
selectComponent
(
'#merchant'
)
let
employessModule
=
this
.
selectComponent
(
'#employess'
)
employessModule
.
getListData
&&
employessModule
.
getListData
(
true
)
},
setUserInfo
()
{
let
{
userInfo
}
=
wx
.
$storage
.
get
()
...
...
pages/tab/outputValue/outputValue.wxml
View file @
1f16e45
<!-- pages/tab/output/output.wxml -->
<navigation-bar navStyle="{{isShowFilterScreen ? 'background: #fff;' : navStyle}}" bindnavbarReady="navbarReady" navBarBoxStyle="{{!isShowFilterScreen ? navBarBoxStyle : 'justify-content: center;align-items: center'}}" navTitleStyle="{{navTitleStyle}}">
<block>
<tab wx:if="{{!isShowFilterScreen}}" noLine="{{true}}" tab="{{tabList}}" itemWidth="{{'136rpx'}}"
index="{{tabIndx}}" tabHeight
unreadClueCount="{{unreadClueCount}}" bindclick="changeTabIndx" class="tabContainer" />
<tab wx:if="{{!isShowFilterScreen}}" noLine="{{true}}" tab="{{tabList}}" itemWidth="{{'136rpx'}}"
tabBoxStyle="{{tabBoxStyle}}" index="{{tabIndx}}"
unreadClueCount="{{unreadClueCount}}" bindclick="changeTabIndx" class="tabContainer" />
<view class="screen_box">
<screen-box id="screenBox" formData="{{screenFormData}}" tabType="{{tabIndx}}" tabBarStyle="{{tabBarStyle}}" isShowFilterScreen="{{isShowFilterScreen}}" bindconfirm="screenConfirm"
merchantRange="{{merchantRange}}"
></screen-box>
<screen-box id="screenBox" formData="{{screenFormData}}" tabType="{{tabIndx}}" tabBarStyle="{{tabBarStyle}}" isShowFilterScreen="{{isShowFilterScreen}}" bindconfirm="screenConfirm"></screen-box>
</view>
</block>
<block wx:if="{{isShowFilterScreen}}">
...
...
@@ -20,6 +20,6 @@
</view>
<!-- 我的员工 -->
<view class="comCom" hidden="{{tabIndx != 1}}">
<employess id="employess"/>
<employess id="employess"
tabBarStyle="{{tabBarStyle}}"
/>
</view>
</view>
\ No newline at end of file
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