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
da7aeedd
Commit
da7aeedd
authored
Jul 21, 2023
by
高滢
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
327c4814
b6281309
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
338 additions
and
220 deletions
+338
-220
mdeicalRecord.js
src/api/business/mdeicalRecord.js
+8
-0
login.js
src/api/login.js
+9
-0
main.js
src/main.js
+1
-0
getters.js
src/store/getters.js
+2
-1
user.js
src/store/modules/user.js
+27
-2
medical-edit.vue
src/views/medical-record-management/medical-edit.vue
+286
-215
prescribing-modle.vue
...ement/registration-queue/components/prescribing-modle.vue
+3
-1
register-modle.vue
...nagement/registration-queue/components/register-modle.vue
+2
-1
No files found.
src/api/business/mdeicalRecord.js
View file @
da7aeedd
...
...
@@ -83,3 +83,11 @@ export function editRecord(data) {
data
})
}
// 编辑病例
export
function
getRecordPayment
(
id
)
{
return
request
({
url
:
'/business/record/paymentDetailForMedical/'
+
id
,
method
:
'get'
})
}
src/api/login.js
View file @
da7aeedd
...
...
@@ -30,6 +30,15 @@ export function register(data) {
})
}
// 获取站点配置信息
export
function
getSiteInfo
(
params
)
{
return
request
({
url
:
'/system/baseConfig/list'
,
method
:
'get'
,
params
})
}
// 获取用户详细信息
export
function
getInfo
()
{
return
request
({
...
...
src/main.js
View file @
da7aeedd
...
...
@@ -96,6 +96,7 @@ function render(props = {}) {
store
.
commit
(
'SET_CHANGE'
,
props
.
setGlobalState
)
store
.
commit
(
'SET_GOLBALSTATE'
,
props
.
getGlobalState
())
store
.
commit
(
'SET_USER_TYPE'
,
temp
.
type
)
store
.
commit
(
'SET_SITE_CONFIG'
,
temp
.
siteConfig
)
}
instance
=
new
Vue
({
...
...
src/store/getters.js
View file @
da7aeedd
...
...
@@ -18,6 +18,7 @@ const getters = {
defaultRoutes
:
state
=>
state
.
permission
.
defaultRoutes
,
sidebarRouters
:
state
=>
state
.
permission
.
sidebarRouters
,
setGlobalState
:
state
=>
state
.
user
.
setGlobalState
,
getGlobalState
:
state
=>
state
.
user
.
getGlobalState
getGlobalState
:
state
=>
state
.
user
.
getGlobalState
,
siteConfig
:
state
=>
state
.
user
.
siteConfig
}
export
default
getters
src/store/modules/user.js
View file @
da7aeedd
import
{
login
,
logout
,
getInfo
}
from
'@/api/login'
import
{
login
,
logout
,
getInfo
,
getSiteInfo
}
from
'@/api/login'
import
{
getToken
,
setToken
,
removeToken
}
from
'@/utils/auth'
const
user
=
{
...
...
@@ -11,7 +11,8 @@ const user = {
setGlobalState
:
null
,
getGlobalState
:
null
,
deptId
:
''
,
userType
:
''
userType
:
''
,
siteConfig
:
{}
},
mutations
:
{
...
...
@@ -41,6 +42,9 @@ const user = {
},
SET_USER_TYPE
:
(
state
,
userType
)
=>
{
state
.
userType
=
userType
},
SET_SITE_CONFIG
:
(
state
,
microChange
)
=>
{
state
.
siteConfig
=
microChange
}
},
...
...
@@ -78,6 +82,27 @@ const user = {
commit
(
'SET_DEPTID'
,
user
.
deptId
)
commit
(
'SET_USER_TYPE'
,
user
.
userType
)
commit
(
'SET_AVATAR'
,
avatar
)
// 获取站点基础配置 dept.level是1代表平台 平台type传2 hospitalId是医院传的
const
temp
=
{
type
:
user
.
dept
.
level
===
'1'
?
'2'
:
null
,
hospitalId
:
user
.
dept
.
level
===
'1'
?
null
:
user
.
deptId
}
getSiteInfo
(
temp
).
then
(
siteInfo
=>
{
// user.dept.level = 1 为平台; 2 为医院
let
siteConfig
=
{}
if
(
user
.
dept
.
level
===
'2'
)
{
if
(
siteInfo
.
rows
.
length
!==
0
)
{
siteInfo
.
rows
.
forEach
(
item
=>
{
siteConfig
[
item
.
key
]
=
JSON
.
parse
(
item
.
content
)
})
}
}
else
if
(
user
.
dept
.
level
===
'1'
)
{
if
(
siteInfo
.
rows
.
length
!==
0
)
{
siteConfig
=
JSON
.
parse
(
siteInfo
.
rows
[
0
].
content
)
}
}
commit
(
'SET_SITE_CONFIG'
,
siteConfig
)
})
resolve
(
res
)
}).
catch
(
error
=>
{
reject
(
error
)
...
...
src/views/medical-record-management/medical-edit.vue
View file @
da7aeedd
This diff is collapsed.
Click to expand it.
src/views/service-management/registration-queue/components/prescribing-modle.vue
View file @
da7aeedd
...
...
@@ -588,7 +588,9 @@ export default {
'medicalRecordNo'
:
this
.
registerForm
.
medicalRecordNo
,
'registId'
:
this
.
registerForm
.
registId
,
'doctorName'
:
this
.
registerForm
.
doctorName
,
'inHospitalBo'
:
inHospitalBo
'inHospitalBo'
:
inHospitalBo
,
'petNickname'
:
this
.
registerForm
.
petNickname
,
'hospitalId'
:
this
.
registerForm
.
hospitalId
}
if
(
prescrib
.
inspect
.
length
>
0
)
{
temp
[
'checkManageBos'
]
=
[...
prescrib
.
inspect
]
...
...
src/views/service-management/registration-queue/components/register-modle.vue
View file @
da7aeedd
...
...
@@ -294,7 +294,8 @@ export default {
hosAddress
:
this
.
singleDoctor
.
hosAddress
,
doctorSignatureUrl
:
this
.
singleDoctor
.
doctorSignatureUrl
,
visitLocation
:
this
.
singleDoctor
.
visitLocation
,
doctorTitleLabel
:
this
.
singleDoctor
.
doctorTitleValue
doctorTitleLabel
:
this
.
singleDoctor
.
doctorTitleValue
,
way
:
this
.
registrationType
}
console
.
log
(
'终极大表'
,
temp
)
// 进入挂号页面先获取是否有重复的宠物数据--选择宠物不需要
...
...
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