Commit 99e7a4f3 authored by 任鸿志's avatar 任鸿志

fix(settlement): 修复省外异地患者结算问题

- 修改患者信息接口 URL
- 增加日志输出以便调试
- 优化读卡组件加载状态管理
- 修正异地患者个人账户支付逻辑
parent e87d4fa5
...@@ -8,12 +8,12 @@ NODE_ENV = 'development' ...@@ -8,12 +8,12 @@ NODE_ENV = 'development'
VUE_APP_BASE_API = '' VUE_APP_BASE_API = ''
# VUE_APP_BASE_URL = 'http://192.169.24.231:8002' # VUE_APP_BASE_URL = 'http://192.169.24.231:8002'
# VUE_APP_BASE_URL = 'http://10.10.9.219:9902' # VUE_APP_BASE_URL = 'http://10.10.9.219:9902'
# VUE_APP_BASE_URL = 'http://10.10.40.69:9903' VUE_APP_BASE_URL = 'http://10.10.40.69:9903'
VUE_APP_BASE_URL_change = 'http://10.10.8.230:6200/fancy' VUE_APP_BASE_URL_change = 'http://10.10.8.230:6200/fancy'
# VUE_APP_BASE_URL = 'http://127.0.0.1:9902' # VUE_APP_BASE_URL = 'http://127.0.0.1:9902'
VUE_APP_BASE_URL = 'http://10.10.9.219:8802' # VUE_APP_BASE_URL = 'http://10.10.9.219:8802'
# VUE_APP_BASE_URL = 'http://10.10.9.219:9902' # VUE_APP_BASE_URL = 'http://10.10.9.219:9902'
VUE_APP_BASE_URL_SFC = 'http://10.10.9.219:8802' VUE_APP_BASE_URL_SFC = 'http://10.10.40.69:9903'
# VUE_APP_BASE_URL_SFC = 'http://127.0.0.1:9902' # VUE_APP_BASE_URL_SFC = 'http://127.0.0.1:9902'
# VUE_APP_BASE_URL = 'http://192.169.4.171:8002' # VUE_APP_BASE_URL = 'http://192.169.4.171:8002'
# VUE_APP_BASE_URL = 'http://10.10.40.10:8099' # VUE_APP_BASE_URL = 'http://10.10.40.10:8099'
......
...@@ -263,6 +263,7 @@ export function hisybbalance (data) { ...@@ -263,6 +263,7 @@ export function hisybbalance (data) {
}) })
} }
export function patient (data) { export function patient (data) {
console.log(data,'ppppppppppppppppppp')
return request({ return request({
// url: `${Vue.prototype.$api.jiesuan.settlementPre}/${patient_id}`, // url: `${Vue.prototype.$api.jiesuan.settlementPre}/${patient_id}`,
url: `/api/patient/${data.card_no}`, url: `/api/patient/${data.card_no}`,
......
...@@ -264,9 +264,10 @@ export function hisybbalance (data) { ...@@ -264,9 +264,10 @@ export function hisybbalance (data) {
}) })
} }
export function patient (data) { export function patient (data) {
console.log(data,'ppppppppppppppppppp')
return requestSFC({ return requestSFC({
// url: `${Vue.prototype.$api.jiesuan.settlementPre}/${patient_id}`, // url: `${Vue.prototype.$api.jiesuan.settlementPre}/${patient_id}`,
url: `/api/patient/${data.card_no}`, url: `/api/patient/${data.id_card}`,
method: 'get', method: 'get',
params:data params:data
}) })
......
...@@ -306,6 +306,7 @@ export default { ...@@ -306,6 +306,7 @@ export default {
// 读取M1卡 // 读取M1卡
if (data) { if (data) {
if (data?.RespData) { if (data?.RespData) {
this.jiezhiLoading=true
this.PatientInfo = data.RespData this.PatientInfo = data.RespData
this.form.physicalCardType = 'HOSPITAL_CARD' this.form.physicalCardType = 'HOSPITAL_CARD'
if (data.RespData?.AsciiData) { if (data.RespData?.AsciiData) {
...@@ -323,6 +324,7 @@ export default { ...@@ -323,6 +324,7 @@ export default {
// 读取身份证号 // 读取身份证号
if (data) { if (data) {
if (data?.RespData) { if (data?.RespData) {
this.jiezhiLoading=true
this.PatientInfo = data.RespData this.PatientInfo = data.RespData
this.form.physicalCardType = 'ID_CARD' this.form.physicalCardType = 'ID_CARD'
...@@ -343,6 +345,7 @@ export default { ...@@ -343,6 +345,7 @@ export default {
// 读取社保卡 // 读取社保卡
if (data) { if (data) {
if (data?.RespData) { if (data?.RespData) {
this.jiezhiLoading=true
this.PatientInfo = data.RespData this.PatientInfo = data.RespData
this.form.physicalCardType = 'ID_CARD' this.form.physicalCardType = 'ID_CARD'
if (data.RespData?.CardNo) { if (data.RespData?.CardNo) {
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,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-form element-loading-text="刷卡中,请稍后" element-loading-spinner="el-icon-loading" @submit.native.prevent> <el-form element-loading-text="刷卡中,请稍后" element-loading-spinner="el-icon-loading" @submit.native.prevent v-loading="jiezhiLoading">
<el-form-item> <el-form-item>
<el-input ref="cardInput" v-model.trim="form.physicalCard" style="width: 282px;margin-left: 10px; " <el-input ref="cardInput" v-model.trim="form.physicalCard" style="width: 282px;margin-left: 10px; "
placeholder="请输入卡号" @blur="handleSetFocus()" @keyup.enter.native="handleEnterModal()" /> placeholder="请输入卡号" @blur="handleSetFocus()" @keyup.enter.native="handleEnterModal()" />
...@@ -37,6 +37,7 @@ export default { ...@@ -37,6 +37,7 @@ export default {
}, },
data() { data() {
return { return {
jiezhiLoading:false,
listinfo:{ listinfo:{
type:'', type:'',
...@@ -61,7 +62,7 @@ export default { ...@@ -61,7 +62,7 @@ export default {
this.isOpenCardeds = v this.isOpenCardeds = v
if (v === true) { if (v === true) {
this.$nextTick(() => { this.$nextTick(() => {
this.jiezhiLoading=false
this.form.physicalCard = '' this.form.physicalCard = ''
this.form={} this.form={}
this.$refs.cardInput.focus() this.$refs.cardInput.focus()
...@@ -108,6 +109,7 @@ export default { ...@@ -108,6 +109,7 @@ export default {
}, },
// 输入框回车事件 // 输入框回车事件
handleEnterModal() { handleEnterModal() {
this.jiezhiLoading = true
if(this.form.physicalCard.toString().length === 11){ if(this.form.physicalCard.toString().length === 11){
this.form.physicalCard= this.form.physicalCard.substring(3) this.form.physicalCard= this.form.physicalCard.substring(3)
this.form.physicalCardType = 'PATIENT_ID' this.form.physicalCardType = 'PATIENT_ID'
...@@ -238,6 +240,7 @@ export default { ...@@ -238,6 +240,7 @@ export default {
// 读取M1卡 // 读取M1卡
if (data) { if (data) {
if (data?.RespData) { if (data?.RespData) {
this.jiezhiLoading=true
this.PatientInfo = data.RespData this.PatientInfo = data.RespData
this.form.physicalCardType = 'HOSPITAL_CARD' this.form.physicalCardType = 'HOSPITAL_CARD'
if (data.RespData?.AsciiData) { if (data.RespData?.AsciiData) {
...@@ -257,6 +260,7 @@ export default { ...@@ -257,6 +260,7 @@ export default {
// 读取身份证号 // 读取身份证号
if (data) { if (data) {
if (data?.RespData) { if (data?.RespData) {
this.jiezhiLoading=true
this.PatientInfo = data.RespData this.PatientInfo = data.RespData
this.form.physicalCardType = 'ID_CARD' this.form.physicalCardType = 'ID_CARD'
if (data.RespData?.CardId) { if (data.RespData?.CardId) {
...@@ -275,6 +279,7 @@ export default { ...@@ -275,6 +279,7 @@ export default {
// 读取社保卡 // 读取社保卡
if (data) { if (data) {
if (data?.RespData) { if (data?.RespData) {
this.jiezhiLoading=true
this.PatientInfo = data.RespData this.PatientInfo = data.RespData
this.form.physicalCardType = 'SOCIAL_CARD' this.form.physicalCardType = 'SOCIAL_CARD'
if (data.RespData?.CardNo) { if (data.RespData?.CardNo) {
......
...@@ -2582,14 +2582,21 @@ export default { ...@@ -2582,14 +2582,21 @@ export default {
this.bxxxinfo.grzhzf = djf this.bxxxinfo.grzhzf = djf
if (this.bxxxinfo.personal_pay_syd * 1 != 0) { if (this.bxxxinfo.personal_pay_syd * 1 != 0) {
this.bxxxinfo.grzhzf = this.bxxxinfo.personal_pay_syd this.bxxxinfo.grzhzf = this.bxxxinfo.personal_pay_syd
} }
if (this.form.insurance_type == 'LONGDISTANCE' &&this.bxxxinfo.personal_pay_syd * 1 == 0) {
this.bxxxinfo.grzhzf = 0
}
} }
if (this.bxxxinfo.personal_balance < djf) { if (this.bxxxinfo.personal_balance < djf) {
this.bxxxinfo.grzhzf = this.bxxxinfo.personal_balance this.bxxxinfo.grzhzf = this.bxxxinfo.personal_balance
// 省外异地患者预结算异地不为0,个账为异地值,异地为0,个账为0
if (this.bxxxinfo.personal_pay_syd * 1 != 0) { if (this.bxxxinfo.personal_pay_syd * 1 != 0) {
this.bxxxinfo.grzhzf = this.bxxxinfo.personal_pay_syd this.bxxxinfo.grzhzf = this.bxxxinfo.personal_pay_syd
} }
if (this.form.insurance_type == 'LONGDISTANCE' &&this.bxxxinfo.personal_pay_syd * 1 == 0) {
this.bxxxinfo.grzhzf = 0
}
// if (this.form.insurance_type == 'LONGDISTANCE') { // if (this.form.insurance_type == 'LONGDISTANCE') {
// this.bxxxinfo.grzhzf = 0 // this.bxxxinfo.grzhzf = 0
// } // }
......
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