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

feat(jiesuan): 优化病人信息展示和读卡逻辑

- 更新病人信息展示字段,如性别、身份证号等
- 添加共济账户余额和共济人员信息展示
- 修改读卡逻辑,使用新接口获取病人信息
- 优化结算确认界面的病人信息显示
- 调整支付相关接口的参数
parent 700b7047
...@@ -170,6 +170,7 @@ export const api = { ...@@ -170,6 +170,7 @@ export const api = {
preSettlementGetPatientInfo:'/api/patient/zy',//出院获取患者信 preSettlementGetPatientInfo:'/api/patient/zy',//出院获取患者信
recharge:'/outpatient-fees/pay/recharge',//出院获取患者信 recharge:'/outpatient-fees/pay/recharge',//出院获取患者信
outinvoicing:'/invoice/api/outinvoicing',//出院获取患者信 outinvoicing:'/invoice/api/outinvoicing',//出院获取患者信
findPatMasterIndexByReadCard:'/outpatient-fees/patMasterIndex/findPatMasterIndexByReadCard',//出院获取患者信
zyByIdCard:'/api/patient/zyByIdCard',//出院获取患者信 zyByIdCard:'/api/patient/zyByIdCard',//出院获取患者信
zyByInpatientNo:'/api/patient/zyByInpatientNo',//出院获取患者信 zyByInpatientNo:'/api/patient/zyByInpatientNo',//出院获取患者信
preSettlement:'/api/settlement',//出院获取患者信 preSettlement:'/api/settlement',//出院获取患者信
......
...@@ -17,3 +17,11 @@ export function outinvoicing (data) { ...@@ -17,3 +17,11 @@ export function outinvoicing (data) {
data data
}) })
} }
export function findPatMasterIndexByReadCard (data) {
return requestChange({
url: Vue.prototype.$api.jiesuan.findPatMasterIndexByReadCard,
method: 'post',
data
})
}
...@@ -8,16 +8,16 @@ ...@@ -8,16 +8,16 @@
<div class="userInfo_div" v-if="patientData.name"> <div class="userInfo_div" v-if="patientData.name">
<div class="userInfo_div_1"> <div class="userInfo_div_1">
<div class="userInfo_name">{{ patientData.name || '' }}</div> <div class="userInfo_name">{{ patientData.name || '' }}</div>
<div class="userInfo_sex">{{ patientData.sex ? patientData.sex.name : '' }}</div> <div class="userInfo_sex">{{ patientData.sex ? patientData.sex : '' }}</div>
<div class="userInfo_age">{{ patientData.age }}</div> <div class="userInfo_age">{{ patientData.age }}</div>
<div class="yibaoInfo_div"> <div class="yibaoInfo_div">
<div class="yibaoInfo_div_1">{{ patientData.cbd_type_name }}</div> <div class="yibaoInfo_div_1">{{ patientData.insuranceType }}</div>
<!-- <div class="yibaoInfo_div_1">{{ patientData.cbd_type=='1'?'济南':patientData.cbd_type=='2'?'省直':patientData.cbd_type=='3'?'省内异地':patientData.cbd_type=='4'?'省外异地':patientData.cbd_type=='0'?'自费':'' }}</div> --> <!-- <div class="yibaoInfo_div_1">{{ patientData.cbd_type=='1'?'济南':patientData.cbd_type=='2'?'省直':patientData.cbd_type=='3'?'省内异地':patientData.cbd_type=='4'?'省外异地':patientData.cbd_type=='0'?'自费':'' }}</div> -->
</div> </div>
<div class="yibaoInfo_div_2">就诊卡:{{ patientData.patient_id }}</div> <div class="yibaoInfo_div_2">就诊卡:{{ patientData.patientId }}</div>
<div class="yibaoInfo_div_2">身份证号:{{ patientData.id_card }}</div> <div class="yibaoInfo_div_2">身份证号:{{ patientData.idNo }}</div>
<div class="yibaoInfo_div_2">手机号:{{ patientData.phone }}</div> <div class="yibaoInfo_div_2">手机号:{{ patientData.nextOfKinPhone }}</div>
<div class="yibaoInfo_div_2">余额:{{ patientData.balance }}</div> <div class="yibaoInfo_div_2">余额:{{ patientData.balance ?patientData.balance: '0.00' }}</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -160,7 +160,7 @@ ...@@ -160,7 +160,7 @@
<div slot="title"> <div slot="title">
<span class="titles" style="color: #484848">结算确认</span <span class="titles" style="color: #484848">结算确认</span
><span style="color: #666666" ><span style="color: #666666"
>( 姓名:{{ patientData.name }} <span style="margin: 0px 10px"> 门诊号码: {{ patientData.patient_id }} </span>病人ID:{{ patientData.id_card }} >( 姓名:{{ patientData.name }} <span style="margin: 0px 10px"> 门诊号码: {{ patientData.patientId }} </span>病人ID:{{ patientData.patientId }}
<span style="color: red">{{ <span style="color: red">{{
man_name == '1' man_name == '1'
...@@ -199,7 +199,7 @@ ...@@ -199,7 +199,7 @@
<el-form-item> <el-form-item>
<div class="form_item"> <div class="form_item">
<el-tag class="label" color="#E7EEFF">人员类别</el-tag> <el-tag class="label" color="#E7EEFF">人员类别</el-tag>
<el-input v-model="patientData.type.name" disabled></el-input> <el-input v-model="patientData.insuranceType" disabled></el-input>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
...@@ -219,7 +219,7 @@ ...@@ -219,7 +219,7 @@
<el-form-item> <el-form-item>
<div class="form_item"> <div class="form_item">
<el-tag class="label" color="#E7EEFF">身份证号</el-tag> <el-tag class="label" color="#E7EEFF">身份证号</el-tag>
<el-input v-model="patientData.id_card" disabled></el-input> <el-input v-model="patientData.idNo" disabled></el-input>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
...@@ -664,7 +664,7 @@ import Readcards from '@/components/ReadcardsSFC' ...@@ -664,7 +664,7 @@ import Readcards from '@/components/ReadcardsSFC'
import editProp1 from './components/editProp' //修改自付比例 import editProp1 from './components/editProp' //修改自付比例
import { pdxx, mzxx, mzxxs, mzxxs_ewm, pdxq, info, bxxx, prescription, serviceInvoke, jsxx, hiscard, printmis, queryReadRard, verifyFeeStatus,diagnosis } from '@/api/mzSFC' import { pdxx, mzxx, mzxxs, mzxxs_ewm, pdxq, info, bxxx, prescription, serviceInvoke, jsxx, hiscard, printmis, queryReadRard, verifyFeeStatus,diagnosis } from '@/api/mzSFC'
import { get_serial_number, editProp, zfbl, freemoney, settlementPre, familybalanceinfor, patient, settleSelfPre, selfPre, yundaMis, familyBalance, get_zfbl } from '@/api/jiesuanSFC' import { get_serial_number, editProp, zfbl, freemoney, settlementPre, familybalanceinfor, patient, settleSelfPre, selfPre, yundaMis, familyBalance, get_zfbl } from '@/api/jiesuanSFC'
import { recharge } from '@/api/changeFree' import { recharge,findPatMasterIndexByReadCard } from '@/api/changeFree'
import printProof from '../../utils/print_proof' import printProof from '../../utils/print_proof'
import getLodop from '../../assets/js/LodopFuncs' import getLodop from '../../assets/js/LodopFuncs'
import SelectCard from '@/components/SelectCardSFC' import SelectCard from '@/components/SelectCardSFC'
...@@ -1319,7 +1319,7 @@ export default { ...@@ -1319,7 +1319,7 @@ export default {
this.gz_name = false this.gz_name = false
var obj = { var obj = {
channel: this.channel, channel: this.channel,
patient_id: this.patientData.patient_id, patient_id: this.patientData.patientId,
} }
pdxq(obj) pdxq(obj)
.then(response => { .then(response => {
...@@ -1336,7 +1336,7 @@ export default { ...@@ -1336,7 +1336,7 @@ export default {
async getdiagnosis(){ async getdiagnosis(){
this.diagnosisData='' this.diagnosisData=''
await diagnosis({ await diagnosis({
patient_id: this.patientData.patient_id, patient_id: this.patientData.patientId,
visit_no:this.selectTableArr[0].visit_no visit_no:this.selectTableArr[0].visit_no
}) })
.then(response => { .then(response => {
...@@ -1364,10 +1364,10 @@ export default { ...@@ -1364,10 +1364,10 @@ export default {
} }
}) })
// 医技预约channel=4不走审核 省职也要加审核 25-7-10 慢病审核] // 医技预约channel=4不走审核 省职也要加审核 25-7-10 慢病审核]
if ((this.channel != '4' && (this.man_name == '4' || (this.ismb && this.man_name == ''))) || (this.patientData.insurance_type.value == 'PROVINCE' && this.man_name != '1' && this.man_name != '3' && this.man_name != '5')) { if ((this.channel != '4' && (this.man_name == '4' || (this.ismb && this.man_name == ''))) || (this.patientData.insuranceType == '省直职工' && this.man_name != '1' && this.man_name != '3' && this.man_name != '5')) {
this.yujiesuanLoading = true this.yujiesuanLoading = true
const { code, data } = await verifyFeeStatus({ const { code, data } = await verifyFeeStatus({
patient_id: this.patientData.patient_id, patient_id: this.patientData.patientId,
serial_no: this.cost_id.toString(), serial_no: this.cost_id.toString(),
}) })
if (code == 200) { if (code == 200) {
...@@ -1603,7 +1603,7 @@ export default { ...@@ -1603,7 +1603,7 @@ export default {
operatorNo: this.jobNumber, operatorNo: this.jobNumber,
payType: this.payTypeData == '1' ? 'cumsNative' : this.payTypeData == '5' ? 'cash' : this.payTypeData == '2' ? '智慧医保' : '', // 支付类型 cumsNative 聚合支付 cash 现金 payType: this.payTypeData == '1' ? 'cumsNative' : this.payTypeData == '5' ? 'cash' : this.payTypeData == '2' ? '智慧医保' : '', // 支付类型 cumsNative 聚合支付 cash 现金
rechargeType: 0, // 是否预交金充值 1是 0否, rechargeType: 0, // 是否预交金充值 1是 0否,
patientId: this.patientData.patient_id, patientId: this.patientData.patientId,
deptCode: this.dept, deptCode: this.dept,
}, },
sy: this.is_sy, sy: this.is_sy,
...@@ -1615,7 +1615,7 @@ export default { ...@@ -1615,7 +1615,7 @@ export default {
// source_pay_amount: this.source_pay_amount, // source_pay_amount: this.source_pay_amount,
// tradeNo: this.payData?.tradeNo, // tradeNo: this.payData?.tradeNo,
family_type: this.familyType, family_type: this.familyType,
patient_id: this.patientData.patient_id, patient_id: this.patientData.patientId,
personal_pay: this.bxxxinfo.grzhzf, personal_pay: this.bxxxinfo.grzhzf,
family_pay: this.bxxxinfo.gjzhzf, family_pay: this.bxxxinfo.gjzhzf,
cash_pay: this.bxxxinfo.his_deduct_amount, cash_pay: this.bxxxinfo.his_deduct_amount,
...@@ -1738,7 +1738,7 @@ export default { ...@@ -1738,7 +1738,7 @@ export default {
if (array.length != 0) { if (array.length != 0) {
info({ info({
serial_no: cost_ids.toString(), serial_no: cost_ids.toString(),
patient_id: this.patientData.patient_id, patient_id: this.patientData.patientId,
settle_type: this.selectTableArr[0] ? this.selectTableArr[0].settle_type.code : '', settle_type: this.selectTableArr[0] ? this.selectTableArr[0].settle_type.code : '',
}) })
.then(response => { .then(response => {
...@@ -1777,7 +1777,7 @@ export default { ...@@ -1777,7 +1777,7 @@ export default {
if (array.length != 0) { if (array.length != 0) {
info({ info({
serial_no: cost_ids.toString(), serial_no: cost_ids.toString(),
patient_id: this.patientData.patient_id, patient_id: this.patientData.patientId,
settle_type: this.selectTableArr[0] ? this.selectTableArr[0].settle_type.code : '', settle_type: this.selectTableArr[0] ? this.selectTableArr[0].settle_type.code : '',
}) })
.then(response => { .then(response => {
...@@ -1816,7 +1816,7 @@ export default { ...@@ -1816,7 +1816,7 @@ export default {
if (array.length != 0) { if (array.length != 0) {
info({ info({
serial_no: cost_ids.toString(), serial_no: cost_ids.toString(),
patient_id: this.patientData.patient_id, patient_id: this.patientData.patientId,
settle_type: this.selectTableArr[0] ? this.selectTableArr[0].settle_type.code : '', settle_type: this.selectTableArr[0] ? this.selectTableArr[0].settle_type.code : '',
}) })
.then(response => { .then(response => {
...@@ -1887,10 +1887,10 @@ export default { ...@@ -1887,10 +1887,10 @@ export default {
//获取自付比例 //获取自付比例
getProp(row) { getProp(row) {
get_zfbl({ get_zfbl({
patient_id: this.patientData.patient_id, patient_id: this.patientData.patientId,
item_code: row.item_code, item_code: row.item_code,
//yltclb:row.settle_type.is_mb==true?'4':'6', //yltclb:row.settle_type.is_mb==true?'4':'6',
rqlb: this.is_sy ? 'E' : this.patientData.crowd_type, rqlb: this.is_sy ? 'E' : this.patientData.rqlb,
//xzbz:row.settle_type.is_gs==true?'D':'C', //xzbz:row.settle_type.is_gs==true?'D':'C',
settle_type: row.settle_type.code, settle_type: row.settle_type.code,
}) })
...@@ -1936,12 +1936,18 @@ export default { ...@@ -1936,12 +1936,18 @@ export default {
}) })
}, },
selectCardYiboInfo(e) { selectCardYiboInfo(e) {
patient({ findPatMasterIndexByReadCard({
card_no: this.cardNo, cardNo: e ? e.sfzh : '',
card_type: this.cardType, cardType: "4",
id_card: e ? e.sfzh : '', idNo:e ? e.sfzh : '',
operatorId: "8915",
patientId: "",
// card_no: this.cardNo,
// card_type: this.cardType,
// id_card: e ? e.sfzh : '',
}) })
.then(response => { .then(response => {
console.log(response.data,'ooooooooooo')
this.patientData = response.data this.patientData = response.data
this.getWaiting() this.getWaiting()
}) })
...@@ -1964,7 +1970,7 @@ export default { ...@@ -1964,7 +1970,7 @@ export default {
this.YBData.yfdxbzName=data.yfdxbz=='1'?'优抚对象' : ''; this.YBData.yfdxbzName=data.yfdxbz=='1'?'优抚对象' : '';
// 验证违规 // 验证违规
prescription({ prescription({
patient_id: this.patientData.patient_id, patient_id: this.patientData.patientId,
settle_type: this.selectTableArr[0] ? this.selectTableArr[0].settle_type.code : '', settle_type: this.selectTableArr[0] ? this.selectTableArr[0].settle_type.code : '',
prescription_nos: this.cost_id, prescription_nos: this.cost_id,
js_type: '1', js_type: '1',
...@@ -2032,7 +2038,7 @@ export default { ...@@ -2032,7 +2038,7 @@ export default {
: this.selectTableArr[0]?.settle_type.is_mb : this.selectTableArr[0]?.settle_type.is_mb
? zhenduan ? zhenduan
: '', : '',
patient_id: this.patientData.patient_id, patient_id: this.patientData.patientId,
cache_key: data.cache_key, cache_key: data.cache_key,
prescription_nos: this.cost_id, prescription_nos: this.cost_id,
is_mt: this.man_name == '5' ? true :this.man_name == '4' ? true : this.man_name == '3' ? false : this.man_name == '2' ? true : this.selectTableArr[0] ? this.selectTableArr[0].settle_type.is_mt : '', is_mt: this.man_name == '5' ? true :this.man_name == '4' ? true : this.man_name == '3' ? false : this.man_name == '2' ? true : this.selectTableArr[0] ? this.selectTableArr[0].settle_type.is_mt : '',
...@@ -2052,7 +2058,7 @@ export default { ...@@ -2052,7 +2058,7 @@ export default {
// this.GSshow = true // this.GSshow = true
// } // }
await familybalanceinfor({ await familybalanceinfor({
patient_id: this.patientData.patient_id, patient_id: this.patientData.patientId,
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 => {
...@@ -2137,7 +2143,7 @@ export default { ...@@ -2137,7 +2143,7 @@ export default {
this.source_pay_amount = 0 this.source_pay_amount = 0
this.form = {} this.form = {}
await settleSelfPre({ await settleSelfPre({
patient_id: this.patientData.patient_id, patient_id: this.patientData.patientId,
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 : '',
channel: this.channel, channel: this.channel,
...@@ -2252,7 +2258,7 @@ if (this.bxxxinfo.gjzhzf == '' || this.bxxxinfo.gjzhzf == null || this.bxxxinfo. ...@@ -2252,7 +2258,7 @@ if (this.bxxxinfo.gjzhzf == '' || this.bxxxinfo.gjzhzf == null || this.bxxxinfo.
</div> </div>
<div style="margin:-5px 0px 0px 18px;position: relative"> <div style="margin:-5px 0px 0px 18px;position: relative">
<div class="conline"><span>姓名:</span><span class="money">${this.patientData.name}</span></div> <div class="conline"><span>姓名:</span><span class="money">${this.patientData.name}</span></div>
<div class="conline"><span>性别:</span><span class="money">${this.patientData.sex ? this.patientData.sex.name : ''}</span></div> <div class="conline"><span>性别:</span><span class="money">${this.patientData.sex ? this.patientData.sex : ''}</span></div>
<div class="conline"><span>年龄:</span><span class="money">${this.patientData.age}</span></div> <div class="conline"><span>年龄:</span><span class="money">${this.patientData.age}</span></div>
<div class="conline"><span>就诊卡号:</span><span class="money">${e.id_card}</span></div> <div class="conline"><span>就诊卡号:</span><span class="money">${e.id_card}</span></div>
<div class="conline"><span>交易方式:</span><span class="money">${e.trade_type}</span></div> <div class="conline"><span>交易方式:</span><span class="money">${e.trade_type}</span></div>
...@@ -2336,7 +2342,7 @@ if (this.bxxxinfo.gjzhzf == '' || this.bxxxinfo.gjzhzf == null || this.bxxxinfo. ...@@ -2336,7 +2342,7 @@ if (this.bxxxinfo.gjzhzf == '' || this.bxxxinfo.gjzhzf == null || this.bxxxinfo.
operatorNo: this.jobNumber, operatorNo: this.jobNumber,
payType: this.payTypeData == '1' ? 'cumsNative' : this.payTypeData == '5' ? 'cash' : this.payTypeData == '2' ? '智慧医保' : '', // 支付类型 cumsNative 聚合支付 cash 现金 payType: this.payTypeData == '1' ? 'cumsNative' : this.payTypeData == '5' ? 'cash' : this.payTypeData == '2' ? '智慧医保' : '', // 支付类型 cumsNative 聚合支付 cash 现金
rechargeType: 0, // 是否预交金充值 1是 0否, rechargeType: 0, // 是否预交金充值 1是 0否,
patientId: this.patientData.patient_id, patientId: this.patientData.patientId,
deptCode: this.dept, deptCode: this.dept,
}, },
// source_type: this.payData?.targetSys, // source_type: this.payData?.targetSys,
...@@ -2345,7 +2351,7 @@ if (this.bxxxinfo.gjzhzf == '' || this.bxxxinfo.gjzhzf == null || this.bxxxinfo. ...@@ -2345,7 +2351,7 @@ if (this.bxxxinfo.gjzhzf == '' || this.bxxxinfo.gjzhzf == null || this.bxxxinfo.
// xj_amount: this.xj_amount, // xj_amount: this.xj_amount,
// source_pay_amount: this.source_pay_amount, // source_pay_amount: this.source_pay_amount,
// tradeNo: this.payData.tradeNo, // tradeNo: this.payData.tradeNo,
patient_id: this.patientData.patient_id, patient_id: this.patientData.patientId,
personal_pay: this.bxxxinfo.grzhzf, personal_pay: this.bxxxinfo.grzhzf,
family_pay: this.bxxxinfo.gjzhzf, family_pay: this.bxxxinfo.gjzhzf,
cash_pay: this.bxxxinfo.his_deduct_amount, cash_pay: this.bxxxinfo.his_deduct_amount,
......
...@@ -111,13 +111,13 @@ ...@@ -111,13 +111,13 @@
<el-form-item> <el-form-item>
<div class="form_item"> <div class="form_item">
<el-tag class="label" color="#E7EEFF" style="color: #1a5bfd; font-weight: 600">共济账户余额</el-tag> <el-tag class="label" color="#E7EEFF" style="color: #1a5bfd; font-weight: 600">共济账户余额</el-tag>
<el-input v-model="patientData.gjzhye" disabled></el-input> <el-input v-model="patientData.family_data.je" disabled></el-input>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<div class="form_item"> <div class="form_item">
<el-tag class="label" color="#E7EEFF" style="color: #1a5bfd; font-weight: 600"></el-tag> <el-tag class="label" color="#E7EEFF" style="color: #1a5bfd; font-weight: 600">共济人员</el-tag>
<el-input v-model="patientData.gjzhye" disabled></el-input> <el-input v-model="patientData.family_data.xm" disabled></el-input>
</div> </div>
</el-form-item> </el-form-item>
</div> </div>
...@@ -148,7 +148,9 @@ export default { ...@@ -148,7 +148,9 @@ export default {
}, },
data() { data() {
return { return {
patientData: {}, patientData: {
family_data:[]
},
tempsrc: require('@/assets/images/暂无记录.png'), tempsrc: require('@/assets/images/暂无记录.png'),
logo: require('@/assets/logo/CardReader.gif'), logo: require('@/assets/logo/CardReader.gif'),
...@@ -188,7 +190,9 @@ export default { ...@@ -188,7 +190,9 @@ export default {
cardtype() { cardtype() {
this.allLoading=false this.allLoading=false
this.carddialogFormVisible = true this.carddialogFormVisible = true
this.patientData = {} this.patientData = {
family_data:[]
}
}, },
//首次进页面第一次刷卡返回的信息 //首次进页面第一次刷卡返回的信息
getyibaoinfo(e, x) { getyibaoinfo(e, x) {
...@@ -210,6 +214,9 @@ export default { ...@@ -210,6 +214,9 @@ export default {
this.patientData.yfdxbzName= this.patientData.yfdxbz== '' ? '' : this.patientData.yfdxbz this.patientData.yfdxbzName= this.patientData.yfdxbz== '' ? '' : this.patientData.yfdxbz
this.patientData.yfdxbzNameType=response.data.yfdxbzName == '1' ? '优抚对象' : '' this.patientData.yfdxbzNameType=response.data.yfdxbzName == '1' ? '优抚对象' : ''
this.patientData.rqlbName=this.patientData.rqlb == 'A' ? '职工' : '居民' this.patientData.rqlbName=this.patientData.rqlb == 'A' ? '职工' : '居民'
if (response.data.family_data instanceof Array) {
this.patientData.family_data={}
}
}) })
.catch(e => { .catch(e => {
this.allLoading=false this.allLoading=false
......
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