From 754f4ccb397866d31bcfa71c3c8099539647a18b Mon Sep 17 00:00:00 2001
From: 张诺 <zhang_12370@163.com>
Date: 星期五, 24 四月 2026 16:56:13 +0800
Subject: [PATCH] feat(设备保养/销售台账): 新增保养项目字段并统一数字格式显示
---
src/pages/sales/salesAccount/out.vue | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/src/pages/sales/salesAccount/out.vue b/src/pages/sales/salesAccount/out.vue
index d4fc5be..cca77d4 100644
--- a/src/pages/sales/salesAccount/out.vue
+++ b/src/pages/sales/salesAccount/out.vue
@@ -11,7 +11,7 @@
</view>
<view class="summary-item">
<text class="summary-label">鍚堝悓閲戦</text>
- <text class="summary-value">{{ outData.contractAmount }}</text>
+ <text class="summary-value">{{ formatNumber(outData.contractAmount) }}</text>
</view>
<view class="summary-item">
<text class="summary-label">绛捐鏃ユ湡</text>
@@ -83,7 +83,7 @@
</view>
<view class="detail-row">
<text class="detail-label">鏁伴噺</text>
- <text class="detail-value">{{ item.quantity }}</text>
+ <text class="detail-value">{{ formatNumber(item.quantity) }}</text>
</view>
<view class="detail-row">
<text class="detail-label">绋庣巼锛�%锛�</text>
@@ -91,15 +91,15 @@
</view>
<view class="detail-row">
<text class="detail-label">鍚◣鍗曚环锛堝厓锛�</text>
- <text class="detail-value">{{ item.taxInclusiveUnitPrice }}</text>
+ <text class="detail-value">{{ formatNumber(item.taxInclusiveUnitPrice) }}</text>
</view>
<view class="detail-row">
<text class="detail-label">鍚◣鎬讳环锛堝厓锛�</text>
- <text class="detail-value">{{ item.taxInclusiveTotalPrice }}</text>
+ <text class="detail-value">{{ formatNumber(item.taxInclusiveTotalPrice) }}</text>
</view>
<view class="detail-row">
<text class="detail-label">涓嶅惈绋庢�讳环锛堝厓锛�</text>
- <text class="detail-value">{{ item.taxExclusiveTotalPrice }}</text>
+ <text class="detail-value">{{ formatNumber(item.taxExclusiveTotalPrice) }}</text>
</view>
<up-divider></up-divider>
<u-button class="detail-button"
@@ -126,6 +126,11 @@
// 瀹㈡埛淇℃伅
const supplierId = ref("");
+ const formatNumber = value => {
+ if (value === null || value === undefined || value === "") return "-";
+ return parseFloat(value).toFixed(3);
+ };
+
// 琛ㄦ牸鏁版嵁
const tableData = ref([]);
--
Gitblit v1.9.3