From 0a7f62f18d322dcb82ec3134075ea4e71f010825 Mon Sep 17 00:00:00 2001
From: yuan <123@>
Date: 星期四, 25 六月 2026 09:09:09 +0800
Subject: [PATCH] fix: 报价、审核、采购台账、供应商往来、销售台账、客户往来小数点保留6位小数

---
 src/views/collaborativeApproval/approvalProcess/components/approvalDia.vue |   32 +++++++++++++++++++++-----------
 1 files changed, 21 insertions(+), 11 deletions(-)

diff --git a/src/views/collaborativeApproval/approvalProcess/components/approvalDia.vue b/src/views/collaborativeApproval/approvalProcess/components/approvalDia.vue
index 0605fe5..6a4b767 100644
--- a/src/views/collaborativeApproval/approvalProcess/components/approvalDia.vue
+++ b/src/views/collaborativeApproval/approvalProcess/components/approvalDia.vue
@@ -75,7 +75,7 @@
                 <el-descriptions-item label="鎶ヤ环鎬婚"
                                       :span="2">
                   <span style="font-size: 18px; color: #e6a23c; font-weight: bold;">
-                    楼{{ Number(currentQuotation.totalAmount ?? 0).toFixed(2) }}
+                    {{ formatCurrency(currentQuotation.totalAmount) }}
                   </span>
                 </el-descriptions-item>
               </el-descriptions>
@@ -92,7 +92,7 @@
                                    label="鍗曚綅" />
                   <el-table-column prop="unitPrice"
                                    label="鍗曚环">
-                    <template #default="scope">楼{{ Number(scope.row.unitPrice ?? 0).toFixed(2) }}</template>
+                    <template #default="scope">{{ formatCurrency(scope.row.unitPrice) }}</template>
                   </el-table-column>
                 </el-table>
               </div>
@@ -135,7 +135,7 @@
                 <el-descriptions-item label="鍚堝悓閲戦"
                                       :span="2">
                   <span style="font-size: 18px; color: #e6a23c; font-weight: bold;">
-                    楼{{ Number(currentPurchase.contractAmount ?? 0).toFixed(2) }}
+                    {{ formatCurrency(currentPurchase.contractAmount) }}
                   </span>
                 </el-descriptions-item>
               </el-descriptions>
@@ -154,11 +154,11 @@
                                    label="鏁伴噺" />
                   <el-table-column prop="taxInclusiveUnitPrice"
                                    label="鍚◣鍗曚环">
-                    <template #default="scope">楼{{ Number(scope.row.taxInclusiveUnitPrice ?? 0).toFixed(2) }}</template>
+                    <template #default="scope">{{ formatCurrency(scope.row.taxInclusiveUnitPrice) }}</template>
                   </el-table-column>
                   <el-table-column prop="taxInclusiveTotalPrice"
                                    label="鍚◣鎬讳环">
-                    <template #default="scope">楼{{ Number(scope.row.taxInclusiveTotalPrice ?? 0).toFixed(2) }}</template>
+                    <template #default="scope">{{ formatCurrency(scope.row.taxInclusiveTotalPrice) }}</template>
                   </el-table-column>
                 </el-table>
               </div>
@@ -193,9 +193,9 @@
                 <el-descriptions-item label="鍙戣揣鏃ユ湡">{{ currentDelivery.shippingInfo.shippingDate || '--' }}</el-descriptions-item>
                 <el-descriptions-item label="瀹℃牳鐘舵��">{{ currentDelivery.shippingInfo.status || '--' }}</el-descriptions-item>
                 <el-descriptions-item label="鍙戣揣杞︾墝鍙�">{{ currentDelivery.shippingInfo.shippingCarNumber || '--' }}</el-descriptions-item>
-                <el-descriptions-item label="蹇�掑叕鍙�">{{ currentDelivery.shippingInfo.expressCompany || '--' }}</el-descriptions-item>
+                <el-descriptions-item label="蹇�掑叕鍙�" v-if="false">{{ currentDelivery.shippingInfo.expressCompany || '--' }}</el-descriptions-item>
                 <el-descriptions-item label="蹇�掑崟鍙�"
-                                      :span="2">{{ currentDelivery.shippingInfo.expressNumber || '--' }}</el-descriptions-item>
+                                      :span="2" v-if="false">{{ currentDelivery.shippingInfo.expressNumber || '--' }}</el-descriptions-item>
               </el-descriptions>
               <div style="margin-top: 20px;">
                 <h4>浜у搧鏄庣粏</h4>
@@ -295,8 +295,10 @@
                 v-if="operationType === 'approval'">
         <div class="dialog-footer">
           <el-button type="primary"
+                     :loading="submitLoading"
                      @click="submitForm(2)">涓嶉�氳繃</el-button>
           <el-button type="primary"
+                     :loading="submitLoading"
                      @click="submitForm(1)">閫氳繃</el-button>
           <el-button @click="closeDia">鍙栨秷</el-button>
         </div>
@@ -330,6 +332,7 @@
   import { getPurchaseByCode } from "@/api/procurementManagement/procurementLedger.js";
   import { getDeliveryDetailByShippingNo } from "@/api/salesManagement/deliveryLedger.js";
   import ImagePreview from "@/components/AttachmentPreview/image/index.vue";
+  import { formatCurrency } from "@/utils/numberFormat";
   const emit = defineEmits(["close"]);
   const { proxy } = getCurrentInstance();
 
@@ -353,6 +356,7 @@
   const deliveryLoading = ref(false);
   const currentDelivery = ref({});
   const deliveryProductList = ref([]);
+  const submitLoading = ref(false);
   const isQuotationApproval = computed(() => Number(props.approveType) === 6);
   const isPurchaseApproval = computed(() => Number(props.approveType) === 5);
   const isDeliveryApproval = computed(() => Number(props.approveType) === 7);
@@ -581,10 +585,15 @@
     // 鍒ゆ柇鏄惁涓烘渶鍚庝竴姝�
     const isLast =
       activities.value.findIndex(a => a.isShen) === activities.value.length - 1;
-    updateApproveNode({ ...currentActivity, isLast }).then(() => {
-      proxy.$modal.msgSuccess("鎻愪氦鎴愬姛");
-      closeDia();
-    });
+    submitLoading.value = true;
+    updateApproveNode({ ...currentActivity, isLast })
+      .then(() => {
+        proxy.$modal.msgSuccess("鎻愪氦鎴愬姛");
+        closeDia();
+      })
+      .finally(() => {
+        submitLoading.value = false;
+      });
   };
   // 鍏抽棴寮规
   const closeDia = () => {
@@ -594,6 +603,7 @@
     currentQuotation.value = {};
     purchaseLoading.value = false;
     currentPurchase.value = {};
+    submitLoading.value = false;
     emit("close");
   };
   defineExpose({

--
Gitblit v1.9.3