Commit 80228ad4 authored by 任鸿志's avatar 任鸿志

build(.env.development): 更新 SFC 服务地址

- 将 VUE_APP_BASE_URL_SFC 从 'http://10.10.9.219:8802' 修改为 'http://10.10.40.69:9903'
- 注释掉原来的 SFC 服务地址
parent bad6abb4
...@@ -13,8 +13,8 @@ VUE_APP_BASE_URL_change = 'http://10.10.8.230:6200/fancy' ...@@ -13,8 +13,8 @@ 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.9.219:8802'
# VUE_APP_BASE_URL_SFC = 'http://127.0.0.1:9902' VUE_APP_BASE_URL_SFC = 'http://10.10.40.69:9903'
# 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'
# VUE_APP_BASE_URL = 'http://newfinance.fanxyinfo.cn' # VUE_APP_BASE_URL = 'http://newfinance.fanxyinfo.cn'
......
...@@ -86,8 +86,8 @@ ...@@ -86,8 +86,8 @@
</el-table> </el-table>
</div> </div>
<div class="box-card-right"> <div class="box-card-right">
<div class="box_card_title" style="margin-bottom: 30px;"> <div class="box_card_title" style="margin-bottom: 30px">
<div @click="addEventListener()" >费用明细</div> <div @click="addEventListener()">费用明细</div>
<div><el-button type="primary" size="mini" round @click="jshistory">结算历史</el-button></div> <div><el-button type="primary" size="mini" round @click="jshistory">结算历史</el-button></div>
</div> </div>
<!-- <div class="selectinput"> <!-- <div class="selectinput">
...@@ -666,6 +666,7 @@ export default { ...@@ -666,6 +666,7 @@ export default {
name: 'Outpatient', name: 'Outpatient',
data() { data() {
return { return {
payTypeData: '',
zhenduanData: '', zhenduanData: '',
zifei_disable: false, zifei_disable: false,
is_sy: false, is_sy: false,
...@@ -702,9 +703,7 @@ export default { ...@@ -702,9 +703,7 @@ export default {
cardType: '', // 卡类型 cardType: '', // 卡类型
patientData: { patientData: {
type: {}, type: {},
settle_type: { settle_type: '',
name: '',
},
}, },
tableDataList: [], tableDataList: [],
only_qq: 0, only_qq: 0,
...@@ -895,7 +894,7 @@ export default { ...@@ -895,7 +894,7 @@ export default {
} }
}, },
mounted() { mounted() {
this.socketInit() // this.socketInit()
}, },
created() { created() {
this.jobNumber = this.$route.query?.jobNumber || '' this.jobNumber = this.$route.query?.jobNumber || ''
...@@ -932,15 +931,15 @@ export default { ...@@ -932,15 +931,15 @@ export default {
}, 1000) }, 1000)
}, },
watch: { watch: {
gjzhzfje: { // gjzhzfje: {
handler: function (nv, ov) { // handler: function (nv, ov) {
if (nv) { // if (nv) {
this.getFamilyBalance() // this.getFamilyBalance()
} // }
}, // },
immediate: true, // immediate: true,
deep: true, // deep: true,
}, // },
}, },
methods: { methods: {
invoicepostSuccess() { invoicepostSuccess() {
...@@ -974,11 +973,7 @@ export default { ...@@ -974,11 +973,7 @@ export default {
this.ViolationShow = false this.ViolationShow = false
this.dialogVisible = true this.dialogVisible = true
}, },
format(percentage) { // 通知his结算完成
if (percentage === 50) {
return ''
}
},
addEventListener() { addEventListener() {
var message = { key: 'true' } // 要发送的数据 var message = { key: 'true' } // 要发送的数据
window.parent.postMessage(message, '*') window.parent.postMessage(message, '*')
...@@ -1056,43 +1051,6 @@ export default { ...@@ -1056,43 +1051,6 @@ export default {
this.loading = false this.loading = false
}) })
}, },
//轮巡匹配自付比例
Match() {
if (this.patientCard.rqlb != 'A' && this.patientCard.rqlb != 'B') {
this.$message.error('该患者未登记人群类别,请先进行登记!')
return false
}
this.costlist.forEach(element => {
zfbl({
is_self: this.patientInfo.yblx == '自费' ? '1' : '0',
yyxmbm: element.yyxmbm,
rqlb: this.patientCard.rqlb,
id: element.id,
fyfssj: element.fysfsj,
channel: this.patientCard.channel,
})
.then(response => {
if (response.data.length == 1) {
element.sxzfbl = response.data[0].zfbl
}
if (response.data.length > 1) {
element.many = '1'
var min = response.data[0].zfbl
for (let i = 0; i < response.data.length; i++) {
if (min > response.data[i].zfbl) {
min = response.data[i].zfbl
}
}
element.sxzfbl = min
}
this.resave(element.id, element.sxzfbl)
})
.finally(() => {
this.loading = false
})
})
},
//当共济支付开关打开时,其他额度根据共济变动 //当共济支付开关打开时,其他额度根据共济变动
gjzhifu(e) { gjzhifu(e) {
this.$forceUpdate() this.$forceUpdate()
...@@ -1151,35 +1109,7 @@ export default { ...@@ -1151,35 +1109,7 @@ export default {
this.$refs.inputZFB.focus() this.$refs.inputZFB.focus()
}) })
}, },
//读卡器方法
socketInit() {
this.wj = new WebSocket('ws://127.0.0.1:6932/')
this.wj.onopen = function () {}
this.wj.onmessage = this.onmessagecard
this.wj.onclose = function () {}
},
//退款结果
reimResult(evt) {
const ret = JSON.parse(evt.data)
if (ret && ret.TrandeCode == '00') {
this.$message({
message: ret.TrandeMsg,
type: 'success',
})
} else {
this.$message({
message: ret.TrandeMsg,
type: 'error',
})
//关闭弹窗
this.fullscreenLoading = false
this.dialogVisible = false
this.sureshow = false
this.loadingapplyList = false
this.jeizhishow = false
this.jiezhiLoading = false
}
},
//结算历史关闭 //结算历史关闭
cardcolsein() { cardcolsein() {
this.cardlist = false this.cardlist = false
...@@ -1229,25 +1159,26 @@ export default { ...@@ -1229,25 +1159,26 @@ export default {
feesure(e) { feesure(e) {
this.cash_disable = true this.cash_disable = true
this.fullscreenLoading = true this.fullscreenLoading = true
this.payTypeData = e
console.log(e, 'kkkkkkkkkkkk')
if (e == '1' || e == '5' || e == '2') { if (e == '1' || e == '5' || e == '2') {
// return false // return false
recharge({ // recharge({
amount: this.form.djf, // amount: this.form.djf,
authCode: this.fee.weixin, // authCode: this.fee.weixin,
operatorNo: this.jobNumber, // operatorNo: this.jobNumber,
payType: e == '1' ? 'cumsNative' : e == '5' ? 'cash' : e == '2' ? '智慧医保' : '', // 支付类型 cumsNative 聚合支付 cash 现金 // payType: e == '1' ? 'cumsNative' : e == '5' ? 'cash' : e == '2' ? '智慧医保' : '', // 支付类型 cumsNative 聚合支付 cash 现金
rechargeType: 0, // 是否预交金充值 1是 0否, // rechargeType: 0, // 是否预交金充值 1是 0否,
patientId: this.patientData.patient_id, // patientId: this.patientData.patient_id,
deptCode: this.dept, // deptCode: this.dept,
}) // })
.then(response => { // .then(response => {
if (response.code == 200) { // if (response.code == 200) {
this.$message({ // this.$message({
message: response.message, // message: response.message,
type: 'success', // type: 'success',
}) // })
this.payData = response.data.result // this.payData = response.data.result
if (e == '1') { if (e == '1') {
this.xj_amount = 0 this.xj_amount = 0
this.source_pay_amount = this.form.djf this.source_pay_amount = this.form.djf
...@@ -1259,10 +1190,11 @@ export default { ...@@ -1259,10 +1190,11 @@ export default {
// this.bxxxinfo.cash_balance = this.bxxxinfo.cash_balance+ this.form.djf//response.data.hisBalance * 1 // this.bxxxinfo.cash_balance = this.bxxxinfo.cash_balance+ this.form.djf//response.data.hisBalance * 1
// this.bxxxinfo.his_deduct_amount = this.form.djf + this.bxxxinfo.his_deduct_amount // this.bxxxinfo.his_deduct_amount = this.form.djf + this.bxxxinfo.his_deduct_amount
this.form.djf = 0 this.form.djf = 0
let djsold = this.round(this.bxxxinfo.brfdje - this.bxxxinfo.grzhzf, 2) let djsold = this.round(this.bxxxinfo.patient_burden - this.bxxxinfo.grzhzf, 2)
let chongzhi = this.source_pay_amount * 1 + this.xj_amount * 1 let chongzhi = this.source_pay_amount * 1 + this.xj_amount * 1
//充值成功后的代缴费金额 //充值成功后的代缴费金额
this.form.djf = this.round(this.round(this.round(djsold - this.bxxxinfo.his_deduct_amount, 2) - this.bxxxinfo.gjzhzf, 2) - chongzhi, 2) //this.round(- chongzhi, 2) this.form.djf = this.round(this.round(this.round(djsold - this.bxxxinfo.his_deduct_amount, 2) - this.bxxxinfo.gjzhzf, 2) - chongzhi, 2) //this.round(- chongzhi, 2)
console.log(this.bxxxinfo, this.bxxxinfo.patient_burden, this.bxxxinfo.grzhzf, 'ooooooooooooooooooooooo')
//微信支付宝弹窗 //微信支付宝弹窗
this.uploadfeeshow = false this.uploadfeeshow = false
// 总的大弹窗 // 总的大弹窗
...@@ -1270,70 +1202,29 @@ export default { ...@@ -1270,70 +1202,29 @@ export default {
//结算 //结算
// this.qrjs() // this.qrjs()
this.qrjsmiss('1') this.qrjsmiss('1')
} else { // } else {
this.$message({ // this.$message({
message: response.message, // message: response.message,
type: 'error', // type: 'error',
}) // })
} // }
}) // })
.finally(() => { // .finally(() => {
this.cash_disable = false // this.cash_disable = false
this.fee.weixin = '' // this.fee.weixin = ''
//微信支付宝弹窗
this.uploadfeeshow = false
// 总的大弹窗
this.fullscreenLoading = false
})
}
// if (e == '5') {
// this.source_pay_amount = 0
// this.xj_amount = this.form.djf
// let chongzhi = this.source_pay_amount * 1 + this.xj_amount * 1
// // this.bxxxinfo.his_balance = response.data.his_balance * 1
// let djsold = this.round(this.bxxxinfo.brfdje - this.bxxxinfo.grzhzf, 2)
// this.form.djf = this.round(this.round(this.round(djsold - this.bxxxinfo.his_deduct_amount, 2) - this.bxxxinfo.gjzhzf, 2) - chongzhi, 2)
// // this.qrjs()
// this.qrjsmiss('1')
// //微信支付宝弹窗 // //微信支付宝弹窗
// this.uploadfeeshow = false // this.uploadfeeshow = false
// // 总的大弹窗 // // 总的大弹窗
// this.fullscreenLoading = false // this.fullscreenLoading = false
// } // })
// if (this.feelist.channel == '3') { }
// this.get_serial_number('3')
// }
}, },
//本地刷医保卡和电子医保凭证方法 //本地刷医保卡和电子医保凭证方法
cardjiesuan() { cardjiesuan() {
this.jeizhishow = false this.jeizhishow = false
this.qrjs('1') this.qrjs('1')
}, },
//医保卡返回方法
YBKsetOnmessageMessage(evt) {
const ret = JSON.parse(evt.data)
if (ret && ret.TrandeCode == '00') {
this.$message({
message: ret.TrandeMsg,
type: 'success',
})
this.ckh = ret.TradeRef
this.misdataYB = ret
this.qrjs(ret)
this.fullscreenLoading = false
this.jeizhishow = false
} else {
this.$message({
message: ret.TrandeMsg,
type: 'error',
})
this.fullscreenLoading = false
this.dialogVisible = false
this.sureshow = false
this.jeizhishow = false
}
},
//选中左边处方,展示右边方法 //选中左边处方,展示右边方法
seletei(e) { seletei(e) {
this.man_name = '' this.man_name = ''
...@@ -1364,237 +1255,6 @@ export default { ...@@ -1364,237 +1255,6 @@ export default {
that.feelist.channel = e that.feelist.channel = e
that.uploadfeeshow = true that.uploadfeeshow = true
}, },
//刷卡回调方法
onmessagecard(evt) {
let res = JSON.parse(evt.data)
// 赋值调接口
if (res.MethodName == 'ReadIDCard' && res.RespCode == 0) {
// 身份证读取
this.yibaoinfo.cardno = res.RespData.CardId
this.getmzxx('1')
this.closedevice()
} else if (res.MethodName == 'ReadSSSECard' && res.RespCode == 0) {
// 社保卡读取
if (this.yibaoinfo.channel == 'offsite') {
this.yibaoinfo.cardno = res.RespData.sfzh
} else {
this.yibaoinfo.idcard = res.RespData.CardNo
}
this.yibaoinfo.xm = res.RespData.xm
this.yibaoinfo.p_sbm = res.RespData.ksbm
this.yibaoinfo.sfzhm = res.RespData.sfzh
this.getmzxx('2')
this.closedevice()
} else {
return false
}
},
// 关闭设备
closedevice() {
this.wj.send('{ "MethodName": "CloseDevice" }')
},
//刷卡后获取患者信息
getmzxx(e) {
if (e == '1') {
if (this.shenfenzheng != '') {
this.yibaoinfo.cardno = this.shenfenzheng
}
this.param = {
grbh: this.yibaoinfo.cardno,
p_xzbz: this.typelistno == '4' ? 'D' : 'C',
yltclb: '0',
channel: this.patientInfo.channel,
card_type: this.yibaoinfo.cardtype,
from_web: '1',
}
mzxx(this.param)
.then(response => {
this.yibaoshow = false
this.loading = false
this.patientInfo = response.data
this.form.sfzh = response.data.grbh
this.form.dwmc = response.data.cbjgmc
this.form.ybkh = response.data.ybbh
this.form.brxm = response.data.xm
this.form.brxb = response.data.xb == '2' ? '' : ''
this.jiesuanadmin(this.patientInfo.cache_uuid)
})
.catch(e => {
this.loading = false
})
}
if (e == '2' && this.yibaoinfo.channel == 'offsite') {
// if (this.shenfenzheng != '') {
// this.yibaoinfo.cardno = this.yibaoka
// }
this.param = {
grbh: this.yibaoinfo.cardno,
p_xzbz: this.typelistno == '4' ? 'D' : 'C',
yltclb: '0',
channel: this.patientInfo.channel,
card_type: '02',
from_web: '1',
}
mzxx(this.param)
.then(response => {
this.yibaoshow = false
this.patientInfo = response.data
this.form.sfzh = response.data.grbh
this.form.brxm = response.data.xm
this.form.dwmc = response.data.cbjgmc
this.form.ybkh = response.data.ybbh
this.form.brxb = response.data.xb == '2' ? '' : ''
this.tableData.patient.rqlb = response.data.rqlb
this.jiesuanadmin(this.patientInfo.cache_uuid)
})
.finally(() => {
this.dialogFormVisible = false
})
}
//不是跨省异地的身份证
if (e == '2' && this.yibaoinfo.channel != 'offsite') {
this.param = {
p_xm: this.yibaoinfo.xm,
p_sbm: this.yibaoinfo.p_sbm,
p_gfbb: '03',
p_shbzhm: this.yibaoinfo.sfzhm,
p_kh: this.yibaoinfo.idcard,
channel: this.patientInfo.channel,
p_dzpzywm: '301',
card_type: this.yibaoinfo.cardtype,
from_web: '1',
}
mzxxs(this.param)
.then(response => {
this.yibaoshow = false
this.patientInfo = response.data
this.form.sfzh = response.data.grbh
this.form.brxm = response.data.xm
this.form.brxb = response.data.xb == '2' ? '' : ''
this.form.dwmc = response.data.cbjgmc
this.form.ybkh = response.data.ybbh
this.tableData.patient.rqlb = response.data.rqlb
this.jiesuanadmin(this.patientInfo.cache_uuid)
})
.finally(() => {
this.dialogFormVisible = false
})
}
//第二次读医保二维码
if (e == '3') {
this.param = {
p_ewm: this.adminpingzhengma,
p_dzpzywm: '301',
channel: this.patientInfo.channel,
card_type: '01',
from_web: '1',
}
mzxxs(this.param)
.then(response => {
this.yibaoshow = false
this.patientInfo = response.data
this.form.sfzh = response.data.grbh
this.form.brxm = response.data.xm
this.form.brxb = response.data.xb == '2' ? '' : ''
this.form.dwmc = response.data.cbjgmc
this.form.ybkh = response.data.ybbh
this.jiesuanadmin(this.patientInfo.cache_uuid)
})
.finally(() => {
this.loading = false
})
}
//就诊卡
if (e == '4') {
this.param = {
card_no: this.jiuzhencard,
card_type: 'HOSPITAL_CARD',
}
hiscard(this.param)
.then(response => {
this.param = {
grbh: response.data.idCard,
p_xzbz: this.typelistno == '4' ? 'D' : 'C',
yltclb: '0',
channel: this.patientInfo.channel,
card_type: this.yibaoinfo.cardtype,
from_web: '1',
}
mzxx(this.param)
.then(response => {
this.yibaoshow = false
this.patientInfo = response.data
this.form.sfzh = response.data.grbh
this.form.brxm = response.data.xm
this.form.brxb = response.data.xb == '2' ? '' : ''
this.form.dwmc = response.data.cbjgmc
this.form.ybkh = response.data.ybbh
this.jiesuanadmin(this.patientInfo.cache_uuid)
})
.finally(() => {
this.loading = false
})
})
.finally(() => {
this.loading = false
})
}
//电子健康卡
if (e == '5') {
this.param = {
card_no: this.jiuzhencard.toString().substring(0, 64),
card_type: 'ELECTRONIC_HEALTH_CARD',
}
hiscard(this.param)
.then(response => {
this.param = {
grbh: response.data.idCard,
p_xzbz: this.typelistno == '4' ? 'D' : 'C',
yltclb: '0',
channel: this.patientInfo.channel,
card_type: this.yibaoinfo.cardtype,
from_web: '1',
}
mzxx(this.param)
.then(response => {
this.patientInfo = response.data
this.form.sfzh = response.data.grbh
this.form.brxm = response.data.xm
this.form.brxb = response.data.xb == '2' ? '' : ''
this.form.dwmc = response.data.cbjgmc
this.form.ybkh = response.data.ybbh
this.jiesuanadmin(this.patientInfo.cache_uuid)
})
.finally(() => {
this.loading = false
})
})
.finally(() => {
this.loading = false
})
}
},
//首次获取患者基本信息
getmzxxs(e) {
this.card_typeinfor = e
this.param = {
name: e.xm,
idcard: e.sfzhm,
card_no: e.physicalCard,
card_type: e.physicalCardType,
}
hiscard(this.param)
.then(response => {
this.patientInfo = response.data
this.form.brxm = response.data.name
this.getpdxx(this.patientInfo)
})
.finally(() => {
this.loading = false
})
},
tiles(e) { tiles(e) {
let sele_one = [] let sele_one = []
...@@ -1619,25 +1279,6 @@ export default { ...@@ -1619,25 +1279,6 @@ export default {
this.setPersonType(this.typeList[0] ? this.typeList[0].settle_type.value : '') this.setPersonType(this.typeList[0] ? this.typeList[0].settle_type.value : '')
this.seletei(this.typeList[0] ? this.typeList[0].settle_type.name : '') this.seletei(this.typeList[0] ? this.typeList[0].settle_type.name : '')
}, },
getpdxx(e) {
this.loading = true
pdxx({
id: e.med_id,
})
.then(response => {
this.tableData.patient.p_xm = response.data.name
this.tableData.patient.id = response.data.patientId
this.tableData.patient.idCard = response.data.idCard
this.patientCard = response.data
this.ybewmsfid = response.data.idCard
this.getWaiting()
// this.tableData = response.data
})
.finally(() => {
this.loading = false
})
},
//调取待结算清单 //调取待结算清单
getWaiting(e) { getWaiting(e) {
this.man_name = '' this.man_name = ''
...@@ -1661,6 +1302,8 @@ export default { ...@@ -1661,6 +1302,8 @@ export default {
}) })
}, },
async jiesuan() { async jiesuan() {
this.fee.weixin = ''
this.payTypeData = ''
this.shiqianText = '' this.shiqianText = ''
this.weiguiList = [] this.weiguiList = []
this.shenfenzheng = this.tableData.patient.idCard this.shenfenzheng = this.tableData.patient.idCard
...@@ -1676,7 +1319,6 @@ export default { ...@@ -1676,7 +1319,6 @@ export default {
this.ismb = true this.ismb = true
} }
}) })
console.log( this.orders, 'ppppppppppppppp')
// 医技预约channel=4不走审核 省职也要加审核 25-7-10 慢病审核 // 医技预约channel=4不走审核 省职也要加审核 25-7-10 慢病审核
if ((this.channel != '4' && (this.man_name == '4' || (this.ismb && this.man_name == ''))) || (this.form.insurance_type == 'PROVINCE' && this.man_name != '1' && this.man_name != '3')) { if ((this.channel != '4' && (this.man_name == '4' || (this.ismb && this.man_name == ''))) || (this.form.insurance_type == 'PROVINCE' && this.man_name != '1' && this.man_name != '3')) {
this.yujiesuanLoading = true this.yujiesuanLoading = true
...@@ -1708,68 +1350,7 @@ export default { ...@@ -1708,68 +1350,7 @@ export default {
this.yujiesuanload = false this.yujiesuanload = false
} }
} }
// if ((!this.ismb && this.man_name != '1') || this.channel == '4' && this.form.insurance_type != 'PROVINCE') {
// if (this.orders.length > 0) {
// this.ybjs()
// } else {
// this.$message.error('请勾选结算类型和待结算的费用清单')
// this.yujiesuanload = false
// }
// } else {
// this.yujiesuanLoading=true
// const { code, data } = await verifyFeeStatus({
// patient_id: this.patientData.patient_id,
// serial_no: this.cost_id.toString(),
// })
// if (code == 200) {
// this.yujiesuanLoading=false
// if (data.status == 2) {
// this.$message.error(data.msg)
// return false
// } else {
// if (this.orders.length > 0) {
// this.ybjs()
// } else {
// this.$message.error('请勾选结算类型和待结算的费用清单')
// this.yujiesuanload = false
// }
// }
// }else{
// this.yujiesuanLoading=false
// }
// }
}, },
// async jiesuan() {
// this.shenfenzheng = this.tableData.patient.idCard
// this.adminpingzhengma = ''
// this.bxxxinfo = {
// settle_type: {},
// }
// if (this.man_name == '1') {
// this.ybjs()
// } else {
// const { code, data } = await verifyFeeStatus({
// patient_id: this.patientData.patient_id,
// serial_no: this.cost_id.toString(),
// })
// if (code == 200) {
// if (data.status == 2) {
// this.$message.error(data.msg)
// return false
// } else {
// if (this.orders.length > 0) {
// this.ybjs()
// } else {
// this.$message.error('请勾选结算类型和待结算的费用清单')
// this.yujiesuanload = false
// }
// }
// }
// }
// },
cardtype(type) { cardtype(type) {
// this.invoicepostVisible=true // this.invoicepostVisible=true
this.patientInfo = {} this.patientInfo = {}
...@@ -1825,59 +1406,12 @@ export default { ...@@ -1825,59 +1406,12 @@ export default {
const factor = Math.pow(10, decimals) const factor = Math.pow(10, decimals)
return Math.round(num * factor) / factor return Math.round(num * factor) / factor
}, },
yanzhengweigui(e) {
prescription({
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,
p_xzbz: this.typelistno == '4' ? 'D' : 'C',
is_pre: 1,
pre_id: '1',
p_ewm: this.adminpingzhengma,
}).then(response => {})
},
//#####################预结算###################
jiesuanadmin(e) {
this.yujiesuanload = false
bxxx({
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,
p_xzbz: this.typelistno == '4' ? 'D' : 'C',
is_pre: 1,
pre_id: '1',
p_ewm: this.adminpingzhengma,
})
.then(response => {
this.dialogVisible = true
this.yujiesuanload = false
this.bxxxinfo = response.data
// 本次起付线=本次起付线+病人负担金额
this.bxxxinfo.other_expense = this.bxxxinfo.other_expense + bxxxinfo.patient_burden
let frees = this.round(this.bxxxinfo.brfdje * 1 - this.bxxxinfo.his_deduct_amount * 1, 2)
let djf = this.round(this.round(frees - this.bxxxinfo.grzhzf * 1, 2) - this.bxxxinfo.gjzhzf * 1, 2)
if (this.bxxxinfo.personal_balance > djf) {
this.bxxxinfo.grzhzf = djf
}
if (this.bxxxinfo.personal_balance < djf) {
this.bxxxinfo.grzhzf = this.bxxxinfo.personal_balance
}
if (this.form.insurance_type == 'OFFSITE') {
this.bxxxinfo.grzhzf = 0
}
let free = this.round(this.bxxxinfo.brfdje * 1 - this.bxxxinfo.his_deduct_amount * 1, 2)
this.form.djf = this.round(this.round(free - this.bxxxinfo.grzhzf * 1, 2) - this.bxxxinfo.gjzhzf * 1, 2)
})
.finally(() => {})
},
handleInput(e) { handleInput(e) {
this.zhmoney = this.round(this.form.admin_djf - this.form.djf, 2) this.zhmoney = this.round(this.form.admin_djf - this.form.djf, 2)
}, },
//确认结算判断 //确认结算判断
qrjsmiss(e) { qrjsmiss(e) {
console.log(this.typelistno,'oiiiiiiiiiiii')
this.saveLoding = true this.saveLoding = true
if (this.typelistno == 'UNKNOWN') { if (this.typelistno == 'UNKNOWN') {
this.$message({ this.$message({
...@@ -1912,43 +1446,6 @@ export default { ...@@ -1912,43 +1446,6 @@ export default {
this.qrjs() this.qrjs()
} }
}, },
szyb() {
let x = {}
yundaMis(x)
.then(res => {})
.catch(err => {})
},
//结算按钮预结算按钮
queren() {
if (this.yibaoinfo.cardtype == '02') {
// TODO: 输入框
// FIXME: 要修改的东西ASDASDAS
//读身份证
if (this.shenfenzheng != '') {
this.getmzxx('1')
} else {
this.wj.send('{ "MethodName": "OpenDevice" }')
this.wj.send('{ "MethodName": "ReadIDCard"}')
}
//没卡就手写传卡号
} else if (this.yibaoinfo.cardtype == '03') {
//读医保卡
this.wj.send('{ "MethodName": "OpenDevice" }')
this.wj.send('{ "MethodName": "ReadSSSECard" }')
// TODO:
// FIXME: 要修改的东西ASDASDAS
//电子医保凭证
} else if (this.yibaoinfo.cardtype == '01') {
this.getmzxx('3')
} else if (this.yibaoinfo.cardtype == '00') {
//就诊卡
this.getmzxx('4')
} else if (this.yibaoinfo.cardtype == '04') {
//就健康卡
this.getmzxx('5')
}
this.carddialogFormVisible = false
},
// 复制文本内容方法一 // 复制文本内容方法一
copy(content) { copy(content) {
var copyCon = document.getElementById('IDcard').innerHTML var copyCon = document.getElementById('IDcard').innerHTML
...@@ -2044,14 +1541,23 @@ export default { ...@@ -2044,14 +1541,23 @@ export default {
}, 1000) }, 1000)
this.sureshow = true this.sureshow = true
let y = { let y = {
charge: {
amount: this.xj_amount * 1 > 0 ? this.xj_amount : this.source_pay_amount * 1 > 0 ? this.source_pay_amount : 0, //this.form.djf,
authCode: this.fee.weixin,
operatorNo: this.jobNumber,
payType: this.payTypeData == '1' ? 'cumsNative' : this.payTypeData == '5' ? 'cash' : this.payTypeData == '2' ? '智慧医保' : '', // 支付类型 cumsNative 聚合支付 cash 现金
rechargeType: 0, // 是否预交金充值 1是 0否,
patientId: this.patientData.patient_id,
deptCode: this.dept,
},
sy: this.is_sy, sy: this.is_sy,
source_type: this.payData?.targetSys, // source_type: this.payData?.targetSys,
source_trade_no: this.payData?.tradeNo, // source_trade_no: this.payData?.tradeNo,
is_gz: this.man_name == '3' ? true : false, is_gz: this.man_name == '3' ? true : false,
channel: this.channel, channel: this.channel,
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,
family_type: this.familyType, family_type: this.familyType,
patient_id: this.patientData.patient_id, patient_id: this.patientData.patient_id,
personal_pay: this.bxxxinfo.grzhzf, personal_pay: this.bxxxinfo.grzhzf,
...@@ -2107,6 +1613,15 @@ export default { ...@@ -2107,6 +1613,15 @@ export default {
// this.loading = false // this.loading = false
// }) // })
}) })
.catch(e => {
this.source_pay_amount = 0
this.xj_amount = 0
this.form.djf = 0
let djsold = this.round(this.bxxxinfo.patient_burden - this.bxxxinfo.grzhzf, 2)
let chongzhi = this.source_pay_amount * 1 + this.xj_amount * 1
//充值成功后的代缴费金额
this.form.djf = this.round(this.round(this.round(djsold - this.bxxxinfo.his_deduct_amount, 2) - this.bxxxinfo.gjzhzf, 2) - chongzhi, 2) //this.round(- chongzhi, 2)
})
.finally(res => { .finally(res => {
this.saveLoding = false this.saveLoding = false
this.loadingapplyList = false this.loadingapplyList = false
...@@ -2328,7 +1843,7 @@ export default { ...@@ -2328,7 +1843,7 @@ export default {
}) })
this.costlist.forEach(element => { this.costlist.forEach(element => {
if (row.item_code == element.item_code) { if (row.item_code == element.item_code) {
element.zfbl_desc=response.data.zfbl_desc element.zfbl_desc = response.data.zfbl_desc
// element.zfbl=response.data.dw_data[0].zfbl // element.zfbl=response.data.dw_data[0].zfbl
// element.zfbl_desc.push(response.data.zfbl_desc) // element.zfbl_desc.push(response.data.zfbl_desc)
...@@ -2336,7 +1851,6 @@ export default { ...@@ -2336,7 +1851,6 @@ export default {
// let obj={key:elements.key,value:elements.value} // let obj={key:elements.key,value:elements.value}
// element.zfbl_desc.push(obj) //[elements.key]=elements.value // element.zfbl_desc.push(obj) //[elements.key]=elements.value
// console.log( element.zfbl_desc.length, element.zfbl_desc,'oooooooooooooooooo')
// }) // })
} }
}) })
...@@ -2384,43 +1898,7 @@ export default { ...@@ -2384,43 +1898,7 @@ export default {
}) })
}, },
selectCardYiboPreselect(data, x, y) { selectCardYiboPreselect(data, x, y) {
// 判断慢病
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 (data?.mzdbjbs_arr.length > 1) {
// this.moreshow = true
// this.moreshowdata = {
// data: data,
// x: x,
// y: y,
// }
// } else {
this.selectCardYiboPre(data, x, y, data?.mzdbjbs_arr[0]?.code) this.selectCardYiboPre(data, x, y, data?.mzdbjbs_arr[0]?.code)
// }
// // 慢病未审核禁止结算
// if (this.selectTableArr.some(item => item.reviewed != '1')) {
// this.$alert('存在未审核的收费项目,请审核后再进行结算!', '提示', {
// confirmButtonText: '确定',
// callback: action => {
// // this.$message({
// // type: 'info',
// // message: `action: ${ action }`
// // });
// },
// })
// return false
// }
} else {
// // 省职未审核禁止结算
// if (this.selectTableArr.some(item => item.reviewed != '1') && this.form.insurance_type == 'PROVINCE') {
// this.$alert('存在未审核的收费项目,请审核后再进行结算!', '提示', {
// confirmButtonText: '确定',
// callback: action => {},
// })
// return false
// }
this.selectCardYiboPre(data, x, y, data?.mzdbjbs_arr[0]?.code)
}
}, },
// 医保预结算 // 医保预结算
selectCardYiboPre(data, x, y, zhenduan) { selectCardYiboPre(data, x, y, zhenduan) {
...@@ -2445,7 +1923,18 @@ export default { ...@@ -2445,7 +1923,18 @@ export default {
channel: this.channel, channel: this.channel,
// is_gz: this.man_name == '3' ? true : false, // is_gz: this.man_name == '3' ? true : false,
injury_date: this.GSdatatime, injury_date: this.GSdatatime,
p_jbbm: this.man_name == '1' ? '' : this.man_name == '2' ? '' : this.man_name == '3' ? '' : this.man_name == '4' ? zhenduan : this.selectTableArr[0]?.settle_type.is_mb ? this.selectTableArr[0]?.chronic_code : '', p_jbbm:
this.man_name == '1'
? ''
: this.man_name == '2'
? ''
: this.man_name == '3'
? ''
: this.man_name == '4'
? zhenduan
: this.selectTableArr[0]?.settle_type.is_mb
? this.selectTableArr[0]?.chronic_code
: '',
patient_id: this.patientData.patient_id, patient_id: this.patientData.patient_id,
cache_key: data.cache_key, cache_key: data.cache_key,
prescription_nos: this.cost_id, prescription_nos: this.cost_id,
...@@ -2525,7 +2014,7 @@ export default { ...@@ -2525,7 +2014,7 @@ export default {
} }
} }
} }
if (this.bxxxinfo.gjzhzf==''|| this.bxxxinfo.gjzhzf==null) { if (this.bxxxinfo.gjzhzf == '' || this.bxxxinfo.gjzhzf == null) {
this.bxxxinfo.gjzhzf = 0 this.bxxxinfo.gjzhzf = 0
} }
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)
...@@ -2760,11 +2249,20 @@ export default { ...@@ -2760,11 +2249,20 @@ export default {
return false return false
} }
let y = { let y = {
source_type: this.payData?.targetSys, charge: {
source_trade_no: this.payData?.tradeNo, amount: this.xj_amount * 1 > 0 ? this.xj_amount : this.source_pay_amount * 1 > 0 ? this.source_pay_amount : 0, //this.form.djf,
authCode: this.fee.weixin,
operatorNo: this.jobNumber,
payType: this.payTypeData == '1' ? 'cumsNative' : this.payTypeData == '5' ? 'cash' : this.payTypeData == '2' ? '智慧医保' : '', // 支付类型 cumsNative 聚合支付 cash 现金
rechargeType: 0, // 是否预交金充值 1是 0否,
patientId: this.patientData.patient_id,
deptCode: this.dept,
},
// source_type: this.payData?.targetSys,
// source_trade_no: this.payData?.tradeNo,
channel: this.channel, channel: this.channel,
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.patient_id,
personal_pay: this.bxxxinfo.grzhzf, personal_pay: this.bxxxinfo.grzhzf,
...@@ -2795,7 +2293,15 @@ export default { ...@@ -2795,7 +2293,15 @@ export default {
//刷新列表 //刷新列表
}) })
.catch(err => {}) .catch(err => {
this.source_pay_amount = 0
this.xj_amount = 0
this.form.djf = 0
let djsold = this.round(this.bxxxinfo.patient_burden - this.bxxxinfo.grzhzf, 2)
let chongzhi = this.source_pay_amount * 1 + this.xj_amount * 1
//充值成功后的代缴费金额
this.form.djf = this.round(this.round(this.round(djsold - this.bxxxinfo.his_deduct_amount, 2) - this.bxxxinfo.gjzhzf, 2) - chongzhi, 2) //this.round(- chongzhi, 2)
})
.finally(res => { .finally(res => {
this.saveLoding = false this.saveLoding = false
this.loadingapplyList = false this.loadingapplyList = false
...@@ -3185,7 +2691,7 @@ export default { ...@@ -3185,7 +2691,7 @@ export default {
.selectinput { .selectinput {
padding-left: 10px; padding-left: 10px;
font-size: 15px; font-size: 15px;
::v-deep.el-input--medium .el-input__inner { ::v-deep.el-input--medium .el-input__inner {
height: 30px; height: 30px;
// margin-top: 5px; // margin-top: 5px;
......
...@@ -241,7 +241,7 @@ export default { ...@@ -241,7 +241,7 @@ export default {
settlement: {}, settlement: {},
patientinfors: { channel: '' }, patientinfors: { channel: '' },
param: {}, param: {},
refoundStateVisible: true, refoundStateVisible: false,
blod_data: { blod_data: {
data: null, data: null,
notify: { msg: '' }, notify: { msg: '' },
......
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