费用明细可以增加费用

This commit is contained in:
wuweihua
2026-09-22 15:30:25 +08:00
parent 77b95f9450
commit 226db7799b
20 changed files with 797 additions and 14 deletions
+6 -1
View File
@@ -71,7 +71,7 @@
</template>
</basic-table>
<bill-detail v-model="open" :title="title" :loading="loading" :detail="detail" />
<bill-detail v-model="open" :title="title" :loading="loading" :detail="detail" @updated="onDetailUpdated" />
</div>
</template>
@@ -156,6 +156,11 @@ function handleView(row) {
})
}
function onDetailUpdated(data) {
detail.value = data
tableRef.value?.refresh?.()
}
function formatMoney(val) {
if (val === null || val === undefined || val === '') return '-'
const num = Number(val)