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 84eb32b5
authored
Aug 21, 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
93dd7011
20be577d
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
307 additions
and
131 deletions
packageMine/pages/staffManage/staffList/staffList.js
pages/tab/mine/mine.js
pages/tab/outputValue/components/CommissionPopup/CommissionPopup.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.wxml
pages/tab/outputValue/components/employees/employess.js
pages/tab/outputValue/components/employees/employess.wxml
pages/tab/outputValue/components/merchant/merchant.js
pages/tab/outputValue/components/merchant/merchant.json
pages/tab/outputValue/components/merchant/merchant.wxml
pages/tab/outputValue/components/merchantCom/Membranes/Membranes.js → pages/tab/outputValue/components/merchantCom/MerchantScene/MerchantScene.js
pages/tab/outputValue/components/merchantCom/Membranes/Membranes.json → pages/tab/outputValue/components/merchantCom/MerchantScene/MerchantScene.json
pages/tab/outputValue/components/merchantCom/Membranes/Membranes.scss → pages/tab/outputValue/components/merchantCom/MerchantScene/MerchantScene.scss
pages/tab/outputValue/components/merchantCom/Membranes/Membranes.wxml → pages/tab/outputValue/components/merchantCom/MerchantScene/MerchantScene.wxml
pages/tab/outputValue/components/merchantCom/constant.js
pages/tab/outputValue/index.wxs
pages/tab/outputValue/outputValue.js
pages/tab/outputValue/outputValue.wxml
packageMine/pages/staffManage/staffList/staffList.js
View file @
84eb32b
...
@@ -75,7 +75,7 @@ Page({
...
@@ -75,7 +75,7 @@ Page({
this
.
setData
({
this
.
setData
({
staffList
:
tempList
,
staffList
:
tempList
,
currentPage
:
currentPage
+
1
,
currentPage
:
currentPage
+
1
,
total
:
res
.
count
,
total
:
res
.
total
,
nothing
:
res
.
count
==
tempList
.
length
,
nothing
:
res
.
count
==
tempList
.
length
,
triggered
:
false
triggered
:
false
})
})
...
...
pages/tab/mine/mine.js
View file @
84eb32b
...
@@ -171,9 +171,10 @@ Page({
...
@@ -171,9 +171,10 @@ Page({
})
})
let
{
serviceMerchatList
}
=
await
getMockData
()
||
{
serviceMerchatList
:
[]
}
let
{
serviceMerchatList
}
=
await
getMockData
()
||
{
serviceMerchatList
:
[]
}
this
.
setData
({
// v4.27.0_0831版本隐藏加微入口
isShowService
:
serviceMerchatList
.
includes
(
userInfo
.
merchantId
+
''
)
// this.setData({
})
// isShowService: serviceMerchatList.includes(userInfo.merchantId + '')
// })
this
.
judgeIsHide
()
this
.
judgeIsHide
()
console
.
log
(
serviceMerchantId
)
console
.
log
(
serviceMerchantId
)
},
},
...
...
pages/tab/outputValue/components/CommissionPopup/CommissionPopup.js
View file @
84eb32b
...
@@ -37,9 +37,8 @@ Component({
...
@@ -37,9 +37,8 @@ Component({
},
{
},
{
month
:
'2023-03'
,
month
:
'2023-03'
,
ruleStatus
:
'1'
,
ruleStatus
:
'1'
,
commission
:
5230
commission
:
5230
.1
}
}
],
],
nowMonth
:
getNowMonth
()
nowMonth
:
getNowMonth
()
},
},
...
...
pages/tab/outputValue/components/CommissionPopup/CommissionPopup.wxml
View file @
84eb32b
...
@@ -16,10 +16,10 @@
...
@@ -16,10 +16,10 @@
</view>
</view>
<scroll-view scroll-y class="month_box">
<scroll-view scroll-y class="month_box">
<view class="month_item" wx:for="{{monthCommossionData}}" wx:key="index">
<view class="month_item" wx:for="{{monthCommossionData}}" wx:key="index">
<view class="month">{{
filter.getMonth(item.month)}}月份
<view class="inline_b" wx:if="{{nowMonth == item.month}}">(当前月)</view></view>
<view class="month">{{
item.month}}
<view class="inline_b" wx:if="{{nowMonth == item.month}}">(当前月)</view></view>
<view wx:if="{{item.ruleStatus == '1' && nowMonth == item.month}}" class="tips">提成在本月完结后自动计算</view>
<view wx:if="{{item.ruleStatus == '1' && nowMonth == item.month}}" class="tips">提成在本月完结后自动计算</view>
<view wx:if="{{item.ruleStatus == '0'}}" class="tips">提成未设置,请登录后台设置</view>
<view wx:if="{{item.ruleStatus == '0'}}" class="tips">提成未设置,请登录后台设置</view>
<view wx:if="{{item.ruleStatus == '1' && nowMonth != item.month}}" class="commissionNum">¥{{filter.
setPrice(item.commission
)}}</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>
</view>
</scroll-view>
</scroll-view>
</popup>
</popup>
pages/tab/outputValue/components/ScreenBox/ScreenBox.js
View file @
84eb32b
...
@@ -17,7 +17,9 @@ Component({
...
@@ -17,7 +17,9 @@ Component({
data
:
{
data
:
{
merchantList
:
[],
merchantList
:
[],
popupShow
:
false
,
popupShow
:
false
,
confirmShow
:
false
confirmShow
:
false
,
pageLoaded
:
false
,
userInfo
:
{}
},
},
lifetimes
:
{
lifetimes
:
{
...
@@ -50,13 +52,14 @@ Component({
...
@@ -50,13 +52,14 @@ Component({
let
{
code
,
data
}
=
res
let
{
code
,
data
}
=
res
if
(
code
==
'0'
)
{
if
(
code
==
'0'
)
{
this
.
setData
({
this
.
setData
({
merchantList
:
data
merchantList
:
data
,
pageLoaded
:
true
,
userInfo
})
})
}
}
})
})
},
},
handleMerchantChange
(
e
)
{
handleMerchantChange
(
e
)
{
console
.
log
(
'111111'
)
let
{
merchantId
,
merchantName
}
=
e
.
detail
let
{
merchantId
,
merchantName
}
=
e
.
detail
let
{
formData
}
=
this
.
data
let
{
formData
}
=
this
.
data
const
thisPage
=
wx
.
$router
.
getPageInstance
()
const
thisPage
=
wx
.
$router
.
getPageInstance
()
...
...
pages/tab/outputValue/components/ScreenBox/ScreenBox.wxml
View file @
84eb32b
...
@@ -12,4 +12,4 @@
...
@@ -12,4 +12,4 @@
<!-- 选择门店 -->
<!-- 选择门店 -->
<select-merchant-popup wx:if="{{popupShow}}" bind:hidePopup="handleSlectMerchant" bindmerchantConfirm="handleMerchantChange" selectInfo="{{formData}}" popShow="{{popupShow}}" merchantRange="{{merchantList}}" isTab="{{true}}"/>
<select-merchant-popup wx:if="{{popupShow}}" bind:hidePopup="handleSlectMerchant" bindmerchantConfirm="handleMerchantChange" selectInfo="{{formData}}" popShow="{{popupShow}}" merchantRange="{{merchantList}}" isTab="{{true}}"/>
<!-- 筛选 -->
<!-- 筛选 -->
<screen-confirm-box wx:if="{{confirmShow}}" tabBarStyle="{{tabBarStyle}}" show="{{confirmShow}}" formData="{{formData}}" tabType="{{tabType}}" bindreloadMerchantList="getMerchantList"></screen-confirm-box>
\ No newline at end of file
\ No newline at end of file
<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
\ No newline at end of file
pages/tab/outputValue/components/ScreenConfirmBox/ScreenConfirmBox.js
View file @
84eb32b
...
@@ -17,20 +17,19 @@ Component({
...
@@ -17,20 +17,19 @@ Component({
thisPage
.
setData
({
thisPage
.
setData
({
isShowFilterScreen
:
true
isShowFilterScreen
:
true
})
})
if
(
this
.
data
.
tabType
==
1
)
this
.
setDate
()
// 员工默认展示当前月份
this
.
setViewData
()
this
.
setViewData
()
this
.
updateUserInfo
()
}
}
}
}
},
},
tabType
:
Number
// tab值 0我的门店 1我的员工
tabType
:
Number
,
// tab值 0我的门店 1我的员工
userInfo
:
Object
},
},
/**
/**
* 组件的初始数据
* 组件的初始数据
*/
*/
data
:
{
data
:
{
userInfo
:
{},
isSuper
:
false
,
servicePopupShow
:
false
,
servicePopupShow
:
false
,
merchantRange
:
[],
merchantRange
:
[],
sceneList
:
[
sceneList
:
[
...
@@ -59,13 +58,6 @@ Component({
...
@@ -59,13 +58,6 @@ Component({
* 组件的方法列表
* 组件的方法列表
*/
*/
methods
:
{
methods
:
{
updateUserInfo
()
{
let
{
userInfo
}
=
wx
.
$storage
.
get
()
this
.
setData
({
userInfo
,
isSuper
:
userInfo
.
isSuper
})
},
setViewData
()
{
setViewData
()
{
let
{
tabBarStyle
}
=
this
.
data
let
{
tabBarStyle
}
=
this
.
data
wx
.
$api
.
getViewInfo
(
wx
.
$api
.
getViewInfo
(
...
@@ -80,9 +72,9 @@ Component({
...
@@ -80,9 +72,9 @@ Component({
)
)
},
},
getMerchantRange
()
{
getMerchantRange
()
{
let
{
isSuper
,
userInfo
}
=
this
.
data
let
{
userInfo
}
=
this
.
data
// 判断是超管才需要切换账号
// 判断是超管才需要切换账号
if
(
isSuper
)
{
if
(
userInfo
?.
isSuper
)
{
USERAPI
.
adminSelectLogin
()
USERAPI
.
adminSelectLogin
()
.
then
(
result
=>
{
.
then
(
result
=>
{
let
{
merchantList
:
merchantRange
}
=
result
let
{
merchantList
:
merchantRange
}
=
result
...
@@ -138,6 +130,9 @@ Component({
...
@@ -138,6 +130,9 @@ Component({
formData
formData
})
})
},
},
setDate
()
{
},
getLastDay
(
year
,
month
)
{
getLastDay
(
year
,
month
)
{
var
new_year
=
year
//取当前的年份
var
new_year
=
year
//取当前的年份
var
new_month
=
month
++
//取下一个月的第一天,方便计算(最后一天不固定)
var
new_month
=
month
++
//取下一个月的第一天,方便计算(最后一天不固定)
...
@@ -181,7 +176,7 @@ Component({
...
@@ -181,7 +176,7 @@ Component({
},
},
init
()
{
init
()
{
this
.
getMerchantRange
()
this
.
getMerchantRange
()
if
(
this
.
data
.
tabType
==
1
)
this
.
getStaffList
()
// 我的员工有员工筛选条件
this
.
getStaffList
()
// 我的员工有员工筛选条件
},
},
choose
(
e
)
{
choose
(
e
)
{
let
{
index
,
listName
}
=
e
.
currentTarget
.
dataset
let
{
index
,
listName
}
=
e
.
currentTarget
.
dataset
...
...
pages/tab/outputValue/components/ScreenConfirmBox/ScreenConfirmBox.wxml
View file @
84eb32b
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<view class="box">
<view class="box">
<view class="title">
<view class="title">
服务商名称
服务商名称
<block wx:if="{{isSuper}}">
<block wx:if="{{
userInfo.
isSuper}}">
<view class="picker_box" bindtap="servicePicker">
<view class="picker_box" bindtap="servicePicker">
<view class="picker_text">
<view class="picker_text">
切换
切换
...
...
pages/tab/outputValue/components/employees/employess.js
View file @
84eb32b
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
const
IMAGES
=
Object
.
freeze
({
const
IMAGES
=
Object
.
freeze
({
userAvatarUrl
:
`/personal/userAvatarUrl.png`
userAvatarUrl
:
`/personal/userAvatarUrl.png`
})
})
import
{
IMG_URL
}
from
'~/utils/constantData'
Component
({
Component
({
/**
/**
* 组件的属性列表
* 组件的属性列表
...
@@ -15,6 +16,7 @@ Component({
...
@@ -15,6 +16,7 @@ Component({
*/
*/
data
:
{
data
:
{
IMAGES
,
IMAGES
,
IMG_URL
,
dataList
:
[{
dataList
:
[{
staffRoleName
:
'技师'
,
staffRoleName
:
'技师'
,
staffName
:
'张三'
,
staffName
:
'张三'
,
...
@@ -84,7 +86,8 @@ Component({
...
@@ -84,7 +86,8 @@ Component({
]
]
}],
}],
commissionPopup
:
false
,
commissionPopup
:
false
,
handleCommissionObj
:
{}
handleCommissionObj
:
{},
bgUrl
:
`
${
IMG_URL
}
/personal/empty_tran.png`
,
},
},
/**
/**
...
@@ -95,7 +98,7 @@ Component({
...
@@ -95,7 +98,7 @@ Component({
let
{
target
}
=
e
.
currentTarget
.
dataset
let
{
target
}
=
e
.
currentTarget
.
dataset
this
.
setData
({
this
.
setData
({
commissionPopup
:
!
this
.
data
.
commissionPopup
,
commissionPopup
:
!
this
.
data
.
commissionPopup
,
handleCommissionObj
:
target
handleCommissionObj
:
target
||
{}
})
})
},
},
showMore
(
e
)
{
showMore
(
e
)
{
...
...
pages/tab/outputValue/components/employees/employess.wxml
View file @
84eb32b
<!--pages/tab/outputValue/components/employees/employess.wxml-->
<!--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
enable-back-to-top
refresher-enabled="{{true}}"
refresher-enabled="{{true}}"
...
@@ -18,7 +19,7 @@
...
@@ -18,7 +19,7 @@
<view class="name">{{item.staffName}}</view>
<view class="name">{{item.staffName}}</view>
<view class="role_name">「{{item.staffRoleName}}」</view>
<view class="role_name">「{{item.staffRoleName}}」</view>
</view>
</view>
<view class="output_text"><text style="font-size: 24rpx;">¥</text><text>{{
item.totalOutputValue
}}</text></view>
<view class="output_text"><text style="font-size: 24rpx;">¥</text><text>{{
filter.money_three_for_two_thousands(item.totalOutputValue || '0.00', false)
}}</text></view>
</view>
</view>
<view class="flex_spa-be">
<view class="flex_spa-be">
<view class="merchant_num">服务门店·{{item.outputValueType == 1 ? item.outputValueStats.length : item.constructionStats.length}}家</view>
<view class="merchant_num">服务门店·{{item.outputValueType == 1 ? item.outputValueStats.length : item.constructionStats.length}}家</view>
...
@@ -41,8 +42,8 @@
...
@@ -41,8 +42,8 @@
<view class="merchant_item flex_spa-arr" style="{{item.outputValueStats.length > 3 && !item.showMore && subIndex == 2 ? 'border:none;' : ''}}" wx:if="{{subIndex < 3 || item.showMore}}">
<view class="merchant_item flex_spa-arr" style="{{item.outputValueStats.length > 3 && !item.showMore && subIndex == 2 ? 'border:none;' : ''}}" wx:if="{{subIndex < 3 || item.showMore}}">
<view class="flex_2 name">{{subItem.shopMerchantName}}</view>
<view class="flex_2 name">{{subItem.shopMerchantName}}</view>
<view class="flex_1">
<view class="flex_1">
<view class="font_wei">{{'¥' +
subItem.totalOrderMoney
}}</view>
<view class="font_wei">{{'¥' +
filter.money_three_for_two_thousands(subItem.totalOrderMoney || '0.00', false)
}}</view>
<view>{{'¥' +
subItem.customerUnitPrice
}}</view>
<view>{{'¥' +
filter.money_three_for_two_thousands(subItem.customerUnitPrice || '0.00', false)
}}</view>
</view>
</view>
<view class="flex_1 padd_r16">
<view class="flex_1 padd_r16">
<view class="font_wei">{{subItem.orderCount}}单</view>
<view class="font_wei">{{subItem.orderCount}}单</view>
...
...
pages/tab/outputValue/components/merchant/merchant.js
View file @
84eb32b
...
@@ -6,7 +6,24 @@ Component({
...
@@ -6,7 +6,24 @@ Component({
* 组件的属性列表
* 组件的属性列表
*/
*/
properties
:
{
properties
:
{
searchForm
:
{
type
:
Object
,
value
:
()
=>
{
return
{
// 服务商商户号
partnerMerchantId
:
''
,
// 4S店商户号
merchantId
:
''
,
// 年月(yyyy-MM)
yearMonth
:
''
,
// 场景(1精品升级,3众筹,0会员权益)
sceneType
:
''
}
},
observer
:
function
(
n
)
{
n
&&
this
.
search
()
}
}
},
},
/**
/**
...
@@ -24,50 +41,51 @@ Component({
...
@@ -24,50 +41,51 @@ Component({
total
:
'164422'
total
:
'164422'
},
},
// 1精品升级(太阳膜),3众筹,0会员权益)
// 1精品升级(太阳膜),3众筹,0会员权益)
merchantList
:
[],
// 服务商-多4s店-全部
// 服务商-多4s店-全部
// m
erchantList: [{
allM
erchantList
:
[{
//
yearMonth: '2023-08',
yearMonth
:
'2023-08'
,
//
curMonthTotalData: {
curMonthTotalData
:
{
//
scene1Total: '5986',
scene1Total
:
'5986'
,
//
scene0Total: '76400',
scene0Total
:
'76400'
,
//
scene3Total: '11000',
scene3Total
:
'11000'
,
//
total: '19567'
total
:
'19567'
//
},
},
//
merchantDataList: [{
merchantDataList
:
[{
//
merchantName: '四川申蓉汇亚汽车贸易有限公司',
merchantName
:
'四川申蓉汇亚汽车贸易有限公司'
,
//
curMonthTotalData: {
curMonthTotalData
:
{
//
scene1Total: '5026',
scene1Total
:
'5026'
,
//
scene0Total: '11000',
scene0Total
:
'11000'
,
//
scene3Total: '2581',
scene3Total
:
'2581'
,
//
total: '18607'
total
:
'18607'
//
},
},
//
lastMonthTotalData: {
lastMonthTotalData
:
{
//
scene1Total: '51122',
scene1Total
:
'51122'
,
//
scene0Total: '2355',
scene0Total
:
'2355'
,
//
scene3Total: '65400',
scene3Total
:
'65400'
,
//
total: '0'
total
:
'0'
//
}
}
//
}, {
},
{
//
merchantName: '四川港宏新通汽车销售服务有限公司',
merchantName
:
'四川港宏新通汽车销售服务有限公司'
,
//
curMonthTotalData: {
curMonthTotalData
:
{
//
scene1Total: '960',
scene1Total
:
'960'
,
//
scene0Total: '0',
scene0Total
:
'0'
,
//
scene3Total: '0',
scene3Total
:
'0'
,
//
total: '960'
total
:
'960'
//
},
},
//
lastMonthTotalData: {
lastMonthTotalData
:
{
//
scene1Total: '123223',
scene1Total
:
'123223'
,
//
scene0Total: '0',
scene0Total
:
'0'
,
//
scene3Total: '0',
scene3Total
:
'0'
,
//
total: '0'
total
:
'0'
//
}
}
//
}]
}]
//
}],
}],
// 指定场景
// 指定场景
m
erchantList
:
[{
otherM
erchantList
:
[{
yearMonth
:
'2023-08'
,
yearMonth
:
'2023-08'
,
curMonthTotalData
:
{
curMonthTotalData
:
{
totalCustomer
:
'
100
'
,
totalCustomer
:
'
22
'
,
total
:
'133862000'
,
total
:
'133862000'
,
notUpgradeCount
:
'22'
,
notUpgradeCount
:
'22'
,
bizTotal
:
'960523'
,
bizTotal
:
'960523'
,
...
@@ -82,8 +100,8 @@ Component({
...
@@ -82,8 +100,8 @@ Component({
merchantId
:
111
,
merchantId
:
111
,
merchantName
:
'广西弘泽汽车销售服务有限公司'
,
merchantName
:
'广西弘泽汽车销售服务有限公司'
,
bizTotal
:
'39000'
,
bizTotal
:
'39000'
,
cur
Month
TotalData
:
{
cur
Day
TotalData
:
{
totalCustomer
:
''
,
totalCustomer
:
'
177
'
,
total
:
''
,
total
:
''
,
notUpgradeCount
:
'199'
,
notUpgradeCount
:
'199'
,
bizTotal
:
'18228'
,
bizTotal
:
'18228'
,
...
@@ -94,23 +112,48 @@ Component({
...
@@ -94,23 +112,48 @@ Component({
upgradeRate
:
'89'
,
upgradeRate
:
'89'
,
productCode
:
''
productCode
:
''
},
},
lastMonthTotalData
:
{
curMonthTotalData
:
[
{
totalCustomer
:
''
,
totalCustomer
:
'
2000
'
,
total
:
''
,
total
:
''
,
notUpgradeCount
:
'199'
,
notUpgradeCount
:
'199'
,
bizTotal
:
'258228'
,
bizTotal
:
'258228'
,
custUnitPrice
:
'559'
,
custUnitPrice
:
'559'
,
upgradeCount
:
'2000'
,
upgradeCount
:
'2000'
,
activityTotal
:
''
,
activityTotal
:
'
1
'
,
orderTotal
:
''
,
orderTotal
:
'
22
'
,
upgradeRate
:
'12'
,
upgradeRate
:
'12'
,
productCode
:
''
productCode
:
''
,
}
productName
:
'数字化美容'
},
{
totalCustomer
:
'2000'
,
total
:
''
,
notUpgradeCount
:
'199'
,
bizTotal
:
'258228'
,
custUnitPrice
:
'559'
,
upgradeCount
:
'2000'
,
activityTotal
:
'3'
,
orderTotal
:
'50'
,
upgradeRate
:
'12'
,
productCode
:
''
,
productName
:
'座椅通风'
},
{
totalCustomer
:
'2000'
,
total
:
''
,
notUpgradeCount
:
'199'
,
bizTotal
:
'258228'
,
custUnitPrice
:
'559'
,
upgradeCount
:
'2000'
,
activityTotal
:
'1'
,
orderTotal
:
'22'
,
upgradeRate
:
'12'
,
productCode
:
''
,
productName
:
'AR导航'
}]
},
{
},
{
merchantId
:
222
,
merchantId
:
222
,
merchantName
:
'益阳佳烨丰田汽车销售服务有限公司啦啦啦啦'
,
merchantName
:
'益阳佳烨丰田汽车销售服务有限公司啦啦啦啦'
,
bizTotal
:
'19000'
,
bizTotal
:
'19000'
,
cur
Month
TotalData
:
{
cur
Day
TotalData
:
{
totalCustomer
:
''
,
totalCustomer
:
''
,
total
:
''
,
total
:
''
,
notUpgradeCount
:
'199'
,
notUpgradeCount
:
'199'
,
...
@@ -122,18 +165,19 @@ Component({
...
@@ -122,18 +165,19 @@ Component({
upgradeRate
:
'89'
,
upgradeRate
:
'89'
,
productCode
:
''
productCode
:
''
},
},
lastMonthTotalData
:
{
curMonthTotalData
:
[
{
totalCustomer
:
''
,
totalCustomer
:
''
,
total
:
''
,
total
:
''
,
notUpgradeCount
:
'199'
,
notUpgradeCount
:
'199'
,
bizTotal
:
'258228'
,
bizTotal
:
'258228'
,
custUnitPrice
:
'559'
,
custUnitPrice
:
'559'
,
upgradeCount
:
'2000'
,
upgradeCount
:
'2000'
,
activityTotal
:
''
,
activityTotal
:
'
1
'
,
orderTotal
:
''
,
orderTotal
:
'
22
'
,
upgradeRate
:
'5'
,
upgradeRate
:
'5'
,
productCode
:
''
productCode
:
''
,
}
productName
:
'AR导航'
}]
}]
}]
}]
}]
},
},
...
@@ -147,6 +191,14 @@ Component({
...
@@ -147,6 +191,14 @@ Component({
* 组件的方法列表
* 组件的方法列表
*/
*/
methods
:
{
methods
:
{
search
()
{
console
.
log
(
this
.
data
.
searchForm
,
'searchForm---'
)
let
{
sceneType
}
=
this
.
data
.
searchForm
let
{
allMerchantList
,
otherMerchantList
}
=
this
.
data
this
.
setData
({
merchantList
:
!
sceneType
?
allMerchantList
:
otherMerchantList
})
},
getMerchant
(
isReset
=
false
)
{
getMerchant
(
isReset
=
false
)
{
let
{
userInfo
}
=
wx
.
$storage
.
get
()
let
{
userInfo
}
=
wx
.
$storage
.
get
()
let
params
=
{
let
params
=
{
...
...
pages/tab/outputValue/components/merchant/merchant.json
View file @
84eb32b
...
@@ -3,6 +3,6 @@
...
@@ -3,6 +3,6 @@
"usingComponents"
:
{
"usingComponents"
:
{
"service-total"
:
"../merchantCom/serviceTotal/serviceTotal"
,
"service-total"
:
"../merchantCom/serviceTotal/serviceTotal"
,
"merchant-all"
:
"../merchantCom/merchantAll/merchantAll"
,
"merchant-all"
:
"../merchantCom/merchantAll/merchantAll"
,
"me
mbranes"
:
"../merchantCom/Membranes/Membranes
"
"me
rchant-scene"
:
"../merchantCom/MerchantScene/MerchantScene
"
}
}
}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/outputValue/components/merchant/merchant.wxml
View file @
84eb32b
...
@@ -2,12 +2,12 @@
...
@@ -2,12 +2,12 @@
<view class="merchantCon">
<view class="merchantCon">
<scroll-view class="merchant" id="scroller" scroll-y="{{true}}" refresher-enabled="{{true}}" refresher-triggered="{{triggered}}" bindrefresherrefresh="handleSearch" lower-threshold='50' scroll-top="{{busiScrollTop}}">
<scroll-view class="merchant" id="scroller" scroll-y="{{true}}" refresher-enabled="{{true}}" refresher-triggered="{{triggered}}" bindrefresherrefresh="handleSearch" lower-threshold='50' scroll-top="{{busiScrollTop}}">
<!-- 全部 - 服务商总产值 -->
<!-- 全部 - 服务商总产值 -->
<
!-- <service-total serviceName="{{serviceName}}" totalObj="{{totalObj}}"></service-total> --
>
<
service-total wx:if="{{!searchForm.sceneType}}" serviceName="{{serviceName}}" totalObj="{{totalObj}}"></service-total
>
<view wx:for="{{merchantList}}" wx:key="index" class="merchant-content">
<view wx:for="{{merchantList}}" wx:key="index" class="merchant-content">
<!-- 全部 -->
<!-- 全部 -->
<
!-- <merchant-all curInfo="{{item}}"></merchant-all> --
>
<
merchant-all wx:if="{{!searchForm.sceneType}}" curInfo="{{item}}"></merchant-all
>
<!--
太阳膜 - scene1
-->
<!--
指定场景:太阳膜,售后众筹,会员权益/升级
-->
<me
mbranes curInfo="{{item}}"></membranes
>
<me
rchant-scene wx:else searchForm="{{searchForm}}" curInfo="{{item}}"></merchant-scene
>
</view>
</view>
<view wx:if="{{!merchantList.length}}" class="end-txt">
<view wx:if="{{!merchantList.length}}" class="end-txt">
<nothing-tips tips="暂无数据~" bgColor="{{'#FFFFFF'}}" bg="{{bgUrl}}" />
<nothing-tips tips="暂无数据~" bgColor="{{'#FFFFFF'}}" bg="{{bgUrl}}" />
...
...
pages/tab/outputValue/components/merchantCom/Me
mbranes/Membranes
.js
→
pages/tab/outputValue/components/merchantCom/Me
rchantScene/MerchantScene
.js
View file @
84eb32b
// pages/tab/outputValue/components/merchantCom/Me
mbranes/Membranes
.js
// pages/tab/outputValue/components/merchantCom/Me
rchantScene/MerchantScene
.js
import
constant
from
'../constant'
import
constant
from
'../constant'
Component
({
Component
({
/**
/**
...
@@ -9,6 +9,24 @@ Component({
...
@@ -9,6 +9,24 @@ Component({
type
:
Object
,
type
:
Object
,
value
:
()
=>
{
},
value
:
()
=>
{
},
observer
(
n
)
{
}
observer
(
n
)
{
}
},
searchForm
:
{
type
:
Object
,
value
:
()
=>
{
return
{
// 服务商商户号
partnerMerchantId
:
''
,
// 4S店商户号
merchantId
:
''
,
// 年月(yyyy-MM)
yearMonth
:
''
,
// 场景(1精品升级,3众筹,0会员权益)
sceneType
:
'1'
}
},
observer
:
function
(
n
)
{
n
&
this
.
dealData
()
}
}
}
},
},
...
@@ -16,8 +34,10 @@ Component({
...
@@ -16,8 +34,10 @@ Component({
* 组件的初始数据
* 组件的初始数据
*/
*/
data
:
{
data
:
{
sceneToInfo
:
constant
.
sceneToInfo
,
sceneTopList
:
constant
.
membranesTopList
,
sceneTopList
:
constant
.
membranesTopList
,
sceneFormList
:
constant
.
membranesFormList
,
sceneFormList
:
constant
.
membranesFormList
,
sceneObj
:
{},
compareList
:
[],
compareList
:
[],
switchChecked
:
false
switchChecked
:
false
},
},
...
@@ -26,11 +46,14 @@ Component({
...
@@ -26,11 +46,14 @@ Component({
* 组件的方法列表
* 组件的方法列表
*/
*/
methods
:
{
methods
:
{
// switchChange() {
dealData
()
{
// this.setData({
let
{
searchForm
,
sceneToInfo
}
=
this
.
data
// switchChecked: !this.data.switchChecked
let
sceneObj
=
sceneToInfo
.
find
(
item
=>
item
.
type
==
(
searchForm
.
sceneType
||
1
))
// })
this
.
setData
({
// },
sceneObj
:
sceneObj
,
sceneTopList
:
constant
[(
sceneObj
.
name
||
'membranes'
)
+
'TopList'
],
sceneFormList
:
constant
[(
sceneObj
.
name
||
'membranes'
)
+
'FormList'
]
})
}
}
}
})
})
pages/tab/outputValue/components/merchantCom/Me
mbranes/Membranes
.json
→
pages/tab/outputValue/components/merchantCom/Me
rchantScene/MerchantScene
.json
View file @
84eb32b
File moved
pages/tab/outputValue/components/merchantCom/Me
mbranes/Membranes
.scss
→
pages/tab/outputValue/components/merchantCom/Me
rchantScene/MerchantScene
.scss
View file @
84eb32b
/* pages/tab/outputValue/components/merchantCom/Me
mbranes/Membranes
.wxss */
/* pages/tab/outputValue/components/merchantCom/Me
rchantScene/MerchantScene
.wxss */
.me
mbranes
{
.me
rchant-scene
{
background-color
:
#ffffff
;
background-color
:
#ffffff
;
margin-top
:
24rpx
;
margin-top
:
24rpx
;
box-shadow
:
0
2rpx
20rpx
0
#b4bacc
52
;
box-shadow
:
0
2rpx
20rpx
0
#b4bacc
52
;
...
@@ -48,6 +48,10 @@
...
@@ -48,6 +48,10 @@
font-size
:
40rpx
;
font-size
:
40rpx
;
}
}
.m-b-12
{
margin-bottom
:
12rpx
;
}
.top
{
.top
{
position
:
relative
;
position
:
relative
;
padding
:
32rpx
24rpx
;
padding
:
32rpx
24rpx
;
...
@@ -84,6 +88,14 @@
...
@@ -84,6 +88,14 @@
padding
:
0
36rpx
;
padding
:
0
36rpx
;
}
}
.business-total
{
position
:
absolute
;
top
:
0
;
right
:
0
;
top
:
66rpx
;
right
:
24rpx
;
}
.top-num-box
{
.top-num-box
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
...
@@ -162,7 +174,7 @@
...
@@ -162,7 +174,7 @@
}
}
.list-content
{
.list-content
{
padding
:
10rpx
24
rpx
36rpx
;
padding
:
10rpx
10
rpx
36rpx
;
.com-box
{
.com-box
{
display
:
flex
;
display
:
flex
;
...
@@ -187,19 +199,38 @@
...
@@ -187,19 +199,38 @@
}
}
.cur-block
{
.cur-block
{
width
:
calc
(
100%
/
5
)
;
width
:
20%
;
text-align
:
center
;
text-align
:
center
;
}
.label
{
.label
{
font-size
:
28rpx
;
font-size
:
28rpx
;
color
:
#323436
;
color
:
#323436
;
margin-bottom
:
16rpx
;
margin-bottom
:
16rpx
;
}
}
.cur-block.member
{
width
:
25%
;
}
}
// .compare-block {
// .compare-block {
// width: 33.33%;
// width: 33.33%;
// }
// }
}
}
.list-content.crowdfund
{
display
:
flex
;
flex-wrap
:
wrap
;
.crowdfund-item
{
width
:
50%
;
margin-bottom
:
48rpx
;
}
.crowdfund-item
:nth-last-child
(
1
),
.crowdfund-item
:nth-last-child
(
2
)
{
margin-bottom
:
0
;
}
}
}
}
}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/outputValue/components/merchantCom/Me
mbranes/Membranes
.wxml
→
pages/tab/outputValue/components/merchantCom/Me
rchantScene/MerchantScene
.wxml
View file @
84eb32b
<!--pages/tab/outputValue/components/merchantCom/Me
mbranes/Membranes
.wxml-->
<!--pages/tab/outputValue/components/merchantCom/Me
rchantScene/MerchantScene
.wxml-->
<wxs src="/pages/tab/outputValue/index.wxs" module="filter" />
<wxs src="/pages/tab/outputValue/index.wxs" module="filter" />
<view class="me
mbranes
">
<view class="me
rchant-scene
">
<view class="top">
<view class="top">
<view class="scene-label">太阳膜</view>
<view class="scene-label">{{sceneObj.label}}</view>
<view wx:if="{{sceneObj.name == 'membranes'}}" class="business-total label">业务产值
<text class="num-red">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.bizTotal || 0)}}</text>
</view>
<view>
<view>
<text class="num-month">8</text><text class="month">月</text><text class="year">2023年</text>
<text class="num-month">8</text><text class="month">月</text><text class="year">2023年</text>
</view>
</view>
...
@@ -12,13 +15,16 @@
...
@@ -12,13 +15,16 @@
<view class="total-txt">本月业绩产生至{{curInfo.merchantDataList.length}}家门店</view>
<view class="total-txt">本月业绩产生至{{curInfo.merchantDataList.length}}家门店</view>
</view>
</view>
<view>
<view>
<view wx:if="{{sceneObj.name != 'membranes'}}" class="label m-b-12">业务产值
<text class="num-red">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.bizTotal || 0)}}</text>
</view>
<view wx:for="{{sceneTopList}}" wx:key="index" class="top-right-box">
<view wx:for="{{sceneTopList}}" wx:key="index" class="top-right-box">
<view class="label">{{item.label}}</view>
<view class="label">{{item.label}}</view>
<view class="num-grey">
<view class="num-grey">
<text wx:if="{{item.prefix}}">{{item.prefix}}</text>
<text wx:if="{{item.prefix}}">{{item.prefix}}</text>
{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData[item.name] || 0)}}
{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData[item.name] || 0)}}
<text wx:if="{{item.suffix}}">{{item.suffix}}</text>
</view>
</view>
<text wx:if="{{item.suffix}}">{{item.suffix}}</text>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -33,19 +39,26 @@
...
@@ -33,19 +39,26 @@
</view>
</view>
<view class="num-blue">¥{{filter.money_three_for_two_thousands(item.bizTotal || 0)}}</view>
<view class="num-blue">¥{{filter.money_three_for_two_thousands(item.bizTotal || 0)}}</view>
</view>
</view>
<!-- 内容 -->
<!-- 内容 - 售后众筹 -->
<view class="list-content">
<view wx:if="{{sceneObj.name == 'crowdfund'}}" class="list-content crowdfund">
<view wx:for="{{item.curMonthTotalData}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx" class="crowdfund-item">
<view class="label">{{subItem.productName}}</view>
<view class="num">{{subItem.activityTotal || 0}}场/{{subItem.orderTotal || 0}}单/¥{{filter.money_three_for_two_thousands(subItem.bizTotal || 0)}}</view>
</view>
</view>
<!-- 内容 - 太阳膜、会员权益/升级 -->
<view wx:else class="list-content">
<view class="com-box">
<view class="com-box">
<view class="line"></view>
<view class="line"></view>
<view class="com-month">当日</view>
<view class="com-month">当日</view>
<view class="line"></view>
<view class="line"></view>
</view>
</view>
<view class="flex
-between
">
<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
{{sceneObj.name}}
">
<view class="label">{{subItem.label}}</view>
<view 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.cur
Month
TotalData[subItem.name] || 0)}}
{{filter.money_three_for_two_thousands(item.cur
Day
TotalData[subItem.name] || 0)}}
<text wx:if="{{subItem.suffix}}">{{subItem.suffix}}</text>
<text wx:if="{{subItem.suffix}}">{{subItem.suffix}}</text>
</view>
</view>
</view>
</view>
...
@@ -56,11 +69,11 @@
...
@@ -56,11 +69,11 @@
<view class="com-month">本月</view>
<view class="com-month">本月</view>
<view class="line"></view>
<view class="line"></view>
</view>
</view>
<view class="flex
-between
">
<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
{{sceneObj.name}}
">
<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[subItem.name] || 0)}}
{{filter.money_three_for_two_thousands(item.curMonthTotalData[
0][
subItem.name] || 0)}}
<text wx:if="{{subItem.suffix}}">{{subItem.suffix}}</text>
<text wx:if="{{subItem.suffix}}">{{subItem.suffix}}</text>
</view>
</view>
</view>
</view>
...
...
pages/tab/outputValue/components/merchantCom/constant.js
View file @
84eb32b
...
@@ -9,9 +9,25 @@ const sceneFormList = [{
...
@@ -9,9 +9,25 @@ const sceneFormList = [{
name
:
'scene0Total'
name
:
'scene0Total'
}]
}]
const
sceneToInfo
=
[{
type
:
1
,
label
:
'太阳膜'
,
name
:
'membranes'
},
{
type
:
0
,
label
:
'会员权益/升级'
,
name
:
'member'
},
{
type
:
3
,
label
:
'售后众筹'
,
name
:
'crowdfund'
}]
// 太阳膜
const
membranesTopList
=
[{
const
membranesTopList
=
[{
label
:
'订单量'
,
label
:
'订单量'
,
name
:
'orderTotal'
name
:
'orderTotal'
,
suffix
:
'单'
},
{
},
{
label
:
'转化率'
,
label
:
'转化率'
,
name
:
'upgradeRate'
,
name
:
'upgradeRate'
,
...
@@ -42,8 +58,54 @@ const membranesFormList = [{
...
@@ -42,8 +58,54 @@ const membranesFormList = [{
suffix
:
'%'
suffix
:
'%'
}]
}]
// 会员权益/升级
const
memberTopList
=
[{
label
:
'权益客单价'
,
name
:
'custUnitPrice'
,
prefix
:
'¥'
},
{
label
:
'成交客户量'
,
name
:
'totalCustomer'
,
suffix
:
'单'
}]
const
memberFormList
=
[{
label
:
'营业额'
,
name
:
'bizTotal'
,
prefix
:
'¥'
},
{
label
:
'成交客户量'
,
name
:
'totalCustomer'
},
{
label
:
'权益客单价'
,
name
:
'custUnitPrice'
,
prefix
:
'¥'
},
{
label
:
'转化率'
,
name
:
'upgradeRate'
,
suffix
:
'%'
}]
// 售后众筹
const
crowdfundTopList
=
[{
label
:
'活动场次'
,
name
:
'activityTotal'
,
suffix
:
'场'
},
{
label
:
'订单量'
,
name
:
'orderTotal'
,
suffix
:
'单'
}]
const
crowdfundFormList
=
[]
export
default
{
export
default
{
sceneFormList
,
sceneFormList
,
sceneToInfo
,
membranesTopList
,
membranesTopList
,
membranesFormList
membranesFormList
,
memberTopList
,
memberFormList
,
crowdfundTopList
,
crowdfundFormList
}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/outputValue/index.wxs
View file @
84eb32b
...
@@ -46,15 +46,10 @@ var threeNumForTwo = {
...
@@ -46,15 +46,10 @@ var threeNumForTwo = {
}
}
}
}
var getMonth = function (n) {
if (n) return n.split('-').length && Number(n.split('-')[1])
}
/*
/*
* 导出
* 导出
*/
*/
module.exports = {
module.exports = {
setPrice: setPrice,
setPrice: setPrice,
money_three_for_two_thousands: threeNumForTwo.money_three_for_two_thousands, //暴露接口调用
money_three_for_two_thousands: threeNumForTwo.money_three_for_two_thousands, //暴露接口调用
getMonth: getMonth
}
}
pages/tab/outputValue/outputValue.js
View file @
84eb32b
...
@@ -65,6 +65,7 @@ Page({
...
@@ -65,6 +65,7 @@ Page({
},
},
// 筛选回调
// 筛选回调
searchEvent
(
isNoBack
=
false
)
{
searchEvent
(
isNoBack
=
false
)
{
console
.
log
(
this
.
data
.
screenFormData
,
'screenFormData'
)
if
(
!
isNoBack
)
this
.
back
()
if
(
!
isNoBack
)
this
.
back
()
},
},
setUserInfo
()
{
setUserInfo
()
{
...
...
pages/tab/outputValue/outputValue.wxml
View file @
84eb32b
...
@@ -16,12 +16,9 @@
...
@@ -16,12 +16,9 @@
<view class="layout" style="padding-top:calc({{tabBarStyle}}px + 88rpx);">
<view class="layout" style="padding-top:calc({{tabBarStyle}}px + 88rpx);">
<!-- 我的门店 -->
<!-- 我的门店 -->
<view class="comCom" hidden="{{tabIndx != 0}}">
<view class="comCom" hidden="{{tabIndx != 0}}">
<merchant id="merchant" />
<merchant id="merchant"
searchForm="{{screenFormData}}"
/>
</view>
</view>
<!-- 我的员工 -->
<!-- 我的员工 -->
<!-- <view class="comCom" hidden="{{tabIndx != 1}}">
<staff id="staff" />
</view> -->
<view class="comCom" hidden="{{tabIndx != 1}}">
<view class="comCom" hidden="{{tabIndx != 1}}">
<employess id="employess"/>
<employess id="employess"/>
</view>
</view>
...
...
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