Commit 3b89378e authored by 任鸿志's avatar 任鸿志

诊间充值

parent 276dcb5b
# 页面标题
VUE_APP_TITLE = 统一结算平台
# 生产环境配置
NODE_ENV = 'production'
# 统一结算平台/生产环境
VUE_APP_BASE_API = ''
# VUE_APP_BASE_URL = 'http://newfinance-system.fancyinfo.net'
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_change = 'http://10.10.8.230:6200/fancy'
# VUE_APP_BASE_URL = 'http://med-api.fancyinfo.net'
# VUE_APP_BASE_URL = 'http://10.10.40.10:9902'
......@@ -7,6 +7,7 @@
"scripts": {
"dev": "vue-cli-service serve",
"build:prod": "vue-cli-service build",
"build:test": "vue-cli-service build --mode test && node ./deploy-test.js",
"build:stage": "vue-cli-service build && node ./deploy-test.js",
"preview": "node build/index.js --preview",
"lint": "eslint --ext .js,.vue src"
......
......@@ -3,8 +3,7 @@
<el-card class="userInfo_box" v-if="!titleshow">
<div class="boxmain">
<div class="btslist" v-if="!cardNoShow">
<el-button @click="cardtype('1')"
style="color: #3d7ff5; width: 97px; font-size: 17px; font-weight: 600; border-radius: 8px">读卡</el-button>
<el-button @click="cardtype('1')" style="color: #3d7ff5; width: 97px; font-size: 17px; font-weight: 600; border-radius: 8px">读卡</el-button>
</div>
<div class="userInfo_div">
<div class="userInfo_div_1">
......@@ -23,18 +22,16 @@
</div>
</div>
</el-card>
<div style="display: flex; justify-content: space-around; margin-top: 10px" v-loading="yujiesuanLoading"
element-loading-text="预结算中...">
<div style="display: flex; justify-content: space-around; margin-top: 10px" v-loading="yujiesuanLoading" element-loading-text="预结算中...">
<div class="box-card" style="width: 49%">
<div class="box_card_title">
<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 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="gz_name" style="margin-right: 10px">转为个账账单</el-checkbox>
<el-checkbox v-model="man_name">转为自费账单</el-checkbox>
<!-- <div style="line-height: 40px">结算类型</div>
<div class="selectinput" style="margin-left: 20px">
......@@ -46,34 +43,35 @@
</div>
<div class="content-left-type" style="height: 30px; line-height: 30px; padding: 0 10px">
<el-radio-group v-model="patientInfo.yblx" size="medium" @input="seletei">
<el-radio :label="item.settle_type.name" v-for="(item, index) in typeList" :key="index">{{
item.settle_type.name }}</el-radio>
<el-radio :label="item.settle_type.name" v-for="(item, index) in typeList" :key="index">{{ item.settle_type.name }}</el-radio>
</el-radio-group>
</div>
<el-table ref="multipleTableClinicRoom" @selection-change="handleSelectionChange" :data="tableDataList"
tooltip-effect="dark" style="width: 100%; height: calc(100vh - 300px)"
:header-cell-style="{ background: '#E7EEFF', color: '#333333' }" v-loading="loading"
element-loading-text="拼命加载中">
<el-table
ref="multipleTableClinicRoom"
@selection-change="handleSelectionChange"
:data="tableDataList"
tooltip-effect="dark"
style="width: 100%; height: calc(100vh - 300px)"
:header-cell-style="{ background: '#E7EEFF', color: '#333333' }"
v-loading="loading"
element-loading-text="拼命加载中"
>
<template slot="empty">
<el-empty :image="tempsrc" :image-size="300" description="暂无数据"></el-empty>
</template>
<el-table-column align="center" type="selection" width="45"> </el-table-column>
<el-table-column prop="occurrence_dept_name" label="开单科室" :show-overflow-tooltip="true">
</el-table-column>
<el-table-column prop="doct_name" label="医生姓名" width="110" :show-overflow-tooltip="true">
</el-table-column>
<el-table-column prop="occurrence_dept_name" label="开单科室" :show-overflow-tooltip="true"> </el-table-column>
<el-table-column prop="doct_name" label="医生姓名" width="110" :show-overflow-tooltip="true"> </el-table-column>
<!-- <el-table-column prop="serial_no" label="付数" width="110"> </el-table-column> -->
<!-- <el-table-column label="患者ID">
<template>
<span>{{ tableData.patient.id }}</span>
</template>
</el-table-column> -->
<el-table-column prop="occurrence_time" label="费用发生日期" width="130" :show-overflow-tooltip="true">
</el-table-column>
<el-table-column prop="occurrence_time" label="费用发生日期" width="130" :show-overflow-tooltip="true"> </el-table-column>
<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="serial_no" label="费用流水号" width="100" :show-overflow-tooltip="true"> </el-table-column>
<el-table-column prop="total" align="center" label="总金额" width="110"> </el-table-column>
</el-table>
</div>
......@@ -87,9 +85,15 @@
<!-- <div class="content-left-type" style="height: 30px; line-height: 30px"></div> -->
<el-table :data="costlist" tooltip-effect="dark"
:header-cell-style="{ background: '#E7EEFF', color: '#333333' }" style="height: calc(100vh - 300px)"
:cell-style="styleBack" v-loading="loading2" element-loading-text="拼命加载中">
<el-table
:data="costlist"
tooltip-effect="dark"
:header-cell-style="{ background: '#E7EEFF', color: '#333333' }"
style="height: calc(100vh - 300px)"
:cell-style="styleBack"
v-loading="loading2"
element-loading-text="拼命加载中"
>
<template slot="empty">
<el-empty :image="tempsrc" :image-size="300" description="暂无数据"></el-empty>
</template>
......@@ -102,17 +106,14 @@
<div>
<span v-if="scope.row.zfbl_desc.length <= 1">{{ scope.row.zfbl }}</span>
<!-- <el-input v-model="scope.row.zfbl" type="text" ref="zifu" @focus="savefocus(scope.row)"></el-input> -->
<el-select v-model="scope.row.zfbl" placeholder="请选择" @change="savebtn(scope.row)"
v-else>
<el-option v-for="(value, key, index) in scope.row.zfbl_desc" :key="key"
:label="key" :value="key">
<el-select v-model="scope.row.zfbl" placeholder="请选择" @change="savebtn(scope.row)" v-else>
<el-option v-for="(value, key, index) in scope.row.zfbl_desc" :key="key" :label="key" :value="key">
<el-tooltip :content="value" placement="top" effect="dark">
<span>{{ key }}</span>
</el-tooltip>
</el-option>
</el-select>
<el-button size="mini" type="primary" v-if="seemodel == scope.row.id"
@click.stop="savebtn(scope.row)">保存</el-button>
<el-button size="mini" type="primary" v-if="seemodel == scope.row.id" @click.stop="savebtn(scope.row)">保存</el-button>
</div>
</template>
</el-table-column>
......@@ -130,16 +131,14 @@
<span>¥{{ total }}</span>
</div>
<!-- <el-checkbox v-model="checked" style="margin-left: 100px;">自费结算</el-checkbox>-->
<el-button class="jiesuan_btn" type="primary" @click="jiesuan"
style="margin-left: 100px; width: 80px; z-index: 99" v-loading="yujiesuanload">确认结算</el-button>
<el-button class="jiesuan_btn" type="primary" @click="jiesuan" style="margin-left: 100px; width: 80px; z-index: 99" v-loading="yujiesuanload">确认结算</el-button>
</div>
<el-dialog title="提示" :visible.sync="dialogVisible" width="70%" :close-on-click-modal="false">
<div slot="title" class="" style="border-bottom: 1px solid #e6e6e6; margin-bottom: 10px">
<span class="titles" style="color: #484848">结算确认</span><span style="color: #666666">( 姓名:{{
patientData.name }}
<span style="margin: 0px 10px"> 门诊号码: {{ patientData.patient_id }} </span>病人ID:{{
patientData.id_card }}
<span class="titles" style="color: #484848">结算确认</span
><span style="color: #666666"
>( 姓名:{{ patientData.name }} <span style="margin: 0px 10px"> 门诊号码: {{ patientData.patient_id }} </span>病人ID:{{ patientData.id_card }}
<span style="color: red">{{ selectTableArr[0] ? selectTableArr[0].settle_type.name : '' }}</span>
</span>
......@@ -147,8 +146,7 @@
</div>
<div style="position: relative">
<div style="" class="abc">
<el-form ref="form2" size="mini" :model="form" element-loading-text="结算中,请稍后..."
element-loading-spinner="el-icon-loading">
<el-form ref="form2" size="mini" :model="form" element-loading-text="结算中,请稍后..." element-loading-spinner="el-icon-loading">
<el-card style="width: 100%; overflow: auto" class="fullbox">
<div>
<div>
......@@ -164,8 +162,7 @@
<el-form-item>
<div class="form_item">
<el-tag class="label" color="#E7EEFF">人员类别</el-tag>
<el-input v-model="form.rqlbName"
disabled></el-input>
<el-input v-model="form.rqlbName" disabled></el-input>
</div>
</el-form-item>
<el-form-item>
......@@ -204,15 +201,13 @@
</el-form-item>
<el-form-item>
<div class="form_item">
<el-tag class="label" color="#E7EEFF"
style="color: #1a5bfd; font-weight: 600">院内账户余额</el-tag>
<el-tag class="label" color="#E7EEFF" style="color: #1a5bfd; font-weight: 600">院内账户余额</el-tag>
<el-input v-model="bxxxinfo.cash_balance" disabled></el-input>
</div>
</el-form-item>
<el-form-item>
<div class="form_item">
<el-tag class="label" color="#E7EEFF"
style="color: #1a5bfd; font-weight: 600">医保账户余额</el-tag>
<el-tag class="label" color="#E7EEFF" style="color: #1a5bfd; font-weight: 600">医保账户余额</el-tag>
<el-input v-model="bxxxinfo.personal_balance" disabled></el-input>
</div>
</el-form-item>
......@@ -223,8 +218,7 @@
<el-form-item>
<div class="form_item">
<el-tag class="label" color="#E7EEFF">结算类型</el-tag>
<el-input
v-model="bxxxinfo.settle_type.name" disabled></el-input>
<el-input v-model="bxxxinfo.settle_type.name" disabled></el-input>
</div>
</el-form-item>
......@@ -329,22 +323,19 @@
<div class="boxmain">
<el-form-item>
<div class="form_item">
<el-tag class="label" color="#E7EEFF"
style="color: #1a5bfd; font-weight: 600"><span>金额总计</span></el-tag>
<el-tag class="label" color="#E7EEFF" style="color: #1a5bfd; font-weight: 600"><span>金额总计</span></el-tag>
<el-input v-model="bxxxinfo.total" disabled></el-input>
</div>
</el-form-item>
<el-form-item>
<div class="form_item">
<el-tag class="label" color="#E7EEFF"
style="color: #1a5bfd; font-weight: 600">医保负担金额</el-tag>
<el-tag class="label" color="#E7EEFF" style="color: #1a5bfd; font-weight: 600">医保负担金额</el-tag>
<el-input v-model="bxxxinfo.insurance_burden" disabled></el-input>
</div>
</el-form-item>
<el-form-item>
<div class="form_item">
<el-tag class="label" color="#E7EEFF"
style="color: #1a5bfd; font-weight: 600">异地个账支付</el-tag>
<el-tag class="label" color="#E7EEFF" style="color: #1a5bfd; font-weight: 600">异地个账支付</el-tag>
<el-input v-model="bxxxinfo.personal_pay_syd" disabled></el-input>
</div>
</el-form-item>
......@@ -353,25 +344,20 @@
<div class="boxmain">
<el-form-item>
<div class="form_item">
<el-tag class="label" color="#E7EEFF"
style="color: #1a5bfd; font-weight: 700"><span>病人负担金额</span></el-tag>
<el-tag class="label" color="#E7EEFF" style="color: #1a5bfd; font-weight: 700"><span>病人负担金额</span></el-tag>
<el-input v-model="bxxxinfo.patient_burden"></el-input>
</div>
</el-form-item>
<el-form-item>
<div class="form_item">
<el-tag class="label" color="#E7EEFF"
style="color: #1a5bfd; font-weight: 600">共济账户支付</el-tag>
<el-input v-model="bxxxinfo.gjzhzf" type="number"
@input="gjzhifu"></el-input>
<el-tag class="label" color="#E7EEFF" style="color: #1a5bfd; font-weight: 600">共济账户支付</el-tag>
<el-input v-model="bxxxinfo.gjzhzf" type="number" @input="gjzhifu"></el-input>
</div>
</el-form-item>
<el-form-item>
<div class="form_item">
<el-tag class="label" color="#E7EEFF"
style="color: #1a5bfd; font-weight: 600">院内账户支付</el-tag>
<el-input v-model="bxxxinfo.his_deduct_amount" type="number"
@input="gjzhifu"></el-input>
<el-tag class="label" color="#E7EEFF" style="color: #1a5bfd; font-weight: 600">院内账户支付</el-tag>
<el-input v-model="bxxxinfo.his_deduct_amount" type="number" @input="gjzhifu"></el-input>
</div>
</el-form-item>
</div>
......@@ -379,26 +365,40 @@
<div class="boxmain">
<el-form-item>
<div class="form_item">
<el-tag class="label" color="#E7EEFF"
style="color: #1a5bfd; font-weight: 600"><span>医保个账支付</span></el-tag>
<el-input v-model="bxxxinfo.grzhzf" @input="gjzhifu()" @blur="grzhzfBlur()"
<el-tag class="label" color="#E7EEFF" style="color: #1a5bfd; font-weight: 600"><span>医保个账支付</span></el-tag>
<el-input
v-model="bxxxinfo.grzhzf"
@input="gjzhifu()"
@blur="grzhzfBlur()"
type="number"
:disabled="form.insurance_type == 'LONGDISTANCE' || form.insurance_type == 'OFFSITE'"></el-input>
:disabled="form.insurance_type == 'LONGDISTANCE' || form.insurance_type == 'OFFSITE'"
></el-input>
</div>
</el-form-item>
<el-form-item>
<div class="form_item">
<el-tag class="label" color="#E7EEFF"
style="color: #1a5bfd; font-weight: 600">待缴费</el-tag>
<el-tag class="label" color="#E7EEFF" style="color: #1a5bfd; font-weight: 600"><span>现金支付</span></el-tag>
<el-input v-model="xj_amount" type="number" disabled></el-input>
</div>
</el-form-item>
<el-form-item>
<div class="form_item">
<el-tag class="label" color="#E7EEFF" style="color: #1a5bfd; font-weight: 600"><span>聚合支付</span></el-tag>
<el-input v-model="source_pay_amount" type="number" disabled></el-input>
</div>
</el-form-item>
</div>
<div class="boxmain">
<el-form-item>
<div class="form_item">
<el-tag class="label" color="#E7EEFF" style="color: #1a5bfd; font-weight: 600">待缴费</el-tag>
<el-input v-model="form.djf" type="number"></el-input>
</div>
</el-form-item>
<el-form-item style="visibility: hidden">
<div class="form_item">
<el-tag class="label" color="#E7EEFF"
style="color: #1a5bfd; font-weight: 600">共济账户支付</el-tag>
<el-input v-model="bxxxinfo.family_ba222lance" type="number"
@input="gjzhifu()"></el-input>
<el-tag class="label" color="#E7EEFF" style="color: #1a5bfd; font-weight: 600">共济账户支付</el-tag>
<el-input v-model="bxxxinfo.family_ba222lance" type="number" @input="gjzhifu()"></el-input>
</div>
</el-form-item>
</div>
......@@ -407,36 +407,31 @@
<div style="display: flex">
<el-form-item>
<div style="display: flex; margin-top: 10px">
<el-button style="margin-left: 5px" type="success" @click="zhifu('1')"
:disabled="form.djf <= 0">聚合支付</el-button>
<el-button style="margin-left: 5px" type="success" @click="zhifu('1')" :disabled="form.djf <= 0">聚合支付</el-button>
<!-- <el-button style="margin-left: 5px" type="success" @click="zhifu('1')"
:disabled="form.djf <= 0">微信</el-button>
<el-button type="primary" @click="zhifu('2')" :disabled="form.djf <= 0">支付宝</el-button>
<el-button style="margin-left: 5px" type="warning" @click="zhifu('3')"
:disabled="form.djf <= 0"> 银行卡</el-button>
:disabled="form.djf <= 0"> 银行卡</el-button> -->
<el-button type="info" @click="zhifu('5')" :disabled="form.djf <= 0">现金</el-button>
<el-checkbox v-model="gjzhzfje" :disabled="bxxxinfo.gjzhye <= 0"
<!-- <el-checkbox v-model="gjzhzfje" :disabled="bxxxinfo.gjzhye <= 0"
style="margin-left: 50px">共济账户支付</el-checkbox> -->
</div>
</el-form-item>
<div>
<el-button type="primary" @click="qrjsmiss('1')"
style="position: absolute; right: 21px; bottom: 8px">确认结算</el-button>
<el-button type="primary" @click="qrjsmiss('1')" style="position: absolute; right: 21px; bottom: 8px">确认结算</el-button>
<!-- :disabled="sureshow" -->
</div>
</div>
</el-form>
</div>
<div style="width: 100%; height: 100%; background-color: #d6d6d6; position: absolute; top: 0px; text-align: center"
v-if="loadingapplyList">
<div style="width: 100%; height: 100%; background-color: #d6d6d6; position: absolute; top: 0px; text-align: center" v-if="loadingapplyList">
<div><img src="../../assets/images/1223.png" alt="" style="width: 38%; margin-top: 37px" /></div>
<div><img src="../../assets/images/jiazai1.gif" alt=""
style="height: 225px; width: 340px; margin-top: -92px" /></div>
<div><img src="../../assets/images/jiazai1.gif" alt="" style="height: 225px; width: 340px; margin-top: -92px" /></div>
<!-- <el-progress :percentage="progress" :indeterminate="true" striped striped-flow status="primary" style="width:50%;margin:264px auto 0px" /> -->
<div style="text-align: center; margin-top: -96px; font-size: 17px">
<span v-if="contenttime < 4">地纬接口结算中........</span><span
v-if="contenttime >= 4">His接口调用中........</span>
<span v-if="contenttime < 4">地纬接口结算中........</span><span v-if="contenttime >= 4">His接口调用中........</span>
</div>
</div>
</div>
......@@ -447,8 +442,7 @@
-->
<el-dialog title="选择就诊介质" :visible.sync="jeizhishow" width="560px" :close-on-click-modal="false">
<img :src="logo" style="display: block" alt="logo" />
<el-form :model="yibaoinfo" :inline="true" @submit.native.prevent v-loading="jiezhiLoading"
element-loading-text="结算中...">
<el-form :model="yibaoinfo" :inline="true" @submit.native.prevent v-loading="jiezhiLoading" element-loading-text="结算中...">
<div style="text-align: center">
<el-form-item label="介质类型">
<el-radio-group v-model="jiezhi">
......@@ -457,11 +451,71 @@
</el-form-item>
</div>
<div style="text-align: center; padding-bottom: 36px">
<el-input v-if="jiezhi == 'A'" v-model="pingzhengma" type="text" placeholder="请输入患者卡号"
@blur="handleSetFocus()" @keyup.enter.native="cardjiesuan" ref="inputlast"
style="width: 300px"></el-input>
<el-input
v-if="jiezhi == 'A'"
v-model="pingzhengma"
type="text"
placeholder="请输入患者卡号"
@blur="handleSetFocus()"
@keyup.enter.native="cardjiesuan"
ref="inputlast"
style="width: 300px"
></el-input>
</div>
</el-form>
</el-dialog>
<el-dialog width="50%" title="付款方式" :visible.sync="uploadfeeshow" :close-on-click-modal="false">
<el-form :model="feelist" :inline="true" @submit.native.prevent>
<div>
<div style="text-align: center">
<div style="margin-bottom: 30px" v-if="feelist.channel == '1'">
<span class="feetexts">付款方式——<span class="feetext">聚合</span>付款</span>
</div>
<div style="margin-bottom: 30px" v-if="feelist.channel == '3'">
<span class="feetexts">付款方式——<span class="feetext">银行卡</span>付款</span>
</div>
<!-- <div style="margin-bottom: 30px" v-if="feelist.channel == '5'">
<span class="feetexts">付款方式——<span class="feetext">现金</span>付款</span>
</div> -->
<div style="text-align: center">
<el-input
v-if="feelist.channel == '1'"
v-model="fee.weixin"
type="text"
placeholder="请刷聚合支付付款码"
@keyup.enter.native="feesure(1)"
ref="inputWX"
style="width: 300px"
></el-input>
<el-input
v-if="feelist.channel == '5'"
v-model="form.admin_djf"
type="number"
@input="handleInput"
placeholder="现金金额"
@keyup.enter.native="feesure(5)"
ref="inputXJ"
style="width: 300px"
></el-input>
<div v-if="feelist.channel == '5'" style="display: flex; font-size: 30px; color: red; line-height: 80px; justify-content: center">
<div style="margin-right: 20px">
<span>收款:{{ form.admin_djf }}</span>
</div>
<div style="margin-right: 20px">
<span>待缴费:{{ form.djf }}</span>
</div>
<div>
<span>找零:{{ form.admin_djf > 0 ? zhmoney : '' }}</span>
</div>
</div>
</div>
</div>
</div>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="feesure(feelist.channel)" v-loading="fullscreenLoading" :disabled="cash_disable">确 定</el-button>
</div>
</el-dialog>
<Cardlist :cardlist="cardlist" @cardcolsein="cardcolsein" :cardlistdata="patientData.patient_id" />
<!-- 选择卡类型new---废弃 -->
......@@ -470,8 +524,7 @@
<!-- 读卡 -->
<Readcards :isOpenCarded="carddialogFormVisible" @getyibaoinfo="getyibaoinfo" @closeReadcard="closeReadcard" />
<!-- 确认结算-新-不选择卡类型 -->
<ReadcardsNew :isOpenCarded="yibaoshowNew" :patientcard="form" :patientData="patientData"
:selectTableArr="selectTableArr" @getyibaoinfo="selectCardYiboPreselect" @close="closeSelectCard" />
<ReadcardsNew :isOpenCarded="yibaoshowNew" :patientcard="form" :patientData="patientData" :selectTableArr="selectTableArr" @getyibaoinfo="selectCardYiboPreselect" @close="closeSelectCard" />
<!-- loaidng 动画 -->
<div v-if="false" class="grey-cloth" id="loading">
<div id="img">
......@@ -487,15 +540,11 @@
<el-dialog title="提示" :visible.sync="moreshow" width="30%" v-loading="moreLoading">
<span>请选择诊断</span>
<el-radio-group v-model="zhenduan">
<el-radio :label="item.code" v-for="item in moreshowdata.data.mzdbjbs_arr" :key="item.value">{{
item.name
}}</el-radio>
<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">
<el-button @click="moreshow = false">取 消</el-button>
<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>
</el-dialog>
<el-dialog title="提示" :visible.sync="GSshow" width="30%" v-loading="moreLoading">
......@@ -503,7 +552,6 @@
<span slot="footer" class="dialog-footer">
<el-button @click="GSshow = false">确定</el-button>
</span>
</el-dialog>
<!-- <el-dialog title="提示" :visible.sync="found" width="30%" v-loading="moreLoading">
......@@ -517,36 +565,37 @@
<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="拼命加载中">
<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="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>
<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>
<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-column prop="sevdeg" label="严重程度" width="100" :show-overflow-tooltip="true"> </el-table-column>
</el-table>
</div>
<div style="margin: 20px 0px;">反馈原因</div>
<div style="margin: 20px 0px">反馈原因</div>
<div>
<el-input type="textarea" :rows="3" placeholder="请输入内容" v-model="shiqianText">
</el-input>
<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>
......@@ -559,7 +608,7 @@
import Cardlist from '@/components/Cardlist'
import Readcards from '@/components/Readcards'
import editProp1 from './components/editProp' //修改自付比例
import { pdxx, mzxx, mzxxs, mzxxs_ewm, pdxq, info, bxxx, prescription,serviceInvoke, jsxx, hiscard, printmis, queryReadRard, verifyFeeStatus, jhsubmit } from '@/api/mz'
import { pdxx, mzxx, mzxxs, mzxxs_ewm, pdxq, info, bxxx, prescription, serviceInvoke, jsxx, hiscard, printmis, queryReadRard, verifyFeeStatus, jhsubmit } from '@/api/mz'
import { get_serial_number, editProp, zfbl, freemoney, settlementPre, familybalanceinfor, patient, settleSelfPre, selfPre, yundaMis, familyBalance, get_zfbl } from '@/api/jiesuan'
import printProof from '../../utils/print_proof'
import getLodop from '../../assets/js/LodopFuncs'
......@@ -576,15 +625,20 @@ export default {
name: 'Outpatient',
data() {
return {
weiguiList:[],
shiqianText:'',
weiguiData:[],
yijiShow:false,
weiguiList: [],
shiqianText: '',
weiguiData: [],
yijiShow: false,
ViolationShow: false,
gz_name: false,
dataText: '',
GSshow: false,
isGS: false,
zhmoney: 0,
cash_disable: false,
payData: {},
source_pay_amount: 0,
xj_amount: 0,
GSdatatime: '',
found: false,
yujiesuanLoading: false,
......@@ -671,7 +725,7 @@ export default {
channel: 'local',
},
bxxxinfo: {
settle_type:'',
settle_type: '',
djf: 0,
zhye: 0,
brxm: '',
......@@ -768,7 +822,7 @@ export default {
visitDate: '',
jsroundData: {},
ismb: false,
channel:''
channel: '',
}
},
mounted() {
......@@ -778,7 +832,7 @@ export default {
// if (this.$route.query?.jobNumber) {
// localStorage.setItem('jobNumber', this.$route.query.jobNumber)
// }
this.channel= this.$route.query?.channel || ''
this.channel = this.$route.query?.channel || ''
this.titleshow = this.$route.query?.layoutShow || ''
this.cardNo = this.$route.query?.cardNo || ''
this.cardType = this.$route.query?.cardType || ''
......@@ -820,33 +874,31 @@ export default {
},
},
methods: {
async deleteViolation(){
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
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',
})
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
},
......@@ -972,9 +1024,14 @@ export default {
//当共济支付开关打开时,其他额度根据共济变动
gjzhifu(e) {
this.$forceUpdate()
let chongzhi = this.source_pay_amount * 1 + this.xj_amount * 1
// let djsold = this.round(this.bxxxinfo.brfdje * 1 - this.bxxxinfo.grzhzf * 1, 2)
// this.form.djf = this.round(this.round(djsold * 1 - this.bxxxinfo.his_deduct_amount * 1, 2) - this.bxxxinfo.gjzhzf * 1, 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.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.round(this.bxxxinfo.patient_burden - this.bxxxinfo.gjzhzf, 2) - this.bxxxinfo.his_deduct_amount, 2) - this.bxxxinfo.grzhzf, 2) - chongzhi,
2,
)
},
//医保个人账户支付输入值blur
grzhzfBlur() {
......@@ -1015,9 +1072,9 @@ export default {
//读卡器方法
socketInit() {
this.wj = new WebSocket('ws://127.0.0.1:6932/')
this.wj.onopen = function () { }
this.wj.onopen = function () {}
this.wj.onmessage = this.onmessagecard
this.wj.onclose = function () { }
this.wj.onclose = function () {}
},
//退款结果
reimResult(evt) {
......@@ -1106,44 +1163,65 @@ export default {
},
//微信支付宝银行卡现金充值接口
feesure(e) {
this.cash_disable = true
this.fullscreenLoading = true
if (e == '1') {
if (e == '1' || e == '5') {
// return false
freemoney({
payment_type: 'WX_BAR',
amount: this.form.djf,
auth_code: this.fee.weixin,
his_patient_id: this.tableData.patient.id,
patient_type: 'mz',
settlement_no: this.bxxxinfo.settlement_no,
amount: this.form.djf,
authCode: this.fee.weixin,
operatorNo: this.jobNumber,
payType: e == '1' ? 'cumsNative' : e == '5' ? 'cash' : '', // 支付类型 cumsNative 聚合支付 cash 现金
rechargeType: 1, // 是否预交金充值 1是 0否,
patientId: this.patientData.patient_id,
deptCode: this.dept,
})
.then(response => {
this.$message({
message: response.message,
type: 'success',
})
if (this.bxxxinfo.brfdje * 1 > response.data.his_balance * 1) {
this.bxxxinfo.his_deduct_amount = response.data.his_balance * 1
if (response.code == 200) {
this.$message({
message: response.message,
type: 'success',
})
this.payData = response.data
if (e == '1') {
this.xj_amount = 0
this.source_pay_amount = this.form.djf
} else {
this.xj_amount = this.form.djf
this.source_pay_amount = 0
}
this.form.djf = 0
// if (this.bxxxinfo.brfdje * 1 > response.data.his_balance * 1) {
// this.bxxxinfo.his_deduct_amount = response.data.his_balance * 1
// } else {
// this.bxxxinfo.his_deduct_amount = this.bxxxinfo.brfdje * 1
// }
// let balancenew = response.data.his_balance * 1
// this.bxxxinfo.his_deduct_amount = this.bxxxinfo.his_deduct_amount * 1 + (balancenew * 100 - this.bxxxinfo.his_balance * 100) / 100
//接口返回新的院内账户余额
this.bxxxinfo.his_balance = response.data.his_balance * 1
let djsold = this.round(this.bxxxinfo.brfdje - this.bxxxinfo.grzhzf, 2)
let chongzhi = this.source_pay_amount * 1 + this.xj_amount * 1
//充值成功后的代缴费金额
// this.form.djf = this.round(this.round(djsold - this.bxxxinfo.his_deduct_amount, 2) - this.bxxxinfo.gjzhzf, 2)
this.form.djf = this.round(this.round(this.round(djsold - this.bxxxinfo.his_deduct_amount, 2) - this.bxxxinfo.gjzhzf, 2) - chongzhi, 2)
//微信支付宝弹窗
this.uploadfeeshow = false
// 总的大弹窗
this.fullscreenLoading = false
//结算
// this.qrjs()
this.qrjsmiss('1')
} else {
this.bxxxinfo.his_deduct_amount = this.bxxxinfo.brfdje * 1
this.$message({
message: response.message,
type: 'error',
})
}
// let balancenew = response.data.his_balance * 1
// this.bxxxinfo.his_deduct_amount = this.bxxxinfo.his_deduct_amount * 1 + (balancenew * 100 - this.bxxxinfo.his_balance * 100) / 100
//接口返回新的院内账户余额
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(djsold - this.bxxxinfo.his_deduct_amount, 2) - this.bxxxinfo.gjzhzf, 2)
//微信支付宝弹窗
this.uploadfeeshow = false
// 总的大弹窗
this.fullscreenLoading = false
//结算
// this.qrjs()
this.qrjsmiss('1')
})
.finally(() => {
this.cash_disable = false
this.fee.weixin = ''
//微信支付宝弹窗
this.uploadfeeshow = false
......@@ -1152,47 +1230,47 @@ export default {
})
}
if (e == '5') {
freemoney({
payment_type: 'CASH',
amount: this.form.admin_djf,
auth_code: 'not',
his_patient_id: this.tableData.patient.id,
patient_type: 'mz',
settlement_no: this.bxxxinfo.settlement_no,
})
.then(response => {
this.$message({
message: response.message,
type: 'success',
})
if (this.bxxxinfo.brfdje * 1 > response.data.his_balance * 1) {
this.bxxxinfo.his_deduct_amount = response.data.his_balance * 1
} else {
this.bxxxinfo.his_deduct_amount = this.bxxxinfo.brfdje * 1
}
// let balancenew = response.data.his_balance * 1
// this.bxxxinfo.his_deduct_amount = this.bxxxinfo.his_deduct_amount * 1 + this.round(balancenew - this.bxxxinfo.his_balance * 1, 2)
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(djsold - this.bxxxinfo.his_deduct_amount, 2) - this.bxxxinfo.gjzhzf, 2)
// this.qrjs()
this.qrjsmiss('1')
//微信支付宝弹窗
this.uploadfeeshow = false
// 总的大弹窗
this.fullscreenLoading = false
})
.finally(() => {
//微信支付宝弹窗
this.uploadfeeshow = false
// 总的大弹窗
this.fullscreenLoading = false
})
}
if (this.feelist.channel == '3') {
this.get_serial_number('3')
}
// if (e == '5') {
// freemoney({
// payment_type: 'CASH',
// amount: this.form.admin_djf,
// auth_code: 'not',
// his_patient_id: this.tableData.patient.id,
// patient_type: 'mz',
// settlement_no: this.bxxxinfo.settlement_no,
// })
// .then(response => {
// this.$message({
// message: response.message,
// type: 'success',
// })
// if (this.bxxxinfo.brfdje * 1 > response.data.his_balance * 1) {
// this.bxxxinfo.his_deduct_amount = response.data.his_balance * 1
// } else {
// this.bxxxinfo.his_deduct_amount = this.bxxxinfo.brfdje * 1
// }
// // let balancenew = response.data.his_balance * 1
// // this.bxxxinfo.his_deduct_amount = this.bxxxinfo.his_deduct_amount * 1 + this.round(balancenew - this.bxxxinfo.his_balance * 1, 2)
// 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(djsold - this.bxxxinfo.his_deduct_amount, 2) - this.bxxxinfo.gjzhzf, 2)
// // this.qrjs()
// this.qrjsmiss('1')
// //微信支付宝弹窗
// this.uploadfeeshow = false
// // 总的大弹窗
// this.fullscreenLoading = false
// })
// .finally(() => {
// //微信支付宝弹窗
// this.uploadfeeshow = false
// // 总的大弹窗
// this.fullscreenLoading = false
// })
// }
// if (this.feelist.channel == '3') {
// this.get_serial_number('3')
// }
},
//银行卡mis交易、获取参考号
get_serial_number(e) {
......@@ -1226,7 +1304,7 @@ export default {
type: 'MIS',
value: x,
valtp: 'mz_ylmiss',
}).then(response => { })
}).then(response => {})
this.resorderID = response.data.value
// if (_this.ws.readyState === _this.ws.OPEN) {
// _this.ws.send(x)
......@@ -1249,7 +1327,7 @@ export default {
_this.ws.send(x)
}
_this.ws.onmessage = this.BanksetOnmessageMessage
_this.ws.onclose = function () { }
_this.ws.onclose = function () {}
})
.finally(() => {
this.uploadfeeshow = false
......@@ -1686,7 +1764,7 @@ export default {
var that = this
this.gz_name = false
var obj = {
channel:this.channel,
channel: this.channel,
visit_no: this.visitNo,
visit_date: this.visitDate,
patient_id: this.patientData.patient_id, //this.cardNo,
......@@ -1710,20 +1788,20 @@ export default {
})
},
async jiesuan() {
this.shiqianText=''
this.weiguiList=[]
this.shiqianText = ''
this.weiguiList = []
this.shenfenzheng = this.tableData.patient.idCard
this.adminpingzhengma = ''
this.bxxxinfo = {
settle_type:''
settle_type: '',
}
this.ismb = false
this.orders.forEach(element => {
if (element) {
this.ismb = true
}
});
if ((!this.ismb && this.man_name == false) || this.channel=='4') {
})
if ((!this.ismb && this.man_name == false) || this.channel == '4') {
if (this.orders.length > 0) {
this.ybjs()
} else {
......@@ -1749,7 +1827,6 @@ export default {
}
}
}
},
// ldjkfsl(){
// if(this.manFeeStatus()){
......@@ -1814,10 +1891,7 @@ export default {
is_pre: 1,
pre_id: '1',
p_ewm: this.adminpingzhengma,
})
.then(response => {
})
}).then(response => {})
},
//#####################预结算###################
......@@ -1834,7 +1908,6 @@ export default {
p_ewm: this.adminpingzhengma,
})
.then(async response => {
this.dialogVisible = true
this.yujiesuanload = false
this.bxxxinfo = response.data
......@@ -1849,7 +1922,10 @@ export default {
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(() => { })
.finally(() => {})
},
handleInput(e) {
this.zhmoney = this.round(this.form.admin_djf - this.form.djf, 2)
},
//确认结算判断是否东营本地弹窗
qrjsmiss(e) {
......@@ -1862,7 +1938,7 @@ export default {
this.sureshow = true
if (this.form.djf > 0) {
this.$message({
message: '院内余额不足,请充值'+this.form.djf+'元后进行缴费缴费',
message: '院内余额不足,请充值' + this.form.djf + '元后进行缴费缴费',
type: 'warning',
})
this.sureshow = false
......@@ -1892,8 +1968,8 @@ export default {
szyb() {
let x = {}
yundaMis(x)
.then(res => { })
.catch(err => { })
.then(res => {})
.catch(err => {})
},
//结算按钮预结算按钮
queren() {
......@@ -2019,8 +2095,13 @@ export default {
}, 1000)
this.sureshow = true
let y = {
channel:this.channel,
source_type: this.payData.targetSys,
source_trade_no: this.payData.sourceTradeNo,
is_gz: this.gz_name,
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,
......@@ -2060,11 +2141,11 @@ export default {
// break;
// }
// }
let dept=localStorage.getItem('deptCode')
if ( dept !='0502' ){
let dept = localStorage.getItem('deptCode')
if (dept != '0502') {
_this.printcard(jshidprint)
}
// }, 5000)
//刷新列表
......@@ -2381,9 +2462,8 @@ export default {
})
},
selectCardYiboPreselect(data, x, y) {
// 判断慢病
if (this.selectTableArr[0]?.settle_type.is_mb) {
// 判断慢病
if (this.selectTableArr[0]?.settle_type.is_mb) {
// 判断多病种慢病
if (data?.mzdbjbs_arr.length > 1) {
this.moreshow = true
......@@ -2396,10 +2476,9 @@ export default {
this.selectCardYiboPre(data, x, y, data?.mzdbjbs_arr[0]?.code)
}
} else {
this.selectCardYiboPre(data, x, y,data?.mzdbjbs_arr[0]?.code)
this.selectCardYiboPre(data, x, y, data?.mzdbjbs_arr[0]?.code)
}
// if (data?.mzdbjbs_arr.length > 1 && this.selectTableArr[0]?.settle_type.is_mb) {
// this.moreshow = true
// this.moreshowdata = {
......@@ -2409,7 +2488,7 @@ export default {
// }
// } else {//(data?.mzdbjbs_arr.length == 1 && this.selectTableArr[0]?.settle_type.is_mb)
// this.selectCardYiboPre(data, x, y, data?.mzdbjbs_arr[0]?.code)
// }
// }
// 所有都穿诊断
// else {
// this.selectCardYiboPre(data, x, y)
......@@ -2418,6 +2497,8 @@ export default {
// 医保预结算
selectCardYiboPre(data, x, y, zhenduan) {
this.yujiesuanLoading = true
this.xj_amount = 0
this.source_pay_amount = 0
this.moreshow = false
this.moreLoading = true
this.oldewmpingzheng = y
......@@ -2428,7 +2509,7 @@ export default {
settlementPre({
is_gz: this.gz_name,
injury_date: this.GSdatatime,
p_jbbm: this.selectTableArr[0]?.settle_type.is_mb?zhenduan:'',
p_jbbm: this.selectTableArr[0]?.settle_type.is_mb ? zhenduan : '',
patient_id: this.patientData.patient_id,
cache_key: data.cache_key,
prescription_nos: this.cost_id,
......@@ -2464,21 +2545,20 @@ export default {
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
prescription_nos: this.cost_id,
js_type: '1',
p_jbbm: zhenduan,
}).then(response => {
if (response.data.result.length > 0) {
this.weiguiList = response.data.result
this.weiguiData = response.data.result
this.ViolationShow = true
} else {
this.dialogVisible = true
}
})
.then(response => {
if (response.data.result.length>0) {
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.his_deduct_amount = 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)
......@@ -2526,10 +2606,11 @@ export default {
// 自费预结算
zfBeforePre() {
this.yujiesuanLoading = true
this.xj_amount = 0
this.source_pay_amount = 0
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 : '' })
.then(res => {
this.yujiesuanLoading = false
this.dialogVisible = true
this.bxxxinfo = res.data
......@@ -2657,18 +2738,24 @@ export default {
<div class="conline"><span>就诊卡号:</span><span class="money">${e.id_card}</span></div>
<div class="conline"><span>交易方式:</span><span class="money">${e.trade_type}</span></div>
<div class="conline"><span>开单医师:</span><span class="money">${e.doctor_name}</span></div>
<div class="conline" style="${this.bxxxinfo.patient_burden != 0 && (this.bxxxinfo.patient_burden != '0.00') == false ? 'display:none' : 'display:block'
}"><span>个人负担金额:</span><span class="money" >${this.bxxxinfo.patient_burden}元</span></div>
<div class="conline" style="${(this.bxxxinfo.insurance_burden != 0 && this.bxxxinfo.insurance_burden != '0.00') == false ? 'display:none' : 'display:block'
}"><span>医保负担金额:</span><span class="money" >${this.bxxxinfo.insurance_burden}元</span></div>
<div class="conline" style="${(this.bxxxinfo.personal_pay_syd != 0 && this.bxxxinfo.personal_pay_syd != '0.00') == false ? 'display:none' : 'display:block'
}"><span>省异地个帐支付:</span><span class="money" >${this.bxxxinfo.personal_pay_syd}元</span></div>
<div class="conline" style="${(this.bxxxinfo.his_deduct_amount != 0 && this.bxxxinfo.his_deduct_amount != '0.00') == false ? 'display:none' : 'display:block'
}"><span>院内账户支付:</span><span class="money" >${this.bxxxinfo.his_deduct_amount}元</span></div>
<div class="conline" style="${(this.bxxxinfo.grzhzf != 0 && this.bxxxinfo.grzhzf != '0.00') == false ? 'display:none' : 'display:block'
}"><span>医保账户支付:</span><span class="money" >${this.bxxxinfo.grzhzf}元 </span></div>
<div class="conline" style="${(this.bxxxinfo.gjzhzf != 0 && this.bxxxinfo.gjzhzf != '0.00') == false ? 'display:none' : 'display:block'
}"><span>共济账户支付:</span><span class="money">${this.bxxxinfo.gjzhzf}元</span></div>
<div class="conline" style="${
this.bxxxinfo.patient_burden != 0 && (this.bxxxinfo.patient_burden != '0.00') == false ? 'display:none' : 'display:block'
}"><span>个人负担金额:</span><span class="money" >${this.bxxxinfo.patient_burden}元</span></div>
<div class="conline" style="${
(this.bxxxinfo.insurance_burden != 0 && this.bxxxinfo.insurance_burden != '0.00') == false ? 'display:none' : 'display:block'
}"><span>医保负担金额:</span><span class="money" >${this.bxxxinfo.insurance_burden}元</span></div>
<div class="conline" style="${
(this.bxxxinfo.personal_pay_syd != 0 && this.bxxxinfo.personal_pay_syd != '0.00') == false ? 'display:none' : 'display:block'
}"><span>省异地个帐支付:</span><span class="money" >${this.bxxxinfo.personal_pay_syd}元</span></div>
<div class="conline" style="${
(this.bxxxinfo.his_deduct_amount != 0 && this.bxxxinfo.his_deduct_amount != '0.00') == false ? 'display:none' : 'display:block'
}"><span>院内账户支付:</span><span class="money" >${this.bxxxinfo.his_deduct_amount}元</span></div>
<div class="conline" style="${
(this.bxxxinfo.grzhzf != 0 && this.bxxxinfo.grzhzf != '0.00') == false ? 'display:none' : 'display:block'
}"><span>医保账户支付:</span><span class="money" >${this.bxxxinfo.grzhzf}元 </span></div>
<div class="conline" style="${
(this.bxxxinfo.gjzhzf != 0 && this.bxxxinfo.gjzhzf != '0.00') == false ? 'display:none' : 'display:block'
}"><span>共济账户支付:</span><span class="money">${this.bxxxinfo.gjzhzf}元</span></div>
<div class="btnborder conline"><span>费用合计:</span><span class="money">${this.bxxxinfo.total}元</span></div>
` +
textend +
......@@ -2814,7 +2901,12 @@ export default {
return false
}
let y = {
channel:this.channel,
source_type: this.payData.targetSys,
source_trade_no: this.payData.sourceTradeNo,
xj_amount: this.xj_amount,
source_pay_amount: this.source_pay_amount,
tradeNo: this.payData.tradeNo,
channel: this.channel,
patient_id: this.patientData.patient_id,
personal_pay: this.bxxxinfo.grzhzf,
family_pay: this.bxxxinfo.gjzhzf,
......@@ -2822,51 +2914,50 @@ export default {
pre_key: this.bxxxinfo.pre_key,
cache_key: this.form.cache_key,
}
selfPre(y)
.then(response => {
const _this = this
this.$message.success('结算成功')
this.dialogVisible = false
this.sureshow = false
this.loadingapplyList = false
this.yibaoshow = false
this.fullscreenLoading = false
this.jeizhishow = false
const jshidprint = response.data
this.jsroundData = response.data
// setTimeout(function () {
// this.found=false
// for (let index = 0; index <jshidprint.settle_fees.length; index++) {
// if (response.data.settle_fees[index].address === "西药房") {
// this.found = true;
// break;
// }
// }
let dept=localStorage.getItem('deptCode')
if ( dept !='0502' ){
_this.printcard(jshidprint)
}
// _this.printcard(jshidprint)
// }, 5000)
this.yibaoshow = false
this.jeizhishow = false
selfPre(y).then(response => {
const _this = this
this.$message.success('结算成功')
this.dialogVisible = false
this.sureshow = false
this.loadingapplyList = false
this.yibaoshow = false
this.fullscreenLoading = false
this.jeizhishow = false
const jshidprint = response.data
this.jsroundData = response.data
// setTimeout(function () {
// this.found=false
// for (let index = 0; index <jshidprint.settle_fees.length; index++) {
// if (response.data.settle_fees[index].address === "西药房") {
// this.found = true;
// break;
// }
// }
let dept = localStorage.getItem('deptCode')
if (dept != '0502') {
_this.printcard(jshidprint)
}
// _this.printcard(jshidprint)
// }, 5000)
this.yibaoshow = false
this.jeizhishow = false
this.getWaiting()
this.getWaiting()
// var obj = {
// 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
// })
})
// var obj = {
// 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
// })
})
},
// 获取共济余额
getFamilyBalance() {
......@@ -3257,7 +3348,8 @@ export default {
align-items: center;
}
.app-container {}
.app-container {
}
::v-deep .el-card__body {
padding: 15px 9px;
......
......@@ -26,16 +26,15 @@
<div class="box_card_title">
<div style="display: flex; justify-content: space-between; width: 100%">
<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">
<el-checkbox v-model="gz_name" style="margin-right: 10px;">转为个账账单</el-checkbox>
<el-checkbox v-model="man_name">转为自费账单</el-checkbox>
<el-checkbox v-model="insurance_payment">智慧医保支付</el-checkbox>
</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">
<el-checkbox v-model="gz_name" style="margin-right: 10px">转为个账账单</el-checkbox>
<el-checkbox v-model="man_name">转为自费账单</el-checkbox>
<el-checkbox v-model="insurance_payment">智慧医保支付</el-checkbox>
</div>
<!-- <div style="display: flex" v-if="patientInfo.yblx != '01'">
<div style="line-height: 28px; width: 75px">结算类型:</div>
<div class="selectinput" style="margin-left: 20px">
......@@ -537,41 +536,41 @@
<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="拼命加载中">
<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="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>
<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>
<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-column prop="sevdeg" label="严重程度" width="100" :show-overflow-tooltip="true"> </el-table-column>
</el-table>
</div>
<div style="margin: 20px 0px;">反馈原因</div>
<div style="margin: 20px 0px">反馈原因</div>
<div>
<el-input type="textarea" :rows="3" placeholder="请输入内容" v-model="shiqianText">
</el-input>
<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>
......@@ -584,7 +583,7 @@
import Cardlist from '@/components/SFCCardlist'
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 } 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 { recharge } from '@/api/changeFree'
import printProof from '../../utils/print_proof'
......@@ -602,10 +601,10 @@ export default {
name: 'Outpatient',
data() {
return {
GSdatatime:'',
weiguiList:[],
shiqianText:'',
weiguiData:[],
GSdatatime: '',
weiguiList: [],
shiqianText: '',
weiguiData: [],
ViolationShow: false,
gz_name: false,
dataText: '',
......@@ -651,7 +650,7 @@ export default {
],
channels: '',
man_name: false,
insurance_payment: false,
insurance_payment: false,
card_typeinfor: '',
sdsdzjkk: '',
infor: [],
......@@ -704,7 +703,7 @@ export default {
},
bxxxinfo: {
settle_type: {
name:''
name: '',
},
djf: 0,
zhye: 0,
......@@ -799,17 +798,17 @@ export default {
cardNoShow: false,
visitNo: '',
visitDate: '',
jobNumber:'',
dept:''
jobNumber: '',
dept: '',
}
},
mounted() {
this.socketInit()
},
created() {
this.jobNumber = this.$route.query?.jobNumber || ''
this.dept = this.$route.query?.dept || ''
this.channel = this.$route.query?.channel || ''
this.jobNumber = this.$route.query?.jobNumber || ''
this.dept = this.$route.query?.dept || ''
this.channel = this.$route.query?.channel || ''
this.titleshow = this.$route.query?.layoutShow || ''
this.cardNo = this.$route.query?.cardNo || ''
this.cardType = this.$route.query?.cardType || ''
......@@ -851,33 +850,31 @@ export default {
},
},
methods: {
async deleteViolation(){
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
warn_rslt_id: this.weiguiList[0].jrid,
dspo_way_rea: this.shiqianText,
dspo_way: '2',
}).then(response => {
this.$message({
message: '返回成功',
type: 'success',
})
},
// 事前反馈
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
})
},
// 事前反馈
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
},
......@@ -1085,7 +1082,7 @@ export default {
//首次进页面第一次刷卡返回的信息
getyibaoinfo(e, x) {
this.man_name = false
this.insurance_payment=false
this.insurance_payment = false
this.only_qq = 0
//第一次读二维码不需要from_web
if (x) {
......@@ -1123,58 +1120,57 @@ export default {
feesure(e) {
this.cash_disable = true
this.fullscreenLoading = true
if (e == '1' || e == '5') {
if (e == '1' || e == '5') {
// return false
recharge({
amount: this.form.djf,
authCode: this.fee.weixin,
operatorNo: this.jobNumber,
payType: e=='1'?'cumsNative':e=='5'?'cash':'', // 支付类型 cumsNative 聚合支付 cash 现金
rechargeType: 1, // 是否预交金充值 1是 0否,
patientId: this.patientData.patient_id,
deptCode: this.dept
amount: this.form.djf,
authCode: this.fee.weixin,
operatorNo: this.jobNumber,
payType: e == '1' ? 'cumsNative' : e == '5' ? 'cash' : '', // 支付类型 cumsNative 聚合支付 cash 现金
rechargeType: 1, // 是否预交金充值 1是 0否,
patientId: this.patientData.patient_id,
deptCode: this.dept,
// amount: this.form.djf,
// auth_code: this.fee.weixin,
// patient_id: this.patientData.patient_id,
// settlement_no: this.bxxxinfo.settlement_no,
})
.then(response => {
if (response.code==200) {
this.$message({
message: response.message,
type: 'success',
})
this.payData = response.data
if (e=='1') {
this.xj_amount = 0
this.source_pay_amount = this.form.djf
}else{
this.xj_amount = this.form.djf
this.source_pay_amount =0
}
this.form.djf = 0
//接口返回新的院内账户余额
// this.bxxxinfo.his_balance = response.data.his_balance * 1
let djsold = this.round(this.bxxxinfo.brfdje - 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.uploadfeeshow = false
// 总的大弹窗
this.fullscreenLoading = false
//结算
// this.qrjs()
this.qrjsmiss('1')
}else{
this.$message({
message: response.message,
type: 'error',
})
if (response.code == 200) {
this.$message({
message: response.message,
type: 'success',
})
this.payData = response.data
if (e == '1') {
this.xj_amount = 0
this.source_pay_amount = this.form.djf
} else {
this.xj_amount = this.form.djf
this.source_pay_amount = 0
}
this.form.djf = 0
//接口返回新的院内账户余额
// this.bxxxinfo.his_balance = response.data.his_balance * 1
let djsold = this.round(this.bxxxinfo.brfdje - 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.uploadfeeshow = false
// 总的大弹窗
this.fullscreenLoading = false
//结算
// this.qrjs()
this.qrjsmiss('1')
} else {
this.$message({
message: response.message,
type: 'error',
})
}
console.log(response,'充值成功++++++++++++++++')
console.log(response, '充值成功++++++++++++++++')
})
.finally(() => {
this.cash_disable = false
......@@ -1661,23 +1657,23 @@ export default {
})
},
async jiesuan() {
this.shiqianText=''
this.weiguiList=[]
this.shiqianText = ''
this.weiguiList = []
this.shenfenzheng = this.tableData.patient.idCard
this.adminpingzhengma = ''
this.bxxxinfo = {
settle_type:{
name:''
}
settle_type: {
name: '',
},
}
this.ismb = false
this.orders.forEach(element => {
if (element) {
this.ismb = true
}
});
})
// 医技预约channel=4不走审核
if ((!this.ismb && this.man_name == false) || this.channel=='4' ) {
if ((!this.ismb && this.man_name == false) || this.channel == '4') {
if (this.orders.length > 0) {
this.ybjs()
} else {
......@@ -1703,7 +1699,6 @@ export default {
}
}
}
},
// async jiesuan() {
// this.shenfenzheng = this.tableData.patient.idCard
......@@ -1784,10 +1779,7 @@ export default {
is_pre: 1,
pre_id: '1',
p_ewm: this.adminpingzhengma,
})
.then(response => {
})
}).then(response => {})
},
//#####################预结算###################
jiesuanadmin(e) {
......@@ -1803,7 +1795,6 @@ export default {
p_ewm: this.adminpingzhengma,
})
.then(response => {
this.dialogVisible = true
this.yujiesuanload = false
this.bxxxinfo = response.data
......@@ -1834,7 +1825,7 @@ export default {
this.sureshow = true
if (this.form.djf > 0) {
this.$message({
message: '院内余额不足,请充值'+this.form.djf+'元后进行缴费缴费',
message: '院内余额不足,请充值' + this.form.djf + '元后进行缴费缴费',
type: 'warning',
})
this.sureshow = false
......@@ -1853,7 +1844,7 @@ export default {
} else {
this.qrjs()
}
} else if (this.ztvalue.value == 'SELF_PAY' || this.man_name ==true) {
} else if (this.ztvalue.value == 'SELF_PAY' || this.man_name == true) {
this.selfPre()
} else {
this.qrjs()
......@@ -1988,9 +1979,8 @@ export default {
}, 1000)
this.sureshow = true
let y = {
source_type: this.payData.targetSys,
source_trade_no: this.payData.sourceTradeNo,
source_trade_no: this.payData.sourceTradeNo,
is_gz: this.gz_name,
channel: this.channel,
xj_amount: this.xj_amount,
......@@ -2296,8 +2286,8 @@ export default {
})
},
selectCardYiboPreselect(data, x, y) {
// 判断慢病
if (this.selectTableArr[0]?.settle_type.is_mb) {
// 判断慢病
if (this.selectTableArr[0]?.settle_type.is_mb) {
// 判断多病种慢病
if (data?.mzdbjbs_arr.length > 1) {
this.moreshow = true
......@@ -2310,7 +2300,7 @@ export default {
this.selectCardYiboPre(data, x, y, data?.mzdbjbs_arr[0]?.code)
}
} else {
this.selectCardYiboPre(data, x, y,data?.mzdbjbs_arr[0]?.code)
this.selectCardYiboPre(data, x, y, data?.mzdbjbs_arr[0]?.code)
}
// if (data?.mzdbjbs_arr.length > 1 && this.selectTableArr[0]?.settle_type.is_mb) {
// this.moreshow = true
......@@ -2336,11 +2326,11 @@ export default {
this.select_type = x
this.form = {}
this.form = data
this.form.rqlbName = data.rqlb == 'A' ? '职工' : data.rqlb == 'B' ? '居民' : ''
this.form.rqlbName = data.rqlb == 'A' ? '职工' : data.rqlb == 'B' ? '居民' : ''
settlementPre({
is_gz: this.gz_name,
injury_date: this.GSdatatime,
p_jbbm: this.selectTableArr[0]?.settle_type.is_mb?zhenduan:'',
p_jbbm: this.selectTableArr[0]?.settle_type.is_mb ? zhenduan : '',
patient_id: this.patientData.patient_id,
cache_key: data.cache_key,
prescription_nos: this.cost_id,
......@@ -2349,16 +2339,16 @@ export default {
settle_type: this.selectTableArr[0] ? this.selectTableArr[0].settle_type.code : '',
})
.then(res => {
this.bxxxinfo = res.data
this.bxxxinfo.his_deduct_amount = 0
this.bxxxinfo = res.data
this.bxxxinfo.his_deduct_amount = 0
if (res.data.mzxets != '') {
this.dataText = res.data.mzxets
this.GSshow = true
}
this.yujiesuanLoading = false
this.moreLoading = false
console.log(res.data.his_deduct_amount,'*********************')
console.log(res.data.his_deduct_amount, '*********************')
familybalanceinfor({
patient_id: this.patientData.patient_id,
pre_key: res.data.pre_key,
......@@ -2376,10 +2366,10 @@ export default {
else {
this.bxxxinfo.gjzhzf = 0
}
this.bxxxinfo.family_balance = res2.data.gjzhye
this.bxxxinfo.family_balance = res2.data.gjzhye
// this.dialogVisible = true
console.log( this.bxxxinfo.his_deduct_amount,'oooooooooooooooooo')
console.log(this.bxxxinfo.his_deduct_amount, 'oooooooooooooooooo')
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)
if (this.bxxxinfo.personal_balance >= djf) {
......@@ -2407,27 +2397,24 @@ export default {
}
}
}
console.log( this.bxxxinfo.his_deduct_amount,'++++++++++++')
console.log(this.bxxxinfo.his_deduct_amount, '++++++++++++')
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)
// 验证违规
await prescription({
// 验证违规
await 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
prescription_nos: this.cost_id,
js_type: '1',
p_jbbm: zhenduan,
}).then(response => {
if (response.data.result.length > 0) {
this.weiguiList = response.data.result
this.weiguiData = response.data.result
this.ViolationShow = true
} else {
this.dialogVisible = true
}
})
.then(response => {
if (response.data.result.length>0) {
this.weiguiList=response.data.result
this.weiguiData=response.data.result
this.ViolationShow=true
}else{
this.dialogVisible = true
}
})
})
})
.catch(err => {
......@@ -2444,7 +2431,7 @@ export default {
},
// 自费预结算
zfBeforePre() {
this.yujiesuanLoading = true;
this.yujiesuanLoading = true
this.xj_amount = 0
this.source_pay_amount = 0
this.form = {}
......@@ -2629,8 +2616,8 @@ export default {
return false
}
let y = {
source_type: this.payData.targetSys,
source_trade_no: this.payData.sourceTradeNo,
source_type: this.payData.targetSys,
source_trade_no: this.payData.sourceTradeNo,
channel: this.channel,
xj_amount: this.xj_amount,
source_pay_amount: this.source_pay_amount,
......
......@@ -241,7 +241,7 @@ export default {
settlement: {},
patientinfors: { channel: '' },
param: {},
refoundStateVisible: false,
refoundStateVisible: true,
blod_data: {
data: null,
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