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 e1034cc0
authored
Nov 04, 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
31b9f202
79a37827
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
39 additions
and
17 deletions
components/CarBrand/CarBrand.js
components/Popup/Popup.js
components/Popup/Popup.wxml
packageCustomer/components/KPIProgress/KPIProgress.js
packageCustomer/components/KPIProgress/KPIProgress.scss
packageCustomer/components/StoreMessage/StoreMessage.js
packageCustomer/components/materialDetails/index.scss
packageCustomer/components/materialDetails/index.wxml
packageCustomer/pages/createPotential/createPotential.js
packageCustomer/pages/createPotential/createPotential.wxml
packageCustomer/pages/createVisit/createVisit.js
packageCustomer/pages/createVisit/createVisit.scss
packageCustomer/pages/createVisit/createVisit.wxml
packageCustomer/pages/potentialDetail/potentialDetail.wxml
packageCustomer/pages/resultFeedback/resultFeedback.js
packageCustomer/pages/resultFeedback/resultFeedback.wxml
utils/track.js
components/CarBrand/CarBrand.js
View file @
e1034cc
...
...
@@ -87,6 +87,9 @@ Component({
},
getBrandList
()
{
let
data
=
wx
.
$storage
.
get
(
'car_brand_list'
)
this
.
setData
({
searchKeyword
:
''
})
if
(
data
)
{
this
.
dealSelectedList
(
Util
.
deepClone
(
data
)).
then
(
brandlist
=>
{
this
.
formatData
(
brandlist
)
...
...
components/Popup/Popup.js
View file @
e1034cc
...
...
@@ -54,6 +54,7 @@ Component({
*/
methods
:
{
noScroll
()
{
},
noop
()
{},
hidePopup
()
{
this
.
setData
({
show
:
false
...
...
components/Popup/Popup.wxml
View file @
e1034cc
<view class="popup custom-class" hidden="{{!showPopup}}" catchtouchmove="noScroll">
<view class="popup-bg"
bind
tap="hidePopup"></view>
<view class="popup-bg"
catch
tap="hidePopup"></view>
<view class="popup-content {{close?'close':''}}" style="height:{{height}}">
<block wx:if="{{title}}">
<view class="popup-title text-center">{{title}}</view>
</block>
<view class="popup-slot {{(isTab || customIsTab) && (!hideTab || !customHideTab) ? '': title?'isFullSucreen':'isFullSucreen-notitle'}}" style="{{customPopupSlotStyle}}">
<view class="popup-slot {{(isTab || customIsTab) && (!hideTab || !customHideTab) ? '': title?'isFullSucreen':'isFullSucreen-notitle'}}" style="{{customPopupSlotStyle}}"
catchtap="noop"
>
<slot></slot>
</view>
<view class="popup-footer {{(isTab || customIsTab) && (!hideTab || !customHideTab) ?'':'isFullSucreen'}}" wx:if="{{only}}">
...
...
packageCustomer/components/KPIProgress/KPIProgress.js
View file @
e1034cc
...
...
@@ -158,8 +158,9 @@ Component({
merchantId
,
businessType
:
businessTypeObj
[
current
]
}
wx
.
$api
.
showLoading
()
CustomerApi
.
getKPIData
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
wx
.
$api
.
hideLoading
(
)
res
?.
forEach
(
val
=>
{
val
.
completed
=
this
.
formatCurrency
(
val
.
completed
)
val
.
target
=
this
.
formatCurrency
(
val
.
target
)
...
...
packageCustomer/components/KPIProgress/KPIProgress.scss
View file @
e1034cc
...
...
@@ -128,8 +128,9 @@
text-align
:
right
;;
}
.col.month
{
flex
:
0
0
56
rpx
;
flex
:
0
0
72
rpx
;
text-align
:
left
;
padding-left
:
16rpx
;
}
.col.rate
{
flex
:
0
0
100rpx
;
text-align
:
left
;
...
...
packageCustomer/components/StoreMessage/StoreMessage.js
View file @
e1034cc
...
...
@@ -63,7 +63,9 @@ Component({
},
getDetailData
()
{
let
{
merchantId
}
=
this
.
data
wx
.
$api
.
showLoading
()
CustomerApi
.
getStoreOverviewData
({
id
:
merchantId
}).
then
(
res
=>
{
wx
.
$api
.
hideLoading
()
res
?.
safetyIndexWarningList
?.
forEach
(
val
=>
{
val
.
cycleIndicator
=
this
.
formatPercent
(
val
.
cycleIndicator
)
val
.
fallbackIndicator
=
this
.
formatPercent
(
val
.
fallbackIndicator
)
...
...
packageCustomer/components/materialDetails/index.scss
View file @
e1034cc
...
...
@@ -3,11 +3,11 @@
margin-bottom
:
200rpx
;
background
:
#FFFFFF
;
width
:
100%
;
padding
:
24
rpx
32rpx
32rpx
32rpx
;
padding
:
16
rpx
32rpx
32rpx
32rpx
;
}
.section
{
margin
:
16rpx
16rpx
24rpx
;
margin
:
16rpx
0
24rpx
;
border-bottom
:
1rpx
solid
#E4E8EE
;
&
:last-child
{
border-bottom
:
0
;
...
...
packageCustomer/components/materialDetails/index.wxml
View file @
e1034cc
...
...
@@ -71,11 +71,11 @@
<view class="card">
<view class="row">
<view class="label">名称</view>
<view class="value">{{m.personnelName}}</view>
<view class="value">{{m.personnelName
|| '-'
}}</view>
</view>
<view class="row">
<view class="label">手机号</view>
<view class="value">{{m.personnelPhone}}</view>
<view class="value">{{m.personnelPhone
|| '-'
}}</view>
</view>
</view>
</view>
...
...
packageCustomer/pages/createPotential/createPotential.js
View file @
e1034cc
...
...
@@ -295,6 +295,7 @@ Page({
let tempFilesList = tempFiles.split('.')
let imgType = tempFilesList[tempFilesList.length - 1]
let type = imgType == 'unknown' ? 'jpg' : imgType
if (res?.tempFiles?.[0]?.size > 10 * 1024 * 1024) return wx.$api.showToast('图片不能大于10M')
wx.getFileSystemManager().readFile({
filePath: tempFiles, //选择图片返回的相对路径
encoding: 'base64', //编码格式
...
...
@@ -422,6 +423,9 @@ Page({
let { code, message } = res
const okText = '我知道了'
if (this.resultDialog) {
this.setData({
textareaDisabled: true
})
if (code == 0) {
this.resultDialog.open({
type: 'success',
...
...
packageCustomer/pages/createPotential/createPotential.wxml
View file @
e1034cc
...
...
@@ -9,7 +9,7 @@
<view class="label">{{item.label}} <text class="star">*</text></view>
<view class="value" bindtap="showPopup" data-target="{{item}}">
<block wx:if="{{item.type == 'textarea'}}">
<textarea value="{{infoData[item.key]}}" class="textarea {{item.disabled ? 'disabled': ''}}" placeholder="请输入" placeholder-class="placeholder-class" auto-height="true" maxlength="{{item.maxLength}}" disabled="{{item.disabled}}" cursor-spacing="16" bindinput="onInput" data-key="{{item.key}}"/>
<textarea value="{{infoData[item.key]}}" class="textarea {{item.disabled ? 'disabled': ''}}" placeholder="请输入" placeholder-class="placeholder-class" auto-height="true" maxlength="{{item.maxLength}}" disabled="{{item.disabled
|| showSelectPopup || textareaDisabled
}}" cursor-spacing="16" bindinput="onInput" data-key="{{item.key}}"/>
</block>
<block wx:else>
<block wx:if="{{infoData[item.key]}}">
...
...
@@ -29,7 +29,7 @@
<view class="label">{{item.label}} <text class="star">*</text></view>
<view class="value" bindtap="showArea" data-type="{{item.type}}">
<block wx:if="{{item.type == 'textarea'}}">
<textarea value="{{infoData[item.key]}}" class="textarea" placeholder="请输入" placeholder-class="placeholder-class" auto-height="true" maxlength="{{item.maxLength}}" cursor-spacing="16" bindinput="onInput" data-key="{{item.key}}"/>
<textarea value="{{infoData[item.key]}}" class="textarea" placeholder="请输入" placeholder-class="placeholder-class" auto-height="true" maxlength="{{item.maxLength}}"
disabled="{{showSelectPopup || textareaDisabled}}"
cursor-spacing="16" bindinput="onInput" data-key="{{item.key}}"/>
</block>
<block wx:else>
<block wx:if="{{infoData[item.key]}}">
...
...
@@ -62,7 +62,7 @@
<view class="label">备注信息</view>
</view>
<view class="textarea-wrap">
<textarea class="textarea" maxlength="200" auto-height placeholder="请输入" placeholder-class="input-ph" value="{{infoData.remark}}" bindinput="onRemarkInput" />
<textarea class="textarea" maxlength="200"
disabled="{{showSelectPopup || textareaDisabled}}"
auto-height placeholder="请输入" placeholder-class="input-ph" value="{{infoData.remark}}" bindinput="onRemarkInput" />
<view class="counter">{{remarkLength}}/200</view>
</view>
</view>
...
...
@@ -101,7 +101,7 @@
<popup show="{{carBrandPopupShow}}" title="选择品牌" bind:hidePopup="hideBrandPopup" customPopupSlotStyle="{{'height: calc(100% - 282rpx)'}}" bindconfirm="brandConfirm" height="90%">
<car-brand id="car-brand" popupShow="{{carBrandPopupShow}}" multiple selectedList="{{selectedMainBrand}}"></car-brand>
</popup>
<select-popup show="{{showSelectPopup}}" options="{{selectOptions}}" multiple="{{selectMultiple}}" values="{{selectValues}}" value="{{selectValue}}" bindconfirm="handlePopupConfirm" title="{{selectTitle}}"></select-popup>
<select-popup show="{{showSelectPopup}}" options="{{selectOptions}}" multiple="{{selectMultiple}}" values="{{selectValues}}" value="{{selectValue}}" bindconfirm="handlePopupConfirm"
bindcancel="hideSelectPopup"
title="{{selectTitle}}"></select-popup>
<select-area show="{{showSelectArea}}" areaList="{{areaList}}" bindconfirm="areaConfirm" bindcancel="areaCancel" value="{{infoData.districtId || ''}}"></select-area>
<!-- 结果弹窗组件:统一反馈弹窗 -->
<result-dialog id="resultDialog" bind:ok="onDialogOk" bind:close="onDialogClose" />
\ No newline at end of file
packageCustomer/pages/createVisit/createVisit.js
View file @
e1034cc
...
...
@@ -149,6 +149,7 @@ Page({
let
tempFilesList
=
tempFiles
.
split
(
'.'
)
let
imgType
=
tempFilesList
[
tempFilesList
.
length
-
1
]
let
type
=
imgType
==
'unknown'
?
'jpg'
:
imgType
if
(
res
?.
tempFiles
?.[
0
]?.
size
>
10
*
1024
*
1024
)
return
wx
.
$api
.
showToast
(
'图片不能大于10M'
)
wx
.
getFileSystemManager
().
readFile
({
filePath
:
tempFiles
,
//选择图片返回的相对路径
encoding
:
'base64'
,
//编码格式
...
...
@@ -191,7 +192,7 @@ Page({
async
getLocation
()
{
try
{
const
loc
=
await
wx
.
getLocation
(
{
type
:
"gcj02"
}
)
const
loc
=
await
wx
.
getLocation
()
const
{
latitude
,
longitude
}
=
loc
wx
.
$api
.
showLoading
()
const
res
=
await
mapApi
.
detailedAdrress
([
latitude
,
longitude
])
...
...
@@ -231,6 +232,9 @@ Page({
const
okText
=
'我知道了'
let
{
code
,
message
}
=
res
if
(
this
.
resultDialog
)
{
this
.
setData
({
textareaDisabled
:
true
})
if
(
code
==
0
)
{
this
.
resultDialog
.
open
({
type
:
'success'
,
...
...
packageCustomer/pages/createVisit/createVisit.scss
View file @
e1034cc
...
...
@@ -95,6 +95,8 @@ page {
.image_content
{
width
:
160rpx
;
height
:
160rpx
;
border-radius
:
8rpx
;
overflow
:
hidden
;
position
:
relative
;
.image_box
{
width
:
100%
;
...
...
packageCustomer/pages/createVisit/createVisit.wxml
View file @
e1034cc
...
...
@@ -24,7 +24,7 @@
<view class="label">拜访内容 <text class="star">*</text></view>
</view>
<view class="textarea-wrap">
<textarea class="textarea" placeholder="请输入" placeholder-class="input-ph" value="{{infoData.content}}" bindinput="onContentInput" />
<textarea class="textarea" placeholder="请输入"
disabled="{{timeVisible || textareaDisabled}}"
placeholder-class="input-ph" value="{{infoData.content}}" bindinput="onContentInput" />
<view class="counter">{{contentLength}}/100</view>
</view>
<view class="row no-border">
...
...
packageCustomer/pages/potentialDetail/potentialDetail.wxml
View file @
e1034cc
...
...
@@ -59,7 +59,7 @@
</view>
</scroll-view>
<!-- 底部固定操作条:新增拜访 -->
<view class="bottom-bar" wx:if="{{tabIndex != 1 && userInfo.loginRole != 1 && infoDetail.potentialCustomersStatus == 1}}">
<view class="bottom-bar" wx:if="{{tabIndex != 1 && userInfo.loginRole != 1 && infoDetail.potentialCustomersStatus == 1
&& pageQuery.isSelf == 1
}}">
<view class="inner safe-area-bottom">
<view class="btn" bind:tap="onCreateVisit">新增拜访</view>
</view>
...
...
packageCustomer/pages/resultFeedback/resultFeedback.js
View file @
e1034cc
...
...
@@ -186,6 +186,9 @@ Page({
const
okText
=
'我知道了'
let
{
code
,
message
}
=
res
if
(
this
.
resultDialog
)
{
this
.
setData
({
textareaDisabled
:
true
})
if
(
code
==
0
)
{
this
.
resultDialog
.
open
({
type
:
'success'
,
...
...
packageCustomer/pages/resultFeedback/resultFeedback.wxml
View file @
e1034cc
...
...
@@ -34,14 +34,14 @@
<view class="label">分润规则<text class="star">*</text></view>
</view>
<view class="textarea-wrap">
<textarea class="textarea" maxlength="50" placeholder="请输入" placeholder-class="input-ph" value="{{infoData.profitRule}}" bindinput="onProfitInput" />
<textarea class="textarea" maxlength="50"
disabled="{{timeVisible || textareaDisabled}}"
placeholder="请输入" placeholder-class="input-ph" value="{{infoData.profitRule}}" bindinput="onProfitInput" />
<view class="counter">{{profitLength}}/50</view>
</view>
<view class="row no-border">
<view class="label">上架产品信息 <text class="star">*</text></view>
</view>
<view class="textarea-wrap">
<textarea class="textarea" maxlength="50" placeholder="请输入" placeholder-class="input-ph" value="{{infoData.productShelfInfo}}" bindinput="onProductInput" />
<textarea class="textarea" maxlength="50"
disabled="{{timeVisible || textareaDisabled}}"
placeholder="请输入" placeholder-class="input-ph" value="{{infoData.productShelfInfo}}" bindinput="onProductInput" />
<view class="counter">{{productLength}}/50</view>
</view>
</block>
...
...
utils/track.js
View file @
e1034cc
...
...
@@ -138,6 +138,7 @@ class TRACK {
item
=
{
loginAccount
:
userInfo
?.
name
,
uuid
:
userInfo
?.
uuid
,
userType
:
userInfo
?.
loginRole
,
// 1 总监 2 大区经理 3 销售人员
systemSource
:
5
,
eventTime
:
new
Date
().
format
(
'yyyy-MM-dd hh:mm:ss'
),
eventType
,
...
...
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