Commit 2f6f01ce authored by 任鸿志's avatar 任鸿志

env(.env.development): 更新 API 地址

- 修改 VUE_APP_BASE_URL_SFC 为 http://10.10.9.219:8802
- 注释掉其他 API 地址

refactor(outpatientCharging.vue): 优化代码结构和样式

- 调整代码缩进和格式
- 移除未使用的变量和注释
- 简化部分代码逻辑
- 更新样式规则
parent 3a770b34
......@@ -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://10.10.9.219:8802'
# 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://10.10.9.219:8802'
# 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://10.10.40.10:8099'
# VUE_APP_BASE_URL = 'http://newfinance.fanxyinfo.cn'
......
......@@ -22,33 +22,32 @@
</div>
</div>
</el-card>
<div style=" margin-top: 10px" v-loading="yujiesuanLoading">
<div style="margin-top: 10px" v-loading="yujiesuanLoading">
<div class="box-card">
<div class="box_card_title">
<div style="display: flex; width: 100%;line-height: 28px;">
<div style="display: flex; width: 100%; line-height: 28px">
<div>结算清单</div>
<!-- <div style="font-weight: 500" v-if="isGS">
工商时间
<el-date-picker size="mini" v-model="GSdatatime" type="date" value-format="yyyy-MM-dd" placeholder="选择日期"> </el-date-picker>
</div> -->
<div style="display: flex;margin: 0px 20px;">
<div style="display: flex; margin: 0px 20px">
<el-checkbox v-model="is_sy">计划生育</el-checkbox>
</div>
<div style="display: flex" class="tableScopeSwitchBox">
<div>开启自费结算:</div>
<el-switch class="tableScopeSwitch" v-model="zifei_disable" active-color="#13ce66" active-text="是" inactive-text="否" inactive-color="#ff4949" style="margin-top: 3px;"> </el-switch>
<el-switch class="tableScopeSwitch" v-model="zifei_disable" active-color="#13ce66" active-text="是" inactive-text="否" inactive-color="#ff4949" style="margin-top: 3px">
</el-switch>
</div>
<div style="display: flex;margin: 0px 20px" v-if="patientInfo.yblx != '01'">
<div style="display: flex; margin: 0px 20px" v-if="patientInfo.yblx != '01'">
<div style="line-height: 28px; width: 75px">结算类型:</div>
<div class="selectinput">
<el-select v-model="man_name" placeholder="请选择" @change="changePersonType(man_name)" :clearable="true">
<el-select v-model="man_name" placeholder="请选择" :clearable="true">
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </el-option>
</el-select>
</div>
</div>
<div style="color: red;" v-if="diagnosisData">
诊断:{{ diagnosisData }}
</div>
<div style="color: red" v-if="diagnosisData">诊断:{{ diagnosisData }}</div>
</div>
</div>
......@@ -74,13 +73,13 @@
<el-table-column prop="occurrence_time" label="挂号日期" width="150" :show-overflow-tooltip="true"> </el-table-column>
<el-table-column prop="chronic_name" label="慢病病种" :show-overflow-tooltip="true">
<template slot-scope="scope">
<span style="color: #1a5bfd;">{{ scope.row.chronic_name }}</span>
<span style="color: #1a5bfd">{{ scope.row.chronic_name }}</span>
</template>
</el-table-column>
<el-table-column prop="total" align="center" label="总金额" width="80"> </el-table-column>
<el-table-column prop="is_sy" label="生育" width="90" :show-overflow-tooltip="true">
<template slot-scope="scope">
<span style="color: #1a5bfd;">{{ scope.row.is_sy }}</span>
<span style="color: #1a5bfd">{{ scope.row.is_sy }}</span>
</template>
</el-table-column>
<el-table-column prop="doct_name" label="医生姓名" width="90" :show-overflow-tooltip="true"> </el-table-column>
......@@ -90,24 +89,22 @@
<el-table-column prop="visit_no" label="就诊序号" :show-overflow-tooltip="true"> </el-table-column>
<el-table-column prop="serial_no" label="费用流水号" width="100" :show-overflow-tooltip="true"> </el-table-column>
<el-table-column prop="reviewed_by" align="center" label="审核人" width="110" > </el-table-column>
<el-table-column prop="reviewed" align="center" label="审核状态" width="80" >
<el-table-column prop="reviewed_by" align="center" label="审核人" width="110"> </el-table-column>
<el-table-column prop="reviewed" align="center" label="审核状态" width="80">
<template slot-scope="scope">
<span v-if="scope.row.reviewed == 1" style="color: greenyellow;">已审核</span>
<span v-else style="color: red;">未审核</span>
<span v-if="scope.row.reviewed == 1" style="color: greenyellow">已审核</span>
<span v-else style="color: red">未审核</span>
</template>
<span></span>
</el-table-column>
</el-table>
</div>
<div class="box-card-right">
<div >
<div class="box_card_title" >
<div>
<div class="box_card_title">
<div @click="addEventListener()">费用明细</div>
<!-- <div><el-button type="primary" size="mini" round @click="jshistory">结算历史</el-button></div> -->
</div>
</div>
<el-table
......@@ -604,9 +601,9 @@
</div>
</div>
<el-dialog title="慢病提示" :visible.sync="moreshow" width="40%" v-loading="moreLoading">
<div> <span>请选择慢病病种</span><span style="color: red;">(默认选中为医生开单时病种信息,谨慎修改)</span></div>
<div><span>请选择慢病病种</span><span style="color: red">(默认选中为医生开单时病种信息,谨慎修改)</span></div>
<el-radio-group v-model="zhenduan" style="margin-top: 20px;">
<el-radio-group v-model="zhenduan" style="margin-top: 20px">
<el-radio :label="item.code" v-for="item in moreshowdata.data.mzdbjbs_arr" :key="item.value">{{ item.name }}</el-radio>
</el-radio-group>
<span slot="footer" class="dialog-footer">
......@@ -667,7 +664,7 @@ import Cardlist from '@/components/SFCCardlist'
import invoicepost from '@/components/invoicepost'
import Readcards from '@/components/ReadcardsSFC'
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 { recharge } from '@/api/changeFree'
import printProof from '../../utils/print_proof'
......@@ -686,16 +683,16 @@ export default {
name: 'Outpatient',
data() {
return {
MBList:{
MBList_x:'',
MBList_y:''
MBList: {
MBList_x: '',
MBList_y: '',
},
preSettlement:true,
YBData:{
yfdxbzName:'',
yfdxlb:''
preSettlement: true,
YBData: {
yfdxbzName: '',
yfdxlb: '',
},
diagnosisData:'',
diagnosisData: '',
payTypeData: '',
zhenduanData: '',
zifei_disable: false,
......@@ -723,7 +720,7 @@ export default {
moreLoading: false,
moreshowdata: {
data: {
mzdbjbs_arr:[]
mzdbjbs_arr: [],
},
},
zhenduan: '',
......@@ -1180,7 +1177,7 @@ export default {
this.carddialogFormVisible = false
this.cardNo = e.physicalCard
this.cardType = e.physicalCardType
console.log(e,e.physicalCard, 'e')
console.log(e, e.physicalCard, 'e')
if (e.physicalCardType == 'SOCIAL_CARD') {
this.selectCardYiboInfo(e)
} else {
......@@ -1197,25 +1194,7 @@ export default {
this.cash_disable = true
this.fullscreenLoading = true
this.payTypeData = e
console.log(e, 'kkkkkkkkkkkk')
if (e == '1' || e == '5' || e == '2') {
// return false
// recharge({
// amount: this.form.djf,
// authCode: this.fee.weixin,
// operatorNo: this.jobNumber,
// payType: e == '1' ? 'cumsNative' : e == '5' ? 'cash' : e == '2' ? '智慧医保' : '', // 支付类型 cumsNative 聚合支付 cash 现金
// rechargeType: 0, // 是否预交金充值 1是 0否,
// patientId: this.patientData.patient_id,
// deptCode: this.dept,
// })
// .then(response => {
// if (response.code == 200) {
// this.$message({
// message: response.message,
// type: 'success',
// })
// this.payData = response.data.result
if (e == '1') {
this.xj_amount = 0
this.source_pay_amount = this.form.djf
......@@ -1224,8 +1203,6 @@ export default {
this.source_pay_amount = 0
}
//接口返回新的院内账户余额
// 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.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
......@@ -1237,23 +1214,8 @@ export default {
// 总的大弹窗
this.fullscreenLoading = false
//结算
// this.qrjs()
this.qrjsmiss('1')
// } else {
// this.$message({
// message: response.message,
// type: 'error',
// })
// }
// })
// .finally(() => {
// this.cash_disable = false
// this.fee.weixin = ''
// //微信支付宝弹窗
// this.uploadfeeshow = false
// // 总的大弹窗
// this.fullscreenLoading = false
// })
}
},
//本地刷医保卡和电子医保凭证方法
......@@ -1338,17 +1300,16 @@ export default {
this.loading = false
})
},
async getdiagnosis(){
this.diagnosisData=''
async getdiagnosis() {
this.diagnosisData = ''
console.log( this.selectTableArr[0],'ooooooooooooooooo')
await diagnosis({
patient_id: this.patientData.patient_id,
visit_no:this.selectTableArr[0].visit_no
})
.then(response => {
this.diagnosisData=response.data.diag_desc
console.log(response.data,'ppppppppppppp')
visit_no: this.selectTableArr[0].visit_no,
}).then(response => {
this.diagnosisData = response.data.diag_desc
console.log(response.data, 'ppppppppppppp')
})
},
async jiesuan() {
this.fee.weixin = ''
......@@ -1369,7 +1330,10 @@ export default {
}
})
// 医技预约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.insurance_type.value == 'PROVINCE' && this.man_name != '1' && this.man_name != '3' && this.man_name != '5')
) {
this.yujiesuanLoading = true
const { code, data } = await verifyFeeStatus({
patient_id: this.patientData.patient_id,
......@@ -1402,12 +1366,14 @@ export default {
},
cardtype(type) {
// this.invoicepostVisible=true
this.selectTableArr=[{
this.selectTableArr = [
{
settle_type: {
name: '',
},
}]
this.preSettlement=true
},
]
this.preSettlement = true
this.patientInfo = {}
this.typeList = []
this.costlist = []
......@@ -1419,7 +1385,7 @@ export default {
this.carddialogFormVisible = true
},
ybjs() {
if ((this.checktipes() && this.man_name != '1') || this.man_name == '2' || this.man_name == '3' || this.man_name == '4' ||this.man_name == '5') {
if ((this.checktipes() && this.man_name != '1') || this.man_name == '2' || this.man_name == '3' || this.man_name == '4' || this.man_name == '5') {
if (this.channel == '5') {
this.$message({
message: '药房药库禁止医保结算,请转为自费结算!',
......@@ -1430,11 +1396,10 @@ export default {
if (this.preSettlement) {
this.yibaoshowNew = true
this.yujiesuanload = false
}else{
this.selectCardYiboPreselect( this.YBData,this.MBList.MBList_x,this.MBList.MBList_y)
} else {
this.selectCardYiboPreselect(this.YBData, this.MBList.MBList_x, this.MBList.MBList_y)
}
// this.yibaoshow = true
} else {
if (!this.zifei_disable) {
this.$message({
......@@ -1593,7 +1558,6 @@ export default {
this.saveLoding = false
return false
}
// this.only_qq = this.only_qq + 1
this.loadingapplyList = true
this.contenttime = 0
const timers = setInterval(() => {
......@@ -1611,13 +1575,8 @@ export default {
deptCode: this.dept,
},
sy: this.is_sy,
// source_type: this.payData?.targetSys,
// source_trade_no: this.payData?.tradeNo,
is_gz: this.man_name == '3' ? true : false,
channel: this.channel,
// xj_amount: this.xj_amount,
// source_pay_amount: this.source_pay_amount,
// tradeNo: this.payData?.tradeNo,
family_type: this.familyType,
patient_id: this.patientData.patient_id,
personal_pay: this.bxxxinfo.grzhzf,
......@@ -1638,7 +1597,7 @@ export default {
const _this = this
// _this.channels = response.data.settle_type.name
this.$message.success('结算成功')
this.preSettlement=true
this.preSettlement = true
this.addEventListener()
this.saveLoding = false
this.dialogVisible = false
......@@ -1658,21 +1617,6 @@ export default {
} else {
this.selectCardYiboInfo()
}
//刷新列表
// var obj = {
// patient_id: this.patientData.patient_id, //this.cardNo,
// }
// pdxq(obj)
// .then(response => {
// this.tableData.cost = response.data
// this.tableDataList = response.data
// this.tylist = response.data
// this.tiles(this.tylist)
// })
// .finally(res => {
// this.loading = false
// })
})
.catch(e => {
this.source_pay_amount = 0
......@@ -1728,27 +1672,18 @@ export default {
var orders = []
var costint = []
var cost_ids = []
var order_no = []
var serial_arr = []
x.slice(0, x.length - 1).forEach(function (element) {
let obj={}
total += element.total * 1 * 1
orders.push(element.settle_type)
cost_ids.push(element.serial_no)
order_no.push(element.order_no)
obj['serial_no']=element.serial_no
obj['order_no']=element.order_no
serial_arr.push(obj)
costint.push(element)
})
console.log(order_no,'99999999999999')
this.cost_id = cost_ids
this.orders = orders
this.total = total.toFixed(2)
if (array.length != 0) {
info({
order_no:serial_arr,
serial_no: cost_ids.toString(),
patient_id: this.patientData.patient_id,
settle_type: this.selectTableArr[0] ? this.selectTableArr[0].settle_type.code : '',
......@@ -1775,28 +1710,18 @@ export default {
var orders = []
var costint = []
var cost_ids = []
var order_no = []
var serial_arr = [];
array.forEach(function (element) {
let obj={}
total += element.total * 1 * 1
orders.push(element.settle_type)
cost_ids.push(element.serial_no)
order_no.push(element.order_no)
costint.push(element)
obj['serial_no']=element.serial_no
obj['order_no']=element.order_no
serial_arr.push(obj)
})
console.log(serial_arr)
this.cost_id = cost_ids
this.orders = orders
this.total = total.toFixed(2)
if (array.length != 0) {
info({
order_no:serial_arr,
serial_no: cost_ids.toString(),
patient_id: this.patientData.patient_id,
settle_type: this.selectTableArr[0] ? this.selectTableArr[0].settle_type.code : '',
......@@ -1822,18 +1747,11 @@ export default {
this.loading2 = true
var total = 0
var orders = []
var costint = []
var cost_ids = []
var serial_arr = [];
array.forEach(function (element) {
let obj={}
total += element.total * 1 * 1
orders.push(element.settle_type)
cost_ids.push(element.serial_no)
costint.push(element)
obj['serial_no']=element.serial_no
obj['order_no']=element.order_no
serial_arr.push(obj)
})
this.cost_id = cost_ids
......@@ -1841,8 +1759,7 @@ export default {
this.total = total.toFixed(2)
if (array.length != 0) {
info({
order_no:serial_arr,
serial_no: serial_arr,
serial_no: cost_ids.toString(),
patient_id: this.patientData.patient_id,
settle_type: this.selectTableArr[0] ? this.selectTableArr[0].settle_type.code : '',
})
......@@ -1857,11 +1774,11 @@ export default {
this.costlist = []
this.loading2 = false
}
// if (this.tylist.length == 1) {
// this.jiesuan()
// }
}
if (this.selectTableArr.length>0) {
this.getdiagnosis()
}
this.isGS = this.selectTableArr[0]?.settle_type.is_gs
this.zhenduan = this.selectTableArr[0]?.chronic_code
},
......@@ -1873,44 +1790,6 @@ export default {
}
})
},
// 切换结算类型
changePersonType(x) {
// if (this.form.insurance_type == 'PROVINCE' || this.man_name == '4') {
// this.$message({
// message: '省职或慢病患者请到15号医保审核窗口,审核后缴费',
// type: 'error',
// })
// this.man_name = ''
// return false
// }
// 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) {
get_zfbl({
......@@ -1919,7 +1798,7 @@ export default {
//yltclb:row.settle_type.is_mb==true?'4':'6',
rqlb: this.is_sy ? 'E' : this.patientData.crowd_type,
//xzbz:row.settle_type.is_gs==true?'D':'C',
settle_type: this.man_name=='5'?'05': row.settle_type.code,
settle_type: this.man_name == '5' ? '05' : row.settle_type.code,
})
.then(response => {
this.$message({
......@@ -1983,12 +1862,12 @@ export default {
})
},
selectCardYiboPreselect(data, x, y) {
this.MBList={
MBList_x:x,
MBList_y:y
this.MBList = {
MBList_x: x,
MBList_y: y,
}
this.YBData=data
this.YBData.yfdxbzName=data.yfdxbz=='1'?'优抚对象' : '';
this.YBData = data
this.YBData.yfdxbzName = data.yfdxbz == '1' ? '优抚对象' : ''
// 验证违规
prescription({
patient_id: this.patientData.patient_id,
......@@ -2016,16 +1895,15 @@ export default {
},
// 医保预结算
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!='4') {
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 != '4') {
zhenduan = ''
}
} else {
// this.zhenduanData=this.moreshowdata.data.mzdbjbs_arr.filter(item => item.code === zhenduan)[0].name
}
if (this.man_name != '1' &&this.man_name != '2' && this.man_name != '3' && (this.man_name == '4' || this.selectTableArr[0]?.settle_type.is_mb==true) ) {
if (zhenduan=='') {
if (this.man_name != '1' && this.man_name != '2' && this.man_name != '3' && (this.man_name == '4' || this.selectTableArr[0]?.settle_type.is_mb == true)) {
if (zhenduan == '') {
this.$message.error('慢病病种为空,禁止结算!')
return false
......@@ -2043,50 +1921,45 @@ export default {
this.form = data
this.form.rqlbName = data.rqlb == 'A' ? '职工' : data.rqlb == 'B' ? '居民' : ''
if (this.man_name == '5') {
this.isGS=true
this.isGS = true
}
let costIDarr=[]
let costIDarr = []
this.costlist.forEach(element => {
costIDarr.push(element.settle_fee_id)
})
await settlementPre({
settle_fee_id:costIDarr.toString(),
settle_fee_id: costIDarr.toString(),
sy: this.is_sy,
is_gs: this.isGS,
channel: this.channel,
// is_gz: this.man_name == '3' ? true : false,
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
? zhenduan
: '',
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 ? zhenduan : '',
patient_id: this.patientData.patient_id,
cache_key: data.cache_key,
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
: '',
family_pay: false,
settle_type: this.selectTableArr[0] ? this.selectTableArr[0].settle_type.code : '',
})
.then(async res => {
if (res.code != 200) {
this.preSettlement=false
this.preSettlement = false
}
// this.yibaoshowNew=false
this.bxxxinfo = res.data
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
// if (res.data.mzxets != '') {
// this.dataText = res.data.mzxets
// this.GSshow = true
// }
await familybalanceinfor({
patient_id: this.patientData.patient_id,
pre_key: res.data.pre_key,
......@@ -2098,7 +1971,7 @@ export default {
if (res2.data.family_type == '1') {
this.bxxxinfo.gjzhzf = res2.data.gjzhxfje * 1
this.bxxxinfo.grzhzf = this.round(res2.data.grzhzf - res2.data.gjzhxfje, 2)
}else {
} else {
this.bxxxinfo.gjzhzf = 0
}
this.bxxxinfo.family_balance = res2.data.gjzhye
......@@ -2150,11 +2023,10 @@ 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.dialogVisible = true
})
})
.catch(err => {
this.preSettlement=false
this.preSettlement = false
this.moreLoading = false
this.yujiesuanLoading = false
})
......@@ -2172,12 +2044,12 @@ export default {
this.xj_amount = 0
this.source_pay_amount = 0
this.form = {}
let costIDarr=[]
let costIDarr = []
this.costlist.forEach(element => {
costIDarr.push(element.settle_fee_id)
})
await settleSelfPre({
settle_fee_id:costIDarr.toString(),
settle_fee_id: costIDarr.toString(),
patient_id: this.patientData.patient_id,
prescription_nos: this.cost_id,
settle_type: this.selectTableArr[0] ? this.selectTableArr[0].settle_type.code : '',
......@@ -2188,7 +2060,7 @@ export default {
this.dialogVisible = true
this.bxxxinfo = res.data
this.bxxxinfo.settle_type = //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.typeList[0].settle_type.name
this.man_name == '1' ? '自费' : this.man_name == '2' ? '门诊统筹' : this.man_name == '3' ? '医保个账' : this.man_name == '4' ? '门诊慢性病' : this.orders[0].name //this.typeList[0].settle_type.name
this.bxxxinfo.gjzhzf = 0
this.bxxxinfo.his_deduct_amount = 0
this.bxxxinfo.grzhzf = 0
......@@ -2199,7 +2071,7 @@ export default {
} else {
this.bxxxinfo.his_deduct_amount = this.bxxxinfo.cash_balance
}
if (this.bxxxinfo.gjzhzf == '' || this.bxxxinfo.gjzhzf == null || this.bxxxinfo.gjzhzf == undefined || this.bxxxinfo.gjzhzf == 'undefined' || this.bxxxinfo.gjzhzf == 'null') {
if (this.bxxxinfo.gjzhzf == '' || this.bxxxinfo.gjzhzf == null || this.bxxxinfo.gjzhzf == undefined || this.bxxxinfo.gjzhzf == 'undefined' || this.bxxxinfo.gjzhzf == 'null') {
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)
......@@ -2380,12 +2252,7 @@ if (this.bxxxinfo.gjzhzf == '' || this.bxxxinfo.gjzhzf == null || this.bxxxinfo.
patientId: this.patientData.patient_id,
deptCode: this.dept,
},
// source_type: this.payData?.targetSys,
// source_trade_no: this.payData?.tradeNo,
channel: this.channel,
// xj_amount: this.xj_amount,
// source_pay_amount: this.source_pay_amount,
// tradeNo: this.payData.tradeNo,
patient_id: this.patientData.patient_id,
personal_pay: this.bxxxinfo.grzhzf,
family_pay: this.bxxxinfo.gjzhzf,
......@@ -2397,7 +2264,7 @@ if (this.bxxxinfo.gjzhzf == '' || this.bxxxinfo.gjzhzf == null || this.bxxxinfo.
.then(response => {
const _this = this
this.$message.success('结算成功')
this.preSettlement=true
this.preSettlement = true
this.saveLoding = false
this.dialogVisible = false
this.sureshow = false
......@@ -2435,7 +2302,6 @@ if (this.bxxxinfo.gjzhzf == '' || this.bxxxinfo.gjzhzf == null || this.bxxxinfo.
this.jeizhishow = false
})
},
},
}
</script>
......@@ -3084,13 +2950,13 @@ button:active {
::v-deep.tableScopeSwitchBox .el-switch .el-switch__label {
width: 60px !important;
}
::v-deep .el-dialog__header{
padding: 10px ;
::v-deep .el-dialog__header {
padding: 10px;
}
::v-deep .el-divider--horizontal{
::v-deep .el-divider--horizontal {
margin: 15px 0;
}
::v-deep .el-table--medium td{
::v-deep .el-table--medium td {
padding: 0px;
}
</style>
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