Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e2e0dff2
authored
Jan 13, 2025
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
10c83f18
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
160 additions
and
28 deletions
packageEquity/pages/index/index.js
tabIndex/pages/index/index.js
tabWorkOrder/pages/residentManage/components/accountAllocation/index.sass
tabWorkOrder/pages/residentManage/components/accountAllocation/index.wxml
tabWorkOrder/pages/residentManage/components/timePicker/index.js
tabWorkOrder/pages/residentManage/components/timePicker/index.json
tabWorkOrder/pages/residentManage/components/timePicker/index.sass
tabWorkOrder/pages/residentManage/components/timePicker/index.wxml
tabWorkOrder/pages/residentManage/residentManage.js
tabWorkOrder/pages/residentManage/residentManage.wxml
packageEquity/pages/index/index.js
View file @
e2e0dff
...
@@ -548,6 +548,19 @@ Component({
...
@@ -548,6 +548,19 @@ Component({
icon
:
"supervisorDaily"
,
icon
:
"supervisorDaily"
,
})
})
}
}
if
(
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
.
loginRole
==
5
)
&&
menuList
.
every
((
item
)
=>
item
.
menuText
!=
"驻店管理"
)
)
{
menuList
.
push
({
menuText
:
"驻店管理"
,
path
:
"tabWorkOrder.residentManage"
,
recordId
:
13
,
icon
:
"residentManage"
});
}
this
.
checkIsPadOrNot
();
this
.
checkIsPadOrNot
();
this
.
getData
();
this
.
getData
();
// 隐藏待办事项模块
// 隐藏待办事项模块
...
...
tabIndex/pages/index/index.js
View file @
e2e0dff
...
@@ -1261,6 +1261,20 @@ Page({
...
@@ -1261,6 +1261,20 @@ Page({
path
:
""
,
path
:
""
,
});
});
}
}
if
(
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
.
loginRole
==
5
)
&&
menu
.
every
((
item
)
=>
item
.
name
!=
"驻店管理"
)
)
{
menu
.
push
({
name
:
"驻店管理"
,
url
:
"tabWorkOrder.residentManage"
,
recordId
:
13
,
icon
:
"residentManage"
,
noCheckdailyReport
:
true
,
});
}
this
.
setData
({
this
.
setData
({
menu
,
menu
,
isNoStaff
,
isNoStaff
,
...
...
tabWorkOrder/pages/residentManage/components/accountAllocation/index.sass
View file @
e2e0dff
...
@@ -83,7 +83,16 @@
...
@@ -83,7 +83,16 @@
font-size
:
32rpx
;
font-size
:
32rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
margin-bottom
:
8rpx
;
margin-bottom
:
8rpx
;
white-space
:
nowrap
;
display
:
flex
;
align-items
:
center
;
.staff
{
white-space
:
nowrap
;
max-width
:
204rpx
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
text
{
text
{
font-size
:
28rpx
;
font-size
:
28rpx
;
font-weight
:
normal
;
font-weight
:
normal
;
...
@@ -138,14 +147,15 @@
...
@@ -138,14 +147,15 @@
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
white-space
:
nowrap
;
white-space
:
nowrap
;
width
:calc
(
100
%
-
164rpx
);
width
:
calc
(
100%
-
164rpx
)
;
.yqMerchant-box
{
.yqMerchant-box
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
font-size
:
28rpx
;
font-size
:
28rpx
;
color
:
#292d33
;
color
:
#292d33
;
margin-left
:
16rpx
;
margin-left
:
16rpx
;
width
:calc
(
100
%
-
74rpx
);
width
:
calc
(
100%
-
74rpx
)
;
}
}
.text-hide
{
.text-hide
{
...
@@ -159,7 +169,7 @@
...
@@ -159,7 +169,7 @@
.operation
{
.operation
{
width
:
108rpx
;
width
:
108rpx
;
height
:
44rpx
;
height
:
44rpx
;
position
:
relative
;
}
}
}
}
...
@@ -187,7 +197,8 @@
...
@@ -187,7 +197,8 @@
.store-info
{
.store-info
{
margin-left
:
32rpx
;
margin-left
:
32rpx
;
width
:calc
(
100
%
-
64rpx
);
width
:
calc
(
100%
-
64rpx
)
;
.name
{
.name
{
color
:
#292d33
;
color
:
#292d33
;
font-size
:
24rpx
;
font-size
:
24rpx
;
...
@@ -196,6 +207,7 @@
...
@@ -196,6 +207,7 @@
white-space
:
nowrap
;
white-space
:
nowrap
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
.text-hide
{
.text-hide
{
max-width
:
calc
(
100vw
-
100rpx
)
;
max-width
:
calc
(
100vw
-
100rpx
)
;
overflow
:
hidden
;
overflow
:
hidden
;
...
@@ -272,3 +284,29 @@
...
@@ -272,3 +284,29 @@
.list-not
{
.list-not
{
text-align
:
center
;
text-align
:
center
;
}
}
.operation
{
.switch-text
{
padding
:
0
16rpx
;
width
:
108rpx
;
box-sizing
:
border-box
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
color
:
#ffffff
;
font-size
:
24rpx
;
view
{
position
:
absolute
;
top
:
10rpx
;
z-index
:
99
;
}
}
.active
{
left
:
5rpx
;
}
.disabled
{
left
:
52rpx
;
}
}
\ No newline at end of file
\ No newline at end of file
tabWorkOrder/pages/residentManage/components/accountAllocation/index.wxml
View file @
e2e0dff
<!--tabWorkOrder/pages/residentManage/components/accountAllocation/index.wxml-->
<!--tabWorkOrder/pages/residentManage/components/accountAllocation/index.wxml-->
<view class="container"
wx:if="{{isFlag}}"
>
<view class="container">
<view class="search-input">
<view class="search-input">
<image src="/images/search.png" class="search-icon" />
<image src="/images/search.png" class="search-icon" />
<input type="text" placeholder="员工姓名/手机号查询" class="input" value="{{ staffNameOrPhone }}" placeholder-class="input-placeholder" bindinput="input" bindconfirm="search" />
<input type="text" placeholder="员工姓名/手机号查询" class="input" value="{{ staffNameOrPhone }}" placeholder-class="input-placeholder" bindinput="input" bindconfirm="search" />
...
@@ -10,12 +10,13 @@
...
@@ -10,12 +10,13 @@
</view>
</view>
<view class="info">员工调店分配新门店账号,业务督导需要处理员工的账号管理,若旧门店账号不再使用,请禁用旧账号,请标记勾选员工所在店面</view>
<view class="info">员工调店分配新门店账号,业务督导需要处理员工的账号管理,若旧门店账号不再使用,请禁用旧账号,请标记勾选员工所在店面</view>
<view class="title">账号列表<text>请勾选员工目前调岗在店的门店名称</text></view>
<view class="title">账号列表<text>请勾选员工目前调岗在店的门店名称</text></view>
<block wx:if="{{isFlag}}">
<scroll-view class="account-box" style="height: calc(100vh - var(--fontSize640));" enhanced="{{true}}" show-scrollbar="{{false}}" scroll-y bindscrolltolower="mineReachBottom">
<scroll-view class="account-box" style="height: calc(100vh - var(--fontSize640));" enhanced="{{true}}" show-scrollbar="{{false}}" scroll-y bindscrolltolower="mineReachBottom">
<view class="list" wx:if="{{accountList.length>0}}">
<view class="list" wx:if="{{accountList.length>0}}">
<view class="item" wx:for="{{accountList}}" wx:key="index">
<view class="item" wx:for="{{accountList}}" wx:key="index">
<view class="header">
<view class="header">
<view class="left">
<view class="left">
<view class="name">
{{item.staffName}}
<text>{{item.staffPhone}}</text></view>
<view class="name">
<view class="staff">{{item.staffName}}</view>
<text>{{item.staffPhone}}</text></view>
<view class="tags">
<view class="tags">
<view class="tag" wx:for="{{item.labelArr}}" wx:for-item="tag" wx:for-index="key" wx:key="key">{{businessType[tag]}}</view>
<view class="tag" wx:for="{{item.labelArr}}" wx:for-item="tag" wx:for-index="key" wx:key="key">{{businessType[tag]}}</view>
</view>
</view>
...
@@ -27,7 +28,11 @@
...
@@ -27,7 +28,11 @@
<view class="account-header">
<view class="account-header">
<view class="park-name">账号{{i+1}}<view class="yqMerchant-box"><view class="text-hide">{{account.yqMerchantName}}</view>{{account.yqMerchantId}}</view></view>
<view class="park-name">账号{{i+1}}<view class="yqMerchant-box"><view class="text-hide">{{account.yqMerchantName}}</view>{{account.yqMerchantId}}</view></view>
<view class="operation">
<view class="operation">
<van-switch checked="{{ account.deletedState }}" active-color="#347BFF" inactive-color="#fff" data-index="{{index}}" data-account-index="{{i}}" bind:change="onChange" size="24px" />
<view class="switch-text">
<view class="active" wx:if="{{ account.deletedState}}">启用</view>
<view class="disabled" wx:else>禁用</view>
</view>
<van-switch checked="{{ account.deletedState }}" active-color="#347BFF" inactive-color="#D0D2D6" data-index="{{index}}" data-account-index="{{i}}" bind:change="onChange" size="26px" />
<!-- <switch class="wx-switch-input" checked="{{switch1Checked}}" color="#347BFF" bindchange="switch1Change" /> -->
<!-- <switch class="wx-switch-input" checked="{{switch1Checked}}" color="#347BFF" bindchange="switch1Change" /> -->
</view>
</view>
</view>
</view>
...
@@ -73,6 +78,8 @@
...
@@ -73,6 +78,8 @@
<empty-data />
<empty-data />
</view>
</view>
</scroll-view>
</scroll-view>
</block>
</view>
</view>
<dialog show="{{showModal}}" confirmText="确定" cancelText="取消" showCancelButton success="{{success}}" bindconfirm="dialogConfirm" bindcancel="dialogClose" text="{{dialogText}}">
<dialog show="{{showModal}}" confirmText="确定" cancelText="取消" showCancelButton success="{{success}}" bindconfirm="dialogConfirm" bindcancel="dialogClose" text="{{dialogText}}">
...
...
tabWorkOrder/pages/residentManage/components/timePicker/index.js
View file @
e2e0dff
...
@@ -6,7 +6,21 @@ Component({
...
@@ -6,7 +6,21 @@ Component({
* 组件的属性列表
* 组件的属性列表
*/
*/
properties
:
{
properties
:
{
show
:
Boolean
,
show
:
{
type
:
Boolean
,
observer
:
function
(
n
)
{
if
(
n
)
{
let
date
=
new
Date
().
getTime
();
console
.
log
(
date
)
this
.
setData
({
showPop
:
false
,
start
:
date
,
currentDate
:
date
,
startEffectiveTime
:
new
Date
().
format
(
`yyyy-MM-dd`
)
})
}
}
},
confirmText
:
String
,
confirmText
:
String
,
cancelText
:
String
,
cancelText
:
String
,
showCancelButton
:
Boolean
,
showCancelButton
:
Boolean
,
...
@@ -18,8 +32,18 @@ Component({
...
@@ -18,8 +32,18 @@ Component({
* 组件的初始数据
* 组件的初始数据
*/
*/
data
:
{
data
:
{
timeShow
:
false
,
startEffectiveTime
:
''
,
startEffectiveTime
:
''
,
start
:
''
start
:
''
,
formatter
(
type
,
value
)
{
if
(
type
===
'year'
)
{
return
`
${
value
}
年`
;
}
if
(
type
===
'month'
)
{
return
`
${
value
}
月`
;
}
return
value
},
},
},
/**
/**
...
@@ -27,26 +51,46 @@ Component({
...
@@ -27,26 +51,46 @@ Component({
*/
*/
methods
:
{
methods
:
{
bindDateChange
(
e
)
{
bindDateChange
(
e
)
{
const
{
console
.
log
(
e
)
const
value
value
}
=
e
.
detail
=
e
.
detail
this
.
setData
({
this
.
setData
({
startEffectiveTime
:
value
,
timeShow
:
false
,
currentDate
:
value
,
startEffectiveTime
:
new
Date
(
value
).
format
(
`yyyy-MM-dd`
),
})
})
},
},
confirm
()
{
confirm
()
{
this
.
triggerEvent
(
'confirm'
,{
startEffectiveTime
:
this
.
data
.
startEffectiveTime
})
this
.
triggerEvent
(
'confirm'
,
{
startEffectiveTime
:
this
.
data
.
startEffectiveTime
})
},
},
cancel
()
{
cancel
()
{
this
.
calcelDate
()
this
.
triggerEvent
(
'cancel'
)
this
.
triggerEvent
(
'cancel'
)
},
calcelDate
(){
this
.
setData
({
timeShow
:
false
})
},
showPop
(){
this
.
setData
({
timeShow
:
true
})
}
}
},
},
lifetimes
:{
lifetimes
:
{
attached
(){
attached
()
{
let
date
=
new
Date
().
format
(
`yyyy-MM-dd`
);
let
date
=
new
Date
().
getTime
();
console
.
log
(
date
)
this
.
setData
({
this
.
setData
({
start
:
date
,
showPop
:
false
,
startEffectiveTime
:
date
start
:
date
,
currentDate
:
date
,
startEffectiveTime
:
new
Date
().
format
(
`yyyy-MM-dd`
)
})
})
}
}
}
}
...
...
tabWorkOrder/pages/residentManage/components/timePicker/index.json
View file @
e2e0dff
{
{
"component"
:
true
,
"component"
:
true
,
"usingComponents"
:
{
"usingComponents"
:
{
"van-dialog"
:
"@vant/weapp/dialog/index"
"van-dialog"
:
"@vant/weapp/dialog/index"
,
"van-datetime-picker"
:
"@vant/weapp/datetime-picker/index"
}
}
}
}
\ No newline at end of file
\ No newline at end of file
tabWorkOrder/pages/residentManage/components/timePicker/index.sass
View file @
e2e0dff
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
}
}
.time
{
.time
{
width
:
526rpx
;
//
width: 526rpx;
height
:
96rpx
;
height
:
96rpx
;
border-radius
:
12rpx
;
border-radius
:
12rpx
;
opacity
:
1
;
opacity
:
1
;
...
@@ -48,3 +48,10 @@
...
@@ -48,3 +48,10 @@
}
}
}
}
.footer
{
position
:
fixed
;
bottom
:
0
;
left
:
0
;
right
:
0
;
z-index
:
99999
!
important
;
}
\ No newline at end of file
\ No newline at end of file
tabWorkOrder/pages/residentManage/components/timePicker/index.wxml
View file @
e2e0dff
...
@@ -4,15 +4,21 @@
...
@@ -4,15 +4,21 @@
日期选择
日期选择
</view>
</view>
<view class="label">选择该员工调店日期</view>
<view class="label">选择该员工调店日期</view>
<
picker mode="date" value="{{startEffectiveTime}}" start="{{start}}" bindchange="bindDateChange"
>
<
!-- <picker mode="date" value="{{startEffectiveTime}}" start="{{start}}" bindchange="bindDateChange" picker-options="{{options}}"> --
>
<view class="time
">
<view class="time" bind:tap="showPop
">
<view class="value">{{startEffectiveTime?startEffectiveTime:'请选择'}}</view>
<view class="value">{{startEffectiveTime?startEffectiveTime:'请选择'}}</view>
<image class="solidArrow" src="/tabIndex/images/arrSolid.png" />
<image class="solidArrow" src="/tabIndex/images/arrSolid.png" />
</view>
</view>
</picker>
<!-- </picker> -->
</view>
<view>
</view>
</view>
</van-dialog>
</van-dialog>
<!-- <van-popup show="{{ timeShow }}" position="bottom" custom-style="height: 20%;" bind:close="onClose"> -->
<view class="footer" wx:if="{{timeShow}}">
<van-datetime-picker type="date" value="{{ currentDate }}" bind:confirm="bindDateChange" bind:cancel="calcelDate" min-date="{{ start }}" />
</view>
<!-- </van-popup> -->
\ No newline at end of file
\ No newline at end of file
tabWorkOrder/pages/residentManage/residentManage.js
View file @
e2e0dff
...
@@ -57,8 +57,10 @@ Page({
...
@@ -57,8 +57,10 @@ Page({
onShow
()
{
onShow
()
{
},
},
back
()
{
wx
.
$router
.
back
()
},
changeHandle
(
e
)
{
changeHandle
(
e
)
{
console
.
log
(
e
)
let
{
let
{
index
index
}
=
e
.
currentTarget
.
dataset
;
}
=
e
.
currentTarget
.
dataset
;
...
...
tabWorkOrder/pages/residentManage/residentManage.wxml
View file @
e2e0dff
<navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}">驻店管理-深圳嘀加</navigation-bar>
<navigation-bar bindnavbarReady="navbarReady"
bindback="back" showBack="true"
navStyle="{{navStyle}}">驻店管理-深圳嘀加</navigation-bar>
<view class="bg"></view>
<view class="bg"></view>
<view class="content">
<view class="content">
<view class="tabs" >
<view class="tabs" >
...
...
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