From 2365a272f1883143294cc36b10e62d4a240e7df6 Mon Sep 17 00:00:00 2001
From: yuan <123@>
Date: 星期六, 18 七月 2026 09:58:07 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev_pro_河南鹤壁' into dev_pro_河南鹤壁

---
 src/views/collaborativeApproval/approvalProcess/components/approvalDia.vue |   56 +++++++++++++++++++++++++++++++++++++-------------------
 1 files changed, 37 insertions(+), 19 deletions(-)

diff --git a/src/views/collaborativeApproval/approvalProcess/components/approvalDia.vue b/src/views/collaborativeApproval/approvalProcess/components/approvalDia.vue
index 667bdaa..e4cc4c0 100644
--- a/src/views/collaborativeApproval/approvalProcess/components/approvalDia.vue
+++ b/src/views/collaborativeApproval/approvalProcess/components/approvalDia.vue
@@ -22,14 +22,10 @@
         <el-row>
           <el-col :span="24">
             <el-form-item label="鐢宠閮ㄩ棬锛�">
-              <el-select disabled
-                         v-model="form.approveDeptId"
-                         placeholder="閫夋嫨閮ㄩ棬">
-                <el-option v-for="user in productOptions"
-                           :key="user.deptId"
-                           :label="user.deptName"
-                           :value="user.deptId" />
-              </el-select>
+              <el-input v-model="form.approveDeptName"
+                        placeholder=""
+                        clearable
+                        disabled />
             </el-form-item>
           </el-col>
         </el-row>
@@ -42,6 +38,18 @@
                         clearable
                         type="textarea"
                         disabled />
+            </el-form-item>
+          </el-col>
+        </el-row>
+        <el-row v-if="Number(props.approveType) === 4">
+          <el-col :span="24">
+            <el-form-item label="鎶ラ攢閲戦锛�">
+              <el-input-number v-model="form.price"
+                               disabled
+                               :min="0"
+                               :precision="2"
+                               style="width: 100%"
+                               placeholder="" />
             </el-form-item>
           </el-col>
         </el-row>
@@ -75,7 +83,7 @@
                 <el-descriptions-item label="鎶ヤ环鎬婚"
                                       :span="2">
                   <span style="font-size: 18px; color: #e6a23c; font-weight: bold;">
-                    楼{{ Number(currentQuotation.totalAmount ?? 0).toFixed(6) }}
+                    {{ formatCurrency(currentQuotation.totalAmount) }}
                   </span>
                 </el-descriptions-item>
               </el-descriptions>
@@ -92,7 +100,7 @@
                                    label="鍗曚綅" />
                   <el-table-column prop="unitPrice"
                                    label="鍗曚环">
-                    <template #default="scope">楼{{ Number(scope.row.unitPrice ?? 0).toFixed(6) }}</template>
+                    <template #default="scope">{{ formatCurrency(scope.row.unitPrice) }}</template>
                   </el-table-column>
                 </el-table>
               </div>
@@ -135,7 +143,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 +162,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 +201,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 +303,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 +340,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 +364,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 +593,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 +611,7 @@
     currentQuotation.value = {};
     purchaseLoading.value = false;
     currentPurchase.value = {};
+    submitLoading.value = false;
     emit("close");
   };
   defineExpose({

--
Gitblit v1.9.3