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
提交
98248e4c
提交
98248e4c
编写于
11月 20, 2021
作者:
qian.jie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
排班显示
上级
f7e85bc0
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
53 行增加
和
27 行删除
+53
-27
diagnosis.js
src/api/diagnosis.js
+7
-0
diagnosis-doctor.vue
src/components/common/diagnosis-doctor.vue
+6
-6
matching-doctor.vue
src/components/common/matching-doctor.vue
+39
-20
diagnosis-list-new.vue
src/views/IM/diagnosis-admin/diagnosis-list-new.vue
+1
-1
未找到文件。
src/api/diagnosis.js
浏览文件 @
98248e4c
...
...
@@ -288,3 +288,10 @@ export const outboundIntention = async (data) => {
method
:
'post'
,
});
};
export
const
departmentAll
=
async
()
=>
{
return
request
({
url
:
'/diagnose/department/all'
,
method
:
'get'
,
});
};
src/components/common/diagnosis-doctor.vue
浏览文件 @
98248e4c
...
...
@@ -439,8 +439,8 @@
if
(
res
.
code
==
'000000'
)
{
vm
.
cancel
();
vm
.
$emit
(
'search'
);
this
.
todayNum
=
''
;
this
.
maxTodayNum
=
''
;
this
.
todayNum
=
0
;
this
.
maxTodayNum
=
0
;
this
.
rateValue
=
''
;
this
.
chooseTime
=
''
;
this
.
startTime
=
''
;
...
...
@@ -465,8 +465,8 @@
// this.startTimeValue = this.rangeTimeData;
// this.endTimeValue = '';
// this.timeRange = Number(20);
this
.
todayNum
=
''
;
this
.
maxTodayNum
=
''
;
this
.
todayNum
=
0
;
this
.
maxTodayNum
=
0
;
this
.
rateValue
=
''
;
this
.
chooseTime
=
''
;
this
.
timeChoosetList
=
[];
...
...
@@ -509,8 +509,8 @@
};
acceptsCeiling
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
'000000'
)
{
this
.
todayNum
=
res
.
data
.
dayAcceptsCount
||
''
;
this
.
maxTodayNum
=
res
.
data
.
dayAcceptsCeiling
||
''
;
this
.
todayNum
=
res
.
data
.
dayAcceptsCount
||
0
;
this
.
maxTodayNum
=
res
.
data
.
dayAcceptsCeiling
||
0
;
this
.
rateValue
=
res
.
data
.
level
;
}
});
...
...
src/components/common/matching-doctor.vue
浏览文件 @
98248e4c
...
...
@@ -37,6 +37,7 @@
/>
</el-select>
-->
<el-cascader
ref=
"cascader"
v-model=
"model.triageDepartmentId"
filterable
clearable
...
...
@@ -93,6 +94,7 @@
<
script
>
import
{
updateDiagnosis
,
getDepList
}
from
'../../utils/diagnosis'
;
import
{
departmentAll
}
from
'@/api/diagnosis'
;
let
vm
=
null
;
export
default
{
props
:
{
...
...
@@ -115,6 +117,12 @@
},
data
()
{
return
{
// props: {
// // props定义的值根据接口返回的数据定的
// label: 'departmentId',
// value: 'departmentName',
// children: [],
// },
show
:
false
,
title
:
'设置分诊科室'
,
confirmTxt
:
'确定'
,
...
...
@@ -198,7 +206,7 @@
deseaseName
:
'口腔科描述3'
,
},
],
departmentId
:
6
4
,
departmentId
:
6
5
,
departmentName
:
'口腔科'
,
parentdepartmentId
:
27
,
},
...
...
@@ -220,7 +228,7 @@
deseaseName
:
'口腔科描述1'
,
},
],
departmentId
:
6
4
,
departmentId
:
6
3
,
departmentName
:
'牙周科'
,
parentdepartmentId
:
27
,
},
...
...
@@ -229,11 +237,6 @@
},
],
},
props
:
{
// props定义的值根据接口返回的数据定的
label
:
'value'
,
value
:
'no'
,
},
};
},
watch
:
{
...
...
@@ -252,16 +255,36 @@
created
()
{
vm
=
this
;
this
.
getDepList
();
this
.
showListALL
();
this
.
departmentAll
();
},
methods
:
{
departmentAll
()
{
departmentAll
().
then
((
res
)
=>
{
if
(
res
.
code
==
'000000'
)
{
console
.
log
(
res
,
'res111'
);
this
.
allList
=
res
.
data
||
{};
this
.
showListALL
();
}
});
},
getCascaderObj
(
val
,
opt
)
{
return
val
.
map
(
function
(
value
)
{
for
(
var
itm
of
opt
)
{
if
(
itm
.
value
==
value
)
{
opt
=
itm
.
children
;
return
itm
;
}
}
return
null
;
});
},
showListALL
()
{
const
arr
=
[];
const
{
departmentMapList
,
parentDepartmentList
}
=
this
.
allList
;
parentDepartmentList
.
map
((
item
)
=>
{
const
obj
=
{
label
:
item
.
valu
e
,
value
:
item
.
no
,
label
:
item
.
departmentNam
e
,
value
:
item
.
departmentId
,
children
:
[],
};
departmentMapList
.
map
((
info
)
=>
{
...
...
@@ -274,7 +297,7 @@
text
:
''
,
};
let
secondChildren
=
''
;
detail
.
departmentDeseaseRespList
.
map
((
res
)
=>
{
(
detail
.
departmentDeseaseRespList
||
[])
.
map
((
res
)
=>
{
secondChildren
+=
res
.
deseaseName
+
' '
;
});
secondObj
.
text
=
`(
${
secondChildren
}
)`
;
...
...
@@ -333,17 +356,13 @@
this
.
model
.
triageDepartmentId
=
''
;
this
.
model
.
triageRemark
=
''
;
this
.
$emit
(
'update:doctorVisible'
,
false
);
// this.doctorVisible = false;
},
change
(
data
)
{
console
.
log
(
data
,
'data'
);
change
()
{
const
checkedNodes
=
this
.
$refs
[
'cascader'
].
getCheckedNodes
();
this
.
model
.
triageDepartmentId
=
checkedNodes
[
0
].
value
;
this
.
model
.
triageDepartment
=
checkedNodes
[
0
].
label
;
console
.
log
(
this
.
model
.
triageDepartmentId
,
'model.triageDepartmentId'
);
for
(
let
i
=
0
;
i
<
this
.
depList
.
length
;
i
++
)
{
if
(
data
==
this
.
depList
[
i
].
id
)
{
this
.
model
.
triageDepartment
=
this
.
depList
[
i
].
name
;
break
;
}
}
console
.
log
(
this
.
model
.
triageDepartment
,
'model.triageDepartment'
);
},
},
};
...
...
src/views/IM/diagnosis-admin/diagnosis-list-new.vue
浏览文件 @
98248e4c
...
...
@@ -33,7 +33,7 @@
</div>
<div>
<el-form-item
label=
"分诊科室"
label=
"分诊科室
11
"
class=
"t-b"
>
<el-select
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录