From db76255e483a8829c3c79e752fa0538c9b226289 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期一, 29 六月 2026 16:07:34 +0800
Subject: [PATCH]  完善采购台账功能,新增入库管控与模板导入能力

---
 src/pages/procurementManagement/procurementLedger/view.vue |   32 +++++++++++++++++++++++++-------
 1 files changed, 25 insertions(+), 7 deletions(-)

diff --git a/src/pages/procurementManagement/procurementLedger/view.vue b/src/pages/procurementManagement/procurementLedger/view.vue
index 174b8ae..30dd536 100644
--- a/src/pages/procurementManagement/procurementLedger/view.vue
+++ b/src/pages/procurementManagement/procurementLedger/view.vue
@@ -12,10 +12,6 @@
           <text class="info-value">{{ form.purchaseContractNumber }}</text>
         </view>
         <view class="info-item">
-          <text class="info-label">閿�鍞悎鍚屽彿</text>
-          <text class="info-value">{{ form.salesContractNo }}</text>
-        </view>
-        <view class="info-item">
           <text class="info-label">渚涘簲鍟嗗悕绉�</text>
           <text class="info-value">{{ form.supplierName }}</text>
         </view>
@@ -28,12 +24,20 @@
           <text class="info-value">{{ form.paymentMethod }}</text>
         </view>
         <view class="info-item">
+          <text class="info-label">鍏ュ簱鐘舵��</text>
+          <text class="info-value">{{ form.stockInStatus || '--' }}</text>
+        </view>
+        <view class="info-item">
           <text class="info-label">褰曞叆浜�</text>
           <text class="info-value">{{ form.recorderName }}</text>
         </view>
         <view class="info-item">
           <text class="info-label">褰曞叆鏃ユ湡</text>
           <text class="info-value">{{ form.entryDate }}</text>
+        </view>
+        <view class="info-item">
+          <text class="info-label">澶囨敞</text>
+          <text class="info-value">{{ form.remarks || '--' }}</text>
         </view>
       </view>
     </view>
@@ -64,6 +68,10 @@
               <text class="info-value">{{ product.unit }}</text>
             </view>
             <view class="info-item">
+              <text class="info-label">鍏ュ簱瀹℃牳鐘舵��</text>
+              <text class="info-value">{{ product.stockInApprovalStatus || '--' }}</text>
+            </view>
+            <view class="info-item">
               <text class="info-label">绋庣巼(%)</text>
               <text class="info-value">{{ product.taxRate }}</text>
             </view>
@@ -74,6 +82,14 @@
             <view class="info-item">
               <text class="info-label">鏁伴噺</text>
               <text class="info-value highlight">{{ product.quantity }}</text>
+            </view>
+            <view class="info-item">
+              <text class="info-label">鍙敤鏁伴噺</text>
+              <text class="info-value">{{ product.availableQuality ?? '--' }}</text>
+            </view>
+            <view class="info-item">
+              <text class="info-label">閫�璐ф暟閲�</text>
+              <text class="info-value">{{ product.returnQuality ?? '--' }}</text>
             </view>
             <view class="info-item">
               <text class="info-label">鍚◣鎬讳环(鍏�)</text>
@@ -106,7 +122,6 @@
 // 琛ㄥ崟鏁版嵁
 const form = ref({
   id: '',
-  salesContractNo: '',
   customerContractNo: '',
   customerId: '',
   customerName: '',
@@ -138,8 +153,11 @@
   
   // 鑾峰彇瀹屾暣鐨勪骇鍝佷俊鎭�
 	getPurchaseById({ id: editData.value.id, type: 2 }).then((res) => {
-    productData.value = res.productData || [];
-		form.value = {...res}
+    const data = res?.data ? res.data : res || {};
+    const products =
+      data.purchaseLedgerProductList || res?.productData || data.productData || [];
+    productData.value = Array.isArray(products) ? products : [];
+		form.value = { ...data }
   });
 };
 

--
Gitblit v1.9.3