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

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

parent 3b89378e
This diff is collapsed.
...@@ -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