Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
省
省二结算
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
任鸿志
省二结算
Commits
cbd7cf9b
Commit
cbd7cf9b
authored
Aug 01, 2025
by
任鸿志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(jiesuan): 优化门诊收费流程
- 移除不必要的注释代码 - 添加测试按钮和相关逻辑 - 优化医保预结算和自费预结算的代码结构 - 添加违规验证逻辑
parent
66631f18
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
25 deletions
+49
-25
index.vue
src/components/ReadcardsNewSFC/index.vue
+30
-1
outpatientCharging.vue
src/views/jiesuan/outpatientCharging.vue
+19
-24
No files found.
src/components/ReadcardsNewSFC/index.vue
View file @
cbd7cf9b
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
@
change=
"handleSelect"
>
@
change=
"handleSelect"
>
<el-option
v-for=
"(item, i) in DiagnosisCardOptions"
:key=
"i"
:label=
"item.name"
:value=
"item.code"
/>
<el-option
v-for=
"(item, i) in DiagnosisCardOptions"
:key=
"i"
:label=
"item.name"
:value=
"item.code"
/>
</el-select>
-->
</el-select>
-->
<!--
<el-button
type=
"primary"
@
click=
"ceshi()"
>
1111111111
</el-button>
-->
<el-form
element-loading-text=
"刷卡中,请稍后"
v-loading=
"jiezhiLoading"
element-loading-spinner=
"el-icon-loading"
@
submit
.
native
.
prevent
>
<el-form
element-loading-text=
"刷卡中,请稍后"
v-loading=
"jiezhiLoading"
element-loading-spinner=
"el-icon-loading"
@
submit
.
native
.
prevent
>
<el-form-item>
<el-form-item>
<el-input
<el-input
...
@@ -127,6 +127,35 @@ export default {
...
@@ -127,6 +127,35 @@ export default {
this
.
initWebSocket
()
this
.
initWebSocket
()
},
},
methods
:
{
methods
:
{
ceshi
(){
this
.
param
=
{
sbm
:
"
370100D15600000500F419DFE0F220AA
"
,
name
:
"
律晓明
"
,
xzbz
:
"
C
"
,
cache
:
"
1
"
,
is_yd
:
"
0
"
,
yltclb
:
"
4
"
,
card_no
:
"
S74275887
"
,
dzpzywm
:
"
301
"
,
id_card
:
"
370902198510233018
"
,
qr_code
:
""
,
card_type
:
"
03
"
,
insurance
:
"
LOCAL
"
}
queryReadRard
(
this
.
param
)
.
then
(
response
=>
{
// this.jiezhiLoading = false
// this.dialogFormVisible = false
this
.
$emit
(
'
getyibaoinfo
'
,
response
.
data
,
'
03
'
)
this
.
form
.
physicalCard
=
''
})
.
finally
(()
=>
{
// this.jiezhiLoading = false
// this.$emit('close')
// this.dialogFormVisible = false
})
},
// 当不关闭刷卡弹窗的时候需要对input框失去焦点的时候继续聚焦
// 当不关闭刷卡弹窗的时候需要对input框失去焦点的时候继续聚焦
handleSetFocus
()
{
handleSetFocus
()
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
...
...
src/views/jiesuan/outpatientCharging.vue
View file @
cbd7cf9b
...
@@ -1918,6 +1918,14 @@ export default {
...
@@ -1918,6 +1918,14 @@ export default {
})
})
},
},
selectCardYiboPreselect
(
data
,
x
,
y
)
{
selectCardYiboPreselect
(
data
,
x
,
y
)
{
// 验证违规
prescription
({
patient_id
:
this
.
patientData
.
patient_id
,
settle_type
:
this
.
selectTableArr
[
0
]
?
this
.
selectTableArr
[
0
].
settle_type
.
code
:
''
,
prescription_nos
:
this
.
cost_id
,
js_type
:
'
1
'
,
p_jbbm
:
data
?.
mzdbjbs_arr
[
0
]?.
code
,
}).
then
(
response
=>
{})
// 判断慢病
// 判断慢病
if
((
this
.
selectTableArr
[
0
]?.
settle_type
.
is_mb
||
this
.
man_name
==
'
4
'
)
&&
this
.
man_name
!=
'
1
'
&&
this
.
man_name
!=
'
2
'
&&
this
.
man_name
!=
'
3
'
)
{
if
((
this
.
selectTableArr
[
0
]?.
settle_type
.
is_mb
||
this
.
man_name
==
'
4
'
)
&&
this
.
man_name
!=
'
1
'
&&
this
.
man_name
!=
'
2
'
&&
this
.
man_name
!=
'
3
'
)
{
// 判断多病种慢病
// 判断多病种慢病
...
@@ -1936,7 +1944,7 @@ export default {
...
@@ -1936,7 +1944,7 @@ export default {
}
}
},
},
// 医保预结算
// 医保预结算
selectCardYiboPre
(
data
,
x
,
y
,
zhenduan
)
{
async
selectCardYiboPre
(
data
,
x
,
y
,
zhenduan
)
{
if
(
this
.
man_name
==
'
2
'
||
this
.
man_name
==
'
3
'
||
this
.
man_name
==
'
1
'
||
this
.
selectTableArr
[
0
].
settle_type
.
is_mb
==
false
)
{
if
(
this
.
man_name
==
'
2
'
||
this
.
man_name
==
'
3
'
||
this
.
man_name
==
'
1
'
||
this
.
selectTableArr
[
0
].
settle_type
.
is_mb
==
false
)
{
zhenduan
=
''
zhenduan
=
''
}
else
{
}
else
{
...
@@ -1960,7 +1968,7 @@ export default {
...
@@ -1960,7 +1968,7 @@ export default {
this
.
form
=
{}
this
.
form
=
{}
this
.
form
=
data
this
.
form
=
data
this
.
form
.
rqlbName
=
data
.
rqlb
==
'
A
'
?
'
职工
'
:
data
.
rqlb
==
'
B
'
?
'
居民
'
:
''
this
.
form
.
rqlbName
=
data
.
rqlb
==
'
A
'
?
'
职工
'
:
data
.
rqlb
==
'
B
'
?
'
居民
'
:
''
settlementPre
({
await
settlementPre
({
sy
:
this
.
is_sy
,
sy
:
this
.
is_sy
,
channel
:
this
.
channel
,
channel
:
this
.
channel
,
// is_gz: this.man_name == '3' ? true : false,
// is_gz: this.man_name == '3' ? true : false,
...
@@ -1984,38 +1992,32 @@ export default {
...
@@ -1984,38 +1992,32 @@ export default {
family_pay
:
false
,
family_pay
:
false
,
settle_type
:
this
.
selectTableArr
[
0
]
?
this
.
selectTableArr
[
0
].
settle_type
.
code
:
''
,
settle_type
:
this
.
selectTableArr
[
0
]
?
this
.
selectTableArr
[
0
].
settle_type
.
code
:
''
,
})
})
.
then
(
res
=>
{
.
then
(
async
res
=>
{
// this.yibaoshowNew=false
// this.yibaoshowNew=false
this
.
bxxxinfo
=
res
.
data
this
.
bxxxinfo
=
res
.
data
this
.
bxxxinfo
.
his_deduct_amount
=
0
console
.
log
(
this
.
orders
,
'
ooooooooooooooooooooooo
'
)
this
.
bxxxinfo
.
settle_type
=
//this.bxxxinfo.settle_type.name
this
.
bxxxinfo
.
settle_type
=
//this.bxxxinfo.settle_type.name
this
.
man_name
==
'
1
'
?
'
自费
'
:
this
.
man_name
==
'
2
'
?
'
门诊统筹
'
:
this
.
man_name
==
'
3
'
?
'
医保个账
'
:
this
.
man_name
==
'
4
'
?
'
门诊慢性病
'
:
this
.
orders
[
0
].
name
this
.
man_name
==
'
1
'
?
'
自费
'
:
this
.
man_name
==
'
2
'
?
'
门诊统筹
'
:
this
.
man_name
==
'
3
'
?
'
医保个账
'
:
this
.
man_name
==
'
4
'
?
'
门诊慢性病
'
:
this
.
orders
[
0
].
name
if
(
res
.
data
.
mzxets
!=
''
)
{
if
(
res
.
data
.
mzxets
!=
''
)
{
this
.
dataText
=
res
.
data
.
mzxets
this
.
dataText
=
res
.
data
.
mzxets
this
.
GSshow
=
true
this
.
GSshow
=
true
}
}
this
.
yujiesuanLoading
=
false
await
familybalanceinfor
({
this
.
moreLoading
=
false
familybalanceinfor
({
patient_id
:
this
.
patientData
.
patient_id
,
patient_id
:
this
.
patientData
.
patient_id
,
pre_key
:
res
.
data
.
pre_key
,
pre_key
:
res
.
data
.
pre_key
,
cache_key
:
this
.
form
.
cache_key
,
cache_key
:
this
.
form
.
cache_key
,
}).
then
(
async
res2
=>
{
}).
then
(
async
res2
=>
{
this
.
yujiesuanLoading
=
false
this
.
moreLoading
=
false
this
.
familyType
=
res2
.
data
.
family_type
this
.
familyType
=
res2
.
data
.
family_type
if
(
res2
.
data
.
family_type
==
'
1
'
)
{
if
(
res2
.
data
.
family_type
==
'
1
'
)
{
this
.
bxxxinfo
.
gjzhzf
=
res2
.
data
.
gjzhxfje
*
1
this
.
bxxxinfo
.
gjzhzf
=
res2
.
data
.
gjzhxfje
*
1
this
.
bxxxinfo
.
grzhzf
=
this
.
round
(
res2
.
data
.
grzhzf
-
res2
.
data
.
gjzhxfje
,
2
)
this
.
bxxxinfo
.
grzhzf
=
this
.
round
(
res2
.
data
.
grzhzf
-
res2
.
data
.
gjzhxfje
,
2
)
}
}
else
{
// else if(res2.data.family_type == '2'){
// this.bxxxinfo.gjzhzf=res2.data.gjzhye
// }
else
{
this
.
bxxxinfo
.
gjzhzf
=
0
this
.
bxxxinfo
.
gjzhzf
=
0
}
}
this
.
bxxxinfo
.
family_balance
=
res2
.
data
.
gjzhye
this
.
bxxxinfo
.
family_balance
=
res2
.
data
.
gjzhye
// this.dialogVisible = true
this
.
bxxxinfo
.
grzhzf
=
0
this
.
bxxxinfo
.
grzhzf
=
0
this
.
bxxxinfo
.
his_deduct_amount
=
0
let
djf
=
this
.
round
(
this
.
round
(
this
.
round
(
this
.
bxxxinfo
.
patient_burden
-
this
.
bxxxinfo
.
gjzhzf
,
2
)
-
this
.
bxxxinfo
.
his_deduct_amount
,
2
)
-
this
.
bxxxinfo
.
grzhzf
,
2
)
//this.round(this.round(this.round(this.round(this.bxxxinfo.patient_burden - this.bxxxinfo.gjzhzf, 2) - this.bxxxinfo.his_deduct_amount, 2) - this.bxxxinfo.grzhzf, 2) - this.bxxxinfo.personal_pay_syd,2)
let
djf
=
this
.
round
(
this
.
round
(
this
.
round
(
this
.
bxxxinfo
.
patient_burden
-
this
.
bxxxinfo
.
gjzhzf
,
2
)
-
this
.
bxxxinfo
.
his_deduct_amount
,
2
)
-
this
.
bxxxinfo
.
grzhzf
,
2
)
//this.round(this.round(this.round(this.round(this.bxxxinfo.patient_burden - this.bxxxinfo.gjzhzf, 2) - this.bxxxinfo.his_deduct_amount, 2) - this.bxxxinfo.grzhzf, 2) - this.bxxxinfo.personal_pay_syd,2)
if
(
this
.
bxxxinfo
.
personal_balance
>=
djf
)
{
if
(
this
.
bxxxinfo
.
personal_balance
>=
djf
)
{
this
.
bxxxinfo
.
grzhzf
=
djf
this
.
bxxxinfo
.
grzhzf
=
djf
...
@@ -2062,14 +2064,7 @@ export default {
...
@@ -2062,14 +2064,7 @@ export default {
}
}
this
.
form
.
djf
=
this
.
round
(
this
.
round
(
this
.
round
(
this
.
bxxxinfo
.
patient_burden
-
this
.
bxxxinfo
.
gjzhzf
,
2
)
-
this
.
bxxxinfo
.
his_deduct_amount
,
2
)
-
this
.
bxxxinfo
.
grzhzf
,
2
)
//this.round(this.round(this.round(this.bxxxinfo.patient_burden - this.bxxxinfo.gjzhzf, 2) - this.bxxxinfo.his_deduct_amount, 2) - this.bxxxinfo.grzhzf, 2)
this
.
form
.
djf
=
this
.
round
(
this
.
round
(
this
.
round
(
this
.
bxxxinfo
.
patient_burden
-
this
.
bxxxinfo
.
gjzhzf
,
2
)
-
this
.
bxxxinfo
.
his_deduct_amount
,
2
)
-
this
.
bxxxinfo
.
grzhzf
,
2
)
//this.round(this.round(this.round(this.bxxxinfo.patient_burden - this.bxxxinfo.gjzhzf, 2) - this.bxxxinfo.his_deduct_amount, 2) - this.bxxxinfo.grzhzf, 2)
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
// 验证违规
prescription
({
patient_id
:
this
.
patientData
.
patient_id
,
settle_type
:
this
.
selectTableArr
[
0
]
?
this
.
selectTableArr
[
0
].
settle_type
.
code
:
''
,
prescription_nos
:
this
.
cost_id
,
js_type
:
'
1
'
,
p_jbbm
:
zhenduan
,
}).
then
(
response
=>
{})
})
})
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
...
@@ -2085,12 +2080,12 @@ export default {
...
@@ -2085,12 +2080,12 @@ export default {
this
.
yibaoshowNew
=
false
this
.
yibaoshowNew
=
false
},
},
// 自费预结算
// 自费预结算
zfBeforePre
()
{
async
zfBeforePre
()
{
this
.
yujiesuanLoading
=
true
this
.
yujiesuanLoading
=
true
this
.
xj_amount
=
0
this
.
xj_amount
=
0
this
.
source_pay_amount
=
0
this
.
source_pay_amount
=
0
this
.
form
=
{}
this
.
form
=
{}
settleSelfPre
({
await
settleSelfPre
({
patient_id
:
this
.
patientData
.
patient_id
,
patient_id
:
this
.
patientData
.
patient_id
,
prescription_nos
:
this
.
cost_id
,
prescription_nos
:
this
.
cost_id
,
settle_type
:
this
.
selectTableArr
[
0
]
?
this
.
selectTableArr
[
0
].
settle_type
.
code
:
''
,
settle_type
:
this
.
selectTableArr
[
0
]
?
this
.
selectTableArr
[
0
].
settle_type
.
code
:
''
,
...
...
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