Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pet-business-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘怀志
pet-business-web
Commits
8abcbcfb
Commit
8abcbcfb
authored
Jun 24, 2023
by
盖献康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
检查管理-详情-上传报告
parent
585635c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
75 additions
and
6 deletions
+75
-6
index.vue
src/components/FileUpload/index.vue
+1
-1
check-detail.vue
...ice-management/medical-record-management/check-detail.vue
+74
-5
No files found.
src/components/FileUpload/index.vue
View file @
8abcbcfb
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
class=
"upload-file-uploader"
class=
"upload-file-uploader"
>
>
<!-- 上传按钮 -->
<!-- 上传按钮 -->
<el-button
size=
"mini"
type=
"primary
"
>
选取文件
</el-button>
<el-button
size=
"mini"
class=
"fourWordsBtn
"
>
选取文件
</el-button>
<!-- 上传提示 -->
<!-- 上传提示 -->
<div
v-if=
"showTip"
slot=
"tip"
class=
"el-upload__tip"
>
<div
v-if=
"showTip"
slot=
"tip"
class=
"el-upload__tip"
>
请上传
请上传
...
...
src/views/service-management/medical-record-management/check-detail.vue
View file @
8abcbcfb
...
@@ -164,7 +164,7 @@
...
@@ -164,7 +164,7 @@
<div
style=
"height: 16px;border-left: 3px solid #5bb647;"
/>
<div
style=
"height: 16px;border-left: 3px solid #5bb647;"
/>
<div
style=
"padding-left: 10px;"
>
检查信息
</div>
<div
style=
"padding-left: 10px;"
>
检查信息
</div>
<div
style=
"margin-left: auto;padding-right: 50px;"
>
<div
style=
"margin-left: auto;padding-right: 50px;"
>
<el-button
v-show=
"checkDetail.checkSchedule >=2 && checkDetail.
reportTime === null"
class=
"fourWordsBtn
"
>
上传报告
</el-button>
<el-button
v-show=
"checkDetail.checkSchedule >=2 && checkDetail.
shadowReport === null"
class=
"fourWordsBtn"
@
click=
"uploadReport
"
>
上传报告
</el-button>
</div>
</div>
</div>
</div>
<!-- 检查信息 -->
<!-- 检查信息 -->
...
@@ -195,7 +195,7 @@
...
@@ -195,7 +195,7 @@
</el-col>
</el-col>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"检查时段"
>
<el-form-item
label=
"检查时段"
>
<span>
{{
'-'
}}
</span>
<span>
{{
parseTime
(
checkDetail
.
checkStartTime
,
'{h
}
:{i
}
'
)
+
'-'
+
parseTime
(
checkDetail
.
checkEndTime
,
'{h
}
:{i
}
'
)
}}
<
/span
>
<
/el-form-item
>
<
/el-form-item
>
<
/el-col
>
<
/el-col
>
<
el
-
col
:
span
=
"8"
>
<
el
-
col
:
span
=
"8"
>
...
@@ -208,7 +208,8 @@
...
@@ -208,7 +208,8 @@
<
el
-
row
>
<
el
-
row
>
<
el
-
col
:
span
=
"8"
>
<
el
-
col
:
span
=
"8"
>
<
el
-
form
-
item
label
=
"影像报告"
>
<
el
-
form
-
item
label
=
"影像报告"
>
<span>
{{
checkDetail
.
shadowReport
||
'暂未上传'
}}
</span>
<!--
<
span
>
{{
checkDetail
.
shadowReport
||
'暂未上传'
}}
<
/span>--
>
<
el
-
button
@
click
=
"viewTheReport"
class
=
"fourWordsBtn"
>
查看报告
<
/el-button
>
<
/el-form-item
>
<
/el-form-item
>
<
/el-col
>
<
/el-col
>
<
/el-row
>
<
/el-row
>
...
@@ -217,18 +218,46 @@
...
@@ -217,18 +218,46 @@
<
div
style
=
"display: flex; justify-content: left; margin-top: 20px"
>
<
div
style
=
"display: flex; justify-content: left; margin-top: 20px"
>
<
el
-
button
class
=
"queryBtn"
@
click
=
"goBack"
>
返
回
<
/el-button
>
<
el
-
button
class
=
"queryBtn"
@
click
=
"goBack"
>
返
回
<
/el-button
>
<
/div
>
<
/div
>
<!--
上传报告对话框
-->
<
el
-
dialog
title
=
"影像报告"
:
visible
.
sync
=
"videoReportVisible"
width
=
"30%"
@
close
=
"closeDialog"
append
-
to
-
body
:
close
-
on
-
click
-
modal
=
"false"
>
<
div
style
=
"margin-top: 20px"
>
<
el
-
form
ref
=
"file"
label
-
width
=
"120px"
>
<
el
-
form
-
item
label
=
"影像报告"
>
<
FileUpload
v
-
model
=
"videoReport"
:
limit
=
"1"
:
file
-
size
=
"4"
:
file
-
type
=
"['pdf']"
:
is
-
show
-
tip
=
"false"
/>
<
/el-form-item
>
<
/el-form
>
<
/div
>
<
span
slot
=
"footer"
class
=
"dialog-footer"
>
<
el
-
button
class
=
"resetBtn"
@
click
=
"cancel"
>
取消
<
/el-button
>
<
el
-
button
class
=
"queryBtn"
@
click
=
"centerDialogVisible"
>
确认
<
/el-button
>
<
/span
>
<
/el-dialog
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
<
script
>
<
script
>
import
{
parseTime
}
from
'../../../utils/ruoyi'
import
{
parseTime
}
from
'@/utils/ruoyi'
import
{
updateCheck
}
from
'@/api/business/mdeicalRecord'
import
{
mapGetters
}
from
'vuex'
export
default
{
export
default
{
name
:
'CheckDetail'
,
name
:
'CheckDetail'
,
data
()
{
data
()
{
return
{
return
{
checkDetail
:
{
}
,
checkDetail
:
{
}
,
schedule
:
1
schedule
:
1
,
videoReportVisible
:
false
,
// 影像报告
videoReport
:
null
,
// 图片根据不同环境显示路径
baseUrl
:
process
.
env
.
VUE_APP_TEST_API
}
}
}
,
}
,
created
()
{
created
()
{
...
@@ -246,11 +275,44 @@ export default {
...
@@ -246,11 +275,44 @@ export default {
query
:
{
subscribe
:
this
.
checkDetail
}
query
:
{
subscribe
:
this
.
checkDetail
}
}
)
}
)
}
,
}
,
/** 上传报告对话框取消 */
cancel
()
{
this
.
videoReport
=
null
this
.
videoReportVisible
=
false
}
,
/** 关闭对话框调用 */
closeDialog
()
{
this
.
videoReport
=
null
this
.
videoReportVisible
=
false
}
,
/** 点击确认 */
centerDialogVisible
()
{
this
.
checkDetail
.
shadowReport
=
this
.
videoReport
this
.
checkDetail
.
reportTime
=
parseTime
(
new
Date
())
console
.
log
(
'点击上传报告后'
,
this
.
checkDetail
)
// 更新检查表
const
list
=
[]
list
.
push
(
this
.
checkDetail
)
updateCheck
(
list
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
'上传成功'
)
}
}
)
this
.
videoReportVisible
=
false
}
,
/** 查看报告 */
viewTheReport
()
{
window
.
open
(
this
.
baseUrl
+
this
.
checkDetail
.
shadowReport
)
}
,
// 返回上一页
// 返回上一页
goBack
()
{
goBack
()
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/service-management/medical-record-management'
path
:
'/service-management/medical-record-management'
}
)
}
)
}
,
/** 点击上传报告按钮 */
uploadReport
()
{
this
.
videoReportVisible
=
true
}
}
}
}
}
}
...
@@ -265,10 +327,17 @@ export default {
...
@@ -265,10 +327,17 @@ export default {
margin
-
left
:
10
px
;
margin
-
left
:
10
px
;
}
}
}
}
.
dialog
-
footer
{
display
:
flex
;
justify
-
content
:
end
;
}
<
/style
>
<
/style
>
<
style
scoped
lang
=
"scss"
>
<
style
scoped
lang
=
"scss"
>
.
app
-
container
{
.
app
-
container
{
background
-
color
:
#
FFFFFF
;
background
-
color
:
#
FFFFFF
;
}
}
::
v
-
deep
.
el
-
dialog
:
not
(.
is
-
fullscreen
)
{
margin
-
top
:
26
vh
!
important
;
}
<
/style
>
<
/style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment