Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
party-build-cloud
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangqinghua
party-build-cloud
Commits
8ff06b5b
Commit
8ff06b5b
authored
Aug 14, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日历bug修复
parent
38bb0dd4
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
55 additions
and
72 deletions
+55
-72
food-apply.html
src/pages/serve-pages/food/food-apply/food-apply.html
+4
-3
food-apply.ts
src/pages/serve-pages/food/food-apply/food-apply.ts
+19
-33
food.html
src/pages/serve-pages/food/food.html
+2
-2
food.ts
src/pages/serve-pages/food/food.ts
+10
-10
hair-cut.ts
src/pages/serve-pages/hair-cut/hair-cut.ts
+5
-6
meet-room.ts
src/pages/serve-pages/meet-room/meet-room.ts
+6
-6
use-car.ts
src/pages/serve-pages/use-car/use-car.ts
+4
-6
vistor-register.ts
src/pages/serve-pages/vistor-register/vistor-register.ts
+5
-6
No files found.
src/pages/serve-pages/food/food-apply/food-apply.html
View file @
8ff06b5b
...
...
@@ -23,8 +23,8 @@
<div
class=
"item-box"
>
<div
class=
"left"
><span
class=
"color-red"
>
*
</span>
餐点:
</div>
<div
class=
"right"
style=
"text-align: right"
>
<ion-checkbox
color=
"danger"
(
click
)="
chooseTime
(
1
)"
></ion-checkbox>
<span
style=
"vertical-align: super;margin:10px 2
0px 0 5px"
>
午餐
</span>
<ion-checkbox
color=
"danger"
(
click
)="
chooseTime
(
2
)"
></ion-checkbox>
<span
style=
"vertical-align: super;margin:10px 20px 0 5px"
>
晚餐
</span>
<ion-checkbox
color=
"danger"
(
click
)="
chooseTime
(
1
)"
[
checked
]="
obj
.
typeList
.
includes
(
1
)"
></ion-checkbox>
<span
style=
"vertical-align: super;margin:10px 4
0px 0 5px"
>
午餐
</span>
<ion-checkbox
color=
"danger"
(
click
)="
chooseTime
(
2
)"
[
checked
]="
obj
.
typeList
.
includes
(
2
)"
></ion-checkbox>
<span
style=
"vertical-align: super;margin:10px 20px 0 5px"
>
晚餐
</span>
</div>
</div>
<ion-item>
...
...
@@ -35,11 +35,12 @@
</ion-item>
<ion-item>
<ion-label
class=
"item-left"
><span
class=
"color-red"
>
*
</span>
标准:
</ion-label>
<ion-label
(
click
)="
chooseStandard
()"
[
ngStyle
]="{'
color
'
:obj
.
standardText =
=
'请选择'?'#
999
'
:
'#
333
'}"
<ion-label
*
ngIf=
"obj.standard != '3' "
(
click
)="
chooseStandard
()"
[
ngStyle
]="{'
color
'
:obj
.
standardText =
=
'请选择'?'#
999
'
:
'#
333
'}"
class=
"choose"
>
{{obj.standardText}}
</ion-label>
<ion-label
class=
"right-arrow"
(
click
)="
chooseStandard
()"
>
<ion-icon
name=
"arrow-forward"
></ion-icon>
</ion-label>
<ion-input
class=
"padding-right-10"
*
ngIf=
"obj.standard == '3' "
[(
ngModel
)]="
obj
.
amount
"
placeholder=
"请选择用餐标准"
></ion-input>
<ion-label
*
ngIf=
"checkObj.standard"
class=
"check-tips"
>
请选择标准
</ion-label>
</ion-item>
<div
class=
"item-box"
>
...
...
src/pages/serve-pages/food/food-apply/food-apply.ts
View file @
8ff06b5b
...
...
@@ -14,7 +14,7 @@ export class FoodApplyPage {
obj
=
{
orderDate
:
null
,
type
:
[],
type
List
:
[],
typeText
:
'请选择'
,
peopleCount
:
''
,
standard
:
''
,
...
...
@@ -25,7 +25,7 @@ export class FoodApplyPage {
checkObj
=
{
orderDate
:
false
,
type
:
false
,
type
List
:
false
,
peopleCount
:
false
,
standard
:
false
,
};
...
...
@@ -61,12 +61,18 @@ export class FoodApplyPage {
}
}
//用
车
详情
//用
餐
详情
meetDetail
()
{
this
.
serveSer
.
detailMeals
(
this
.
applyId
).
subscribe
(
(
res
)
=>
{
if
(
res
)
{
this
.
obj
.
orderDate
=
res
.
data
.
orderDate
;
this
.
obj
.
standard
=
res
.
data
.
standard
;
this
.
obj
.
standardText
=
res
.
data
.
standard
+
"元"
;
this
.
obj
.
peopleCount
=
res
.
data
.
peopleCount
;
this
.
obj
.
amount
=
res
.
data
.
amount
;
this
.
obj
.
typeList
=
res
.
data
.
typeList
;
this
.
obj
.
remark
=
res
.
data
.
remark
;
}
}
)
...
...
@@ -74,11 +80,11 @@ export class FoodApplyPage {
// 选择时间点
chooseTime
(
type
)
{
const
index
=
this
.
obj
.
type
.
indexOf
(
type
);
if
(
index
===
-
1
)
{
this
.
obj
.
type
.
push
(
type
);
}
else
{
this
.
obj
.
type
.
splice
(
index
,
0
);
const
index
=
this
.
obj
.
type
List
.
indexOf
(
type
);
if
(
index
===
-
1
)
{
this
.
obj
.
type
List
.
push
(
type
);
}
else
{
this
.
obj
.
type
List
.
splice
(
index
,
0
);
}
}
...
...
@@ -106,8 +112,6 @@ export class FoodApplyPage {
text
:
'其他'
,
handler
:
()
=>
{
this
.
obj
.
standard
=
'3'
;
this
.
obj
.
standardText
=
'15元'
;
this
.
obj
.
amount
=
'15'
;
}
},
{
text
:
'取消'
,
...
...
@@ -124,24 +128,6 @@ export class FoodApplyPage {
actionSheet
.
present
();
}
//选择人员
choose
()
{
let
modal
=
this
.
modalCtrl
.
create
(
PersonMulComponent
,
{
enterAnimation
:
'modal-scale-enter'
,
leaveAnimation
:
'modal-scale-leave'
});
modal
.
onDidDismiss
(
data
=>
{
if
(
data
)
{
this
.
personList
=
data
;
}
});
modal
.
present
();
}
//移除人员
removePerson
(
index
)
{
this
.
personList
.
splice
(
index
,
1
);
}
//提交申请
submit
()
{
...
...
@@ -165,15 +151,15 @@ export class FoodApplyPage {
this
.
personList
.
forEach
(
e
=>
{
carUser
.
push
(
e
.
id
);
});
const
data
=
{
orderDate
:
this
.
datePipe
.
transform
(
this
.
obj
.
orderDate
,
'yyyy-MM-dd'
),
type
:
this
.
obj
.
type
,
const
data
=
<
any
>
{
orderDate
:
this
.
datePipe
.
transform
(
this
.
obj
.
orderDate
,
'yyyy-MM-dd'
),
type
List
:
this
.
obj
.
typeList
,
peopleCount
:
this
.
obj
.
peopleCount
,
standard
:
this
.
obj
.
peopleCount
,
amount
:
this
.
obj
.
amount
,
remark
:
this
.
obj
.
remark
,
};
console
.
log
(
data
)
;
if
(
this
.
applyId
)
data
.
id
=
this
.
applyId
;
this
.
commonSer
.
alert
(
'确认提交?'
,
()
=>
{
this
.
serveSer
.
saveMeals
(
data
).
subscribe
(
(
res
)
=>
{
...
...
src/pages/serve-pages/food/food.html
View file @
8ff06b5b
...
...
@@ -28,7 +28,7 @@
<ion-content>
<ion-content
direction=
"y"
scrollbar-y=
"true"
class=
"bgc-e7e8ed"
>
<ng-container
*
ngIf=
"changeType == 1"
>
<ion-calendar
[(
ngModel
)]="
date
"
<ion-calendar
#
calendar
[(
ngModel
)]="
date
"
(
onChange
)="
getDate
($
event
)"
[
options
]="
options
"
type=
"string"
...
...
@@ -50,7 +50,7 @@
<p>
未审核
</p>
<div
class=
"morning"
>
<div
class=
"morning-room"
>
<span
(
click
)="
goApply
()"
*
ngFor=
"let item3 of room?.unChecked
List"
>
<span
(
click
)="
goApply
Edit
(
item3
)"
*
ngFor=
"let item3 of room?.uncheck
List"
>
<span
*
ngIf=
"item3?.type == 1"
>
午餐
</span>
<span
*
ngIf=
"item3?.type == 2"
>
晚餐
</span>
{{item3.orgName}}等{{item3.peopleCount}}人,标准:{{item3.total}}元
</span>
...
...
src/pages/serve-pages/food/food.ts
View file @
8ff06b5b
import
{
Component
}
from
'@angular/core'
;
import
{
Component
,
ViewChild
}
from
'@angular/core'
;
import
{
IonicPage
,
NavController
,
NavParams
}
from
'ionic-angular'
;
import
{
CalendarComponentOptions
}
from
"ion2-calendar"
;
import
{
CalendarComponent
,
CalendarComponent
Options
}
from
"ion2-calendar"
;
import
{
monthCh
,
weekDay
}
from
"../../../app/main"
;
import
{
AppGlobal
}
from
"../../../service/http.service"
;
import
{
ServeService
}
from
"../serve.service"
;
import
{
DatePipe
}
from
"@angular/common"
;
import
{
CommonService
}
from
"../../../provide/common.service"
;
import
{
AppMainService
}
from
"../../../app/app.service"
;
import
{
RoomDealPage
}
from
"../meet-room/room-deal/room-deal"
;
import
{
RoomApplyPage
}
from
"../meet-room/room-apply/room-apply"
;
import
{
FoodApplyPage
}
from
"./food-apply/food-apply"
;
import
{
FoodDealPage
}
from
"./food-deal/food-deal"
;
...
...
@@ -19,9 +17,10 @@ import {FoodDealPage} from "./food-deal/food-deal";
templateUrl
:
'food.html'
,
})
export
class
FoodPage
{
@
ViewChild
(
'calendar'
)
calendar
:
CalendarComponent
;
date
;
changeType
=
1
;
date
=
new
Date
();
options
:
CalendarComponentOptions
=
{
from
:
new
Date
(
2000
,
0
,
1
),
monthFormat
:
'YYYY 年 MM 月 '
,
...
...
@@ -35,7 +34,6 @@ export class FoodPage {
mineInfo
;
room
;
applyList
=
[];
selectDate
;
pageNumber
=
1
;
pageSize
=
AppGlobal
.
pageCount
;
...
...
@@ -45,15 +43,17 @@ export class FoodPage {
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
private
serveSer
:
ServeService
,
public
datePipe
:
DatePipe
,
private
commonSer
:
CommonService
,
private
appMainSer
:
AppMainService
)
{
console
.
log
(
this
.
calendar
);
}
ionViewDidEnter
(){
this
.
myApply
();
this
.
selectDate
=
this
.
datePipe
.
transform
(
new
Date
(),
'yyyy-MM-dd'
);
this
.
getApply
();
}
ionViewDidLoad
()
{
this
.
date
=
this
.
datePipe
.
transform
(
new
Date
(),
'yyyy-MM-dd'
);
//获取权限
this
.
appMainSer
.
role
.
subscribe
(
value
=>
{
this
.
role
=
value
;
...
...
@@ -68,7 +68,7 @@ export class FoodPage {
//获取预定日程
getApply
()
{
const
data
=
{
'dateStr'
:
this
.
selectD
ate
};
const
data
=
{
'dateStr'
:
this
.
d
ate
};
this
.
serveSer
.
mealsQueryByDate
(
data
).
subscribe
(
(
res
)
=>
{
this
.
room
=
res
.
data
;
...
...
@@ -77,7 +77,7 @@ export class FoodPage {
}
getDate
(
e
)
{
this
.
selectD
ate
=
e
;
this
.
d
ate
=
e
;
this
.
getApply
();
}
...
...
@@ -127,7 +127,7 @@ export class FoodPage {
goApplyEdit
(
item
)
{
if
(
this
.
role
.
includes
(
0
))
return
false
;
//普通人不可编辑
if
(
this
.
role
.
includes
(
1
)
&&
item
.
orgName
!=
this
.
mineInfo
.
orgName
)
return
false
;
//内勤只能编辑本处室的
this
.
navCtrl
.
push
(
RoomApplyPage
,
{
id
:
item
.
applyI
d
});
this
.
navCtrl
.
push
(
FoodApplyPage
,
{
id
:
item
.
i
d
});
}
//新增申请
...
...
src/pages/serve-pages/hair-cut/hair-cut.ts
View file @
8ff06b5b
...
...
@@ -19,7 +19,7 @@ import {TabsService} from "../../tabs/tabs.service";
export
class
HairCutPage
{
changeType
=
1
;
date
=
new
Date
()
;
date
;
options
:
CalendarComponentOptions
=
{
from
:
new
Date
(
2000
,
0
,
1
),
monthFormat
:
'YYYY 年 MM 月 '
,
...
...
@@ -32,7 +32,6 @@ export class HairCutPage {
room
;
applyList
=
[];
role
=
[];
selectDate
;
pageNumber
=
1
;
pageSize
=
AppGlobal
.
pageCount
;
...
...
@@ -48,11 +47,11 @@ export class HairCutPage {
ionViewDidEnter
()
{
this
.
myApply
();
this
.
selectDate
=
this
.
datePipe
.
transform
(
new
Date
(),
'yyyy-MM-dd'
);
this
.
getApply
();
}
ionViewDidLoad
()
{
this
.
date
=
this
.
datePipe
.
transform
(
new
Date
(),
'yyyy-MM-dd'
);
//获取权限
this
.
appMainSer
.
role
.
subscribe
(
value
=>
{
...
...
@@ -70,7 +69,7 @@ export class HairCutPage {
//获取预定日程
getApply
()
{
const
data
=
{
'dateStr'
:
this
.
selectD
ate
};
const
data
=
{
'dateStr'
:
this
.
d
ate
};
this
.
serveSer
.
queryAppointmentByDate
(
data
).
subscribe
(
(
res
)
=>
{
this
.
room
=
res
.
data
;
...
...
@@ -115,7 +114,7 @@ export class HairCutPage {
}
getDate
(
e
)
{
this
.
selectD
ate
=
e
;
this
.
d
ate
=
e
;
this
.
getApply
();
}
...
...
@@ -130,7 +129,7 @@ export class HairCutPage {
let
data
;
if
(
item
)
{
data
=
{
date
:
this
.
selectD
ate
,
date
:
this
.
d
ate
,
startEnd
:
item
.
startEnd
}
}
...
...
src/pages/serve-pages/meet-room/meet-room.ts
View file @
8ff06b5b
...
...
@@ -18,7 +18,7 @@ import {RoomDealPage} from "./room-deal/room-deal";
export
class
MeetRoomPage
{
changeType
=
1
;
date
=
new
Date
()
;
date
;
options
:
CalendarComponentOptions
=
{
from
:
new
Date
(
2000
,
0
,
1
),
monthFormat
:
'YYYY 年 MM 月 '
,
...
...
@@ -32,7 +32,6 @@ export class MeetRoomPage {
mineInfo
;
room
;
applyList
=
[];
selectDate
;
pageNumber
=
1
;
pageSize
=
AppGlobal
.
pageCount
;
...
...
@@ -46,12 +45,13 @@ export class MeetRoomPage {
ionViewDidEnter
(){
this
.
myApply
();
this
.
selectDate
=
this
.
datePipe
.
transform
(
new
Date
(),
'yyyy-MM-dd'
);
this
.
getApply
();
}
ionViewDidLoad
()
{
this
.
date
=
this
.
datePipe
.
transform
(
new
Date
(),
'yyyy-MM-dd'
);
//获取权限
this
.
appMainSer
.
role
.
subscribe
(
value
=>
{
this
.
role
=
value
;
...
...
@@ -66,7 +66,7 @@ export class MeetRoomPage {
//获取预定日程
getApply
()
{
const
data
=
{
'dateStr'
:
this
.
selectD
ate
};
const
data
=
{
'dateStr'
:
this
.
d
ate
};
this
.
serveSer
.
queryMeetingRoomByDate
(
data
).
subscribe
(
(
res
)
=>
{
this
.
room
=
res
.
data
;
...
...
@@ -75,7 +75,7 @@ export class MeetRoomPage {
}
getDate
(
e
)
{
this
.
selectD
ate
=
e
;
this
.
d
ate
=
e
;
this
.
getApply
();
}
...
...
@@ -138,7 +138,7 @@ export class MeetRoomPage {
roomId
:
item
.
id
,
roomName
:
item
.
name
,
equipmervice
:
item
.
equipmervice
,
startTime
:
this
.
selectD
ate
+
' 9:00:00'
,
startTime
:
this
.
d
ate
+
' 9:00:00'
,
};
}
this
.
navCtrl
.
push
(
RoomApplyPage
,
{
data
:
data
});
...
...
src/pages/serve-pages/use-car/use-car.ts
View file @
8ff06b5b
...
...
@@ -19,7 +19,7 @@ import {CarDealPage} from "./car-deal/car-deal";
export
class
UseCarPage
{
changeType
=
1
;
date
=
new
Date
()
;
date
;
options
:
CalendarComponentOptions
=
{
from
:
new
Date
(
2000
,
0
,
1
),
monthFormat
:
'YYYY 年 MM 月 '
,
...
...
@@ -33,7 +33,6 @@ export class UseCarPage {
applyList
=
[];
role
=
[];
mineInfo
;
selectDate
;
pageNumber
=
1
;
pageSize
=
AppGlobal
.
pageCount
;
...
...
@@ -52,12 +51,11 @@ export class UseCarPage {
ionViewDidEnter
(){
this
.
myApply
();
this
.
selectDate
=
this
.
datePipe
.
transform
(
new
Date
(),
'yyyy-MM-dd'
);
this
.
getApply
();
}
ionViewDidLoad
()
{
this
.
date
=
this
.
datePipe
.
transform
(
new
Date
(),
'yyyy-MM-dd'
);
//获取权限
this
.
appMainSer
.
role
.
subscribe
(
value
=>
{
this
.
role
=
value
;
...
...
@@ -72,7 +70,7 @@ export class UseCarPage {
//获取预定日程
getApply
()
{
const
data
=
{
'dateStr'
:
this
.
selectD
ate
};
const
data
=
{
'dateStr'
:
this
.
d
ate
};
this
.
serveSer
.
queryCarApplyByDate
(
data
).
subscribe
(
(
res
)
=>
{
this
.
checkObj
.
checkedApplyList
=
res
.
data
.
checkedApplyList
;
...
...
@@ -82,7 +80,7 @@ export class UseCarPage {
}
getDate
(
e
)
{
this
.
selectD
ate
=
e
;
this
.
d
ate
=
e
;
this
.
getApply
();
}
...
...
src/pages/serve-pages/vistor-register/vistor-register.ts
View file @
8ff06b5b
...
...
@@ -19,7 +19,7 @@ import {VistorApplyPage} from "./vistor-apply/vistor-apply";
})
export
class
VistorRegisterPage
{
changeType
=
1
;
date
=
new
Date
()
;
date
;
options
:
CalendarComponentOptions
=
{
from
:
new
Date
(
2000
,
0
,
1
),
monthFormat
:
'YYYY 年 MM 月 '
,
...
...
@@ -34,7 +34,6 @@ export class VistorRegisterPage {
room
;
list
;
myList
;
selectDate
;
pageNumber
=
1
;
pageSize
=
AppGlobal
.
pageCount
;
...
...
@@ -48,11 +47,11 @@ export class VistorRegisterPage {
ionViewDidEnter
()
{
this
.
myApply
();
this
.
selectDate
=
this
.
datePipe
.
transform
(
new
Date
(),
'yyyy-MM-dd'
);
this
.
getApply
();
}
ionViewDidLoad
()
{
this
.
date
=
this
.
datePipe
.
transform
(
new
Date
(),
'yyyy-MM-dd'
);
//获取权限
this
.
appMainSer
.
role
.
subscribe
(
value
=>
{
this
.
role
=
value
;
...
...
@@ -65,7 +64,7 @@ export class VistorRegisterPage {
})
}
doRefresh
(
e
){
doRefresh
(
e
)
{
this
.
pageNumber
=
1
;
this
.
myApply
();
e
.
complete
();
...
...
@@ -73,7 +72,7 @@ export class VistorRegisterPage {
//获取预定日程
getApply
()
{
const
data
=
{
'dateStr'
:
this
.
selectD
ate
};
const
data
=
{
'dateStr'
:
this
.
d
ate
};
this
.
serveSer
.
findVisitorByDate
(
data
).
subscribe
(
(
res
)
=>
{
this
.
list
=
res
.
data
;
...
...
@@ -82,7 +81,7 @@ export class VistorRegisterPage {
}
getDate
(
e
)
{
this
.
selectD
ate
=
e
;
this
.
d
ate
=
e
;
this
.
getApply
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment