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
提交
7917de8f
提交
7917de8f
编写于
3月 27, 2024
作者:
zhaosheng.zhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 问诊列表及详情增加字段
上级
343297e9
变更
5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
134 行增加
和
1 行删除
+134
-1
table-set-component.vue
src/components/list/table-set-component.vue
+36
-1
diagnosis-list-new.js
src/utils/GeneralData/diagnosis-list-new.js
+10
-0
constants.js
src/utils/constants.js
+15
-0
diagnosis-editor.vue
src/views/IM/diagnosis-admin/diagnosis-editor.vue
+48
-0
diagnosis-list-new.vue
src/views/IM/diagnosis-admin/diagnosis-list-new.vue
+25
-0
未找到文件。
src/components/list/table-set-component.vue
浏览文件 @
7917de8f
...
...
@@ -29,7 +29,8 @@
:label=
"item.label"
:show-overflow-tooltip=
"item.showtooltip"
:sortable=
"
item.prop == 'appointBeginTime' || item.prop == 'assistantBeginTime'
item.prop == 'appointBeginTime' || item.prop == 'assistantBeginTime' ||
item.prop == 'assistantTime' || item.prop == 'receptionTime'
? 'custom'
: false
"
...
...
@@ -50,6 +51,26 @@
<p>
{{
scope
.
row
.
receptionBeginTime
}}
</p>
<p>
{{
scope
.
row
.
receptionEndTime
}}
</p>
</div>
<div
v-else-if=
"scope.column.property == 'assistantTime'"
>
<div
:style=
"
{ color: isAssistantTime(scope) ? 'red' : ''}">
<p
v-if=
"isAssistantTime(scope)"
>
距自动取消还剩
</p>
<p>
{{
goTime
(
scope
.
row
.
assistantTime
)
}}
</p>
</div>
</div>
<div
v-else-if=
"scope.column.property == 'receptionTime'"
>
<div
:style=
"
{
color: scope.row.diagnoseChannel === 3
&&
scope.row.status === 3 ? 'red' : ''
}"
>
<p
v-if=
"scope.row.diagnoseChannel === 3 && scope.row.status === 3"
>
距自动取消还剩
</p>
<p>
{{
goTime
(
scope
.
row
.
receptionTime
)
}}
</p>
</div>
</div>
<div
v-else
>
<p>
{{
scope
.
row
[
scope
.
column
.
property
]
}}
</p>
</div>
...
...
@@ -252,6 +273,9 @@
<
script
>
import
{
DIAGNOS_LIST_NEW
}
from
'@/utils/GeneralData/diagnosis-list-new'
;
import
TabSet
from
'@/components/common/tab-set'
;
import
dayjs
from
'dayjs'
;
import
duration
from
'dayjs/plugin/duration'
;
dayjs
.
extend
(
duration
);
export
default
{
components
:
{
TabSet
,
...
...
@@ -422,6 +446,17 @@
},
callAssistant
(
row
)
{
this
.
$emit
(
'callAssistant'
,
row
);
},
// 转成时分秒
goTime
(
time
)
{
return
dayjs
.
duration
(
time
,
'seconds'
).
format
(
'HH:mm:ss'
);
},
isAssistantTime
(
scope
)
{
if
(
scope
.
row
.
diagnoseChannel
===
3
&&
(
scope
.
row
.
status
===
2
||
scope
.
row
.
status
===
21
||
scope
.
row
.
status
===
22
||
scope
.
row
.
status
===
23
||
scope
.
row
.
status
===
24
||
scope
.
row
.
status
===
25
||
scope
.
row
.
status
===
26
)
)
return
true
;
}
},
};
...
...
src/utils/GeneralData/diagnosis-list-new.js
浏览文件 @
7917de8f
...
...
@@ -109,6 +109,16 @@ export const DIAGNOS_LIST_NEW = [
label
:
'稍后跟进状态'
,
showtooltip
:
false
,
},
{
prop
:
'assistantTime'
,
label
:
'问诊时长'
,
showtooltip
:
false
,
},
{
prop
:
'receptionTime'
,
label
:
'接诊时长'
,
showtooltip
:
false
,
},
{
prop
:
'operateUserId'
,
label
:
'运营人员ID'
,
...
...
src/utils/constants.js
浏览文件 @
7917de8f
...
...
@@ -663,3 +663,18 @@ export const TABLE_COLUMN = [
showtooltip
:
true
,
},
];
export
const
DIAGNOSE_CHANNEL
=
[
{
label
:
'app问诊'
,
value
:
1
,
},
{
label
:
'线下问诊'
,
value
:
2
,
},
{
label
:
'小程序问诊'
,
value
:
3
,
},
];
src/views/IM/diagnosis-admin/diagnosis-editor.vue
浏览文件 @
7917de8f
...
...
@@ -81,6 +81,18 @@
value-format=
"yyyy-MM-dd HH:mm:ss"
/>
</el-form-item>
<el-form-item
label=
"订单金额"
prop=
"orderTotalPrice"
>
<el-input
v-model=
"formData.orderTotalPrice"
placeholder=
"请输入问诊价格"
disabled
class=
"set-width"
/>
(单位元)
</el-form-item>
<el-form-item
label=
"问诊价格"
prop=
"price"
...
...
@@ -93,6 +105,32 @@
/>
(单位元)
</el-form-item>
<el-form-item
label=
"诊疗费"
prop=
"additionPrice"
>
<el-input
v-model=
"formData.additionPrice"
placeholder=
"请输入诊疗费"
disabled
class=
"set-width"
/>
(单位元)
</el-form-item>
<el-form-item
label=
"问诊方式"
>
<el-select
v-model=
"formData.diagnoseChannel"
placeholder=
"请选择问诊方式"
class=
"set-width"
>
<el-option
v-for=
"item of diagnoseChannelList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"支付方式"
>
<el-select
v-model=
"formData.payType"
...
...
@@ -1006,6 +1044,7 @@ import {
SOURCE_LIST
,
STATUS_LIST
,
TYPE_LIST
,
DIAGNOSE_CHANNEL
}
from
'@/utils/constants'
;
import
{
getBirth
}
from
'@/utils/index'
;
...
...
@@ -1115,9 +1154,13 @@ export default {
name
:
''
,
url
:
''
,
}
,
additionPrice
:
null
,
// 诊疗费
orderTotalPrice
:
null
,
diagnoseChannel
:
null
}
,
tyleList
:
TYPE_LIST
,
payList
:
PAY_LIST
,
diagnoseChannelList
:
DIAGNOSE_CHANNEL
,
sourceList
:
SOURCE_LIST
,
statusList
:
STATUS_LIST
,
carList
:
CAR_LIST
,
...
...
@@ -1281,6 +1324,11 @@ export default {
if
(
res
.
code
==
'000000'
)
{
this
.
formData
=
res
.
data
;
this
.
formData
.
price
=
this
.
priceFilter
(
this
.
formData
.
price
);
this
.
formData
.
additionPrice
=
this
.
priceFilter
(
this
.
formData
.
additionPrice
);
console
.
log
(
'问诊价格====='
,
this
.
formData
.
price
);
console
.
log
(
'诊疗费价格====='
,
this
.
formData
.
additionPrice
);
this
.
formData
.
orderTotalPrice
=
this
.
formData
.
price
+
this
.
formData
.
additionPrice
;
console
.
log
(
'订单总金额====='
,
this
.
formData
.
additionPrice
);
this
.
formData
.
serviceFee
=
this
.
priceFilter
(
this
.
formData
.
serviceFee
);
...
...
src/views/IM/diagnosis-admin/diagnosis-list-new.vue
浏览文件 @
7917de8f
...
...
@@ -364,6 +364,26 @@
</el-select>
</el-form-item>
</div>
<div>
<el-form-item
label=
"问诊方式"
class=
"t-b"
>
<el-select
v-model=
"searchParam.diagnoseChannel"
placeholder=
"请选择问诊方式"
clearable
style=
"width: 220px"
>
<el-option
v-for=
"item of diagnoseChannelList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/>
</el-select>
</el-form-item>
</div>
</div>
<div
class=
"form-btn"
>
<div
class=
"form-btn-li"
>
...
...
@@ -603,6 +623,7 @@ import {
SOURCE_LIST
,
TRIAGE_TAB_LIST
,
TYPE_LIST
,
DIAGNOSE_CHANNEL
}
from
'@/utils/constants'
;
import
{
outbounNote
}
from
'../../../api/diagnosis'
;
import
{
callAssistantDoctor
,
updateDiagnosis
}
from
'../../../utils/diagnosis'
;
...
...
@@ -681,6 +702,7 @@ export default {
orderPlacer
:
''
,
matchingWay
:
null
,
consultRoadList
:
[],
diagnoseChannel
:
null
,
patientName
:
null
,
},
noteList
:
[],
...
...
@@ -704,6 +726,7 @@ export default {
value
:
2
,
},
],
diagnoseChannelList
:
DIAGNOSE_CHANNEL
,
nextPersonList
:
[
{
label
:
'基层医生'
,
...
...
@@ -1177,7 +1200,9 @@ export default {
inNewTimeObj
:
{},
consultRoadList
:
[],
patientName
:
null
,
diagnoseChannel
:
null
});
this
.
getsearch
();
},
// 导出
download
()
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录