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
提交
003dcd19
提交
003dcd19
编写于
10月 22, 2021
作者:
qian.jie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
列表提交
上级
a72bd830
变更
9
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
960 行增加
和
4 行删除
+960
-4
serviceSchedule.js
src/api/serviceSchedule.js
+40
-0
question.png
src/assets/image/question.png
+0
-0
diagnosis-doctor.vue
src/components/common/diagnosis-doctor.vue
+27
-2
table-serviceSchedule.vue
src/components/list/table-serviceSchedule.vue
+276
-0
index.js
src/router/index.js
+10
-0
serviceSchedule-table.js
src/utils/GeneralData/serviceSchedule-table.js
+48
-0
diagnosis-list-new.vue
src/views/IM/diagnosis-admin/diagnosis-list-new.vue
+2
-2
newScheduling.vue
src/views/IM/diagnosis-admin/modal/newScheduling.vue
+9
-0
serviceSchedule.vue
src/views/IM/diagnosis-admin/serviceSchedule.vue
+548
-0
未找到文件。
src/api/serviceSchedule.js
0 → 100644
浏览文件 @
003dcd19
import
request
from
'mn-template/plugins/http'
;
export
const
getFirstLevelLable
=
async
()
=>
{
return
request
({
url
:
'/contents/admin/label/getFirstLevelLable/1'
,
method
:
'get'
,
});
};
export
const
childLabelList
=
async
(
data
)
=>
{
return
request
({
url
:
'/contents/admin/label/childLabelList'
,
params
:
data
,
method
:
'get'
,
});
};
export
const
workQuery
=
async
(
data
)
=>
{
return
request
({
url
:
'/diagnose/doctor/work/workQuery'
,
data
:
data
,
method
:
'post'
,
});
};
export
const
switchOpen
=
async
(
data
)
=>
{
return
request
({
url
:
'/diagnose/doctor/work/switchOpen'
,
data
:
data
,
method
:
'post'
,
});
};
export
const
workInStep
=
async
()
=>
{
return
request
({
url
:
'/diagnose/doctor/work/inStep'
,
method
:
'post'
,
});
};
export
const
getLevel
=
async
()
=>
{
return
request
({
url
:
'/diagnose/doctor/work/getLevel'
,
method
:
'post'
,
});
};
\ No newline at end of file
src/assets/image/question.png
0 → 100644
浏览文件 @
003dcd19
1.1 KB
src/components/common/diagnosis-doctor.vue
浏览文件 @
003dcd19
...
@@ -394,6 +394,13 @@
...
@@ -394,6 +394,13 @@
created
()
{
created
()
{
// this.startTimeValue = this.rangeTimeData;
// this.startTimeValue = this.rangeTimeData;
console
.
log
(
'``````'
,
this
.
rangeTimeData
);
console
.
log
(
'``````'
,
this
.
rangeTimeData
);
// if (this.rangeTimeData) {
// this.timeRange = Number(20);
// this.endTimeValue = dayjs(this.rangeTimeData)
// .add(this.timeRange, 'minute')
// .format('YYYY-MM-DD HH:mm:ss');
// }
console
.
log
(
'``````'
,
this
.
rangeTimeData
,
this
.
endTimeValue
);
vm
=
this
;
vm
=
this
;
this
.
getDoctorList
();
this
.
getDoctorList
();
},
},
...
@@ -470,8 +477,8 @@
...
@@ -470,8 +477,8 @@
this
.
doctorId
=
''
;
this
.
doctorId
=
''
;
this
.
formData
.
outsideDoctor
=
''
;
this
.
formData
.
outsideDoctor
=
''
;
// this.startTimeValue = this.rangeTimeData;
// this.startTimeValue = this.rangeTimeData;
this
.
endTimeValue
=
''
;
//
this.endTimeValue = '';
this
.
timeRange
=
''
;
// this.timeRange = Number(20)
;
this
.
$emit
(
'update:diagnosisDoctorVisible'
,
false
);
this
.
$emit
(
'update:diagnosisDoctorVisible'
,
false
);
},
},
opendialog
()
{
opendialog
()
{
...
@@ -526,6 +533,15 @@
...
@@ -526,6 +533,15 @@
},
},
openDiagnosisStartTimeDialog
()
{
openDiagnosisStartTimeDialog
()
{
this
.
startTimeValue
=
this
.
rangeTimeData
;
this
.
startTimeValue
=
this
.
rangeTimeData
;
if
(
!
this
.
startTimeValue
)
{
this
.
timeRange
=
''
;
this
.
endTimeValue
=
''
;
}
else
{
this
.
timeRange
=
Number
(
20
);
this
.
endTimeValue
=
dayjs
(
this
.
rangeTimeData
)
.
add
(
this
.
timeRange
,
'minute'
)
.
format
(
'YYYY-MM-DD HH:mm:ss'
);
}
this
.
diagnosisStartTimeDialog
=
true
;
this
.
diagnosisStartTimeDialog
=
true
;
},
},
startTimeConfirm
(
isCancle
)
{
startTimeConfirm
(
isCancle
)
{
...
@@ -534,6 +550,15 @@
...
@@ -534,6 +550,15 @@
// this.startTimeValue = '';
// this.startTimeValue = '';
this
.
endTimeValue
=
''
;
this
.
endTimeValue
=
''
;
this
.
timeRange
=
''
;
this
.
timeRange
=
''
;
// if (!this.startTimeValue) {
// this.timeRange = '';
// this.endTimeValue = '';
// }else{
// this.timeRange = Number(20);
// this.endTimeValue = dayjs(this.rangeTimeData)
// .add(this.timeRange, 'minute')
// .format('YYYY-MM-DD HH:mm:ss');
// }
}
}
if
(
isCancle
==
'submit'
)
{
if
(
isCancle
==
'submit'
)
{
if
(
String
(
this
.
startTimeValue
).
trim
()
===
''
||
!
this
.
startTimeValue
)
{
if
(
String
(
this
.
startTimeValue
).
trim
()
===
''
||
!
this
.
startTimeValue
)
{
...
...
src/components/list/table-serviceSchedule.vue
0 → 100644
浏览文件 @
003dcd19
<
template
>
<div
class=
"table-serviceSchedule"
>
<el-table
v-loading=
"loading"
class=
"search-table"
style=
"width: 100%"
:data=
"tableData"
@
sort-change=
"sortfunc"
>
<el-table-column
prop=
"doctorId"
label=
"医生ID"
width=
"170"
align=
"center"
/>
<el-table-column
prop=
"doctorName"
label=
"医生姓名"
width=
"170"
align=
"center"
/>
<el-table-column
prop=
"serviceOpen"
label=
"服务开通"
width=
"150"
align=
"center"
column-key=
"serviceOpen"
:filter-multiple=
"false"
:filters=
"serviceOpenList"
:filter-method=
"getServiceOpen"
>
<template
slot-scope=
"scope"
>
<span
style=
"margin-left: 10px"
>
{{
scope
.
row
.
serviceOpen
===
'1'
?
'开通'
:
'未开通'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"hospital"
label=
"所属机构"
width=
"200"
align=
"center"
show-overflow-tooltip
/>
<el-table-column
prop=
"departmentName"
label=
"科室"
width=
"170"
align=
"center"
/>
<el-table-column
prop=
"level"
label=
"匹配优先级"
align=
"center"
width=
"150"
column-key=
"level"
:filter-multiple=
"false"
:filters=
"createList"
:filter-method=
"getLevel"
/>
<el-table-column
prop=
"workStatus"
label=
"排班状态"
width=
"170"
align=
"center"
column-key=
"workStatus"
:filter-multiple=
"false"
:filters=
"workStatusList"
:filter-method=
"getWorkStatus"
>
<
template
slot-scope=
"scope"
>
<span
style=
"margin-left: 10px"
>
{{
scope
.
row
.
workStatus
===
'2'
?
'未排班'
:
'已排班'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"modifiedTime"
label=
"修改时间"
width=
"170"
align=
"center"
sortable
/>
<el-table-column
prop=
"mobilePhone"
label=
"联系电话"
width=
"170"
align=
"center"
/>
<el-table-column
property=
"delivery"
align=
"center"
label=
"接单开关"
>
<
template
slot-scope=
"scope"
>
<el-switch
v-model=
"scope.row.delivery"
active-color=
"#0D9078"
@
change=
"changeSwitch(scope.$index,scope.row)"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
fixed=
"right"
align=
"center"
min-width=
"200"
>
<
template
slot-scope=
"scope"
>
<div
class=
"scope-work"
style=
"display:flex"
>
<div
v-if=
" scope.row.workStatus === '2'"
class=
"download-btn"
@
click=
"addSchedule(scope.row,1)"
>
新增排班
</div>
<div
v-else
class=
"download-btn"
@
click=
"addSchedule(scope.row,2)"
>
编辑排班
</div>
<div
class=
"download-btn"
@
click=
"addSchedule(scope.row,2)"
>
查看
</div>
</div>
</
template
>
</el-table-column>
</el-table>
<!-- 分页 -->
<div
class=
"pagination"
>
<el-pagination
background
:current-page=
"pageNo"
:page-sizes=
"[15, 30, 50, 100, 150, 200]"
:page-size=
"pageSize"
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"totalRows"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
/>
</div>
</div>
</template>
<
script
>
export
default
{
components
:
{
// NewScheduling,
},
props
:
{
tableData
:
{
type
:
Array
,
default
()
{
return
[];
},
},
createList
:
{
type
:
Array
,
default
()
{
return
[];
},
},
pageNo
:
{
type
:
Number
,
default
:
1
,
},
pageSize
:
{
type
:
Number
,
default
:
20
,
},
totalRows
:
{
type
:
Number
,
default
:
0
,
},
loading
:
{
type
:
Boolean
,
default
:
false
,
},
},
data
()
{
return
{
workStatusList
:[
{
text
:
'已排班'
,
value
:
'已排班'
},
{
text
:
'未排班'
,
value
:
'未排班'
}
],
serviceOpenList
:[
{
value
:
1
,
text
:
'开通'
},
{
value
:
2
,
text
:
'未开通'
},
],
};
},
mounted
()
{},
methods
:{
changeSwitch
(
value
,
val
)
{
console
.
log
(
value
,
val
,
'123'
);
this
.
$emit
(
'changeSwitch'
,
value
,
val
);
},
// handleFilterChange(value) {
// console.log(value, 'handleFilterChange');
// },
getServiceOpen
(
value
,
row
)
{
return
row
.
serviceOpen
===
String
(
value
);
},
getLevel
(
value
,
row
)
{
return
row
.
level
===
String
(
value
);
},
getWorkStatus
(
value
,
row
)
{
console
.
log
(
value
,
row
);
let
newValue
=
''
;
if
(
value
===
'未排班'
)
{
newValue
=
'2'
;
}
else
{
newValue
=
'1'
;
}
return
row
.
workStatus
===
String
(
newValue
);
},
showworkStatus
()
{
console
.
log
(
11111
);
this
.
isworkStatus
=
!
this
.
isworkStatus
;
console
.
log
(
this
.
isworkStatus
);
},
addSchedule
(
value
,
val
)
{
console
.
log
(
value
,
val
,
'123212321'
);
this
.
$emit
(
'addSchedule'
,
value
,
val
);
},
// 分页
handleSizeChange
(
value
)
{
this
.
$emit
(
'handleSizeChange'
,
value
);
},
handleCurrentChange
(
value
)
{
this
.
$emit
(
'handleCurrentChange'
,
value
);
},
sortfunc
(
data
)
{
this
.
$emit
(
'sortfunc'
,
data
);
},
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
.table-serviceSchedule
{
.el-table
{
border-radius
:
8px
;
// 深度选择器
/
deep
/
.highlight
{
color
:
#0D9078
!
important
;
}
.scope-work
{
display
:
flex
;
justify-content
:
center
;
.download-btn
{
color
:
#0D9078
;
cursor
:
pointer
;
margin-right
:
10px
;
}
}
}
}
</
style
>
\ No newline at end of file
src/router/index.js
浏览文件 @
003dcd19
...
@@ -62,6 +62,12 @@ const workbench = (r) =>
...
@@ -62,6 +62,12 @@ const workbench = (r) =>
()
=>
r
(
require
(
'@/views/IM/diagnosis-admin/workbench.vue'
)),
()
=>
r
(
require
(
'@/views/IM/diagnosis-admin/workbench.vue'
)),
'workbench'
'workbench'
);
);
const
serviceSchedule
=
(
r
)
=>
require
.
ensure
(
[],
()
=>
r
(
require
(
'@/views/IM/diagnosis-admin/serviceSchedule.vue'
)),
'serviceSchedule'
);
const
administrators
=
(
r
)
=>
const
administrators
=
(
r
)
=>
require
.
ensure
(
require
.
ensure
(
[],
[],
...
@@ -124,6 +130,10 @@ const routerConfig = [
...
@@ -124,6 +130,10 @@ const routerConfig = [
path
:
'/workbench'
,
path
:
'/workbench'
,
component
:
workbench
,
component
:
workbench
,
},
},
{
path
:
'/serviceSchedule'
,
component
:
serviceSchedule
,
},
{
{
path
:
'/administrators'
,
path
:
'/administrators'
,
component
:
administrators
,
component
:
administrators
,
...
...
src/utils/GeneralData/serviceSchedule-table.js
0 → 100644
浏览文件 @
003dcd19
// serviceSchedule-table
export
const
SERVICESCHEDUle_TABLE
=
[
{
prop
:
'doctorId'
,
label
:
'医生ID'
,
showtooltip
:
false
,
},
{
prop
:
'doctorName'
,
label
:
'医生姓名'
,
showtooltip
:
false
,
},
{
prop
:
'hospital'
,
label
:
'所属机构'
,
showtooltip
:
false
,
},
{
prop
:
'departmentName'
,
label
:
'科室'
,
showtooltip
:
false
,
},
{
prop
:
'level'
,
label
:
'匹配优先级'
,
showtooltip
:
false
,
},
{
prop
:
'workStatus'
,
label
:
'排班状态'
,
showtooltip
:
false
,
},
{
prop
:
'modifiedTime'
,
label
:
'修改时间'
,
showtooltip
:
false
,
},
{
prop
:
'mobilePhone'
,
label
:
'联系电话'
,
showtooltip
:
false
,
}
// {
// prop: 'switchStatus',
// label: '接单开关',
// showtooltip: false,
// },
];
src/views/IM/diagnosis-admin/diagnosis-list-new.vue
浏览文件 @
003dcd19
...
@@ -626,10 +626,10 @@
...
@@ -626,10 +626,10 @@
},
},
methods
:
{
methods
:
{
changeStartTime
(
time
)
{
changeStartTime
(
time
)
{
console
.
log
(
time
,
'1233212321`'
);
this
.
rangeTimeData
=
time
this
.
rangeTimeData
=
time
?
new
Date
(
time
.
time
).
format
(
'yyyy-MM-dd hh:mm:ss'
)
?
time
.
time
?
new
Date
(
time
.
time
).
format
(
'yyyy-MM-dd hh:mm:ss'
)
:
''
:
''
;
:
''
;
console
.
log
(
this
.
rangeTimeData
,
'this.rangeTimeData'
);
},
},
getTableData
(
val
)
{
getTableData
(
val
)
{
this
.
saveTableData
=
val
||
[];
this
.
saveTableData
=
val
||
[];
...
...
src/views/IM/diagnosis-admin/modal/newScheduling.vue
0 → 100644
浏览文件 @
003dcd19
<
template
>
<div>
新增排班
</div>
</
template
>
<
script
>
export
default
{};
</
script
>
<
style
></
style
>
src/views/IM/diagnosis-admin/serviceSchedule.vue
0 → 100644
浏览文件 @
003dcd19
此差异已折叠。
点击以展开。
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录