fix(bx-mobile): allow reimburse submit with insufficient invoice balance

Align soft tip and submit flow with web-admin; no longer block on wallet balance.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-08-12 21:00:31 +08:00
1 parent b53c1c4851
commit 5983d31ab2
1 file changed
+2 -8
@@ -156,7 +156,7 @@
<p class="invoice-balance-tip">
发票余额 <b>¥{{ money(walletBalance) }}</b> · 本次合计
<b>¥{{ detailTotalAmount }}</b>
<span v-if="balanceInsufficient" class="invoice-balance-tip--warn">(余额不足,无法提交)</span>
<span v-if="balanceInsufficient" class="invoice-balance-tip--warn">(余额不足,提交后余额将为负,请后续补发票)</span>
</p>
<button type="button" class="btn btn-primary btn-sm" @click="openInvoicePicker">
从发票夹选择
@@ -814,19 +814,13 @@ async function onSubmit() {
showDialog({
title: isEditingAction ? '保存成功' : '创建成功',
message: balanceInsufficient.value
? '已保存为草稿。发票余额不足,请先充值发票夹后再提交。'
: '报销单已保存为草稿',
message: '报销单已保存为草稿',
showCancelButton: true,
confirmButtonText: '提交审批',
confirmButtonColor: SUBMIT_APPROVE_BUTTON_COLOR,
cancelButtonText: '继续编辑',
})
.then(() => {
if (balanceInsufficient.value) {
showToast('余额不足,无法提交')
return
}
reimburseApi
.submit(id, invoicePayload)
.then(async () => {