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 5bcc6466
authored
Jun 26, 2026
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
fb35f069
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
122 additions
and
100 deletions
packageMine/pages/staffManage/createStaff/constant/data.js
packageMine/pages/staffManage/createStaff/createStaff.js
packageMine/pages/staffManage/createStaff/createStaff.wxml
project.config.json
packageMine/pages/staffManage/createStaff/constant/data.js
View file @
5bcc646
...
...
@@ -39,8 +39,10 @@ const formItems = [{
props
:
'staffPhone'
,
type
:
'input'
,
inputType
:
'number'
,
disabled
:
false
,
placeholder
:
'请输入手机号码'
,
maxLength
:
11
maxLength
:
11
,
},
{
label
:
'可见客户'
,
props
:
'connectionIds'
,
...
...
packageMine/pages/staffManage/createStaff/createStaff.js
View file @
5bcc646
...
...
@@ -68,11 +68,14 @@ Page({
} : {}
// if
if (options?.info) {
wx.setNavigationBarTitle({ title: '编辑员工' })
wx.setNavigationBarTitle({ title: '编辑员工' })
this.setData({
staffName: data.staffName,
staffPhone: data.staffPhone
})
})
//更新手机号是否可以编辑
this.updatePhoneEdit()
}
this.setData({
addOrEdit: options?.info ? 'edit' : 'add',
...
...
@@ -95,6 +98,12 @@ Page({
onShow() {
},
updatePhoneEdit(){
this.data.formItems.forEach(item=>{
if(item.label =='手机号码') item.disabled = true
})
this.setData({formItems:this.data.formItems})
},
// 获取服务中心下的客户列表
getConnectionList(e) {
mineApi.getConnectionListByServiceAPI({
...
...
packageMine/pages/staffManage/createStaff/createStaff.wxml
View file @
5bcc646
...
...
@@ -8,7 +8,7 @@
<block wx:for="{{formItems}}" wx:key="index">
<view class="label">{{item.label}}<text class="tips">{{item.tips}}</text></view>
<view class="input-box" wx:if="{{item.type == 'input'}}">
<input type="{{item.inputType || 'text'}}" placeholder="{{item.placeholder}}" class="input" bindinput="input" data-name="{{item.props}}" maxlength="{{item.maxLength}}" value="{{formData[item.props]}}" placeholder-class="input-placeholder" />
<input type="{{item.inputType || 'text'}}"
disabled="{{item.disabled}}"
placeholder="{{item.placeholder}}" class="input" bindinput="input" data-name="{{item.props}}" maxlength="{{item.maxLength}}" value="{{formData[item.props]}}" placeholder-class="input-placeholder" />
</view>
<view class="select-box" style="background-color: {{item.disabled ? '#E1E2E6' : ''}}" wx:if="{{item.type == 'select'}}" bindtap="jump" data-type="{{item.pageType}}" data-disabled="{{item.disabled}}">
<view class="name" wx:if="{{formData[item.valueFn]}}">{{formData[item.valueFn]}}</view>
...
...
project.config.json
View file @
5bcc646
{
"appid"
:
"wx2c28337db96364d2"
,
"projectname"
:
"business-assistant"
,
"compileType"
:
"miniprogram"
,
"packOptions"
:
{
"ignore"
:
[],
"include"
:
[]
},
"condition"
:
{
"miniprogram"
:
{
"list"
:
[
{
"name"
:
"看产值"
,
"pathName"
:
"pages/tab/output/output"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
},
{
"name"
:
"携带目标页面"
,
"pathName"
:
"login/loading/loading"
,
"query"
:
"url=%2Fpages%2Ftab%2Fmine%2Fmine%3Fid%3D123"
,
"launchMode"
:
"default"
,
"scene"
:
null
},
{
"name"
:
"选择账号"
,
"pathName"
:
"login/accountItems/accountItems"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
},
{
"name"
:
"个人中心"
,
"pathName"
:
"pages/tab/mine/mine"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
},
{
"name"
:
""
,
"pathName"
:
"login/index/index"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
},
{
"name"
:
"客户管理"
,
"pathName"
:
"pages/mineDetail/customerManagement/customerManagement"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
},
{
"name"
:
"消息盒子"
,
"pathName"
:
"pages/mineDetail/messageBox/messageBox"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
}
]
}
},
"setting"
:
{
"urlCheck"
:
true
,
"coverView"
:
true
,
"postcss"
:
true
,
"lazyloadPlaceholderEnable"
:
true
,
"minified"
:
true
,
"useIsolateContext"
:
false
,
"enhance"
:
true
,
"showShadowRootInWxmlPanel"
:
true
,
"packNpmManually"
:
true
,
"packNpmRelationList"
:
[
{
"packageJsonPath"
:
"./package.json"
,
"miniprogramNpmDistDir"
:
"./"
}
],
"useStaticServer"
:
true
,
"ignoreUploadUnusedFiles"
:
true
,
"babelSetting"
:
{
"ignore"
:
[],
"disablePlugins"
:
[],
"outputPath"
:
""
},
"useCompilerPlugins"
:
[
"sass"
],
"condition"
:
false
},
"editorSetting"
:
{
"tabIndent"
:
"insertSpaces"
,
"tabSize"
:
2
},
"libVersion"
:
"2.27.2"
{
"appid"
:
"wx570d9331f9ace0bd"
,
"projectname"
:
"business-assistant"
,
"compileType"
:
"miniprogram"
,
"packOptions"
:
{
"ignore"
:
[],
"include"
:
[]
},
"condition"
:
{
"miniprogram"
:
{
"list"
:
[
{
"name"
:
"看产值"
,
"pathName"
:
"pages/tab/output/output"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
},
{
"name"
:
"携带目标页面"
,
"pathName"
:
"login/loading/loading"
,
"query"
:
"url=%2Fpages%2Ftab%2Fmine%2Fmine%3Fid%3D123"
,
"launchMode"
:
"default"
,
"scene"
:
null
},
{
"name"
:
"选择账号"
,
"pathName"
:
"login/accountItems/accountItems"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
},
{
"name"
:
"个人中心"
,
"pathName"
:
"pages/tab/mine/mine"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
},
{
"name"
:
""
,
"pathName"
:
"login/index/index"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
},
{
"name"
:
"客户管理"
,
"pathName"
:
"pages/mineDetail/customerManagement/customerManagement"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
},
{
"name"
:
"消息盒子"
,
"pathName"
:
"pages/mineDetail/messageBox/messageBox"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
}
]
}
},
"setting"
:
{
"urlCheck"
:
true
,
"coverView"
:
true
,
"postcss"
:
true
,
"lazyloadPlaceholderEnable"
:
true
,
"minified"
:
true
,
"useIsolateContext"
:
false
,
"enhance"
:
true
,
"showShadowRootInWxmlPanel"
:
true
,
"packNpmManually"
:
true
,
"packNpmRelationList"
:
[
{
"packageJsonPath"
:
"./package.json"
,
"miniprogramNpmDistDir"
:
"./"
}
],
"useStaticServer"
:
true
,
"ignoreUploadUnusedFiles"
:
true
,
"babelSetting"
:
{
"ignore"
:
[],
"disablePlugins"
:
[],
"outputPath"
:
""
},
"useCompilerPlugins"
:
[
"sass"
],
"condition"
:
false
,
"es6"
:
false
,
"compileWorklet"
:
false
,
"uglifyFileName"
:
false
,
"uploadWithSourceMap"
:
true
,
"minifyWXSS"
:
true
,
"minifyWXML"
:
true
,
"localPlugins"
:
false
,
"disableUseStrict"
:
false
,
"swc"
:
false
,
"disableSWC"
:
true
},
"editorSetting"
:
{
"tabIndent"
:
"insertSpaces"
,
"tabSize"
:
2
},
"libVersion"
:
"2.27.2"
,
"simulatorPluginLibVersion"
:
{}
}
\ No newline at end of file
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