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
f0416997
Commit
f0416997
authored
Jun 12, 2023
by
盖献康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
检查管理-检查项目(查询和删除)
parent
69aa3746
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
15 deletions
+47
-15
item.js
src/api/business/item.js
+5
-5
check-item.vue
...rvice-management/medical-record-management/check-item.vue
+42
-10
No files found.
src/api/business/item.js
View file @
f0416997
import
request
from
'@/utils/request'
// 查询治疗/检查项目管理列表
export
function
list
Manage
(
query
)
{
export
function
list
Item
(
query
)
{
return
request
({
url
:
'/business/item/list'
,
method
:
'get'
,
...
...
@@ -10,7 +10,7 @@ export function listManage(query) {
}
// 查询治疗/检查项目管理详细
export
function
get
Manage
(
id
)
{
export
function
get
Item
(
id
)
{
return
request
({
url
:
'/business/item/'
+
id
,
method
:
'get'
...
...
@@ -18,7 +18,7 @@ export function getManage(id) {
}
// 新增治疗/检查项目管理
export
function
add
Manage
(
data
)
{
export
function
add
Item
(
data
)
{
return
request
({
url
:
'/business/item'
,
method
:
'post'
,
...
...
@@ -27,7 +27,7 @@ export function addManage(data) {
}
// 修改治疗/检查项目管理
export
function
update
Manage
(
data
)
{
export
function
update
Item
(
data
)
{
return
request
({
url
:
'/business/item'
,
method
:
'put'
,
...
...
@@ -36,7 +36,7 @@ export function updateManage(data) {
}
// 删除治疗/检查项目管理
export
function
del
Manage
(
id
)
{
export
function
del
Item
(
id
)
{
return
request
({
url
:
'/business/item/'
+
id
,
method
:
'delete'
...
...
src/views/service-management/medical-record-management/check-item.vue
View file @
f0416997
...
...
@@ -61,7 +61,7 @@
placeholder=
"请选择检查类型"
>
<el-option
v-for=
"items in
statusOptions
"
v-for=
"items in
dict.type.exam_type
"
:key=
"items.value"
:label=
"items.label"
:value=
"items.value"
...
...
@@ -96,16 +96,16 @@
label=
"支持保险支付:"
:prop=
"'settingList.'+index+'.supportInsure'"
:rules=
"[
{ required: true, message: '请选择是否支
付
保险支付', trigger: 'change' }
{ required: true, message: '请选择是否支
持
保险支付', trigger: 'change' }
]"
>
<el-select
v-model=
"item.supportInsure"
style=
"width: 100%"
placeholder=
"请选择是否支
付
保险支付"
placeholder=
"请选择是否支
持
保险支付"
>
<el-option
v-for=
"items in
status
Options"
v-for=
"items in
insurance
Options"
:key=
"items.value"
:label=
"items.label"
:value=
"items.value"
...
...
@@ -187,8 +187,11 @@
<
script
>
import
{
listItem
,
updateItem
}
from
'@/api/business/item'
export
default
{
name
:
'CheckItem'
,
dicts
:
[
'exam_type'
],
data
()
{
return
{
// 表单内容
...
...
@@ -200,7 +203,7 @@ export default {
price
:
''
,
supportInsure
:
''
,
sort
:
''
,
status
:
'
0
'
,
status
:
'
1
'
,
content
:
''
}
]
...
...
@@ -209,14 +212,40 @@ export default {
rules
:
{},
// 检查类型
statusOptions
:
[
{
value
:
'0'
,
label
:
'已启用'
},
{
value
:
'1'
,
label
:
'已禁用'
}
{
value
:
'1'
,
label
:
'已启用'
},
{
value
:
'0'
,
label
:
'已禁用'
}
],
// 支持保险
insuranceOptions
:
[
{
value
:
'1'
,
label
:
'是'
},
{
value
:
'0'
,
label
:
'否'
}
]
}
},
created
()
{
this
.
getList
()
},
methods
:
{
/** 获取数据 */
getList
()
{
listItem
().
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
console
.
log
(
'aaa'
,
response
)
if
(
response
.
rows
.
length
>
0
)
{
this
.
form
.
settingList
=
response
.
rows
}
else
{
this
.
form
.
settingList
=
[{
name
:
''
,
type
:
''
,
price
:
''
,
supportInsure
:
''
,
sort
:
''
,
status
:
'1'
,
content
:
''
}]
}
}
})
},
/** 将阿拉伯数字转成汉字(如:1变成一)*/
convertToChineseNumeral
(
num
)
{
...
...
@@ -264,11 +293,14 @@ export default {
cancelButtonClass
:
'resetBtn'
,
confirmButtonClass
:
'queryBtn'
}).
then
(
function
()
{
return
1
console
.
log
(
'item.id'
,
item
.
id
)
return
updateItem
({
id
:
item
.
id
,
delFlag
:
'2'
})
}).
then
(()
=>
{
this
.
getList
()
this
.
$refs
[
'form'
].
resetFields
()
this
.
$modal
.
msgSuccess
(
'删除成功'
)
}).
catch
(()
=>
{})
}).
catch
(()
=>
{
})
}
else
{
this
.
$confirm
(
'是否确认删除该项目'
,
'提示'
,
{
type
:
'warning'
,
...
...
@@ -290,7 +322,7 @@ export default {
price
:
''
,
supportInsure
:
''
,
sort
:
''
,
status
:
'
0
'
,
status
:
'
1
'
,
content
:
''
})
},
...
...
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