From 5afa72aa560366cc3cf5bb7fb74bc061acda600b Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期五, 24 四月 2026 17:21:40 +0800
Subject: [PATCH] 出库管理按照原材料和成品来区分
---
src/views/inventoryManagement/dispatchLog/Record.vue | 20 ++++++++++++++++----
1 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/src/views/inventoryManagement/dispatchLog/Record.vue b/src/views/inventoryManagement/dispatchLog/Record.vue
index 2c804f0..5caaa51 100644
--- a/src/views/inventoryManagement/dispatchLog/Record.vue
+++ b/src/views/inventoryManagement/dispatchLog/Record.vue
@@ -66,6 +66,11 @@
prop="model"
show-overflow-tooltip
/>
+ <el-table-column
+ label="鏂欏彿"
+ prop="materialCode"
+ show-overflow-tooltip
+ />
<el-table-column
label="鍗曚綅"
prop="unit"
@@ -133,6 +138,12 @@
type: String,
required: true,
default: '0'
+ },
+
+ productId: {
+ type: Number,
+ required: true,
+ default: 0
}
})
@@ -163,7 +174,7 @@
};
const getList = () => {
tableLoading.value = true;
- getStockOutPage({ ...searchForm.value, ...page, type: props.type })
+ getStockOutPage({ ...searchForm.value, ...page, topParentProductId: props.productId })
.then((res) => {
tableLoading.value = false;
tableData.value = res.data.records;
@@ -188,11 +199,10 @@
.then(res => {
stockRecordTypeOptions.value = res.data;
})
- return
}
findAllUnQualifiedStockOutRecordTypeOptions()
.then(res => {
- stockRecordTypeOptions.value = res.data;
+ stockRecordTypeOptions.value.push(...res.data);
})
}
@@ -212,7 +222,7 @@
type: "warning",
})
.then(() => {
- proxy.download("/stockOutRecord/exportStockOutRecord", {type: props.type}, props.type === '0' ? "鍚堟牸鍑哄簱鍙拌处.xlsx" : "涓嶅悎鏍煎嚭搴撳彴璐�.xlsx");
+ proxy.download("/stockOutRecord/exportStockOutRecord", {topParentProductId: props.productId}, "鍑哄簱鍙拌处.xlsx");
})
.catch(() => {
proxy.$modal.msg("宸插彇娑�");
@@ -432,6 +442,7 @@
<tr>
<th>浜у搧鍚嶇О</th>
<th>瑙勬牸鍨嬪彿</th>
+ <th>鏂欏彿</th>
<th>鍗曚綅</th>
<th>鍗曚环</th>
<th>闆跺敭鏁伴噺</th>
@@ -442,6 +453,7 @@
<tr>
<td>${item.productName || '鐮傜伆鐮�'}</td>
<td>${item.model || '鏍囧噯'}</td>
+ <td>${item.materialCode || ''}</td>
<td>${item.unit || '鍧�'}</td>
<td>${item.taxInclusiveUnitPrice || '0'}</td>
<td>${item.inboundNum || '2000'}</td>
--
Gitblit v1.9.3