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
3dfc41fc
Commit
3dfc41fc
authored
Jul 06, 2023
by
王安伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'func_eccs_2250' into test
parents
94db2c8f
14c447ce
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
400 additions
and
359 deletions
+400
-359
index.js
src/components/Antd/index.js
+64
-62
returnedMoney.vue
src/views/report/returnedMoney.vue
+202
-193
collectionDetail.vue
src/views/verification/collectionDetail.vue
+134
-104
No files found.
src/components/Antd/index.js
View file @
3dfc41fc
import
Vue
from
"
vue
"
;
import
{
Row
,
Col
,
menu
,
dropdown
,
Table
,
message
,
pagination
,
FormModel
,
Select
,
DatePicker
,
Input
,
InputNumber
,
Radio
,
upload
,
Button
,
notification
,
popconfirm
,
Modal
,
modal
,
Spin
,
Collapse
,
Tabs
,
Tooltip
}
from
"
ant-design-vue
"
;
export
default
()
=>
{
let
els
=
[
Row
,
Col
,
menu
,
dropdown
,
Table
,
message
,
pagination
,
FormModel
,
Select
,
DatePicker
,
Input
,
InputNumber
,
Radio
,
upload
,
Button
,
notification
,
popconfirm
,
Modal
,
modal
,
Spin
,
Collapse
,
Tabs
,
Tooltip
];
// 注册
els
.
forEach
((
item
)
=>
{
Vue
.
use
(
item
);
});
// 全局提示
Vue
.
prototype
.
$msg
=
notification
;
Vue
.
prototype
.
$message
=
message
;
Vue
.
prototype
.
$modal
=
Modal
;
};
import
Vue
from
"
vue
"
;
import
{
Row
,
Col
,
menu
,
dropdown
,
Table
,
message
,
pagination
,
FormModel
,
Select
,
DatePicker
,
Input
,
InputNumber
,
Radio
,
upload
,
Button
,
notification
,
popconfirm
,
Modal
,
modal
,
Spin
,
Collapse
,
Tabs
,
Tooltip
,
Popover
}
from
"
ant-design-vue
"
;
export
default
()
=>
{
let
els
=
[
Row
,
Col
,
menu
,
dropdown
,
Table
,
message
,
pagination
,
FormModel
,
Select
,
DatePicker
,
Input
,
InputNumber
,
Radio
,
upload
,
Button
,
notification
,
popconfirm
,
Modal
,
modal
,
Spin
,
Collapse
,
Tabs
,
Tooltip
,
Popover
];
// 注册
els
.
forEach
((
item
)
=>
{
Vue
.
use
(
item
);
});
// 全局提示
Vue
.
prototype
.
$msg
=
notification
;
Vue
.
prototype
.
$message
=
message
;
Vue
.
prototype
.
$modal
=
Modal
;
};
src/views/report/returnedMoney.vue
View file @
3dfc41fc
<
template
>
<!-- 收费查询-账单查询 -->
<div
class=
"white_bg burt-container custom-info"
>
<!-- form -->
<a-form-model
ref=
"form"
layout=
"vertical"
:model=
"form"
>
<a-row
:gutter=
"30"
>
<a-col
:xl=
"4"
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"保险公司"
>
<a-select
v-model=
"form.payorCode"
placeholder=
"请选择"
show-search
allowClear
:filterOption=
"filterCode"
>
<a-select-option
v-for=
"item in companyOptions"
:key=
"item.payorCode"
:value=
"item.payorCode"
>
{{
item
.
longName
}}
</a-select-option>
</a-select>
</a-form-model-item>
</a-col>
<a-col
:xl=
"4"
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"病案号"
>
<a-input
v-model=
"form.mrnNo"
placeholder=
"请输入"
allow-clear
/>
</a-form-model-item>
</a-col>
<a-col
:xl=
"4"
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"客户名称"
>
<a-input
v-model=
"form.patientName"
placeholder=
"请输入"
allow-clear
/>
</a-form-model-item>
</a-col>
<a-col
:xl=
"6"
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"账单起止日期"
>
<a-range-picker
format=
"YYYY-MM-DD"
format-value=
"YYYY-MM-DD"
v-model=
"billRange"
:placeholder=
"['开始时间','结束时间']"
@
change=
"onSelectBillTime"
/>
</a-form-model-item>
</a-col>
<a-col
:xl=
"6"
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"回款起止日期"
>
<a-range-picker
format=
"YYYY-MM-DD"
format-value=
"YYYY-MM-DD"
v-model=
"returnRange"
:placeholder=
"['开始时间','结束时间']"
@
change=
"onSelectReturnTime"
/>
</a-form-model-item>
</a-col>
<a-col
:xl=
"10"
:lg=
"10"
:sm=
"12"
class=
"none-label"
>
<a-form-model-item
label=
"button"
>
<a-button
class=
"mar-left10"
type=
"primary"
@
click=
"handlerReset"
>
<Icon
name=
"ssireset"
:size=
"14"
/>
重置
</a-button>
<a-button
class=
"mar-left10"
type=
"primary"
@
click=
"handlerSearch"
>
<Icon
name=
"ssisearch_active"
:size=
"14"
/>
查询
</a-button>
<a-button
class=
"mar-left10"
type=
"primary"
@
click=
"exportExcel"
>
<Icon
name=
"ssidaochu"
:size=
"14"
/>
导出
</a-button>
</a-form-model-item>
</a-col>
</a-row>
</a-form-model>
<!-- 收费查询-账单查询 -->
<div
class=
"white_bg burt-container custom-info"
>
<!-- form -->
<a-form-model
ref=
"form"
layout=
"vertical"
:model=
"form"
>
<a-row
:gutter=
"30"
>
<a-col
:xl=
"4"
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"保险公司"
>
<a-select
v-model=
"form.payorCode"
placeholder=
"请选择"
show-search
allowClear
:filterOption=
"filterCode"
>
<a-select-option
v-for=
"item in companyOptions"
:key=
"item.payorCode"
:value=
"item.payorCode"
>
{{
item
.
longName
}}
</a-select-option>
</a-select>
</a-form-model-item>
</a-col>
<a-col
:xl=
"4"
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"病案号"
>
<a-input
v-model=
"form.mrnNo"
placeholder=
"请输入"
allow-clear
/>
</a-form-model-item>
</a-col>
<a-col
:xl=
"4"
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"客户名称"
>
<a-input
v-model=
"form.patientName"
placeholder=
"请输入"
allow-clear
/>
</a-form-model-item>
</a-col>
<a-col
:xl=
"6"
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"账单起止日期"
>
<a-range-picker
format=
"YYYY-MM-DD"
format-value=
"YYYY-MM-DD"
v-model=
"billRange"
:placeholder=
"['开始时间', '结束时间']"
@
change=
"onSelectBillTime"
/>
</a-form-model-item>
</a-col>
<a-col
:xl=
"6"
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"回款起止日期"
>
<a-range-picker
format=
"YYYY-MM-DD"
format-value=
"YYYY-MM-DD"
v-model=
"returnRange"
:placeholder=
"['开始时间', '结束时间']"
@
change=
"onSelectReturnTime"
/>
</a-form-model-item>
</a-col>
<a-col
:xl=
"10"
:lg=
"10"
:sm=
"12"
class=
"none-label"
>
<a-form-model-item
label=
"button"
>
<a-button
class=
"mar-left10"
type=
"primary"
@
click=
"handlerReset"
>
<Icon
name=
"ssireset"
:size=
"14"
/>
重置
</a-button>
<a-button
class=
"mar-left10"
type=
"primary"
@
click=
"handlerSearch"
>
<Icon
name=
"ssisearch_active"
:size=
"14"
/>
查询
</a-button>
<a-button
class=
"mar-left10"
type=
"primary"
@
click=
"exportExcel"
>
<Icon
name=
"ssidaochu"
:size=
"14"
/>
导出
</a-button>
</a-form-model-item>
</a-col>
</a-row>
</a-form-model>
<!-- table -->
<a-table
:columns=
"columns"
:data-source=
"dataList"
:scroll=
"
{ x: true }"
:pagination="false"
:rowKey="record => {record.id+record.backMoneyNo}"
>
<template
slot=
"index"
slot-scope=
"text, record, index"
>
{{
index
+
1
}}
</
template
>
</a-table>
<!--分页-->
<BurtPagination
:pagination=
"pagination"
@
pageChange=
"getList"
/>
</div>
<!-- table -->
<a-table
:columns=
"columns"
:data-source=
"dataList"
:scroll=
"
{ x: true }"
:pagination="false"
:rowKey="
(record) => {
record.id + record.backMoneyNo;
}
"
>
<template
slot=
"index"
slot-scope=
"text, record, index"
>
{{
index
+
1
}}
</
template
>
</a-table>
<!--分页-->
<BurtPagination
:pagination=
"pagination"
@
pageChange=
"getList"
/>
</div>
</template>
<
script
>
import
BurtPagination
from
"
@/components/CUSTOMER/pagation
"
;
import
BurtPagination
from
'
@/components/CUSTOMER/pagation
'
;
import
{
exportFile
}
from
'
@/utils/index
'
;
export
default
{
data
()
{
const
columns
=
[
{
title
:
"
序号
"
,
dataIndex
:
"
index
"
,
key
:
"
index
"
,
align
:
'
center
'
,
width
:
80
,
scopedSlots
:
{
customRender
:
"
index
"
}},
{
title
:
"
病历号
"
,
dataIndex
:
"
mrnNo
"
,
width
:
120
},
{
title
:
"
客户姓名
"
,
dataIndex
:
"
patientName
"
,
width
:
120
,},
{
title
:
"
保险公司
"
,
dataIndex
:
"
payorName
"
,
width
:
120
},
{
title
:
"
客户生日
"
,
dataIndex
:
"
birthday
"
,
width
:
120
},
{
title
:
"
保险卡号
"
,
dataIndex
:
"
cardNo
"
,
width
:
120
},
{
title
:
"
账单编号
"
,
dataIndex
:
"
receiptNo
"
,
width
:
120
},
{
title
:
"
账单日期
"
,
dataIndex
:
"
receiptDate
"
,
width
:
120
},
{
title
:
"
收银
"
,
dataIndex
:
"
receiptTellerName
"
,
width
:
120
},
{
title
:
"
账单金额
"
,
dataIndex
:
"
actualAmount
"
,
width
:
120
},
{
title
:
"
回款金额
"
,
dataIndex
:
"
paidAmountEob
"
,
width
:
120
},
{
title
:
"
回款日期
"
,
dataIndex
:
"
eobBackDate
"
,
width
:
120
},
{
title
:
"
回款编号
"
,
dataIndex
:
"
backMoneyNo
"
,
width
:
120
},
{
title
:
"
EOB号
"
,
dataIndex
:
"
eobNo
"
,
width
:
120
},
{
title
:
"
EOB备注
"
,
dataIndex
:
"
eobName
"
,
width
:
120
},
{
title
:
"
账龄
"
,
dataIndex
:
"
diffDay
"
,
width
:
120
},
];
return
{
columns
,
billRange
:
null
,
returnRange
:
null
,
form
:
{
payorCode
:
''
,
mrnNo
:
''
,
patientName
:
''
,
receiptDateStart
:
''
,
receiptDateEnd
:
''
,
eobBackDateStart
:
''
,
eobBackDateEnd
:
''
},
pageForm
:
{},
// 搜索form
data
()
{
const
columns
=
[
{
title
:
'
序号
'
,
dataIndex
:
'
index
'
,
key
:
'
index
'
,
align
:
'
center
'
,
width
:
80
,
scopedSlots
:
{
customRender
:
'
index
'
}
},
{
title
:
'
病历号
'
,
dataIndex
:
'
mrnNo
'
,
width
:
120
},
{
title
:
'
客户姓名
'
,
dataIndex
:
'
patientName
'
,
width
:
120
},
{
title
:
'
保险公司
'
,
dataIndex
:
'
payorName
'
,
width
:
120
},
{
title
:
'
客户生日
'
,
dataIndex
:
'
birthday
'
,
width
:
120
},
{
title
:
'
保险卡号
'
,
dataIndex
:
'
cardNo
'
,
width
:
120
},
{
title
:
'
账单编号
'
,
dataIndex
:
'
receiptNo
'
,
width
:
120
},
{
title
:
'
账单日期
'
,
dataIndex
:
'
receiptDate
'
,
width
:
120
},
{
title
:
'
收银
'
,
dataIndex
:
'
receiptTellerName
'
,
width
:
120
},
{
title
:
'
账单金额
'
,
dataIndex
:
'
actualAmount
'
,
width
:
120
},
{
title
:
'
回款金额
'
,
dataIndex
:
'
paidAmountEob
'
,
width
:
120
},
{
title
:
'
个人欠费
'
,
dataIndex
:
'
arrearsAmountShow
'
,
width
:
120
},
{
title
:
'
备注
'
,
dataIndex
:
'
remark
'
,
width
:
180
},
{
title
:
'
回款日期
'
,
dataIndex
:
'
eobBackDate
'
,
width
:
120
},
{
title
:
'
回款编号
'
,
dataIndex
:
'
backMoneyNo
'
,
width
:
120
},
{
title
:
'
EOB号
'
,
dataIndex
:
'
eobNo
'
,
width
:
120
},
{
title
:
'
EOB备注
'
,
dataIndex
:
'
eobName
'
,
width
:
120
},
{
title
:
'
账龄
'
,
dataIndex
:
'
diffDay
'
,
width
:
120
}
];
return
{
columns
,
billRange
:
null
,
returnRange
:
null
,
form
:
{
payorCode
:
''
,
mrnNo
:
''
,
patientName
:
''
,
receiptDateStart
:
''
,
receiptDateEnd
:
''
,
eobBackDateStart
:
''
,
eobBackDateEnd
:
''
},
pageForm
:
{},
// 搜索form
companyOptions
:
[],
//保险公司
dataList
:
[],
pagination
:
{
pageNum
:
1
,
pageSize
:
10
,
total
:
0
},
};
},
components
:
{
BurtPagination
,
},
created
()
{
this
.
getList
();
this
.
_getCompanyOptions
();
},
methods
:
{
// 选择框筛选
filterCode
(
input
,
option
)
{
return
(
option
.
componentOptions
.
children
[
0
].
text
.
toLowerCase
()
.
indexOf
(
input
.
toLowerCase
())
>=
0
);
companyOptions
:
[],
//保险公司
dataList
:
[],
pagination
:
{
pageNum
:
1
,
pageSize
:
10
,
total
:
0
}
};
},
// 获取列表数据
getList
()
{
const
data
=
{
...
this
.
pageForm
,
...
this
.
pagination
,
};
this
.
$apis
.
backMoneyReport
(
data
).
then
((
res
)
=>
{
let
content
=
res
.
content
||
{};
this
.
dataList
=
content
.
list
||
[];
this
.
pagination
.
total
=
content
.
total
||
0
;
});
},
// 获取保险公司下拉选项
_getCompanyOptions
()
{
this
.
$apis
.
GETCOMPANYOPTIONS
().
then
((
res
)
=>
{
this
.
companyOptions
=
res
.
content
||
[];
});
},
components
:
{
BurtPagination
},
created
()
{
this
.
getList
();
this
.
_getCompanyOptions
();
},
methods
:
{
// 选择框筛选
filterCode
(
input
,
option
)
{
return
option
.
componentOptions
.
children
[
0
].
text
.
toLowerCase
().
indexOf
(
input
.
toLowerCase
())
>=
0
;
},
// 获取列表数据
getList
()
{
const
data
=
{
...
this
.
pageForm
,
...
this
.
pagination
};
this
.
$apis
.
backMoneyReport
(
data
).
then
((
res
)
=>
{
let
content
=
res
.
content
||
{};
this
.
dataList
=
content
.
list
||
[];
this
.
pagination
.
total
=
content
.
total
||
0
;
});
},
// 获取保险公司下拉选项
_getCompanyOptions
()
{
this
.
$apis
.
GETCOMPANYOPTIONS
().
then
((
res
)
=>
{
this
.
companyOptions
=
res
.
content
||
[];
});
},
onSelectBillTime
(
date
,
dateString
)
{
this
.
form
.
receiptDateStart
=
dateString
[
0
]
?
dateString
[
0
]
+
'
00:00:00
'
:
''
this
.
form
.
receiptDateEnd
=
dateString
[
1
]
?
dateString
[
1
]
+
'
23:59:59
'
:
''
},
onSelectReturnTime
(
date
,
dateString
)
{
this
.
form
.
eobBackDateStart
=
dateString
[
0
]
?
dateString
[
0
]
+
'
00:00:00
'
:
''
this
.
form
.
eobBackDateEnd
=
dateString
[
1
]
?
dateString
[
1
]
+
'
23:59:59
'
:
''
},
onSelectBillTime
(
date
,
dateString
)
{
this
.
form
.
receiptDateStart
=
dateString
[
0
]
?
dateString
[
0
]
+
'
00:00:00
'
:
''
;
this
.
form
.
receiptDateEnd
=
dateString
[
1
]
?
dateString
[
1
]
+
'
23:59:59
'
:
''
;
},
onSelectReturnTime
(
date
,
dateString
)
{
this
.
form
.
eobBackDateStart
=
dateString
[
0
]
?
dateString
[
0
]
+
'
00:00:00
'
:
''
;
this
.
form
.
eobBackDateEnd
=
dateString
[
1
]
?
dateString
[
1
]
+
'
23:59:59
'
:
''
;
},
// 重置
handlerReset
()
{
this
.
form
=
{}
this
.
returnRange
=
null
;
this
.
billRange
=
null
;
},
// 重置
handlerReset
()
{
this
.
form
=
{};
this
.
returnRange
=
null
;
this
.
billRange
=
null
;
},
// 搜索
handlerSearch
()
{
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
if
(
!
valid
)
{
return
false
;
}
this
.
pagination
.
pageNum
=
1
;
this
.
pageForm
=
this
.
$lodash
.
cloneDeep
(
this
.
form
);
this
.
getList
();
});
},
// 搜索
handlerSearch
()
{
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
if
(
!
valid
)
{
return
false
;
}
this
.
pagination
.
pageNum
=
1
;
this
.
pageForm
=
this
.
$lodash
.
cloneDeep
(
this
.
form
);
this
.
getList
();
});
},
//导出报表
exportExcel
()
{
let
filter
=
{
...
this
.
form
,
}
this
.
$apis
.
exportBackMoneyReport
(
filter
).
then
(
res
=>
{
exportFile
(
res
,
'
账单回款报表.xls
'
);
})
}
},
//导出报表
exportExcel
()
{
let
filter
=
{
...
this
.
form
};
this
.
$apis
.
exportBackMoneyReport
(
filter
).
then
((
res
)
=>
{
exportFile
(
res
,
'
账单回款报表.xls
'
);
});
}
}
};
</
script
>
<
style
lang=
"less"
scoped
>
.none-label {
text-align: left;
.ant-form-item-label {
opacity: 0;
}
text-align: left;
.ant-form-item-label {
opacity: 0;
}
}
.ant-btn .icon-class {
.mg-r(10);
.mg-r(10);
}
</
style
>
src/views/verification/collectionDetail.vue
View file @
3dfc41fc
...
...
@@ -3,10 +3,10 @@
<Goback
ref=
"goback"
title=
"回款详情"
/>
<a-tabs
v-model=
"activeKey"
@
change=
"paneChange"
>
<a-tab-pane
v-for=
"pane in panes"
:key=
"pane.key"
:tab=
"pane.title"
>
<a-form-model
ref=
"
form"
:model=
"form
"
>
<a-form-model
ref=
"
ruleForm"
:model=
"form"
:rules=
"rules
"
>
<a-row
:gutter=
"30"
>
<a-col
:lg=
"7"
:sm=
"12"
>
<a-form-model-item
label=
"保险公司"
>
<a-form-model-item
label=
"保险公司"
prop=
"payorCode"
>
<a-select
v-model=
"form.payorCode"
placeholder=
"请选择保险公司"
...
...
@@ -25,7 +25,7 @@
</a-col>
<template
v-if=
"activeKey === '0'"
>
<a-col
:lg=
"5"
:sm=
"12"
>
<a-form-model-item
label=
"回款日期"
>
<a-form-model-item
label=
"回款日期"
prop=
"backDate"
>
<a-date-picker
format=
"YYYY-MM-DD"
format-value=
"YYYY-MM-DD 00:00:00"
...
...
@@ -38,7 +38,7 @@
</a-col>
</
template
>
<a-col
:lg=
"6"
:sm=
"12"
>
<a-form-model-item
label=
"回款金额(人民币)"
>
<a-form-model-item
label=
"回款金额(人民币)"
prop=
"backAmountCny"
>
<a-input
type=
"number"
v-model=
"form.backAmountCny"
...
...
@@ -201,6 +201,7 @@
</a-table>
</div>
</template>
<div
class=
"all-list_box no-data"
v-else
>
暂未关联,前往全部账单关联
</div>
</template>
<
template
v-else
>
<!-- table -->
...
...
@@ -257,10 +258,6 @@ const panes = [
{
title
:
'
基础信息
'
,
key
:
'
0
'
,
show
:
true
,
content
:
'
PaymentClaims
'
},
{
title
:
'
账单列表
'
,
key
:
'
1
'
,
show
:
false
,
content
:
'
Insurance
'
}
];
const
panes1
=
[
{
title
:
'
已关联账单
'
,
key
:
'
0
'
,
show
:
true
,
content
:
'
Associated
'
},
{
title
:
'
全部账单
'
,
key
:
'
1
'
,
show
:
false
,
content
:
'
Insurance
'
}
];
export
default
{
data
()
{
return
{
...
...
@@ -288,9 +285,10 @@ export default {
selectedRowKeys
:
[],
// Check here to configure the default column
selectedRows
:
[],
// Check here to configure the default column
backMoneyNo
:
''
,
editRules
:
{
backAmountUsd
:
[{
required
:
true
,
message
:
'
请输入
'
,
trigger
:
'
blur
'
}],
backAmount
:
[{
required
:
true
,
message
:
'
请输入
'
,
trigger
:
'
blur
'
}]
rules
:
{
payorCode
:
[{
required
:
true
,
message
:
'
请选择保险公司
'
,
trigger
:
'
change
'
}],
backDate
:
[{
required
:
true
,
message
:
'
请选择回款日期
'
,
trigger
:
'
change
'
}],
backAmountCny
:
[{
required
:
true
,
message
:
'
请输入回款金额(人民币)
'
,
trigger
:
[
'
change
'
,
'
blur
'
]
}]
},
searchForm
:
{
...
...
@@ -302,7 +300,6 @@ export default {
relatedList
:
[],
panes
:
Object
.
seal
(
panes
),
panes1
:
Object
.
seal
(
panes1
),
activeKey
:
'
0
'
,
activeKey1
:
'
0
'
,
statusOptions
:
[
...
...
@@ -324,34 +321,44 @@ export default {
BurtPagination
},
computed
:
{
panes1
()
{
const
panes
=
[{
title
:
'
已关联账单
'
,
key
:
'
0
'
,
show
:
true
,
content
:
'
Associated
'
}];
if
(
this
.
isEdit
)
{
panes
.
push
({
title
:
'
全部账单
'
,
key
:
'
1
'
,
show
:
false
,
content
:
'
Insurance
'
});
}
return
panes
;
},
columns
()
{
const
base
=
[
{
title
:
'
账单
编号
'
,
dataIndex
:
'
receipt
No
'
,
title
:
'
账单
日期
'
,
dataIndex
:
'
receipt
Date
'
,
ellipsis
:
true
,
width
:
150
width
:
160
,
fixed
:
'
left
'
},
{
title
:
'
账单状态
'
,
dataIndex
:
'
status
'
,
ellipsis
:
true
,
width
:
150
,
width
:
100
,
fixed
:
'
left
'
,
scopedSlots
:
{
customRender
:
'
status
'
}
},
{
title
:
'
病历号
'
,
dataIndex
:
'
mrnNo
'
,
ellipsis
:
true
,
width
:
195
},
{
title
:
'
客户姓名
'
,
dataIndex
:
'
patientName
'
,
ellipsis
:
true
,
width
:
160
width
:
120
,
fixed
:
'
left
'
},
{
title
:
'
病历号
'
,
dataIndex
:
'
mrnNo
'
,
ellipsis
:
true
,
width
:
195
},
{
title
:
'
保险公司
'
,
dataIndex
:
'
payorName
'
,
ellipsis
:
true
,
width
:
195
},
{
title
:
'
账单
日期
'
,
dataIndex
:
'
receipt
Date
'
,
title
:
'
账单
编号
'
,
dataIndex
:
'
receipt
No
'
,
ellipsis
:
true
,
width
:
1
8
0
width
:
1
5
0
},
{
title
:
'
收银
'
,
...
...
@@ -416,14 +423,30 @@ export default {
};
base
[
10
].
customRender
=
(
val
,
row
)
=>
{
return
(
<
a
-
input
v
-
model
=
{
row
.
remark
}
allow
-
clear
disabled
=
{
!
this
.
isEdit
}
onBlur
=
{()
=>
{
this
.
syncData
(
row
);
}}
/>
<
div
>
{
this
.
isEdit
?
(
<
a
-
popover
title
=
"
备注
"
trigger
=
"
click
"
>
<
template
slot
=
"
content
"
>
<
a
-
textarea
class
=
"
remark_inp
"
v
-
model
=
{
row
.
remark
}
auto
-
size
=
{{
minRows
:
3
,
maxRows
:
5
}}
allow
-
clear
disabled
=
{
!
this
.
isEdit
}
><
/a-textarea>
<
/template>
<
a
-
tooltip
>
<
template
slot
=
"
title
"
>
{
row
.
remark
}
<
/template>
<
a
-
input
v
-
model
=
{
row
.
remark
}
allow
-
clear
disabled
=
{
!
this
.
isEdit
}
/>
<
/a-tooltip>
<
/a-popover>
)
:
(
<
a
-
tooltip
>
<
template
slot
=
"
title
"
>
{
row
.
remark
}
<
/template>
<
a
-
input
v
-
model
=
{
row
.
remark
}
disabled
/>
<
/a-tooltip>
)}
<
/div>
);
};
base
[
11
]
=
{
...
...
@@ -536,14 +559,6 @@ export default {
rowClassName
(
record
)
{
return
record
.
hidden
?
'
hide_
'
:
''
;
},
// 已关联账单数据同步
syncData
(
row
,
field
)
{
this
.
selectedRows
.
forEach
((
item
)
=>
{
if
(
item
.
id
===
row
.
id
)
{
item
[
field
]
=
row
[
field
];
}
});
},
// 账单查询
searchData
()
{
this
.
_getNewEOBList
();
...
...
@@ -554,12 +569,13 @@ export default {
return
option
.
componentOptions
.
children
[
0
].
text
.
toLowerCase
().
indexOf
(
input
.
toLowerCase
())
>=
0
;
},
paneChange
()
{
this
.
$refs
.
ruleForm
[
0
].
clearValidate
();
this
.
panes
.
forEach
((
item
)
=>
{
item
.
show
=
false
;
});
this
.
panes
[
Number
(
this
.
activeKey
)].
show
=
true
;
},
changeAmount
(
row
,
field
)
{
changeAmount
(
row
)
{
let
totalMoney
=
Number
(
this
.
form
.
backAmountCny
||
0
);
this
.
selectedRows
.
forEach
((
item
)
=>
{
totalMoney
-=
Number
(
item
.
backAmount
);
...
...
@@ -570,7 +586,6 @@ export default {
if
(
Number
(
row
.
actualAmount
||
0
)
-
Number
(
row
.
backAmount
||
0
)
<
0
)
{
this
.
$message
.
warning
(
'
录入账单回款金额大于账单金额
'
);
}
this
.
syncData
(
row
,
field
);
},
onSelectChange
(
selectedRow
,
selected
)
{
selectedRow
[
'
backAmount
'
]
=
...
...
@@ -589,10 +604,16 @@ export default {
this
.
addNewEvt
(
0
);
},
onSelectAll
(
selected
,
selectedRows
,
changeRows
)
{
console
.
log
(
selected
,
selectedRows
,
changeRows
);
let
chgRows
=
changeRows
.
map
((
item
)
=>
{
return
{
...
item
,
backAmount
:
this
.
residueBackAmount
>
item
.
currentReceiptAmount
?
item
.
currentReceiptAmount
:
this
.
residueBackAmount
};
});
if
(
selected
)
{
this
.
selectedRowKeys
=
this
.
selectedRowKeys
.
concat
(
changeRows
.
map
((
item
)
=>
item
.
id
));
this
.
selectedRows
=
this
.
selectedRows
.
concat
(
ch
ange
Rows
);
this
.
selectedRows
=
this
.
selectedRows
.
concat
(
ch
g
Rows
);
}
else
{
changeRows
.
forEach
((
item
)
=>
{
const
findIndex
=
this
.
selectedRowKeys
.
findIndex
((
rowId
)
=>
rowId
===
item
.
id
);
...
...
@@ -601,6 +622,7 @@ export default {
});
this
.
_confirmDelReceipt
(
changeRows
);
}
this
.
addNewEvt
(
0
);
},
delRecord
(
record
,
index
)
{
this
.
selectedRowKeys
.
splice
(
index
,
1
);
...
...
@@ -670,6 +692,10 @@ export default {
},
// 获取已关联的账单
getData
()
{
if
(
!
this
.
backMoneyNo
)
{
this
.
$message
.
error
(
'
暂未关联账单,请在全部账单中添加账单
'
);
return
;
}
let
billDate
=
this
.
searchForm
.
billDate
||
[];
this
.
$apis
.
QUERYBACKRECEIPTLIST
({
...
...
@@ -727,73 +753,65 @@ export default {
},
//新建/保存回款
addNewEvt
(
backStatus
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
if
(
!
this
.
form
.
payorCode
)
{
this
.
$message
.
warning
(
'
请选择保险公司
'
);
reject
();
return
;
}
if
(
!
this
.
form
.
backDate
)
{
this
.
$message
.
warning
(
'
请选择回款日期
'
);
reject
();
return
;
}
if
(
!
this
.
form
.
backAmountCny
)
{
this
.
$message
.
warning
(
'
请输入回款金额
'
);
reject
();
return
;
}
let
receiptVoList
=
this
.
selectedRows
.
map
((
item
)
=>
{
return
{
id
:
item
.
id
,
backAmount
:
item
.
backAmount
,
arrearsAmount
:
item
.
arrearsAmount
,
remark
:
item
.
remark
};
});
const
valid
=
receiptVoList
.
some
((
item
)
=>
{
const
exist
=
!
item
.
backAmount
&&
item
.
backAmount
!==
0
;
return
exist
;
});
if
(
valid
)
{
this
.
$message
.
warning
(
'
存在关联账单未输入回款金额
'
);
reject
();
return
;
}
const
formData
=
{
...
this
.
form
,
receiptVoList
,
backDate
:
this
.
form
.
backDate
?
moment
(
this
.
form
.
backDate
).
format
(
'
YYYY-MM-DD HH:mm:ss
'
)
:
''
,
backMoneyNo
:
this
.
backMoneyNo
,
//回款编号
backStatus
// 0暂存 1结案
if
(
!
this
.
form
.
payorCode
)
{
this
.
$message
.
warning
(
'
请选择保险公司
'
);
return
;
}
if
(
!
this
.
form
.
backDate
)
{
this
.
$message
.
warning
(
'
请选择回款日期
'
);
return
;
}
if
(
!
this
.
form
.
backAmountCny
)
{
this
.
$message
.
warning
(
'
请输入回款金额(人民币)
'
);
return
;
}
let
receiptVoList
=
this
.
selectedRows
.
map
((
item
)
=>
{
return
{
id
:
item
.
id
,
backAmount
:
item
.
backAmount
,
arrearsAmount
:
item
.
arrearsAmount
,
remark
:
item
.
remark
};
});
const
flag
=
receiptVoList
.
some
((
item
)
=>
{
const
exist
=
!
item
.
backAmount
&&
item
.
backAmount
!==
0
;
return
exist
;
});
if
(
flag
)
{
this
.
$message
.
warning
(
'
存在关联账单未输入回款金额
'
);
return
;
}
// 上传附件格式转换
formData
.
fileList
=
this
.
fileList
.
map
((
d
)
=>
{
const
file
=
{
fileName
:
d
.
name
,
fileUrl
:
d
.
url
};
return
file
;
});
const
formData
=
{
...
this
.
form
,
receiptVoList
,
backDate
:
this
.
form
.
backDate
?
moment
(
this
.
form
.
backDate
).
format
(
'
YYYY-MM-DD HH:mm:ss
'
)
:
''
,
backMoneyNo
:
this
.
backMoneyNo
,
//回款编号
backStatus
// 0暂存 1结案
};
this
.
$apis
.
SAVEBACKMONEY
(
formData
).
then
((
res
)
=>
{
if
(
res
.
returnCode
==
'
0000
'
)
{
this
.
backMoneyNo
=
res
.
content
;
this
.
savedStatus
=
true
;
this
.
$message
.
success
(
'
成功
'
);
this
.
selectedRowKeys
=
[]
;
this
.
getData
()
;
this
.
_getNewEOBList
(
);
// 上传附件格式转换
formData
.
fileList
=
this
.
fileList
.
map
((
d
)
=>
{
const
file
=
{
fileName
:
d
.
name
,
fileUrl
:
d
.
url
}
;
return
file
;
}
);
// this.$router.go(-1);
resolve
();
}
else
{
this
.
$message
.
error
(
res
.
returnMsg
);
reject
();
}
});
this
.
$apis
.
SAVEBACKMONEY
(
formData
).
then
((
res
)
=>
{
if
(
res
.
returnCode
==
'
0000
'
)
{
this
.
backMoneyNo
=
res
.
content
;
this
.
savedStatus
=
true
;
this
.
$message
.
success
(
'
成功
'
);
this
.
selectedRowKeys
=
[];
this
.
getData
();
this
.
_getNewEOBList
();
// this.$router.go(-1);
}
else
{
this
.
$message
.
error
(
res
.
returnMsg
);
}
});
},
...
...
@@ -863,6 +881,12 @@ export default {
.all-list_box {
height: calc(100vh - 430px);
overflow-y: auto;
&.no-data {
display: flex;
justify-content: center;
align-items: center;
color: red;
}
}
.table-content {
::v-deep {
...
...
@@ -902,6 +926,9 @@ export default {
::v-deep {
.ant-form-item {
display: flex;
&.ant-form-item-with-help {
margin-bottom: 0;
}
}
.ant-tabs {
flex: 1;
...
...
@@ -930,4 +957,7 @@ export default {
margin-bottom: 4px !important;
}
}
.remark_inp {
width: 300px;
}
</
style
>
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