|
|
@ -180,11 +180,9 @@ |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="total" label="金额" width="70" v-if="false" /> |
|
|
<el-table-column prop="total" label="金额" width="70" v-if="false" /> |
|
|
<el-table-column prop="standardPrice" label="标准金额" width="80" v-if="false" /> |
|
|
<el-table-column prop="standardPrice" label="标准金额" width="80" v-if="false" /> |
|
|
<el-table-column label="支付方式" prop="payTypeFlag" width="100"> |
|
|
|
|
|
|
|
|
<el-table-column label="支付方式" prop="payTypeFlag" width="100" align="center" > |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-select v-model="scope.row.payTypeFlag" size="small"> |
|
|
|
|
|
<el-option v-for="item in dict.payType" :key="item.id" :label="item.displayName" :value="item.id" /> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
|
|
|
<div>{{ dddw(dict.payType, "id", scope.row.payTypeFlag, "displayName") }}</div> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="checkCompleteFlag" label="状态" align="center"> |
|
|
<el-table-column prop="checkCompleteFlag" label="状态" align="center"> |
|
|
@ -361,8 +359,19 @@ export default { |
|
|
this.form.invoiceNo = ''; |
|
|
this.form.invoiceNo = ''; |
|
|
this.form.invoiceOrgName = row.patientName; |
|
|
this.form.invoiceOrgName = row.patientName; |
|
|
} |
|
|
} |
|
|
|
|
|
this.getCardRegister(row.idNo); |
|
|
|
|
|
|
|
|
this.getAsbItemsForFee(row.patientRegisterId, row.chargeId); |
|
|
this.getAsbItemsForFee(row.patientRegisterId, row.chargeId); |
|
|
|
|
|
|
|
|
|
|
|
if (this.query.chargeFlag == 'Y') { |
|
|
|
|
|
this.getChargePayByChargeId(row.chargeId); |
|
|
|
|
|
this.getChargeAsbByChargeid(row.chargeId); |
|
|
|
|
|
} else if (this.query.chargeFlag == 'B') { |
|
|
|
|
|
this.getChargeBackPayByChargeBackId(row.chargeBackId); |
|
|
|
|
|
this.getChargeAsbByChargeid(row.chargeId); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//获取项目列表 |
|
|
//获取项目列表 |
|
|
@ -374,15 +383,18 @@ export default { |
|
|
.then(res => { |
|
|
.then(res => { |
|
|
if (res.code == 1) { |
|
|
if (res.code == 1) { |
|
|
this.asbItemsForFee = res.data; |
|
|
this.asbItemsForFee = res.data; |
|
|
this.asbItemsForFee.forEach(e => { |
|
|
|
|
|
if(e.isCharge == 'N'){ |
|
|
|
|
|
e.chargePriceOri = e.chargePrice; |
|
|
|
|
|
e.discount = Math.round(10000 * e.chargePrice / e.standardPrice) / 100; |
|
|
|
|
|
e.standTotal = e.amount * e.standardPrice; |
|
|
|
|
|
e.total = e.amount * e.chargePrice; |
|
|
|
|
|
return e; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (let i = this.asbItemsForFee.length - 1; i >= 0; i--) { |
|
|
|
|
|
if (this.asbItemsForFee[i].isCharge == 'Y') { |
|
|
|
|
|
this.asbItemsForFee.splice(i, 1); |
|
|
|
|
|
continue; |
|
|
} |
|
|
} |
|
|
}); |
|
|
|
|
|
|
|
|
this.asbItemsForFee[i].chargePriceOri = this.asbItemsForFee[i].chargePrice; |
|
|
|
|
|
this.asbItemsForFee[i].discount = Math.round(10000 * this.asbItemsForFee[i].chargePrice / this.asbItemsForFee[i].standardPrice) / 100; |
|
|
|
|
|
this.asbItemsForFee[i].standTotal = this.asbItemsForFee[i].amount * this.asbItemsForFee[i].standardPrice; |
|
|
|
|
|
this.asbItemsForFee[i].total = this.asbItemsForFee[i].amount * this.asbItemsForFee[i].chargePrice; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//勾选已收费项目 |
|
|
//勾选已收费项目 |
|
|
this.toCharge(patientRegisterId); |
|
|
this.toCharge(patientRegisterId); |
|
|
} |
|
|
} |
|
|
@ -398,6 +410,88 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// "chargeId": "3a0d5685-b3a0-0186-0dd4-3b3ac0d2d08c", |
|
|
|
|
|
// "asbitemId": "3a0c657d-4e73-9bab-68da-56ab2f088bb1", |
|
|
|
|
|
// "asbitemName": "身高体重", |
|
|
|
|
|
// "asbitemPrice": 17, |
|
|
|
|
|
// "chargePrice": 18, |
|
|
|
|
|
// "amount": 1, |
|
|
|
|
|
// "registerAsbitemId": "3a0c6589-9b27-68d1-32f6-51082031d11c", |
|
|
|
|
|
// "creatorName": "admin", |
|
|
|
|
|
// "lastModifierName": null, |
|
|
|
|
|
// "lastModificationTime": null, |
|
|
|
|
|
// "lastModifierId": null, |
|
|
|
|
|
// "creationTime": "2023-08-30T10:49:48.753174", |
|
|
|
|
|
// "creatorId": "3a0c4180-107c-0c89-b25b-0bd34666dcec", |
|
|
|
|
|
// "id": "3a0d5685-b3bb-8dc2-0d14-56af1ddd11f9" |
|
|
|
|
|
|
|
|
|
|
|
// 获取个人充值卡 |
|
|
|
|
|
getCardRegister(idNo) { |
|
|
|
|
|
let body = { cardModeId: '0', idNo }; |
|
|
|
|
|
this.cardRegister = []; |
|
|
|
|
|
getapi(`/api/app/cardregister/getcardregisterlist`, body).then(res => { |
|
|
|
|
|
if (res.code != - 1) { |
|
|
|
|
|
this.cardRegister = res.data; |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//获取收费单包含的组合项目 |
|
|
|
|
|
getChargeAsbByChargeid(ChargeId) { |
|
|
|
|
|
this.asbItemsForFee = []; |
|
|
|
|
|
getapi(`/api/app/chargeasbitem/getchargeasbiteminchargeid?ChargeId=${ChargeId}`).then(res => { |
|
|
|
|
|
if (res.code != - 1) { |
|
|
|
|
|
res.data.forEach(e => { |
|
|
|
|
|
this.asbItemsForFee.push({ |
|
|
|
|
|
asbitemName: e.asbitemName, |
|
|
|
|
|
standardPrice: e.asbitemPrice, |
|
|
|
|
|
chargePrice: e.chargePrice, |
|
|
|
|
|
chargePriceOri: e.chargePrice, |
|
|
|
|
|
amount: e.amount, |
|
|
|
|
|
discount: Math.round(10000 * e.chargePrice / e.asbitemPrice) / 100, |
|
|
|
|
|
payTypeFlag: e.payTypeFlag, |
|
|
|
|
|
checkCompleteFlag: e.checkCompleteFlag, |
|
|
|
|
|
creatorName: e.creatorName, |
|
|
|
|
|
creationTime: e.creationTime, |
|
|
|
|
|
}); |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//获取收费方式明细 |
|
|
|
|
|
getChargePayByChargeId(ChargeId) { |
|
|
|
|
|
let lfind = -1; |
|
|
|
|
|
getapi(`/api/app/chargepay/getchargepayinchargeid?ChargeId=${ChargeId}`).then(res => { |
|
|
|
|
|
if (res.code != - 1) { |
|
|
|
|
|
res.data.forEach(e => { |
|
|
|
|
|
lfind = arrayExistObj(this.chargePays, 'payModeId', e.payModeId); |
|
|
|
|
|
if (lfind > - 1) { |
|
|
|
|
|
this.chargePays[lfind].chargeMoney = e.chargeMoney; |
|
|
|
|
|
this.chargePays[lfind].cardRegisterId = e.cardBillId; |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
//获取退费方式明细 |
|
|
|
|
|
getChargeBackPayByChargeBackId(ChargeBackId) { |
|
|
|
|
|
let lfind = -1; |
|
|
|
|
|
getapi(`/api/app/chargebackpay/getchargebackpayinchargebackid?ChargeBackId=${ChargeBackId}`).then(res => { |
|
|
|
|
|
if (res.code != - 1) { |
|
|
|
|
|
res.data.forEach(e => { |
|
|
|
|
|
lfind = arrayExistObj(this.chargePays, 'payModeId', e.payModeId); |
|
|
|
|
|
if (lfind > - 1) { |
|
|
|
|
|
this.chargePays[lfind].chargeMoney = e.backMoeny; |
|
|
|
|
|
this.chargePays[lfind].cardRegisterId = e.cardBillId; |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
//待收费数据分析 |
|
|
//待收费数据分析 |
|
|
toCharge(patientRegisterId) { |
|
|
toCharge(patientRegisterId) { |
|
|
//默认全部选中 |
|
|
//默认全部选中 |
|
|
@ -758,7 +852,6 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//数据初始化 |
|
|
//数据初始化 |
|
|
dictInit() { |
|
|
dictInit() { |
|
|
|
|
|
|
|
|
@ -882,6 +975,7 @@ export default { |
|
|
|
|
|
|
|
|
console.log("dict", this.dict); |
|
|
console.log("dict", this.dict); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//监听事件() |
|
|
//监听事件() |
|
|
|