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

诊间充值回退,支付走充值

parent 3b89378e
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
<el-card class="userInfo_box" v-if="!titleshow"> <el-card class="userInfo_box" v-if="!titleshow">
<div class="boxmain"> <div class="boxmain">
<div class="btslist" v-if="!cardNoShow"> <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>
<div class="userInfo_div"> <div class="userInfo_div">
<div class="userInfo_div_1"> <div class="userInfo_div_1">
...@@ -22,16 +23,18 @@ ...@@ -22,16 +23,18 @@
</div> </div>
</div> </div>
</el-card> </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" style="width: 49%">
<div class="box_card_title"> <div class="box_card_title">
<div>结算清单</div> <div>结算清单</div>
<div style="font-weight: 500" v-if="isGS"> <div style="font-weight: 500;" v-if="isGS">工商时间
工商时间 <el-date-picker size="mini" v-model="GSdatatime" type="date" value-format="yyyy-MM-dd"
<el-date-picker size="mini" v-model="GSdatatime" type="date" value-format="yyyy-MM-dd" placeholder="选择日期"> </el-date-picker> placeholder="选择日期">
</el-date-picker>
</div> </div>
<div style="display: flex"> <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> <el-checkbox v-model="man_name">转为自费账单</el-checkbox>
<!-- <div style="line-height: 40px">结算类型</div> <!-- <div style="line-height: 40px">结算类型</div>
<div class="selectinput" style="margin-left: 20px"> <div class="selectinput" style="margin-left: 20px">
...@@ -43,35 +46,34 @@ ...@@ -43,35 +46,34 @@
</div> </div>
<div class="content-left-type" style="height: 30px; line-height: 30px; padding: 0 10px"> <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-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> </el-radio-group>
</div> </div>
<el-table <el-table ref="multipleTableClinicRoom" @selection-change="handleSelectionChange" :data="tableDataList"
ref="multipleTableClinicRoom" tooltip-effect="dark" style="width: 100%; height: calc(100vh - 300px)"
@selection-change="handleSelectionChange" :header-cell-style="{ background: '#E7EEFF', color: '#333333' }" v-loading="loading"
:data="tableDataList" element-loading-text="拼命加载中">
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"> <template slot="empty">
<el-empty :image="tempsrc" :image-size="300" description="暂无数据"></el-empty> <el-empty :image="tempsrc" :image-size="300" description="暂无数据"></el-empty>
</template> </template>
<el-table-column align="center" type="selection" width="45"> </el-table-column> <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="occurrence_dept_name" label="开单科室" :show-overflow-tooltip="true">
<el-table-column prop="doct_name" label="医生姓名" width="110" :show-overflow-tooltip="true"> </el-table-column> </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 prop="serial_no" label="付数" width="110"> </el-table-column> -->
<!-- <el-table-column label="患者ID"> <!-- <el-table-column label="患者ID">
<template> <template>
<span>{{ tableData.patient.id }}</span> <span>{{ tableData.patient.id }}</span>
</template> </template>
</el-table-column> --> </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="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-column prop="total" align="center" label="总金额" width="110"> </el-table-column>
</el-table> </el-table>
</div> </div>
...@@ -85,15 +87,9 @@ ...@@ -85,15 +87,9 @@
<!-- <div class="content-left-type" style="height: 30px; line-height: 30px"></div> --> <!-- <div class="content-left-type" style="height: 30px; line-height: 30px"></div> -->
<el-table <el-table :data="costlist" tooltip-effect="dark"
:data="costlist" :header-cell-style="{ background: '#E7EEFF', color: '#333333' }" style="height: calc(100vh - 300px)"
tooltip-effect="dark" :cell-style="styleBack" v-loading="loading2" element-loading-text="拼命加载中">
:header-cell-style="{ background: '#E7EEFF', color: '#333333' }"
style="height: calc(100vh - 300px)"
:cell-style="styleBack"
v-loading="loading2"
element-loading-text="拼命加载中"
>
<template slot="empty"> <template slot="empty">
<el-empty :image="tempsrc" :image-size="300" description="暂无数据"></el-empty> <el-empty :image="tempsrc" :image-size="300" description="暂无数据"></el-empty>
</template> </template>
...@@ -106,14 +102,17 @@ ...@@ -106,14 +102,17 @@
<div> <div>
<span v-if="scope.row.zfbl_desc.length <= 1">{{ scope.row.zfbl }}</span> <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-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-select v-model="scope.row.zfbl" placeholder="请选择" @change="savebtn(scope.row)"
<el-option v-for="(value, key, index) in scope.row.zfbl_desc" :key="key" :label="key" :value="key"> 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"> <el-tooltip :content="value" placement="top" effect="dark">
<span>{{ key }}</span> <span>{{ key }}</span>
</el-tooltip> </el-tooltip>
</el-option> </el-option>
</el-select> </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> </div>
</template> </template>
</el-table-column> </el-table-column>
...@@ -131,14 +130,16 @@ ...@@ -131,14 +130,16 @@
<span>¥{{ total }}</span> <span>¥{{ total }}</span>
</div> </div>
<!-- <el-checkbox v-model="checked" style="margin-left: 100px;">自费结算</el-checkbox>--> <!-- <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> </div>
<el-dialog title="提示" :visible.sync="dialogVisible" width="70%" :close-on-click-modal="false"> <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"> <div slot="title" class="" style="border-bottom: 1px solid #e6e6e6; margin-bottom: 10px">
<span class="titles" style="color: #484848">结算确认</span <span class="titles" style="color: #484848">结算确认</span><span style="color: #666666">( 姓名:{{
><span style="color: #666666" patientData.name }}
>( 姓名:{{ patientData.name }} <span style="margin: 0px 10px"> 门诊号码: {{ patientData.patient_id }} </span>病人ID:{{ patientData.id_card }} <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 style="color: red">{{ selectTableArr[0] ? selectTableArr[0].settle_type.name : '' }}</span>
</span> </span>
...@@ -146,7 +147,8 @@ ...@@ -146,7 +147,8 @@
</div> </div>
<div style="position: relative"> <div style="position: relative">
<div style="" class="abc"> <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"> <el-card style="width: 100%; overflow: auto" class="fullbox">
<div> <div>
<div> <div>
...@@ -162,7 +164,8 @@ ...@@ -162,7 +164,8 @@
<el-form-item> <el-form-item>
<div class="form_item"> <div class="form_item">
<el-tag class="label" color="#E7EEFF">人员类别</el-tag> <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> </div>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
...@@ -201,13 +204,15 @@ ...@@ -201,13 +204,15 @@
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<div class="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> <el-input v-model="bxxxinfo.cash_balance" disabled></el-input>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<div class="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> <el-input v-model="bxxxinfo.personal_balance" disabled></el-input>
</div> </div>
</el-form-item> </el-form-item>
...@@ -218,7 +223,8 @@ ...@@ -218,7 +223,8 @@
<el-form-item> <el-form-item>
<div class="form_item"> <div class="form_item">
<el-tag class="label" color="#E7EEFF">结算类型</el-tag> <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> </div>
</el-form-item> </el-form-item>
...@@ -323,19 +329,22 @@ ...@@ -323,19 +329,22 @@
<div class="boxmain"> <div class="boxmain">
<el-form-item> <el-form-item>
<div class="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> <el-input v-model="bxxxinfo.total" disabled></el-input>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<div class="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> <el-input v-model="bxxxinfo.insurance_burden" disabled></el-input>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<div class="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> <el-input v-model="bxxxinfo.personal_pay_syd" disabled></el-input>
</div> </div>
</el-form-item> </el-form-item>
...@@ -344,20 +353,25 @@ ...@@ -344,20 +353,25 @@
<div class="boxmain"> <div class="boxmain">
<el-form-item> <el-form-item>
<div class="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> <el-input v-model="bxxxinfo.patient_burden"></el-input>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<div class="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"
<el-input v-model="bxxxinfo.gjzhzf" type="number" @input="gjzhifu"></el-input> style="color: #1a5bfd; font-weight: 600">共济账户支付</el-tag>
<el-input v-model="bxxxinfo.gjzhzf" type="number"
@input="gjzhifu"></el-input>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<div class="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"
<el-input v-model="bxxxinfo.his_deduct_amount" type="number" @input="gjzhifu"></el-input> style="color: #1a5bfd; font-weight: 600">院内账户支付</el-tag>
<el-input v-model="bxxxinfo.his_deduct_amount" type="number"
@input="gjzhifu"></el-input>
</div> </div>
</el-form-item> </el-form-item>
</div> </div>
...@@ -365,40 +379,26 @@ ...@@ -365,40 +379,26 @@
<div class="boxmain"> <div class="boxmain">
<el-form-item> <el-form-item>
<div class="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"
<el-input style="color: #1a5bfd; font-weight: 600"><span>医保个账支付</span></el-tag>
v-model="bxxxinfo.grzhzf" <el-input v-model="bxxxinfo.grzhzf" @input="gjzhifu()" @blur="grzhzfBlur()"
@input="gjzhifu()"
@blur="grzhzfBlur()"
type="number" type="number"
:disabled="form.insurance_type == 'LONGDISTANCE' || form.insurance_type == 'OFFSITE'" :disabled="form.insurance_type == 'LONGDISTANCE' || form.insurance_type == 'OFFSITE'"></el-input>
></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="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> </div>
</el-form-item> </el-form-item>
</div>
<div class="boxmain">
<el-form-item> <el-form-item>
<div class="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="form.djf" type="number"></el-input> <el-input v-model="form.djf" type="number"></el-input>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item style="visibility: hidden"> <el-form-item style="visibility: hidden">
<div class="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"
<el-input v-model="bxxxinfo.family_ba222lance" type="number" @input="gjzhifu()"></el-input> style="color: #1a5bfd; font-weight: 600">共济账户支付</el-tag>
<el-input v-model="bxxxinfo.family_ba222lance" type="number"
@input="gjzhifu()"></el-input>
</div> </div>
</el-form-item> </el-form-item>
</div> </div>
...@@ -407,31 +407,36 @@ ...@@ -407,31 +407,36 @@
<div style="display: flex"> <div style="display: flex">
<el-form-item> <el-form-item>
<div style="display: flex; margin-top: 10px"> <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')" <!-- <el-button style="margin-left: 5px" type="success" @click="zhifu('1')"
:disabled="form.djf <= 0">微信</el-button> :disabled="form.djf <= 0">微信</el-button>
<el-button type="primary" @click="zhifu('2')" :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')" <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-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> --> style="margin-left: 50px">共济账户支付</el-checkbox> -->
</div> </div>
</el-form-item> </el-form-item>
<div> <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" --> <!-- :disabled="sureshow" -->
</div> </div>
</div> </div>
</el-form> </el-form>
</div> </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/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" /> --> <!-- <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"> <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> </div>
</div> </div>
...@@ -442,7 +447,8 @@ ...@@ -442,7 +447,8 @@
--> -->
<el-dialog title="选择就诊介质" :visible.sync="jeizhishow" width="560px" :close-on-click-modal="false"> <el-dialog title="选择就诊介质" :visible.sync="jeizhishow" width="560px" :close-on-click-modal="false">
<img :src="logo" style="display: block" alt="logo" /> <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"> <div style="text-align: center">
<el-form-item label="介质类型"> <el-form-item label="介质类型">
<el-radio-group v-model="jiezhi"> <el-radio-group v-model="jiezhi">
...@@ -451,71 +457,11 @@ ...@@ -451,71 +457,11 @@
</el-form-item> </el-form-item>
</div> </div>
<div style="text-align: center; padding-bottom: 36px"> <div style="text-align: center; padding-bottom: 36px">
<el-input <el-input v-if="jiezhi == 'A'" v-model="pingzhengma" type="text" placeholder="请输入患者卡号"
v-if="jiezhi == 'A'" @blur="handleSetFocus()" @keyup.enter.native="cardjiesuan" ref="inputlast"
v-model="pingzhengma" style="width: 300px"></el-input>
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> </div>
</el-form> </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> </el-dialog>
<Cardlist :cardlist="cardlist" @cardcolsein="cardcolsein" :cardlistdata="patientData.patient_id" /> <Cardlist :cardlist="cardlist" @cardcolsein="cardcolsein" :cardlistdata="patientData.patient_id" />
<!-- 选择卡类型new---废弃 --> <!-- 选择卡类型new---废弃 -->
...@@ -524,7 +470,8 @@ ...@@ -524,7 +470,8 @@
<!-- 读卡 --> <!-- 读卡 -->
<Readcards :isOpenCarded="carddialogFormVisible" @getyibaoinfo="getyibaoinfo" @closeReadcard="closeReadcard" /> <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 动画 --> <!-- loaidng 动画 -->
<div v-if="false" class="grey-cloth" id="loading"> <div v-if="false" class="grey-cloth" id="loading">
<div id="img"> <div id="img">
...@@ -540,11 +487,15 @@ ...@@ -540,11 +487,15 @@
<el-dialog title="提示" :visible.sync="moreshow" width="30%" v-loading="moreLoading"> <el-dialog title="提示" :visible.sync="moreshow" width="30%" v-loading="moreLoading">
<span>请选择诊断</span> <span>请选择诊断</span>
<el-radio-group v-model="zhenduan"> <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> </el-radio-group>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="moreshow = false">取 消</el-button> <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> </span>
</el-dialog> </el-dialog>
<el-dialog title="提示" :visible.sync="GSshow" width="30%" v-loading="moreLoading"> <el-dialog title="提示" :visible.sync="GSshow" width="30%" v-loading="moreLoading">
...@@ -552,6 +503,7 @@ ...@@ -552,6 +503,7 @@
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="GSshow = false">确定</el-button> <el-button @click="GSshow = false">确定</el-button>
</span> </span>
</el-dialog> </el-dialog>
<!-- <el-dialog title="提示" :visible.sync="found" width="30%" v-loading="moreLoading"> <!-- <el-dialog title="提示" :visible.sync="found" width="30%" v-loading="moreLoading">
...@@ -565,37 +517,36 @@ ...@@ -565,37 +517,36 @@
<el-dialog title="违规信息提示" :visible.sync="ViolationShow" width="60%" v-loading="moreLoading" :close-on-click-modal="false"> <el-dialog title="违规信息提示" :visible.sync="ViolationShow" width="60%" v-loading="moreLoading" :close-on-click-modal="false">
<div class="ViolationShow"> <div class="ViolationShow">
<el-table <el-table ref="multipleTableClinicRoom" @selection-change="handleSelectionChange" :data="weiguiList"
ref="multipleTableClinicRoom" tooltip-effect="dark" style="width: 100%; height: calc(100vh - 430px)"
@selection-change="handleSelectionChange" :header-cell-style="{ background: '#E7EEFF', color: '#333333' }" v-loading="loading"
:data="weiguiList" element-loading-text="拼命加载中">
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"> <template slot="empty">
<el-empty :image="tempsrc" :image-size="100" description="暂无数据"></el-empty> <el-empty :image="tempsrc" :image-size="100" description="暂无数据"></el-empty>
</template> </template>
<el-table-column prop="rulename" label="规则名称" :show-overflow-tooltip="true"> </el-table-column> <el-table-column prop="rulename" label="规则名称" :show-overflow-tooltip="true">
<el-table-column prop="volacont" label="违规内容" width="110" :show-overflow-tooltip="true"> </el-table-column> </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"> <el-table-column prop="volabhvrtype" label="违规行为分类" width="130" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
<div>{{ scope.row.volabhvrtype == '1' ? '就诊类' : '项目类' }}</div> <div>{{scope.row.volabhvrtype=='1'?'就诊类':'项目类' }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="volaamtstas" label="违规金额计算状态" width="150" :show-overflow-tooltip="true"> <el-table-column prop="volaamtstas" label="违规金额计算状态" width="150" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
<div>{{ scope.row.volabhvrtype == '0' ? '异常' : '正常' }}</div> <div>{{scope.row.volabhvrtype=='0'?'异常':'正常' }}</div>
</template> </template>
</el-table-column> </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> </el-table>
</div> </div>
<div style="margin: 20px 0px">反馈原因</div> <div style="margin: 20px 0px;">反馈原因</div>
<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> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="Violationfunction">继续保存 </el-button> <el-button @click="Violationfunction">继续保存 </el-button>
...@@ -608,7 +559,7 @@ ...@@ -608,7 +559,7 @@
import Cardlist from '@/components/Cardlist' import Cardlist from '@/components/Cardlist'
import Readcards from '@/components/Readcards' import Readcards from '@/components/Readcards'
import editProp1 from './components/editProp' //修改自付比例 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 { 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 printProof from '../../utils/print_proof'
import getLodop from '../../assets/js/LodopFuncs' import getLodop from '../../assets/js/LodopFuncs'
...@@ -625,20 +576,15 @@ export default { ...@@ -625,20 +576,15 @@ export default {
name: 'Outpatient', name: 'Outpatient',
data() { data() {
return { return {
weiguiList: [], weiguiList:[],
shiqianText: '', shiqianText:'',
weiguiData: [], weiguiData:[],
yijiShow: false, yijiShow:false,
ViolationShow: false, ViolationShow: false,
gz_name: false, gz_name: false,
dataText: '', dataText: '',
GSshow: false, GSshow: false,
isGS: false, isGS: false,
zhmoney: 0,
cash_disable: false,
payData: {},
source_pay_amount: 0,
xj_amount: 0,
GSdatatime: '', GSdatatime: '',
found: false, found: false,
yujiesuanLoading: false, yujiesuanLoading: false,
...@@ -725,7 +671,7 @@ export default { ...@@ -725,7 +671,7 @@ export default {
channel: 'local', channel: 'local',
}, },
bxxxinfo: { bxxxinfo: {
settle_type: '', settle_type:'',
djf: 0, djf: 0,
zhye: 0, zhye: 0,
brxm: '', brxm: '',
...@@ -822,7 +768,7 @@ export default { ...@@ -822,7 +768,7 @@ export default {
visitDate: '', visitDate: '',
jsroundData: {}, jsroundData: {},
ismb: false, ismb: false,
channel: '', channel:''
} }
}, },
mounted() { mounted() {
...@@ -832,7 +778,7 @@ export default { ...@@ -832,7 +778,7 @@ export default {
// if (this.$route.query?.jobNumber) { // if (this.$route.query?.jobNumber) {
// localStorage.setItem('jobNumber', 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.titleshow = this.$route.query?.layoutShow || ''
this.cardNo = this.$route.query?.cardNo || '' this.cardNo = this.$route.query?.cardNo || ''
this.cardType = this.$route.query?.cardType || '' this.cardType = this.$route.query?.cardType || ''
...@@ -874,12 +820,13 @@ export default { ...@@ -874,12 +820,13 @@ export default {
}, },
}, },
methods: { methods: {
async deleteViolation() { async deleteViolation(){
await serviceInvoke({ await serviceInvoke({
warn_rslt_id: this.weiguiList[0].jrid, warn_rslt_id:this.weiguiList[0].jrid,
dspo_way_rea: this.shiqianText, dspo_way_rea:this.shiqianText,
dspo_way: '2', dspo_way:"2"
}).then(response => { })
.then(response => {
this.$message({ this.$message({
message: '返回成功', message: '返回成功',
type: 'success', type: 'success',
...@@ -890,10 +837,11 @@ export default { ...@@ -890,10 +837,11 @@ export default {
// 事前反馈 // 事前反馈
async Violationfunction() { async Violationfunction() {
await serviceInvoke({ await serviceInvoke({
warn_rslt_id: this.weiguiList[0].jrid, warn_rslt_id:this.weiguiList[0].jrid,
dspo_way_rea: this.shiqianText, dspo_way_rea:this.shiqianText,
dspo_way: '1', dspo_way:"1"
}).then(response => { })
.then(response => {
this.$message({ this.$message({
message: '提交成功', message: '提交成功',
type: 'success', type: 'success',
...@@ -1024,14 +972,9 @@ export default { ...@@ -1024,14 +972,9 @@ export default {
//当共济支付开关打开时,其他额度根据共济变动 //当共济支付开关打开时,其他额度根据共济变动
gjzhifu(e) { gjzhifu(e) {
this.$forceUpdate() 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) // 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(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 //医保个人账户支付输入值blur
grzhzfBlur() { grzhzfBlur() {
...@@ -1072,9 +1015,9 @@ export default { ...@@ -1072,9 +1015,9 @@ export default {
//读卡器方法 //读卡器方法
socketInit() { socketInit() {
this.wj = new WebSocket('ws://127.0.0.1:6932/') 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.onmessage = this.onmessagecard
this.wj.onclose = function () {} this.wj.onclose = function () { }
}, },
//退款结果 //退款结果
reimResult(evt) { reimResult(evt) {
...@@ -1163,48 +1106,34 @@ export default { ...@@ -1163,48 +1106,34 @@ export default {
}, },
//微信支付宝银行卡现金充值接口 //微信支付宝银行卡现金充值接口
feesure(e) { feesure(e) {
this.cash_disable = true
this.fullscreenLoading = true this.fullscreenLoading = true
if (e == '1' || e == '5') { if (e == '1') {
// return false // return false
freemoney({ freemoney({
payment_type: 'WX_BAR',
amount: this.form.djf, amount: this.form.djf,
authCode: this.fee.weixin, auth_code: this.fee.weixin,
operatorNo: this.jobNumber, his_patient_id: this.tableData.patient.id,
payType: e == '1' ? 'cumsNative' : e == '5' ? 'cash' : '', // 支付类型 cumsNative 聚合支付 cash 现金 patient_type: 'mz',
rechargeType: 1, // 是否预交金充值 1是 0否, settlement_no: this.bxxxinfo.settlement_no,
patientId: this.patientData.patient_id,
deptCode: this.dept,
}) })
.then(response => { .then(response => {
if (response.code == 200) {
this.$message({ this.$message({
message: response.message, message: response.message,
type: 'success', type: 'success',
}) })
this.payData = response.data if (this.bxxxinfo.brfdje * 1 > response.data.his_balance * 1) {
if (e == '1') { this.bxxxinfo.his_deduct_amount = response.data.his_balance * 1
this.xj_amount = 0
this.source_pay_amount = this.form.djf
} else { } else {
this.xj_amount = this.form.djf this.bxxxinfo.his_deduct_amount = this.bxxxinfo.brfdje * 1
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 // 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_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 this.bxxxinfo.his_balance = response.data.his_balance * 1
let djsold = this.round(this.bxxxinfo.brfdje - this.bxxxinfo.grzhzf, 2) 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(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.uploadfeeshow = false
...@@ -1213,64 +1142,57 @@ export default { ...@@ -1213,64 +1142,57 @@ export default {
//结算 //结算
// this.qrjs() // this.qrjs()
this.qrjsmiss('1') this.qrjsmiss('1')
} else { })
.finally(() => {
this.fee.weixin = ''
//微信支付宝弹窗
this.uploadfeeshow = false
// 总的大弹窗
this.fullscreenLoading = false
})
}
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({ this.$message({
message: response.message, message: response.message,
type: 'error', 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(() => { .finally(() => {
this.cash_disable = false
this.fee.weixin = ''
//微信支付宝弹窗 //微信支付宝弹窗
this.uploadfeeshow = false this.uploadfeeshow = false
// 总的大弹窗 // 总的大弹窗
this.fullscreenLoading = false this.fullscreenLoading = false
}) })
} }
if (this.feelist.channel == '3') {
// if (e == '5') { this.get_serial_number('3')
// 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交易、获取参考号 //银行卡mis交易、获取参考号
get_serial_number(e) { get_serial_number(e) {
...@@ -1304,7 +1226,7 @@ export default { ...@@ -1304,7 +1226,7 @@ export default {
type: 'MIS', type: 'MIS',
value: x, value: x,
valtp: 'mz_ylmiss', valtp: 'mz_ylmiss',
}).then(response => {}) }).then(response => { })
this.resorderID = response.data.value this.resorderID = response.data.value
// if (_this.ws.readyState === _this.ws.OPEN) { // if (_this.ws.readyState === _this.ws.OPEN) {
// _this.ws.send(x) // _this.ws.send(x)
...@@ -1327,7 +1249,7 @@ export default { ...@@ -1327,7 +1249,7 @@ export default {
_this.ws.send(x) _this.ws.send(x)
} }
_this.ws.onmessage = this.BanksetOnmessageMessage _this.ws.onmessage = this.BanksetOnmessageMessage
_this.ws.onclose = function () {} _this.ws.onclose = function () { }
}) })
.finally(() => { .finally(() => {
this.uploadfeeshow = false this.uploadfeeshow = false
...@@ -1764,7 +1686,7 @@ export default { ...@@ -1764,7 +1686,7 @@ export default {
var that = this var that = this
this.gz_name = false this.gz_name = false
var obj = { var obj = {
channel: this.channel, channel:this.channel,
visit_no: this.visitNo, visit_no: this.visitNo,
visit_date: this.visitDate, visit_date: this.visitDate,
patient_id: this.patientData.patient_id, //this.cardNo, patient_id: this.patientData.patient_id, //this.cardNo,
...@@ -1788,20 +1710,20 @@ export default { ...@@ -1788,20 +1710,20 @@ export default {
}) })
}, },
async jiesuan() { async jiesuan() {
this.shiqianText = '' this.shiqianText=''
this.weiguiList = [] this.weiguiList=[]
this.shenfenzheng = this.tableData.patient.idCard this.shenfenzheng = this.tableData.patient.idCard
this.adminpingzhengma = '' this.adminpingzhengma = ''
this.bxxxinfo = { this.bxxxinfo = {
settle_type: '', settle_type:''
} }
this.ismb = false this.ismb = false
this.orders.forEach(element => { this.orders.forEach(element => {
if (element) { if (element) {
this.ismb = true 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) { if (this.orders.length > 0) {
this.ybjs() this.ybjs()
} else { } else {
...@@ -1827,6 +1749,7 @@ export default { ...@@ -1827,6 +1749,7 @@ export default {
} }
} }
} }
}, },
// ldjkfsl(){ // ldjkfsl(){
// if(this.manFeeStatus()){ // if(this.manFeeStatus()){
...@@ -1891,7 +1814,10 @@ export default { ...@@ -1891,7 +1814,10 @@ export default {
is_pre: 1, is_pre: 1,
pre_id: '1', pre_id: '1',
p_ewm: this.adminpingzhengma, p_ewm: this.adminpingzhengma,
}).then(response => {}) })
.then(response => {
})
}, },
//#####################预结算################### //#####################预结算###################
...@@ -1908,6 +1834,7 @@ export default { ...@@ -1908,6 +1834,7 @@ export default {
p_ewm: this.adminpingzhengma, p_ewm: this.adminpingzhengma,
}) })
.then(async response => { .then(async response => {
this.dialogVisible = true this.dialogVisible = true
this.yujiesuanload = false this.yujiesuanload = false
this.bxxxinfo = response.data this.bxxxinfo = response.data
...@@ -1922,10 +1849,7 @@ export default { ...@@ -1922,10 +1849,7 @@ export default {
let free = this.round(this.bxxxinfo.brfdje * 1 - this.bxxxinfo.his_deduct_amount * 1, 2) 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) 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) { qrjsmiss(e) {
...@@ -1938,7 +1862,7 @@ export default { ...@@ -1938,7 +1862,7 @@ export default {
this.sureshow = true this.sureshow = true
if (this.form.djf > 0) { if (this.form.djf > 0) {
this.$message({ this.$message({
message: '院内余额不足,请充值' + this.form.djf + '元后进行缴费缴费', message: '院内余额不足,请充值'+this.form.djf+'元后进行缴费缴费',
type: 'warning', type: 'warning',
}) })
this.sureshow = false this.sureshow = false
...@@ -1968,8 +1892,8 @@ export default { ...@@ -1968,8 +1892,8 @@ export default {
szyb() { szyb() {
let x = {} let x = {}
yundaMis(x) yundaMis(x)
.then(res => {}) .then(res => { })
.catch(err => {}) .catch(err => { })
}, },
//结算按钮预结算按钮 //结算按钮预结算按钮
queren() { queren() {
...@@ -2095,13 +2019,8 @@ export default { ...@@ -2095,13 +2019,8 @@ export default {
}, 1000) }, 1000)
this.sureshow = true this.sureshow = true
let y = { let y = {
source_type: this.payData.targetSys, channel:this.channel,
source_trade_no: this.payData.sourceTradeNo,
is_gz: this.gz_name, 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, family_type: this.familyType,
patient_id: this.patientData.patient_id, patient_id: this.patientData.patient_id,
personal_pay: this.bxxxinfo.grzhzf, personal_pay: this.bxxxinfo.grzhzf,
...@@ -2141,8 +2060,8 @@ export default { ...@@ -2141,8 +2060,8 @@ export default {
// break; // break;
// } // }
// } // }
let dept = localStorage.getItem('deptCode') let dept=localStorage.getItem('deptCode')
if (dept != '0502') { if ( dept !='0502' ){
_this.printcard(jshidprint) _this.printcard(jshidprint)
} }
...@@ -2462,6 +2381,7 @@ export default { ...@@ -2462,6 +2381,7 @@ export default {
}) })
}, },
selectCardYiboPreselect(data, x, y) { selectCardYiboPreselect(data, x, y) {
// 判断慢病 // 判断慢病
if (this.selectTableArr[0]?.settle_type.is_mb) { if (this.selectTableArr[0]?.settle_type.is_mb) {
// 判断多病种慢病 // 判断多病种慢病
...@@ -2476,9 +2396,10 @@ export default { ...@@ -2476,9 +2396,10 @@ export default {
this.selectCardYiboPre(data, x, y, data?.mzdbjbs_arr[0]?.code) this.selectCardYiboPre(data, x, y, data?.mzdbjbs_arr[0]?.code)
} }
} else { } 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) { // if (data?.mzdbjbs_arr.length > 1 && this.selectTableArr[0]?.settle_type.is_mb) {
// this.moreshow = true // this.moreshow = true
// this.moreshowdata = { // this.moreshowdata = {
...@@ -2497,8 +2418,6 @@ export default { ...@@ -2497,8 +2418,6 @@ export default {
// 医保预结算 // 医保预结算
selectCardYiboPre(data, x, y, zhenduan) { selectCardYiboPre(data, x, y, zhenduan) {
this.yujiesuanLoading = true this.yujiesuanLoading = true
this.xj_amount = 0
this.source_pay_amount = 0
this.moreshow = false this.moreshow = false
this.moreLoading = true this.moreLoading = true
this.oldewmpingzheng = y this.oldewmpingzheng = y
...@@ -2509,7 +2428,7 @@ export default { ...@@ -2509,7 +2428,7 @@ export default {
settlementPre({ settlementPre({
is_gz: this.gz_name, is_gz: this.gz_name,
injury_date: this.GSdatatime, 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, patient_id: this.patientData.patient_id,
cache_key: data.cache_key, cache_key: data.cache_key,
prescription_nos: this.cost_id, prescription_nos: this.cost_id,
...@@ -2546,14 +2465,15 @@ export default { ...@@ -2546,14 +2465,15 @@ export default {
patient_id: this.patientData.patient_id, patient_id: this.patientData.patient_id,
settle_type: this.selectTableArr[0] ? this.selectTableArr[0].settle_type.code : '', settle_type: this.selectTableArr[0] ? this.selectTableArr[0].settle_type.code : '',
prescription_nos: this.cost_id, prescription_nos: this.cost_id,
js_type: '1', js_type:"1",
p_jbbm: zhenduan, p_jbbm:zhenduan
}).then(response => { })
if (response.data.result.length > 0) { .then(response => {
this.weiguiList = response.data.result if (response.data.result.length>0) {
this.weiguiData = response.data.result this.weiguiList=response.data.result
this.ViolationShow = true this.weiguiData=response.data.result
} else { this.ViolationShow=true
}else{
this.dialogVisible = true this.dialogVisible = true
} }
}) })
...@@ -2606,11 +2526,10 @@ export default { ...@@ -2606,11 +2526,10 @@ export default {
// 自费预结算 // 自费预结算
zfBeforePre() { zfBeforePre() {
this.yujiesuanLoading = true this.yujiesuanLoading = true
this.xj_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.yujiesuanLoading = false
this.dialogVisible = true this.dialogVisible = true
this.bxxxinfo = res.data this.bxxxinfo = res.data
...@@ -2738,23 +2657,17 @@ export default { ...@@ -2738,23 +2657,17 @@ export default {
<div class="conline"><span>就诊卡号:</span><span class="money">${e.id_card}</span></div> <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.trade_type}</span></div>
<div class="conline"><span>开单医师:</span><span class="money">${e.doctor_name}</span></div> <div class="conline"><span>开单医师:</span><span class="money">${e.doctor_name}</span></div>
<div class="conline" style="${ <div class="conline" style="${this.bxxxinfo.patient_burden != 0 && (this.bxxxinfo.patient_burden != '0.00') == false ? 'display:none' : 'display:block'
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> }"><span>个人负担金额:</span><span class="money" >${this.bxxxinfo.patient_burden}元</span></div>
<div class="conline" style="${ <div class="conline" style="${(this.bxxxinfo.insurance_burden != 0 && this.bxxxinfo.insurance_burden != '0.00') == false ? 'display:none' : 'display:block'
(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> }"><span>医保负担金额:</span><span class="money" >${this.bxxxinfo.insurance_burden}元</span></div>
<div class="conline" style="${ <div class="conline" style="${(this.bxxxinfo.personal_pay_syd != 0 && this.bxxxinfo.personal_pay_syd != '0.00') == false ? 'display:none' : 'display:block'
(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> }"><span>省异地个帐支付:</span><span class="money" >${this.bxxxinfo.personal_pay_syd}元</span></div>
<div class="conline" style="${ <div class="conline" style="${(this.bxxxinfo.his_deduct_amount != 0 && this.bxxxinfo.his_deduct_amount != '0.00') == false ? 'display:none' : 'display:block'
(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> }"><span>院内账户支付:</span><span class="money" >${this.bxxxinfo.his_deduct_amount}元</span></div>
<div class="conline" style="${ <div class="conline" style="${(this.bxxxinfo.grzhzf != 0 && this.bxxxinfo.grzhzf != '0.00') == false ? 'display:none' : 'display:block'
(this.bxxxinfo.grzhzf != 0 && this.bxxxinfo.grzhzf != '0.00') == false ? 'display:none' : 'display:block'
}"><span>医保账户支付:</span><span class="money" >${this.bxxxinfo.grzhzf}元 </span></div> }"><span>医保账户支付:</span><span class="money" >${this.bxxxinfo.grzhzf}元 </span></div>
<div class="conline" style="${ <div class="conline" style="${(this.bxxxinfo.gjzhzf != 0 && this.bxxxinfo.gjzhzf != '0.00') == false ? 'display:none' : 'display:block'
(this.bxxxinfo.gjzhzf != 0 && this.bxxxinfo.gjzhzf != '0.00') == false ? 'display:none' : 'display:block'
}"><span>共济账户支付:</span><span class="money">${this.bxxxinfo.gjzhzf}元</span></div> }"><span>共济账户支付:</span><span class="money">${this.bxxxinfo.gjzhzf}元</span></div>
<div class="btnborder conline"><span>费用合计:</span><span class="money">${this.bxxxinfo.total}元</span></div> <div class="btnborder conline"><span>费用合计:</span><span class="money">${this.bxxxinfo.total}元</span></div>
` + ` +
...@@ -2901,12 +2814,7 @@ export default { ...@@ -2901,12 +2814,7 @@ export default {
return false return false
} }
let y = { let y = {
source_type: this.payData.targetSys, channel:this.channel,
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, patient_id: this.patientData.patient_id,
personal_pay: this.bxxxinfo.grzhzf, personal_pay: this.bxxxinfo.grzhzf,
family_pay: this.bxxxinfo.gjzhzf, family_pay: this.bxxxinfo.gjzhzf,
...@@ -2914,7 +2822,8 @@ export default { ...@@ -2914,7 +2822,8 @@ export default {
pre_key: this.bxxxinfo.pre_key, pre_key: this.bxxxinfo.pre_key,
cache_key: this.form.cache_key, cache_key: this.form.cache_key,
} }
selfPre(y).then(response => { selfPre(y)
.then(response => {
const _this = this const _this = this
this.$message.success('结算成功') this.$message.success('结算成功')
this.dialogVisible = false this.dialogVisible = false
...@@ -2933,8 +2842,8 @@ export default { ...@@ -2933,8 +2842,8 @@ export default {
// break; // break;
// } // }
// } // }
let dept = localStorage.getItem('deptCode') let dept=localStorage.getItem('deptCode')
if (dept != '0502') { if ( dept !='0502' ){
_this.printcard(jshidprint) _this.printcard(jshidprint)
} }
// _this.printcard(jshidprint) // _this.printcard(jshidprint)
...@@ -3348,8 +3257,7 @@ export default { ...@@ -3348,8 +3257,7 @@ export default {
align-items: center; align-items: center;
} }
.app-container { .app-container {}
}
::v-deep .el-card__body { ::v-deep .el-card__body {
padding: 15px 9px; padding: 15px 9px;
......
...@@ -367,7 +367,7 @@ ...@@ -367,7 +367,7 @@
></el-input> ></el-input>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item> <!-- <el-form-item>
<div class="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="xj_amount" type="number" disabled></el-input> <el-input v-model="xj_amount" type="number" disabled></el-input>
...@@ -378,7 +378,7 @@ ...@@ -378,7 +378,7 @@
<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="source_pay_amount" type="number" disabled></el-input> <el-input v-model="source_pay_amount" type="number" disabled></el-input>
</div> </div>
</el-form-item> </el-form-item> -->
</div> </div>
<div class="boxmain"> <div class="boxmain">
<el-form-item> <el-form-item>
...@@ -1000,11 +1000,11 @@ export default { ...@@ -1000,11 +1000,11 @@ export default {
//当共济支付开关打开时,其他额度根据共济变动 //当共济支付开关打开时,其他额度根据共济变动
gjzhifu(e) { gjzhifu(e) {
this.$forceUpdate() this.$forceUpdate()
let chongzhi = this.source_pay_amount * 1 + this.xj_amount * 1 // let chongzhi = this.source_pay_amount * 1 + this.xj_amount * 1
this.form.djf = this.round( this.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) - chongzhi, //this.round( // - chongzhi,
2, // 2,
) // )
}, },
//医保个人账户支付输入值blur //医保个人账户支付输入值blur
grzhzfBlur() { grzhzfBlur() {
...@@ -1142,20 +1142,21 @@ export default { ...@@ -1142,20 +1142,21 @@ export default {
type: 'success', type: 'success',
}) })
this.payData = response.data this.payData = response.data
if (e == '1') { // if (e == '1') {
this.xj_amount = 0 // this.xj_amount = 0
this.source_pay_amount = this.form.djf // this.source_pay_amount = this.form.djf
} else { // } else {
this.xj_amount = this.form.djf // this.xj_amount = this.form.djf
this.source_pay_amount = 0 // this.source_pay_amount = 0
} // }
this.bxxxinfo.his_deduct_amount = this.form.djf + this.bxxxinfo.his_deduct_amount
this.form.djf = 0 this.form.djf = 0
//接口返回新的院内账户余额 //接口返回新的院内账户余额
// this.bxxxinfo.his_balance = response.data.his_balance * 1 this.bxxxinfo.cash_balance = response.data.hisBalance * 1
let djsold = this.round(this.bxxxinfo.brfdje - this.bxxxinfo.grzhzf, 2) let djsold = this.round(this.bxxxinfo.brfdje - this.bxxxinfo.grzhzf, 2)
let chongzhi = this.source_pay_amount * 1 + this.xj_amount * 1 // let chongzhi = this.source_pay_amount * 1 + this.xj_amount * 1
//充值成功后的代缴费金额 //充值成功后的代缴费金额
this.form.djf = this.round(this.round(this.round(djsold - this.bxxxinfo.his_deduct_amount, 2) - this.bxxxinfo.gjzhzf, 2) - chongzhi, 2) this.form.djf = this.round(this.round(djsold - this.bxxxinfo.his_deduct_amount, 2) - this.bxxxinfo.gjzhzf, 2) //this.round(- chongzhi, 2)
//微信支付宝弹窗 //微信支付宝弹窗
this.uploadfeeshow = false this.uploadfeeshow = false
...@@ -1979,13 +1980,13 @@ export default { ...@@ -1979,13 +1980,13 @@ export default {
}, 1000) }, 1000)
this.sureshow = true this.sureshow = true
let y = { let y = {
source_type: this.payData.targetSys, // source_type: this.payData.targetSys,
source_trade_no: this.payData.sourceTradeNo, // source_trade_no: this.payData.sourceTradeNo,
is_gz: this.gz_name, is_gz: this.gz_name,
channel: this.channel, channel: this.channel,
xj_amount: this.xj_amount, // xj_amount: this.xj_amount,
source_pay_amount: this.source_pay_amount, // source_pay_amount: this.source_pay_amount,
tradeNo: this.payData.tradeNo, // tradeNo: this.payData.tradeNo,
family_type: this.familyType, family_type: this.familyType,
patient_id: this.patientData.patient_id, patient_id: this.patientData.patient_id,
personal_pay: this.bxxxinfo.grzhzf, personal_pay: this.bxxxinfo.grzhzf,
...@@ -2616,11 +2617,11 @@ export default { ...@@ -2616,11 +2617,11 @@ export default {
return false return false
} }
let y = { let y = {
source_type: this.payData.targetSys, // source_type: this.payData.targetSys,
source_trade_no: this.payData.sourceTradeNo, // source_trade_no: this.payData.sourceTradeNo,
channel: this.channel, channel: this.channel,
xj_amount: this.xj_amount, // xj_amount: this.xj_amount,
source_pay_amount: this.source_pay_amount, // source_pay_amount: this.source_pay_amount,
tradeNo: this.payData.tradeNo, tradeNo: this.payData.tradeNo,
patient_id: this.patientData.patient_id, patient_id: this.patientData.patient_id,
personal_pay: this.bxxxinfo.grzhzf, personal_pay: this.bxxxinfo.grzhzf,
......
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