|
@@ -19,7 +19,17 @@
|
|
|
<el-option value="73" label="住院"/>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
- <el-button @click="confirmRefund" icon="Delete" type="danger">确认退费</el-button>
|
|
|
+ <el-button @click="confirmRefund('drugWithdrawal')" icon="Delete" type="danger"
|
|
|
+ title="项目可直接退费,只有对应的执行科室可以退费,药品会产生药单,在药房确认退药后会产生退费数据,口服药无法退费。如药房拒绝可再次退费。">
|
|
|
+ {{ isDrug ? '退药且退费' : '退费' }}
|
|
|
+ </el-button>
|
|
|
+ <el-button v-if="isDrug"
|
|
|
+ @click="confirmRefund('refundOnly')"
|
|
|
+ icon="Delete"
|
|
|
+ type="warning"
|
|
|
+ title="只会生成退费的费用,不会产生药单到药房。">
|
|
|
+ 仅退费不退药
|
|
|
+ </el-button>
|
|
|
</template>
|
|
|
|
|
|
<template #mainMaxContentHeight>
|
|
@@ -98,25 +108,28 @@ let chargeFee = $ref(0)
|
|
|
let groupNo = $ref('73')
|
|
|
|
|
|
|
|
|
-const confirmRefund = () => {
|
|
|
+const confirmRefund = (flag) => {
|
|
|
let pharmacyName = groupNo === '71' ? '门诊' : '住院'
|
|
|
- let title = props.isDrug ? `药品是否要退到 【${pharmacyName}】 药房` : '请确认数据'
|
|
|
+ // 是否是药品退药 true
|
|
|
+ let isDrugWithdrawal = props.isDrug && flag === 'drugWithdrawal'
|
|
|
+ let title = isDrugWithdrawal ? `药品是否要退到 【${pharmacyName}】 药房` : '请确认数据'
|
|
|
ElMessageBox.confirm(title, '请您仔细确认,(⌐■_■)', {
|
|
|
type: 'warning',
|
|
|
confirmButtonText: '我已确认',
|
|
|
cancelButtonText: '再看看',
|
|
|
}).then(() => {
|
|
|
props.patient.groupNo = groupNo
|
|
|
+ props.patient.refundFlag = flag
|
|
|
xiangMuTuiFei(props.patient).then((res) => {
|
|
|
emit('refreshFee')
|
|
|
emit('update:modelValue', false)
|
|
|
- if (props.isDrug) {
|
|
|
+ if (isDrugWithdrawal) {
|
|
|
emit('popUpTheDrugRefundBox')
|
|
|
}
|
|
|
})
|
|
|
}).catch(() => {
|
|
|
|
|
|
- })
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
const deleteData = async (data, index) => {
|