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 b3f08088
authored
Jul 18, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V4.41.1' into 'master'
上线合并 See merge request
!72
2 parents
ddb74705
290661bd
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
91 additions
and
34 deletions
api/mineApi/mineCustomer.js
packageMine/pages/customerManagement/customerList/customerList.wxml
packageMine/pages/customerManagement/saleList/saleList.js
packageMine/pages/staffManage/createStaff/createStaff.js
packageMine/pages/staffManage/createStaff/createStaff.scss
packageMine/pages/staffManage/createStaff/createStaff.wxml
pages/tab/mine/mine.js
utils/request/environment.js
api/mineApi/mineCustomer.js
View file @
b3f0808
...
@@ -62,11 +62,26 @@ const getSetStaffList = data => {
...
@@ -62,11 +62,26 @@ const getSetStaffList = data => {
)
)
}
}
// 根据门店查场景值
const
getSceneList
=
data
=>
{
return
api
.
post
(
{
method
:
'dj.api.smartcarlife.scenemerchantref.listScene'
,
...
data
,
apiProjectName
:
'djsmart'
},
false
,
'dj'
)
}
export
default
{
export
default
{
getCustomerList
,
getCustomerList
,
saveCustomer
,
saveCustomer
,
updateCustomer
,
updateCustomer
,
getEmployeeList
,
getEmployeeList
,
getInviteCode
,
getInviteCode
,
getSetStaffList
getSetStaffList
,
getSceneList
}
}
\ No newline at end of file
\ No newline at end of file
packageMine/pages/customerManagement/customerList/customerList.wxml
View file @
b3f0808
<!--packageMine/pages/customerManagement/customerList/customerList.wxml-->
<!--packageMine/pages/customerManagement/customerList/customerList.wxml-->
<!-- <wxs src="../index.wxs" module="format" /> -->
<!-- <wxs src="../index.wxs" module="format" /> -->
<van-tabs active="{{active}}" bind:change="tabChange">
<
!-- <
van-tabs active="{{active}}" bind:change="tabChange">
<van-tab name="customer" title="客户"></van-tab>
<van-tab name="customer" title="客户"></van-tab>
<van-tab name="apply" title="开店申请"></van-tab>
<van-tab name="apply" title="开店申请"></van-tab>
</van-tabs>
</van-tabs>
-->
<!-- 客户 -->
<!-- 客户 -->
<view wx:if="{{active == 'customer'}}" class="customer-list-page">
<view wx:if="{{active == 'customer'}}" class="customer-list-page">
<view class="btn_box" bindtap="handleEdit" data-type="add">
<
!-- <
view class="btn_box" bindtap="handleEdit" data-type="add">
<glsx-image src="index/apply.png" class="icon" />
<glsx-image src="index/apply.png" class="icon" />
<text>创建新客户</text>
<text>创建新客户</text>
</view>
</view>
-->
<view class="content-box">
<view class="content-box">
<view class="title-box">
<view class="title-box">
<view class="title">客户数量:<text class="number">{{total < 0 ? 0 : total}}</text>
<view class="title">客户数量:<text class="number">{{total < 0 ? 0 : total}}</text>
...
@@ -22,16 +22,16 @@
...
@@ -22,16 +22,16 @@
</view>
</view>
</view>
</view>
<scroll-view wx:if="{{customerList.length}}" scroll-y enable-back-to-top refresher-enabled="{{true}}" bindrefresherrefresh="onRefreshBottom" bindscrolltolower="scrollonReachBottom" class="list" style="height:calc(100vh - 148rpx - 110rpx);" scroll-top="{{scrollTop}}" refresher-threshold="104" refresher-triggered="{{triggered}}">
<scroll-view wx:if="{{customerList.length}}" scroll-y enable-back-to-top refresher-enabled="{{true}}" bindrefresherrefresh="onRefreshBottom" bindscrolltolower="scrollonReachBottom" class="list" style="height:calc(100vh - 148rpx - 110rpx);" scroll-top="{{scrollTop}}" refresher-threshold="104" refresher-triggered="{{triggered}}">
<view class="item-box" wx:for="{{customerList}}" wx:key="index"
bindtap="handleEdit"
data-type="edit" data-target="{{item}}">
<view class="item-box" wx:for="{{customerList}}" wx:key="index" data-type="edit" data-target="{{item}}">
<view class="top">
<view class="top">
<view class="message">
<view class="message">
<glsx-image src="personal/customer_head.png" class="avatar" />
<glsx-image src="personal/customer_head.png" class="avatar" />
<view class="message-text">
<view class="message-text">
<view class="name">{{item.merchantName}}</view>
<view class="name">{{item.merchantName}}</view>
<view class="tips">{{item.merchantId}} | {{item.contactName}} {{item.phone}}</view>
<view class="tips">{{item.merchantId}} | {{item.contactName
|| ''
}} {{item.phone}}</view>
</view>
</view>
</view>
</view>
<
glsx-image src="personal/arrow_right.png" class="arrow_right" /
>
<
!-- <glsx-image src="personal/arrow_right.png" class="arrow_right" /> --
>
</view>
</view>
<view class="employee-box">
<view class="employee-box">
<view class="employee-list">
<view class="employee-list">
...
...
packageMine/pages/customerManagement/saleList/saleList.js
View file @
b3f0808
...
@@ -109,7 +109,14 @@ Page({
...
@@ -109,7 +109,14 @@ Page({
wx
.
$api
.
hideLoading
()
wx
.
$api
.
hideLoading
()
})
})
},
},
getSceneList
(
merchantId
)
{
let
{
customerInfo
}
=
this
.
data
mineCustomerApi
.
getSceneList
({
merchantId
}).
then
(
res
=>
{
this
.
setData
({
[
'customerInfo.sceneList'
]:
res
||
customerInfo
.
sceneList
||
[]
})
})
},
handleShow
()
{
handleShow
()
{
this
.
setData
({
this
.
setData
({
isTipShow
:
!
this
.
data
.
isTipShow
isTipShow
:
!
this
.
data
.
isTipShow
...
@@ -119,7 +126,7 @@ Page({
...
@@ -119,7 +126,7 @@ Page({
/**
/**
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
(
options
)
{
onLoad
(
options
)
{
if
(
options
?.
isRedirect
)
{
if
(
options
?.
isRedirect
)
{
let
{
merchantId
}
=
options
let
{
merchantId
}
=
options
this
.
setData
({
this
.
setData
({
...
@@ -135,6 +142,9 @@ Page({
...
@@ -135,6 +142,9 @@ Page({
this
.
setData
({
this
.
setData
({
customerInfo
:
res
customerInfo
:
res
})
})
if
(
res
.
merchantId
)
{
this
.
getSceneList
(
res
.
merchantId
)
}
this
.
getList
()
this
.
getList
()
})
})
},
},
...
...
packageMine/pages/staffManage/createStaff/createStaff.js
View file @
b3f0808
...
@@ -95,7 +95,6 @@ Page({
...
@@ -95,7 +95,6 @@ Page({
onShow() {
onShow() {
},
},
// 获取服务中心下的客户列表
// 获取服务中心下的客户列表
getConnectionList(e) {
getConnectionList(e) {
mineApi.getConnectionListByServiceAPI({
mineApi.getConnectionListByServiceAPI({
...
@@ -208,7 +207,7 @@ Page({
...
@@ -208,7 +207,7 @@ Page({
let userInfo = getUserInfo()
let userInfo = getUserInfo()
let params = {
let params = {
merchantNo: formData?.selectInfo?.yqMerchantId,
merchantNo: formData?.selectInfo?.yqMerchantId,
merchantName:
userInfo?.m
erchantName,
merchantName:
formData?.selectInfo?.yqM
erchantName,
type: formData.type,
type: formData.type,
staffUuid: formData?.staffUuid,
staffUuid: formData?.staffUuid,
staffName: formData?.staffName,
staffName: formData?.staffName,
...
@@ -230,9 +229,15 @@ Page({
...
@@ -230,9 +229,15 @@ Page({
message = '新增员工将自动提交审核,审核通过后完成新增。'
message = '新增员工将自动提交审核,审核通过后完成新增。'
params.auditType = 1
params.auditType = 1
} else {
} else {
title = '确定要保存变更吗?',
if (params.staffName == staffName && params.staffPhone == staffPhone) {
message = '变更员工姓名或手机号将自动提交审核,审核通过后完成变更。'
title = '提示',
message = '是否确定修改员工信息?'
} else {
title = '确定要保存变更吗?',
message = '变更员工姓名或手机号将自动提交审核,审核通过后完成变更。'
}
params.auditType = 0
params.auditType = 0
}
}
if (btnName == 'delete') {
if (btnName == 'delete') {
...
@@ -261,6 +266,7 @@ Page({
...
@@ -261,6 +266,7 @@ Page({
if (params.auditType == 0) {
if (params.auditType == 0) {
if (params.staffName == staffName && params.staffPhone == staffPhone) {
if (params.staffName == staffName && params.staffPhone == staffPhone) {
requestEvent = 'updateStaffAPI'
requestEvent = 'updateStaffAPI'
params.merchantName = userInfo?.merchantName
} else {
} else {
params.staffNameNew = params.staffName
params.staffNameNew = params.staffName
params.staffName = staffName
params.staffName = staffName
...
...
packageMine/pages/staffManage/createStaff/createStaff.scss
View file @
b3f0808
/* packagesList/mineDetail/pages/staffManage/createStaff/createStaff.wxss */
/* packagesList/mineDetail/pages/staffManage/createStaff/createStaff.wxss */
.create-staff-page
{
.create-staff-page
{
box-sizing
:
border-box
;
position
:
relative
;
margin
:
20rpx
;
margin
:
20rpx
;
height
:
95vh
;
.tips
{
.tips
{
padding
:
12rpx
;
padding
:
12rpx
;
...
@@ -55,28 +58,50 @@
...
@@ -55,28 +58,50 @@
}
}
.btn
{
.btn
{
position
:
fixed
;
// text-align: center;
bottom
:
16rpx
;
// position: absolute;
left
:
0
;
// bottom: 96rpx;
width
:
calc
(
100%
-
64rpx
);
// left: 50%;
// transform: translateX(-50%);
// right: 0;
margin
:
30rpx
auto
;
width
:
100%
;
// display: flex;
// align-items: center;
// flex-direction: column;
width
:
550rpx
;
height
:
88rpx
;
height
:
88rpx
;
line-height
:
88rpx
;
line-height
:
88rpx
;
text-align
:
center
;
text-align
:
center
;
font-size
:
28rpx
;
font-size
:
28rpx
;
color
:
#FFFFFF
;
color
:
#FFFFFF
;
margin
:
0
32rpx
;
// margin: 0 32rpx;
font-family
:
PingFangSC-Medium
;
font-weight
:
500
;
font-size
:
34rpx
;
border-radius
:
12rpx
;
}
}
.btn-blue
{
.btn-blue
{
background
:
var
(
--
btnColor
);
background
:
var
(
--
btnColor
);
border-radius
:
8rpx
;
//
border-radius: 8rpx;
}
}
.delete
{
.delete
{
bottom
:
106rpx
bottom
:
190rpx
;
}
}
.deleteBtn
{
.deleteBtn
{
margin-top
:
10rpx
;
margin-top
:
20rpx
;
color
:
#3666FE
;
background
:
#FFFFFF
;
}
.cancleBtn
{
margin-top
:
20rpx
;
color
:
#323436
;
background
:
#FFFFFF
;
margin-bottom
:
30rpx
;
}
}
}
}
\ No newline at end of file
\ No newline at end of file
packageMine/pages/staffManage/createStaff/createStaff.wxml
View file @
b3f0808
...
@@ -19,7 +19,8 @@
...
@@ -19,7 +19,8 @@
</view>
</view>
<view class="isFullSucreen btn {{addOrEdit != 'add'?'delete':''}}">
<view class="isFullSucreen btn {{addOrEdit != 'add'?'delete':''}}">
<view class="btn-blue" bindtap="handleConfirm">{{addOrEdit == 'add' ? '提交' : '保存'}}</view>
<view class="btn-blue" bindtap="handleConfirm">{{addOrEdit == 'add' ? '提交' : '保存'}}</view>
<view class="btn-blue deleteBtn" bindtap="handleDelete" wx:if="{{addOrEdit != 'add'}}">删除</view>
<view class="btn-blue deleteBtn " wx:if="{{addOrEdit != 'add'}}" bindtap="handleDelete">删除</view>
<view class="btn-blue cancleBtn" bindtap="back">取消</view>
<!-- <view class="btn-blue" bindtap="handleConfirm">{{addOrEdit == 'add' ? '提交' : '保存'}}</view> -->
<!-- <view class="btn-blue" bindtap="handleConfirm">{{addOrEdit == 'add' ? '提交' : '保存'}}</view> -->
</view>
</view>
</view>
</view>
...
...
pages/tab/mine/mine.js
View file @
b3f0808
...
@@ -41,12 +41,11 @@ Page({
...
@@ -41,12 +41,11 @@ Page({
path
:
'packageMine.staffList'
,
path
:
'packageMine.staffList'
,
isHide
:
true
isHide
:
true
},
},
// 个人中心-客户管理,不再向服务商开放客户管理功能
{
// {
name
:
'客户管理'
,
// name: '客户管理',
path
:
'packageMine.customerList'
,
// path: 'packageMine.customerList',
isHide
:
true
// isHide: true
},
// },
{
{
name
:
'更新日志'
,
name
:
'更新日志'
,
path
:
'packageMine.log'
,
path
:
'packageMine.log'
,
...
@@ -156,8 +155,8 @@ Page({
...
@@ -156,8 +155,8 @@ Page({
judgeIsHide
()
{
judgeIsHide
()
{
let
{
boxItemList
,
userInfo
}
=
this
.
data
let
{
boxItemList
,
userInfo
}
=
this
.
data
//
let nameList = ['服务中心管理', '员工管理', '客户管理']
let
nameList
=
[
'服务中心管理'
,
'员工管理'
,
'客户管理'
]
let
nameList
=
[
'服务中心管理'
,
'员工管理'
]
//
let nameList = ['服务中心管理', '员工管理']
if
(
!
userInfo
.
isSuper
)
{
if
(
!
userInfo
.
isSuper
)
{
nameList
.
forEach
(
item
=>
{
nameList
.
forEach
(
item
=>
{
let
idx
=
boxItemList
.
findIndex
(
k
=>
k
.
name
==
item
)
let
idx
=
boxItemList
.
findIndex
(
k
=>
k
.
name
==
item
)
...
...
utils/request/environment.js
View file @
b3f0808
...
@@ -29,7 +29,7 @@ const systemInfo = wx.getSystemInfoSync()
...
@@ -29,7 +29,7 @@ const systemInfo = wx.getSystemInfoSync()
const
manual
=
false
const
manual
=
false
const
release
=
false
const
release
=
false
let
index
=
2
let
index
=
1
// 判断小程序环境
// 判断小程序环境
// develop:开发版(正常开发工具,测试时)
// develop:开发版(正常开发工具,测试时)
...
@@ -119,7 +119,7 @@ const domain = {
...
@@ -119,7 +119,7 @@ const domain = {
scrm
:
'http://192.168.1.165:8292'
scrm
:
'http://192.168.1.165:8292'
},
},
dev
:
{
dev
:
{
dj
:
'http
s://dj.dev.glsx.com.cn
'
,
dj
:
'http
://192.168.3.122:9203
'
,
scrm
:
'https://scrm.dev.glsx.com.cn'
scrm
:
'https://scrm.dev.glsx.com.cn'
},
},
uat
:
{
uat
:
{
...
@@ -152,7 +152,8 @@ const pathEnum = {
...
@@ -152,7 +152,8 @@ const pathEnum = {
drac
:
'/rop-scrm-entmicro/'
,
drac
:
'/rop-scrm-entmicro/'
,
busassistant
:
'/rop-scrm-busassistant/'
,
busassistant
:
'/rop-scrm-busassistant/'
,
assistant
:
'/rop-scrm-stoassistant/'
,
assistant
:
'/rop-scrm-stoassistant/'
,
smartcarlife
:
'/rop-dj-car-boutique/'
smartcarlife
:
'/rop-dj-car-boutique/'
,
djsmart
:
'/rop-dj-smartcarlife/'
}
}
const
defaultMerchantId
=
{
const
defaultMerchantId
=
{
ip
:
'44184606'
,
ip
:
'44184606'
,
...
...
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