Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
sales-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 c317ff7a
authored
Oct 31, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V5.3.0-1117' of 192.168.3.233:saas_plus/sales-assistant into SAAS+V5.3.0-1117
2 parents
4475a399
59a1e409
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
44 additions
and
22 deletions
packageCustomer/components/StoreMessage/StoreMessage.scss
packageCustomer/components/StoreMessage/StoreMessage.wxml
packageCustomer/pages/createPotential/createPotential.scss
packageCustomer/pages/createPotential/createPotential.wxml
pages/components/storeStatistics/storeStatistics.wxml
pages/tab/customer/components/PageScreen/PageScreen.js
pages/tab/customer/components/PageScreen/PageScreen.wxml
pages/tab/customer/customer.js
pages/tab/customer/customer.wxml
packageCustomer/components/StoreMessage/StoreMessage.scss
View file @
c317ff7
...
...
@@ -26,16 +26,19 @@
flex-shrink
:
0
;
color
:
#999EA8
;
}
.resident-item
{
color
:
#292D33
;
display
:
flex
;
justify-content
:
flex-end
;
.name
{
margin-right
:
30rpx
;
max-width
:
calc
(
100%
-
260rpx
);
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
.item-box
{
width
:
calc
(
100%
-
180rpx
);
.resident-item
{
color
:
#292D33
;
display
:
flex
;
justify-content
:
flex-end
;
.name
{
margin-right
:
30rpx
;
max-width
:
calc
(
100%
-
260rpx
);
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
}
}
}
...
...
packageCustomer/components/StoreMessage/StoreMessage.wxml
View file @
c317ff7
...
...
@@ -64,7 +64,7 @@
<view class="status" wx:if="{{!infoData.storePersonnel.length}}">
<text class="status-text">无</text>
</view>
<view wx:if="{{infoData.storePersonnel.length}}">
<view wx:if="{{infoData.storePersonnel.length}}"
class="item-box"
>
<block wx:for="{{infoData.storePersonnel}}" wx:key="index">
<view class="resident-item">
<text class="name">{{item.personnelName}}</text>
...
...
packageCustomer/pages/createPotential/createPotential.scss
View file @
c317ff7
...
...
@@ -121,8 +121,8 @@
}
.counter
{
position
:
absolute
;
right
:
40
rpx
;
bottom
:
10rpx
;
right
:
56
rpx
;
bottom
:
0
;
color
:
#AAB0B7
;
font-size
:
28rpx
;
}
...
...
packageCustomer/pages/createPotential/createPotential.wxml
View file @
c317ff7
...
...
@@ -62,7 +62,7 @@
<view class="label">备注信息</view>
</view>
<view class="textarea-wrap">
<textarea class="textarea" maxlength="200" placeholder="请输入" placeholder-class="input-ph" value="{{infoData.remark}}" bindinput="onRemarkInput" />
<textarea class="textarea" maxlength="200"
auto-height
placeholder="请输入" placeholder-class="input-ph" value="{{infoData.remark}}" bindinput="onRemarkInput" />
<view class="counter">{{remarkLength}}/200</view>
</view>
</view>
...
...
pages/components/storeStatistics/storeStatistics.wxml
View file @
c317ff7
...
...
@@ -52,7 +52,7 @@
<text class="label">上次拜访内容:</text>
<text class="text">{{followUpData.waitFollowShopList[1].lastVisitContent||'-'}}</text>
</view>
<view class="btn" bindtap="goPotentialDetail" data-target="{{ followUpData.waitFollowShopList[
0
] }}">跟进</view>
<view class="btn" bindtap="goPotentialDetail" data-target="{{ followUpData.waitFollowShopList[
1
] }}">跟进</view>
</view>
</view>
</view>
...
...
pages/tab/customer/components/PageScreen/PageScreen.js
View file @
c317ff7
...
...
@@ -137,10 +137,10 @@ Component({
CustomerApi
.
getSalesPersonList
({}).
then
(
res
=>
{
res
?.
forEach
(
val
=>
{
val
.
value
=
val
.
userId
,
val
.
staffN
ame
=
val
.
userName
val
.
n
ame
=
val
.
userName
})
res
.
unshift
({
staffN
ame
:
'全部'
,
n
ame
:
'全部'
,
active
:
true
,
value
:
''
})
...
...
pages/tab/customer/components/PageScreen/PageScreen.wxml
View file @
c317ff7
...
...
@@ -104,7 +104,7 @@
data-index="{{ index }}"
hidden="{{ index >= 12 && !salesStaffShowMore }}"
>
<view class="text-item">{{item.
staffN
ame}}</view>
<view class="text-item">{{item.
n
ame}}</view>
</view>
</block>
</view>
...
...
pages/tab/customer/customer.js
View file @
c317ff7
...
...
@@ -121,13 +121,20 @@ Page({
})
},
onShow
()
{
// 总监从销售小结跳入
const
obj
=
app
.
getTabParams
(
'customerObj'
)?.
itemParams
||
{}
if
(
Object
.
keys
(
obj
)?.
length
)
{
const
data
=
{
name
:
obj
.
personName
,
value
:
obj
.
personId
}
this
.
setData
({
personParams
:
obj
personParams
:
obj
,
'searchObj.salesStaffList'
:
data
,
// 将带入的销售人员选中
'storeSearchObj.salesStaffList'
:
data
// 将带入的销售人员选中
},
()
=>
{
this
.
search
()
})
return
}
// 从我的门店待跟进看板跳入
const
params
=
app
.
getTabParams
(
'customer'
)
let
myTabIdx
if
(
params
)
{
...
...
@@ -190,6 +197,12 @@ Page({
// 筛选页面确认
search
()
{
// 当有页面带入参数时,判断再次选中的销售人员是否与带入相同,不同时清掉数据
if
((
Object
.
keys
(
this
.
data
.
personParams
)?.
length
&&
this
.
data
.
searchObj
?.
salesStaffList
?.
value
!=
this
.
data
.
personParams
.
personId
)
||
(
Object
.
keys
(
this
.
data
.
personParams
)?.
length
&&
this
.
data
.
storeSearchObj
?.
salesStaffList
?.
value
!=
this
.
data
.
personParams
.
personId
))
{
this
.
setData
({
personParams
:
{}
})
}
const
{
selectedScreenPotential
,
selectedScreenStore
,
searchObj
,
storeSearchObj
,
myTabIdx
}
=
this
.
data
const
sourceList
=
myTabIdx
==
0
?
selectedScreenPotential
:
selectedScreenStore
const
valueObj
=
myTabIdx
==
0
?
(
searchObj
||
{})
:
(
storeSearchObj
||
{})
...
...
@@ -218,6 +231,12 @@ Page({
}
return { ...item, valueText: text }
})
if (Object.keys(this.data.personParams)?.length) {
this.setData({
selectedScreenPotential: nextSelected,
selectedScreenStore: nextSelected
})
}
if (myTabIdx == 0) {
this.setData({ selectedScreenPotential: nextSelected, scrollTop: 0, setScrollTop: 0 }, () => {
const potential = this.selectComponent('#potentialSection')
...
...
@@ -250,7 +269,7 @@ Page({
if (nextIdx === this.data.myTabIdx) return
this.setData({ myTabIdx: nextIdx, scrollTop: 0, setScrollTop: 0 })
wx.nextTick(() => {
this.setData({ scrollTop: 0, setScrollTop: 0 })
this.setData({ scrollTop: 0, setScrollTop: 0
, scrollLeft: 0
})
const component = nextIdx == 0 ? 'potentialSection' : 'storeSection'
const coms = this.selectComponent(`
#
$
{
component
}
`)
if (coms.getPageData) coms.getPageData()
...
...
pages/tab/customer/customer.wxml
View file @
c317ff7
...
...
@@ -9,7 +9,7 @@
<view wx:for="{{tabList}}" wx:key="index" bindtap="changeMyTab" data-id="{{index}}" class='my-tab-item {{myTabIdx==index ? "tab-item-active": ""}}'>{{item.name}}</view>
</view>
<view class="screen-box">
<scroll-view class="view-container" show-scrollbar="{{false}}" scroll-x>
<scroll-view class="view-container" s
croll-left="{{scrollLeft}}" s
how-scrollbar="{{false}}" scroll-x>
<view class="view-box">
<block wx:for="{{myTabIdx == 0 ? selectedScreenPotential : selectedScreenStore}}" wx:key="index">
<view bindtap="changeScreen" class="view-item" wx:if="{{userInfo.loginRole == 1 ? true : item.key != 'provinces' && item.key != 'salesStaffList'}}">
...
...
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