From 90760f9d6d9ce2cc1314e25b3bd6e1643769dc61 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 04 十一月 2026 17:11:33 +0800
Subject: [PATCH] feat(erp): 来票分摊合计允许小于来票金额,未分摊部分可后续编辑补充订单
---
src/views/erp/purchase/invoice/modules/order-allocation-field.vue | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/src/views/erp/purchase/invoice/modules/order-allocation-field.vue b/src/views/erp/purchase/invoice/modules/order-allocation-field.vue
index 7d043ac..ab300f3 100644
--- a/src/views/erp/purchase/invoice/modules/order-allocation-field.vue
+++ b/src/views/erp/purchase/invoice/modules/order-allocation-field.vue
@@ -360,7 +360,7 @@
鑷姩鍒嗘憡
</Button>
<span class="text-xs text-gray-400">
- 涓�寮犳潵绁ㄥ彲鍏宠仈鍚屼竴渚涘簲鍟嗙殑澶氬紶閲囪喘璁㈠崟锛涢粯璁ゆ寜鏈紑绁ㄩ噾棰濊嚜鍔ㄥ垎鎽婏紝鍙墜宸ヨ皟鏁�
+ 涓�寮犳潵绁ㄥ彲鍏宠仈鍚屼竴渚涘簲鍟嗙殑澶氬紶閲囪喘璁㈠崟锛涘垎鎽婂悎璁′笉鑳藉ぇ浜庢潵绁ㄩ噾棰濓紝鏈垎鎽婇儴鍒嗗彲鍚庣画缂栬緫琛ュ厖
</span>
</div>
<Table
@@ -419,8 +419,17 @@
<span>
鏉ョエ閲戦锛�<span class="font-medium">{{ formatAmount(invoicePrice) }}</span> 鍏�
</span>
- <span :class="diff === 0 ? 'text-green-600' : 'text-red-500'">
+ <span
+ :class="
+ diff < 0
+ ? 'text-red-500'
+ : diff === 0
+ ? 'text-green-600'
+ : 'text-orange-500'
+ "
+ >
寰呭垎鎽婂樊棰濓細<span class="font-medium">{{ formatAmount(diff) }}</span> 鍏�
+ <span v-if="diff > 0" class="text-xs">锛堟湭鍒嗘憡锛屽彲淇濆瓨鍚庣紪杈戣ˉ鍏呰鍗曪級</span>
</span>
</div>
--
Gitblit v1.9.3