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 0afbbe08
authored
Aug 24, 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
0398985b
4ad7d60a
Hide whitespace changes
Inline
Side-by-side
Showing
39 changed files
with
364 additions
and
300 deletions
package-lock.json
packageMine/components/selectServiceConfirm/selectServiceConfirm.wxml
packageMine/components/staffTypePopup/staffTypePopup.js
packageMine/components/staffTypePopup/staffTypePopup.wxml
packageMine/pages/log/log.js
packageMine/pages/log/log.json
packageMine/pages/log/log.scss
packageMine/pages/log/log.wxml
packageMine/pages/staffManage/createStaff/constant/data.js
packageMine/pages/staffManage/createStaff/createStaff.js
packageMine/pages/staffManage/createStaff/createStaff.wxml
packageMine/pages/staffManage/staffList/staffList.js
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.scss
packagesList/packageOutput/pages/newSummary/newSummary.scss
packagesList/packageOutput/pages/newSummary/newSummary.wxml
pages/tab/mine/mine.scss
pages/tab/mine/mine.wxml
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/ScreenConfirmBox/ScreenConfirmBox.js
pages/tab/outputValue/components/SwitchAccountPopup/SwitchAccountPopup.js
pages/tab/outputValue/components/SwitchAccountPopup/SwitchAccountPopup.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/merchant/merchant.scss
pages/tab/outputValue/components/merchant/merchant.wxml
pages/tab/outputValue/components/merchantCom/MerchantScene/MerchantScene.js
pages/tab/outputValue/components/merchantCom/MerchantScene/MerchantScene.scss
pages/tab/outputValue/components/merchantCom/MerchantScene/MerchantScene.wxml
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.js
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/components/selectMerchantPopup/selectMerchantPopup.wxml
pages/tab/outputValue/outputValue.js
pages/tab/outputValue/outputValue.wxml
package-lock.json
View file @
0afbbe0
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
},
},
"glsx-applet-component"
:
{
"glsx-applet-component"
:
{
"version"
:
"1.1.18"
,
"version"
:
"1.1.18"
,
"resolved"
:
"https://registry.npm
mirror.com
/glsx-applet-component/-/glsx-applet-component-1.1.18.tgz"
,
"resolved"
:
"https://registry.npm
js.org
/glsx-applet-component/-/glsx-applet-component-1.1.18.tgz"
,
"integrity"
:
"sha512-oNJMLkKh/BOFyiGUDlm5r+5dvqBlZx7T9U+UQ2BkqL8R9i713sCHs+1AOsFMA1GOjsgRM2ShgzoXaQef6RQ/ew=="
"integrity"
:
"sha512-oNJMLkKh/BOFyiGUDlm5r+5dvqBlZx7T9U+UQ2BkqL8R9i713sCHs+1AOsFMA1GOjsgRM2ShgzoXaQef6RQ/ew=="
},
},
"glsx-common-sdk"
:
{
"glsx-common-sdk"
:
{
...
...
packageMine/components/selectServiceConfirm/selectServiceConfirm.wxml
View file @
0afbbe0
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
refresher-threshold="104"
refresher-threshold="104"
scroll-top="{{scrollTop}}"
scroll-top="{{scrollTop}}"
class="list"
class="list"
style="height:
100%;
"
style="height:
calc(100vh - 108rpx - {{tabBarStyle}}px)
"
data-type="message"
data-type="message"
refresher-triggered="{{triggered}}">
refresher-triggered="{{triggered}}">
<block wx:for="{{serviceList}}" wx:key="index">
<block wx:for="{{serviceList}}" wx:key="index">
...
...
packageMine/components/staffTypePopup/staffTypePopup.js
View file @
0afbbe0
...
@@ -4,13 +4,11 @@ Component({
...
@@ -4,13 +4,11 @@ Component({
* 组件的属性列表
* 组件的属性列表
*/
*/
properties
:
{
properties
:
{
selectInfo
:
{
s
taffTypeS
electInfo
:
{
type
:
Object
,
type
:
Object
,
observer
:
function
(
n
)
{
observer
:
function
(
n
)
{
console
.
log
(
n
)
console
.
log
(
n
)
this
.
setData
({
this
.
setData
({
copyStaffTypeSelectInfo
:
n
})
copySelectInfo
:
n
})
}
}
},
},
popShow
:
{
popShow
:
{
...
@@ -49,7 +47,7 @@ Component({
...
@@ -49,7 +47,7 @@ Component({
staffBusinessTypeStr
:
'技师'
staffBusinessTypeStr
:
'技师'
}
}
],
],
copySelectInfo
:
{}
copyS
taffTypeS
electInfo
:
{}
},
},
/**
/**
...
@@ -62,12 +60,12 @@ Component({
...
@@ -62,12 +60,12 @@ Component({
select
(
e
)
{
select
(
e
)
{
let
{
target
}
=
e
.
currentTarget
.
dataset
let
{
target
}
=
e
.
currentTarget
.
dataset
this
.
setData
({
this
.
setData
({
copySelectInfo
:
target
copyS
taffTypeS
electInfo
:
target
})
})
},
},
confirm
()
{
confirm
()
{
let
{
copySelectInfo
}
=
this
.
data
let
{
copyS
taffTypeS
electInfo
}
=
this
.
data
this
.
triggerEvent
(
'confirm'
,
copySelectInfo
)
this
.
triggerEvent
(
'confirm'
,
copyS
taffTypeS
electInfo
)
this
.
hidePopup
()
this
.
hidePopup
()
}
}
}
}
...
...
packageMine/components/staffTypePopup/staffTypePopup.wxml
View file @
0afbbe0
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
height="500rpx">
height="500rpx">
<block wx:for="{{staffTypeList}}" wx:key="index">
<block wx:for="{{staffTypeList}}" wx:key="index">
<view
<view
class="itemCon text-hide {{item.staffBusinessType == copySelectInfo.staffBusinessType?'active':''}}"
class="itemCon text-hide {{item.staffBusinessType == copyS
taffTypeS
electInfo.staffBusinessType?'active':''}}"
data-target="{{item}}"
data-target="{{item}}"
bindtap="select">
bindtap="select">
{{item.staffBusinessTypeStr}}
{{item.staffBusinessTypeStr}}
...
...
packageMine/pages/log/log.js
View file @
0afbbe0
// packageStoreAssistant/packageActivity/pages/log/log.js
// packageStoreAssistant/packageActivity/pages/log/log.js
Page
({
Page
({
/**
/**
* 页面的初始数据
* 页面的初始数据
*/
*/
data
:
{
data
:
{
},
},
/**
/**
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
(
options
)
{
onLoad
(
options
)
{
this
.
getVersionInfo
()
this
.
getVersionInfo
()
},
},
async
getVersionInfo
()
{
async
getVersionInfo
()
{
const
logData
=
await
getApp
().
getVersionInfo
()
const
logData
=
await
getApp
().
getVersionInfo
()
this
.
setData
({
this
.
setData
({
logData
logData
})
})
wx
.
$versionConfig
.
set
(
logData
.
version
)
wx
.
$versionConfig
.
set
(
logData
.
version
)
},
},
/**
/**
* 生命周期函数--监听页面初次渲染完成
* 生命周期函数--监听页面初次渲染完成
*/
*/
onReady
()
{
onReady
()
{
},
},
/**
/**
* 生命周期函数--监听页面显示
* 生命周期函数--监听页面显示
*/
*/
onShow
()
{
onShow
()
{
},
},
/**
/**
* 生命周期函数--监听页面隐藏
* 生命周期函数--监听页面隐藏
*/
*/
onHide
()
{
onHide
()
{
},
},
/**
/**
* 生命周期函数--监听页面卸载
* 生命周期函数--监听页面卸载
*/
*/
onUnload
()
{
onUnload
()
{
},
},
/**
/**
* 页面相关事件处理函数--监听用户下拉动作
* 页面相关事件处理函数--监听用户下拉动作
*/
*/
onPullDownRefresh
()
{
onPullDownRefresh
()
{
},
},
/**
/**
* 页面上拉触底事件的处理函数
* 页面上拉触底事件的处理函数
*/
*/
onReachBottom
()
{
onReachBottom
()
{
}
}
})
})
\ No newline at end of file
\ No newline at end of file
packageMine/pages/log/log.json
View file @
0afbbe0
{
{
"usingComponents"
:
{},
"usingComponents"
:
{},
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
}
}
\ No newline at end of file
\ No newline at end of file
packageMine/pages/log/log.scss
View file @
0afbbe0
/* packageStoreAssistant/packageActivity/pages/log/log.wxss */
/* packageStoreAssistant/packageActivity/pages/log/log.wxss */
.layout
{
.layout
{
.bg
{
.bg
{
position
:
relative
;
position
:
relative
;
z-index
:
-1
;
z-index
:
-1
;
width
:
100%
;
width
:
100%
;
height
:
400rpx
;
height
:
400rpx
;
}
}
.log-box
{
.log-box
{
height
:
calc
(
100vh
-
400rpx
);
height
:
calc
(
100vh
-
400rpx
);
background
:
#FFFFFF
;
background
:
#FFFFFF
;
overflow-y
:
scroll
;
overflow-y
:
scroll
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
40rpx
32rpx
calc
(
40rpx
+
var
(
--
constantSafeAreaInsetBottom
));
padding
:
40rpx
32rpx
calc
(
40rpx
+
var
(
--
constantSafeAreaInsetBottom
));
padding
:
40rpx
32rpx
calc
(
40rpx
+
var
(
--
envSafeAreaInsetBottom
));
padding
:
40rpx
32rpx
calc
(
40rpx
+
var
(
--
envSafeAreaInsetBottom
));
.title
{
.title
{
font-weight
:
500
;
font-weight
:
500
;
font-size
:
48rpx
;
font-size
:
48rpx
;
color
:
#282829
;
color
:
#282829
;
margin-bottom
:
48rpx
;
margin-bottom
:
48rpx
;
}
}
.sub-title
{
.sub-title
{
font-weight
:
500
;
font-weight
:
500
;
font-size
:
40rpx
;
font-size
:
40rpx
;
color
:
#333333
;
color
:
#333333
;
margin-bottom
:
4rpx
;
margin-bottom
:
4rpx
;
}
}
.date
{
.date
{
font-size
:
26rpx
;
font-size
:
26rpx
;
color
:
#999999
;
color
:
#999999
;
margin-bottom
:
24rpx
;
margin-bottom
:
24rpx
;
}
}
.log-item
{
.log-item
{
margin-bottom
:
40rpx
;
margin-bottom
:
40rpx
;
.log-title
{
.log-title
{
width
:
fit-content
;
width
:
fit-content
;
height
:
48rpx
;
height
:
48rpx
;
background-image
:
linear-gradient
(
-75deg
,
#E8E6FF
0%
,
#EDF1FF
49%
,
#E0F3FF
100%
);
background-image
:
linear-gradient
(
-75deg
,
#E8E6FF
0%
,
#EDF1FF
49%
,
#E0F3FF
100%
);
border-radius
:
8rpx
;
border-radius
:
8rpx
;
padding
:
0
16rpx
;
padding
:
0
16rpx
;
.text
{
.text
{
color
:
transparent
!
important
;
color
:
transparent
!
important
;
background
:
linear-gradient
(
116deg
,
#27C0C2
0%
,
#4837E6
100%
)
!
important
;
background
:
linear-gradient
(
116deg
,
#27C0C2
0%
,
#4837E6
100%
)
!
important
;
-webkit-background-clip
:
text
!
important
;
-webkit-background-clip
:
text
!
important
;
}
}
}
}
.log-content
{
.log-content
{
margin-top
:
16rpx
;
margin-top
:
16rpx
;
font-size
:
28rpx
;
font-size
:
28rpx
;
color
:
#1B233D
;
color
:
#1B233D
;
line-height
:
44rpx
;
line-height
:
44rpx
;
.img
{
.img
{
width
:
100%
;
width
:
100%
;
border-radius
:
12rpx
;
border-radius
:
12rpx
;
}
}
}
}
}
}
}
}
}
}
\ No newline at end of file
\ No newline at end of file
packageMine/pages/log/log.wxml
View file @
0afbbe0
<view class="layout">
<view class="layout">
<navigation-bar showBack navStyle="background-color: transparent;">
<navigation-bar showBack navStyle="background-color: transparent;">
生意助手更新记录
生意助手更新记录
</navigation-bar>
</navigation-bar>
<view class="bg">
<view class="bg">
<glsx-image webp src="personal/log-bg.png"></glsx-image>
<glsx-image webp src="personal/log-bg.png"></glsx-image>
</view>
</view>
<view class="log-box">
<view class="log-box">
<view class="title">{{logData.title}}</view>
<view class="title">{{logData.title}}</view>
<view class="sub-title">
<view class="sub-title">
{{logData.subtitle}}
{{logData.subtitle}}
</view>
</view>
<view class="date">{{logData.date}}</view>
<view class="date">{{logData.date}}</view>
<block wx:for="{{logData.logList}}" wx:key="index">
<block wx:for="{{logData.logList}}" wx:key="index">
<view class="log-item">
<view class="log-item">
<view class="log-title text-center">
<view class="log-title text-center">
<view class="text">{{item.title}}</view>
<view class="text">{{item.title}}</view>
</view>
</view>
<block wx:for="{{item.data}}" wx:key="ind" wx:for-item="i" wx:for-index="ind">
<block wx:for="{{item.data}}" wx:key="ind" wx:for-item="i" wx:for-index="ind">
<view class="log-content">
<view class="log-content">
<block wx:if="{{i.type == 'text'}}">
<block wx:if="{{i.type == 'text'}}">
{{i.content}}
{{i.content}}
</block>
</block>
<block wx:else>
<block wx:else>
<view class="img">
<view class="img">
<image webp src="{{i.content}}" mode="widthFix" />
<image webp src="{{i.content}}" mode="widthFix" />
</view>
</view>
</block>
</block>
</view>
</view>
</block>
</block>
</view>
</view>
</block>
</block>
</view>
</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
packageMine/pages/staffManage/createStaff/constant/data.js
View file @
0afbbe0
const
phoneRex
=
/^
[
1
]([
3-9
])[
0-9
]{9}
$/
const
phoneRex
=
/^
[
1
]([
3-9
])[
0-9
]{9}
$/
const
formRule
=
{
const
formRule
=
{
selectInfo
:
[{
required
:
true
,
message
:
'所属服务中心不能为空'
}],
selectInfo
:
[{
required
:
true
,
message
:
'所属服务中心不能为空'
}],
staff
BusinessType
:
[{
required
:
true
,
message
:
'员工类型不能为空'
}],
staff
TypeSelectInfo
:
[{
required
:
true
,
message
:
'员工类型不能为空'
}],
staffName
:
[{
required
:
true
,
message
:
'员工姓名不能为空'
}],
staffName
:
[{
required
:
true
,
message
:
'员工姓名不能为空'
}],
staffPhone
:
[
staffPhone
:
[
{
required
:
true
,
message
:
'手机号码不能为空'
},
{
required
:
true
,
message
:
'手机号码不能为空'
},
...
@@ -22,7 +22,7 @@ const formItems = [{
...
@@ -22,7 +22,7 @@ const formItems = [{
pageType
:
1
pageType
:
1
},
{
},
{
label
:
'员工类型'
,
label
:
'员工类型'
,
props
:
'staff
BusinessType
'
,
props
:
'staff
TypeSelectInfo
'
,
valueFn
:
'staffBusinessTypeStr'
,
valueFn
:
'staffBusinessTypeStr'
,
type
:
'select'
,
type
:
'select'
,
placeholder
:
'请选择员工类型'
,
placeholder
:
'请选择员工类型'
,
...
...
packageMine/pages/staffManage/createStaff/createStaff.js
View file @
0afbbe0
...
@@ -17,7 +17,13 @@ Page({
...
@@ -17,7 +17,13 @@ Page({
formData
:
{
formData
:
{
selectedConnectionIds
:
[],
selectedConnectionIds
:
[],
connectionValue
:
'全部'
,
connectionValue
:
'全部'
,
visualType
:
0
// 0:全部 1:选中部分可见客户
visualType
:
0
,
// 0:全部 1:选中部分可见客户
staffBusinessType
:
'0'
,
staffBusinessTypeStr
:
'驻店'
,
staffTypeSelectInfo
:
{
staffBusinessType
:
'0'
,
staffBusinessTypeStr
:
'驻店'
,
}
},
},
showServiceConfirm
:
false
,
showServiceConfirm
:
false
,
isConfirm
:
false
,
isConfirm
:
false
,
...
@@ -52,12 +58,13 @@ Page({
...
@@ -52,12 +58,13 @@ Page({
let
optionsInfo
=
options
?.
info
||
{}
let
optionsInfo
=
options
?.
info
||
{}
let
data
=
options
?.
info
?
{
let
data
=
options
?.
info
?
{
...
options
?.
info
,
...
options
?.
info
,
selectInfo
:
{
yqMerchantId
:
optionsInfo
.
merchantNo
,
yqMerchantName
:
optionsInfo
.
merchantName
,
staffBusinessType
:
optionsInfo
?.
staffBusinessType
},
selectInfo
:
{
yqMerchantId
:
optionsInfo
.
merchantNo
,
yqMerchantName
:
optionsInfo
.
merchantName
},
serviceValue
:
optionsInfo
.
merchantName
,
serviceValue
:
optionsInfo
.
merchantName
,
visualType
:
optionsInfo
.
visualType
||
0
,
visualType
:
optionsInfo
.
visualType
||
0
,
connectionValue
:
optionsInfo
.
visualType
==
1
?
`已选
${
optionsInfo
.
visibleMerchantNo
?.
split
(
','
)?.
length
}
位客户
`: '全部',
connectionValue
:
optionsInfo
.
visualType
==
1
?
`已选
${
optionsInfo
.
visibleMerchantNo
?.
split
(
','
)?.
length
}
位客户
`: '全部',
selectedConnectionIds: optionsInfo.visualType == 1 ? optionsInfo.visibleMerchantNo?.split(',').map((v) => {return v && Number(v)}) : [],
selectedConnectionIds: optionsInfo.visualType == 1 ? optionsInfo.visibleMerchantNo?.split(',').map((v) => {return v && Number(v)}) : [],
staffBusinessTypeStr: optionsInfo.staffBusinessType == 0 ? '驻店' : optionsInfo.staffBusinessType == 1 ? '技师' : ''
staffBusinessTypeStr: optionsInfo.staffBusinessType == 0 ? '驻店' : optionsInfo.staffBusinessType == 1 ? '技师' : '',
staffTypeSelectInfo: optionsInfo?.staffBusinessType ? {staffBusinessType: optionsInfo?.staffBusinessType} : undefined
} : {}
} : {}
this.setData({
this.setData({
addOrEdit: options?.info ? 'edit' : 'add',
addOrEdit: options?.info ? 'edit' : 'add',
...
@@ -153,10 +160,8 @@ Page({
...
@@ -153,10 +160,8 @@ Page({
let obj = {
let obj = {
...formData,
...formData,
...e.detail,
...e.detail,
selectInfo: {
selectInfo: formData.selectInfo,
...formData.selectInfo,
staffTypeSelectInfo: e.detail
...e.detail
}
}
}
this.setData({
this.setData({
formData: obj
formData: obj
...
...
packageMine/pages/staffManage/createStaff/createStaff.wxml
View file @
0afbbe0
...
@@ -30,4 +30,4 @@
...
@@ -30,4 +30,4 @@
</view>
</view>
</view>
</view>
<select-service-confirm show="{{showServiceConfirm}}" tabBarStyle="{{tabBarStyle}}" serviceList="{{serviceList}}" selectInfo="{{formData.selectInfo}}" bind:hiddenSelectConfirm="hiddenSelectConfirm"></select-service-confirm>
<select-service-confirm show="{{showServiceConfirm}}" tabBarStyle="{{tabBarStyle}}" serviceList="{{serviceList}}" selectInfo="{{formData.selectInfo}}" bind:hiddenSelectConfirm="hiddenSelectConfirm"></select-service-confirm>
<staff-type-popup wx:if="{{staffPopupShow}}" bind:hidePopup="handleStaffTypeChange" selectInfo="{{formData.selectInfo}}" bindconfirm="staffTypeConfiem" popShow="{{staffPopupShow}}" notAll="{{true}}"/>
<staff-type-popup wx:if="{{staffPopupShow}}" bind:hidePopup="handleStaffTypeChange" selectInfo="{{formData.selectInfo}}"
staffTypeSelectInfo="{{formData.staffTypeSelectInfo}}"
bindconfirm="staffTypeConfiem" popShow="{{staffPopupShow}}" notAll="{{true}}"/>
packageMine/pages/staffManage/staffList/staffList.js
View file @
0afbbe0
...
@@ -71,12 +71,12 @@ Page({
...
@@ -71,12 +71,12 @@ Page({
isAsk
:
true
isAsk
:
true
})
})
mineApi
.
getStaffListAPI
(
params
).
then
(
res
=>
{
mineApi
.
getStaffListAPI
(
params
).
then
(
res
=>
{
let
tempList
=
isReset
?
res
?.
list
||
[]
:
this
.
data
.
staffList
.
concat
(
res
?.
list
||
[])
let
tempList
=
isReset
?
res
?.
data
||
[]
:
this
.
data
.
staffList
.
concat
(
res
?.
data
||
[])
this
.
setData
({
this
.
setData
({
staffList
:
tempList
,
staffList
:
tempList
,
currentPage
:
currentPage
+
1
,
currentPage
:
currentPage
+
1
,
total
:
res
.
total
,
total
:
res
.
count
,
nothing
:
res
.
total
==
tempList
.
length
,
nothing
:
res
.
count
==
tempList
.
length
,
triggered
:
false
triggered
:
false
})
})
if
(
isReset
)
{
if
(
isReset
)
{
...
...
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.scss
View file @
0afbbe0
/* packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxss */
/* packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxss */
.crowdfund-layout
{
.crowdfund-layout
{
// margin: 20rpx 20rpx;
// margin: 20rpx 20rpx;
height
:
100%
;
overflow
:
scroll
;
padding-bottom
:
136rpx
;
padding-bottom
:
136rpx
;
.box
{
.box
{
...
...
packagesList/packageOutput/pages/newSummary/newSummary.scss
View file @
0afbbe0
...
@@ -44,6 +44,10 @@
...
@@ -44,6 +44,10 @@
vertical-align
:
middle
;
vertical-align
:
middle
;
}
}
.navigation-title-text
{
max-width
:
55%
;
}
&
:
:
after
{
&
:
:
after
{
content
:
''
;
content
:
''
;
width
:
100%
;
width
:
100%
;
...
@@ -181,7 +185,7 @@
...
@@ -181,7 +185,7 @@
.activity-box
{
.activity-box
{
width
:
100%
;
width
:
100%
;
height
:
64rpx
;
height
:
64rpx
;
margin
-top
:
12rpx
;
margin
:
12rpx
0
;
.activity-item
{
.activity-item
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
...
...
packagesList/packageOutput/pages/newSummary/newSummary.wxml
View file @
0afbbe0
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<view class="imgBox" bind:tap="back">
<view class="imgBox" bind:tap="back">
<image src="../../images/blackArrow.png" />
<image src="../../images/blackArrow.png" />
</view>
</view>
<view class="navigation-title-text
">广西弘泽汽车销售服务…
</view>
<view class="navigation-title-text
text-hide">{{merchantInfo.merchantName}}
</view>
</view>
</view>
<tab tab="{{ tabList }}" itemWidth="{{ '30%' }}" index="{{ tabIndx }}" bindclick="changeTabIndx" class="tabContainer" />
<tab tab="{{ tabList }}" itemWidth="{{ '30%' }}" index="{{ tabIndx }}" bindclick="changeTabIndx" class="tabContainer" />
<view class="searchBar">
<view class="searchBar">
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
</scroll-view>
</scroll-view>
</view>
</view>
<view class="conCom">
<view class="conCom">
<view wx:if="{{ tabIndx == 1 }}" class="activity-content">
<view wx:if="{{ tabIndx == 1 }}" class="activity-content
container
">
<output-crowdfund
<output-crowdfund
wx:if="{{ isShowData }}"
wx:if="{{ isShowData }}"
orderObj="{{ activityList[activityActive].outputData }}"
orderObj="{{ activityList[activityActive].outputData }}"
...
...
pages/tab/mine/mine.scss
View file @
0afbbe0
...
@@ -200,4 +200,7 @@ page {
...
@@ -200,4 +200,7 @@ page {
font-weight
:
400
!
important
;
font-weight
:
400
!
important
;
border
:
2rpx
solid
#EEEEEE
!
important
;
border
:
2rpx
solid
#EEEEEE
!
important
;
background-color
:
#fff
!
important
;
background-color
:
#fff
!
important
;
width
:
336rpx
;
height
:
88rpx
;
line-height
:
88rpx
;
}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/mine/mine.wxml
View file @
0afbbe0
...
@@ -14,15 +14,15 @@
...
@@ -14,15 +14,15 @@
</view>
</view>
<view class="utilBoxTitle">常用工具</view>
<view class="utilBoxTitle">常用工具</view>
<view class="boxItemCon">
<view class="boxItemCon">
<view wx:for="{{boxItemList}}" wx:key="index" class="
item
" data-path="{{item.path}}" data-item="{{item}}" bind:tap="navGO">
<view wx:for="{{boxItemList}}" wx:key="index" class="
{{item.isHide ? '': 'item'}}
" data-path="{{item.path}}" data-item="{{item}}" bind:tap="navGO">
<
block
wx:if="{{!item.isHide}}">
<
view
wx:if="{{!item.isHide}}">
<view class="imgcon">
<view class="imgcon">
<view wx:if="{{item.hasRedPot}}" class="redPot" hidden="{{!item.isRead}}" ></view>
<view wx:if="{{item.hasRedPot}}" class="redPot" hidden="{{!item.isRead}}" ></view>
<view wx:if="{{item.newTips}}" class="new" hidden="{{!versionData.isNew}}">new</view>
<view wx:if="{{item.newTips}}" class="new" hidden="{{!versionData.isNew}}">new</view>
<glsx-image class="img" src="{{IMAGES['icon' + index]}}" />
<glsx-image class="img" src="{{IMAGES['icon' + index]}}" />
</view>
</view>
<view class="name">{{item.name}}</view>
<view class="name">{{item.name}}</view>
</
block
>
</
view
>
</view>
</view>
<!-- <view class="update" bindtap="jump">
<!-- <view class="update" bindtap="jump">
<view class="icon">
<view class="icon">
...
...
pages/tab/outputValue/components/CommissionPopup/CommissionPopup.js
View file @
0afbbe0
...
@@ -49,6 +49,6 @@ Component({
...
@@ -49,6 +49,6 @@ Component({
methods
:
{
methods
:
{
hidePopup
()
{
hidePopup
()
{
this
.
triggerEvent
(
'hidePopup'
)
this
.
triggerEvent
(
'hidePopup'
)
}
,
}
}
}
})
})
pages/tab/outputValue/components/CommissionPopup/CommissionPopup.wxml
View file @
0afbbe0
...
@@ -3,10 +3,11 @@
...
@@ -3,10 +3,11 @@
<popup
<popup
show="{{popShow}}"
show="{{popShow}}"
bind:hidePopup="hidePopup"
bind:hidePopup="hidePopup"
bindconfirm="
confirm
"
bindconfirm="
hidePopup
"
height="60%"
height="60%"
title="员工提成"
title="员工提成"
customIsTab="{{true}}"
customIsTab="{{true}}"
only="{{false}}"
customPopupSlotStyle="height: calc(100% - 200rpx)">
customPopupSlotStyle="height: calc(100% - 200rpx)">
<!-- 服务多家门店不显示门店名称 -->
<!-- 服务多家门店不显示门店名称 -->
<view class="title_tips">
<view class="title_tips">
...
...
pages/tab/outputValue/components/ScreenBox/ScreenBox.js
View file @
0afbbe0
...
@@ -61,7 +61,7 @@ Component({
...
@@ -61,7 +61,7 @@ Component({
pageLoaded
:
true
,
pageLoaded
:
true
,
userInfo
userInfo
})
})
getMerchantListApi
({
serviceMerchantId
:
userInfo
?.
subLoginUser
?.
merchantId
}).
then
(
res
=>
{
getMerchantListApi
({
serviceMerchantId
:
userInfo
?.
isSuper
?
''
:
userInfo
?.
subLoginUser
?.
merchantId
}).
then
(
res
=>
{
let
{
code
,
data
}
=
res
let
{
code
,
data
}
=
res
if
(
code
==
'0'
)
{
if
(
code
==
'0'
)
{
this
.
setData
({
this
.
setData
({
...
...
pages/tab/outputValue/components/ScreenConfirmBox/ScreenConfirmBox.js
View file @
0afbbe0
...
@@ -17,7 +17,7 @@ Component({
...
@@ -17,7 +17,7 @@ Component({
thisPage
.
setData
({
thisPage
.
setData
({
isShowFilterScreen
:
true
isShowFilterScreen
:
true
})
})
if
(
!
this
.
data
.
formData
.
startTime
||
!
this
.
data
.
formData
.
endTime
)
this
.
setDate
()
// 未选择时间
默认展示当前月份
this
.
setDate
()
//
默认展示当前月份
this
.
setViewData
()
this
.
setViewData
()
}
}
}
}
...
@@ -214,6 +214,7 @@ Component({
...
@@ -214,6 +214,7 @@ Component({
formData
.
sceneType
=
sceneList
.
filter
(
val
=>
val
.
active
)[
0
]?.
id
||
''
formData
.
sceneType
=
sceneList
.
filter
(
val
=>
val
.
active
)[
0
]?.
id
||
''
formData
.
staffUUIDs
=
staffList
.
filter
(
val
=>
val
.
active
).
map
(
subVal
=>
{
if
(
subVal
.
uuid
)
return
subVal
.
uuid
})
formData
.
staffUUIDs
=
staffList
.
filter
(
val
=>
val
.
active
).
map
(
subVal
=>
{
if
(
subVal
.
uuid
)
return
subVal
.
uuid
})
this
.
triggerEvent
(
'screenFlag'
)
this
.
triggerEvent
(
'screenFlag'
)
this
.
setData
({
screenFlag
:
true
})
const
thisPage
=
wx
.
$router
.
getPageInstance
()
const
thisPage
=
wx
.
$router
.
getPageInstance
()
if
(
formData
?.
partnerMerchantIds
[
0
]
!==
userInfo
.
subLoginUser
.
merchantId
)
{
if
(
formData
?.
partnerMerchantIds
[
0
]
!==
userInfo
.
subLoginUser
.
merchantId
)
{
USERAPI
.
switchSubLoginInfo
({
merchantId
:
formData
?.
partnerMerchantIds
[
0
]
}).
then
(
res
=>
{
USERAPI
.
switchSubLoginInfo
({
merchantId
:
formData
?.
partnerMerchantIds
[
0
]
}).
then
(
res
=>
{
...
@@ -240,8 +241,7 @@ Component({
...
@@ -240,8 +241,7 @@ Component({
reset
()
{
reset
()
{
let
{
formData
,
userInfo
,
sceneList
,
staffList
,
tabType
,
merchantRange
,
subIndex
}
=
this
.
data
let
{
formData
,
userInfo
,
sceneList
,
staffList
,
tabType
,
merchantRange
,
subIndex
}
=
this
.
data
formData
.
partnerMerchantIds
=
[
userInfo
.
subLoginUser
.
merchantId
]
formData
.
partnerMerchantIds
=
[
userInfo
.
subLoginUser
.
merchantId
]
formData
.
startTime
=
''
this
.
setDate
()
formData
.
endTime
=
''
formData
.
sceneType
=
''
formData
.
sceneType
=
''
formData
.
staffUUIDs
=
[]
formData
.
staffUUIDs
=
[]
if
(
tabType
==
0
)
{
if
(
tabType
==
0
)
{
...
...
pages/tab/outputValue/components/SwitchAccountPopup/SwitchAccountPopup.js
View file @
0afbbe0
...
@@ -22,13 +22,11 @@ Component({
...
@@ -22,13 +22,11 @@ Component({
}
else
{
}
else
{
item
.
act
=
false
item
.
act
=
false
}
}
this
.
setData
({
merchantRange
,
selectedMerchantId
:
selectInfo
.
partnerMerchantIds
[
0
]
})
})
})
this
.
setData
({
this
.
setData
({
searchKeyword
:
''
searchKeyword
:
''
,
merchantRange
,
selectedMerchantId
:
selectInfo
.
partnerMerchantIds
[
0
]
||
''
})
})
}
}
}
}
...
@@ -96,8 +94,14 @@ Component({
...
@@ -96,8 +94,14 @@ Component({
})
})
},
},
input
(
e
)
{
input
(
e
)
{
let
{
merchantRange
,
selectedMerchantId
}
=
this
.
data
let
{
value
}
=
e
.
detail
let
{
value
}
=
e
.
detail
this
.
setData
({
searchKeyword
:
value
})
},
search
(
e
)
{
let
{
merchantRange
,
selectedMerchantId
}
=
this
.
data
let
{
value
}
=
e
.
currentTarget
.
dataset
&&
Object
.
keys
(
e
.
currentTarget
.
dataset
).
length
?
e
.
currentTarget
.
dataset
:
e
.
detail
merchantRange
.
forEach
(
item
=>
{
merchantRange
.
forEach
(
item
=>
{
item
.
act
=
false
item
.
act
=
false
item
.
show
=
item
.
merchantName
.
includes
(
value
)
item
.
show
=
item
.
merchantName
.
includes
(
value
)
...
...
pages/tab/outputValue/components/SwitchAccountPopup/SwitchAccountPopup.wxml
View file @
0afbbe0
...
@@ -13,13 +13,10 @@
...
@@ -13,13 +13,10 @@
type="text"
type="text"
placeholder="请搜索服务商账号名"
placeholder="请搜索服务商账号名"
class="input"
class="input"
value="{{
k
eyword}}"
value="{{
searchK
eyword}}"
placeholder-class="input-placeholder"
placeholder-class="input-placeholder"
bindinput="input"
bindinput="input"
bindconfirm="search" />
bindconfirm="search" />
<block wx:if="{{keyword}}">
<image src="/images/clear.png" class="search-clear" bindtap="clear" />
</block>
</view>
</view>
<view class="search text-center" bindtap="showConfirm">
<view class="search text-center" bindtap="showConfirm">
<view class="text-center">搜索</view>
<view class="text-center">搜索</view>
...
@@ -28,9 +25,6 @@
...
@@ -28,9 +25,6 @@
<scroll-view
<scroll-view
scroll-y
scroll-y
enable-back-to-top
enable-back-to-top
refresher-enabled="{{true}}"
bindrefresherrefresh="refreshList"
refresher-threshold="104"
scroll-top="{{scrollTop}}"
scroll-top="{{scrollTop}}"
class="list"
class="list"
style="height:100%;"
style="height:100%;"
...
...
pages/tab/outputValue/components/employees/employess.js
View file @
0afbbe0
...
@@ -68,6 +68,7 @@ Component({
...
@@ -68,6 +68,7 @@ Component({
},
},
actionOperationResult
(
val1
,
val2
,
rate
=
false
){
actionOperationResult
(
val1
,
val2
,
rate
=
false
){
if
(
!
val2
)
return
flag
?
0
:
'0.00'
const
p
=
this
.
actionOperation
(
val1
,
val2
)
const
p
=
this
.
actionOperation
(
val1
,
val2
)
let
flag
=
Number
.
isInteger
(((
val1
*
p
)
/
(
val2
*
p
))
*
100
)
// 是否是整数
let
flag
=
Number
.
isInteger
(((
val1
*
p
)
/
(
val2
*
p
))
*
100
)
// 是否是整数
return
rate
?
(
flag
?
((
val1
*
p
)
/
(
val2
*
p
))
*
100
:
(((
val1
*
p
)
/
(
val2
*
p
))
*
100
).
toFixed
(
2
))
:
((
val1
*
p
)
/
(
val2
*
p
)).
toFixed
(
2
)
return
rate
?
(
flag
?
((
val1
*
p
)
/
(
val2
*
p
))
*
100
:
(((
val1
*
p
)
/
(
val2
*
p
))
*
100
).
toFixed
(
2
))
:
((
val1
*
p
)
/
(
val2
*
p
)).
toFixed
(
2
)
...
@@ -97,6 +98,7 @@ Component({
...
@@ -97,6 +98,7 @@ Component({
...
thisPage
.
data
.
screenFormData
...
thisPage
.
data
.
screenFormData
}
}
delete
params
.
shopMerchantNames
delete
params
.
shopMerchantNames
delete
params
.
sceneType
// 删除场景参数
if
(
nothing
||
isAsk
)
{
if
(
nothing
||
isAsk
)
{
return
return
}
}
...
...
pages/tab/outputValue/components/employees/employess.scss
View file @
0afbbe0
...
@@ -44,12 +44,22 @@
...
@@ -44,12 +44,22 @@
margin
:
6rpx
0
0
8rpx
;
margin
:
6rpx
0
0
8rpx
;
font-size
:
20rpx
;
font-size
:
20rpx
;
color
:
#8A8C90
;
color
:
#8A8C90
;
display
:
flex
;
view
{
max-width
:
160rpx
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
}
}
}
}
.output_text
text
{
.output_text
{
color
:
#4772FC
;
position
:
relative
;
font-size
:
36rpx
;
text
{
font-weight
:
700
;
color
:
#4772FC
;
font-size
:
36rpx
;
font-weight
:
700
;
}
}
}
.merchant_num
{
.merchant_num
{
margin-left
:
64rpx
;
margin-left
:
64rpx
;
...
...
pages/tab/outputValue/components/employees/employess.wxml
View file @
0afbbe0
...
@@ -18,9 +18,10 @@
...
@@ -18,9 +18,10 @@
<view class="flex">
<view class="flex">
<glsx-image class="headPortrait" src="{{item.userAvatarUrl||IMAGES.userAvatarUrl}}" webp></glsx-image>
<glsx-image class="headPortrait" src="{{item.userAvatarUrl||IMAGES.userAvatarUrl}}" webp></glsx-image>
<view class="name">{{item.staffName}}</view>
<view class="name">{{item.staffName}}</view>
<view class="role_name"
>「{{item.staffRoleName}}
」</view>
<view class="role_name"
wx:if="{{item.staffRoleName}}">「<view>{{item.staffRoleName}}</view>
」</view>
</view>
</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 wx:if="{{item.totalOutputValue < 1000000}}" class="output_text"><text style="font-size: 24rpx;">¥</text><text>{{filter.money_three_for_two_thousands(item.totalOutputValue || '0.00', false)}}</text></view>
<view wx:else class="output_text"><text style="font-size: 24rpx;">¥</text><text>一百万</text><text style="font-size: 24rpx;position: absolute;top: 0;">+</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>
...
...
pages/tab/outputValue/components/merchant/merchant.js
View file @
0afbbe0
...
@@ -20,9 +20,12 @@ Component({
...
@@ -20,9 +20,12 @@ Component({
sceneType
:
''
sceneType
:
''
}
}
}
}
// observer: function (n) {
},
// n && this.merchantRefresh()
tabBarStyle
:
{
// }
type
:
Number
,
observer
:
function
(
n
)
{
if
(
n
)
this
.
setData
({
emptyDataStyle
:
`height: calc(100vh -
${
n
}
px - 88rpx - 24rpx)`
})
}
}
}
},
},
...
@@ -41,6 +44,8 @@ Component({
...
@@ -41,6 +44,8 @@ Component({
},
},
isEnd
:
false
,
isEnd
:
false
,
loading
:
true
,
loading
:
true
,
scrollTop
:
0
,
isAsk
:
false
,
// totalObj: {
// totalObj: {
// scene1Total: '72536',
// scene1Total: '72536',
// scene0Total: '76400',
// scene0Total: '76400',
...
@@ -252,10 +257,14 @@ Component({
...
@@ -252,10 +257,14 @@ Component({
},
},
getMerchantList
(
isReset
=
false
)
{
getMerchantList
(
isReset
=
false
)
{
let
{
userInfo
}
=
wx
.
$storage
.
get
()
let
{
userInfo
}
=
wx
.
$storage
.
get
()
let
{
searchForm
,
merchantList
}
=
this
.
data
let
{
searchForm
,
merchantList
,
isAsk
}
=
this
.
data
if
(
isAsk
)
{
return
true
}
this
.
setData
({
this
.
setData
({
serviceName
:
userInfo
.
subLoginUser
.
merchantName
,
serviceName
:
userInfo
.
subLoginUser
.
merchantName
,
loading
:
true
loading
:
true
,
isAsk
:
true
})
})
this
.
dealMonth
(
isReset
)
this
.
dealMonth
(
isReset
)
let
params
=
{
let
params
=
{
...
@@ -273,14 +282,15 @@ Component({
...
@@ -273,14 +282,15 @@ Component({
})
})
if
(
isReset
)
{
if
(
isReset
)
{
this
.
setData
({
this
.
setData
({
busiS
crollTop
:
0
s
crollTop
:
0
})
})
}
}
}).
finally
(()
=>
{
}).
finally
(()
=>
{
wx
.
hideLoading
()
wx
.
hideLoading
()
this
.
setData
({
this
.
setData
({
triggered
:
false
,
triggered
:
false
,
loading
:
false
loading
:
false
,
isAsk
:
false
})
})
})
})
}
}
...
...
pages/tab/outputValue/components/merchant/merchant.scss
View file @
0afbbe0
/* pages/tab/outputValue/components/merchant/merchant.wxss */
/* pages/tab/outputValue/components/merchant/merchant.wxss */
.merchantCon
{
box-sizing
:
border-box
;
background-color
:
#F2F3F7
;
height
:
100%
;
padding
:
0
16rpx
;
}
.merchant
{
.merchant
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
color
:
#323436
;
color
:
#323436
;
// padding-top: 16rpx;
// padding-top: 16rpx;
background-color
:
#F2F3F7
;
background-color
:
#F2F3F7
;
height
:
100%
;
padding
:
0
16rpx
;
}
}
.merchant-content
{
.merchant-content
{
...
@@ -18,6 +13,10 @@
...
@@ -18,6 +13,10 @@
margin-bottom
:
44rpx
;
margin-bottom
:
44rpx
;
}
}
.btn-box
{
padding-bottom
:
44rpx
;
}
.btn
{
.btn
{
width
:
256rpx
;
width
:
256rpx
;
height
:
80rpx
;
height
:
80rpx
;
...
@@ -27,7 +26,7 @@
...
@@ -27,7 +26,7 @@
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#5A6066
;
color
:
#5A6066
;
text-align
:
center
;
text-align
:
center
;
margin
:
0
auto
44rpx
;
margin
:
0
auto
;
}
}
.end-txt
{
.end-txt
{
...
...
pages/tab/outputValue/components/merchant/merchant.wxml
View file @
0afbbe0
<!--pages/tab/outputValue/components/merchant/merchant.wxml-->
<!--pages/tab/outputValue/components/merchant/merchant.wxml-->
<view class="merchantCon">
<scroll-view class="merchant" id="scroller" scroll-y="{{true}}" refresher-enabled="{{true}}" refresher-triggered="{{triggered}}" bindrefresherrefresh="merchantRefresh" lower-threshold='50' scroll-top="{{busiScrollTop}}">
<scroll-view class="merchant" id="scroller" scroll-y="{{true}}" refresher-enabled="{{true}}" refresher-triggered="{{triggered}}" bindrefresherrefresh="merchantRefresh" lower-threshold='50' scroll-top="{{busiScrollTop}}">
<!-- 全部 - 服务商总产值 -->
<!-- 全部 - 服务商总产值 -->
<service-total wx:if="{{merchantList.length}}" serviceName="{{serviceName}}" totalObj="{{totalObj}}"></service-total>
<service-total wx:if="{{!searchForm.sceneType && merchantList.length}}" 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 wx:if="{{!searchForm.sceneType}}" curInfo="{{item}}" searchForm="{{searchForm}}"></merchant-all>
<merchant-all wx:if="{{!searchForm.sceneType}}" curInfo="{{item}}"></merchant-all>
<!-- 指定场景:太阳膜,售后众筹,会员权益/升级 -->
<!-- 指定场景:太阳膜,售后众筹,会员权益/升级 -->
<merchant-scene wx:else searchForm="{{searchForm}}" curInfo="{{item}}"></merchant-scene>
<merchant-scene wx:else searchForm="{{searchForm}}" curInfo="{{item}}"></merchant-scene>
</view>
<view wx:if="{{!loading}}">
<view wx:if="{{!merchantList.length}}" class="end-txt">
<nothing-tips tips="暂无数据~" bgColor="{{'#FFFFFF'}}" bg="{{bgUrl}}" emptyDataStyle="{{emptyDataStyle}}" />
</view>
</view>
<view wx:if="{{!loading}}">
<view class="btn-box" wx:elif="{{!isEnd}}">
<view wx:if="{{!merchantList.length}}" class="end-txt">
<view class="btn" bindtap="getMore">加载更多</view>
<nothing-tips tips="暂无数据~" bgColor="{{'#FFFFFF'}}" bg="{{bgUrl}}" />
</view>
<view class="btn" wx:elif="{{!isEnd}}" bindtap="getMore">加载更多</view>
<view wx:else class="end-txt">
<view>到底啦~</view>
</view>
</view>
</view>
</scroll-view>
</view>
\ No newline at end of file
\ No newline at end of file
<view wx:else class="end-txt">
<view>到底啦~</view>
</view>
</view>
</scroll-view>
pages/tab/outputValue/components/merchantCom/MerchantScene/MerchantScene.js
View file @
0afbbe0
...
@@ -8,9 +8,10 @@ Component({
...
@@ -8,9 +8,10 @@ Component({
curInfo
:
{
curInfo
:
{
type
:
Object
,
type
:
Object
,
value
:
()
=>
{
},
value
:
()
=>
{
},
observer
(
n
)
{
observer
(
n
)
{
if
(
n
)
{
if
(
n
)
{
this
.
dealYearMonth
()
this
.
dealYearMonth
()
this
.
dealCrowdData
()
}
}
}
}
},
},
...
@@ -45,7 +46,8 @@ Component({
...
@@ -45,7 +46,8 @@ Component({
date
:
{
date
:
{
year
:
''
,
year
:
''
,
month
:
''
month
:
''
}
},
currentMonth
:
new
Date
().
format
(
'yyyy-MM'
)
},
},
/**
/**
...
@@ -59,6 +61,21 @@ Component({
...
@@ -59,6 +61,21 @@ Component({
[
'date.month'
]:
new
Date
(
yearMonth
||
''
).
getMonth
()
+
1
,
[
'date.month'
]:
new
Date
(
yearMonth
||
''
).
getMonth
()
+
1
,
})
})
},
},
dealCrowdData
()
{
let
{
searchForm
,
curInfo
}
=
this
.
data
// 众筹数据处理
if
(
searchForm
.
sceneType
==
3
)
{
curInfo
?.
merchantDataList
.
length
&&
curInfo
?.
merchantDataList
.
forEach
(
item
=>
{
let
productCodes
=
item
.
productCodes
||
[]
item
?.
curMonthTotalData
?.
length
&&
item
?.
curMonthTotalData
?.
forEach
(
subItem
=>
{
subItem
.
isShow
=
productCodes
.
includes
(
subItem
.
productCode
)
})
})
this
.
setData
({
curInfo
:
curInfo
})
}
},
dealData
()
{
dealData
()
{
let
{
searchForm
,
sceneToInfo
}
=
this
.
data
let
{
searchForm
,
sceneToInfo
}
=
this
.
data
let
sceneObj
=
sceneToInfo
.
find
(
item
=>
item
.
type
==
(
searchForm
.
sceneType
||
1
))
let
sceneObj
=
sceneToInfo
.
find
(
item
=>
item
.
type
==
(
searchForm
.
sceneType
||
1
))
...
...
pages/tab/outputValue/components/merchantCom/MerchantScene/MerchantScene.scss
View file @
0afbbe0
...
@@ -94,6 +94,11 @@
...
@@ -94,6 +94,11 @@
right
:
0
;
right
:
0
;
top
:
66rpx
;
top
:
66rpx
;
right
:
24rpx
;
right
:
24rpx
;
text-align
:
right
;
}
.business-total-other
{
text-align
:
right
;
}
}
.top-num-box
{
.top-num-box
{
...
@@ -165,7 +170,7 @@
...
@@ -165,7 +170,7 @@
}
}
.title-name
{
.title-name
{
width
:
calc
(
100%
-
72rpx
);
max-
width
:
calc
(
100%
-
72rpx
);
}
}
.tips-store
{
.tips-store
{
...
...
pages/tab/outputValue/components/merchantCom/MerchantScene/MerchantScene.wxml
View file @
0afbbe0
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<view class="merchant-scene">
<view class="merchant-scene">
<view class="top">
<view class="top">
<view class="scene-label">{{sceneObj.label}}</view>
<view class="scene-label">{{sceneObj.label}}</view>
<view wx:if="{{sceneObj.name == 'membranes'}}" class="business-total label">业务产值
<view wx:if="{{sceneObj.name == 'membranes'
&& searchForm.startTime && searchForm.endTime
}}" class="business-total label">业务产值
<text class="num-red">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.bizTotal || 0)}}</text>
<text class="num-red">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.bizTotal || 0)}}</text>
</view>
</view>
<view>
<view>
...
@@ -12,18 +12,20 @@
...
@@ -12,18 +12,20 @@
<view class="top-num-box">
<view class="top-num-box">
<view>
<view>
<view class="num-blue ft-40">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.total || 0)}}</view>
<view class="num-blue ft-40">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.total || 0)}}</view>
<
!-- <view class="total-txt">本月业绩产生至{{curInfo.merchantDataList.length}}家门店</view> --
>
<
view class="total-txt num-grey" wx:if="{{curInfo.curMonthTotalData.total == 0}}">暂无业务收入</view
>
</view>
</view>
<view>
<view>
<view wx:if="{{sceneObj.name != 'membranes'
}}" class="label m-b-12
">业务产值
<view wx:if="{{sceneObj.name != 'membranes'
&& searchForm.startTime && searchForm.endTime}}" class="label m-b-12 business-total-other
">业务产值
<text class="num-red">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.bizTotal || 0)}}</text>
<text class="num-red">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.bizTotal || 0)}}</text>
</view>
</view>
<view wx:for="{{sceneTopList}}" wx:key="index" class="top-right-box">
<view wx:if="{{searchForm.startTime && searchForm.endTime}}">
<view class="label">{{item.label}}</view>
<view wx:for="{{sceneTopList}}" wx:key="index" class="top-right-box">
<view class="num-grey">
<view class="label">{{item.label}}</view>
<text wx:if="{{item.prefix}}">{{item.prefix}}</text>
<view class="num-grey">
{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData[item.name] || 0)}}
<text wx:if="{{item.prefix}}">{{item.prefix}}</text>
<text wx:if="{{item.suffix}}">{{item.suffix}}</text>
{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData[item.name] || 0)}}
<text wx:if="{{item.suffix}}">{{item.suffix}}</text>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -42,24 +44,28 @@
...
@@ -42,24 +44,28 @@
<!-- 内容 - 售后众筹 -->
<!-- 内容 - 售后众筹 -->
<view wx:if="{{sceneObj.name == 'crowdfund'}}" class="list-content crowdfund">
<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 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 wx:if="{{subItem.isShow}}">
<view class="num">{{subItem.activityTotal || 0}}场/{{subItem.orderTotal || 0}}单/¥{{filter.money_three_for_two_thousands(subItem.bizTotal || 0)}}</view>
<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>
</view>
</view>
<!-- 内容 - 太阳膜、会员权益/升级 -->
<!-- 内容 - 太阳膜、会员权益/升级 -->
<view wx:else class="list-content">
<view wx:else class="list-content">
<view class="com-box">
<view wx:if="{{currentMonth == curInfo.yearMonth}}">
<view class="line"></view>
<view class="com-box">
<view class="com-month">当日</view>
<view class="line"></view>
<view class="line"></view>
<view class="com-month">当日</view>
</view>
<view class="line"></view>
<view class="flex">
</view>
<view wx:for="{{sceneFormList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx" class="cur-block {{sceneObj.name}}">
<view class="flex">
<view class="label">{{subItem.label}}</view>
<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="label">{{subItem.label}}</view>
<text wx:if="{{subItem.prefix}}">{{subItem.prefix}}</text>
<view class="num">
{{filter.money_three_for_two_thousands(item.curDayTotalData[subItem.name] || 0)}}
<text wx:if="{{subItem.prefix}}">{{subItem.prefix}}</text>
<text wx:if="{{subItem.suffix}}">{{subItem.suffix}}</text>
{{filter.money_three_for_two_thousands(item.curDayTotalData[subItem.name] || 0)}}
<text wx:if="{{subItem.suffix}}">{{subItem.suffix}}</text>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
...
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.js
View file @
0afbbe0
...
@@ -14,6 +14,19 @@ Component({
...
@@ -14,6 +14,19 @@ Component({
this
.
dealCompare
()
this
.
dealCompare
()
}
}
}
}
},
searchForm
:
{
type
:
Object
,
value
:
()
=>
{
return
{
// 服务商商户号
partnerMerchantId
:
''
,
// 4S店商户号
merchantId
:
''
,
startTime
:
''
,
endTime
:
''
,
}
}
}
}
},
},
...
...
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.scss
View file @
0afbbe0
...
@@ -148,7 +148,7 @@
...
@@ -148,7 +148,7 @@
}
}
.title-name
{
.title-name
{
width
:
calc
(
100%
-
72rpx
);
max-
width
:
calc
(
100%
-
72rpx
);
}
}
.tips-store
{
.tips-store
{
...
...
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.wxml
View file @
0afbbe0
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<wxs src="/pages/tab/outputValue/index.wxs" module="filter" />
<wxs src="/pages/tab/outputValue/index.wxs" module="filter" />
<view class="merchant-all">
<view class="merchant-all">
<view class="top">
<view class="top">
<view class="switch-box">对比上月
<view class="switch-box"
wx:if="{{curInfo.merchantDataList.length}}"
>对比上月
<switch style="zoom:.6; margin-left: 8rpx;" color="#3666FE" checked="{{switchChecked}}" bindchange="switchChange" />
<switch style="zoom:.6; margin-left: 8rpx;" color="#3666FE" checked="{{switchChecked}}" bindchange="switchChange" />
</view>
</view>
<view>
<view>
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<view class="num-blue ft-40">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.total || 0)}}</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>
<view
wx:if="{{searchForm.startTime && searchForm.endTime}}"
>
<view wx:for="{{sceneFormList}}" wx:key="index" class="top-right-box">
<view wx:for="{{sceneFormList}}" wx:key="index" class="top-right-box">
<view class="label">{{item.label}}</view>
<view class="label">{{item.label}}</view>
<view class="num-grey">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData[item.name] || 0)}}</view>
<view class="num-grey">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData[item.name] || 0)}}</view>
...
...
pages/tab/outputValue/components/selectMerchantPopup/selectMerchantPopup.js
View file @
0afbbe0
...
@@ -14,7 +14,6 @@ Component({
...
@@ -14,7 +14,6 @@ Component({
observer
:
function
(
n
)
{
observer
:
function
(
n
)
{
if
(
n
)
{
if
(
n
)
{
let
{
merchantRange
,
selectInfo
}
=
this
.
data
let
{
merchantRange
,
selectInfo
}
=
this
.
data
console
.
log
(
selectInfo
)
let
activeIndex
=
merchantRange
.
findIndex
(
v
=>
v
.
merchantId
==
selectInfo
.
shopMerchantIds
[
0
])
let
activeIndex
=
merchantRange
.
findIndex
(
v
=>
v
.
merchantId
==
selectInfo
.
shopMerchantIds
[
0
])
if
(
merchantRange
.
length
)
merchantRange
.
unshift
({
merchantId
:
''
,
merchantName
:
'全部'
})
if
(
merchantRange
.
length
)
merchantRange
.
unshift
({
merchantId
:
''
,
merchantName
:
'全部'
})
merchantRange
.
forEach
((
item
,
ind
)
=>
{
merchantRange
.
forEach
((
item
,
ind
)
=>
{
...
@@ -24,13 +23,11 @@ Component({
...
@@ -24,13 +23,11 @@ Component({
}
else
{
}
else
{
item
.
act
=
false
item
.
act
=
false
}
}
this
.
setData
({
merchantRange
,
selectedMerchantId
:
selectInfo
.
shopMerchantIds
[
0
]
})
})
})
this
.
setData
({
this
.
setData
({
searchKeyword
:
''
searchKeyword
:
''
,
merchantRange
,
selectedMerchantId
:
selectInfo
?.
shopMerchantIds
[
0
]
||
''
})
})
}
}
}
}
...
...
pages/tab/outputValue/components/selectMerchantPopup/selectMerchantPopup.wxml
View file @
0afbbe0
...
@@ -12,13 +12,10 @@
...
@@ -12,13 +12,10 @@
type="text"
type="text"
placeholder="请搜索门店"
placeholder="请搜索门店"
class="input"
class="input"
value="{{
k
eyword}}"
value="{{
searchK
eyword}}"
placeholder-class="input-placeholder"
placeholder-class="input-placeholder"
bindinput="input"
bindinput="input"
bindconfirm="search" />
bindconfirm="search" />
<block wx:if="{{keyword}}">
<image src="/images/clear.png" class="search-clear" bindtap="clear" />
</block>
</view>
</view>
<view class="search text-center" bindtap="search" data-value="{{searchKeyword}}">
<view class="search text-center" bindtap="search" data-value="{{searchKeyword}}">
<view class="text-center">搜索</view>
<view class="text-center">搜索</view>
...
@@ -27,9 +24,6 @@
...
@@ -27,9 +24,6 @@
<scroll-view
<scroll-view
scroll-y
scroll-y
enable-back-to-top
enable-back-to-top
refresher-enabled="{{true}}"
bindrefresherrefresh="refreshList"
refresher-threshold="104"
scroll-top="{{scrollTop}}"
scroll-top="{{scrollTop}}"
class="list"
class="list"
style="height:100%;"
style="height:100%;"
...
...
pages/tab/outputValue/outputValue.js
View file @
0afbbe0
...
@@ -120,7 +120,6 @@ Page({
...
@@ -120,7 +120,6 @@ Page({
item
.
act
=
true
item
.
act
=
true
}
}
})
})
console
.
log
(
subIndex
,
merchantRange
)
this
.
setData
({
this
.
setData
({
merchantRange
,
merchantRange
,
subIndex
subIndex
...
...
pages/tab/outputValue/outputValue.wxml
View file @
0afbbe0
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<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" searchForm="{{screenFormData}}" />
<merchant id="merchant" searchForm="{{screenFormData}}"
tabBarStyle="{{tabBarStyle}}"
/>
</view>
</view>
<!-- 我的员工 -->
<!-- 我的员工 -->
<view class="comCom" hidden="{{tabIndx != 1}}">
<view class="comCom" hidden="{{tabIndx != 1}}">
...
...
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