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
28d55d42
Commit
28d55d42
authored
3 years ago
by
吴婷慧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ECCS-1459测试问题修改
parent
556d0dca
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
129 additions
and
56 deletions
+129
-56
welfare.js
src/api/apis_moudles/welfare.js
+2
-1
welfare.js
src/api/funcs_modules/welfare.js
+6
-0
index.vue
src/views/customer/edit/index.vue
+8
-23
index.vue
src/views/customer/info/index.vue
+25
-5
company.vue
src/views/info/company.vue
+16
-16
index.vue
src/views/welfare/info/components/benefits/index.vue
+68
-10
index.vue
src/views/welfare/info/components/coverages/index.vue
+4
-1
No files found.
src/api/apis_moudles/welfare.js
View file @
28d55d42
...
...
@@ -11,9 +11,10 @@ export default {
conditionList
:
"
/backstage/auth/conditionList
"
,
addCondition
:
"
/backstage/auth/conditionCreate
"
,
editCondition
:
"
/backstage/auth/conditionEdit
"
,
benefitList
:
"
/backstage/auth/benefitList
"
,
benefitList
:
"
/backstage/auth/benefitList
Show
"
,
addBenefit
:
"
/backstage/auth/createBenefit
"
,
editBenefit
:
"
/backstage/auth/benefitEdit
"
,
getFrequencyCode
:
"
/backstage/auth/frequencyList
"
,
getLimitCode
:
"
/backstage/auth/limitList
"
,
remainingQuotaSet
:
"
/backstage/auth/remainingQuotaSet
"
// 修改剩余金额
};
This diff is collapsed.
Click to expand it.
src/api/funcs_modules/welfare.js
View file @
28d55d42
...
...
@@ -66,6 +66,11 @@ const GETLIMITCODE = (data) => {
return
req
.
post
(
apis
.
getLimitCode
,
data
);
};
// 修改剩余金额
const
SETREMAININGQUOTA
=
(
data
)
=>
{
return
req
.
post
(
apis
.
remainingQuotaSet
,
data
);
};
// 对象数组
export
default
{
GETBENEGITTYPE
,
...
...
@@ -84,4 +89,5 @@ export default {
EDITCOVERAGEDATA
,
GETFREQUENCYCODE
,
GETLIMITCODE
,
SETREMAININGQUOTA
};
This diff is collapsed.
Click to expand it.
src/views/customer/edit/index.vue
View file @
28d55d42
...
...
@@ -283,6 +283,14 @@ export default {
this
.
$apis
.
GETCUSTOMERDETAIL
(
data
).
then
((
res
)
=>
{
if
(
res
.
returnCode
===
"
0000
"
)
{
let
data
=
res
.
content
||
{};
// type === '2'说明是新增保单,需要把客户信息清空
if
(
type
===
'
2
'
)
{
const
{
mrnNo
,
idNo
,
patientName
,
birthday
,
sex
}
=
data
this
.
form
=
{
...
this
.
form
,
mrnNo
,
idNo
,
patientName
,
birthday
,
sex
}
this
.
medCardCopeFiles
=
[];
this
.
idCardCopeFiles
=
[];
return
true
}
this
.
_getCorporateCode
(
data
.
payorId
);
this
.
_getPlanCode
(
data
.
corpId
);
const
medCardCopeFiles
=
data
.
medCardCopeFiles
||
[];
...
...
@@ -301,29 +309,6 @@ export default {
name
:
item
.
fileName
,
})
})
// type === '2'说明是新增保单,需要把客户信息清空
if
(
type
===
'
2
'
)
{
data
=
{
...
data
,
payorId
:
undefined
,
corpName
:
''
,
idType
:
undefined
,
policyNo
:
''
,
firstEnrollmentTime
:
''
,
startDate
:
''
,
cardNo
:
''
,
policyDircetArea
:
undefined
,
waitingPeriod
:
'
N
'
,
isUndertakeAnamnesis
:
"
N
"
,
endDate
:
''
,
planName
:
undefined
,
remark
:
''
,
medCardCopeFiles
:
[],
idCardCopeFiles
:
[],
// 身份证复印件
}
this
.
medCardCopeFiles
=
[];
this
.
idCardCopeFiles
=
[];
}
this
.
form
=
data
;
}
// this.dataList = (res.content && res.content.list) || [];
...
...
This diff is collapsed.
Click to expand it.
src/views/customer/info/index.vue
View file @
28d55d42
...
...
@@ -56,7 +56,7 @@
<span>
{{
text
|
formatSex
}}
</span>
</
template
>
<
template
slot=
"operation"
slot-scope=
"record"
>
<a-button
type=
"link"
@
click.stop=
"changeDataStatus(record)"
>
修改
</a-button>
<a-button
type=
"link"
v-if=
"!record.isExpired"
@
click.stop=
"changeDataStatus(record)"
>
修改
</a-button>
<a-button
type=
"link"
@
click.stop=
"printClaimPdf(record)"
>
打印理赔申请书
</a-button>
<a-button
type=
"link"
@
click.stop=
"changeDataStatus(record, '2')"
>
新增保单
</a-button>
<!--
<a-button
type=
"link"
class=
"success"
>
新增
</a-button>
-->
...
...
@@ -86,9 +86,21 @@ export default {
{
title
:
"
出生日期
"
,
dataIndex
:
"
birthday
"
,
width
:
170
,
customRender
:
dateFormat
},
{
title
:
"
性别
"
,
dataIndex
:
"
sex
"
,
width
:
80
,
scopedSlots
:
{
customRender
:
"
sex
"
}
},
{
title
:
"
保险公司
"
,
dataIndex
:
"
payorName
"
,
width
:
180
},
{
title
:
"
保单号码
"
,
dataIndex
:
"
policyNo
"
,
width
:
190
},
{
title
:
"
保单生效日期
"
,
dataIndex
:
"
startDate
"
,
width
:
170
,
customRender
:
dateFormat
},
{
title
:
"
保单终止日期
"
,
dataIndex
:
"
endDate
"
,
width
:
170
,
customRender
:
dateFormat
},
{
title
:
"
保险卡号
"
,
dataIndex
:
"
cardNo
"
,
width
:
190
},
{
title
:
"
保单生效日期
"
,
dataIndex
:
"
startDate
"
,
width
:
170
,
customRender
:
(
val
,
row
)
=>
{
const
formatDate
=
dateFormat
(
val
)
if
(
row
.
isExpired
)
{
return
<
span
class
=
"
red-text
"
>
{
formatDate
}
<
/span
>
}
return
formatDate
;
}},
{
title
:
"
保单终止日期
"
,
dataIndex
:
"
endDate
"
,
width
:
170
,
customRender
:
(
val
,
row
)
=>
{
const
formatDate
=
dateFormat
(
val
)
if
(
row
.
isExpired
)
{
return
<
span
class
=
"
red-text
"
>
{
formatDate
}
<
/span
>
}
return
formatDate
;
}},
{
title
:
"
操作
"
,
key
:
"
operation
"
,
width
:
"
270px
"
,
fixed
:
"
right
"
,
scopedSlots
:
{
customRender
:
"
operation
"
},
align
:
'
center
'
},
];
return
{
...
...
@@ -198,8 +210,13 @@ export default {
...
this
.
pager
,
};
this
.
$apis
.
GETCUSTOMERLIST
(
data
).
then
((
res
)
=>
{
this
.
dataList
=
(
res
.
content
&&
res
.
content
.
list
)
||
[];
this
.
pager
.
total
=
(
res
.
content
&&
res
.
content
.
total
)
||
0
;
const
data
=
(
res
.
content
&&
res
.
content
.
list
)
||
[];
data
.
forEach
(
item
=>
{
item
.
isExpired
=
moment
(
item
.
endDate
).
valueOf
()
<
moment
(
new
Date
()).
valueOf
()
});
console
.
log
(
data
)
this
.
dataList
=
data
;
});
},
},
...
...
@@ -215,4 +232,7 @@ export default {
.ant-btn .icon-class {
.mg-r(10);
}
.red-text{
color: red;
}
</
style
>
This diff is collapsed.
Click to expand it.
src/views/info/company.vue
View file @
28d55d42
...
...
@@ -5,16 +5,11 @@
<a-button
type=
"primary"
@
click.stop=
"addCompany"
>
新建保险公司
</a-button>
</div>
<a-table
:columns=
"columns"
:data-source=
"dataList"
:scroll=
"
{ x: 'max-content' }" :pagination="false">
<div
v-for=
"col in columns"
:slot=
"col.dataIndex"
slot-scope=
"text, record, index"
:key=
"col.dataIndex"
>
<template
v-if=
"col.dataIndex == 'operation'"
>
<template
slot=
'operation'
slot-scope=
"record"
>
<a-button
type=
"link"
@
click.stop=
"editEvt(record)"
>
修改
</a-button>
<a-button
type=
"link"
class=
"success"
@
click.stop=
"detailEvt(record)"
>
查看
</a-button>
<a-button
type=
"link"
class=
"danger"
@
click.stop=
"delRecord(index)"
>
删除
</a-button>
</
template
>
<
template
v-else
>
<span>
{{
text
}}
</span>
</
template
>
</div>
</a-table>
<!--分页-->
<BurtPagination
:pagination=
"pagination"
@
pageChange=
"getData"
/>
...
...
@@ -62,18 +57,23 @@
<
script
>
import
BurtPagination
from
"
@/components/CUSTOMER/pagation
"
;
const
columns
=
[
{
title
:
"
序号
"
,
dataIndex
:
"
id
"
,
width
:
120
},
{
title
:
"
保险公司名称
"
,
dataIndex
:
"
longName
"
,
ellipsis
:
true
,
scopedSlots
:
{
customRender
:
"
longName
"
},
width
:
130
},
{
title
:
"
保险公司英文名
"
,
dataIndex
:
"
englishName
"
,
ellipsis
:
true
,
scopedSlots
:
{
customRender
:
"
englishName
"
},
width
:
105
},
{
title
:
"
联系电话
"
,
dataIndex
:
"
contactPhone
"
,
scopedSlots
:
{
customRender
:
"
contactPhone
"
},
width
:
125
},
{
title
:
"
联系地址
"
,
dataIndex
:
"
address
"
,
ellipsis
:
true
,
scopedSlots
:
{
customRender
:
"
address
"
},
width
:
180
},
{
title
:
"
Protal链接
"
,
dataIndex
:
"
portalUrl
"
,
ellipsis
:
true
,
scopedSlots
:
{
customRender
:
"
portalUrl
"
},
width
:
155
},
{
title
:
"
联系人
"
,
dataIndex
:
"
contactPerson
"
,
ellipsis
:
true
,
scopedSlots
:
{
customRender
:
"
contactPerson
"
},
width
:
100
},
{
title
:
"
操作
"
,
dataIndex
:
"
operation
"
,
scopedSlots
:
{
customRender
:
"
operation
"
},
fixed
:
"
right
"
,
width
:
"
200px
"
,
align
:
"
center
"
},
];
export
default
{
data
()
{
const
columns
=
[
{
title
:
"
序号
"
,
dataIndex
:
"
id
"
,
width
:
120
},
{
title
:
"
保险公司名称
"
,
dataIndex
:
"
longName
"
,
ellipsis
:
true
,
width
:
130
},
{
title
:
"
保险公司英文名
"
,
dataIndex
:
"
englishName
"
,
ellipsis
:
true
,
width
:
105
},
{
title
:
"
联系电话
"
,
dataIndex
:
"
contactPhone
"
,
width
:
125
,
customRender
:
(
val
)
=>
{
const
valArr
=
val
&&
val
.
split
(
/,|
\n
/ig
)
||
[];
const
valStr
=
valArr
.
join
(
'
<br />
'
)
return
<
span
domPropsInnerHTML
=
{
valStr
}
><
/span
>
}},
{
title
:
"
联系地址
"
,
dataIndex
:
"
address
"
,
ellipsis
:
true
,
width
:
180
},
{
title
:
"
Protal链接
"
,
dataIndex
:
"
portalUrl
"
,
ellipsis
:
true
,
width
:
155
},
{
title
:
"
联系人
"
,
dataIndex
:
"
contactPerson
"
,
ellipsis
:
true
,
width
:
100
},
{
title
:
"
操作
"
,
dataIndex
:
"
operation
"
,
scopedSlots
:
{
customRender
:
"
operation
"
},
fixed
:
"
right
"
,
width
:
"
200px
"
,
align
:
"
center
"
},
];
return
{
dialogShow
:
false
,
columns
,
...
...
This diff is collapsed.
Click to expand it.
src/views/welfare/info/components/benefits/index.vue
View file @
28d55d42
...
...
@@ -25,24 +25,43 @@
</a-table>
</div>
</div>
-->
<a-collapse
v-model=
"activeKeys"
expand-icon-position=
"right"
:bordered=
"false"
>
<
!-- <
a-collapse v-model="activeKeys" expand-icon-position="right" :bordered="false">
<a-collapse-panel v-for="item in benefitData" :key="item.benefitCode" :header="item.benefitCode + ' ' +item.benefitDesc">
<div>
<a-row class="policy_line" :gutter="10">
<a-col :span="6">事先授权:</a-col>
<a-col :span="6">等待期:{{ item.waitingPeriod }}</a-col>
<
!-- <
a-col :span="6">年限额:</a-col>
<a-col :span="6">赔付比例:</a-col>
-->
<a-col :span="6">年限额:</a-col>
<a-col :span="6">赔付比例:</a-col>
</a-row>
</div>
<condition :formData="{ ...item, conditionType: '01' }" />
</a-collapse-panel>
</a-collapse>
</a-collapse> -->
<a-row
v-for=
"(item, index) in benefitData"
:key=
"item.benefitCode"
class=
"policy_line"
:gutter=
"10"
>
<a-col
:span=
"12"
>
{{item.benefitCode + ' ' +item.benefitDesc}}
</a-col>
<a-col
:span=
"12"
class=
"border-r"
>
<a-row
:gutter=
"10"
>
<a-col
:span=
"12"
>
{{item.benefitConditionDesc}}
</a-col>
<a-col
:span=
"12"
class=
"border-r"
v-if=
"item.remainingQuota || item.remainingQuota === 0"
>
<a-row
v-if=
"item.isEditRemainingQuota"
>
<a-col
:span=
"14"
>
<a-input
v-model=
"remainingQuotaForm[item.benefitCode]"
placeholder=
"请输入剩余金额"
></a-input>
</a-col>
<a-col
:span=
"10"
>
<a-button
type=
"link"
@
click=
"saveRemainingQuota(item, index)"
>
保存
</a-button>
<a-button
type=
"link"
@
click=
"editRemainingQuota(item, index)"
>
取消
</a-button>
</a-col>
</a-row>
<p
v-else
@
dblclick=
"editRemainingQuota(item, index)"
title=
"双击可编辑剩余金额"
>
剩余{{item.remainingQuota}}元
</p>
</a-col>
</a-row>
</a-col>
</a-row>
</div>
</template>
<
script
>
import
condition
from
"
../condition
"
;
export
default
{
props
:
{
...
...
@@ -52,18 +71,53 @@ export default {
},
},
components
:
{
condition
,
},
data
()
{
return
{
benefitData
:
[],
activeKeys
:
""
,
remainingQuotaForm
:
{}
};
},
mounted
()
{
this
.
_getBenefitData
();
},
methods
:
{
// 编辑剩余金额的打开与取消
editRemainingQuota
(
data
,
index
)
{
const
val
=
data
.
isEditRemainingQuota
if
(
!
val
)
{
this
.
remainingQuotaForm
[
data
.
benefitCode
]
=
data
.
remainingQuota
;
}
this
.
$set
(
this
.
benefitData
[
index
],
'
isEditRemainingQuota
'
,
!
val
)
},
// 剩余金额保存
saveRemainingQuota
(
data
,
index
)
{
const
{
benefitCode
,
corpCode
,
coverageCode
,
patientId
,
payorCode
,
planCode
}
=
data
;
const
remainingQuota
=
this
.
remainingQuotaForm
[
benefitCode
]
if
(
!
remainingQuota
)
{
this
.
$message
.
error
(
'
剩余金额不能为空
'
)
return
false
;
}
if
(
!
/^
\d
+$|^
\d
*
\.\d
+$/g
.
test
(
remainingQuota
))
{
this
.
$message
.
error
(
'
剩余金额应该为数字
'
)
return
false
;
}
const
params
=
{
benefitCode
,
corpCode
,
coverageCode
,
patientId
,
payorCode
,
planCode
,
remainingQuota
,
quotaType
:
'
01
'
// 额度类型(01:福利额度 02:责任额度 03:计划额度)
}
this
.
$apis
.
SETREMAININGQUOTA
(
params
).
then
(
res
=>
{
if
(
res
.
returnCode
===
'
0000
'
)
{
this
.
$message
.
success
(
res
.
returnMsg
||
'
保存成功
'
)
this
.
editRemainingQuota
(
data
,
index
)
// 转换编辑状态
this
.
benefitData
[
index
].
remainingQuota
=
remainingQuota
// 直接赋值, 就不请求数据初始化了
}
else
{
this
.
$message
.
error
(
res
.
returnMsg
||
'
保存失败
'
)
}
})
},
_getBenefitData
()
{
const
{
corpCode
,
coverageCode
,
payorCode
,
planCode
}
=
this
.
formData
;
const
data
=
{
corpCode
,
coverageCode
,
payorCode
,
planCode
};
...
...
@@ -77,7 +131,7 @@ export default {
<
style
lang=
"less"
scoped
>
.benefits {
.pa(0,
20, 10, 2
0);
.pa(0,
0, 10,
0);
background-color: #fff;
.save-btn {
.mg-t(20);
...
...
@@ -88,10 +142,14 @@ export default {
}
}
.policy_line {
display: flex;
align-items: center;
.pa(0, 30, 0, 30);
line
-height: 60px;
// &:not(:last-child) {
min
-height: 60px;
line-height: 1.5;
border-bottom: 1px solid #f8fafb;
// }
.border-r{
border-right: 1px solid #f8fafb;
}
}
</
style
>
This diff is collapsed.
Click to expand it.
src/views/welfare/info/components/coverages/index.vue
View file @
28d55d42
...
...
@@ -29,7 +29,7 @@
<a-col
:span=
"6"
>
赔付比例:
</a-col>
</a-row>
</div>
<condition
:formData=
"
{ ...item, conditionType: '02' }" />
<condition
class=
"conditions"
:formData=
"
{ ...item, conditionType: '02' }" />
<benefits
:formData=
"item"
/>
</a-collapse-panel>
</a-collapse>
...
...
@@ -194,6 +194,9 @@ export default {
float: right;
}
}
.conditions{
.pa(0, 30, 0, 30)
}
.icon-class {
.mg-r(10);
}
...
...
This diff is collapsed.
Click to expand it.
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