Commit 29e5c35b authored by 任鸿志's avatar 任鸿志

fix(invoice): 修复开票功能中的参数引用和优化结算逻辑

- 将 form.value 替换为 this.form,统一参数引用方式
- 修正 outinvoicform.value 替换为 this.outinvoicform,确保正确访问组件数据
- 移除不必要的 console.log 语句,提高代码可读性
- 更新支付数据处理逻辑,优化结算流程
parent 32504814
...@@ -122,16 +122,16 @@ export default { ...@@ -122,16 +122,16 @@ export default {
// 开票 // 开票
async InvoicingFun() { async InvoicingFun() {
let param = { let param = {
cardNo: form.value.cardNo, cardNo: this.form.cardNo,
idCard: outinvoicform.value.idCard, idCard:this.outinvoicform.idCard,
jobNumber: localStorage.getItem('jobNumber') ?? '', jobNumber: localStorage.getItem('jobNumber') ?? '',
jshId: outinvoicform.value.jshId, jshId: this.outinvoicform.jshId,
mobile: outinvoicform.value.mobile, mobile: this.outinvoicform.mobile,
name: outinvoicform.value.name, name: this.outinvoicform.name,
patientId: outinvoicform.value.patientId, patientId: this.outinvoicform.patientId,
payerType: outinvoicform.value.payerType, payerType: this.outinvoicform.payerType,
rcptNo: outinvoicform.value.jshId, rcptNo: this.outinvoicform.jshId,
totalAmount: outinvoicform.value.totalAmount, totalAmount: this.outinvoicform.totalAmount,
} }
const res = await outinvoicing(param) const res = await outinvoicing(param)
......
...@@ -1176,7 +1176,7 @@ export default { ...@@ -1176,7 +1176,7 @@ export default {
type: 'success', type: 'success',
}) })
this.payData = response.data.result this.payData = response.data.result
console.log(response.data,'ppppppppppppppppppppppppppp')
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
...@@ -2666,11 +2666,11 @@ export default { ...@@ -2666,11 +2666,11 @@ export default {
} }
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.tradeNo,
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,
family_pay: this.bxxxinfo.gjzhzf, family_pay: this.bxxxinfo.gjzhzf,
......
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