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
ec1b0b2c
Commit
ec1b0b2c
authored
Aug 30, 2023
by
盖献康
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
51a7d070
48fb2614
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
68 additions
and
36 deletions
+68
-36
imgUploadForBanner.vue
src/components/ImageUpload/imgUploadForBanner.vue
+20
-17
equipment-add.vue
...uipment-management/equipment-management/equipment-add.vue
+16
-3
equipment-detail.vue
...ment-management/equipment-management/equipment-detail.vue
+29
-16
medical-record-management.vue
...t/medical-record-management/medical-record-management.vue
+3
-0
No files found.
src/components/ImageUpload/imgUploadForBanner.vue
View file @
ec1b0b2c
<
template
>
<
template
>
<div
class=
"component-upload-image"
>
<div
class=
"component-upload-image"
>
<ImageCropperModal
<ImageCropperModal
v-if=
"cropperVisible"
:visible=
"cropperVisible"
:visible=
"cropperVisible"
:url=
"fileUrl"
:url=
"fileUrl"
:auto-crop-width=
"autoCropWidth"
:auto-crop-height=
"autoCropHeight"
@
cancel=
"onConcel"
@
cancel=
"onConcel"
@
confirm=
"onConfirm"
@
confirm=
"onConfirm"
/>
/>
...
@@ -12,7 +11,7 @@
...
@@ -12,7 +11,7 @@
ref=
"imageUpload"
ref=
"imageUpload"
multiple
multiple
action
action
:accept=
"
['.jpg', '.png', 'jpeg']
"
:accept=
"
'.jpg,.png,jpeg'
"
list-type=
"picture-card"
list-type=
"picture-card"
:on-success=
"handleUploadSuccess"
:on-success=
"handleUploadSuccess"
:before-upload=
"handleBeforeUpload"
:before-upload=
"handleBeforeUpload"
...
@@ -116,7 +115,7 @@ export default {
...
@@ -116,7 +115,7 @@ export default {
// 大小限制(MB)
// 大小限制(MB)
fileSize
:
{
fileSize
:
{
type
:
Number
,
type
:
Number
,
default
:
5
default
:
3
},
},
// 文件类型, 例如['png', 'jpg', 'jpeg']
// 文件类型, 例如['png', 'jpg', 'jpeg']
fileType
:
{
fileType
:
{
...
@@ -193,13 +192,15 @@ export default {
...
@@ -193,13 +192,15 @@ export default {
var
img
=
file
.
name
.
substring
(
file
.
name
.
lastIndexOf
(
'.'
)
+
1
)
var
img
=
file
.
name
.
substring
(
file
.
name
.
lastIndexOf
(
'.'
)
+
1
)
const
suffix
=
img
===
'jpg'
||
img
===
'png'
||
img
===
'jpeg'
const
suffix
=
img
===
'jpg'
||
img
===
'png'
||
img
===
'jpeg'
if
(
!
suffix
)
{
if
(
!
suffix
)
{
this
.
$message
.
error
(
'文件格式不正确, 请上传png/jpg/jpeg图片格式文件!'
)
this
.
$message
.
error
(
'文件格式不正确, 请上传png/jpg/jpeg图片格式文件'
)
this
.
$refs
.
imageUpload
.
clearFiles
()
return
false
return
false
}
}
if
(
this
.
fileSize
)
{
if
(
this
.
fileSize
)
{
const
isLt
=
file
.
size
/
1024
/
1024
<
this
.
fileSize
const
isLt
=
file
.
size
/
1024
/
1024
<
this
.
fileSize
if
(
!
isLt
)
{
if
(
!
isLt
)
{
this
.
$modal
.
msgError
(
`上传图片大小不能超过
${
this
.
fileSize
}
MB`
)
this
.
$modal
.
msgError
(
`上传图片大小不能超过
${
this
.
fileSize
}
MB`
)
this
.
$refs
.
imageUpload
.
clearFiles
()
return
false
return
false
}
}
}
}
...
@@ -221,7 +222,7 @@ export default {
...
@@ -221,7 +222,7 @@ export default {
// this.cropperVisible = true
// this.cropperVisible = true
// })
// })
this
.
fileName
=
file
.
name
this
.
fileName
=
file
.
name
.
replace
(
/
[
%;
]
/g
,
''
)
},
},
// 点击剪裁弹框的确定按钮
// 点击剪裁弹框的确定按钮
async
onConfirm
(
blob
)
{
async
onConfirm
(
blob
)
{
...
@@ -258,8 +259,10 @@ export default {
...
@@ -258,8 +259,10 @@ export default {
})
})
},
},
onConcel
(
file
)
{
onConcel
(
file
)
{
if
(
file
!==
'cancle'
)
{
this
.
cropperVisible
=
false
this
.
cropperVisible
=
false
this
.
$refs
.
imageUpload
.
handleRemove
(
file
)
this
.
$refs
.
imageUpload
.
handleRemove
(
file
)
}
},
},
// 上传前loading加载
// 上传前loading加载
handleBeforeUpload
(
file
)
{
handleBeforeUpload
(
file
)
{
...
@@ -358,10 +361,11 @@ export default {
...
@@ -358,10 +361,11 @@ export default {
}
}
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.customer-upload-area
{
.customer-upload-area
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
.customer-upload-error
{
.customer-upload-error
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
color
:
#DB4747
;
color
:
#DB4747
;
...
@@ -371,7 +375,8 @@ export default {
...
@@ -371,7 +375,8 @@ export default {
align-content
:
center
;
align-content
:
center
;
text-align
:
center
;
text-align
:
center
;
font-size
:
12px
;
font-size
:
12px
;
.el-icon-picture-outline
{
.el-icon-picture-outline
{
font-size
:
18px
;
font-size
:
18px
;
}
}
}
}
...
@@ -381,6 +386,7 @@ export default {
...
@@ -381,6 +386,7 @@ export default {
::v-deep
.hide
.el-upload--picture-card
{
::v-deep
.hide
.el-upload--picture-card
{
display
:
none
;
display
:
none
;
}
}
// 去掉动画效果
// 去掉动画效果
::v-deep
.el-list-enter-active
,
::v-deep
.el-list-enter-active
,
::v-deep
.el-list-leave-active
{
::v-deep
.el-list-leave-active
{
...
@@ -391,18 +397,15 @@ export default {
...
@@ -391,18 +397,15 @@ export default {
opacity
:
0
;
opacity
:
0
;
transform
:
translateY
(
0
);
transform
:
translateY
(
0
);
}
}
::v-deep
.el-upload-list--picture-card
{
::v-deep
.el-upload-list--picture-card
{
line-height
:
0
;
line-height
:
0
;
}
}
::v-deep
.el-upload-list__item
{
::v-deep
.el-upload-list__item
{
margin
:
0
0
.5rem
0
0
!
important
;
margin
:
0
0
.5rem
0
0
!
important
;
}
}
.el-upload__tip
{
width
:
100%
;
font-weight
:
bold
;
height
:
15px
!
important
;
margin-top
:
0
!
important
;
}
/*加载失败-失败图标和文字位置布局*/
/*加载失败-失败图标和文字位置布局*/
.parent-container
{
.parent-container
{
padding-top
:
30%
;
padding-top
:
30%
;
...
...
src/views/equipment-management/equipment-management/equipment-add.vue
View file @
ec1b0b2c
...
@@ -303,7 +303,13 @@
...
@@ -303,7 +303,13 @@
<el-button
:loading=
"submitShow"
class=
"queryBtn"
size=
"mini"
icon=
"el-icon-check"
@
click=
"submitForm"
>
<el-button
:loading=
"submitShow"
class=
"queryBtn"
size=
"mini"
icon=
"el-icon-check"
@
click=
"submitForm"
>
提交
提交
</el-button>
</el-button>
<el-button
class=
"resetBtn"
size=
"mini"
icon=
"el-icon-back"
@
click=
"cancel"
>
返 回
</el-button>
<back-btn
button-text=
"返 回"
button-class=
"resetBtn"
:click-action=
"cancel"
:is-show-confirm=
"true"
/>
<!--
<el-button
class=
"resetBtn"
size=
"mini"
icon=
"el-icon-back"
@
click=
"cancel"
>
返 回
</el-button>
-->
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -321,9 +327,12 @@ import { isEmpty } from '@/utils/ruoyi'
...
@@ -321,9 +327,12 @@ import { isEmpty } from '@/utils/ruoyi'
import
{
deepClone
}
from
'@/utils'
import
{
deepClone
}
from
'@/utils'
import
{
listItemByType
}
from
'@/api/business/item'
import
{
listItemByType
}
from
'@/api/business/item'
import
{
signHospitalMessage
}
from
'@/api/business/hospital'
import
{
signHospitalMessage
}
from
'@/api/business/hospital'
import
backBtn
from
'@/components/BackBtn/index.vue'
import
{
mapGetters
}
from
'vuex'
export
default
{
export
default
{
name
:
'EquipmentAdd'
,
name
:
'EquipmentAdd'
,
components
:
{
backBtn
},
dicts
:
[
'device_status'
,
'device_type'
,
'exam_type'
,
'check_type'
,
'service_area'
],
dicts
:
[
'device_status'
,
'device_type'
,
'exam_type'
,
'check_type'
,
'service_area'
],
data
()
{
data
()
{
...
@@ -488,9 +497,9 @@ export default {
...
@@ -488,9 +497,9 @@ export default {
pme
:
null
pme
:
null
}
}
}
,
}
// 登陆人类型
// 登陆人类型
userType
:
''
//
userType: ''
}
}
},
},
watch
:
{
watch
:
{
...
@@ -507,10 +516,14 @@ export default {
...
@@ -507,10 +516,14 @@ export default {
deep
:
true
deep
:
true
}
}
},
},
computed
:
{
...
mapGetters
([
'userType'
])
},
created
()
{
created
()
{
this
.
getUserInfo
()
this
.
getUserInfo
()
this
.
getAreaData
()
this
.
getAreaData
()
this
.
getHospital
()
this
.
getHospital
()
// console.log("这位我从vue拿到的",this.userType)
},
},
methods
:
{
methods
:
{
// 获取登陆人信息
// 获取登陆人信息
...
...
src/views/equipment-management/equipment-management/equipment-detail.vue
View file @
ec1b0b2c
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<el-row>
<el-row>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"设备名称"
>
<el-form-item
label=
"设备名称"
>
<el-input
v-model=
"form.deviceName"
placeholder=
"
请输入设备名称
"
class=
"inputWidth"
disabled
/>
<el-input
v-model=
"form.deviceName"
placeholder=
"
-
"
class=
"inputWidth"
disabled
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
</el-col>
</el-col>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-form-item
v-if=
"isShow"
label=
"平台自有设备"
>
<el-form-item
v-if=
"isShow"
label=
"平台自有设备"
>
<el-select
v-model=
"form.isPrivate"
disabled
class=
"inputWidth"
placeholder=
"
请选择平台自有设备
"
>
<el-select
v-model=
"form.isPrivate"
disabled
class=
"inputWidth"
placeholder=
"
-
"
>
<el-option
<el-option
v-for=
"(item, index) in optionsp"
v-for=
"(item, index) in optionsp"
:key=
"index"
:key=
"index"
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
</el-form-item>
</el-form-item>
<el-form-item
v-if=
"hpshow"
label=
"医院自有设备"
>
<el-form-item
v-if=
"hpshow"
label=
"医院自有设备"
>
<el-select
v-model=
"form.isPrivate"
disabled
class=
"inputWidth"
placeholder=
"
请选择医院自有设备
"
>
<el-select
v-model=
"form.isPrivate"
disabled
class=
"inputWidth"
placeholder=
"
-
"
>
<el-option
<el-option
v-for=
"(item ,index) in optionsh"
v-for=
"(item ,index) in optionsh"
:key=
"index"
:key=
"index"
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
<el-col
:span=
"16"
>
<el-col
:span=
"16"
>
<el-form-item
label=
"服务地点"
>
<el-form-item
label=
"服务地点"
>
<InputTips
:text=
"form.addressText"
width=
"18.75rem"
/>
<InputTips
:text=
"form.addressText"
width=
"18.75rem"
placeholder=
"-"
/>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"address"
>
<el-form-item
prop=
"address"
>
<el-input
<el-input
...
@@ -290,7 +290,7 @@
...
@@ -290,7 +290,7 @@
>
使用信息
>
使用信息
</div>
</div>
</div>
</div>
<el-table
:data=
"useList"
:header-cell-style=
"
{ background:'#F4F4F4'}"
border
>
<el-table
:data=
"useList"
:header-cell-style=
"
{ background:'#F4F4F4'}" >
<el-table-column
label=
"检查项目"
align=
"center"
prop=
"checkItemsName"
show-overflow-tooltip
/>
<el-table-column
label=
"检查项目"
align=
"center"
prop=
"checkItemsName"
show-overflow-tooltip
/>
<el-table-column
label=
"宠物昵称"
align=
"center"
prop=
"petNickname"
show-overflow-tooltip
/>
<el-table-column
label=
"宠物昵称"
align=
"center"
prop=
"petNickname"
show-overflow-tooltip
/>
<el-table-column
label=
"宠主姓名"
align=
"center"
prop=
"nickname"
show-overflow-tooltip
/>
<el-table-column
label=
"宠主姓名"
align=
"center"
prop=
"nickname"
show-overflow-tooltip
/>
...
@@ -595,7 +595,7 @@
...
@@ -595,7 +595,7 @@
<
/div
>
<
/div
>
<
/el-col
>
<
/el-col
>
<
/el-row
>
<
/el-row
>
8
<!--
8
-->
<
el
-
row
>
<
el
-
row
>
<
el
-
col
>
<
el
-
col
>
<
el
-
form
-
item
label
=
"支持服务地区"
prop
=
"serviceArea"
>
<
el
-
form
-
item
label
=
"支持服务地区"
prop
=
"serviceArea"
>
...
@@ -615,7 +615,7 @@
...
@@ -615,7 +615,7 @@
<
/el-form-item
>
<
/el-form-item
>
<
/el-col
>
<
/el-col
>
<
/el-row
>
<
/el-row
>
9
<!--
9
-->
<
el
-
row
>
<
el
-
row
>
<
el
-
col
>
<
el
-
col
>
<
el
-
form
-
item
label
=
"支持检查项目"
prop
=
"checkType"
>
<
el
-
form
-
item
label
=
"支持检查项目"
prop
=
"checkType"
>
...
@@ -642,7 +642,13 @@
...
@@ -642,7 +642,13 @@
<
el
-
col
style
=
"display: flex;justify-content: left; margin-left: 20px; margin-top: 20px"
>
<
el
-
col
style
=
"display: flex;justify-content: left; margin-left: 20px; margin-top: 20px"
>
<
el
-
button
class
=
"queryBtn"
type
=
"primary"
size
=
"mini"
icon
=
"el-icon-check"
@
click
=
"submitForm"
>
提交
<
el
-
button
class
=
"queryBtn"
type
=
"primary"
size
=
"mini"
icon
=
"el-icon-check"
@
click
=
"submitForm"
>
提交
<
/el-button
>
<
/el-button
>
<
el
-
button
class
=
"resetBtn"
size
=
"mini"
icon
=
"el-icon-back"
@
click
=
"cancel"
>
返回
<
/el-button
>
<
back
-
btn
button
-
text
=
"返 回"
button
-
class
=
"resetBtn"
:
click
-
action
=
"cancel"
:
is
-
show
-
confirm
=
"true"
/>
<!--
<
el
-
button
class
=
"resetBtn"
size
=
"mini"
icon
=
"el-icon-back"
@
click
=
"cancel"
>
返回
<
/el-button>--
>
<
/el-col
>
<
/el-col
>
<
/el-row
>
<
/el-row
>
<
/el-card
>
<
/el-card
>
...
@@ -663,10 +669,11 @@ import { listItemByType } from '@/api/business/item'
...
@@ -663,10 +669,11 @@ import { listItemByType } from '@/api/business/item'
import
{
mapGetters
}
from
'vuex'
import
{
mapGetters
}
from
'vuex'
import
{
signHospitalMessage
}
from
'@/api/business/hospital'
import
{
signHospitalMessage
}
from
'@/api/business/hospital'
import
InputTips
from
'@/components/InputTips/InputTips.vue'
import
InputTips
from
'@/components/InputTips/InputTips.vue'
import
backBtn
from
'@/components/BackBtn/index.vue'
export
default
{
export
default
{
name
:
'EquipmentDetail'
,
name
:
'EquipmentDetail'
,
components
:
{
InputTips
}
,
components
:
{
backBtn
,
InputTips
}
,
dicts
:
[
'device_status'
,
'device_type'
,
'exam_type'
,
'check_type'
,
'service_area'
],
dicts
:
[
'device_status'
,
'device_type'
,
'exam_type'
,
'check_type'
,
'service_area'
],
data
()
{
data
()
{
return
{
return
{
...
@@ -853,19 +860,15 @@ export default {
...
@@ -853,19 +860,15 @@ export default {
hpshow
:
''
hpshow
:
''
}
}
}
,
}
,
mounted
:
function
()
{
this
.
$route
.
meta
.
title
=
'2222'
}
,
created
()
{
created
()
{
this
.
$route
.
meta
.
title
=
'2222'
this
.
id
=
this
.
$route
.
query
.
id
this
.
id
=
this
.
$route
.
query
.
id
this
.
identify
=
this
.
$route
.
query
.
identify
this
.
identify
=
this
.
$route
.
query
.
identify
this
.
form
.
isPrivate
=
this
.
$route
.
query
.
isPrivate
this
.
form
.
isPrivate
=
this
.
$route
.
query
.
isPrivate
console
.
time
(
'start option'
)
//
console.time('start option')
Promise
.
all
([
this
.
getUserInfo
(),
this
.
getAreaData
(),
this
.
getuseList
(),
this
.
getItemByType
()])
Promise
.
all
([
this
.
getUserInfo
(),
this
.
getAreaData
(),
this
.
getuseList
(),
this
.
getItemByType
()])
.
then
(
_
=>
{
.
then
(
_
=>
{
console
.
timeLog
(
'start option'
)
//
console.timeLog('start option')
console
.
time
(
'detail'
)
//
console.time('detail')
this
.
handleUpdate
()
this
.
handleUpdate
()
}
)
}
)
}
,
}
,
...
@@ -1143,6 +1146,16 @@ export default {
...
@@ -1143,6 +1146,16 @@ export default {
data
.
createTimeShow
=
this
.
replace
(
data
.
createTime
)
data
.
createTimeShow
=
this
.
replace
(
data
.
createTime
)
// 回显检查项目
// 回显检查项目
data
.
checkType
=
data
.
checkType
.
filter
(
item
=>
{
let
flag
=
false
this
.
checkItemOptions
.
forEach
(
row
=>
{
if
(
row
.
id
===
item
)
{
flag
=
true
}
}
)
return
flag
}
)
data
.
checkTypeText
=
this
.
checkItemOptions
.
filter
(({
id
}
)
=>
data
.
checkType
.
includes
(
id
))
data
.
checkTypeText
=
this
.
checkItemOptions
.
filter
(({
id
}
)
=>
data
.
checkType
.
includes
(
id
))
.
map
(({
name
}
)
=>
name
)
.
map
(({
name
}
)
=>
name
)
.
join
(
','
)
.
join
(
','
)
...
...
src/views/service-management/medical-record-management/medical-record-management.vue
View file @
ec1b0b2c
...
@@ -671,6 +671,9 @@ export default {
...
@@ -671,6 +671,9 @@ export default {
listPlatformItem
({
itemType
:
'2'
}
).
then
(
res
=>
{
listPlatformItem
({
itemType
:
'2'
}
).
then
(
res
=>
{
console
.
log
(
'检查项目下拉框数据'
,
res
.
rows
)
console
.
log
(
'检查项目下拉框数据'
,
res
.
rows
)
this
.
checkItemOptions
=
res
.
rows
this
.
checkItemOptions
=
res
.
rows
if
(
this
.
checkItemOptions
.
length
>
0
)
{
this
.
checkItemOptions
.
unshift
({
id
:
''
,
name
:
'全部'
}
)
}
}
)
}
)
}
,
}
,
/** 获取所有设备用于设备下拉 */
/** 获取所有设备用于设备下拉 */
...
...
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