Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
5cd7008a
提交
5cd7008a
编写于
4月 09, 2019
作者:
yi.li
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
预约校验修改
上级
c42ed563
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
24 行增加
和
26 行删除
+24
-26
send-reservation.vue
...s/followup/reservation-manage/dialog/send-reservation.vue
+24
-26
未找到文件。
src/views/followup/reservation-manage/dialog/send-reservation.vue
浏览文件 @
5cd7008a
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
sendReservation
}
from
'@/utils/followup/followapis'
import
{
sendReservation
,
getCheckReservation
}
from
'@/utils/followup/followapis'
import
NoEnough
from
'./no-enough'
import
NoEnough
from
'./no-enough'
import
{
mapState
,
mapActions
}
from
'vuex'
import
{
mapState
,
mapActions
}
from
'vuex'
export
default
{
export
default
{
...
@@ -78,6 +78,7 @@
...
@@ -78,6 +78,7 @@
data
(){
data
(){
return
{
return
{
reservationDialog
:
true
,
reservationDialog
:
true
,
sendFlagLast
:
null
,
reservationForm
:
{
reservationForm
:
{
appointmentDate
:
''
,
appointmentDate
:
''
,
appointmentRange
:
''
,
appointmentRange
:
''
,
...
@@ -165,13 +166,13 @@
...
@@ -165,13 +166,13 @@
...
mapState
(
'reservationManage'
,{
...
mapState
(
'reservationManage'
,{
getRevervationNum
:
state
=>
state
.
getRevervationNum
,
getRevervationNum
:
state
=>
state
.
getRevervationNum
,
userName
:
state
=>
state
.
userName
,
userName
:
state
=>
state
.
userName
,
checkRevervationData
:
state
=>
state
.
checkRevervationData
,
//
checkRevervationData: state => state.checkRevervationData,
})
})
},
},
mounted
(){
mounted
(){
},
},
methods
:
{
methods
:
{
...
mapActions
(
'reservationManage'
,
[
'getReservationPatients'
,
'getCheckReservation'
]),
...
mapActions
(
'reservationManage'
,
[
'getReservationPatients'
]),
changeHandler
(
val
)
{
changeHandler
(
val
)
{
this
.
getReservationPatients
({
makeAnAppointDate
:
val
});
this
.
getReservationPatients
({
makeAnAppointDate
:
val
});
},
},
...
@@ -184,34 +185,31 @@
...
@@ -184,34 +185,31 @@
}
}
this
.
$emit
(
'closeSendReserve'
,
false
)
this
.
$emit
(
'closeSendReserve'
,
false
)
},
},
async
initLastCheck
()
{
await
this
.
getCheckReservation
({
content
:
''
,
validContents
:
this
.
validContents
})
},
closeSendReserve
(
formName
){
closeSendReserve
(
formName
){
let
_self
=
this
;
let
_self
=
this
;
_self
.
$refs
[
formName
].
validate
((
valid
)
=>
{
_self
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
//校验额度是否不够
//校验额度是否不够
_self
.
initLastCheck
();
getCheckReservation
({
const
{
sendFlag
}
=
_self
.
checkRevervationData
;
content
:
''
,
console
.
log
(
'sendFlag'
,
sendFlag
)
validContents
:
this
.
validContents
if
(
sendFlag
){
//额度还可用
}).
then
(({
data
})
=>
{
sendReservation
({
const
sendFlagLast
=
data
.
sendFlag
;
...
this
.
reservationForm
,
if
(
sendFlagLast
){
//额度还可用
patientAppointList
:
this
.
selectList
sendReservation
({
}).
then
(({
data
})
=>
{
...
this
.
reservationForm
,
this
.
$refs
[
'reservationForm'
].
resetFields
();
patientAppointList
:
this
.
selectList
this
.
$emit
(
'closeSendReserve'
,
false
);
}).
then
(({
data
})
=>
{
})
this
.
$refs
[
'reservationForm'
].
resetFields
();
}
else
{
this
.
$emit
(
'closeSendReserve'
,
false
);
console
.
log
(
'余额不足'
)
})
// 额度不足
}
else
{
this
.
isNoEnoughShow
=
true
;
console
.
log
(
'余额不足'
)
return
;
// 额度不足
}
this
.
isNoEnoughShow
=
true
;
return
;
}
})
}
else
{
}
else
{
return
false
;
return
false
;
}
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录