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
提交
f4f41a33
提交
f4f41a33
编写于
12月 03, 2021
作者:
xiaoping.di
浏览文件
操作
浏览文件
下载
差异文件
yeye
上级
1e5d8b69
74b1dfa0
变更
6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
153 行增加
和
49 行删除
+153
-49
administrators.js
src/api/administrators.js
+18
-6
workbench.js
src/api/workbench.js
+3
-2
department-doctor.vue
src/components/common/department-doctor.vue
+41
-8
administrators.vue
src/views/IM/diagnosis-admin/administrators.vue
+47
-3
operation.vue
src/views/IM/diagnosis-admin/operation.vue
+16
-10
workbench-new.vue
src/views/IM/diagnosis-admin/workbench-new.vue
+28
-20
未找到文件。
src/api/administrators.js
浏览文件 @
f4f41a33
import
request
from
'mn-template/plugins/http'
;
export
const
getMatchList
=
async
()
=>
{
return
request
({
url
:
'/diagnose/match/list'
,
method
:
'get'
,
});
};
\ No newline at end of file
export
const
getMatchList
=
async
()
=>
{
return
request
({
url
:
'/diagnose/match/list'
,
method
:
'get'
,
});
};
export
const
getCountByDay
=
async
(
data
)
=>
{
return
request
({
url
:
`/im/team/callOp/countByDay?startTimestamp=
${
data
.
startTimestamp
}
&endTimestamp=
${
data
.
endTimestamp
}
`
,
method
:
'get'
,
});
};
export
const
lateCountByDay
=
async
(
data
)
=>
{
return
request
({
url
:
`/diagnose/superiorDoctor/lateCountByDay?startTimestamp=
${
data
.
startTimestamp
}
&endTimestamp=
${
data
.
endTimestamp
}
`
,
method
:
'get'
,
});
};
src/api/workbench.js
浏览文件 @
f4f41a33
...
...
@@ -10,8 +10,9 @@ export const doctorListAnd = async (data) => {
export
const
doctorListRest
=
async
(
data
)
=>
{
return
request
({
url
:
`diagnose/admin/diagnose/reset/operate/doctorList/
${
data
.
uid
}
`
,
method
:
'get'
,
url
:
'diagnose/admin/diagnose/reset/operate/doctorList'
,
method
:
'post'
,
data
:
data
,
});
};
export
const
conditionUpdate
=
async
(
data
)
=>
{
...
...
src/components/common/department-doctor.vue
浏览文件 @
f4f41a33
<
template
>
<div
class=
"depart-doctor"
>
<el-tabs
v-model=
"activeMoutendName"
@
tab-click=
"handleClick"
>
<el-tabs
v-model=
"activeMoutendName"
>
<el-tab-pane
v-for=
"item in departDoctorList"
:key=
"item.departmentId"
...
...
@@ -76,9 +73,6 @@
mounted
()
{},
methods
:
{
handleClick
(
value
)
{
console
.
log
(
value
,
'value'
);
},
handleCheckAllChange
(
value
,
item
)
{
let
itemNameList
=
[];
if
(
value
)
{
...
...
@@ -117,4 +111,43 @@
};
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
<
style
lang=
"scss"
>
.depart-doctor
{
.el-checkbox__input.is-disabled
.el-checkbox__inner
{
border-color
:
#d9d9d9
!
important
;
background
:
#fff
!
important
;
}
.el-checkbox.is-disabled
.el-checkbox__label
{
color
:
#d9d9d9
!
important
;
}
.el-radio__input.is-checked
+
.el-radio__label
,
.el-tabs__item.is-active
{
color
:
#0d9078
!
important
;
font-size
:
16px
!
important
;
}
.is-active
{
border
:
none
;
position
:
relative
;
&
:
:
after
{
content
:
''
;
position
:
absolute
;
bottom
:
0
;
left
:
50%
;
right
:
0
;
height
:
2px
;
background
:
#0d9078
;
width
:
50px
;
transform
:
translateX
(
-50%
);
}
}
.el-tabs__item.is-top
:nth-child
(
2
)
{
padding-left
:
22px
!
important
;
}
.el-tabs__item.is-top
:last-child
{
padding-right
:
22px
!
important
;
}
.el-tab-pane
{
padding
:
10px
20px
;
}
}
</
style
>
src/views/IM/diagnosis-admin/administrators.vue
浏览文件 @
f4f41a33
...
...
@@ -24,6 +24,8 @@
type=
"date"
value-format=
"yyyy-MM-dd"
placeholder=
"选择日期"
:picker-options=
"pickerOptions"
@
change=
"getWorkbenchTime"
/>
</el-col>
</el-row>
...
...
@@ -33,9 +35,9 @@
<div
class=
"right"
>
<span
class=
"totalNumShow"
>
累计汇总数
</span>
<span
class=
"callDoctorShow"
>
呼叫医助次数
</span>
<span
class=
"callDoctorNum"
>
389
</span>
<span
class=
"callDoctorNum"
>
{{
callDoctorNum
}}
</span>
<span
class=
"laterDoctorShow"
>
接诊医生迟到人数
</span>
<span
class=
"laterDoctorNum"
>
167
</span>
<span
class=
"laterDoctorNum"
>
{{
doctorLaterNum
}}
</span>
</div>
</el-col>
</el-row>
...
...
@@ -75,7 +77,11 @@
<
script
>
import
consultationlist
from
'@/components/common/consultation'
;
import
{
getMatchList
}
from
'@/api/administrators'
;
import
{
getMatchList
,
getCountByDay
,
lateCountByDay
,
}
from
'@/api/administrators'
;
export
default
{
components
:
{
...
...
@@ -88,11 +94,20 @@
return
{
workbenchAdminDate
:
d
,
operatorslist
:
[],
pickerOptions
:
{
disabledDate
:
(
time
)
=>
{
return
time
.
getTime
()
>
new
Date
().
getTime
();
// 减去一天的时间代表可以选择同一天;
},
},
callDoctorNum
:
''
,
doctorLaterNum
:
''
,
};
},
watch
:
{},
created
()
{
this
.
init
();
this
.
getCountByDay
();
this
.
lateCountByDay
();
},
methods
:
{
init
()
{
...
...
@@ -102,6 +117,35 @@
}
});
},
getWorkbenchTime
(
value
)
{
this
.
workbenchAdminDate
=
value
;
this
.
getCountByDay
();
this
.
lateCountByDay
();
},
getCountByDay
()
{
const
params
=
{
startTimestamp
:
new
Date
(
this
.
workbenchAdminDate
).
getTime
(),
endTimestamp
:
new
Date
(
this
.
workbenchAdminDate
).
getTime
()
+
86400
*
1000
,
};
getCountByDay
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
'000000'
)
{
this
.
callDoctorNum
=
res
.
data
;
}
});
},
lateCountByDay
()
{
const
params
=
{
startTimestamp
:
new
Date
(
this
.
workbenchAdminDate
).
getTime
(),
endTimestamp
:
new
Date
(
this
.
workbenchAdminDate
).
getTime
()
+
86400
*
1000
,
};
lateCountByDay
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
'000000'
)
{
this
.
doctorLaterNum
=
res
.
data
;
}
});
},
},
};
</
script
>
...
...
src/views/IM/diagnosis-admin/operation.vue
浏览文件 @
f4f41a33
...
...
@@ -20,11 +20,6 @@
v-for=
"(item, index) in adminList"
:key=
"index"
class=
"checkbox-item"
@
change=
"
(val) =>
{
setResert(val, item);
}
"
>
<el-checkbox
:label=
"item.id"
>
{{
item
.
name
}}
...
...
@@ -39,7 +34,7 @@
</el-button>
<el-button
type=
"primary"
@
click=
"sumbitmatch"
@
click=
"sumbitmatch
Cancel
"
>
确定
</el-button>
...
...
@@ -80,6 +75,7 @@
<
script
>
import
{
setDiagnoseMatch
,
operatorQuery
,
sumbitMatch
}
from
'@/api/operation'
;
import
{
doctorListRest
}
from
'@/api/workbench'
;
import
_
from
'lodash'
;
export
default
{
data
()
{
return
{
...
...
@@ -87,6 +83,7 @@
adminList
:
[],
showIsReset
:
false
,
operateId
:
''
,
oldCheckList
:
[],
};
},
mounted
()
{
...
...
@@ -118,6 +115,7 @@
.
then
((
res
)
=>
{
if
(
res
.
code
==
'000000'
)
{
this
.
$message
.
success
(
'保存成功'
);
this
.
getCheckList
();
}
})
.
catch
(()
=>
{
...
...
@@ -130,6 +128,7 @@
.
then
((
res
)
=>
{
if
(
res
.
code
==
'000000'
)
{
this
.
checklist
=
res
.
data
;
this
.
oldCheckList
=
this
.
checklist
;
}
})
.
catch
(()
=>
{
...
...
@@ -146,13 +145,20 @@
cancelResert
()
{
this
.
showIsReset
=
false
;
},
sumbitmatchCancel
()
{
this
.
cancelList
=
_
.
difference
(
this
.
oldCheckList
,
this
.
checklist
);
if
(
this
.
cancelList
.
length
>
0
)
{
this
.
showIsReset
=
true
;
}
else
{
this
.
sumbitmatch
();
}
},
confirmResert
()
{
const
param
=
{
uid
:
this
.
operateId
,
};
doctorListRest
(
param
).
then
((
res
)
=>
{
const
uidList
=
this
.
cancelList
||
[];
doctorListRest
(
uidList
).
then
((
res
)
=>
{
if
(
res
.
code
==
'000000'
)
{
this
.
showIsReset
=
false
;
this
.
sumbitmatch
();
}
});
},
...
...
src/views/IM/diagnosis-admin/workbench-new.vue
浏览文件 @
f4f41a33
...
...
@@ -168,7 +168,7 @@
currentCalListNew
:
[
{
id
:
3
,
name
:
'
全部订单
'
,
name
:
'
医生认领
'
,
},
{
id
:
1
,
...
...
@@ -351,7 +351,6 @@
},
watch
:
{},
created
()
{
console
.
log
(
'currentDiagList---------------------'
,
this
.
currentDiagList
);
this
.
operatId
=
this
.
$route
.
query
.
id
;
this
.
tabPositionValue
=
this
.
$route
.
query
.
type
||
'3'
;
},
...
...
@@ -374,10 +373,8 @@
},
methods
:
{
doctorDeparList
()
{
const
userInfo
=
storejs
.
get
(
'initSocketInfo'
);
const
{
userId
}
=
userInfo
;
const
param
=
{
uid
:
userId
,
uid
:
this
.
operatId
||
this
.
userInfo
.
userId
,
};
doctorDeparList
(
param
).
then
((
res
)
=>
{
if
(
res
.
code
==
'000000'
)
{
...
...
@@ -396,12 +393,18 @@
this
.
showIsReset
=
false
;
},
confirmResert
()
{
const
param
=
{
uid
:
this
.
operatId
?
this
.
operatId
:
this
.
localUserId
,
};
doctorListRest
(
param
).
then
((
res
)
=>
{
const
uidList
=
this
.
operatId
?
[
this
.
operatId
]
:
[]
||
this
.
userInfo
.
userId
?
[
this
.
userInfo
.
userId
]
:
[];
doctorListRest
(
uidList
).
then
((
res
)
=>
{
if
(
res
.
code
==
'000000'
)
{
this
.
showIsReset
=
false
;
this
.
$message
({
message
:
'重置成功'
,
type
:
'success'
,
});
this
.
doctorDeparList
();
}
});
...
...
@@ -436,17 +439,27 @@
},
confirmDoctorList
()
{
const
userInfo
=
storejs
.
get
(
'initSocketInfo'
);
const
{
userId
,
userName
}
=
userInfo
;
console
.
log
(
userId
,
userName
,
'userInfo'
);
const
{
userName
}
=
userInfo
;
const
params
=
{
cancelDoctorIdList
:
this
.
cancelCheckList
||
[],
insertDoctorIdList
:
this
.
newCheckList
||
[],
operateUserId
:
userId
,
operateUserId
:
this
.
operatId
||
this
.
userInfo
.
userId
,
operateUserName
:
userName
,
};
doctorListAnd
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
'000000'
)
{
console
.
log
(
res
);
if
(
res
.
data
.
length
>
0
)
{
const
totallistShow
=
res
.
data
.
join
(
','
);
this
.
$message
({
message
:
`医生为
${
totallistShow
}
已被其他运营分配`
,
type
:
'warning'
,
});
}
else
{
this
.
$message
({
message
:
'保存成功'
,
type
:
'success'
,
});
}
this
.
doctorDeparList
();
}
});
...
...
@@ -454,7 +467,8 @@
initCard
()
{
const
parms
=
{
bizType
:
this
.
tabPositionValue
,
// 1,异常的列表 2,不需要处理的列表
userId
:
this
.
operatId
||
this
.
localUserId
,
// userId
userId
:
this
.
operatId
||
this
.
userInfo
.
userId
,
// userId
condition
:
this
.
orderOrName
||
''
,
};
conditionNewList
(
parms
)
.
then
((
res
)
=>
{
...
...
@@ -491,15 +505,11 @@
}
this
.
$set
(
this
.
midCardData
,
index
,
item
);
});
console
.
log
(
'this.currentDiagList'
,
this
.
currentDiagList
);
this
.
isShowCardData
=
true
;
},
getSerachValue
(
value
)
{
this
.
orderOrName
=
value
.
trim
();
},
handleCheckedCitiesChange
(
value
)
{
console
.
log
(
value
,
'value11'
);
},
getSearchValue
()
{
if
(
!
this
.
orderOrName
)
{
return
this
.
$message
({
...
...
@@ -539,7 +549,6 @@
this
.
isShowCardData
=
true
;
},
tabChange
(
val
)
{
console
.
log
(
val
,
'val1111===='
);
this
.
tabPositionValue
=
val
;
if
(
val
!=
3
)
{
this
.
initCard
();
...
...
@@ -713,7 +722,6 @@
padding
:
20px
10px
;
width
:
100%
;
.grid-c
{
display
:
grid
;
grid-row-gap
:
20px
;
grid-column-gap
:
20px
;
padding
:
25px
30px
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录