From a1131357b9e38c86e734816bae42d2fafcd48222 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期一, 23 三月 2026 11:01:41 +0800
Subject: [PATCH] fix: 客户3.22提出的修改需求
---
src/pages/consumablesLogistics/receiptManagement/view.vue | 40 ++++++----------------------------------
1 files changed, 6 insertions(+), 34 deletions(-)
diff --git a/src/pages/consumablesLogistics/receiptManagement/view.vue b/src/pages/consumablesLogistics/receiptManagement/view.vue
index 180eb9a..221bead 100644
--- a/src/pages/consumablesLogistics/receiptManagement/view.vue
+++ b/src/pages/consumablesLogistics/receiptManagement/view.vue
@@ -56,28 +56,8 @@
</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>
+ <text class="label">閲囪喘鍛�</text>
+ <text class="value">{{ detail.purchaser || '-' }}</text>
</view>
</view>
</view>
@@ -92,7 +72,7 @@
import { ref } from "vue";
import { onLoad } from "@dcloudio/uni-app";
import PageHeader from "@/components/PageHeader.vue";
-import { findAllQualifiedStockInRecordTypeOptions, findAllUnQualifiedStockInRecordTypeOptions } from "@/api/basicData/enum.js";
+import { findAllQualifiedStockInRecordTypeOptions } from "@/api/basicData/enum.js";
const detail = ref(null);
const loading = ref(true);
@@ -111,12 +91,7 @@
stockInNum: d.stockInNum,
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 +101,7 @@
}
function fetchRecordTypeOptions(type) {
- const api =
- type === "1" ? findAllUnQualifiedStockInRecordTypeOptions : findAllQualifiedStockInRecordTypeOptions;
- api()
+ findAllQualifiedStockInRecordTypeOptions()
.then((res) => {
const data = res.data != null ? res.data : res;
stockRecordTypeOptions.value = Array.isArray(data) ? data : [];
@@ -144,9 +117,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("receiptDetailItem");
} catch (e) {
uni.removeStorageSync("receiptDetailItem");
--
Gitblit v1.9.3