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
提交
1a314c08
提交
1a314c08
编写于
12月 14, 2021
作者:
qian.jie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1213评审
上级
4211ca37
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
106 行增加
和
10 行删除
+106
-10
diagnosis.js
src/api/diagnosis.js
+7
-0
table-serviceSchedule.vue
src/components/list/table-serviceSchedule.vue
+19
-1
serviceSchedule.vue
src/views/IM/diagnosis-admin/serviceSchedule.vue
+80
-9
未找到文件。
src/api/diagnosis.js
浏览文件 @
1a314c08
...
...
@@ -310,3 +310,10 @@ export const updateDepartmentId = async (data) => {
method
:
'post'
,
});
};
export
const
savePCDayCount
=
async
(
data
)
=>
{
return
request
({
url
:
'/diagnose/doctor/work/savePCDayCount'
,
data
:
data
,
method
:
'post'
,
});
};
\ No newline at end of file
src/components/list/table-serviceSchedule.vue
浏览文件 @
1a314c08
...
...
@@ -68,6 +68,12 @@
:filters=
"createList"
:filter-method=
"getLevel"
/>
<el-table-column
prop=
"preNum"
label=
"接诊上限"
width=
"150"
align=
"center"
/>
<el-table-column
prop=
"workStatus"
label=
"排班状态"
...
...
@@ -121,7 +127,7 @@
label=
"操作"
fixed=
"right"
align=
"center"
min-width=
"2
0
0"
min-width=
"2
7
0"
>
<
template
slot-scope=
"scope"
>
<div
...
...
@@ -148,6 +154,12 @@
>
查看
</div>
<div
class=
"download-btn"
@
click=
"setMaxNumValue(scope.row)"
>
接诊上限
</div>
</div>
</
template
>
</el-table-column>
...
...
@@ -225,6 +237,7 @@
text
:
'未开通'
,
},
],
// maxNumValue: '',
};
},
computed
:
{},
...
...
@@ -253,6 +266,11 @@
},
addSchedule
(
value
,
val
)
{
this
.
$emit
(
'addSchedule'
,
value
,
val
);
},
// 点击接诊上限按钮弹框打开
setMaxNumValue
(
value
)
{
this
.
$emit
(
'setMaxNumValue'
,
value
);
},
// 分页
handleSizeChange
(
value
)
{
...
...
src/views/IM/diagnosis-admin/serviceSchedule.vue
浏览文件 @
1a314c08
...
...
@@ -138,6 +138,7 @@
:total-rows=
"searchParam.totalRows"
:loading=
"loading"
:create-list=
"newCreateList"
:center-dialog-visible=
"centerDialogVisible"
@
sortfunc=
"sortfunc"
@
getServiceOpen=
"getServiceOpen"
@
getWorkStatus=
"getWorkStatus"
...
...
@@ -145,6 +146,7 @@
@
handleSizeChange=
"handleSizeChange"
@
handleCurrentChange=
"handleCurrentChange"
@
addSchedule=
"addSchedule"
@
setMaxNumValue=
"setMaxNumValue"
/>
</div>
</div>
...
...
@@ -155,6 +157,36 @@
href=
""
target=
"_blank"
/>
<el-dialog
:visible
.
sync=
"centerDialogVisible"
width=
"30%"
center
class=
"el-dialog-show"
>
<div
class=
"set-agment-maxNum"
>
<div
class=
"num-max"
>
<span
class=
"hour-num-title"
>
每小时接诊上限人数
</span>
<div
class=
"num-input-show"
>
<el-input-number
v-model=
"maxNumValue"
:min=
"0"
:max=
"20"
@
change=
"getMaxNumValue"
/>
</div>
</div>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"centerDialogVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"submitSetData"
>
确 定
</el-button>
</span>
</el-dialog>
</div>
</template>
...
...
@@ -165,7 +197,7 @@
workInStep
,
getLevel
,
}
from
'@/api/serviceSchedule'
;
import
{
departmentAll
}
from
'@/api/diagnosis'
;
import
{
departmentAll
,
savePCDayCount
}
from
'@/api/diagnosis'
;
import
TableServiceSchedule
from
'@/components/list/table-serviceSchedule'
;
export
default
{
components
:
{
...
...
@@ -227,6 +259,9 @@
newCreateList
:
[],
allTilst
:
[],
allList
:
{},
centerDialogVisible
:
false
,
doctorInfo
:{},
maxNumValue
:
''
};
},
watch
:
{},
...
...
@@ -403,20 +438,33 @@
this
.
search
();
},
addSchedule
(
value
,
val
)
{
// this.ScheduleListShow = false;
// this.schedulingType = val;
const
target
=
this
.
$refs
.
target
;
const
{
origin
}
=
window
.
location
;
const
u
=
`
${
origin
}
/consultation/pica-admin-consultation/addEditSchedule?type=
${
val
}
&doctorId=
${
value
.
doctorId
}
&id=
${
value
.
id
}
`
;
target
.
setAttribute
(
'href'
,
u
);
target
.
click
();
},
// goBack(flag) {
// this.ScheduleListShow = true;
// if (flag) {
// this.search();
// }
// },
setMaxNumValue
(
value
)
{
this
.
doctorInfo
=
value
;
this
.
maxNumValue
=
value
.
preNum
;
this
.
centerDialogVisible
=
true
;
},
// 每小时接诊上限人数
getMaxNumValue
(
value
)
{
this
.
maxNumValue
=
value
;
},
submitSetData
()
{
const
params
=
{
doctorId
:
this
.
doctorInfo
.
doctorId
,
preNum
:
this
.
maxNumValue
};
savePCDayCount
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
)
{
this
.
centerDialogVisible
=
false
;
this
.
search
();
}
});
}
},
};
</
script
>
...
...
@@ -541,6 +589,29 @@
}
}
}
.el-dialog-show
{
.set-agment-maxNum
{
.num-max
{
text-align
:
center
;
.hour-num-title
{
font-size
:
16px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#02120f
;
}
.num-input-show
{
padding-top
:
10px
;
.el-input
{
width
:
50%
;
/
deep
/
.el-input__inner
{
border-radius
:
20px
;
text-align
:
center
;
}
}
}
}
}
}
}
</
style
>
<
style
lang=
"scss"
>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录