From c938e3e5777cfbd02699918a32cd44fa8e97c565 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期一, 23 三月 2026 11:14:46 +0800
Subject: [PATCH] fix: 耗材出库调整

---
 src/pages/consumablesLogistics/dispatchLog/view.vue |   48 ++++--------------------------------------------
 1 files changed, 4 insertions(+), 44 deletions(-)

diff --git a/src/pages/consumablesLogistics/dispatchLog/view.vue b/src/pages/consumablesLogistics/dispatchLog/view.vue
index 0008348..6ec0462 100644
--- a/src/pages/consumablesLogistics/dispatchLog/view.vue
+++ b/src/pages/consumablesLogistics/dispatchLog/view.vue
@@ -49,38 +49,6 @@
           </view>
         </view>
       </view>
-      <view class="section-card">
-        <view class="section-head">
-          <view class="section-dot"></view>
-          <text class="section-title">鍑哄簱淇℃伅</text>
-        </view>
-        <view class="section-body">
-          <view class="detail-row">
-            <text class="label">杞︾墝鍙�</text>
-            <text class="value">{{ detail.licensePlateNo || '-' }}</text>
-          </view>
-          <view class="detail-row">
-            <text class="label">姣涢噸(鍚�)</text>
-            <text class="value">{{ detail.grossWeight ?? '-' }}</text>
-          </view>
-          <view class="detail-row">
-            <text class="label">鐨噸(鍚�)</text>
-            <text class="value">{{ detail.tareWeight ?? '-' }}</text>
-          </view>
-          <view class="detail-row">
-            <text class="label">鍑�閲�(鍚�)</text>
-            <text class="value">{{ detail.netWeight ?? '-' }}</text>
-          </view>
-          <view class="detail-row">
-            <text class="label">杩囩鏃ユ湡</text>
-            <text class="value">{{ detail.weighingDate || '-' }}</text>
-          </view>
-          <view class="detail-row">
-            <text class="label">杩囩鍛�</text>
-            <text class="value">{{ detail.weighingOperator || '-' }}</text>
-          </view>
-        </view>
-      </view>
     </view>
     <view v-else class="empty">
       <text class="empty-text">鏆傛棤璇︽儏鏁版嵁</text>
@@ -92,7 +60,7 @@
 import { ref } from "vue";
 import { onLoad } from "@dcloudio/uni-app";
 import PageHeader from "@/components/PageHeader.vue";
-import { findAllQualifiedStockOutRecordTypeOptions, findAllUnQualifiedStockOutRecordTypeOptions } from "@/api/basicData/enum.js";
+import { findAllQualifiedStockOutRecordTypeOptions } from "@/api/basicData/enum.js";
 
 const detail = ref(null);
 const loading = ref(true);
@@ -111,12 +79,7 @@
     stockOutNum: d.stockOutNum,
     createBy: d.createBy,
     recordType: d.recordType,
-    licensePlateNo: d.licensePlateNo,
-    grossWeight: d.grossWeight,
-    tareWeight: d.tareWeight,
-    netWeight: d.netWeight,
-    weighingDate: d.weighingDate,
-    weighingOperator: d.weighingOperator,
+    purchaser: d.purchaser,
   };
 }
 
@@ -126,9 +89,7 @@
 }
 
 function fetchRecordTypeOptions(type) {
-  const api =
-    type === "1" ? findAllUnQualifiedStockOutRecordTypeOptions : findAllQualifiedStockOutRecordTypeOptions;
-  api()
+  findAllQualifiedStockOutRecordTypeOptions()
     .then((res) => {
       const data = res.data != null ? res.data : res;
       stockRecordTypeOptions.value = Array.isArray(data) ? data : [];
@@ -144,9 +105,8 @@
     try {
       const payload = typeof cached === "string" ? JSON.parse(cached) : cached;
       const item = payload && payload.item != null ? payload.item : payload;
-      const type = payload && payload.type != null ? payload.type : "0";
       detail.value = normalizeDetail({ ...item, index: 1 });
-      fetchRecordTypeOptions(type);
+      fetchRecordTypeOptions("0");
       uni.removeStorageSync("dispatchDetailItem");
     } catch (e) {
       uni.removeStorageSync("dispatchDetailItem");

--
Gitblit v1.9.3