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 24ebd916
authored
Aug 22, 2023
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
接口对接
1 parent
37c1d207
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
190 additions
and
124 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
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/employees/employess.js
pages/tab/outputValue/components/employees/employess.scss
pages/tab/outputValue/components/employees/employess.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 @
24ebd91
import
outputValueApi
from
'./outputValue.js'
export
default
new
outputValueApi
()
api/outputValueApi/outputValue.js
0 → 100644
View file @
24ebd91
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 @
24ebd91
...
...
@@ -10,7 +10,8 @@ Component({
bgColor
:
{
type
:
String
,
value
:
'#fff'
}
},
emptyDataStyle
:
String
},
/**
...
...
components/Nothing-tips/nothingTips.wxml
View file @
24ebd91
<!-- 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 @
24ebd91
...
...
@@ -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
)
{
...
...
pages/tab/mine/mine.js
View file @
24ebd91
...
...
@@ -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 @
24ebd91
...
...
@@ -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 @
24ebd91
...
...
@@ -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 @
24ebd91
...
...
@@ -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 @
24ebd91
// 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,19 @@ 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
})
formData
.
shopMerchantIds
=
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 @
24ebd91
...
...
@@ -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 @
24ebd91
...
...
@@ -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/employees/employess.js
View file @
24ebd91
...
...
@@ -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 @
24ebd91
...
...
@@ -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 @
24ebd91
<!--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/selectMerchantPopup/selectMerchantPopup.js
View file @
24ebd91
...
...
@@ -76,7 +76,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 @
24ebd91
...
...
@@ -62,11 +62,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 @
24ebd91
...
...
@@ -3,7 +3,7 @@
<block>
<tab wx:if="{{!isShowFilterScreen}}" noLine="{{true}}" tab="{{tabList}}" itemWidth="{{'136rpx'}}" index="{{tabIndx}}" tabHeight 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