Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-admin-consultation
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
jingqi.liu
pica-admin-consultation
提交
1e5d8b69
提交
1e5d8b69
编写于
12月 03, 2021
作者:
xiaoping.di
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
问诊dan
上级
18fc33af
变更
6
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
95 行增加
和
110 行删除
+95
-110
workbench.js
src/api/workbench.js
+3
-2
index.js
src/components/common/consultationCard/index.js
+6
-2
index.scss
src/components/common/consultationCard/index.scss
+29
-35
index.vue
src/components/common/consultationCard/index.vue
+21
-5
socket.js
src/store/modules/socket.js
+2
-29
workbench-new.vue
src/views/IM/diagnosis-admin/workbench-new.vue
+34
-37
未找到文件。
src/api/workbench.js
浏览文件 @
1e5d8b69
...
...
@@ -49,9 +49,10 @@ export const manualCall = async (data) => {
};
// 查询当前上级医生下排队的信息
export
const
waitPersonNum
=
async
(
d
octorId
)
=>
{
export
const
waitPersonNum
=
async
(
d
ata
)
=>
{
return
request
({
url
:
`/admin/diagnose/queueList/
${
doctorId
}
`
,
url
:
'/diagnose/admin/diagnose/queueList/doctorId'
,
method
:
'post'
,
data
:
data
,
});
};
src/components/common/consultationCard/index.js
浏览文件 @
1e5d8b69
...
...
@@ -285,8 +285,12 @@ export default {
},
waitPersonFun
()
{
if
(
!
this
.
isShowWait
)
{
console
.
log
(
this
.
item
.
doctorId
,
'this.item.doctorId'
);
waitPersonNum
(
this
.
item
.
doctorId
)
const
parms
=
{
assistantBeginTime
:
this
.
item
.
appointBeginTime
,
doctorId
:
this
.
item
.
doctorId
,
};
console
.
log
(
parms
,
'this.item.doctorId'
);
waitPersonNum
(
parms
)
.
then
((
res
)
=>
{
if
(
res
.
code
===
'000000'
)
{
this
.
waitPersonList
=
res
.
data
||
[];
...
...
src/components/common/consultationCard/index.scss
浏览文件 @
1e5d8b69
...
...
@@ -17,6 +17,9 @@
font-size
:
18px
;
margin-top
:
3px
;
}
.notime
{
color
:
#999999
;
}
}
.right
{
margin-left
:
23px
;
...
...
@@ -45,7 +48,7 @@
}
}
.superior-doctor
{
width
:
49
%
;
width
:
52
%
;
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
flex-start
;
...
...
@@ -89,19 +92,19 @@
.info-name-wrap
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
span
{
display
:
block
;
}
.info-name
{
display
:
inline-block
;
max-width
:
85px
;
overflow
:
hidden
;
//display: inline-block;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
font-size
:
18px
;
color
:
#02120f
;
font-weight
:
bold
;
}
}
.info-container
{
align-items
:
center
;
flex-direction
:
row
;
...
...
@@ -115,17 +118,6 @@
.info-call-time
{
color
:
#ff5e57
;
}
.info-calling
{
width
:
15px
;
height
:
25px
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
img
{
width
:
15px
;
height
:
15px
;
}
}
}
}
.manual-call-status
{
...
...
@@ -150,7 +142,7 @@
}
}
.basic-doctor
{
width
:
4
9
%
;
width
:
4
0
%
;
display
:
flex
;
justify-content
:
flex-start
;
.basic-user-img
,
...
...
@@ -201,21 +193,23 @@
color
:
#ff5e57
;
}
.info-calling
{
width
:
15px
;
height
:
25px
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
img
{
width
:
15px
;
height
:
15px
;
}
background
:
rgba
(
255
,
94
,
87
,
0
.07
);
border-radius
:
10px
;
border
:
1px
solid
rgba
(
255
,
94
,
87
,
0
.15
);
height
:
20px
;
text-align
:
center
;
font-size
:
14px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#ff5e57
;
line-height
:
20px
;
margin-top
:
3px
;
}
}
}
}
.no-info
{
width
:
10
0%
;
width
:
3
0%
;
height
:
auto
;
color
:
#ff5e57
;
}
...
...
src/components/common/consultationCard/index.vue
浏览文件 @
1e5d8b69
...
...
@@ -31,8 +31,9 @@
</li>
<li
class=
"inquiry-user-status"
>
<!-- 只有-->
<!-- -->
<span
v-if=
"
item.userId
"
v-if=
"
!doctorLastCallTime && item.doctorCallKfStatus != 1
"
:class=
"
doctorCallStatus === '已拨打完成'
? 'status-cll-user-finish'
...
...
@@ -44,7 +45,7 @@
class=
"status-cll-user-answer"
>
正在呼叫
</span>
<span
v-
else
v-
if=
"doctorLastCallTime"
class=
"status-cll-user-answer"
>
{{
doctorLastCallTime
}}
前呼叫医助
</span>
...
...
@@ -89,8 +90,18 @@
>
呼叫中
</div>
<div
v-if=
"item.userCallKfStatus == 2 && userLastCallTime"
class=
"info-calling"
>
<span
v-if=
"userLastCallTime"
>
{{
userLastCallTime
}}
前呼叫医助
</span>
</div>
</li>
<li
class=
"inquiry-user-status"
>
<li
v-if=
"item.userCallKfStatus != 1 && userCallStatus"
class=
"inquiry-user-status"
>
<span
:class=
"
userCallStatus === '已拨打完成'
...
...
@@ -118,6 +129,12 @@
>
暂停接诊
</div>
<div
v-if=
"item.acceptStatus == 4"
class=
"doctor-stop"
>
离开
</div>
</div>
</div>
<!-- 预约时间,复制单号 -->
...
...
@@ -133,7 +150,7 @@
</div>
<div
v-else
class=
"time"
class=
"time
notime
"
>
无
</div>
...
...
@@ -205,7 +222,6 @@
</div>
</div>
</div>
<!-- 排队详细 -->
<div
v-if=
"isShowWait"
...
...
src/store/modules/socket.js
浏览文件 @
1e5d8b69
...
...
@@ -26,34 +26,6 @@ const socket = {
console
.
log
(
'socket disconnect----'
,
socket
);
// state.socketClient.connect();
});
socketClient
.
on
(
'diagnose_push_event'
,
(
socket
)
=>
{
const
{
list
,
allSize
,
countRespList
}
=
socket
;
console
.
log
(
'-rootState'
,
rootState
,
socket
);
const
{
currentTabStatus
}
=
rootState
.
main
;
context
.
commit
(
'main/updateCurrentCalList'
,
countRespList
,
{
root
:
true
,
});
context
.
commit
(
'main/updateAllSize'
,
allSize
,
{
root
:
true
});
if
(
list
)
{
const
l
=
list
[
0
]
||
[];
if
(
currentTabStatus
==
99
)
{
context
.
commit
(
'main/updateCurrentDiagList'
,
list
,
{
root
:
true
});
}
else
{
if
(
currentTabStatus
==
l
.
returnStatus
)
{
context
.
commit
(
'main/updateCurrentDiagList'
,
list
,
{
root
:
true
,
});
}
if
(
l
.
length
==
0
)
{
context
.
commit
(
'main/updateCurrentDiagList'
,
list
,
{
root
:
true
,
});
}
}
}
else
{
context
.
commit
(
'main/updateCurrentDiagList'
,
[],
{
root
:
true
});
}
});
socketClient
.
on
(
'diagnose_call_push_event'
,
(
socket
)
=>
{
console
.
log
(
socket
,
...
...
@@ -75,8 +47,9 @@ const socket = {
if
(
path
&&
String
(
path
).
indexOf
(
'workbench'
)
>
-
1
&&
n
.
operateUserId
==
operateUserId
(
n
.
operateUserId
==
operateUserId
||
n
.
operateUserId
==
'999999'
)
)
{
console
.
log
(
n
);
const
ni
=
{
notifyInfo
:
n
,
rootState
:
rootState
};
context
.
commit
(
'SET_NOTIFY'
,
ni
);
}
...
...
src/views/IM/diagnosis-admin/workbench-new.vue
浏览文件 @
1e5d8b69
...
...
@@ -63,7 +63,7 @@
placeholder=
"输入问诊单号/医生姓名"
class=
"input-with-select"
@
change=
"getSerachValue"
>
/
>
<el-button
slot=
"append"
class=
"search-botton"
...
...
@@ -71,7 +71,13 @@
>
搜索
</el-button>
</el-input>
<el-button
slot=
"append"
class=
"reset-botton"
@
click=
"resetSearchValue"
>
重置
</el-button>
</div>
</div>
<!-- 问诊状态内容 -->
...
...
@@ -350,13 +356,8 @@
this
.
tabPositionValue
=
this
.
$route
.
query
.
type
||
'3'
;
},
mounted
()
{
const
s
=
storejs
.
get
(
'soketQuest'
);
const
id
=
s
&&
s
.
operateUserId
?
s
.
operateUserId
:
this
.
isSuperAdmin
.
userID
;
this
.
userInfo
=
storejs
.
get
(
'initSocketInfo'
);
if
(
!
id
)
{
this
.
localUserId
=
this
.
userInfo
.
userId
;
}
this
.
initCard
();
const
that
=
this
;
// 轮循
...
...
@@ -365,7 +366,7 @@
// that.isShowCardData = false;
that
.
initCard
();
},
0
);
},
40
000
);
},
15
000
);
this
.
doctorDeparList
();
},
destroyed
()
{
...
...
@@ -450,17 +451,16 @@
}
});
},
initCard
()
{
const
parms
=
{
bizType
:
this
.
tabPositionValue
,
// 1,异常的列表 2,不需要处理的列表
userId
:
this
.
operatId
||
this
.
localUserId
,
// userId
};
// this.currentDiagList = this.mockData;
conditionNewList
(
parms
)
.
then
((
res
)
=>
{
if
(
res
.
code
===
'000000'
)
{
this
.
handleData
(
res
.
data
.
length
>
0
?
res
.
data
:
this
.
mockData
);
this
.
handleData
(
res
.
data
);
// this.handleData(res.data.length > 0 ? res.data : this.mockData);
}
else
{
this
.
$message
({
message
:
res
.
message
,
...
...
@@ -472,7 +472,7 @@
.
catch
((
err
)
=>
{
console
.
log
(
err
);
// mock 数据
this
.
handleData
(
this
.
mockData
);
//
this.handleData(this.mockData);
});
},
handleData
(
data
)
{
...
...
@@ -480,7 +480,6 @@
this
.
midCardData
=
[];
const
searchVal
=
this
.
orderOrName
;
data
.
forEach
((
item
,
index
)
=>
{
// item.diagnoseLogId = '--' + Math.random() * 10;
item
[
'definitionRandom'
]
=
Math
.
random
()
*
10
;
if
(
searchVal
)
{
// 如果有查询条件一直后去的是查询结果
...
...
@@ -513,6 +512,10 @@
this
.
handleSearchResult
(
this
.
orderOrName
);
}
},
resetSearchValue
()
{
this
.
orderOrName
=
''
;
this
.
initCard
();
},
// 处理查询结果
handleSearchResult
(
searchVal
)
{
this
.
isShowCardData
=
false
;
...
...
@@ -645,10 +648,16 @@
margin-left
:
8px
;
.el-input
{
width
:
364px
;
}
.search-botton
{
background
:
#0d9078
;
color
:
#fff
;
margin-left
:
5px
;
}
.reset-botton
{
background
:
#0d9078
;
color
:
#fff
;
margin-left
:
5px
;
}
}
}
...
...
@@ -831,16 +840,4 @@
padding
:
10px
0
;
background-color
:
#f9fafc
;
}
// 屏幕适配
@media
screen
and
(
min-width
:
1240px
)
and
(
max-width
:
1441px
)
{
.workbench-container
{
.workbench-li-c
{
.grid-c
{
.workbench-li
{
//max-width: 572px;
}
}
}
}
}
</
style
>
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录