Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bims
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
孙海亮
bims
Commits
c9be409d
Commit
c9be409d
authored
Mar 02, 2022
by
yanglilong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
c400445b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
113 additions
and
30 deletions
+113
-30
add.vue
src/views/pre-auth/add.vue
+85
-24
authorizeVoList.vue
src/views/pre-auth/components/authorizeVoList.vue
+1
-1
feeDetail.vue
src/views/pre-auth/components/feeDetail.vue
+20
-3
index.vue
src/views/pre-auth/index.vue
+7
-2
No files found.
src/views/pre-auth/add.vue
View file @
c9be409d
...
@@ -4,27 +4,28 @@
...
@@ -4,27 +4,28 @@
<a-row
:gutter=
"30"
>
<a-row
:gutter=
"30"
>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"病历号"
>
<a-form-model-item
label=
"病历号"
>
<a-select
show-search
v-model=
"form.
patientI
d"
<a-select
show-search
v-model=
"form.
mrnNo"
:disabled=
"!!i
d"
placeholder=
"病历号"
:filter-option=
"false"
placeholder=
"病历号"
:filter-option=
"false"
@
search=
"getPatienList"
@
search=
"getPatienList"
@
change=
"patienListChange"
>
@
change=
"patienListChange"
>
<a-select-option
v-for=
"item in patientList"
:key=
"item.id"
:value=
"item.
id
"
>
{{
item
.
patientName
}}
</a-select-option>
<a-select-option
v-for=
"item in patientList"
:key=
"item.id"
:value=
"item.
mrnNo
"
>
{{
item
.
patientName
}}
</a-select-option>
</a-select>
</a-select>
</a-form-model-item>
</a-form-model-item>
</a-col>
</a-col>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"客户姓名"
>
<a-form-model-item
label=
"客户姓名"
>
<a-input
v-model=
"form.patientName"
placeholder=
"请输入客户姓名"
allow-clear
/>
<a-input
v-model=
"form.patientName"
placeholder=
"请输入客户姓名"
allow-clear
:disabled=
"!!id"
/>
</a-form-model-item>
</a-form-model-item>
</a-col>
</a-col>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"出生日期"
>
<a-form-model-item
label=
"出生日期"
>
<a-date-picker
allow-clear
v-model=
"form.firstEnrollmentTime"
placeholder=
"请选择出生日期"
value-format=
"YYYY-MM-DD 00:00:00"
/>
<a-date-picker
allow-clear
:disabled=
"!!id"
v-model=
"form.firstEnrollmentTime"
placeholder=
"请选择出生日期"
value-format=
"YYYY-MM-DD 00:00:00"
/>
</a-form-model-item>
</a-form-model-item>
</a-col>
</a-col>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"保险公司"
>
<a-form-model-item
label=
"保险公司"
>
<a-select
v-model=
"form.payorCode"
placeholder=
"请选择保险公司"
<a-select
v-model=
"form.payorCode"
placeholder=
"请选择保险公司"
:disabled=
"!!id"
@
change=
"_getPatientPolicyList"
>
@
change=
"_getPatientPolicyList"
>
<a-select-option
v-for=
"item in companyOptions"
:key=
"item.id"
:value=
"item.payorCode"
>
<a-select-option
v-for=
"item in companyOptions"
:key=
"item.id"
:value=
"item.payorCode"
>
{{
item
.
longName
}}
{{
item
.
longName
}}
...
@@ -34,7 +35,7 @@
...
@@ -34,7 +35,7 @@
</a-col>
</a-col>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"保单号码"
>
<a-form-model-item
label=
"保单号码"
>
<a-select
v-model=
"form.policyNo"
placeholder=
"请选择保单号码"
allowClear
>
<a-select
v-model=
"form.policyNo"
placeholder=
"请选择保单号码"
allowClear
:disabled=
"!!id"
>
<a-select-option
v-for=
"item in PolicyOptions"
:key=
"item.id"
:value=
"item.policyNo"
>
<a-select-option
v-for=
"item in PolicyOptions"
:key=
"item.id"
:value=
"item.policyNo"
>
{{
item
.
policyNo
}}
{{
item
.
policyNo
}}
</a-select-option>
</a-select-option>
...
@@ -43,7 +44,8 @@
...
@@ -43,7 +44,8 @@
</a-col>
</a-col>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"主治医生"
>
<a-form-model-item
label=
"主治医生"
>
<a-select
v-model=
"form.doctorCode"
placeholder=
"请选择主治医生"
showSearch
:filter-option=
"filterOption"
optionFilterProp=
"label"
>
<a-select
v-model=
"form.doctorCode"
placeholder=
"请选择主治医生"
:disabled=
"!!id"
showSearch
:filter-option=
"filterOption"
optionFilterProp=
"label"
>
<a-select-option
v-for=
"item in doctorOptions"
:key=
"item.doctorCode"
:value=
"item.doctorCode"
<a-select-option
v-for=
"item in doctorOptions"
:key=
"item.doctorCode"
:value=
"item.doctorCode"
:label=
"item.doctorDesc+item.doctorCode"
>
:label=
"item.doctorDesc+item.doctorCode"
>
{{
item
.
doctorDesc
}}
{{
item
.
doctorDesc
}}
...
@@ -53,21 +55,22 @@
...
@@ -53,21 +55,22 @@
</a-col>
</a-col>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"预授权项目"
>
<a-form-model-item
label=
"预授权项目"
>
<a-select
v-model=
"form.authProject"
placeholder=
"请选择预授权项目"
allowClear
>
<a-select
v-model=
"form.authProject"
placeholder=
"请选择预授权项目"
allowClear
:disabled=
"!!id"
>
<a-select-option
v-for=
"(item) in ProjectList"
:key=
"item.id"
:value=
"item.refcd"
>
{{
item
.
descCh
}}
</a-select-option>
<a-select-option
v-for=
"(item) in ProjectList"
:key=
"item.id"
:value=
"item.refcd"
>
{{
item
.
descCh
}}
</a-select-option>
</a-select>
</a-select>
</a-form-model-item>
</a-form-model-item>
</a-col>
</a-col>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"预计治疗时间"
>
<a-form-model-item
label=
"预计治疗时间"
>
<a-date-picker
allow-clear
v-model=
"form.authorDate"
placeholder=
"请选择预计治疗时间"
value-format=
"YYYY-MM-DD 00:00:00"
/>
<a-date-picker
allow-clear
v-model=
"form.authorDate"
placeholder=
"请选择预计治疗时间"
:disabled=
"!!id"
value-format=
"YYYY-MM-DD 00:00:00"
/>
</a-form-model-item>
</a-form-model-item>
</a-col>
</a-col>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"预计治疗费用"
>
<a-form-model-item
label=
"预计治疗费用"
>
<div
class=
"flex input-div"
>
<div
class=
"flex input-div"
>
<a-input
v-model=
"form.authorAmount"
placeholder=
"请输入费用"
type=
"number"
:min=
"0"
/>
<a-input
v-model=
"form.authorAmount"
placeholder=
"请输入费用"
type=
"number"
:min=
"0"
:disabled=
"!!id"
/>
<a-select
v-model=
"form.authorAmountUnit"
style=
"width:90px;"
>
<a-select
v-model=
"form.authorAmountUnit"
style=
"width:90px;"
:disabled=
"!!id"
>
<a-select-option
v-for=
"(item) in MoneyUnitOptions"
:key=
"item.value"
:value=
"item.value"
>
{{
item
.
name
}}
</a-select-option>
<a-select-option
v-for=
"(item) in MoneyUnitOptions"
:key=
"item.value"
:value=
"item.value"
>
{{
item
.
name
}}
</a-select-option>
</a-select>
</a-select>
</div>
</div>
...
@@ -75,12 +78,13 @@
...
@@ -75,12 +78,13 @@
</a-col>
</a-col>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"初诊日期"
>
<a-form-model-item
label=
"初诊日期"
>
<a-date-picker
allow-clear
v-model=
"form.firstVisitDate"
placeholder=
"请选择初诊日期"
value-format=
"YYYY-MM-DD 00:00:00"
/>
<a-date-picker
allow-clear
v-model=
"form.firstVisitDate"
placeholder=
"请选择初诊日期"
:disabled=
"!!id"
value-format=
"YYYY-MM-DD 00:00:00"
/>
</a-form-model-item>
</a-form-model-item>
</a-col>
</a-col>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"治疗目的"
>
<a-form-model-item
label=
"治疗目的"
>
<a-select
v-model=
"form.purpose"
placeholder=
"请选择治疗目的"
>
<a-select
v-model=
"form.purpose"
placeholder=
"请选择治疗目的"
:disabled=
"!!id"
>
<a-select-option
value=
"01"
>
疾病
</a-select-option>
<a-select-option
value=
"01"
>
疾病
</a-select-option>
<a-select-option
value=
"02"
>
事故
</a-select-option>
<a-select-option
value=
"02"
>
事故
</a-select-option>
</a-select>
</a-select>
...
@@ -88,19 +92,19 @@
...
@@ -88,19 +92,19 @@
</a-col>
</a-col>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"治疗方案"
>
<a-form-model-item
label=
"治疗方案"
>
<a-select
v-model=
"form.treatmentPlan"
placeholder=
"请选择治疗方案"
>
<a-select
v-model=
"form.treatmentPlan"
placeholder=
"请选择治疗方案"
:disabled=
"!!id"
>
<a-select-option
v-for=
"(item,i) in treatmentPlanList"
:key=
"i"
:value=
"item.refcd"
>
{{
item
.
descCh
}}
</a-select-option>
<a-select-option
v-for=
"(item,i) in treatmentPlanList"
:key=
"i"
:value=
"item.refcd"
>
{{
item
.
descCh
}}
</a-select-option>
</a-select>
</a-select>
</a-form-model-item>
</a-form-model-item>
</a-col>
</a-col>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"诊断"
>
<a-form-model-item
label=
"诊断"
>
<a-input
v-model=
"form.diagnosis"
placeholder=
"请输入诊断"
allow-clear
/>
<a-input
v-model=
"form.diagnosis"
placeholder=
"请输入诊断"
allow-clear
:disabled=
"!!id"
/>
</a-form-model-item>
</a-form-model-item>
</a-col>
</a-col>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"病历资料"
>
<a-form-model-item
label=
"病历资料"
>
<a-upload
name=
"file"
:multiple=
"false"
:showUploadList=
"true"
<a-upload
name=
"file"
:multiple=
"false"
:showUploadList=
"true"
:disabled=
"!!id"
:fileList=
"form.medicalRecord"
:fileList=
"form.medicalRecord"
:customRequest=
"(file)=>uploadFile(file, 1)"
:customRequest=
"(file)=>uploadFile(file, 1)"
:beforeUpload=
"()=>beforeUpload(1)"
:beforeUpload=
"()=>beforeUpload(1)"
...
@@ -112,7 +116,7 @@
...
@@ -112,7 +116,7 @@
</a-row>
</a-row>
<!--费用明细-->
<!--费用明细-->
<a-row>
<a-row>
<FeeDetail
:ProjectList=
"ProjectList"
@
authorizeItemVoListChange=
"authorizeItemVoListChange"
/>
<FeeDetail
:
id=
"id"
ref=
"feeDetail"
:
ProjectList=
"ProjectList"
@
authorizeItemVoListChange=
"authorizeItemVoListChange"
/>
</a-row>
</a-row>
<a-row
:gutter=
"30"
class=
"footer-body"
>
<a-row
:gutter=
"30"
class=
"footer-body"
>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-col
:lg=
"6"
:sm=
"12"
>
...
@@ -150,7 +154,7 @@
...
@@ -150,7 +154,7 @@
<a-col
:lg=
"24"
:sm=
"12"
class=
"none-label"
>
<a-col
:lg=
"24"
:sm=
"12"
class=
"none-label"
>
<a-form-model-item
label=
"button"
>
<a-form-model-item
label=
"button"
>
<a-button
type=
"primary"
@
click=
"saveEvt"
:loading=
"loading"
>
<a-button
type=
"primary"
@
click=
"saveEvt"
:loading=
"loading"
>
<Icon
name=
"ssibaocun"
:size=
"14"
/>
保存
<Icon
:name=
"id?'ssibaocun':'ssiadd'"
:size=
"14"
/>
{{
id
?
'
保存预授权
'
:
'
新建预授权
'
}}
</a-button>
</a-button>
</a-form-model-item>
</a-form-model-item>
</a-col>
</a-col>
...
@@ -173,8 +177,10 @@ export default{
...
@@ -173,8 +177,10 @@ export default{
loading
:
false
,
loading
:
false
,
MoneyUnitOptions
,
MoneyUnitOptions
,
ApplyStatusOptions
,
ApplyStatusOptions
,
id
:
''
,
//预授权id
form
:
{
form
:
{
mrnNo
:
''
,
mrnNo
:
''
,
patientId
:
''
,
payorCode
:
''
,
payorCode
:
''
,
policyNo
:
''
,
policyNo
:
''
,
firstEnrollmentTime
:
''
,
firstEnrollmentTime
:
''
,
...
@@ -202,12 +208,18 @@ export default{
...
@@ -202,12 +208,18 @@ export default{
})
})
},
},
created
(){
created
(){
this
.
id
=
this
.
$route
.
query
.
id
||
""
;
this
.
getRefcdByRefgrp
();
this
.
getRefcdByRefgrp
();
this
.
_getDoctorListNoPage
();
//获取看诊医生下拉选项
this
.
_getDoctorListNoPage
();
//获取看诊医生下拉选项
if
(
this
.
id
){
this
.
getDetail
();
}
},
},
methods
:
{
methods
:
{
init
(){
init
(){
this
.
form
=
{
this
.
form
=
{
mrnNo
:
''
,
patientId
:
''
,
payorCode
:
''
,
payorCode
:
''
,
policyNo
:
''
,
policyNo
:
''
,
firstEnrollmentTime
:
''
,
firstEnrollmentTime
:
''
,
...
@@ -225,6 +237,40 @@ export default{
...
@@ -225,6 +237,40 @@ export default{
authorizeItemVoListChange
(
data
){
authorizeItemVoListChange
(
data
){
this
.
form
.
authorizeItemVoList
=
data
;
this
.
form
.
authorizeItemVoList
=
data
;
},
},
//获取预授权详情
getDetail
(){
this
.
$apis
.
AUTHORIZEDETAIL
({
id
:
this
.
id
})
.
then
((
res
)
=>
{
if
(
res
.
returnCode
===
"
0000
"
)
{
let
content
=
res
.
content
||
{}
this
.
form
=
{
...
content
,
medicalRecord
:
(
content
.
medicalRecord
||
[]).
map
((
item
)
=>
{
return
{
uid
:
item
.
id
,
name
:
item
.
fileName
,
status
:
'
done
'
,
url
:
item
.
fileUrl
,
}
}),
supplementalResult
:
(
content
.
supplementalResult
||
[]).
map
((
item
)
=>
{
return
{
uid
:
item
.
id
,
name
:
item
.
fileName
,
status
:
'
done
'
,
url
:
item
.
fileUrl
,
}
}),
authorizeItemVoList
:
content
.
authorizeItemVoList
||
[],
};
this
.
$refs
.
feeDetail
.
dataList
=
this
.
form
.
authorizeItemVoList
;
}
else
{
this
.
$message
.
success
(
res
.
returnMsg
);
}
})
},
// 获取看诊医生下拉选项
// 获取看诊医生下拉选项
_getDoctorListNoPage
(){
_getDoctorListNoPage
(){
this
.
$apis
.
GETDOCTORlISTNOPAGE
({
"
providerId
"
:
this
.
userInfo
.
providerId
}).
then
((
res
)
=>
{
this
.
$apis
.
GETDOCTORlISTNOPAGE
({
"
providerId
"
:
this
.
userInfo
.
providerId
}).
then
((
res
)
=>
{
...
@@ -233,7 +279,6 @@ export default{
...
@@ -233,7 +279,6 @@ export default{
}
else
{
}
else
{
this
.
$message
.
success
(
res
.
returnMsg
);
this
.
$message
.
success
(
res
.
returnMsg
);
}
}
});
});
},
},
getPatienList
(
value
){
getPatienList
(
value
){
...
@@ -257,9 +302,9 @@ export default{
...
@@ -257,9 +302,9 @@ export default{
this
.
form
.
payorCode
=
""
;
this
.
form
.
payorCode
=
""
;
this
.
form
.
policyNo
=
""
;
this
.
form
.
policyNo
=
""
;
let
itemObj
=
this
.
patientList
.
find
((
item
)
=>
{
let
itemObj
=
this
.
patientList
.
find
((
item
)
=>
{
return
this
.
form
.
patientId
==
item
.
id
;
return
this
.
form
.
mrnNo
==
item
.
mrnNo
;
})
||
{};
})
||
{};
this
.
form
.
mrnNo
=
itemObj
.
mrnNo
;
this
.
form
.
patientId
=
itemObj
.
id
;
this
.
form
.
patientName
=
itemObj
.
patientName
;
this
.
form
.
patientName
=
itemObj
.
patientName
;
this
.
form
.
firstEnrollmentTime
=
itemObj
.
firstEnrollmentTime
?
moment
(
itemObj
.
firstEnrollmentTime
).
format
(
'
YYYY-MM-DD 00:00:00
'
):
''
;
this
.
form
.
firstEnrollmentTime
=
itemObj
.
firstEnrollmentTime
?
moment
(
itemObj
.
firstEnrollmentTime
).
format
(
'
YYYY-MM-DD 00:00:00
'
):
''
;
this
.
_getCompanyOptions
()
this
.
_getCompanyOptions
()
...
@@ -363,14 +408,30 @@ export default{
...
@@ -363,14 +408,30 @@ export default{
//保存
//保存
saveEvt
(){
saveEvt
(){
this
.
loading
=
true
;
this
.
loading
=
true
;
this
.
$apis
.
AUTHORIZECREATE
({
let
api
=
this
.
id
?
'
AUTHORIZEUPDATE
'
:
'
AUTHORIZECREATE
'
;
...
this
.
form
this
.
$apis
[
api
]({
...
this
.
form
,
medicalRecord
:
this
.
form
.
medicalRecord
.
map
((
item
)
=>
{
return
{
fileName
:
item
.
name
,
fileUrl
:
item
.
url
,
}
}),
supplementalResult
:
this
.
form
.
supplementalResult
.
map
((
item
)
=>
{
return
{
fileName
:
item
.
name
,
fileUrl
:
item
.
url
,
}
})
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
res
.
returnCode
==
'
0000
'
){
if
(
res
.
returnCode
==
'
0000
'
){
this
.
$message
.
success
(
'
保存成功
'
);
this
.
$message
.
success
(
'
保存成功
'
);
if
(
!
this
.
id
){
this
.
$refs
.
feeDetail
.
dataList
=
[];
this
.
init
();
this
.
init
();
}
}
else
{
}
else
{
this
.
$message
.
warning
(
res
.
returnMsg
);
this
.
$message
.
warning
(
res
.
returnMsg
);
}
}
...
...
src/views/pre-auth/components/authorizeVoList.vue
View file @
c9be409d
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
</
template
>
</
template
>
<
template
slot=
"operation"
slot-scope=
"text, record, index"
>
<
template
slot=
"operation"
slot-scope=
"text, record, index"
>
<a-button
type=
"link"
@
click.stop=
"editEvt(index)"
>
修改
</a-button>
<a-button
type=
"link"
@
click.stop=
"editEvt(index)"
>
修改
</a-button>
<
a-button
v-if=
"record.eobNo"
type=
"link"
class=
"danger"
@
click.stop=
"delRecord(index)"
>
删除
</a-button
>
<
!--
<a-button
v-if=
"record.eobNo"
type=
"link"
class=
"danger"
@
click.stop=
"delRecord(index)"
>
删除
</a-button>
--
>
</
template
>
</
template
>
</a-table>
</a-table>
...
...
src/views/pre-auth/components/feeDetail.vue
View file @
c9be409d
...
@@ -2,15 +2,15 @@
...
@@ -2,15 +2,15 @@
<div>
<div>
<div
class=
"flex title-div"
>
<div
class=
"flex title-div"
>
<span>
费用明细
</span>
<span>
费用明细
</span>
<a-button
type=
"primary"
@
click.stop=
"addEvt"
>
新增
</a-button>
<a-button
type=
"primary"
@
click.stop=
"addEvt"
v-if=
"!id"
>
新增
</a-button>
</div>
</div>
<a-table
:columns=
"columns"
:data-source=
"dataList"
:pagination=
"false"
>
<a-table
:columns=
"columns"
:data-source=
"dataList"
:pagination=
"false"
>
<template
slot=
"itemCode"
slot-scope=
"text"
>
<template
slot=
"itemCode"
slot-scope=
"text"
>
{{
formatProject
(
text
)
}}
{{
formatProject
(
text
)
}}
</
template
>
</
template
>
<
template
slot=
"operation"
slot-scope=
"text, record, index"
>
<
template
slot=
"operation"
slot-scope=
"text, record, index"
>
<a-button
type=
"link"
@
click.stop=
"editEvt(index)"
>
修改
</a-button>
<a-button
type=
"link"
@
click.stop=
"editEvt(index)"
v-if=
"!id"
>
修改
</a-button>
<a-button
v-if=
"record.eobNo"
type=
"link"
class=
"danger"
@
click.stop=
"delRecord(index)
"
>
删除
</a-button>
<a-button
type=
"link"
class=
"danger"
@
click.stop=
"delRecord(index)"
v-if=
"!id
"
>
删除
</a-button>
</
template
>
</
template
>
<
template
slot=
"footer"
>
<
template
slot=
"footer"
>
<div
class=
"flex footer-div"
>
<div
class=
"flex footer-div"
>
...
@@ -56,6 +56,9 @@
...
@@ -56,6 +56,9 @@
<
script
>
<
script
>
export
default
{
export
default
{
props
:
{
props
:
{
id
:
{
default
:
''
},
ProjectList
:
{
ProjectList
:
{
default
:
[]
default
:
[]
}
}
...
@@ -122,6 +125,20 @@ export default{
...
@@ -122,6 +125,20 @@ export default{
};
};
this
.
dialogShow
=
true
;
this
.
dialogShow
=
true
;
},
},
//删除记录
delRecord
(
index
)
{
this
.
$modal
.
confirm
({
title
:
"
删除
"
,
content
:
"
确定删除该条记录?
"
,
okText
:
"
确认
"
,
cancelText
:
"
取消
"
,
onOk
:
()
=>
{
this
.
$message
.
success
(
"
删除成功
"
);
this
.
dataList
.
splice
(
index
,
1
);
},
onCancel
:
()
=>
{},
});
},
//编辑保存
//编辑保存
handleEditOK
()
{
handleEditOK
()
{
this
.
$refs
.
editForm
.
validate
((
valid
)
=>
{
this
.
$refs
.
editForm
.
validate
((
valid
)
=>
{
...
...
src/views/pre-auth/index.vue
View file @
c9be409d
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
</
template
>
</
template
>
<
template
slot=
"operation"
slot-scope=
"text, record, index"
>
<
template
slot=
"operation"
slot-scope=
"text, record, index"
>
<a-button
type=
"link"
@
click.stop=
"editEvt(record)"
>
修改
</a-button>
<a-button
type=
"link"
@
click.stop=
"editEvt(record)"
>
修改
</a-button>
<
a-button
type=
"link"
class=
"success"
@
click.stop=
"addEvt(record)"
>
新增
</a-button
>
<
!--
<a-button
type=
"link"
class=
"success"
@
click.stop=
"addEvt(record)"
>
新增
</a-button>
--
>
<a-button
type=
"link"
class=
"danger"
@
click.stop=
"delRecord(index)"
>
删除
</a-button>
<a-button
type=
"link"
class=
"danger"
@
click.stop=
"delRecord(index)"
>
删除
</a-button>
</
template
>
</
template
>
</a-table>
</a-table>
...
@@ -187,7 +187,12 @@ export default{
...
@@ -187,7 +187,12 @@ export default{
});
});
},
},
editEvt
(
record
){
editEvt
(
record
){
console
.
log
(
record
);
this
.
$router
.
push
({
path
:
'
/pre-auth/add
'
,
query
:
{
id
:
record
.
id
}
})
},
},
//查看预授权使用数据
//查看预授权使用数据
seeEvt
(
record
=
{}){
seeEvt
(
record
=
{}){
...
...
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