Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-admin-consultation
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-admin-consultation
提交
52084d9e
提交
52084d9e
编写于
8月 13, 2021
作者:
张磊
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'feat/zl' into 'develop'
change date See merge request
!118
上级
8a9f2d88
1b0c6b93
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
44 行增加
和
24 行删除
+44
-24
diagnosis-doctor.vue
src/components/common/diagnosis-doctor.vue
+44
-24
未找到文件。
src/components/common/diagnosis-doctor.vue
浏览文件 @
52084d9e
...
...
@@ -57,13 +57,12 @@
<el-input
v-model=
"formData.outsideDoctor"
placeholder=
"请输入外部医生姓名"
class=
"set-width"
style=
"width: 135%;"
></el-input>
</el-col>
</el-form-item>
<el-form-item
label=
"
接诊意向时间
"
>
<el-form-item
label=
"
问诊时间"
class=
"required-label
"
>
<el-col
:span=
"15"
>
<div
@
click=
"openDiagnosisStartTimeDialog"
class=
"set-width grey-bg"
style=
"width: 100%;"
>
<i
class=
"el-icon-alarm-clock"
></i>
<span
v-if=
"startTimeValue === ''"
>
接诊开始
时间
</span>
<span
v-if=
"startTimeValue === ''"
>
请选择问诊
时间
</span>
<span
v-else
>
{{
dayFormatWithoutSecond
(
startTimeValue
)
}}
--
{{
dayFormatWithoutSecond
(
endTimeValue
)
}}
</span>
</div>
</el-col>
</el-form-item>
...
...
@@ -85,8 +84,7 @@
</el-dialog>
<el-dialog
title=
"问诊开始时间"
:visible
.
sync=
"diagnosisStartTimeDialog"
@
close=
"cancelDiagnosisStartTimeDialog"
@
open=
"openDiagnosisStartTimeDialog"
:visible
.
sync=
"diagnosisStartTimeDialog"
>
<div
class=
"startTime-wrap"
>
<div
class=
"line-wrap"
>
...
...
@@ -131,8 +129,8 @@
</div>
</div>
<div
class=
"startTime-footer"
style=
"text-align: center;"
>
<el-button
@
click=
"
cancelDiagnosisStartTimeDialog
"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"startTimeConfirm"
:disabled=
"isClick"
>
确定
</el-button>
<el-button
@
click=
"
startTimeConfirm('cancel')
"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"startTimeConfirm
('submit')
"
:disabled=
"isClick"
>
确定
</el-button>
</div>
</el-dialog>
</div>
...
...
@@ -181,7 +179,7 @@ export default {
receptionBeginTime
:
""
,
receptionEndTime
:
''
,
bizType
:
''
,
diagnoseChannel
:
''
diagnoseChannel
:
1
,
},
doctorList
:[],
rangeTime
:
''
,
...
...
@@ -233,6 +231,14 @@ export default {
methods
:
{
confirm
()
{
this
.
$refs
.
setForm
.
validate
((
valid
)
=>
{
if
(
!
this
.
startTimeValue
||
!
this
.
endTimeValue
){
this
.
$message
({
message
:
"请选择问诊时间"
,
type
:
"warning"
,
duration
:
1000
,
});
return
false
;
}
if
(
valid
)
{
let
req
=
null
;
if
(
this
.
formData
.
receptionName
==
"站外医生"
||
this
.
formData
.
receptionName
==
"云鹊医助"
){
...
...
@@ -297,6 +303,7 @@ export default {
this
.
formData
.
doctorHospital
=
""
this
.
formData
.
doctorDepartment
=
""
this
.
formData
.
doctorMobile
=
""
// this.formData.diagnoseChannel = 1
this
.
doctorChanged
(
this
.
doctorId
)
},
doctorChanged
(
value
)
{
...
...
@@ -331,20 +338,32 @@ export default {
openDiagnosisStartTimeDialog
(){
this
.
diagnosisStartTimeDialog
=
true
;
},
cancelDiagnosisStartTimeDialog
()
{
this
.
diagnosisStartTimeDialog
=
false
;
},
startTimeConfirm
()
{
if
(
String
(
this
.
startTimeValue
).
trim
()
===
''
||
String
(
this
.
timeRange
).
trim
()
===
''
){
this
.
$message
({
message
:
"请选择接诊开始时间"
,
type
:
"warning"
,
duration
:
1000
,
});
return
false
;
startTimeConfirm
(
isCancle
)
{
console
.
log
(
'isCancle-'
,
isCancle
)
if
(
isCancle
==
'cancel'
){
this
.
startTimeValue
=
''
;
this
.
endTimeValue
=
''
;
this
.
timeRange
=
''
;
}
if
(
isCancle
==
'submit'
){
if
(
String
(
this
.
startTimeValue
).
trim
()
===
''
||
!
this
.
startTimeValue
){
this
.
$message
({
message
:
"请选择问诊开始时间"
,
type
:
"warning"
,
duration
:
1000
,
});
return
false
;
}
if
(
String
(
this
.
timeRange
).
trim
()
===
''
){
this
.
$message
({
message
:
"请选择问诊时长"
,
type
:
"warning"
,
duration
:
1000
,
});
return
false
;
}
this
.
endTimeValue
=
dayjs
(
this
.
startTimeValue
).
add
(
this
.
timeRange
,
'minute'
).
format
(
'YYYY-MM-DD HH:mm:ss'
);
}
this
.
endTimeValue
=
dayjs
(
this
.
startTimeValue
).
add
(
this
.
timeRange
,
'minute'
).
format
(
'YYYY-MM-DD HH:mm:ss'
);
this
.
diagnosisStartTimeDialog
=
false
;
},
dayFormat
(
v
){
...
...
@@ -357,12 +376,14 @@ export default {
return
dayjs
(
v
).
format
(
'YYYY-MM-DD HH:mm'
);
},
timeRangeChange
(
v
)
{
console
.
log
(
'---v'
,
v
);
if
(
this
.
startTimeValue
&&
v
){
this
.
endTimeValue
=
dayjs
(
this
.
startTimeValue
).
add
(
v
,
'minute'
).
format
(
'YYYY-MM-DD HH:mm:ss'
);
}
},
startTimeChange
(
v
)
{
if
(
!
v
){
this
.
endTimeValue
=
''
;
}
if
(
this
.
timeRange
&&
v
){
this
.
endTimeValue
=
dayjs
(
v
).
add
(
this
.
timeRange
,
'minute'
).
format
(
'YYYY-MM-DD HH:mm:ss'
);
}
...
...
@@ -378,14 +399,13 @@ export default {
}
.grey-bg
{
padding
:
0px
15px
;
//background-color: #F5F7FA;
color
:
rgb
(
96
,
98
,
102
);
cursor
:
not
-
allowed
;
height
:
28px
;
line-height
:
28px
;
border-radius
:
4px
;
border
:
1px
solid
#DCDFE6
;
font-size
:
12px
;
cursor
:
pointer
;
}
.startTime-wrap
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录