Commit a0800f51 authored by 任鸿志's avatar 任鸿志

refactor(settlement): 重构结算组件逻辑

- 修改了结算类型相关的逻辑和UI
- 优化了医保结算的处理流程
- 调整了自费和个账结算的选项和行为
- 修复了一些与结算相关的小问题
parent 50887120
......@@ -150,7 +150,7 @@ export default {
}
else {
this.$message({
message: res.msg,
message: res.message,
type: 'error',
})
}
......
......@@ -31,19 +31,19 @@
<el-date-picker size="mini" v-model="GSdatatime" type="date" value-format="yyyy-MM-dd" placeholder="选择日期"> </el-date-picker>
</div>
<div style="display: flex">
<el-checkbox v-model="gz_name" style="margin-right: 10px">转为个账账单</el-checkbox>
<el-checkbox v-model="man_name">转为自费账单</el-checkbox>
<!-- <el-checkbox v-model="gz_name" style="margin-right: 10px">转为个账账单</el-checkbox> -->
<!-- <el-checkbox v-model="man_name">转为自费账单</el-checkbox> -->
<el-checkbox v-model="is_sy">生育</el-checkbox>
<!-- <el-checkbox v-model="insurance_payment">智慧医保支付</el-checkbox> -->
</div>
<!-- <div style="display: flex" v-if="patientInfo.yblx != '01'">
<div style="display: flex" v-if="patientInfo.yblx != '01'">
<div style="line-height: 28px; width: 75px">结算类型:</div>
<div class="selectinput" style="margin-left: 20px">
<el-select v-model="man_name" placeholder="请选择">
<el-select v-model="man_name" placeholder="请选择" @change="changePersonType(man_name)">
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </el-option>
</el-select>
</div>
</div> -->
</div>
<!-- <el-button type="primary" size="mini" round @click="jshistory">结算历史</el-button> -->
</div>
</div>
......@@ -680,15 +680,23 @@ export default {
options: [
{
value: '1',
label: '自费',
label: '转为自费账单',
},
{
value: '2',
label: '转为医保账单',
},
{
value: '0',
label: '医保',
value: '3',
label: '转为纯个账账单',
},
{
value: '4',
label: '转为慢病账单',
},
],
channels: '',
man_name: false,
man_name: '',
insurance_payment: false,
card_typeinfor: '',
sdsdzjkk: '',
......@@ -1123,7 +1131,7 @@ export default {
},
//首次进页面第一次刷卡返回的信息
getyibaoinfo(e, x) {
this.man_name = false
this.man_name = ''
this.insurance_payment = false
this.only_qq = 0
//第一次读二维码不需要from_web
......@@ -1677,6 +1685,7 @@ export default {
},
//调取待结算清单
getWaiting(e) {
this.man_name=''
var that = this
this.is_sy = false
this.gz_name = false
......@@ -1713,7 +1722,7 @@ export default {
}
})
// 医技预约channel=4不走审核
if ((!this.ismb && this.man_name == false) || this.channel == '4') {
if ((!this.ismb && this.man_name !='1') || this.channel == '4') {
if (this.orders.length > 0) {
this.ybjs()
} else {
......@@ -1781,7 +1790,7 @@ export default {
this.carddialogFormVisible = true
},
ybjs() {
if (this.checktipes() && this.man_name == false) {
if (this.checktipes() && this.man_name !='1' || this.man_name =='2') {
// this.yibaoshow = true
this.yibaoshowNew = true
this.yujiesuanload = false
......@@ -1811,7 +1820,7 @@ export default {
},
yanzhengweigui(e) {
prescription({
is_yb: this.man_name == true ? '1' : '0',
is_yb: this.man_name == '1' ? '1' : '0',
cache_uuid: e == undefined ? 'not' : e,
his_pay_fee_nos: this.cost_id,
patient_id: this.tableData.patient.id,
......@@ -1825,7 +1834,7 @@ export default {
jiesuanadmin(e) {
this.yujiesuanload = false
bxxx({
is_yb: this.man_name == true ? '1' : '0',
is_yb: this.man_name == '1' ? '1' : '0',
cache_uuid: e == undefined ? 'not' : e,
his_pay_fee_nos: this.cost_id,
patient_id: this.tableData.patient.id,
......@@ -1893,7 +1902,7 @@ export default {
} else {
this.qrjs()
}
} else if (this.ztvalue.value == 'SELF_PAY' || this.man_name == true) {
} else if ((this.ztvalue.value == 'SELF_PAY' || this.man_name == '1' )&& this.man_name != '2') {
this.selfPre()
} else {
this.qrjs()
......@@ -2034,7 +2043,7 @@ export default {
sy: this.is_sy,
source_type: this.payData.targetSys,
source_trade_no: this.payData.tradeNo,
is_gz: this.gz_name,
is_gz: this.man_name=='3'?true:false,
channel: this.channel,
xj_amount: this.xj_amount,
source_pay_amount: this.source_pay_amount,
......@@ -2257,34 +2266,43 @@ export default {
},
// 切换结算类型
changePersonType(x) {
if (x == '2') {
try {
var array = ['first', 'second', 'third', 'fourth']
// 执行到第3次,结束循环
this.tableData.cost.forEach(function (item, index) {
if (item.settle_type.value == '1') {
throw new Error('EndIterative')
}
})
} catch (e) {
this.$message({
message: '当前有剩余自费处方,请先结算自费处方',
if (this.form.insurance_type=='this.form.insurance_type' || this.man_name=='4') {
this.$message({
message: '省职或慢病患者请到15号医保审核窗口,审核后缴费',
type: 'error',
})
this.man_name=''
return false
}
var that = this
if (!that.cost_id || that.cost_id.length == 0) {
that.$message({
message: '请先选择待结算的处方',
type: 'error',
})
return false
}
this.resave_pation(this.personType)
that.tableData.patient.rqlb = that.personType
}
// if (x == '2') {
// try {
// var array = ['first', 'second', 'third', 'fourth']
// // 执行到第3次,结束循环
// this.tableData.cost.forEach(function (item, index) {
// if (item.settle_type.value == '1') {
// throw new Error('EndIterative')
// }
// })
// } catch (e) {
// this.$message({
// message: '当前有剩余自费处方,请先结算自费处方',
// type: 'error',
// })
// return false
// }
// var that = this
// if (!that.cost_id || that.cost_id.length == 0) {
// that.$message({
// message: '请先选择待结算的处方',
// type: 'error',
// })
// return false
// }
// this.resave_pation(this.personType)
// that.tableData.patient.rqlb = that.personType
// }
},
//获取自付比例
getProp(row) {
......@@ -2395,7 +2413,7 @@ export default {
settlementPre({
sy: this.is_sy,
channel: this.channel,
is_gz: this.gz_name,
is_gz: this.man_name=='3'?true:false,
injury_date: this.GSdatatime,
p_jbbm: this.selectTableArr[0]?.settle_type.is_mb ? zhenduan : '',
patient_id: this.patientData.patient_id,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment