Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
44a0abb8
提交
44a0abb8
编写于
4月 04, 2019
作者:
yi.li
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
预约接口
上级
773036e7
变更
9
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
154 行增加
和
58 行删除
+154
-58
planManage.js
src/store/followup/planManage.js
+3
-2
env-config.js
src/utils/env-config.js
+11
-6
followapis.js
src/utils/followup/followapis.js
+4
-4
index.js
src/utils/index.js
+5
-0
plan-list.vue
src/views/followup/plan-manage/plan-list.vue
+17
-4
followupDetail.vue
src/views/followup/record-manage/dialog/followupDetail.vue
+17
-1
record-list.vue
src/views/followup/record-manage/record-list.vue
+12
-3
send-reservation.vue
...s/followup/reservation-manage/dialog/send-reservation.vue
+9
-9
reservation-list.vue
src/views/followup/reservation-manage/reservation-list.vue
+76
-29
未找到文件。
src/store/followup/planManage.js
浏览文件 @
44a0abb8
...
@@ -7,7 +7,8 @@ import {getPlanList,
...
@@ -7,7 +7,8 @@ import {getPlanList,
getResidentDetail
,
getResidentDetail
,
getBasicData
,
getBasicData
,
changePlan
,
changePlan
,
createFollowPlan
}
from
'../../utils/followup/followapis'
createFollowPlan
,
deletePlan
}
from
'../../utils/followup/followapis'
export
default
{
export
default
{
namespaced
:
true
,
namespaced
:
true
,
...
@@ -27,7 +28,7 @@ export default {
...
@@ -27,7 +28,7 @@ export default {
setTimeNodeList
:
[],
//新建计划设置时间节点
setTimeNodeList
:
[],
//新建计划设置时间节点
planList
:
{},
//随访计划列表
planList
:
{},
//随访计划列表
remarkOption
:
[],
//随访计划备注常量
remarkOption
:
[],
//随访计划备注常量
planStatusOption
:
[],
//随访计划状态常量
planStatusOption
:
[],
//随访计划状态常量
,
},
},
mutations
:
{
mutations
:
{
GET_RESIDENT_LIST
(
state
,
payload
)
{
GET_RESIDENT_LIST
(
state
,
payload
)
{
...
...
src/utils/env-config.js
浏览文件 @
44a0abb8
...
@@ -17,7 +17,8 @@ export const envConfig = {
...
@@ -17,7 +17,8 @@ export const envConfig = {
innerLoginUrl
:
'http://localhost:8090/PICA_SSO_FE/html/pica_index.html'
,
innerLoginUrl
:
'http://localhost:8090/PICA_SSO_FE/html/pica_index.html'
,
yuequeyiIndexUrl
:
'https://dev-saas.yunqueyi.com/pica_index.html'
,
yuequeyiIndexUrl
:
'https://dev-saas.yunqueyi.com/pica_index.html'
,
followUpSCSoSo
:
'http://sosoapi.yunqueyi.com/sosoapi-web/pass/mock/73'
,
followUpSCSoSo
:
'http://sosoapi.yunqueyi.com/sosoapi-web/pass/mock/73'
,
followUpSC
:
'https://dev-sc.yunqueyi.com'
followUpSC
:
'https://dev-sc.yunqueyi.com'
,
saasDomainUrl
:
'https://dev-saas.yunqueyi.com/'
,
},
},
dev
:
{
dev
:
{
baseUrl
:
'https://dev-sc.yunqueyi.com/'
,
baseUrl
:
'https://dev-sc.yunqueyi.com/'
,
...
@@ -27,7 +28,8 @@ export const envConfig = {
...
@@ -27,7 +28,8 @@ export const envConfig = {
loginUrl
:
'https://dev-saas.yunqueyi.com/pica-login/work_station.html'
,
loginUrl
:
'https://dev-saas.yunqueyi.com/pica-login/work_station.html'
,
innerLoginUrl
:
'https://dev-sso.yunqueyi.com/PICA_SSO_FE/html/pica_index.html'
,
innerLoginUrl
:
'https://dev-sso.yunqueyi.com/PICA_SSO_FE/html/pica_index.html'
,
yuequeyiIndexUrl
:
'https://dev-saas.yunqueyi.com/pica_index.html'
,
yuequeyiIndexUrl
:
'https://dev-saas.yunqueyi.com/pica_index.html'
,
followUpSC
:
'https://dev-sc.yunqueyi.com'
followUpSC
:
'https://dev-sc.yunqueyi.com'
,
saasDomainUrl
:
'https://dev-saas.yunqueyi.com/'
,
},
},
test
:
{
test
:
{
baseUrl
:
'https://test1-sc.yunqueyi.com/'
,
baseUrl
:
'https://test1-sc.yunqueyi.com/'
,
...
@@ -37,7 +39,8 @@ export const envConfig = {
...
@@ -37,7 +39,8 @@ export const envConfig = {
loginUrl
:
'https://test1.yunqueyi.com/pica-login/work_station.html'
,
loginUrl
:
'https://test1.yunqueyi.com/pica-login/work_station.html'
,
innerLoginUrl
:
'https://test1-sso.yunqueyi.com/PICA_SSO_FE/html/pica_index.html'
,
innerLoginUrl
:
'https://test1-sso.yunqueyi.com/PICA_SSO_FE/html/pica_index.html'
,
followUpSC
:
'https://test1-sc.yunqueyi.com'
,
followUpSC
:
'https://test1-sc.yunqueyi.com'
,
yuequeyiIndexUrl
:
'https://test1.yunqueyi.com/pica_index.html'
yuequeyiIndexUrl
:
'https://test1.yunqueyi.com/pica_index.html'
,
saasDomainUrl
:
'https://test1.yunqueyi.com/'
,
},
},
uat
:
{
uat
:
{
baseUrl
:
'https://uat-sc.yunqueyi.com/'
,
baseUrl
:
'https://uat-sc.yunqueyi.com/'
,
...
@@ -47,9 +50,10 @@ export const envConfig = {
...
@@ -47,9 +50,10 @@ export const envConfig = {
loginUrl
:
'https://uat.yunqueyi.com/pica-login/work_station.html'
,
loginUrl
:
'https://uat.yunqueyi.com/pica-login/work_station.html'
,
innerLoginUrl
:
'https://uat-sso.yunqueyi.com/PICA_SSO_FE/html/pica_index.html'
,
innerLoginUrl
:
'https://uat-sso.yunqueyi.com/PICA_SSO_FE/html/pica_index.html'
,
followUpSC
:
'https://uat-sc.yunqueyi.com'
,
followUpSC
:
'https://uat-sc.yunqueyi.com'
,
yuequeyiIndexUrl
:
'https://uat.yunqueyi.com/pica_index.html'
yuequeyiIndexUrl
:
'https://uat.yunqueyi.com/pica_index.html'
,
saasDomainUrl
:
'https://uat.yunqueyi.com/'
,
},
},
pro
:
{
pro
:
{
baseUrl
:
'https://sc.yunqueyi.com/'
,
baseUrl
:
'https://sc.yunqueyi.com/'
,
qiniuFileUrl
:
"https://sc.yunqueyi.com/contents/admin/qiniu/token1"
,
qiniuFileUrl
:
"https://sc.yunqueyi.com/contents/admin/qiniu/token1"
,
qiniuResourceUrl
:
"https://video.yunqueyi.com"
,
qiniuResourceUrl
:
"https://video.yunqueyi.com"
,
...
@@ -57,6 +61,7 @@ export const envConfig = {
...
@@ -57,6 +61,7 @@ export const envConfig = {
loginUrl
:
'https://yunqueyi.com/pica-login/work_station.html'
,
loginUrl
:
'https://yunqueyi.com/pica-login/work_station.html'
,
innerLoginUrl
:
'https://sso.yunqueyi.com/PICA_SSO_FE/html/pica_index.html'
,
innerLoginUrl
:
'https://sso.yunqueyi.com/PICA_SSO_FE/html/pica_index.html'
,
followUpSC
:
'https://sc.yunqueyi.com'
,
followUpSC
:
'https://sc.yunqueyi.com'
,
yuequeyiIndexUrl
:
'https://www.yunqueyi.com/pica_index.html'
yuequeyiIndexUrl
:
'https://www.yunqueyi.com/pica_index.html'
,
saasDomainUrl
:
'https://www.yunqueyi.com/'
,
}
}
}
}
src/utils/followup/followapis.js
浏览文件 @
44a0abb8
...
@@ -136,12 +136,12 @@ export const getReservationList = (data) => {
...
@@ -136,12 +136,12 @@ export const getReservationList = (data) => {
description
:
'获取预约列表'
,
description
:
'获取预约列表'
,
})
})
};
};
export
const
getCheckReservation
=
(
params
)
=>
{
export
const
getCheckReservation
=
(
data
)
=>
{
return
fetch
({
return
fetch
({
headers
,
headers
,
url
:
getFollowUpSC
(
`/
followup/appointmentPatient/check/
`
),
url
:
getFollowUpSC
(
`/
healths/notice/fu/doctor/appoint/pushValid
`
),
method
:
'
ge
t'
,
method
:
'
pos
t'
,
params
:
params
,
data
:
data
,
description
:
'发送预约校验'
,
description
:
'发送预约校验'
,
})
})
};
};
...
...
src/utils/index.js
浏览文件 @
44a0abb8
...
@@ -182,6 +182,11 @@ export function getBasicDataApi(url) {
...
@@ -182,6 +182,11 @@ export function getBasicDataApi(url) {
return
getConfigByEnvType
(
'basicDataUrl'
)
+
url
return
getConfigByEnvType
(
'basicDataUrl'
)
+
url
}
}
// 获取saas端域名地址
export
function
getSaasDomain
(
url
)
{
return
getConfigByEnvType
(
'saasDomainUrl'
)
+
url
}
// 根据不同环境,生成URL
// 根据不同环境,生成URL
function
getConfigByEnvType
(
urlType
)
{
function
getConfigByEnvType
(
urlType
)
{
return
envConfig
[
process
.
env
.
BUILD_ENV
][
urlType
]
return
envConfig
[
process
.
env
.
BUILD_ENV
][
urlType
]
...
...
src/views/followup/plan-manage/plan-list.vue
浏览文件 @
44a0abb8
...
@@ -173,10 +173,23 @@
...
@@ -173,10 +173,23 @@
this
.
$router
.
push
({
path
:
'/followup/plan-manage/plan-modify'
,
query
:
{
planId
:
row
.
id
}})
this
.
$router
.
push
({
path
:
'/followup/plan-manage/plan-modify'
,
query
:
{
planId
:
row
.
id
}})
},
},
deleteRow
(
row
){
deleteRow
(
row
){
deletePlan
(
row
.
id
).
then
(({
data
})
=>
{
this
.
$confirm
(
'此操作将删除该条计划, 是否继续?'
,
'提示'
,
{
console
.
log
(
'删除成功'
)
confirmButtonText
:
'确定'
,
})
cancelButtonText
:
'取消'
,
this
.
search
(
1
);
}).
then
(()
=>
{
deletePlan
(
row
.
id
).
then
(({
data
})
=>
{
this
.
search
(
1
);
})
this
.
$message
({
type
:
'success'
,
message
:
'删除成功!'
});
}).
catch
(()
=>
{
this
.
$message
({
type
:
'info'
,
message
:
'已取消删除'
});
});
},
},
handleSizeChangePre
(
pageSize
){
handleSizeChangePre
(
pageSize
){
...
...
src/views/followup/record-manage/dialog/followupDetail.vue
浏览文件 @
44a0abb8
...
@@ -76,15 +76,21 @@
...
@@ -76,15 +76,21 @@
<p
class=
"status"
>
{{
item
.
appointmentResult
}}
</p>
<p
class=
"status"
>
{{
item
.
appointmentResult
}}
</p>
<p
class=
"reason"
v-if=
"item.reason"
>
变更原因:
{{
item
.
reason
}}
</p>
<p
class=
"reason"
v-if=
"item.reason"
>
变更原因:
{{
item
.
reason
}}
</p>
</div>
</div>
<div
class=
"list-item"
v-if=
"enteringInfo.appointmentLogs.length == 0"
>
<p
class=
"empty-p"
>
暂无
</p>
</div>
</div>
</div>
<div
class=
"base-info console-list"
>
<div
class=
"base-info console-list"
>
<div
class=
"list-item"
>
<div
class=
"list-item"
>
<p
class=
"title"
>
患教资料
</p>
<p
class=
"title"
>
患教资料
</p>
</div>
</div>
<div
class=
"list-item"
>
<div
class=
"list-item"
v-if=
"enteringInfo.eduData"
>
<p
class=
"time"
>
{{
enteringInfo
.
eduData
.
timeNodeInfo
}}
</p>
<p
class=
"time"
>
{{
enteringInfo
.
eduData
.
timeNodeInfo
}}
</p>
<a
class=
"link-p"
:href=
"enteringInfo.eduData.shortUrl"
>
{{
enteringInfo
.
eduData
.
eduTitle
}}
</a>
<a
class=
"link-p"
:href=
"enteringInfo.eduData.shortUrl"
>
{{
enteringInfo
.
eduData
.
eduTitle
}}
</a>
</div>
</div>
<div
class=
"list-item"
v-if=
"!enteringInfo.eduData"
>
<p
class=
"empty-p"
>
暂无
</p>
</div>
</div>
</div>
<div
class=
"base-info console-list"
>
<div
class=
"base-info console-list"
>
<div
class=
"list-item"
>
<div
class=
"list-item"
>
...
@@ -93,6 +99,9 @@
...
@@ -93,6 +99,9 @@
<div
class=
"list-item"
v-for=
"(item, index) in enteringInfo.fuTable"
:key=
"index"
v-if=
"enteringInfo.fuTable.length>0"
>
<div
class=
"list-item"
v-for=
"(item, index) in enteringInfo.fuTable"
:key=
"index"
v-if=
"enteringInfo.fuTable.length>0"
>
<p
class=
"link-p"
>
{{
item
.
name
}}
</p>
<p
class=
"link-p"
>
{{
item
.
name
}}
</p>
</div>
</div>
<div
class=
"list-item"
v-if=
"enteringInfo.fuTable.length==0"
>
<p
class=
"empty-p"
>
暂无
</p>
</div>
</div>
</div>
</div>
</div>
</el-dialog>
</el-dialog>
...
@@ -156,6 +165,9 @@
...
@@ -156,6 +165,9 @@
.base-info
{
.base-info
{
padding
:
0
10px
;
padding
:
0
10px
;
border-bottom
:
1px
dashed
#efefef
;
border-bottom
:
1px
dashed
#efefef
;
&
.pt10
{
padding-top
:
10px
;
}
.base-content
{
.base-content
{
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
...
@@ -203,6 +215,10 @@
...
@@ -203,6 +215,10 @@
color
:
$picaGreen
;
color
:
$picaGreen
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.empty-p
{
flex
:
1
;
color
:
#999
;
}
}
}
}
}
}
}
...
...
src/views/followup/record-manage/record-list.vue
浏览文件 @
44a0abb8
...
@@ -92,7 +92,8 @@
...
@@ -92,7 +92,8 @@
import
BreadCrumb
from
"@/components/breadcrumb"
;
import
BreadCrumb
from
"@/components/breadcrumb"
;
import
followupDetail
from
"./dialog/followupDetail"
;
import
followupDetail
from
"./dialog/followupDetail"
;
import
ChangeFollowupStatus
from
"./dialog/change-followup-status"
;
import
ChangeFollowupStatus
from
"./dialog/change-followup-status"
;
import
{
mapState
,
mapActions
}
from
'vuex'
;
import
{
getSaasDomain
}
from
'@/utils/index'
import
{
mapState
,
mapGetters
,
mapActions
}
from
'vuex'
;
export
default
{
export
default
{
components
:{
components
:{
...
@@ -132,7 +133,10 @@
...
@@ -132,7 +133,10 @@
...
mapState
(
'recordManage'
,{
...
mapState
(
'recordManage'
,{
recordList
:
state
=>
state
.
recordList
,
recordList
:
state
=>
state
.
recordList
,
enteringInfo
:
state
=>
state
.
enteringInfo
,
enteringInfo
:
state
=>
state
.
enteringInfo
,
})
}),
...
mapGetters
([
'_token'
,
])
},
},
created
()
{
created
()
{
this
.
search
(
1
);
this
.
search
(
1
);
...
@@ -206,7 +210,12 @@
...
@@ -206,7 +210,12 @@
this
.
statusForm
=
row
;
this
.
statusForm
=
row
;
this
.
isShowChangeDialog
=
true
;
this
.
isShowChangeDialog
=
true
;
},
},
sendRow
(
row
){},
sendRow
(
row
){
// let saasUrl = getSaasDomain(`/pica-frontend/patientEduManage/pica_patient_edu_manage.html#/pageTab/message?patientId=${row.patientId}&token=D74A6C7C61564EB1B3DC83251F33D173`);
// console.log(saasUrl)
let
saasUrl
=
getSaasDomain
(
`/pica-frontend/patientEduManage/pica_patient_edu_manage.html#/pageTab/message?patientId=
${
row
.
patientId
}
&token=
${
this
.
_token
}
`
);
window
.
open
(
saasUrl
)
},
handleSizeChangePre
(
pageSize
){
handleSizeChangePre
(
pageSize
){
this
.
paginationSet
[
'pageSize'
]
=
pageSize
;
this
.
paginationSet
[
'pageSize'
]
=
pageSize
;
this
.
paginationSet
[
'pageNo'
]
=
1
;
this
.
paginationSet
[
'pageNo'
]
=
1
;
...
...
src/views/followup/reservation-manage/dialog/send-reservation.vue
浏览文件 @
44a0abb8
...
@@ -16,9 +16,9 @@
...
@@ -16,9 +16,9 @@
:label-position=
"'left'"
:label-position=
"'left'"
size=
"small"
>
size=
"small"
>
<el-form-item
label=
"已选居民"
>
<el-form-item
label=
"已选居民"
>
<
!--
<span>
{{
checkData
.
total
}}
人
</span>
--
>
<
span>
{{
checkData
.
sendWechatResidentSize
+
checkData
.
sendMobileResidentSize
}}
人
</span
>
<
span>
{{
selectList
.
length
}}
人
</span
>
<
!--
<span>
{{
selectList
.
length
}}
人
</span>
--
>
<span>
(微信发送
{{
checkData
.
weChatNum
}}
人;短信发送
{{
checkData
.
messageNum
}}
人)
</span>
<span>
(微信发送
{{
checkData
.
sendWechatResidentSize
}}
人;短信发送
{{
checkData
.
sendMobileResidentSize
}}
人)
</span>
</el-form-item>
</el-form-item>
<el-form-item
label=
"预约时间"
required
>
<el-form-item
label=
"预约时间"
required
>
<div
style=
"display: flex;"
>
<div
style=
"display: flex;"
>
...
@@ -53,11 +53,11 @@
...
@@ -53,11 +53,11 @@
</div>
</div>
<div
class=
"item"
>
<div
class=
"item"
>
<span
class=
"title"
>
本次推送:
</span>
<span
class=
"title"
>
本次推送:
</span>
<p>
{{
checkData
.
total
}}
条(微信不限额推送
{{
checkData
.
weChatNum
}}
条;使用短信额度推送
{{
checkData
.
messageNum
}}
条)
</p>
<p>
{{
checkData
.
sendWechatAppointSize
+
checkData
.
sendMobileAppointSize
}}
条(微信不限额推送
{{
checkData
.
sendWechatAppointSize
}}
条;使用短信额度推送
{{
checkData
.
sendMobileAppointSize
}}
条)
</p>
</div>
</div>
<div
class=
"item"
>
<div
class=
"item"
>
<span
class=
"title"
>
推送成功后剩余
余额
:
</span>
<span
class=
"title"
>
推送成功后剩余
额度
:
</span>
<p>
{{
checkData
.
messageCount
-
checkData
.
messag
eNum
}}
条
</p>
<p>
{{
checkData
.
sendedAvailabl
eNum
}}
条
</p>
</div>
</div>
<p>
提示:微信推送不消耗额度,建议您与居民绑定微信,关注云鹊健康微信公众号
</p>
<p>
提示:微信推送不消耗额度,建议您与居民绑定微信,关注云鹊健康微信公众号
</p>
</div>
</div>
...
@@ -79,7 +79,6 @@
...
@@ -79,7 +79,6 @@
reservationForm
:
{
reservationForm
:
{
appointmentDate
:
''
,
appointmentDate
:
''
,
appointmentRange
:
''
,
appointmentRange
:
''
,
// patientAppointList: [],
},
},
timeRangeOptions
:
[
timeRangeOptions
:
[
{
{
...
@@ -148,7 +147,7 @@
...
@@ -148,7 +147,7 @@
checkData
:
{},
checkData
:
{},
selectList
:
{
//已选择发送人员list
selectList
:
{
//已选择发送人员list
type
:
Array
,
type
:
Array
,
default
:
{}
,
default
:
[]
,
}
}
},
},
watch
:
{
watch
:
{
...
@@ -199,7 +198,8 @@
...
@@ -199,7 +198,8 @@
.warn-tips
{
.warn-tips
{
font-size
:
12px
;
font-size
:
12px
;
color
:
#e6a23c
;
color
:
#e6a23c
;
padding-top
:
5px
;
line-height
:
15px
;
/*padding-top: 5px;*/
}
}
.el-dialog
{
.el-dialog
{
min-width
:
580px
!
important
;
min-width
:
580px
!
important
;
...
...
src/views/followup/reservation-manage/reservation-list.vue
浏览文件 @
44a0abb8
...
@@ -181,9 +181,10 @@
...
@@ -181,9 +181,10 @@
isChangeReservation
:
false
,
//变更预约状态dialog展示
isChangeReservation
:
false
,
//变更预约状态dialog展示
selectionData
:
[],
selectionData
:
[],
selectList
:
[],
selectList
:
[],
ids
:
''
,
ids
:
[]
,
needPara
:
{},
needPara
:
{},
dialogDetailShow
:
false
,
dialogDetailShow
:
false
,
validContents
:
[],
}
}
},
},
created
()
{
created
()
{
...
@@ -273,20 +274,18 @@
...
@@ -273,20 +274,18 @@
if
(
this
.
selectionData
.
length
>
0
){
if
(
this
.
selectionData
.
length
>
0
){
this
.
selectList
=
this
.
selectionData
;
this
.
selectList
=
this
.
selectionData
;
//发送预约校验接口
//发送预约校验接口
// await this.getCheckReservation({
await
this
.
getCheckReservation
({
// patientIds: this.ids
// patientIds: this.ids
// })
content
:
''
,
// const { messageCount, messageNum, weChatNum, total} = this.checkRevervationData
validContents
:
this
.
validContents
// //判断短信余额是否不足
})
// // if(this.hasSmsBalance){
const
{
sendFlag
}
=
this
.
checkRevervationData
// if(parseInt(messageNum)
<=
parseInt
(
messageCount
)){
//判断短信余额是否不足
// this.isDialogShow = true;
if
(
sendFlag
){
// }else {
this
.
isDialogShow
=
true
;
// this.isNoEnoughShow = true;
}
else
{
// }
this
.
isNoEnoughShow
=
true
;
//暂时不校验
}
this
.
isDialogShow
=
true
;
}
else
if
(
this
.
selectionData
.
length
>
100
){
}
else
if
(
this
.
selectionData
.
length
>
100
){
this
.
$message
.
warning
(
'每次最多选择100条单条随访进行预约!'
);
this
.
$message
.
warning
(
'每次最多选择100条单条随访进行预约!'
);
return
false
;
return
false
;
...
@@ -306,19 +305,21 @@
...
@@ -306,19 +305,21 @@
});
});
this
.
selectList
=
newList
;
this
.
selectList
=
newList
;
//发送预约校验
//发送预约校验
// await this.getCheckReservation({
await
this
.
getCheckReservation
({
// patientIds: row.patientId
content
:
''
,
// })
validContents
:
[{
// const { messageCount, messageNum, weChatNum, total} = this.checkRevervationData
patientId
:
row
.
patientId
,
// //判断短信余额是否不足
size
:
1
,
// // if(this.hasSmsBalance){
}],
// if(parseInt(messageNum)
<=
parseInt
(
messageCount
)){
// patientIds: [row.patientId]
// this.isDialogShow = true;
})
// }else {
const
{
sendFlag
}
=
this
.
checkRevervationData
// this.isNoEnoughShow = true;
//判断短信余额是否不足
// }
if
(
sendFlag
){
//暂时不做校验
this
.
isDialogShow
=
true
;
this
.
isDialogShow
=
true
;
}
else
{
this
.
isNoEnoughShow
=
true
;
}
},
},
changeReserveClick
(
row
){
changeReserveClick
(
row
){
this
.
needPara
=
{
this
.
needPara
=
{
...
@@ -345,6 +346,31 @@
...
@@ -345,6 +346,31 @@
this
.
isChangeReservation
=
val
;
this
.
isChangeReservation
=
val
;
},
},
handleSelectionChange
(
val
){
handleSelectionChange
(
val
){
// let obj = {};
// for(let i=0; i
<
val
.
length
;
i
++
){
// const pObj = val[i];
// const id = pObj['patientId'];
// const oo = obj[id];
// if (oo) {
// obj[id] = oo + 1;
// } else {
// obj[id] = 1;
// }
// }
// let arrNew = [];
// let objToStrMap = (obj) => {
// let strMap = new Map();
// for (let k of Object.keys(obj)) {
// strMap.set(k, obj[k]);
// }
// arrNew = [...strMap];
// return arrNew;
// }
// objToStrMap(obj)
// console.log('新数组',objToStrMap(obj))
// this.validContents = objToStrMap(obj)
for
(
let
i
in
val
){
for
(
let
i
in
val
){
for
(
let
j
in
val
[
i
])
{
for
(
let
j
in
val
[
i
])
{
if
(
j
==
'fuPlanId'
)
{
if
(
j
==
'fuPlanId'
)
{
...
@@ -368,8 +394,29 @@
...
@@ -368,8 +394,29 @@
for
(
let
i
=
0
;
i
<
val
.
length
;
i
++
){
for
(
let
i
=
0
;
i
<
val
.
length
;
i
++
){
idsArray
.
push
(
val
[
i
].
patientId
)
idsArray
.
push
(
val
[
i
].
patientId
)
}
}
this
.
ids
=
idsArray
.
join
(
","
)
// this.ids = idsArray.join(",")
this
.
ids
=
idsArray
;
}
}
// let dedupeArr = Array.from(new Set(this.ids))
// let count = 0;
// let obj = {};//最终返回的数据
// dedupeArr.forEach(i => {
// count = 0;
// this.ids.forEach(j => {
// if(i === j){
// count++;
// }
// })
// obj[i] = count;
// })
// let i=0;
// let aaa = [];
// for(i in obj ){
// console.log(i+ ':' + obj[i]);
// aaa.push({[i]: obj[i]});
// }
// this.validContents.push(aaa);
},
},
closeDetail
(
val
){
closeDetail
(
val
){
this
.
dialogDetailShow
=
val
;
this
.
dialogDetailShow
=
val
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录