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 d79c5a58
authored
Aug 25, 2023
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改
1 parent
8311ec21
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
19 deletions
packageMine/components/selectServiceConfirm/selectServiceConfirm.js
packageMine/components/selectServiceConfirm/selectServiceConfirm.wxml
packageMine/pages/staffManage/createStaff/createStaff.js
packageMine/pages/staffManage/createStaff/createStaff.json
packageMine/pages/staffManage/createStaff/createStaff.wxml
packageMine/components/selectServiceConfirm/selectServiceConfirm.js
View file @
d79c5a5
...
@@ -31,8 +31,7 @@ Component({
...
@@ -31,8 +31,7 @@ Component({
}
}
},
},
serviceList
:
Array
,
serviceList
:
Array
,
selectInfo
:
Object
,
selectInfo
:
Object
tabBarStyle
:
String
},
},
/**
/**
...
...
packageMine/components/selectServiceConfirm/selectServiceConfirm.wxml
View file @
d79c5a5
<!--packagesList/mineDetail/pages/staffManage/selectServicePage.wxml-->
<!--packagesList/mineDetail/pages/staffManage/selectServicePage.wxml-->
<view class="select-service-page" hidden="{{!show}}"
style="margin-top:{{tabBarStyle}}px;"
>
<view class="select-service-page" hidden="{{!show}}">
<view class="search-content">
<view class="search-content">
<view class="search-box">
<view class="search-box">
<view class="search-input">
<view class="search-input">
...
@@ -23,13 +23,10 @@
...
@@ -23,13 +23,10 @@
</view>
</view>
<scroll-view
<scroll-view
scroll-y
scroll-y
enable-back-to-top
refresher-enabled="{{true}}"
bindrefresherrefresh="refreshList"
refresher-threshold="104"
scroll-top="{{scrollTop}}"
scroll-top="{{scrollTop}}"
class="list"
class="list"
style="height:calc(100vh - 108rpx - {{tabBarStyle}}px)"
class="isFullSucreen"
style="height:calc(100% - 108rpx)"
data-type="message"
data-type="message"
refresher-triggered="{{triggered}}">
refresher-triggered="{{triggered}}">
<block wx:for="{{serviceList}}" wx:key="index">
<block wx:for="{{serviceList}}" wx:key="index">
...
...
packageMine/pages/staffManage/createStaff/createStaff.js
View file @
d79c5a5
...
@@ -66,6 +66,7 @@ Page({
...
@@ -66,6 +66,7 @@ Page({
staffBusinessTypeStr: optionsInfo.staffBusinessType == 0 ? '驻店' : optionsInfo.staffBusinessType == 1 ? '技师' : '',
staffBusinessTypeStr: optionsInfo.staffBusinessType == 0 ? '驻店' : optionsInfo.staffBusinessType == 1 ? '技师' : '',
staffTypeSelectInfo: optionsInfo?.staffBusinessType ? {staffBusinessType: optionsInfo?.staffBusinessType} : undefined
staffTypeSelectInfo: optionsInfo?.staffBusinessType ? {staffBusinessType: optionsInfo?.staffBusinessType} : undefined
} : {}
} : {}
if (options?.info) wx.setNavigationBarTitle({ title: '编辑员工' })
this.setData({
this.setData({
addOrEdit: options?.info ? 'edit' : 'add',
addOrEdit: options?.info ? 'edit' : 'add',
'formItems[0].disabled': options?.info ? true : false,
'formItems[0].disabled': options?.info ? true : false,
...
@@ -88,13 +89,6 @@ Page({
...
@@ -88,13 +89,6 @@ Page({
},
},
navbarReady(e) {
let { height, statusBarHeight } = e.detail
this.setData({
tabBarStyle: height / 2 + statusBarHeight
})
},
// 获取服务中心下的客户列表
// 获取服务中心下的客户列表
getConnectionList(e) {
getConnectionList(e) {
mineApi.getConnectionListByServiceAPI({
mineApi.getConnectionListByServiceAPI({
...
...
packageMine/pages/staffManage/createStaff/createStaff.json
View file @
d79c5a5
...
@@ -3,5 +3,5 @@
...
@@ -3,5 +3,5 @@
"select-service-confirm"
:
"../../../components/selectServiceConfirm/selectServiceConfirm"
,
"select-service-confirm"
:
"../../../components/selectServiceConfirm/selectServiceConfirm"
,
"staff-type-popup"
:
"../../../components/staffTypePopup/staffTypePopup"
"staff-type-popup"
:
"../../../components/staffTypePopup/staffTypePopup"
},
},
"navigation
Style"
:
"custom
"
"navigation
BarTitleText"
:
"创建员工
"
}
}
\ No newline at end of file
\ No newline at end of file
packageMine/pages/staffManage/createStaff/createStaff.wxml
View file @
d79c5a5
<!--packagesList/mineDetail/pages/staffManage/createStaff/createStaff.wxml-->
<!--packagesList/mineDetail/pages/staffManage/createStaff/createStaff.wxml-->
<navigation-bar bindnavbarReady="navbarReady" showBack="{{true}}" bindback="back" customBack="{{true}}">
<
!-- <
navigation-bar bindnavbarReady="navbarReady" showBack="{{true}}" bindback="back" customBack="{{true}}">
{{!showServiceConfirm ? (addOrEdit == 'add' ? '创建员工' : '编辑员工') : '选择服务中心'}}
{{!showServiceConfirm ? (addOrEdit == 'add' ? '创建员工' : '编辑员工') : '选择服务中心'}}
</navigation-bar>
</navigation-bar>
-->
<view class="create-staff-page" style="padding-top:{{tabBarStyle}}px;">
<view class="create-staff-page" style="padding-top:{{tabBarStyle}}px;">
<view class="tips" wx:if="{{addOrEdit == 'add'}}">请完善员工资料完成创建:</view>
<view class="tips" wx:if="{{addOrEdit == 'add'}}">请完善员工资料完成创建:</view>
<view class="form-content">
<view class="form-content">
...
@@ -29,5 +29,5 @@
...
@@ -29,5 +29,5 @@
<view class="btn-blue" bindtap="handleConfirm">{{addOrEdit == 'add' ? '提交' : '保存'}}</view>
<view class="btn-blue" bindtap="handleConfirm">{{addOrEdit == 'add' ? '提交' : '保存'}}</view>
</view>
</view>
</view>
</view>
<select-service-confirm show="{{showServiceConfirm}}"
tabBarStyle="{{tabBarStyle}}"
serviceList="{{serviceList}}" selectInfo="{{formData.selectInfo}}" bind:hiddenSelectConfirm="hiddenSelectConfirm"></select-service-confirm>
<select-service-confirm show="{{showServiceConfirm}}" serviceList="{{serviceList}}" selectInfo="{{formData.selectInfo}}" bind:hiddenSelectConfirm="hiddenSelectConfirm"></select-service-confirm>
<staff-type-popup wx:if="{{staffPopupShow}}" bind:hidePopup="handleStaffTypeChange" selectInfo="{{formData.selectInfo}}" staffTypeSelectInfo="{{formData.staffTypeSelectInfo}}" bindconfirm="staffTypeConfiem" popShow="{{staffPopupShow}}" notAll="{{true}}"/>
<staff-type-popup wx:if="{{staffPopupShow}}" bind:hidePopup="handleStaffTypeChange" selectInfo="{{formData.selectInfo}}" staffTypeSelectInfo="{{formData.staffTypeSelectInfo}}" bindconfirm="staffTypeConfiem" popShow="{{staffPopupShow}}" notAll="{{true}}"/>
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