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 46f1f4d6
authored
Aug 18, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'develop' into 'master'
Saas+v4.26.0 0817上线后,代码合并。 See merge request
!35
2 parents
1f4d9e20
269f0bf8
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
102 additions
and
31 deletions
api/mineApi/mine.js
api/mineApi/mineService.js
login/loading/loading.js
packageMine/pages/customerManagement/technicianList/constant/data.js
packageMine/pages/customerManagement/technicianList/technicianList.js
packageMine/pages/customerManagement/technicianList/technicianList.scss
packageMine/pages/customerManagement/technicianList/technicianList.wxml
packageMine/pages/staffManage/staffList/staffList.js
pages/tab/output/components/StaffSort/StaffSort.js
pages/tab/output/components/client/client.js
project.config.json
utils/request/environment.js
api/mineApi/mine.js
View file @
46f1f4d
...
@@ -48,6 +48,7 @@ class mineApi {
...
@@ -48,6 +48,7 @@ class mineApi {
}
}
// 获取服务中心下拉筛选 所有服务商数据
// 获取服务中心下拉筛选 所有服务商数据
getServiceCenterListAPI
(
data
)
{
getServiceCenterListAPI
(
data
)
{
// data.querySubPartner = true
return
api
.
post
(
return
api
.
post
(
{
{
method
:
'scrm.api.busassistant.serviceCenter.listByServiceMerchantId'
,
method
:
'scrm.api.busassistant.serviceCenter.listByServiceMerchantId'
,
...
...
api/mineApi/mineService.js
View file @
46f1f4d
...
@@ -46,7 +46,8 @@ const updateService = data => {
...
@@ -46,7 +46,8 @@ const updateService = data => {
const
getTechnicianList
=
data
=>
{
const
getTechnicianList
=
data
=>
{
return
api
.
post
(
return
api
.
post
(
{
{
method
:
'scrm.api.busassistant.technicianConfig.page'
,
// method: 'scrm.api.busassistant.technicianConfig.page',
method
:
'scrm.api.busassistant.staff.findStaffByPage'
,
...
data
...
data
}
}
)
)
...
...
login/loading/loading.js
View file @
46f1f4d
...
@@ -27,6 +27,7 @@ Page({
...
@@ -27,6 +27,7 @@ Page({
*/
*/
onShow
()
{
onShow
()
{
const
appEnter
=
wx
.
getEnterOptionsSync
()
const
appEnter
=
wx
.
getEnterOptionsSync
()
console
.
log
(
appEnter
,
'appEnter'
);
if
(
appEnter
.
scene
==
1037
)
{
if
(
appEnter
.
scene
==
1037
)
{
if
(
Object
.
keys
(
appEnter
.
referrerInfo
).
length
)
{
if
(
Object
.
keys
(
appEnter
.
referrerInfo
).
length
)
{
const
{
extraData
}
=
appEnter
.
referrerInfo
const
{
extraData
}
=
appEnter
.
referrerInfo
...
@@ -34,6 +35,8 @@ Page({
...
@@ -34,6 +35,8 @@ Page({
else
this
.
init
()
else
this
.
init
()
}
else
this
.
init
()
}
else
this
.
init
()
}
else
if
([
1047
,
1048
,
1049
].
includes
(
appEnter
.
scene
))
{
}
else
if
([
1047
,
1048
,
1049
].
includes
(
appEnter
.
scene
))
{
// debugger
console
.
log
(
!
this
.
options
.
scene
,
this
.
options
,
'!this.options.scene'
);
if
(
!
this
.
options
.
scene
)
{
if
(
!
this
.
options
.
scene
)
{
this
.
init
()
this
.
init
()
return
return
...
@@ -169,6 +172,7 @@ Page({
...
@@ -169,6 +172,7 @@ Page({
const
{
sessionId
,
loginUserInfoList
}
=
data
const
{
sessionId
,
loginUserInfoList
}
=
data
var
routeParams
=
{}
var
routeParams
=
{}
var
list
=
[]
var
list
=
[]
console
.
log
(
obj
,
'obj'
);
if
(
obj
.
url
==
'/packagesList/packageOutput/pages/summary'
)
{
if
(
obj
.
url
==
'/packagesList/packageOutput/pages/summary'
)
{
routeParams
=
{
routeParams
=
{
merchantId
:
obj
.
merchantId
,
merchantId
:
obj
.
merchantId
,
...
@@ -182,6 +186,7 @@ Page({
...
@@ -182,6 +186,7 @@ Page({
list
.
push
(
item
+
"="
+
routeParams
[
item
])
list
.
push
(
item
+
"="
+
routeParams
[
item
])
})
})
this
.
options
.
targetPath
=
obj
.
url
+
"?"
+
list
.
join
(
"&"
)
this
.
options
.
targetPath
=
obj
.
url
+
"?"
+
list
.
join
(
"&"
)
this
.
options
.
targetPath
=
'/pages/tab/output/output'
+
"?"
+
list
.
join
(
"&"
)
}
}
setLoginInfo
(
loginUserInfoList
[
0
],
sessionId
)
setLoginInfo
(
loginUserInfoList
[
0
],
sessionId
)
}
else
{
}
else
{
...
...
packageMine/pages/customerManagement/technicianList/constant/data.js
View file @
46f1f4d
const
formRule
=
{
const
phoneRex
=
/^
[
1
]([
3-9
])[
0-9
]{9}
$/
const
editFormRule
=
{
technicianName
:
[{
required
:
true
,
message
:
'技师名称不能为空'
}]
technicianName
:
[{
required
:
true
,
message
:
'技师名称不能为空'
}]
}
}
const
formRule
=
{
technicianName
:
[{
required
:
true
,
message
:
'技师名称不能为空'
}],
technicianPhone
:
[{
required
:
true
,
message
:
'手机号不能为空'
},
{
validator
:
(
rule
,
value
)
=>
{
return
!
phoneRex
.
test
(
value
)
?
{
message
:
'请输入正确的手机号'
}
:
null
}
}]
}
const
formItems
=
[{
const
formItems
=
[{
label
:
'技师'
,
label
:
'技师
名称
'
,
props
:
'technicianName'
,
props
:
'technicianName'
,
type
:
'input'
,
type
:
'input'
,
placeholder
:
'请输入技师的名称'
,
placeholder
:
'请输入技师的名称'
,
maxlength
:
15
maxlength
:
15
},
{
label
:
'手机号'
,
props
:
'technicianPhone'
,
type
:
'input'
,
inputType
:
'number'
,
placeholder
:
'请输入技师的手机号'
,
maxlength
:
11
}]
}]
export
default
{
export
default
{
editFormRule
,
formRule
,
formRule
,
formItems
formItems
}
}
\ No newline at end of file
\ No newline at end of file
packageMine/pages/customerManagement/technicianList/technicianList.js
View file @
46f1f4d
...
@@ -22,14 +22,15 @@ Page({
...
@@ -22,14 +22,15 @@ Page({
formItems
:
constantData
.
formItems
,
formItems
:
constantData
.
formItems
,
targetIdx
:
'-1'
,
targetIdx
:
'-1'
,
target
:
{},
target
:
{},
targetIdx
:
{}
targetIdx
:
{},
isAsk
:
false
},
},
handleInput
(
e
)
{
handleInput
(
e
)
{
let
{
attr
}
=
e
.
currentTarget
.
dataset
let
{
attr
}
=
e
.
currentTarget
.
dataset
let
{
value
}
=
e
.
detail
let
{
value
}
=
e
.
detail
this
.
setData
({
this
.
setData
({
[
'formData.'
+
attr
]:
value
.
replace
(
/
(
^
\s
*
)
|
(\s
*$
)
/g
,
""
)
[
'formData.'
+
attr
]:
value
.
replace
(
/
(
^
\s
*
)
|
(\s
*$
)
/g
,
""
)
})
})
},
},
...
@@ -72,10 +73,10 @@ Page({
...
@@ -72,10 +73,10 @@ Page({
}
}
let
params
=
{
let
params
=
{
...
formData
,
...
formData
,
merchantId
:
customerInfo
.
m
erchantId
,
merchantId
:
customerInfo
.
serviceCenterM
erchantId
,
merchantName
:
customerInfo
.
m
erchantName
merchantName
:
customerInfo
.
serviceCenterM
erchantName
}
}
let
validObj
=
wx
.
$util
.
checkRule
(
formData
,
constantData
.
f
ormRule
)
let
validObj
=
wx
.
$util
.
checkRule
(
formData
,
addOrEdit
==
'add'
?
constantData
.
formRule
:
constantData
.
editF
ormRule
)
if
(
validObj
)
{
if
(
validObj
)
{
wx
.
$api
.
showToast
(
validObj
.
message
)
wx
.
$api
.
showToast
(
validObj
.
message
)
return
return
...
@@ -133,7 +134,7 @@ Page({
...
@@ -133,7 +134,7 @@ Page({
let
_this
=
this
let
_this
=
this
wx
.
showModal
({
wx
.
showModal
({
title
:
'删除'
,
title
:
'删除'
,
content
:
'确认删除'
+
target
.
technician
Name
+
'技师吗?'
,
content
:
'确认删除'
+
target
.
staff
Name
+
'技师吗?'
,
confirmText
:
'确定'
,
confirmText
:
'确定'
,
cancelText
:
'取消'
,
cancelText
:
'取消'
,
confirmColor
:
'#3666FE'
,
confirmColor
:
'#3666FE'
,
...
@@ -168,24 +169,38 @@ Page({
...
@@ -168,24 +169,38 @@ Page({
},
},
getList
(
isReset
=
false
)
{
getList
(
isReset
=
false
)
{
let
{
technicianList
,
pageCof
,
total
,
customerInfo
}
=
this
.
data
let
{
technicianList
,
pageCof
,
total
,
customerInfo
,
isAsk
}
=
this
.
data
let
_this
=
this
if
(
total
==
technicianList
.
length
||
isAsk
)
{
return
true
}
let
params
=
{
let
params
=
{
...
pageCof
,
...
pageCof
,
merchantId
:
customerInfo
.
merchantId
status
:
0
,
merchantNoList
:
[
customerInfo
.
serviceCenterMerchantId
],
// roleName: '技师'
staffBusinessType
:
1
}
}
this
.
setData
({
isAsk
:
true
})
mineServiceApi
.
getTechnicianList
(
params
).
then
(
res
=>
{
mineServiceApi
.
getTechnicianList
(
params
).
then
(
res
=>
{
let
{
list
,
total
}
=
res
let
{
data
,
count
}
=
res
this
.
setData
({
this
.
setData
({
technicianList
:
pageCof
.
pageNum
==
1
?
(
list
||
[])
:
technicianList
.
concat
(
list
),
technicianList
:
pageCof
.
pageNum
==
1
?
(
data
||
[])
:
technicianList
.
concat
(
data
),
[
'pageCof.pageNum'
]:
pageCof
.
pageNum
+
1
,
[
'pageCof.pageNum'
]:
pageCof
.
pageNum
+
1
,
triggered
:
false
,
triggered
:
false
,
total
total
:
count
})
})
if
(
isReset
)
{
if
(
isReset
)
{
this
.
setData
({
this
.
setData
({
scrollTop
:
0
scrollTop
:
0
})
})
}
}
}).
finally
(
function
()
{
_this
.
setData
({
isAsk
:
false
})
})
})
},
},
...
...
packageMine/pages/customerManagement/technicianList/technicianList.scss
View file @
46f1f4d
...
@@ -153,16 +153,32 @@
...
@@ -153,16 +153,32 @@
text-align
:
center
;
text-align
:
center
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
width
:
614rpx
;
width
:
614rpx
;
height
:
440rpx
;
background
:
#FFFFFF
;
background
:
#FFFFFF
;
border-radius
:
32rpx
;
border-radius
:
32rpx
;
.form-box
{
margin
:
32rpx
40rpx
;
text-align
:
left
;
.form
{
.form
{
margin
:
64rpx
40rpx
;
display
:
flex
;
}
.form
:first-child
{
margin-bottom
:
32rpx
;
}
.label
{
width
:
calc
(
100%
-
390rpx
);
height
:
88rpx
;
line-height
:
88rpx
;
font-size
:
28rpx
;
color
:
#323436
;
text-align
:
left
;
text-align
:
left
;
}
.input
{
.input
{
width
:
534
rpx
;
width
:
390
rpx
;
height
:
88rpx
;
height
:
88rpx
;
background
:
#F8F9FC
;
background
:
#F8F9FC
;
border-radius
:
12rpx
;
border-radius
:
12rpx
;
...
@@ -186,10 +202,7 @@
...
@@ -186,10 +202,7 @@
}
}
.dialog-btn
{
.dialog-btn
{
position
:
absolute
;
display
:
flex
;
display
:
flex
;
bottom
:
0
;
left
:
0
;
width
:
100%
;
width
:
100%
;
height
:
110rpx
;
height
:
110rpx
;
line-height
:
110rpx
;
line-height
:
110rpx
;
...
...
packageMine/pages/customerManagement/technicianList/technicianList.wxml
View file @
46f1f4d
...
@@ -15,8 +15,8 @@
...
@@ -15,8 +15,8 @@
<view class="message">
<view class="message">
<glsx-image src="personal/tech_defalut_avatar.png" class="avatar" />
<glsx-image src="personal/tech_defalut_avatar.png" class="avatar" />
<view class="message-text">
<view class="message-text">
<input wx:if="{{item.isEdit}}" type="text" placeholder="{{formItems[0].placeholder}}" maxlength="{{formItems[0].maxlength}}" class="input" value="{{formData.
technician
Name}}" focus="{{item.isEdit}}" placeholder-class="input-placeholder" data-attr="{{formItems[0].props}}" confirm-type="done" bindinput="handleInput" bindblur="handleConfirm" />
<input wx:if="{{item.isEdit}}" type="text" placeholder="{{formItems[0].placeholder}}" maxlength="{{formItems[0].maxlength}}" class="input" value="{{formData.
staff
Name}}" focus="{{item.isEdit}}" placeholder-class="input-placeholder" data-attr="{{formItems[0].props}}" confirm-type="done" bindinput="handleInput" bindblur="handleConfirm" />
<view wx:else class="merchant">{{item.
technician
Name}}</view>
<view wx:else class="merchant">{{item.
staff
Name}}</view>
</view>
</view>
<glsx-image wx:if="{{!item.isEdit}}" src="personal/icon-edit.png" class="icon-edit" bindtap="handleEdit" data-type="edit" data-target="{{item}}" data-idx="{{index}}" />
<glsx-image wx:if="{{!item.isEdit}}" src="personal/icon-edit.png" class="icon-edit" bindtap="handleEdit" data-type="edit" data-target="{{item}}" data-idx="{{index}}" />
</view>
</view>
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<view class="technician_name">
<view class="technician_name">
所属:{{item.merchantName}}
所属:{{item.merchantName}}
</view>
</view>
<view class="time">{{item.created
Dat
e}}</view>
<view class="time">{{item.created
Tim
e}}</view>
</view>
</view>
</view>
</view>
<view class="bottomTips" wx:if="{{technicianList.length == total}}">到底啦!</view>
<view class="bottomTips" wx:if="{{technicianList.length == total}}">到底啦!</view>
...
@@ -41,9 +41,12 @@
...
@@ -41,9 +41,12 @@
<view class="bg" bindtap="handleDialogShow" />
<view class="bg" bindtap="handleDialogShow" />
<view class="content">
<view class="content">
<view class="title">新增技师</view>
<view class="title">新增技师</view>
<view class="form-box">
<view class="form" wx:for="{{formItems}}" wx:key="index">
<view class="form" wx:for="{{formItems}}" wx:key="index">
<view class="label">{{item.label}}<text class="tips">{{item.tips}}</text></view>
<input type="text" placeholder="{{item.placeholder || '请输入' + item.label}}" maxlength="{{item.maxlength}}" class="input" value="{{formData[item.props]}}" type="{{item.inputType || 'text'}}" password="{{item.password}}" placeholder-class="input-placeholder" data-attr="{{item.props}}" bindinput="handleInput" />
<input type="text" placeholder="{{item.placeholder || '请输入' + item.label}}" maxlength="{{item.maxlength}}" class="input" value="{{formData[item.props]}}" type="{{item.inputType || 'text'}}" password="{{item.password}}" placeholder-class="input-placeholder" data-attr="{{item.props}}" bindinput="handleInput" />
</view>
</view>
</view>
<view class="dialog-btn">
<view class="dialog-btn">
<view class="cancel-btn" bindtap="handleCancel">取消</view>
<view class="cancel-btn" bindtap="handleCancel">取消</view>
<view class="default-btn" bindtap="handleConfirm">确定</view>
<view class="default-btn" bindtap="handleConfirm">确定</view>
...
...
packageMine/pages/staffManage/staffList/staffList.js
View file @
46f1f4d
...
@@ -69,12 +69,12 @@ Page({
...
@@ -69,12 +69,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
)
{
...
...
pages/tab/output/components/StaffSort/StaffSort.js
View file @
46f1f4d
...
@@ -116,7 +116,7 @@ Component({
...
@@ -116,7 +116,7 @@ Component({
// 获取服务中心数据
// 获取服务中心数据
getSeviceCenter
()
{
getSeviceCenter
()
{
mineApi
.
getServiceCenterListAPI
({}).
then
(
res
=>
{
mineApi
.
getServiceCenterListAPI
({
querySubPartner
:
true
}).
then
(
res
=>
{
let
data
=
res
||
[]
let
data
=
res
||
[]
let
serviceIds
=
data
.
map
(
val
=>
{
return
val
.
yqMerchantId
})
let
serviceIds
=
data
.
map
(
val
=>
{
return
val
.
yqMerchantId
})
this
.
setData
({
this
.
setData
({
...
...
pages/tab/output/components/client/client.js
View file @
46f1f4d
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
import
outputApi
from
'~/api/outputApi/index'
import
outputApi
from
'~/api/outputApi/index'
import
{
IMG_URL
}
from
'~/utils/constantData'
import
{
IMG_URL
}
from
'~/utils/constantData'
import
{
deleteSecond
}
from
'~/utils/format'
import
{
deleteSecond
}
from
'~/utils/format'
import
{
h5Url
}
from
'~/utils/request/http'
Component
({
Component
({
/**
/**
* 组件的属性列表
* 组件的属性列表
...
@@ -304,7 +305,7 @@ Component({
...
@@ -304,7 +305,7 @@ Component({
}
}
const
{
idx
}
=
e
.
currentTarget
.
dataset
const
{
idx
}
=
e
.
currentTarget
.
dataset
let
obj
=
this
.
data
.
busiTotalList
[
idx
]
let
obj
=
this
.
data
.
busiTotalList
[
idx
]
let
url
=
'https://dj.glsx.com.cn/dj-car-revenue-analysis/#/
?merchantId='
+
obj
?.
merchantId4s
+
'&merchantName='
+
obj
?.
merchantName4s
let
url
=
h5Url
+
'
?merchantId='
+
obj
?.
merchantId4s
+
'&merchantName='
+
obj
?.
merchantName4s
wx
.
$router
.
jumpH5
(
url
)
wx
.
$router
.
jumpH5
(
url
)
},
},
...
...
project.config.json
View file @
46f1f4d
...
@@ -86,7 +86,8 @@
...
@@ -86,7 +86,8 @@
},
},
"useCompilerPlugins"
:
[
"useCompilerPlugins"
:
[
"sass"
"sass"
]
],
"condition"
:
false
},
},
"editorSetting"
:
{
"editorSetting"
:
{
"tabIndent"
:
"insertSpaces"
,
"tabIndent"
:
"insertSpaces"
,
...
...
utils/request/environment.js
View file @
46f1f4d
...
@@ -8,6 +8,10 @@ const mockObj = {
...
@@ -8,6 +8,10 @@ const mockObj = {
test
:
'https://oss-config.dev.glsx.com.cn/mock/63fd6c2034c4d918e2f4df4d/config'
,
test
:
'https://oss-config.dev.glsx.com.cn/mock/63fd6c2034c4d918e2f4df4d/config'
,
product
:
'https://oss-config.test.glsx.com.cn/mock/63ff0b507dc47c4edc786e82/config'
product
:
'https://oss-config.test.glsx.com.cn/mock/63ff0b507dc47c4edc786e82/config'
}
}
const
h5Obj
=
{
test
:
'https://dj.test.glsx.com.cn/dj-car-revenue-analysis/#/'
,
product
:
'https://dj.glsx.com.cn/dj-car-revenue-analysis/#/'
}
/**
/**
*
*
...
@@ -25,7 +29,7 @@ const systemInfo = wx.getSystemInfoSync()
...
@@ -25,7 +29,7 @@ const systemInfo = wx.getSystemInfoSync()
const
manual
=
false
const
manual
=
false
const
release
=
false
const
release
=
false
let
index
=
1
let
index
=
3
// 判断小程序环境
// 判断小程序环境
// develop:开发版(正常开发工具,测试时)
// develop:开发版(正常开发工具,测试时)
...
@@ -163,6 +167,14 @@ let mockUrl = {
...
@@ -163,6 +167,14 @@ let mockUrl = {
preRelease
:
mockObj
.
product
,
preRelease
:
mockObj
.
product
,
prod
:
mockObj
.
product
prod
:
mockObj
.
product
}[
target
[
index
]]
}[
target
[
index
]]
let
h5Url
=
{
ip
:
h5Obj
.
test
,
dev
:
h5Obj
.
test
,
uat
:
h5Obj
.
test
,
preRelease
:
h5Obj
.
product
,
prod
:
h5Obj
.
product
}[
target
[
index
]]
module
.
exports
=
{
module
.
exports
=
{
index
,
index
,
domain
,
domain
,
...
@@ -170,5 +182,6 @@ module.exports = {
...
@@ -170,5 +182,6 @@ module.exports = {
secretKey
,
secretKey
,
djSecretKey
,
djSecretKey
,
defaultMerchantId
,
defaultMerchantId
,
mockUrl
mockUrl
,
h5Url
}
}
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