From 91dec349aa88c58c587199d9601529d60824e1d0 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期四, 02 七月 2026 13:24:34 +0800
Subject: [PATCH] 生产订单对齐管理端新增两个字段展示

---
 src/pages/sales/salesAccount/index.vue |   65 ++++++++++++++++++++------------
 1 files changed, 41 insertions(+), 24 deletions(-)

diff --git a/src/pages/sales/salesAccount/index.vue b/src/pages/sales/salesAccount/index.vue
index 60ec732..0b9c859 100644
--- a/src/pages/sales/salesAccount/index.vue
+++ b/src/pages/sales/salesAccount/index.vue
@@ -60,7 +60,11 @@
             </view>
             <view class="detail-row">
               <text class="detail-label">鍚堝悓閲戦(鍏�)</text>
-              <text class="detail-value highlight">{{ item.contractAmount }}</text>
+              <text class="detail-value highlight">{{ formattedNumber(item.contractAmount) }}</text>
+            </view>
+            <view class="detail-row">
+              <text class="detail-label">瀹為檯鍚堝悓閲戦(鍏�)</text>
+              <text class="detail-value highlight">{{ formattedNumber(item.netContractAmount) }}</text>
             </view>
             <view class="detail-row">
               <text class="detail-label">绛捐鏃ユ湡</text>
@@ -80,25 +84,32 @@
             <up-divider></up-divider>
             <view class="detail-buttons">
               <u-button class="detail-button"
-                      size="small"
-                      type="primary"
-                      @click.stop="handleInfo('edit', item)">
-              缂栬緫
-            </u-button>
+                        size="small"
+                        type="primary"
+                        plain
+                        @click.stop="openOut(item)">
+                鍙戣揣鐘舵��
+              </u-button>
+              <!-- <u-button class="detail-button"
+                        size="small"
+                        type="primary"
+                        @click.stop="handleInfo('edit', item)">
+                缂栬緫
+              </u-button>
               <u-button class="detail-button"
-                      size="small"
-                      type="primary"
-                      plain
-                      @click.stop="openOut(item)">
-              鍙戣揣鐘舵��
-            </u-button>
-            <u-button class="detail-button"
-                      size="small"
-                      type="error"
-                      plain
-                      @click.stop="handleDelete(item)">
-              鍒犻櫎
-            </u-button>
+                        size="small"
+                        type="primary"
+                        plain
+                        @click.stop="openOut(item)">
+                鍙戣揣鐘舵��
+              </u-button> -->
+              <!-- <u-button class="detail-button"
+                        size="small"
+                        type="error"
+                        plain
+                        @click.stop="handleDelete(item)">
+                鍒犻櫎
+              </u-button> -->
             </view>
           </view>
         </view>
@@ -109,12 +120,12 @@
       <text>鏆傛棤閿�鍞彴璐︽暟鎹�</text>
     </view>
     <!-- 娴姩鎿嶄綔鎸夐挳 -->
-    <view class="fab-button"
+    <!-- <view class="fab-button"
           @click="handleInfo('add')">
       <up-icon name="plus"
                size="24"
                color="#ffffff"></up-icon>
-    </view>
+    </view> -->
   </view>
 </template>
 
@@ -139,6 +150,13 @@
     uni.hideLoading();
   };
 
+  const formattedNumber = value => {
+    if (value === undefined || value === null || value === "") {
+      return "0.00";
+    }
+    return parseFloat(value).toFixed(2);
+  };
+
   // 鎼滅储鍏抽敭璇�
   const salesContractNo = ref("");
 
@@ -152,9 +170,7 @@
       const statusStr = (p.shippingStatus ?? "").toString();
       // 鍖呭惈鈥滃彂璐р�濇垨鏈夊彂璐ф棩鏈�/杞︾墝鍙疯涓哄凡鍙戣揣
       return (
-        statusStr.includes("鍙戣揣") ||
-        !!p.shippingDate ||
-        !!p.shippingCarNumber
+        statusStr.includes("鍙戣揣") || !!p.shippingDate || !!p.shippingCarNumber
       );
     });
   };
@@ -240,6 +256,7 @@
     try {
       // 璁剧疆鎿嶄綔绫诲瀷
       uni.setStorageSync("operationType", type);
+      uni.removeStorageSync("editData");
 
       // 濡傛灉鏄煡鐪嬫垨缂栬緫鎿嶄綔
       if (type !== "add") {

--
Gitblit v1.9.3