Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
7ef27784
提交
7ef27784
编写于
3月 20, 2019
作者:
yi.li
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
发送预约接口
上级
e4495b87
变更
5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
54 行增加
和
20 行删除
+54
-20
reservationManage.js
src/store/modules/followup/reservationManage.js
+18
-4
followapis.js
src/utils/followup/followapis.js
+7
-0
record-list.vue
src/views/followup/record-manage/record-list.vue
+1
-0
send-reservation.vue
...s/followup/reservation-manage/dialog/send-reservation.vue
+15
-9
reservation-list.vue
src/views/followup/reservation-manage/reservation-list.vue
+13
-7
未找到文件。
src/store/modules/followup/reservationManage.js
浏览文件 @
7ef27784
...
...
@@ -33,19 +33,33 @@ export default {
context
.
commit
(
'GET_RESERVATION_LIST'
,
data
);
});
},
getCheckReservation
(
context
,
payload
)
{
followApi
.
getCheckReservation
({
async
getCheckReservation
(
context
,
payload
)
{
await
followApi
.
getCheckReservation
({
...
payload
}).
then
(({
data
})
=>
{
context
.
commit
(
'GET_CHECK_RESERVATION'
,
data
)
})
},
getConstantsData
(
context
,
payload
)
{
followApi
.
getBasicData
({
async
getConstantsData
(
context
,
payload
)
{
await
followApi
.
getBasicData
({
...
payload
}).
then
(({
data
})
=>
{
context
.
commit
(
'GET_CONSTANS_DATA'
,
data
)
})
},
// getConstantsData({commit}) {
// return new Promise(async (resolve, reject)=>{
// const res = await followApi.getBasicData({
// ...payload
// });
// if (res === null) return;
// commit('GET_CONSTANS_DATA', res);
// resolve() // 接口请求完成
// })
// }
},
}
src/utils/followup/followapis.js
浏览文件 @
7ef27784
...
...
@@ -53,6 +53,13 @@ const reservationManageApi = [
name
:
'getCheckReservation'
,
description
:
'发送预约校验'
,
},
{
url
:
'/followup/appointmentPatient/accept/'
,
method
:
'get'
,
params
:
'params'
,
name
:
'getReservationPatients'
,
description
:
'查看预约人数'
,
},
]
...
...
src/views/followup/record-manage/record-list.vue
浏览文件 @
7ef27784
...
...
@@ -183,6 +183,7 @@
placeholderTxt
:
'请输入变更原因'
,
errTips
:
false
,
dialogDetailShow
:
false
,
statusTabls
:[],
}
},
computed
:
{
...
...
src/views/followup/reservation-manage/dialog/send-reservation.vue
浏览文件 @
7ef27784
...
...
@@ -15,7 +15,7 @@
label-width=
"120px"
:label-position=
"'left'"
>
<el-form-item
label=
"已选居民"
>
<span>
{{
reservationForm
.
totalNumber
}}
人
</span><span>
(微信发送
{{
reservationForm
.
wechatNumber
}}
人;短信发送
{{
reservationForm
.
smsNumber
}}
人)
</span>
<span>
{{
checkData
.
total
}}
人
</span><span>
(微信发送
{{
checkData
.
weChatNum
}}
人;短信发送
{{
checkData
.
messageNum
}}
人)
</span>
</el-form-item>
<el-form-item
label=
"预约时间"
required
>
<div
style=
"display: flex;"
>
...
...
@@ -26,7 +26,7 @@
placeholder=
"请选择预约日期"
value-format=
"yyyy-MM-dd"
value=
"yyyy-MM-dd"
:picker-options=
"pickerOptions"
>
:picker-options=
"pickerOptions"
@
change=
"changeHandler"
>
</el-date-picker>
</el-form-item>
<el-form-item
prop=
"timeRange"
>
...
...
@@ -50,11 +50,11 @@
</div>
<div
class=
"item"
>
<span
class=
"title"
>
本次推送:
</span>
<p>
{{
reservationForm
.
totalNumber
}}
条(微信不限额推送
{{
reservationForm
.
wechatNumber
}}
条;使用短信额度推送
{{
reservationForm
.
smsNumber
}}
条)
</p>
<p>
{{
checkData
.
total
}}
条(微信不限额推送
{{
checkData
.
weChatNum
}}
条;使用短信额度推送
{{
checkData
.
messageNum
}}
条)
</p>
</div>
<div
class=
"item"
>
<span
class=
"title"
>
推送成功后剩余余额:
</span>
<p>
{{
smsBalanceNumber
}}
条
</p>
<p>
{{
checkData
.
messageCount
-
checkData
.
messageNum
}}
条
</p>
</div>
<p>
提示:微信推送不消耗额度,建议您与居民绑定微信,关注云鹊健康微信公众号
</p>
</div>
...
...
@@ -66,18 +66,16 @@
</div>
</
template
>
<
script
>
import
followApi
from
'@/utils/followup/followapis'
export
default
{
components
:
{},
data
(){
return
{
reservationDialog
:
true
,
reservationForm
:
{
totalNumber
:
88
,
wechatNumber
:
60
,
smsNumber
:
28
,
reservationDate
:
''
,
timeRange
:
''
,
hasReservedNumber
:
60
hasReservedNumber
:
null
},
timeRangeOptions
:
[
{
...
...
@@ -145,13 +143,21 @@
isDialogShow
:
{
type
:
Boolean
,
default
:
false
}
},
checkData
:
{},
},
computed
:
{
},
mounted
(){
},
methods
:
{
changeHandler
(
val
)
{
followApi
.
getReservationPatients
({
time
:
val
}).
then
(({
data
})
=>
{
this
.
reservationForm
.
hasReservedNumber
=
data
.
number
;
})
},
closeSendReserve1
(){
if
(
this
.
$refs
[
'reservationForm'
])
{
this
.
$refs
[
'reservationForm'
].
resetFields
();
...
...
src/views/followup/reservation-manage/reservation-list.vue
浏览文件 @
7ef27784
...
...
@@ -98,7 +98,7 @@
label=
"操作"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-button
class=
"btn-right-class"
type=
"text"
>
发送预约
</el-button>
|
<el-button
class=
"btn-right-class"
type=
"text"
@
click=
"sendReservationRow(scope.row)"
>
发送预约
</el-button>
|
<el-button
class=
"btn-right-class"
type=
"text"
@
click=
"changeReserveClick(scope.row)"
>
变更预约
</el-button>
</
template
>
</el-table-column>
...
...
@@ -118,7 +118,7 @@
</div>
</div>
</div>
<send-reservation
:isDialogShow=
"isDialogShow"
@
closeSendReserve=
"closeSendReserve"
></send-reservation>
<send-reservation
:isDialogShow=
"isDialogShow"
:checkData=
"checkRevervationData"
@
closeSendReserve=
"closeSendReserve"
></send-reservation>
<no-enough
:isNoEnoughShow=
"isNoEnoughShow"
@
closeTipsDialog=
"closeTipsDialog"
></no-enough>
<change-reservation
:isChangeReservation=
"isChangeReservation"
@
closeChangeReserve=
"closeChangeReserve"
></change-reservation>
</div>
...
...
@@ -164,8 +164,9 @@
label
:
'已过期'
}
],
//居民预约状态\
hasSmsBalance
:
true
,
//短信余额是否充足
//
hasSmsBalance: true, //短信余额是否充足
isDialogShow
:
false
,
//发送预约dialog展示
// checkData: {},
isNoEnoughShow
:
false
,
//余额不足dialog展示
isChangeReservation
:
false
,
//变更预约状态dialog展示
selectionData
:
[],
...
...
@@ -238,19 +239,21 @@
}
return
para
;
},
sendReservation
()
{
async
sendReservation
()
{
if
(
this
.
selectionData
.
length
>
0
){
this
.
getCheckReservation
({
await
this
.
getCheckReservation
({
patientIds
:
this
.
ids
})
;
})
const
{
messageCount
,
messageNum
,
weChatNum
,
total
}
=
this
.
checkRevervationData
//判断短信余额是否不足
// if(this.hasSmsBalance){
if
(
messageNum
<=
messageCount
){
if
(
parseInt
(
messageNum
)
<=
parseInt
(
messageCount
)
){
this
.
isDialogShow
=
true
;
// this.checkData = JSON.parse(JSON.stringify(this.checkRevervationData));
}
else
{
this
.
isNoEnoughShow
=
true
;
}
}
else
if
(
this
.
selectionData
.
length
>
100
){
this
.
$message
.
warning
(
'每次最多选择100条单条随访进行预约!'
);
return
false
;
...
...
@@ -259,6 +262,9 @@
return
false
;
}
},
sendReservationRow
(
row
){
console
.
log
(
'单条'
)
},
changeReserveClick
(){
this
.
isChangeReservation
=
true
;
},
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录