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 86fb273c
authored
Apr 10, 2023
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
技师列表
1 parent
4dcd568f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
2 deletions
packageMine/pages/customerManagement/technicianList/constant/data.js
packageMine/pages/customerManagement/technicianList/technicianList.js
packageMine/pages/customerManagement/technicianList/technicianList.wxml
packageMine/pages/customerManagement/technicianList/constant/data.js
View file @
86fb273
const
formRule
=
{
technicianName
:
[{
required
:
true
,
message
:
'
客户
名称不能为空'
}]
technicianName
:
[{
required
:
true
,
message
:
'
技师
名称不能为空'
}]
}
const
formItems
=
[{
...
...
packageMine/pages/customerManagement/technicianList/technicianList.js
View file @
86fb273
...
...
@@ -60,6 +60,10 @@ Page({
})
},
handleCancel
()
{
this
.
editClear
()
},
handleConfirm
()
{
let
{
formData
,
target
,
customerInfo
,
addOrEdit
}
=
this
.
data
let
apiName
=
{
...
...
@@ -71,7 +75,16 @@ Page({
merchantId
:
customerInfo
.
merchantId
,
merchantName
:
customerInfo
.
merchantName
}
let
validObj
=
wx
.
$util
.
checkRule
(
formData
,
constantData
.
formRule
)
if
(
validObj
)
{
wx
.
$api
.
showToast
(
validObj
.
message
)
return
}
if
(
addOrEdit
==
'edit'
)
{
if
(
target
.
technicianName
==
formData
.
technicianName
)
{
this
.
editClear
()
return
true
}
params
.
id
=
target
.
id
}
wx
.
$api
.
showLoading
(
'加载中...'
)
...
...
packageMine/pages/customerManagement/technicianList/technicianList.wxml
View file @
86fb273
...
...
@@ -45,7 +45,7 @@
<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 class="dialog-btn">
<view class="cancel-btn" bindtap="handle
DialogShow
">取消</view>
<view class="cancel-btn" bindtap="handle
Cancel
">取消</view>
<view class="default-btn" bindtap="handleConfirm">确定</view>
</view>
</view>
...
...
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