新增病案状态审核不过

This commit is contained in:
sangchengzhi
2026-01-16 16:52:57 +08:00
parent 84a7fc7acc
commit 7e9bbf73b5
2 changed files with 12 additions and 3 deletions

View File

@@ -72,7 +72,7 @@
<div class="action-buttons">
<button class="cancel-btn" v-if="canCancelApplication(item)" @click="showCancelConfirm(item)">
取消申请
取消/删除
</button>
<button class="pay-btn" v-if="item.amount !== null && item.status === 1 && item.send === 0"
@@ -165,7 +165,7 @@ export default {
},
canCancelApplication(item) {
return [3, 1].includes(item.status);
return [3, 1, 4].includes(item.status); // 新增:允许审核不过的申请删除
},
showCancelConfirm(item) {
@@ -430,6 +430,7 @@ export default {
if (item.status === 2) return 'paid';
if (item.amount !== null && item.status === 1) return 'unpaid';
if (item.amount === null && item.status === 3) return 'pending';
if (item.status === 4) return 'rejected'; // 新增:审核不过状态
return null;
},
@@ -440,7 +441,8 @@ export default {
unpaid: '待支付',
paid: '已支付',
picked: '已自取',
shipped: '已邮寄'
shipped: '已邮寄',
rejected: '审核未通过' // 新增:审核不过文本
};
return texts[type] || '';
},
@@ -615,6 +617,12 @@ export default {
background-color: rgba(140, 140, 140, 0.05);
}
.watermark.rejected {
color: #ff4d4f;
border-color: #ff4d4f;
background-color: rgba(255, 77, 79, 0.05);
}
.info-row {
display: flex;
margin-bottom: 0.25rem;

View File

@@ -564,6 +564,7 @@ export default {
this.showLoading('退费处理中...');
// TODO: 这里添加实际的退费API调用
setTimeout(() => {
this.hideLoading();
Toast.success('退费成功');