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
提交
695c2f12
提交
695c2f12
编写于
11月 10, 2021
作者:
qian.jie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
排班
上级
5a63daa5
变更
2
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
78 行增加
和
66 行删除
+78
-66
diagnosis-doctor.vue
src/components/common/diagnosis-doctor.vue
+68
-65
index.js
src/utils/diagnosis/index.js
+10
-1
未找到文件。
src/components/common/diagnosis-doctor.vue
浏览文件 @
695c2f12
...
@@ -222,13 +222,13 @@
...
@@ -222,13 +222,13 @@
<div
class=
"doctor-info-Num"
>
<div
class=
"doctor-info-Num"
>
<div
class=
"doctor-info-NumToday"
>
<div
class=
"doctor-info-NumToday"
>
<div
class=
"num-info-much"
>
<div
class=
"num-info-much"
>
90
{{
todayNum
}}
</div>
</div>
<div>
今日接诊人数
</div>
<div>
今日接诊人数
</div>
</div>
</div>
<div
class=
"doctor-info-maxToday"
>
<div
class=
"doctor-info-maxToday"
>
<div
class=
"num-info-much"
>
<div
class=
"num-info-much"
>
120
{{
maxTodayNum
}}
</div>
</div>
<div>
今日接诊上限人数
</div>
<div>
今日接诊上限人数
</div>
</div>
</div>
...
@@ -398,7 +398,7 @@
...
@@ -398,7 +398,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
updateDiagnosis
}
from
'../../utils/diagnosis'
;
import
{
manualQueue
}
from
'../../utils/diagnosis'
;
import
dayjs
from
'dayjs'
;
import
dayjs
from
'dayjs'
;
import
{
getDoctorList
,
getLeisureTime
,
acceptsCeiling
}
from
'@/api/diagnosis'
;
import
{
getDoctorList
,
getLeisureTime
,
acceptsCeiling
}
from
'@/api/diagnosis'
;
...
@@ -436,7 +436,7 @@
...
@@ -436,7 +436,7 @@
return
{
return
{
chooseTimeIndex
:
1000
,
chooseTimeIndex
:
1000
,
chooseTime
:
''
,
chooseTime
:
''
,
rateValue
:
3
,
rateValue
:
0
,
colors
:
[
'#0D9078'
,
'#0D9078'
,
'#0D9078'
],
colors
:
[
'#0D9078'
,
'#0D9078'
,
'#0D9078'
],
show
:
false
,
show
:
false
,
title
:
'设置接诊医生'
,
title
:
'设置接诊医生'
,
...
@@ -456,6 +456,7 @@
...
@@ -456,6 +456,7 @@
receptionEndTime
:
''
,
receptionEndTime
:
''
,
bizType
:
''
,
bizType
:
''
,
diagnoseChannel
:
1
,
diagnoseChannel
:
1
,
doctorDepartmentId
:
''
,
},
},
doctorList
:
[],
doctorList
:
[],
sessionDoctorList
:
[],
sessionDoctorList
:
[],
...
@@ -548,6 +549,8 @@
...
@@ -548,6 +549,8 @@
],
],
startTime
:
''
,
startTime
:
''
,
endTime
:
''
,
endTime
:
''
,
todayNum
:
''
,
maxTodayNum
:
''
,
};
};
},
},
watch
:
{
watch
:
{
...
@@ -591,68 +594,59 @@
...
@@ -591,68 +594,59 @@
this
.
getLeisureTime
(
this
.
chooseTime
);
this
.
getLeisureTime
(
this
.
chooseTime
);
},
},
getLeisureTime
(
chooseTime
)
{
getLeisureTime
(
chooseTime
)
{
console
.
log
(
this
.
doctorInfo
);
const
params
=
{
const
params
=
{
dictorId
:
this
.
doctorInfo
.
doctor
Id
,
dictorId
:
this
.
formData
.
reception
Id
,
weekDay
:
chooseTime
,
weekDay
:
chooseTime
,
departmentId
:
this
.
formData
.
doctorDepartmentId
,
};
};
getLeisureTime
(
params
).
then
((
res
)
=>
{
getLeisureTime
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
'000000'
)
{
if
(
res
.
code
==
'000000'
)
{
console
.
log
(
res
);
console
.
log
(
res
);
this
.
timeChoosetList
=
res
.
data
||
[];
}
}
});
});
},
},
confirm
()
{
confirm
()
{
this
.
$refs
.
setForm
.
validate
((
valid
)
=>
{
console
.
log
(
this
.
startTime
,
'starrrr'
);
if
(
!
this
.
startTimeValue
||
!
this
.
endTimeValue
)
{
if
(
this
.
formData
.
receptionName
==
''
)
{
this
.
$message
({
this
.
$message
({
message
:
'请选择问诊时间'
,
message
:
'请先选择接诊医生'
,
type
:
'warning'
,
duration
:
1000
,
});
return
false
;
}
if
(
this
.
startTime
==
''
)
{
this
.
$message
({
message
:
'请选择排班时间'
,
type
:
'warning'
,
type
:
'warning'
,
duration
:
1000
,
duration
:
1000
,
});
});
return
false
;
return
false
;
}
}
if
(
valid
)
{
let
req
=
null
;
if
(
this
.
formData
.
receptionName
==
'站外医生'
||
this
.
formData
.
receptionName
==
'云鹊医助'
)
{
this
.
formData
.
innerFlag
=
2
;
// 外部
req
=
{
id
:
this
.
diagnoseLogId
,
bizType
:
9
,
innerFlag
:
this
.
formData
.
innerFlag
,
receptionId
:
this
.
formData
.
receptionId
,
receptionName
:
this
.
formData
.
receptionName
,
outsideDoctor
:
this
.
formData
.
outsideDoctor
,
// receptionBeginTime:this.rangeTime[0],
// receptionEndTime:this.rangeTime[1],
receptionBeginTime
:
this
.
dayFormat
(
this
.
startTimeValue
),
receptionEndTime
:
this
.
endTimeValue
,
diagnoseChannel
:
this
.
formData
.
diagnoseChannel
,
};
}
else
{
this
.
formData
.
innerFlag
=
1
;
// 内部
this
.
formData
.
innerFlag
=
1
;
// 内部
req
=
{
const
req
=
{
id
:
this
.
diagnoseLogId
,
id
:
this
.
diagnoseLogId
,
bizType
:
9
,
innerFlag
:
this
.
formData
.
innerFlag
,
innerFlag
:
this
.
formData
.
innerFlag
,
receptionId
:
this
.
formData
.
receptionId
,
receptionId
:
this
.
formData
.
receptionId
,
receptionName
:
this
.
formData
.
receptionName
,
receptionName
:
this
.
formData
.
receptionName
,
// receptionBeginTime:this.rangeTime[0],
receptionBeginTime
:
this
.
startTime
,
// receptionEndTime:this.rangeTime[1],
receptionEndTime
:
this
.
endTime
,
receptionBeginTime
:
this
.
dayFormat
(
this
.
startTimeValue
),
receptionEndTime
:
this
.
endTimeValue
,
diagnoseChannel
:
this
.
formData
.
diagnoseChannel
,
diagnoseChannel
:
this
.
formData
.
diagnoseChannel
,
};
};
}
manualQueue
(
req
)
vm
.
isClick
=
true
;
updateDiagnosis
(
req
)
.
then
(
function
(
res
)
{
.
then
(
function
(
res
)
{
vm
.
isClick
=
false
;
vm
.
isClick
=
false
;
if
(
res
.
code
==
'000000'
)
{
if
(
res
.
code
==
'000000'
)
{
vm
.
cancel
();
vm
.
cancel
();
vm
.
$emit
(
'search'
);
vm
.
$emit
(
'search'
);
this
.
todayNum
=
''
;
this
.
maxTodayNum
=
''
;
this
.
rateValue
=
''
;
this
.
chooseTime
=
''
;
this
.
startTime
=
''
;
this
.
endTime
=
''
;
}
else
{
}
else
{
vm
.
$message
.
error
(
res
.
message
);
vm
.
$message
.
error
(
res
.
message
);
}
}
...
@@ -661,8 +655,6 @@
...
@@ -661,8 +655,6 @@
vm
.
isClick
=
false
;
vm
.
isClick
=
false
;
vm
.
$message
.
error
(
err
.
message
);
vm
.
$message
.
error
(
err
.
message
);
});
});
}
});
},
},
refreshData
()
{
refreshData
()
{
const
key
=
'sessionDoctorList'
+
this
.
diagnoseType
;
const
key
=
'sessionDoctorList'
+
this
.
diagnoseType
;
...
@@ -675,6 +667,14 @@
...
@@ -675,6 +667,14 @@
// this.startTimeValue = this.rangeTimeData;
// this.startTimeValue = this.rangeTimeData;
// this.endTimeValue = '';
// this.endTimeValue = '';
// this.timeRange = Number(20);
// this.timeRange = Number(20);
this
.
todayNum
=
''
;
this
.
maxTodayNum
=
''
;
this
.
rateValue
=
''
;
this
.
chooseTime
=
''
;
this
.
timeChoosetList
=
[];
this
.
chooseTimeIndex
=
null
;
this
.
startTime
=
''
;
this
.
endTime
=
''
;
this
.
$emit
(
'update:diagnosisDoctorVisible'
,
false
);
this
.
$emit
(
'update:diagnosisDoctorVisible'
,
false
);
},
},
opendialog
()
{
opendialog
()
{
...
@@ -697,6 +697,7 @@
...
@@ -697,6 +697,7 @@
this
.
formData
.
doctorHospital
=
selected
.
doctorHospital
;
this
.
formData
.
doctorHospital
=
selected
.
doctorHospital
;
this
.
formData
.
doctorDepartment
=
selected
.
doctorDepartment
;
this
.
formData
.
doctorDepartment
=
selected
.
doctorDepartment
;
this
.
formData
.
doctorMobile
=
selected
.
doctorMobile
;
this
.
formData
.
doctorMobile
=
selected
.
doctorMobile
;
this
.
formData
.
doctorDepartmentId
=
selected
.
doctorDepartmentId
;
this
.
acceptsCeilings
(
this
.
formData
.
receptionId
);
this
.
acceptsCeilings
(
this
.
formData
.
receptionId
);
// debugger;
// debugger;
// this.formData.serviceFee = this.priceFilter(selected.serviceFee)
// this.formData.serviceFee = this.priceFilter(selected.serviceFee)
...
@@ -708,7 +709,9 @@
...
@@ -708,7 +709,9 @@
};
};
acceptsCeiling
(
params
).
then
((
res
)
=>
{
acceptsCeiling
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
'000000'
)
{
if
(
res
.
code
==
'000000'
)
{
console
.
log
(
res
);
this
.
todayNum
=
res
.
data
.
dayAcceptsCount
||
0
;
this
.
maxTodayNum
=
res
.
data
.
dayAcceptsCeiling
||
0
;
this
.
rateValue
=
res
.
data
.
level
;
}
}
});
});
},
},
...
...
src/utils/diagnosis/index.js
浏览文件 @
695c2f12
...
@@ -16,6 +16,15 @@ export const updateDiagnosis = (params) => {
...
@@ -16,6 +16,15 @@ export const updateDiagnosis = (params) => {
});
});
};
};
export
const
manualQueue
=
(
params
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
'/diagnose/diagnose/manual/queue'
),
method
:
'post'
,
data
:
params
,
description
:
'保存问诊相关信息'
,
});
};
/* 批量设置运营*/
/* 批量设置运营*/
export
const
batchSetOperator
=
(
params
)
=>
{
export
const
batchSetOperator
=
(
params
)
=>
{
return
fetch
({
return
fetch
({
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录