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 {
// 开票
async InvoicingFun() {
let param = {
cardNo: form.value.cardNo,
idCard: outinvoicform.value.idCard,
cardNo: this.form.cardNo,
idCard:this.outinvoicform.idCard,
jobNumber: localStorage.getItem('jobNumber') ?? '',
jshId: outinvoicform.value.jshId,
mobile: outinvoicform.value.mobile,
name: outinvoicform.value.name,
patientId: outinvoicform.value.patientId,
payerType: outinvoicform.value.payerType,
rcptNo: outinvoicform.value.jshId,
totalAmount: outinvoicform.value.totalAmount,
jshId: this.outinvoicform.jshId,
mobile: this.outinvoicform.mobile,
name: this.outinvoicform.name,
patientId: this.outinvoicform.patientId,
payerType: this.outinvoicform.payerType,
rcptNo: this.outinvoicform.jshId,
totalAmount: this.outinvoicform.totalAmount,
}
const res = await outinvoicing(param)
......
......@@ -1176,7 +1176,7 @@ export default {
type: 'success',
})
this.payData = response.data.result
console.log(response.data,'ppppppppppppppppppppppppppp')
if (e == '1') {
this.xj_amount = 0
this.source_pay_amount = this.form.djf
......@@ -2666,11 +2666,11 @@ export default {
}
let y = {
source_type: this.payData.targetSys,
source_trade_no: this.payData.sourceTradeNo,
source_trade_no: this.payData.tradeNo,
channel: this.channel,
xj_amount: this.xj_amount,
source_pay_amount: this.source_pay_amount,
tradeNo: this.payData.tradeNo,
// tradeNo: this.payData.tradeNo,
patient_id: this.patientData.patient_id,
personal_pay: this.bxxxinfo.grzhzf,
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