Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
ln-medicalAppointment-pc
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
孙海亮
ln-medicalAppointment-pc
Commits
706afaa7
Commit
706afaa7
authored
Nov 26, 2021
by
hailiang.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
eb0f5f57
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
13 deletions
+31
-13
README.md
README.md
+1
-1
reserve-date.vue
src/components/reserve-date.vue
+11
-4
selectInstitution.vue
src/views/flow/components/selectInstitution.vue
+5
-1
detail.vue
src/views/flow/detail.vue
+12
-5
item.vue
src/views/index/components/item.vue
+2
-2
No files found.
README.md
View file @
706afaa7
...
...
@@ -32,4 +32,4 @@ npm serve
-800000056423 -6046
-800000056424 -7922
-800000056425 -2468
-800000056426 -5577
-- 有可约数据-没套餐
-800000056426 -5577
src/components/reserve-date.vue
View file @
706afaa7
...
...
@@ -50,7 +50,13 @@
</div>
</div>
<div
class=
"foot"
>
<button
class=
"confirm"
@
click=
"confirm"
>
确定选择
</button>
<button
:class=
"['confirm', storageDate.length
<
=
0
?
'
sure
'
:
'']"
:disabled=
"storageDate.length
<
=
0
"
@
click=
"confirm"
>
确定选择
</button>
<button
class=
"cancle"
@
click=
"cancle"
>
取消
</button>
</div>
</div>
...
...
@@ -278,6 +284,7 @@ export default {
});
}
this
.
swiperData
.
dateDay
[
index
].
Choice
=
!
_Choice
;
console
.
log
(
"
确定了?
"
,
this
.
storageDate
);
this
.
$emit
(
"
changeDay
"
,
this
.
storageDate
);
}
},
...
...
@@ -286,7 +293,6 @@ export default {
let
swiperData
=
{};
this
.
getDay
(
`
${
arr
[
0
]}
-
${
arr
[
1
]}
-
${
arr
[
2
]}
`
).
then
((
val
)
=>
{
swiperData
=
val
;
console
.
log
(
"
不一样
"
,
this
.
schedules
,
swiperData
,
arr
);
for
(
let
i
=
0
;
i
<
swiperData
.
dateDay
.
length
;
i
++
)
{
for
(
let
k
=
0
;
k
<
this
.
schedules
.
length
;
k
++
)
{
if
(
...
...
@@ -295,11 +301,9 @@ export default {
)
{
swiperData
.
dateDay
[
i
].
personCount
=
this
.
schedules
[
k
].
personCount
;
swiperData
.
dateDay
[
i
].
disable
=
false
;
console
.
log
(
"
没有执行?
"
,
swiperData
.
dateDay
[
i
].
disable
);
}
}
}
console
.
log
(
"
产出
"
,
swiperData
);
this
.
$emit
(
"
changeDay
"
,
this
.
storageDate
);
this
.
$set
(
this
,
"
swiperData
"
,
swiperData
);
});
...
...
@@ -679,6 +683,9 @@ export default {
background: #3f7ffb;
color: #fff;
}
.sure {
background: #ccc;
}
.cancle {
background: #ccc;
color: #fff;
...
...
src/views/flow/components/selectInstitution.vue
View file @
706afaa7
...
...
@@ -139,6 +139,7 @@ export default {
hospitalId
:
""
,
//医院id
supplierId
:
""
,
//选择服务中id
getScheduleList
:
[],
// 排期列表
appointmentId
:
""
,
// 追加的套餐的id
};
},
created
()
{
...
...
@@ -328,7 +329,7 @@ export default {
// 查看排期
let
month
=
moment
().
startOf
(
"
month
"
).
format
(
"
yyyyMM
"
);
// let start = month + "1";
// let start = month + "
0
1";
// let end = month + moment().daysInMonth();
this
.
getScheduleByCode
(
"
20211125
"
,
"
20211225
"
);
},
...
...
@@ -338,6 +339,7 @@ export default {
this
.
datePickShow
=
false
;
this
.
showDatemask
=
false
;
console
.
log
(
"
确认选择
"
,
val
,
this
.
serviceDate
);
return
false
;
const
_this
=
this
;
const
query
=
{
dataSource
:
"
M
"
,
//数据来源P电脑PC ,M 手机
...
...
@@ -375,6 +377,7 @@ export default {
if
(
res
.
returnCode
===
"
0000
"
)
{
console
.
log
(
"
立即预约=
"
,
res
);
_this
.
$message
.
success
(
"
预约成功
"
);
_this
.
appointmentId
=
res
.
content
;
// 提示预约成功,之后跳转到预约详情页面
setTimeout
(()
=>
{
// 需要获取用户id
...
...
@@ -382,6 +385,7 @@ export default {
name
:
"
Detail
"
,
query
:
{
id
:
_this
.
id
,
appointmentId
:
_this
.
appointmentId
,
},
});
},
1000
);
...
...
src/views/flow/detail.vue
View file @
706afaa7
...
...
@@ -107,17 +107,20 @@ export default {
maritalStatus
:
""
,
},
//客户信息
tips
:
require
(
"
../../assets/imgs/detail/tips.png
"
),
appointmentList
:
[],
//已预约列表
item
:
{},
// 详情对象,通过路由带过来
appointmentId
:
""
,
// 新增的套餐id,
};
},
created
()
{
const
{
id
}
=
this
.
$route
.
query
;
const
{
id
,
appointmentId
}
=
this
.
$route
.
query
;
console
.
log
(
"
对象带过来没?
"
,
this
.
$route
);
this
.
item
=
this
.
$route
.
params
;
this
.
id
=
id
;
this
.
getCustomerDetail
();
//获取客户信息
this
.
getAppointmentList
();
//获取客户的预约详情
// 新增新增预约
if
(
appointmentId
)
{
this
.
getAppointmentList
(
appointmentId
);
//获取客户的预约详情
}
},
methods
:
{
// 获取客户信息
...
...
@@ -141,11 +144,15 @@ export default {
});
},
// 获取预约详情
getAppointmentList
()
{
getAppointmentList
(
appointmentId
)
{
api
.
getAppointmentList
({
id
:
parseInt
(
this
.
id
)
}).
then
((
res
)
=>
{
if
(
res
.
returnCode
==
"
0000
"
)
{
console
.
log
(
"
111111111111获取已预约列表==
"
,
res
.
content
);
this
.
appointmentList
=
res
.
content
;
res
.
content
.
forEach
((
el
)
=>
{
if
(
el
.
id
===
parseInt
(
appointmentId
))
{
this
.
item
=
el
;
}
});
}
});
},
...
...
src/views/index/components/item.vue
View file @
706afaa7
...
...
@@ -5,7 +5,7 @@
<span
class=
"point"
></span>
{{
item
.
servicepackageName
}}
</div>
<!-- $router.push(item.fileList[0]&&item.fileList[0].url) -->
<div
class=
"detail"
@
click=
"openModel"
>
<div
class=
"detail"
>
<img
:src=
"eyes"
alt=
""
/>
点击查看服务套餐详情
<!--
{{
item
.
fileList
[
0
].
url
}}
-->
</div>
...
...
@@ -31,7 +31,7 @@
}}
</div>
</div>
<a-modal
v-model=
"visible"
width=
"1000px"
:footer=
"null"
>
<a-modal
width=
"1000px"
:footer=
"null"
>
<img
style=
"width: 100%; padding: 20px 20px"
:src=
"item.fileList[0] && item.fileList[0].url"
...
...
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