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
18a383cb
Commit
18a383cb
authored
Aug 11, 2023
by
刘怀志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
64824 病历管理,编辑、详情平台权限不显示一些字段
parent
885d9a74
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
53 additions
and
37 deletions
+53
-37
main.js
src/main.js
+1
-0
getters.js
src/store/getters.js
+2
-1
user.js
src/store/modules/user.js
+6
-1
pet-data-statistics.vue
...ta-statistics/pet-data-statistics/pet-data-statistics.vue
+4
-4
medical-edit.vue
src/views/medical-record-management/medical-edit.vue
+7
-7
register-modle.vue
...nagement/registration-queue/components/register-modle.vue
+26
-18
schedule-info.vue
...anagement/registration-queue/components/schedule-info.vue
+3
-2
registration-add.vue
...ervice-management/registration-queue/registration-add.vue
+3
-3
registration-detail.vue
...ice-management/registration-queue/registration-detail.vue
+1
-1
No files found.
src/main.js
View file @
18a383cb
...
...
@@ -97,6 +97,7 @@ function render(props = {}) {
store
.
commit
(
'SET_GOLBALSTATE'
,
props
.
getGlobalState
())
store
.
commit
(
'SET_USER_TYPE'
,
temp
.
type
)
store
.
commit
(
'SET_SITE_CONFIG'
,
temp
.
siteConfig
)
store
.
commit
(
'SET_DEPTLEVEL'
,
temp
.
deptLevel
)
}
instance
=
new
Vue
({
...
...
src/store/getters.js
View file @
18a383cb
...
...
@@ -19,6 +19,7 @@ const getters = {
sidebarRouters
:
state
=>
state
.
permission
.
sidebarRouters
,
setGlobalState
:
state
=>
state
.
user
.
setGlobalState
,
getGlobalState
:
state
=>
state
.
user
.
getGlobalState
,
siteConfig
:
state
=>
state
.
user
.
siteConfig
siteConfig
:
state
=>
state
.
user
.
siteConfig
,
deptLevel
:
state
=>
state
.
user
.
deptLevel
}
export
default
getters
src/store/modules/user.js
View file @
18a383cb
...
...
@@ -12,7 +12,8 @@ const user = {
getGlobalState
:
null
,
deptId
:
''
,
userType
:
''
,
siteConfig
:
{}
siteConfig
:
{},
deptLevel
:
''
},
mutations
:
{
...
...
@@ -45,6 +46,9 @@ const user = {
},
SET_SITE_CONFIG
:
(
state
,
microChange
)
=>
{
state
.
siteConfig
=
microChange
},
SET_DEPTLEVEL
:
(
state
,
deptLevel
)
=>
{
state
.
deptLevel
=
deptLevel
}
},
...
...
@@ -80,6 +84,7 @@ const user = {
}
commit
(
'SET_NAME'
,
user
.
userName
)
commit
(
'SET_DEPTID'
,
user
.
deptId
)
commit
(
'SET_DEPTLEVEL'
,
user
.
dept
.
level
)
commit
(
'SET_USER_TYPE'
,
user
.
userType
)
commit
(
'SET_AVATAR'
,
avatar
)
// 获取站点基础配置 dept.level是1代表平台 平台type传2 hospitalId是医院传的
...
...
src/views/data-statistics/pet-data-statistics/pet-data-statistics.vue
View file @
18a383cb
...
...
@@ -475,7 +475,7 @@
</el-row>
</div>
</div>
<empty-tool
v-else
title=
"会员复购排行"
/>
<empty-tool
v-else
title=
"会员复购排行"
/>
</div>
</el-col>
</el-row>
...
...
@@ -489,7 +489,7 @@
:x-data=
"vip_analyze_x_data"
unit=
"人"
/>
<empty-tool
v-else
title=
"会员等级分析"
/>
<empty-tool
v-else
title=
"会员等级分析"
/>
</div>
</el-col>
<el-col
:span=
"6"
>
...
...
@@ -505,7 +505,7 @@
:y-data=
"topUpColumnarChartData.yData"
name=
"累计充值金额"
/>
<empty-tool
v-else
title=
"宠主累计充值金额分析"
/>
<empty-tool
v-else
title=
"宠主累计充值金额分析"
/>
</div>
</el-col>
<el-col
:span=
"9"
>
...
...
@@ -516,7 +516,7 @@
:y-data2=
"radarPetOwnerHospital.yData2"
:max=
"getArrayMax([getArrayMax(radarPetOwnerHospital.yData1),getArrayMax(radarPetOwnerHospital.yData2)])"
/>
<empty-tool
v-else
title=
"宠主宠物数量分析"
/>
<empty-tool
v-else
title=
"宠主宠物数量分析"
/>
</div>
</el-col>
</el-row>
...
...
src/views/medical-record-management/medical-edit.vue
View file @
18a383cb
...
...
@@ -250,7 +250,7 @@ color: #333333;"
</el-col>
</el-row>
<el-row>
<el-col
:span=
"8"
>
<el-col
v-if=
"deptLevel !== '1'"
:span=
"8"
>
<el-form-item
label=
"创建日期"
>
<span
class=
"content-style"
>
<el-date-picker
...
...
@@ -265,7 +265,7 @@ color: #333333;"
</span>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-col
v-if=
"deptLevel !== '1'"
:span=
"8"
>
<el-form-item
label=
"会员等级"
>
<el-select
v-model=
"detailInfo.petOwnerBo.membershipLevel"
...
...
@@ -283,7 +283,7 @@ color: #333333;"
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-col
v-if=
"deptLevel !== '1'"
:span=
"8"
>
<el-form-item
label=
"会员卡余额"
>
<el-input
v-model=
"detailInfo.petOwnerBo.cardBalance"
:placeholder=
"isEdit? '请输入会员卡余额' : '暂无数据'"
disabled
>
<
template
#
suffix
>
元
</
template
>
...
...
@@ -291,8 +291,8 @@ color: #333333;"
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"8"
>
<el-row
v-if=
"deptLevel !== '1'"
>
<el-col
v-if=
"deptLevel !== '1'"
:span=
"8"
>
<el-form-item
label=
"状态"
>
<el-select
v-model=
"detailInfo.petOwnerBo.status"
:placeholder=
"isEdit? '请选择状态' : '暂无数据'"
disabled
>
<el-option
...
...
@@ -304,7 +304,7 @@ color: #333333;"
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-col
v-if=
"deptLevel !== '1'"
:span=
"8"
>
<el-form-item
label=
"绑定宠物数量"
>
<el-input
v-model=
"detailInfo.petOwnerBo.petCount"
:placeholder=
"isEdit? '请输入绑定宠物数量' : '暂无数据'"
disabled
/>
...
...
@@ -1433,7 +1433,7 @@ export default {
}
},
computed
:
{
...
mapGetters
([
'deptId'
,
'name'
]),
...
mapGetters
([
'deptId'
,
'name'
,
'deptLevel'
]),
/** 判断该页面是编辑还是详情*/
isEdit
()
{
return
this
.
$route
.
path
.
indexOf
(
'medical-edit'
)
>
-
1
...
...
src/views/service-management/registration-queue/components/register-modle.vue
View file @
18a383cb
...
...
@@ -57,7 +57,7 @@
<
el
-
table
-
column
class
-
name
=
"small-padding fixed-width"
label
=
"操作"
min
-
width
=
"160"
>
<
template
#
default
=
"{row
}
"
>
<
el
-
button
:
disabled
=
"registrationType !== '0' ? !inTimeRange(row.hours.split('~')[0], row.hours.split('~')[1]
) : afterTime(row.hours.split('~')[0], row.hours.split('~')[1]
)"
:
disabled
=
"registrationType !== '0' ? !inTimeRange(row.hours.split('~')[0], row.hours.split('~')[1]
,row.residueCount) : afterTime(row.hours.split('~')[0], row.hours.split('~')[1],row.residueCount
)"
icon
=
"el-icon-document"
plain
size
=
"mini"
...
...
@@ -180,29 +180,37 @@ export default {
* @param start 开始时间 时:分
* @param end 结束时间 时:分
*/
inTimeRange
(
start
,
end
)
{
console
.
log
(
start
,
end
)
const
current
=
moment
()
const
startTime
=
moment
({
hour
:
start
.
split
(
':'
)[
0
],
minute
:
start
.
split
(
':'
)[
1
]
}
)
const
endTime
=
moment
({
hour
:
end
.
split
(
':'
)[
0
],
minute
:
end
.
split
(
':'
)[
1
]
}
)
// TODO: 请清除该行输出
console
.
log
(
`current`
,
current
.
format
(
'YYYY/MM/DD HH:mm:ss'
))
// TODO: 请清除该行输出
console
.
log
(
`startTime.format('YYYY/MM/DD HH:mm:ss')`
,
startTime
.
format
(
'YYYY/MM/DD HH:mm:ss'
))
// TODO: 请清除该行输出
console
.
log
(
`endTime.format('YYYY/MM/DD HH:mm:ss')`
,
endTime
.
format
(
'YYYY/MM/DD HH:mm:ss'
))
return
current
.
isBetween
(
startTime
,
endTime
,
'minute'
)
inTimeRange
(
start
,
end
,
lastNumber
)
{
if
(
lastNumber
===
0
)
{
return
false
}
else
{
console
.
log
(
start
,
end
)
const
current
=
moment
()
const
startTime
=
moment
({
hour
:
start
.
split
(
':'
)[
0
],
minute
:
start
.
split
(
':'
)[
1
]
}
)
const
endTime
=
moment
({
hour
:
end
.
split
(
':'
)[
0
],
minute
:
end
.
split
(
':'
)[
1
]
}
)
// TODO: 请清除该行输出
console
.
log
(
`current`
,
current
.
format
(
'YYYY/MM/DD HH:mm:ss'
))
// TODO: 请清除该行输出
console
.
log
(
`startTime.format('YYYY/MM/DD HH:mm:ss')`
,
startTime
.
format
(
'YYYY/MM/DD HH:mm:ss'
))
// TODO: 请清除该行输出
console
.
log
(
`endTime.format('YYYY/MM/DD HH:mm:ss')`
,
endTime
.
format
(
'YYYY/MM/DD HH:mm:ss'
))
return
current
.
isBetween
(
startTime
,
endTime
,
'minute'
)
}
}
,
/**
* 判断当前时间是否在传入的时间范围后
* @param start 开始时间 时:分
* @param end 结束时间 时:分
*/
afterTime
(
start
,
end
)
{
console
.
log
(
start
,
end
)
const
current
=
moment
()
const
endTime
=
moment
({
hour
:
end
.
split
(
':'
)[
0
],
minute
:
end
.
split
(
':'
)[
1
]
}
)
return
current
.
isAfter
(
endTime
)
afterTime
(
start
,
end
,
lastNumber
)
{
if
(
lastNumber
===
0
)
{
return
true
}
else
{
console
.
log
(
start
,
end
)
const
current
=
moment
()
const
endTime
=
moment
({
hour
:
end
.
split
(
':'
)[
0
],
minute
:
end
.
split
(
':'
)[
1
]
}
)
return
current
.
isAfter
(
endTime
)
}
}
,
parseTime
,
/**
...
...
src/views/service-management/registration-queue/components/schedule-info.vue
View file @
18a383cb
...
...
@@ -27,8 +27,9 @@
class=
"title"
>
1.预约/现场挂号
</div>
<div
v-if=
"scheduleKey.registrationTime!=null"
class=
"status-on"
>
{{
parseTime
(
scheduleKey
.
registrationTime
,
'{y
}
/{m
}
/{d
}
{h
}
:{i
}
'
)
}}
<
/div
>
<div
v-if=
"scheduleKey.registrationTime!=null"
class=
"status-on"
>
{{
parseTime
(
scheduleKey
.
registrationTime
,
'{y
}
/{m
}
/{d
}
{h
}
:{i
}
'
)
}}
<
/div
>
<
div
v
-
else
class
=
"status-off"
>
暂未挂号
<
/div
>
<
/div
>
<
/div
>
...
...
src/views/service-management/registration-queue/registration-add.vue
View file @
18a383cb
...
...
@@ -143,8 +143,8 @@
<el-col
:span=
"8"
>
<el-form-item
label=
"绝育情况"
prop=
"sterilizationStatus"
>
<el-select
class=
"sterilization-status"
v-model=
"form.sterilizationStatus"
class=
"sterilization-status"
:disabled=
"!isEdit"
clearable
:placeholder=
"isEdit? '请选择宠物绝育情况' : '暂无数据'"
...
...
@@ -161,8 +161,8 @@
<el-col
:span=
"8"
>
<el-form-item
label=
"疫苗情况"
prop=
"vaccineSituation"
>
<el-select
class=
"vaccine-situation"
v-model=
"form.vaccineSituation"
class=
"vaccine-situation"
:disabled=
"!isEdit"
clearable
:placeholder=
"isEdit? '请选择宠物疫苗情况' : '暂无数据'"
...
...
@@ -179,8 +179,8 @@
<el-col
:span=
"8"
>
<el-form-item
label=
"宠物保险"
prop=
"insure"
>
<el-select
class=
"pet-insure"
v-model=
"form.insure"
class=
"pet-insure"
:disabled=
"!isEdit"
clearable
:placeholder=
"isEdit? '请选择宠物是否已购保险' : '暂无数据'"
...
...
src/views/service-management/registration-queue/registration-detail.vue
View file @
18a383cb
...
...
@@ -481,8 +481,8 @@
}, trigger: 'blur'}]"
>
<el-input
class=
"reg-diagnosisResult"
v-model
.
trim=
"visitForm.diagnosisResult"
class=
"reg-diagnosisResult"
maxlength=
"30"
placeholder=
"请输入诊断结果(0/30)"
/>
...
...
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