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
c400445b
Commit
c400445b
authored
Mar 02, 2022
by
yanglilong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
dded8e7b
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
428 additions
and
101 deletions
+428
-101
bi.js
src/api/apis_moudles/bi.js
+1
-5
pre-auth.js
src/api/apis_moudles/pre-auth.js
+13
-1
bi.js
src/api/funcs_modules/bi.js
+3
-30
pre-auth.js
src/api/funcs_modules/pre-auth.js
+64
-3
utilsdictOptions.js
src/utils/utilsdictOptions.js
+4
-4
add.vue
src/views/pre-auth/add.vue
+169
-41
authorizeVoList.vue
src/views/pre-auth/components/authorizeVoList.vue
+125
-5
feeDetail.vue
src/views/pre-auth/components/feeDetail.vue
+1
-0
index.vue
src/views/pre-auth/index.vue
+48
-12
No files found.
src/api/apis_moudles/bi.js
View file @
c400445b
// 报表api
export
default
{
createAuthorize
:
"
/backstage/auth/createAuthorize
"
,
//创建预授权
authorizeList
:
"
/backstage/auth/authorizeList
"
,
//预授权列表
authorizeDetail
:
"
/backstage/auth/authorizeDetail
"
,
//预授权详情
authorizeUpdate
:
"
/backstage/auth/authorizeUpdate
"
,
//预授权修改
authorizeDelete
:
"
/backstage/auth/authorizeDelete
"
,
//预授权删除
};
src/api/apis_moudles/pre-auth.js
View file @
c400445b
// 预授权api
export
default
{};
export
default
{
patientListNoPage
:
"
/backstage/auth/patientListNoPage
"
,
//患者列表无分页
patientPayorList
:
"
/backstage/auth/patientPayorList
"
,
//根据患者查询保司列表
patientPolicyList
:
"
/backstage/auth/patientPolicyList
"
,
//根据患者查询保单列表
createAuthorize
:
"
/backstage/auth/createAuthorize
"
,
//创建预授权
authorizeList
:
"
/backstage/auth/authorizeList
"
,
//预授权列表
authorizeDetail
:
"
/backstage/auth/authorizeDetail
"
,
//预授权详情
authorizeUpdate
:
"
/backstage/auth/authorizeUpdate
"
,
//预授权修改
authorizeDelete
:
"
/backstage/auth/authorizeDelete
"
,
//预授权删除
authorizeUseList
:
"
/backstage/auth/authorizeUseList
"
,
//预授权使用列表
authorizeUseAdd
:
"
/backstage/auth/authorizeUseAdd
"
,
//新增预授权使用
};
src/api/funcs_modules/bi.js
View file @
c400445b
// 报表函数库
import
apis
from
"
../apis_moudles/index
"
;
import
req
from
"
../request
"
;
//
import apis from "../apis_moudles/index";
//
import req from "../request";
//创建预授权
const
AUTHORIZECREATE
=
function
(
data
)
{
return
req
.
post
(
apis
.
createAuthorize
,
data
);
};
//预授权列表
const
AUTHORIZELIST
=
function
(
data
)
{
return
req
.
post
(
apis
.
authorizeList
,
data
);
};
//预授权详情
const
AUTHORIZEDETAIL
=
function
(
data
)
{
return
req
.
post
(
apis
.
authorizeDetail
,
data
);
};
//预授权修改
const
AUTHORIZEUPDATE
=
function
(
data
)
{
return
req
.
post
(
apis
.
authorizeUpdate
,
data
);
};
//预授权删除
const
AUTHORIZEDELETE
=
function
(
data
)
{
return
req
.
post
(
apis
.
authorizeDelete
,
data
);
};
// 对象数组
export
default
{
AUTHORIZECREATE
,
AUTHORIZELIST
,
AUTHORIZEDETAIL
,
AUTHORIZEUPDATE
,
AUTHORIZEDELETE
,
};
src/api/funcs_modules/pre-auth.js
View file @
c400445b
// 预授权函数库
// import apis from "../apis_moudles/index";
// import req from "../request";
import
apis
from
"
../apis_moudles/index
"
;
import
req
from
"
../request
"
;
//患者列表无分页
const
PATIENTLISTNOPAGE
=
(
data
)
=>
{
return
req
.
post
(
apis
.
patientListNoPage
,
data
);
};
//根据患者查询保司列表
const
PATIENTPAYORLIST
=
(
data
)
=>
{
return
req
.
post
(
apis
.
patientPayorList
,
data
);
};
//根据患者查询保单列表
const
PATIENTPOLICYLIST
=
(
data
)
=>
{
return
req
.
post
(
apis
.
patientPolicyList
,
data
);
};
//创建预授权
const
AUTHORIZECREATE
=
function
(
data
)
{
return
req
.
post
(
apis
.
createAuthorize
,
data
);
};
//预授权列表
const
AUTHORIZELIST
=
function
(
data
)
{
return
req
.
post
(
apis
.
authorizeList
,
data
);
};
//预授权详情
const
AUTHORIZEDETAIL
=
function
(
data
)
{
return
req
.
post
(
apis
.
authorizeDetail
,
data
);
};
//预授权修改
const
AUTHORIZEUPDATE
=
function
(
data
)
{
return
req
.
post
(
apis
.
authorizeUpdate
,
data
);
};
//预授权删除
const
AUTHORIZEDELETE
=
function
(
data
)
{
return
req
.
post
(
apis
.
authorizeDelete
,
data
);
};
//预授权使用列表
const
AUTHORIZEUSELIST
=
function
(
data
)
{
return
req
.
post
(
apis
.
authorizeUseList
,
data
);
};
//新增预授权使用
const
AUTHORIZEUSEADD
=
function
(
data
)
{
return
req
.
post
(
apis
.
authorizeUseAdd
,
data
);
};
// 对象数组
export
default
{};
export
default
{
PATIENTLISTNOPAGE
,
PATIENTPAYORLIST
,
PATIENTPOLICYLIST
,
AUTHORIZECREATE
,
AUTHORIZELIST
,
AUTHORIZEDETAIL
,
AUTHORIZEUPDATE
,
AUTHORIZEDELETE
,
AUTHORIZEUSELIST
,
AUTHORIZEUSEADD
,
};
src/utils/utilsdictOptions.js
View file @
c400445b
...
...
@@ -46,10 +46,10 @@ const ApproveStatusOptions = [
//monetUnit
const
MoneyUnitOptions
=
[
{
name
:
'
元
'
,
value
:
'
1
'
},
{
name
:
'
美元
'
,
value
:
'
2
'
},
{
name
:
'
英镑
'
,
value
:
'
3
'
},
{
name
:
'
欧元
'
,
value
:
'
4
'
},
{
name
:
'
元
'
,
value
:
'
0
1
'
},
{
name
:
'
美元
'
,
value
:
'
0
2
'
},
{
name
:
'
英镑
'
,
value
:
'
0
3
'
},
{
name
:
'
欧元
'
,
value
:
'
0
4
'
},
];
...
...
src/views/pre-auth/add.vue
View file @
c400445b
...
...
@@ -3,13 +3,18 @@
<a-form-model
ref=
"form"
layout=
"vertical"
:model=
"form"
>
<a-row
:gutter=
"30"
>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"客户信息"
>
<a-input
v-model=
"form.patientNo"
placeholder=
"请输入客户信息"
allow-clear
/>
<a-form-model-item
label=
"病历号"
>
<a-select
show-search
v-model=
"form.patientId"
placeholder=
"病历号"
:filter-option=
"false"
@
search=
"getPatienList"
@
change=
"patienListChange"
>
<a-select-option
v-for=
"item in patientList"
:key=
"item.id"
:value=
"item.id"
>
{{
item
.
patientName
}}
</a-select-option>
</a-select>
</a-form-model-item>
</a-col>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"客户姓名"
>
<a-input
v-model=
"form.patientN
o
"
placeholder=
"请输入客户姓名"
allow-clear
/>
<a-input
v-model=
"form.patientN
ame
"
placeholder=
"请输入客户姓名"
allow-clear
/>
</a-form-model-item>
</a-col>
<a-col
:lg=
"6"
:sm=
"12"
>
...
...
@@ -19,7 +24,8 @@
</a-col>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"保险公司"
>
<a-select
v-model=
"form.payorCode"
placeholder=
"请选择保险公司"
allowClear
>
<a-select
v-model=
"form.payorCode"
placeholder=
"请选择保险公司"
@
change=
"_getPatientPolicyList"
>
<a-select-option
v-for=
"item in companyOptions"
:key=
"item.id"
:value=
"item.payorCode"
>
{{
item
.
longName
}}
</a-select-option>
...
...
@@ -28,14 +34,19 @@
</a-col>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"保单号码"
>
<a-input
v-model=
"form.patientNo"
placeholder=
"请输入保单号码"
allow-clear
/>
<a-select
v-model=
"form.policyNo"
placeholder=
"请选择保单号码"
allowClear
>
<a-select-option
v-for=
"item in PolicyOptions"
:key=
"item.id"
:value=
"item.policyNo"
>
{{
item
.
policyNo
}}
</a-select-option>
</a-select>
</a-form-model-item>
</a-col>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"主治医生"
>
<a-select
v-model=
"form.payorCode"
placeholder=
"请选择主治医生"
allowClear
>
<a-select-option
v-for=
"item in companyOptions"
:key=
"item.id"
:value=
"item.payorCode"
>
{{
item
.
longName
}}
<a-select
v-model=
"form.doctorCode"
placeholder=
"请选择主治医生"
showSearch
:filter-option=
"filterOption"
optionFilterProp=
"label"
>
<a-select-option
v-for=
"item in doctorOptions"
:key=
"item.doctorCode"
:value=
"item.doctorCode"
:label=
"item.doctorDesc+item.doctorCode"
>
{{
item
.
doctorDesc
}}
</a-select-option>
</a-select>
</a-form-model-item>
...
...
@@ -43,20 +54,20 @@
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"预授权项目"
>
<a-select
v-model=
"form.authProject"
placeholder=
"请选择预授权项目"
allowClear
>
<a-select-option
v-for=
"(item) in ProjectList"
:key=
"item.id"
:value=
"item.
descCh
"
>
{{
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-form-model-item>
</a-col>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"预计治疗时间"
>
<a-date-picker
allow-clear
v-model=
"form.
firstEnrollmentTim
e"
placeholder=
"请选择预计治疗时间"
value-format=
"YYYY-MM-DD 00:00:00"
/>
<a-date-picker
allow-clear
v-model=
"form.
authorDat
e"
placeholder=
"请选择预计治疗时间"
value-format=
"YYYY-MM-DD 00:00:00"
/>
</a-form-model-item>
</a-col>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"预计治疗费用"
>
<div
class=
"flex input-div"
>
<a-input
v-model=
"form.
patientNo"
placeholder=
"请输入费用"
type=
"number
"
/>
<a-select
v-model=
"form.auth
Project"
style=
"width:85
px;"
>
<a-input
v-model=
"form.
authorAmount"
placeholder=
"请输入费用"
type=
"number"
:min=
"0
"
/>
<a-select
v-model=
"form.auth
orAmountUnit"
style=
"width:90
px;"
>
<a-select-option
v-for=
"(item) in MoneyUnitOptions"
:key=
"item.value"
:value=
"item.value"
>
{{
item
.
name
}}
</a-select-option>
</a-select>
</div>
...
...
@@ -64,36 +75,35 @@
</a-col>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"初诊日期"
>
<a-date-picker
allow-clear
v-model=
"form.first
EnrollmentTim
e"
placeholder=
"请选择初诊日期"
value-format=
"YYYY-MM-DD 00:00:00"
/>
<a-date-picker
allow-clear
v-model=
"form.first
VisitDat
e"
placeholder=
"请选择初诊日期"
value-format=
"YYYY-MM-DD 00:00:00"
/>
</a-form-model-item>
</a-col>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"治疗目的"
>
<a-select
v-model=
"form.
authProject
"
placeholder=
"请选择治疗目的"
>
<a-select-option
value=
"1"
>
疾病
</a-select-option>
<a-select-option
value=
"2"
>
事故
</a-select-option>
<a-select
v-model=
"form.
purpose
"
placeholder=
"请选择治疗目的"
>
<a-select-option
value=
"
0
1"
>
疾病
</a-select-option>
<a-select-option
value=
"
0
2"
>
事故
</a-select-option>
</a-select>
</a-form-model-item>
</a-col>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"治疗方案"
>
<a-select
v-model=
"form.authProject"
placeholder=
"请选择治疗方案"
>
<a-select-option
value=
"1"
>
疾病
</a-select-option>
<a-select-option
value=
"2"
>
事故
</a-select-option>
<a-select
v-model=
"form.treatmentPlan"
placeholder=
"请选择治疗方案"
>
<a-select-option
v-for=
"(item,i) in treatmentPlanList"
:key=
"i"
:value=
"item.refcd"
>
{{
item
.
descCh
}}
</a-select-option>
</a-select>
</a-form-model-item>
</a-col>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"诊断"
>
<a-input
v-model=
"form.
patientNo
"
placeholder=
"请输入诊断"
allow-clear
/>
<a-input
v-model=
"form.
diagnosis
"
placeholder=
"请输入诊断"
allow-clear
/>
</a-form-model-item>
</a-col>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"病历资料"
>
<a-upload
name=
"file"
:multiple=
"false"
:showUploadList=
"true"
:fileList=
"form.
bingli
"
:fileList=
"form.
medicalRecord
"
:customRequest=
"(file)=>uploadFile(file, 1)"
:beforeUpload=
"
beforeUpload
"
:beforeUpload=
"
()=>beforeUpload(1)
"
:remove=
"(file)=>removeFile(file, 1)"
>
<a-button
type=
"primary"
>
<Icon
name=
"ssiupload"
:size=
"18"
/>
上传病历
</a-button>
</a-upload>
...
...
@@ -102,33 +112,34 @@
</a-row>
<!--费用明细-->
<a-row>
<FeeDetail
:ProjectList=
"ProjectList"
/>
<FeeDetail
:ProjectList=
"ProjectList"
@
authorizeItemVoListChange=
"authorizeItemVoListChange"
/>
</a-row>
<a-row
:gutter=
"30"
class=
"footer-body"
>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"申请状态"
>
<a-select
v-model=
"form.auth
Project
"
placeholder=
"请选择申请状态"
>
<a-select
v-model=
"form.auth
orStatus
"
placeholder=
"请选择申请状态"
>
<a-select-option
v-for=
"(item) in ApplyStatusOptions"
:key=
"item.value"
:value=
"item.value"
>
{{
item
.
name
}}
</a-select-option>
</a-select>
</a-form-model-item>
</a-col>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"批准次数/金额"
>
<a-input
v-model=
"form.
patientNo
"
placeholder=
"请输入批准次数/金额"
allow-clear
/>
<a-input
v-model=
"form.
approvalAmount
"
placeholder=
"请输入批准次数/金额"
allow-clear
/>
</a-form-model-item>
</a-col>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"拒绝原因"
>
<a-select
v-model=
"form.
authProject
"
placeholder=
"请选择拒绝原因"
>
<a-select-option
v-for=
"(item,i) in
ProjectList
"
:key=
"i"
:value=
"item.refcd"
>
{{
item
.
descCh
}}
</a-select-option>
<a-select
v-model=
"form.
rejectReason
"
placeholder=
"请选择拒绝原因"
>
<a-select-option
v-for=
"(item,i) in
rejectReason
"
:key=
"i"
:value=
"item.refcd"
>
{{
item
.
descCh
}}
</a-select-option>
</a-select>
</a-form-model-item>
</a-col>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"补充材料"
>
<a-upload
name=
"file"
:multiple=
"false"
:showUploadList=
"true"
:fileList=
"form.supplementalResult
Url
"
:fileList=
"form.supplementalResult"
:customRequest=
"(file)=>uploadFile(file, 2)"
:beforeUpload=
"()=>beforeUpload(2)"
:remove=
"(file)=>removeFile(file, 2)"
>
<a-button
type=
"primary"
>
<Icon
name=
"ssiupload"
:size=
"18"
/>
上传材料
</a-button>
</a-upload>
...
...
@@ -138,7 +149,7 @@
<a-row>
<a-col
:lg=
"24"
:sm=
"12"
class=
"none-label"
>
<a-form-model-item
label=
"button"
>
<a-button
type=
"primary"
@
click=
"saveEvt"
>
<a-button
type=
"primary"
@
click=
"saveEvt"
:loading=
"loading"
>
<Icon
name=
"ssibaocun"
:size=
"14"
/>
保存
</a-button>
</a-form-model-item>
...
...
@@ -151,34 +162,125 @@
<
script
>
import
{
MoneyUnitOptions
,
ApplyStatusOptions
}
from
'
@/utils/utilsdictOptions
'
;
import
FeeDetail
from
'
./components/feeDetail.vue
'
;
import
debounce
from
'
lodash/debounce
'
;
import
moment
from
'
moment
'
;
import
{
mapState
}
from
"
vuex
"
export
default
{
data
(){
this
.
lastFetchId
=
0
;
this
.
getPatienList
=
debounce
(
this
.
getPatienList
,
800
);
return
{
loading
:
false
,
MoneyUnitOptions
,
ApplyStatusOptions
,
form
:
{
bingli
:
[],
supplementalResultUrl
:
[],
//补充材料
mrnNo
:
''
,
payorCode
:
''
,
policyNo
:
''
,
firstEnrollmentTime
:
''
,
authorAmountUnit
:
'
01
'
,
medicalRecord
:
[],
//病历资料
supplementalResult
:
[],
//补充材料
authorizeItemVoList
:
[],
//预授权费用数据
},
fetching
:
false
,
patientList
:
[],
//远程搜到的客户信息
companyOptions
:
[],
//保险公司
PolicyOptions
:
[],
//保单号码
doctorOptions
:
[],
//医生列表
ProjectList
:
[],
//预授权项目
rejectReason
:
[],
//拒绝原因
treatmentPlanList
:
[],
//治疗方案
}
},
components
:
{
FeeDetail
,
},
computed
:
{
...
mapState
({
userInfo
:
(
state
)
=>
state
.
common
.
userInfo
})
},
created
(){
this
.
_getCompanyOptions
();
this
.
getRefcdByRefgrp
();
this
.
_getDoctorListNoPage
();
//获取看诊医生下拉选项
},
methods
:
{
init
(){
this
.
form
=
{
payorCode
:
''
,
policyNo
:
''
,
firstEnrollmentTime
:
''
,
authorAmountUnit
:
'
01
'
,
medicalRecord
:
[],
//病历资料
supplementalResult
:
[],
//补充材料
authorizeItemVoList
:
[],
//预授权费用数据
}
},
filterOption
(
val
,
option
){
let
item
=
option
.
componentOptions
.
propsData
;
//propsData里面可以可以拿到lebel和value的值
return
item
.
label
.
toLowerCase
().
indexOf
(
val
.
toLowerCase
())
>=
0
},
//预授权费用数据变更
authorizeItemVoListChange
(
data
){
this
.
form
.
authorizeItemVoList
=
data
;
},
// 获取看诊医生下拉选项
_getDoctorListNoPage
(){
this
.
$apis
.
GETDOCTORlISTNOPAGE
({
"
providerId
"
:
this
.
userInfo
.
providerId
}).
then
((
res
)
=>
{
if
(
res
.
returnCode
===
"
0000
"
)
{
this
.
doctorOptions
=
res
.
content
||
[];
}
else
{
this
.
$message
.
success
(
res
.
returnMsg
);
}
});
},
getPatienList
(
value
){
this
.
lastFetchId
+=
1
;
this
.
fetching
=
true
;
const
fetchId
=
this
.
lastFetchId
;
this
.
$apis
.
PATIENTLISTNOPAGE
({
mrnNo
:
value
})
.
then
((
res
)
=>
{
if
(
fetchId
!==
this
.
lastFetchId
)
{
return
;
}
if
(
res
.
returnCode
==
'
0000
'
){
this
.
patientList
=
res
.
content
||
[];
}
this
.
fetching
=
false
;
})
},
patienListChange
(){
this
.
form
.
payorCode
=
""
;
this
.
form
.
policyNo
=
""
;
let
itemObj
=
this
.
patientList
.
find
((
item
)
=>
{
return
this
.
form
.
patientId
==
item
.
id
;
})
||
{};
this
.
form
.
mrnNo
=
itemObj
.
mrnNo
;
this
.
form
.
patientName
=
itemObj
.
patientName
;
this
.
form
.
firstEnrollmentTime
=
itemObj
.
firstEnrollmentTime
?
moment
(
itemObj
.
firstEnrollmentTime
).
format
(
'
YYYY-MM-DD 00:00:00
'
):
''
;
this
.
_getCompanyOptions
()
},
// 获取保险公司下拉选项
_getCompanyOptions
()
{
this
.
$apis
.
GETCOMPANYOPTIONS
().
then
((
res
)
=>
{
this
.
$apis
.
PATIENTPAYORLIST
({
patientId
:
this
.
form
.
patientId
}).
then
((
res
)
=>
{
this
.
companyOptions
=
res
.
content
||
[];
});
},
// 获取保单号码下拉选项
_getPatientPolicyList
()
{
this
.
$apis
.
PATIENTPOLICYLIST
({
patientId
:
this
.
form
.
patientId
,
payorCode
:
this
.
form
.
payorId
,
}).
then
((
res
)
=>
{
this
.
PolicyOptions
=
res
.
content
||
[];
});
},
// 获取码表
getRefcdByRefgrp
()
{
//预授权项目
...
...
@@ -195,10 +297,18 @@ export default{
}).
then
((
res
)
=>
{
this
.
rejectReason
=
res
.
content
||
[];
});
//治疗方案
this
.
$apis
.
GETREFCDBYREFGRP
({
modid
:
"
CI
"
,
refgrp
:
"
TREATMENT_PLAN
"
}).
then
((
res
)
=>
{
this
.
treatmentPlanList
=
res
.
content
||
[];
});
},
//上传之前
beforeUpload
(){
if
(
this
.
form
.
bingli
.
length
>=
5
){
beforeUpload
(
type
){
let
len
=
type
==
1
?
this
.
form
.
medicalRecord
.
length
:
this
.
form
.
supplementalResult
.
length
;
if
(
len
>=
5
){
this
.
$message
.
warning
(
'
不能超过5个文件
'
);
return
false
;
}
...
...
@@ -209,15 +319,21 @@ export default{
* **/
removeFile
(
file
,
type
){
if
(
type
==
2
){
this
.
form
.
supplementalResultUrl
=
[];
let
index
;
this
.
form
.
supplementalResult
.
forEach
((
item
,
i
)
=>
{
if
(
item
.
uid
==
file
.
uid
)
{
index
=
i
;
}
});
this
.
form
.
supplementalResult
.
splice
(
index
,
1
);
}
else
{
let
index
;
this
.
form
.
bingli
.
forEach
((
item
,
i
)
=>
{
this
.
form
.
medicalRecord
.
forEach
((
item
,
i
)
=>
{
if
(
item
.
uid
==
file
.
uid
)
{
index
=
i
;
}
});
this
.
form
.
bingli
.
splice
(
index
,
1
);
this
.
form
.
medicalRecord
.
splice
(
index
,
1
);
}
return
true
;
},
...
...
@@ -237,16 +353,28 @@ export default{
url
:
res
.
url
,
}
if
(
type
==
2
){
this
.
form
.
supplementalResult
Url
=
[
tmp
]
;
this
.
form
.
supplementalResult
.
push
(
tmp
)
;
}
else
{
this
.
form
.
bingli
.
push
(
tmp
);
this
.
form
.
medicalRecord
.
push
(
tmp
);
}
this
.
$forceUpdate
();
})
},
//保存
saveEvt
(){
this
.
loading
=
true
;
this
.
$apis
.
AUTHORIZECREATE
({
...
this
.
form
})
.
then
((
res
)
=>
{
this
.
loading
=
false
;
if
(
res
.
returnCode
==
'
0000
'
){
this
.
$message
.
success
(
'
保存成功
'
);
this
.
init
();
}
else
{
this
.
$message
.
warning
(
res
.
returnMsg
);
}
})
}
}
}
...
...
src/views/pre-auth/components/authorizeVoList.vue
View file @
c400445b
...
...
@@ -2,34 +2,154 @@
<!--预授权费用数据-->
<a-modal
title=
"预授权费用数据"
:visible=
"dialogShow1"
width=
"900px"
:maskClosable=
"false"
:footer=
"null"
@
cancel=
"dialogShow1 = false"
>
<a-table
:columns=
"columns"
:data-source=
"dataList"
:pagination=
"false"
>
<template
slot=
"title"
>
<div
class=
"flex header-div"
>
<div
class=
"flex left-div"
>
<div
class=
"item"
>
<span>
批准次数/金额:
</span>
<span
class=
"val money"
>
{{
detailObj
.
approvalAmount
}}
</span>
</div>
<div
class=
"item"
>
<span>
是否已使用:
</span>
<span
class=
"val"
>
{{
detailObj
.
isUse
}}
</span>
</div>
</div>
<a-button
type=
"primary"
@
click=
"editEvt(
{})">
<Icon
name=
"ssiadd"
:size=
"14"
/>
添 加
</a-button>
</div>
</
template
>
<
template
slot=
"userTime"
slot-scope=
"text"
>
{{
text
?
moment
(
text
).
format
(
'
YYYY-MM-DD
'
):
''
}}
</
template
>
<
template
slot=
"operation"
slot-scope=
"text, record, index"
>
<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>
</
template
>
</a-table>
<a-modal
title=
"编辑"
:visible=
"dialogShow2"
width=
"60%"
:maskClosable=
"false"
okText=
"确定"
cancelText=
"取消"
@
ok=
"handleEditOK"
@
cancel=
"dialogShow2 = false"
>
<a-form-model
ref=
"editForm"
:model=
"editFormObj"
:rules=
"editRules"
>
<a-row
:gutter=
"30"
>
<a-col
:lg=
"12"
:xs=
"24"
>
<a-form-model-item
label=
"次数/金额"
prop=
"userd"
>
<a-input
type=
"number"
v-model.trim=
"editFormObj.userd"
placeholder=
"次数/金额"
/>
</a-form-model-item>
</a-col>
<a-col
:lg=
"12"
:xs=
"24"
>
<a-form-model-item
label=
"日期"
prop=
"userTime"
>
<a-date-picker
allow-clear
v-model=
"editFormObj.userTime"
placeholder=
"请选择日期"
value-format=
"YYYY-MM-DD 00:00:00"
/>
</a-form-model-item>
</a-col>
<a-col
:lg=
"12"
:xs=
"24"
>
<a-form-model-item
label=
"剩余次数/金额"
prop=
"surplus"
>
<a-input
type=
"number"
v-model.trim=
"editFormObj.surplus"
placeholder=
"剩余次数/金额"
/>
</a-form-model-item>
</a-col>
</a-row>
</a-form-model>
</a-modal>
</a-modal>
</template>
<
script
>
import
moment
from
'
moment
'
;
export
default
{
data
(){
const
columns
=
[
{
title
:
"
次数/金额
"
,
dataIndex
:
"
userd
"
,
align
:
'
center
'
},
{
title
:
"
日期
"
,
dataIndex
:
"
userTime
"
,
scopedSlots
:
{
customRender
:
"
userTime
"
},
align
:
'
center
'
},
{
title
:
"
剩余次数/金额
"
,
dataIndex
:
"
surplus
"
,
align
:
'
center
'
},
];
return
{
columns
,
dialogShow1
:
false
,
dialogShow2
:
false
,
detailObj
:
{},
dataList
:
[],
editFormObj
:
{
userd
:
''
,
userTime
:
''
,
surplus
:
''
},
editRules
:
{
userd
:
[{
required
:
true
,
message
:
"
请输入
"
,
trigger
:
"
blur
"
}],
userTime
:
[{
required
:
true
,
message
:
"
请选择
"
,
trigger
:
"
change
"
}],
surplus
:
[{
required
:
true
,
message
:
"
请输入
"
,
trigger
:
"
blur
"
}],
},
}
},
created
(){
},
methods
:
{
moment
,
showModal1
(
data
){
this
.
dialogShow1
=
true
;
this
.
dataList
=
data
;
this
.
detailObj
=
data
||
{};
this
.
getData
();
},
getData
(){
this
.
$apis
.
AUTHORIZEUSELIST
({
authorizeId
:
this
.
detailObj
.
id
})
.
then
((
res
)
=>
{
if
(
res
.
returnCode
==
"
0000
"
)
{
this
.
dataList
=
res
.
content
||
[];
}
else
{
this
.
$message
.
error
(
res
.
returnMsg
);
}
});
},
editEvt
(
record
){
this
.
editFormObj
=
{
userd
:
record
.
userd
||
""
,
userTime
:
record
.
userTime
?
moment
(
record
.
userTime
).
format
(
'
YYYY-MM-DD 00:00:00
'
):
''
,
surplus
:
record
.
surplus
};
this
.
dialogShow2
=
true
;
},
//编辑保存
handleEditOK
()
{
this
.
$refs
.
editForm
.
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
$apis
.
AUTHORIZEUSEADD
({
authorizeId
:
this
.
detailObj
.
id
,
...
this
.
editFormObj
})
.
then
((
res
)
=>
{
if
(
res
.
returnCode
==
"
0000
"
)
{
this
.
dialogShow2
=
false
;
this
.
getData
();
}
else
{
this
.
$message
.
error
(
res
.
returnMsg
);
}
});
}
});
},
}
}
</
script
>
<
style
lang=
"less"
scoped
>
.header-div{
font-weight: bold;
justify-content: space-between;
.item{
&:nth-child(2){
margin-left: 50px;
}
.val{
margin-left: 8px;
}
.money{
color: red;
}
}
}
</
style
>
\ No newline at end of file
src/views/pre-auth/components/feeDetail.vue
View file @
c400445b
...
...
@@ -132,6 +132,7 @@ export default{
this
.
dataList
.
splice
(
this
.
chooseIdex
,
1
,
{...
this
.
editFormObj
});
}
this
.
dialogShow
=
false
;
this
.
$emit
(
'
authorizeItemVoListChange
'
,
this
.
dataList
);
}
});
},
...
...
src/views/pre-auth/index.vue
View file @
c400445b
...
...
@@ -20,7 +20,7 @@
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"申请项目"
>
<a-select
v-model=
"form.authProject"
placeholder=
"请选择项目"
allowClear
>
<a-select-option
v-for=
"(item) in ProjectList"
:key=
"item.id"
:value=
"item.
descCh
"
>
{{
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-form-model-item>
</a-col>
...
...
@@ -53,13 +53,19 @@
</a-row>
</a-form-model>
<a-table
:columns=
"columns"
:data-source=
"dataList"
:scroll=
"
{ x: true }" :pagination="false">
<template
slot=
"authorStatus"
slot-scope=
"text"
>
{{
text
|
formatApplyStatus
}}
</
template
>
<
template
slot=
"authProject"
slot-scope=
"text"
>
{{
formatProject
(
text
)
}}
</
template
>
<
template
slot=
"authorizeItemVoList"
slot-scope=
"text, record"
>
<a-button
type=
"link"
@
click.stop=
"seeEvt(record)"
>
查看
</a-button>
</
template
>
<
template
slot=
"operation"
slot-scope=
"text, record, index"
>
<a-button
type=
"link"
@
click.stop=
"editEvt(record)"
>
修改
</a-button>
<a-button
type=
"link"
class=
"success"
@
click.stop=
"addEvt(record)"
>
新增
</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)"
>
删除
</a-button>
</
template
>
</a-table>
<!--分页-->
...
...
@@ -73,7 +79,7 @@
import
BurtPagination
from
"
@/components/CUSTOMER/pagation
"
;
import
authorizeVoList
from
'
./components/authorizeVoList
'
;
import
moment
from
'
moment
'
import
{
ClaimsStatusOptions
,
ApplyStatusOptions
}
from
'
@/utils/utilsdictOptions
'
;
import
{
ApplyStatusOptions
}
from
'
@/utils/utilsdictOptions
'
;
import
mixins
from
'
@/mixins/index
'
;
export
default
{
data
(){
...
...
@@ -81,20 +87,19 @@ export default{
{
title
:
"
病历号
"
,
dataIndex
:
"
mrnNo
"
,
key
:
"
receiptNo
"
,
align
:
'
center
'
,
width
:
136
},
{
title
:
"
客户姓名
"
,
dataIndex
:
"
patientName
"
,
key
:
"
patientNo
"
,
align
:
'
center
'
,
width
:
136
},
{
title
:
"
保险公司
"
,
dataIndex
:
"
payorName
"
,
width
:
110
},
{
title
:
"
申请项目
"
,
dataIndex
:
"
authProject
"
,
width
:
100
},
{
title
:
"
申请项目
"
,
dataIndex
:
"
authProject
"
,
width
:
100
,
scopedSlots
:
{
customRender
:
"
authProject
"
}
},
{
title
:
"
申请金额
"
,
dataIndex
:
"
authorAmount
"
,
width
:
100
,
align
:
'
center
'
},
{
title
:
"
申请状态
"
,
dataIndex
:
"
authorStatus
"
,
width
:
100
,
align
:
'
center
'
},
{
title
:
"
申请状态
"
,
dataIndex
:
"
authorStatus
"
,
width
:
100
,
align
:
'
center
'
,
scopedSlots
:
{
customRender
:
"
authorStatus
"
}
},
{
title
:
"
申请日期
"
,
dataIndex
:
"
paidAmount
"
,
width
:
100
,
align
:
'
center
'
},
{
title
:
"
批准金额
"
,
dataIndex
:
"
approvalAmount
"
,
width
:
100
,
align
:
'
center
'
},
{
title
:
"
批准天数
"
,
dataIndex
:
"
authorDays
"
,
width
:
110
,
align
:
'
center
'
},
{
title
:
"
不予批准原因
"
,
dataIndex
:
"
rejectReason
"
,
width
:
120
,
align
:
'
center
'
},
{
title
:
"
预授权使用情况
"
,
dataIndex
:
"
authorizeItemVoList
"
,
width
:
1
2
0
,
align
:
'
center
'
,
scopedSlots
:
{
customRender
:
"
authorizeItemVoList
"
}
},
{
title
:
"
不予批准原因
"
,
dataIndex
:
"
rejectReason
"
,
width
:
120
,
align
:
'
center
'
,
scopedSlots
:
{
customRender
:
"
authorStatus
"
}
},
{
title
:
"
预授权使用情况
"
,
dataIndex
:
"
authorizeItemVoList
"
,
width
:
1
3
0
,
align
:
'
center
'
,
scopedSlots
:
{
customRender
:
"
authorizeItemVoList
"
}
},
{
title
:
"
备注
"
,
dataIndex
:
"
remark
"
,
width
:
100
,
align
:
'
center
'
},
{
title
:
"
操作
"
,
dataIndex
:
"
operation
"
,
scopedSlots
:
{
customRender
:
"
operation
"
},
fixed
:
"
right
"
,
width
:
"
200px
"
,
align
:
'
center
'
},
];
return
{
columns
,
ClaimsStatusOptions
,
ApplyStatusOptions
,
form
:
{
dateRange
:
[],
...
...
@@ -102,7 +107,7 @@ export default{
authProject
:
''
,
authorStatus
:
''
,
mrnNo
:
''
,
patientName
:
''
patientName
:
''
,
},
companyOptions
:
[],
//保险公司
ProjectList
:
[],
//预授权项目
...
...
@@ -125,6 +130,15 @@ export default{
},
methods
:
{
moment
,
formatProject
(
val
){
if
(
!
val
)
{
return
;
}
const
item
=
this
.
ProjectList
.
find
((
item
)
=>
{
return
item
.
refcd
==
val
;
});
return
item
?
item
.
descCh
:
""
;
},
//新建预授权
addPreAuth
(){
this
.
$router
.
push
({
...
...
@@ -146,7 +160,7 @@ export default{
//预授权项目
this
.
$apis
.
GETREFCDBYREFGRP
({
modid
:
"
CI
"
,
refgrp
:
"
预授权项目
"
refgrp
:
"
AUTH_PROJECT
"
}).
then
((
res
)
=>
{
this
.
ProjectList
=
res
.
content
||
[];
});
...
...
@@ -177,11 +191,33 @@ export default{
},
//查看预授权使用数据
seeEvt
(
record
=
{}){
let
data
=
record
.
authorizeItemVoList
||
[];
this
.
$refs
.
authData
.
showModal1
(
data
);
this
.
$refs
.
authData
.
showModal1
(
record
);
},
addEvt
(){
},
//删除记录
delRecord
(
index
)
{
this
.
$modal
.
confirm
({
title
:
"
删除
"
,
content
:
"
确定删除该条记录?
"
,
okText
:
"
确认
"
,
cancelText
:
"
取消
"
,
onOk
:
()
=>
{
this
.
$apis
.
AUTHORIZEDELETE
({
id
:
this
.
dataList
[
index
].
id
,
})
.
then
((
res
)
=>
{
if
(
res
.
returnCode
==
"
0000
"
)
{
this
.
$message
.
success
(
"
删除成功
"
);
this
.
dataList
.
splice
(
index
,
1
);
}
else
{
this
.
$message
.
error
(
res
.
returnMsg
);
}
});
},
onCancel
:
()
=>
{},
});
}
}
}
...
...
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