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/inventoryManagement/dispatchLog/view.vue | 57 +++++++--------------------------------------------------
1 files changed, 7 insertions(+), 50 deletions(-)
diff --git a/src/pages/inventoryManagement/dispatchLog/view.vue b/src/pages/inventoryManagement/dispatchLog/view.vue
index ea41965..8a2a977 100644
--- a/src/pages/inventoryManagement/dispatchLog/view.vue
+++ b/src/pages/inventoryManagement/dispatchLog/view.vue
@@ -41,45 +41,12 @@
<text class="value value-num">{{ detail.stockOutNum ?? '-' }}</text>
</view>
<view class="detail-row">
- <text class="label">鍑哄簱浜�</text>
- <text class="value">{{ detail.createBy || '-' }}</text>
+ <text class="label">閲囪喘鍛�</text>
+ <text class="value">{{ detail.purchaser || detail.createBy || '-' }}</text>
</view>
<view class="detail-row">
<text class="label">鏉ユ簮</text>
<text class="value">{{ getRecordType(detail.recordType) || '-' }}</text>
- </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>
@@ -95,8 +62,7 @@
import { onLoad } from '@dcloudio/uni-app'
import PageHeader from '@/components/PageHeader.vue'
import {
- findAllQualifiedStockOutRecordTypeOptions,
- findAllUnQualifiedStockOutRecordTypeOptions
+ findAllQualifiedStockOutRecordTypeOptions
} from '@/api/basicData/enum.js'
const detail = ref(null)
@@ -116,12 +82,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
}
}
@@ -130,11 +91,8 @@
return stockRecordTypeOptions.value.find(item => item.value === recordType)?.label || ''
}
-function fetchRecordTypeOptions(type) {
- const api = type === '1'
- ? findAllUnQualifiedStockOutRecordTypeOptions
- : findAllQualifiedStockOutRecordTypeOptions
- api()
+function fetchRecordTypeOptions() {
+ findAllQualifiedStockOutRecordTypeOptions()
.then(res => {
const data = res.data != null ? res.data : res
stockRecordTypeOptions.value = Array.isArray(data) ? data : []
@@ -150,9 +108,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()
uni.removeStorageSync('dispatchDetailItem')
} catch (e) {
uni.removeStorageSync('dispatchDetailItem')
--
Gitblit v1.9.3