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

收费处、药房药库更改诊间需求

parent ee17a8d6
...@@ -21,19 +21,28 @@ ...@@ -21,19 +21,28 @@
</div> </div>
</div> </div>
</el-card> </el-card>
<div style="display: flex; flex-direction: column; margin-top: 10px"> <div style="display: flex; flex-direction: column; margin-top: 10px" v-loading="yujiesuanLoading">
<div class="box-card"> <div class="box-card">
<div class="box_card_title"> <div class="box_card_title">
<div style="display: flex; justify-content: space-between; width: 100%"> <div style="display: flex; justify-content: space-between; width: 100%">
<div>结算清单</div> <div>结算清单</div>
<div style="display: flex" v-if="patientInfo.yblx != '01'"> <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">
<el-checkbox v-model="gz_name" style="margin-right: 10px;">转为个账账单</el-checkbox>
<el-checkbox v-model="man_name">转为自费账单</el-checkbox>
</div>
<!-- <div style="display: flex" v-if="patientInfo.yblx != '01'">
<div style="line-height: 28px; width: 75px">结算类型:</div> <div style="line-height: 28px; width: 75px">结算类型:</div>
<div class="selectinput" style="margin-left: 20px"> <div class="selectinput" style="margin-left: 20px">
<el-select v-model="man_name" placeholder="请选择"> <el-select v-model="man_name" placeholder="请选择">
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </el-option> <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </el-option>
</el-select> </el-select>
</div> </div>
</div> </div> -->
<el-button type="primary" size="mini" round @click="jshistory">结算历史</el-button> <el-button type="primary" size="mini" round @click="jshistory">结算历史</el-button>
</div> </div>
</div> </div>
...@@ -522,13 +531,59 @@ ...@@ -522,13 +531,59 @@
<el-button type="primary" @click="selectCardYiboPre(moreshowdata.data, moreshowdata.x, moreshowdata.y, zhenduan)">确 定</el-button> <el-button type="primary" @click="selectCardYiboPre(moreshowdata.data, moreshowdata.x, moreshowdata.y, zhenduan)">确 定</el-button>
</span> </span>
</el-dialog> </el-dialog>
<el-dialog title="提示" :visible.sync="GSshow" width="30%" v-loading="moreLoading">
<span>{{ dataText }}</span>
<span slot="footer" class="dialog-footer">
<el-button @click="GSshow = false">确定</el-button>
</span>
</el-dialog>
<el-dialog title="违规信息提示" :visible.sync="ViolationShow" width="60%" v-loading="moreLoading" :close-on-click-modal="false">
<div class="ViolationShow">
<el-table ref="multipleTableClinicRoom" @selection-change="handleSelectionChange" :data="weiguiList"
tooltip-effect="dark" style="width: 100%; height: calc(100vh - 430px)"
:header-cell-style="{ background: '#E7EEFF', color: '#333333' }" v-loading="loading"
element-loading-text="拼命加载中">
<template slot="empty">
<el-empty :image="tempsrc" :image-size="100" description="暂无数据"></el-empty>
</template>
<el-table-column prop="rulename" label="规则名称" :show-overflow-tooltip="true">
</el-table-column>
<el-table-column prop="volacont" label="违规内容" width="110" :show-overflow-tooltip="true">
</el-table-column>
<el-table-column prop="volabhvrtype" label="违规行为分类" width="130" :show-overflow-tooltip="true">
<template slot-scope="scope">
<div>{{scope.row.volabhvrtype=='1'?'就诊类':'项目类' }}</div>
</template>
</el-table-column>
<el-table-column prop="volaamtstas" label="违规金额计算状态" width="150" :show-overflow-tooltip="true">
<template slot-scope="scope">
<div>{{scope.row.volabhvrtype=='0'?'异常':'正常' }}</div>
</template>
</el-table-column>
<el-table-column prop="sevdeg" label="严重程度" width="100" :show-overflow-tooltip="true">
</el-table-column>
</el-table>
</div>
<div style="margin: 20px 0px;">反馈原因</div>
<div>
<el-input type="textarea" :rows="3" placeholder="请输入内容" v-model="shiqianText">
</el-input>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="Violationfunction">继续保存 </el-button>
<el-button type="primary" @click="deleteViolation">修改医嘱</el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
import Cardlist from '@/components/SFCCardlist' import Cardlist from '@/components/SFCCardlist'
import Readcards from '@/components/ReadcardsSFC' import Readcards from '@/components/ReadcardsSFC'
import editProp1 from './components/editProp' //修改自付比例 import editProp1 from './components/editProp' //修改自付比例
import { pdxx, mzxx, mzxxs, mzxxs_ewm, pdxq, info, bxxx, jsxx, hiscard, printmis, queryReadRard, verifyFeeStatus } from '@/api/mzSFC' import { pdxx, mzxx, mzxxs, mzxxs_ewm, pdxq, info, bxxx,prescription,serviceInvoke, jsxx, hiscard, printmis, queryReadRard, verifyFeeStatus } 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 printProof from '../../utils/print_proof' import printProof from '../../utils/print_proof'
import getLodop from '../../assets/js/LodopFuncs' import getLodop from '../../assets/js/LodopFuncs'
...@@ -545,11 +600,21 @@ export default { ...@@ -545,11 +600,21 @@ export default {
name: 'Outpatient', name: 'Outpatient',
data() { data() {
return { return {
GSdatatime:'',
weiguiList:[],
shiqianText:'',
weiguiData:[],
ViolationShow: false,
gz_name: false,
dataText: '',
GSshow: false,
isGS: false,
zhmoney: 0, zhmoney: 0,
cash_disable: false, cash_disable: false,
payData: {}, payData: {},
source_pay_amount: 0, source_pay_amount: 0,
xj_amount: 0, xj_amount: 0,
yujiesuanLoading: false,
progress: 0, progress: 0,
checked: false, checked: false,
moreLoading: false, moreLoading: false,
...@@ -583,7 +648,7 @@ export default { ...@@ -583,7 +648,7 @@ export default {
}, },
], ],
channels: '', channels: '',
man_name: '0', man_name: false,
card_typeinfor: '', card_typeinfor: '',
sdsdzjkk: '', sdsdzjkk: '',
infor: [], infor: [],
...@@ -776,6 +841,36 @@ export default { ...@@ -776,6 +841,36 @@ export default {
}, },
}, },
methods: { methods: {
async deleteViolation(){
await serviceInvoke({
warn_rslt_id:this.weiguiList[0].jrid,
dspo_way_rea:this.shiqianText,
dspo_way:"2"
})
.then(response => {
this.$message({
message: '返回成功',
type: 'success',
})
this.ViolationShow = false
})
},
// 事前反馈
async Violationfunction() {
await serviceInvoke({
warn_rslt_id:this.weiguiList[0].jrid,
dspo_way_rea:this.shiqianText,
dspo_way:"1"
})
.then(response => {
this.$message({
message: '提交成功',
type: 'success',
})
})
this.ViolationShow = false
this.dialogVisible = true
},
format(percentage) { format(percentage) {
if (percentage === 50) { if (percentage === 50) {
return '' return ''
...@@ -979,6 +1074,7 @@ export default { ...@@ -979,6 +1074,7 @@ export default {
}, },
//首次进页面第一次刷卡返回的信息 //首次进页面第一次刷卡返回的信息
getyibaoinfo(e, x) { getyibaoinfo(e, x) {
this.man_name = false
this.only_qq = 0 this.only_qq = 0
//第一次读二维码不需要from_web //第一次读二维码不需要from_web
if (x) { if (x) {
...@@ -1515,6 +1611,7 @@ export default { ...@@ -1515,6 +1611,7 @@ export default {
//调取待结算清单 //调取待结算清单
getWaiting(e) { getWaiting(e) {
var that = this var that = this
this.gz_name = false
var obj = { var obj = {
channel: '3', channel: '3',
patient_id: this.patientData.patient_id, patient_id: this.patientData.patient_id,
...@@ -1532,13 +1629,25 @@ export default { ...@@ -1532,13 +1629,25 @@ export default {
}) })
}, },
async jiesuan() { async jiesuan() {
this.shiqianText=''
this.weiguiList=[]
this.shenfenzheng = this.tableData.patient.idCard this.shenfenzheng = this.tableData.patient.idCard
this.adminpingzhengma = '' this.adminpingzhengma = ''
this.bxxxinfo = { this.bxxxinfo = {}
settle_type: {}, this.ismb = false
} this.orders.forEach(element => {
if (this.man_name == '1') { if (element) {
this.ismb = true
}
});
if (!this.ismb) {
if (this.orders.length > 0) {
console.log(this.orders, 'ppppppppppppppp')
this.ybjs() this.ybjs()
} else {
this.$message.error('请勾选结算类型和待结算的费用清单')
this.yujiesuanload = false
}
} else { } else {
const { code, data } = await verifyFeeStatus({ const { code, data } = await verifyFeeStatus({
patient_id: this.patientData.patient_id, patient_id: this.patientData.patient_id,
...@@ -1550,6 +1659,7 @@ export default { ...@@ -1550,6 +1659,7 @@ export default {
return false return false
} else { } else {
if (this.orders.length > 0) { if (this.orders.length > 0) {
console.log(this.orders, 'ppppppppppppppp')
this.ybjs() this.ybjs()
} else { } else {
this.$message.error('请勾选结算类型和待结算的费用清单') this.$message.error('请勾选结算类型和待结算的费用清单')
...@@ -1558,7 +1668,36 @@ export default { ...@@ -1558,7 +1668,36 @@ export default {
} }
} }
} }
}, },
// 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.patientInfo = {} this.patientInfo = {}
...@@ -1572,7 +1711,7 @@ export default { ...@@ -1572,7 +1711,7 @@ export default {
this.carddialogFormVisible = true this.carddialogFormVisible = true
}, },
ybjs() { ybjs() {
if (this.checktipes() && this.man_name == '0') { if (this.checktipes() && this.man_name == false) {
// this.yibaoshow = true // this.yibaoshow = true
this.yibaoshowNew = true this.yibaoshowNew = true
this.yujiesuanload = false this.yujiesuanload = false
...@@ -1600,11 +1739,26 @@ export default { ...@@ -1600,11 +1739,26 @@ 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 == true ? '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) { jiesuanadmin(e) {
this.yujiesuanload = false this.yujiesuanload = false
bxxx({ bxxx({
is_yb: this.man_name, is_yb: this.man_name == true ? '1' : '0',
cache_uuid: e == undefined ? 'not' : e, cache_uuid: e == undefined ? 'not' : e,
his_pay_fee_nos: this.cost_id, his_pay_fee_nos: this.cost_id,
patient_id: this.tableData.patient.id, patient_id: this.tableData.patient.id,
...@@ -1663,7 +1817,7 @@ export default { ...@@ -1663,7 +1817,7 @@ export default {
} else { } else {
this.qrjs() this.qrjs()
} }
} else if (this.ztvalue.value == 'SELF_PAY' || this.man_name == '1') { } else if (this.ztvalue.value == 'SELF_PAY' || this.man_name ==true) {
this.selfPre() this.selfPre()
} else { } else {
this.qrjs() this.qrjs()
...@@ -1798,6 +1952,7 @@ export default { ...@@ -1798,6 +1952,7 @@ export default {
}, 1000) }, 1000)
this.sureshow = true this.sureshow = true
let y = { let y = {
is_gz: this.gz_name,
channel: '3', channel: '3',
xj_amount: this.xj_amount, xj_amount: this.xj_amount,
source_pay_amount: this.source_pay_amount, source_pay_amount: this.source_pay_amount,
...@@ -1858,6 +2013,7 @@ export default { ...@@ -1858,6 +2013,7 @@ export default {
}, },
//选中昨天列表请求右边选中方法 //选中昨天列表请求右边选中方法
handleSelectionChange(array) { handleSelectionChange(array) {
this.isGS = false
let that = this let that = this
let x = array let x = array
if (array.length > 1) { if (array.length > 1) {
...@@ -1995,6 +2151,7 @@ export default { ...@@ -1995,6 +2151,7 @@ export default {
this.jiesuan() this.jiesuan()
} }
} }
this.isGS = this.selectTableArr[0]?.settle_type.is_gs
}, },
// 结算类型赋默认值 // 结算类型赋默认值
setPersonType(e) { setPersonType(e) {
...@@ -2115,6 +2272,7 @@ export default { ...@@ -2115,6 +2272,7 @@ export default {
}, },
// 医保预结算 // 医保预结算
selectCardYiboPre(data, x, y, zhenduan) { selectCardYiboPre(data, x, y, zhenduan) {
this.yujiesuanLoading = true
this.xj_amount = 0 this.xj_amount = 0
this.source_pay_amount = 0 this.source_pay_amount = 0
this.moreshow = false this.moreshow = false
...@@ -2123,7 +2281,10 @@ export default { ...@@ -2123,7 +2281,10 @@ export default {
this.select_type = x this.select_type = x
this.form = {} this.form = {}
this.form = data this.form = data
this.form.rqlbName = data.rqlb == 'A' ? '职工' : data.rqlb == 'B' ? '居民' : ''
settlementPre({ settlementPre({
is_gz: this.gz_name,
injury_date: this.GSdatatime,
p_jbbm: zhenduan, p_jbbm: zhenduan,
patient_id: this.patientData.patient_id, patient_id: this.patientData.patient_id,
cache_key: data.cache_key, cache_key: data.cache_key,
...@@ -2133,6 +2294,11 @@ export default { ...@@ -2133,6 +2294,11 @@ export default {
settle_type: this.selectTableArr[0] ? this.selectTableArr[0].settle_type.code : '', settle_type: this.selectTableArr[0] ? this.selectTableArr[0].settle_type.code : '',
}) })
.then(res => { .then(res => {
if (res.data.mzxets != '') {
this.dataText = res.data.mzxets
this.GSshow = true
}
this.yujiesuanLoading = false
this.moreLoading = false this.moreLoading = false
this.bxxxinfo = res.data this.bxxxinfo = res.data
familybalanceinfor({ familybalanceinfor({
...@@ -2151,9 +2317,27 @@ export default { ...@@ -2151,9 +2317,27 @@ export default {
else { else {
this.bxxxinfo.gjzhzf = 0 this.bxxxinfo.gjzhzf = 0
} }
// 验证违规
prescription({
patient_id: this.patientData.patient_id,
settle_type: this.selectTableArr[0] ? this.selectTableArr[0].settle_type.code : '',
prescription_nos: this.cost_id,
js_type:"1",
p_jbbm:zhenduan
})
.then(response => {
if (response.data.result.length>0) {
console.log(response.data.result,'999999999999999')
this.weiguiList=response.data.result
this.weiguiData=response.data.result
this.ViolationShow=true
}else{
this.dialogVisible = true
}
})
this.bxxxinfo.family_balance = res2.data.gjzhye this.bxxxinfo.family_balance = res2.data.gjzhye
this.dialogVisible = true // this.dialogVisible = true
this.bxxxinfo.his_deduct_amount = 0 this.bxxxinfo.his_deduct_amount = 0
this.bxxxinfo.grzhzf = 0 this.bxxxinfo.grzhzf = 0
let 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) let 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)
...@@ -2187,8 +2371,10 @@ export default { ...@@ -2187,8 +2371,10 @@ export default {
}) })
.catch(err => { .catch(err => {
this.moreLoading = false this.moreLoading = false
this.yujiesuanLoading = false
}) })
.finally(() => { .finally(() => {
this.yujiesuanLoading = false
this.closeSelectCard() this.closeSelectCard()
}) })
}, },
...@@ -2197,11 +2383,13 @@ export default { ...@@ -2197,11 +2383,13 @@ export default {
}, },
// 自费预结算 // 自费预结算
zfBeforePre() { zfBeforePre() {
this.yujiesuanLoading = true;
this.xj_amount = 0 this.xj_amount = 0
this.source_pay_amount = 0 this.source_pay_amount = 0
this.form = {} this.form = {}
settleSelfPre({ patient_id: this.patientData.patient_id, prescription_nos: this.cost_id, settle_type: this.selectTableArr[0] ? this.selectTableArr[0].settle_type.code : '' }) settleSelfPre({ patient_id: this.patientData.patient_id, prescription_nos: this.cost_id, settle_type: this.selectTableArr[0] ? this.selectTableArr[0].settle_type.code : '' })
.then(res => { .then(res => {
this.yujiesuanLoading = false
this.dialogVisible = true this.dialogVisible = true
this.bxxxinfo = res.data this.bxxxinfo = res.data
this.bxxxinfo.gjzhzf = 0 this.bxxxinfo.gjzhzf = 0
...@@ -2216,7 +2404,9 @@ export default { ...@@ -2216,7 +2404,9 @@ 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.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)
}) })
.catch(err => {}) .catch(err => {
this.yujiesuanLoading = false
})
}, },
//打印小票方法 //打印小票方法
printcard(e) { printcard(e) {
...@@ -2441,6 +2631,12 @@ export default { ...@@ -2441,6 +2631,12 @@ export default {
</script> </script>
<style rel="stylesheet/scss" lang="scss" scoped> <style rel="stylesheet/scss" lang="scss" scoped>
.ViolationShow {
::v-deep .el-table__body-wrapper {
height: calc(100vh - 480px);
overflow-y: auto;
}
}
::v-deep .el-table--medium th { ::v-deep .el-table--medium th {
padding: 5px 0px; padding: 5px 0px;
height: 30px; height: 30px;
......
...@@ -21,15 +21,19 @@ ...@@ -21,15 +21,19 @@
</div> </div>
</div> </div>
</el-card> </el-card>
<div style="display: flex; flex-direction: column; margin-top: 10px"> <div style="display: flex; flex-direction: column; margin-top: 10px" v-loading="yujiesuanLoading">
<div class="box-card"> <div class="box-card">
<div class="box_card_title"> <div class="box_card_title">
<div style="display: flex; justify-content: space-between; width: 100%"> <div style="display: flex; justify-content: space-between; width: 100%">
<div>结算清单</div> <div>结算清单</div>
<div style="display: flex" v-if="patientInfo.yblx != '01'"> <div style="font-weight: 500;" v-if="isGS">工商时间
<div class="selectinput" style="margin-left: 20px"> <el-date-picker size="mini" v-model="GSdatatime" type="date" value-format="yyyy-MM-dd"
<el-checkbox v-model="man_name">转为自费账单</el-checkbox> placeholder="选择日期">
</el-date-picker>
</div> </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>
</div> </div>
<el-button type="primary" size="mini" round @click="jshistory">结算历史</el-button> <el-button type="primary" size="mini" round @click="jshistory">结算历史</el-button>
</div> </div>
...@@ -526,13 +530,59 @@ ...@@ -526,13 +530,59 @@
<el-button type="primary" @click="selectCardYiboPre(moreshowdata.data, moreshowdata.x, moreshowdata.y, zhenduan)">确 定</el-button> <el-button type="primary" @click="selectCardYiboPre(moreshowdata.data, moreshowdata.x, moreshowdata.y, zhenduan)">确 定</el-button>
</span> </span>
</el-dialog> </el-dialog>
<el-dialog title="提示" :visible.sync="GSshow" width="30%" v-loading="moreLoading">
<span>{{ dataText }}</span>
<span slot="footer" class="dialog-footer">
<el-button @click="GSshow = false">确定</el-button>
</span>
</el-dialog>
<el-dialog title="违规信息提示" :visible.sync="ViolationShow" width="60%" v-loading="moreLoading" :close-on-click-modal="false">
<div class="ViolationShow">
<el-table ref="multipleTableClinicRoom" @selection-change="handleSelectionChange" :data="weiguiList"
tooltip-effect="dark" style="width: 100%; height: calc(100vh - 430px)"
:header-cell-style="{ background: '#E7EEFF', color: '#333333' }" v-loading="loading"
element-loading-text="拼命加载中">
<template slot="empty">
<el-empty :image="tempsrc" :image-size="100" description="暂无数据"></el-empty>
</template>
<el-table-column prop="rulename" label="规则名称" :show-overflow-tooltip="true">
</el-table-column>
<el-table-column prop="volacont" label="违规内容" width="110" :show-overflow-tooltip="true">
</el-table-column>
<el-table-column prop="volabhvrtype" label="违规行为分类" width="130" :show-overflow-tooltip="true">
<template slot-scope="scope">
<div>{{scope.row.volabhvrtype=='1'?'就诊类':'项目类' }}</div>
</template>
</el-table-column>
<el-table-column prop="volaamtstas" label="违规金额计算状态" width="150" :show-overflow-tooltip="true">
<template slot-scope="scope">
<div>{{scope.row.volabhvrtype=='0'?'异常':'正常' }}</div>
</template>
</el-table-column>
<el-table-column prop="sevdeg" label="严重程度" width="100" :show-overflow-tooltip="true">
</el-table-column>
</el-table>
</div>
<div style="margin: 20px 0px;">反馈原因</div>
<div>
<el-input type="textarea" :rows="3" placeholder="请输入内容" v-model="shiqianText">
</el-input>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="Violationfunction">继续保存 </el-button>
<el-button type="primary" @click="deleteViolation">修改医嘱</el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
import Cardlist from '@/components/SFCCardlist' import Cardlist from '@/components/SFCCardlist'
import Readcards from '@/components/ReadcardsSFC' import Readcards from '@/components/ReadcardsSFC'
import editProp1 from './components/editProp' //修改自付比例 import editProp1 from './components/editProp' //修改自付比例
import { pdxx, mzxx, mzxxs, mzxxs_ewm, pdxq, info, bxxx, jsxx, hiscard, printmis, queryReadRard, verifyFeeStatus } from '@/api/mzSFC' import { pdxx, mzxx, mzxxs, mzxxs_ewm, pdxq, info, bxxx, prescription,serviceInvoke, jsxx, hiscard, printmis, queryReadRard, verifyFeeStatus } 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 printProof from '../../utils/print_proof' import printProof from '../../utils/print_proof'
import getLodop from '../../assets/js/LodopFuncs' import getLodop from '../../assets/js/LodopFuncs'
...@@ -549,11 +599,21 @@ export default { ...@@ -549,11 +599,21 @@ export default {
name: 'Outpatient', name: 'Outpatient',
data() { data() {
return { return {
GSdatatime:'',
weiguiList:[],
shiqianText:'',
weiguiData:[],
ViolationShow: false,
gz_name: false,
dataText: '',
GSshow: false,
isGS: false,
zhmoney: 0, zhmoney: 0,
cash_disable: false, cash_disable: false,
payData: {}, payData: {},
source_pay_amount: 0, source_pay_amount: 0,
xj_amount: 0, xj_amount: 0,
yujiesuanLoading: false,
progress: 0, progress: 0,
checked: false, checked: false,
moreLoading: false, moreLoading: false,
...@@ -785,6 +845,36 @@ export default { ...@@ -785,6 +845,36 @@ export default {
}, },
}, },
methods: { methods: {
async deleteViolation(){
await serviceInvoke({
warn_rslt_id:this.weiguiList[0].jrid,
dspo_way_rea:this.shiqianText,
dspo_way:"2"
})
.then(response => {
this.$message({
message: '返回成功',
type: 'success',
})
this.ViolationShow = false
})
},
// 事前反馈
async Violationfunction() {
await serviceInvoke({
warn_rslt_id:this.weiguiList[0].jrid,
dspo_way_rea:this.shiqianText,
dspo_way:"1"
})
.then(response => {
this.$message({
message: '提交成功',
type: 'success',
})
})
this.ViolationShow = false
this.dialogVisible = true
},
format(percentage) { format(percentage) {
if (percentage === 50) { if (percentage === 50) {
return '' return ''
...@@ -985,6 +1075,7 @@ export default { ...@@ -985,6 +1075,7 @@ export default {
}, },
//首次进页面第一次刷卡返回的信息 //首次进页面第一次刷卡返回的信息
getyibaoinfo(e, x) { getyibaoinfo(e, x) {
this.man_name = false
this.only_qq = 0 this.only_qq = 0
//第一次读二维码不需要from_web //第一次读二维码不需要from_web
if (x) { if (x) {
...@@ -1521,6 +1612,7 @@ export default { ...@@ -1521,6 +1612,7 @@ export default {
//调取待结算清单 //调取待结算清单
getWaiting(e) { getWaiting(e) {
var that = this var that = this
this.gz_name = false
var obj = { var obj = {
date:true, date:true,
channel: '3', channel: '3',
...@@ -1545,6 +1637,8 @@ export default { ...@@ -1545,6 +1637,8 @@ export default {
window.parent.postMessage(message, '*') window.parent.postMessage(message, '*')
}, },
async jiesuan() { async jiesuan() {
this.shiqianText=''
this.weiguiList=[]
this.shenfenzheng = this.tableData.patient.idCard this.shenfenzheng = this.tableData.patient.idCard
this.adminpingzhengma = '' this.adminpingzhengma = ''
this.bxxxinfo = { this.bxxxinfo = {
...@@ -1613,6 +1707,21 @@ export default { ...@@ -1613,6 +1707,21 @@ 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 == true ? '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) { jiesuanadmin(e) {
this.yujiesuanload = false this.yujiesuanload = false
...@@ -1811,6 +1920,7 @@ export default { ...@@ -1811,6 +1920,7 @@ export default {
}, 1000) }, 1000)
this.sureshow = true this.sureshow = true
let y = { let y = {
is_gz: this.gz_name,
channel: '3', channel: '3',
xj_amount: this.xj_amount, xj_amount: this.xj_amount,
source_pay_amount: this.source_pay_amount, source_pay_amount: this.source_pay_amount,
...@@ -1873,6 +1983,7 @@ export default { ...@@ -1873,6 +1983,7 @@ export default {
}, },
//选中昨天列表请求右边选中方法 //选中昨天列表请求右边选中方法
handleSelectionChange(array) { handleSelectionChange(array) {
this.isGS = false
let that = this let that = this
let x = array let x = array
if (array.length > 1) { if (array.length > 1) {
...@@ -2010,6 +2121,7 @@ export default { ...@@ -2010,6 +2121,7 @@ export default {
this.jiesuan() this.jiesuan()
} }
} }
this.isGS = this.selectTableArr[0]?.settle_type.is_gs
}, },
// 结算类型赋默认值 // 结算类型赋默认值
setPersonType(e) { setPersonType(e) {
...@@ -2130,6 +2242,7 @@ export default { ...@@ -2130,6 +2242,7 @@ export default {
}, },
// 医保预结算 // 医保预结算
selectCardYiboPre(data, x, y, zhenduan) { selectCardYiboPre(data, x, y, zhenduan) {
this.yujiesuanLoading = true
this.xj_amount = 0 this.xj_amount = 0
this.source_pay_amount = 0 this.source_pay_amount = 0
this.moreshow = false this.moreshow = false
...@@ -2138,7 +2251,10 @@ export default { ...@@ -2138,7 +2251,10 @@ export default {
this.select_type = x this.select_type = x
this.form = {} this.form = {}
this.form = data this.form = data
this.form.rqlbName = data.rqlb == 'A' ? '职工' : data.rqlb == 'B' ? '居民' : ''
settlementPre({ settlementPre({
is_gz: this.gz_name,
injury_date: this.GSdatatime,
p_jbbm: zhenduan, p_jbbm: zhenduan,
patient_id: this.patientData.patient_id, patient_id: this.patientData.patient_id,
cache_key: data.cache_key, cache_key: data.cache_key,
...@@ -2148,6 +2264,11 @@ export default { ...@@ -2148,6 +2264,11 @@ export default {
settle_type: this.selectTableArr[0] ? this.selectTableArr[0].settle_type.code : '', settle_type: this.selectTableArr[0] ? this.selectTableArr[0].settle_type.code : '',
}) })
.then(res => { .then(res => {
if (res.data.mzxets != '') {
this.dataText = res.data.mzxets
this.GSshow = true
}
this.yujiesuanLoading = false
this.moreLoading = false this.moreLoading = false
this.bxxxinfo = res.data this.bxxxinfo = res.data
familybalanceinfor({ familybalanceinfor({
...@@ -2166,9 +2287,26 @@ export default { ...@@ -2166,9 +2287,26 @@ export default {
else { else {
this.bxxxinfo.gjzhzf = 0 this.bxxxinfo.gjzhzf = 0
} }
// 验证违规
this.bxxxinfo.family_balance = res2.data.gjzhye prescription({
patient_id: this.patientData.patient_id,
settle_type: this.selectTableArr[0] ? this.selectTableArr[0].settle_type.code : '',
prescription_nos: this.cost_id,
js_type:"1",
p_jbbm:zhenduan
})
.then(response => {
if (response.data.result.length>0) {
console.log(response.data.result,'999999999999999')
this.weiguiList=response.data.result
this.weiguiData=response.data.result
this.ViolationShow=true
}else{
this.dialogVisible = true this.dialogVisible = true
}
})
this.bxxxinfo.family_balance = res2.data.gjzhye
// this.dialogVisible = true
this.bxxxinfo.his_deduct_amount = 0 this.bxxxinfo.his_deduct_amount = 0
this.bxxxinfo.grzhzf = 0 this.bxxxinfo.grzhzf = 0
let 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) let 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)
...@@ -2201,9 +2339,11 @@ export default { ...@@ -2201,9 +2339,11 @@ export default {
}) })
}) })
.catch(err => { .catch(err => {
this.yujiesuanLoading = false
this.moreLoading = false this.moreLoading = false
}) })
.finally(() => { .finally(() => {
this.yujiesuanLoading = false
this.closeSelectCard() this.closeSelectCard()
}) })
}, },
...@@ -2212,11 +2352,13 @@ export default { ...@@ -2212,11 +2352,13 @@ export default {
}, },
// 自费预结算 // 自费预结算
zfBeforePre() { zfBeforePre() {
this.yujiesuanLoading = true
this.xj_amount = 0 this.xj_amount = 0
this.source_pay_amount = 0 this.source_pay_amount = 0
this.form = {} this.form = {}
settleSelfPre({ patient_id: this.patientData.patient_id, prescription_nos: this.cost_id, settle_type: this.selectTableArr[0] ? this.selectTableArr[0].settle_type.code : '' }) settleSelfPre({ patient_id: this.patientData.patient_id, prescription_nos: this.cost_id, settle_type: this.selectTableArr[0] ? this.selectTableArr[0].settle_type.code : '' })
.then(res => { .then(res => {
this.yujiesuanLoading = false
this.dialogVisible = true this.dialogVisible = true
this.bxxxinfo = res.data this.bxxxinfo = res.data
this.bxxxinfo.gjzhzf = 0 this.bxxxinfo.gjzhzf = 0
...@@ -2231,7 +2373,9 @@ export default { ...@@ -2231,7 +2373,9 @@ 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.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)
}) })
.catch(err => {}) .catch(err => {
this.yujiesuanLoading = false
})
}, },
//打印小票方法 //打印小票方法
printcard(e) { printcard(e) {
...@@ -2457,6 +2601,13 @@ export default { ...@@ -2457,6 +2601,13 @@ export default {
</script> </script>
<style rel="stylesheet/scss" lang="scss" scoped> <style rel="stylesheet/scss" lang="scss" scoped>
.ViolationShow {
::v-deep .el-table__body-wrapper {
height: calc(100vh - 480px);
overflow-y: auto;
}
}
::v-deep .el-table--medium th { ::v-deep .el-table--medium th {
padding: 5px 0px; padding: 5px 0px;
height: 30px; height: 30px;
......
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