From ccb3982886a8be3fcbac770641f5d814268f6d1e Mon Sep 17 00:00:00 2001
From: fengyuan_yang <1976974459@qq.com>
Date: Mon, 20 Oct 2025 09:34:39 +0800
Subject: [PATCH] =?UTF-8?q?2025-10-20=20pda=E7=94=9F=E4=BA=A7=E9=A2=86?=
=?UTF-8?q?=E6=96=99=E4=BC=98=E5=8C=96---=E6=9C=AA=E6=B5=8B=E8=AF=95?=
=?UTF-8?q?=EF=BC=8C=E6=9A=82=E6=8F=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/production/production-inbound.js | 8 +-
.../production/productionInboundStorage.vue | 41 +-
.../production/productionQualifiedStorage.vue | 359 +++++++++++++++---
3 files changed, 346 insertions(+), 62 deletions(-)
diff --git a/src/api/production/production-inbound.js b/src/api/production/production-inbound.js
index 5929d01..5cf6b4c 100644
--- a/src/api/production/production-inbound.js
+++ b/src/api/production/production-inbound.js
@@ -34,4 +34,10 @@ export const deleteLabel = data => createAPI(`productionInbound/deleteLabel`, 'p
* 获取生产物料清单
* @param {Object} data - 查询参数 {site, buNo, inboundNo}
*/
-export const getMaterialList = data => createAPI(`productionInbound/getMaterialList`, 'post', data)
\ No newline at end of file
+export const getMaterialList = data => createAPI(`productionInbound/getMaterialList`, 'post', data)
+
+/**
+ * 获取入库通知单明细列表(小卡片)
+ * @param {Object} data - 查询参数 {site, buNo, orderNo}
+ */
+export const getInboundNotificationDetails = data => createAPI(`productionInbound/getInboundNotificationDetails`, 'post', data)
\ No newline at end of file
diff --git a/src/views/modules/production/productionInboundStorage.vue b/src/views/modules/production/productionInboundStorage.vue
index 764d278..8a21061 100644
--- a/src/views/modules/production/productionInboundStorage.vue
+++ b/src/views/modules/production/productionInboundStorage.vue
@@ -36,8 +36,14 @@
-
入库单号
-
{{ materialInfo.inboundNo }}
+
+ 入库单号
+ {{ materialInfo.inboundNo }}
+
+
+ 关联单号
+ {{ relatedOrderNo }}
+
@@ -214,6 +220,8 @@ export default {
labelList: [],
inboundNo: '',
partNo: '',
+ relatedOrderNo: '',
+ relatedOrderLineNo: '',
showLocationDialog: false,
locationCode: '',
showMaterialDialog: false,
@@ -248,7 +256,9 @@ export default {
partNo: this.partNo,
warehouseId: getCurrentWarehouse(),
site: localStorage.getItem('site'),
- buNo: this.materialInfo.buNo
+ buNo: this.materialInfo.buNo,
+ relatedOrderNo: this.relatedOrderNo,
+ relatedOrderLineNo: this.relatedOrderLineNo
};
validateLabelWithInbound(params).then(({ data }) => {
if (data && data.code === 0) {
@@ -326,6 +336,8 @@ export default {
buNo: this.materialInfo.buNo,
inboundNo: this.inboundNo,
locationCode: this.locationCode.trim(),
+ relatedOrderNo: this.relatedOrderNo,
+ relatedOrderLineNo: this.relatedOrderLineNo,
labels: this.labelList.map(label => ({
labelCode: label.labelCode,
quantity: label.quantity,
@@ -442,6 +454,10 @@ export default {
// 获取路由参数
this.inboundNo = this.$route.params.inboundNo;
this.buNo = this.$route.params.buNo;
+ this.relatedOrderNo = this.$route.params.relatedOrderNo || '';
+ this.relatedOrderLineNo = this.$route.params.relatedOrderLineNo || '';
+ this.partNo = this.$route.params.partNo || '';
+
if (!this.inboundNo || !this.buNo) {
this.$message.error('参数错误');
this.$router.back();
@@ -629,6 +645,19 @@ export default {
/* 卡片标题 */
.card-title {
margin-bottom: 16px;
+ display: flex;
+ justify-content: space-between;
+ align-items: flex-start;
+ gap: 12px;
+}
+
+.title-left-group {
+ flex: 1;
+}
+
+.title-right-group {
+ flex: 1;
+ text-align: right;
}
.title-label {
@@ -640,13 +669,17 @@ export default {
}
.title-value {
- font-size: 18px;
+ font-size: 16px;
font-weight: bold;
color: #333;
line-height: 1.2;
margin-left: 20px;
}
+.related-value {
+ color: #17B3A3;
+}
+
/* 卡片详情 */
.card-details {
display: flex;
diff --git a/src/views/modules/production/productionQualifiedStorage.vue b/src/views/modules/production/productionQualifiedStorage.vue
index 7f1d3b6..03982c6 100644
--- a/src/views/modules/production/productionQualifiedStorage.vue
+++ b/src/views/modules/production/productionQualifiedStorage.vue
@@ -22,60 +22,158 @@
/>
-
-
+
+
+
+
+
+
+ 入库单号:{{ item.inboundNo }}
+
+
+
+
+
标签张数
+
+ {{ item.labelinCount }}{{ item.totalLabels }}
+
+
+
+
物料总数
+
+ {{ item.totalinLabels }}{{ item.labelCount }}
+
+
+
+
批次号
+
{{ item.batchNo }}
+
+
+
创建日期
+
{{ formatDate(item.inspectionDate) }}
+
+
+
+
+
+
+
+
+
+
+
+
- 入库单号
- {{ item.inboundNo }}
+ 入库单号:{{ selectedInbound.inboundNo }}
+
标签张数
- {{ item.labelinCount }}{{ item.totalLabels }}
+ {{ selectedInbound.labelinCount }}{{ selectedInbound.totalLabels }}
物料总数
- {{ item.totalinLabels }}{{ item.labelCount }}
+ {{ selectedInbound.totalinLabels }}{{ selectedInbound.labelCount }}
批次号
-
{{ item.batchNo }}
+
{{ selectedInbound.batchNo }}
创建日期
-
{{ formatDate(item.inspectionDate) }}
+
{{ formatDate(selectedInbound.inspectionDate) }}
+
-
-
+
+
+
+
+
+
+ 关联单号:
+ {{ detail.relatedOrderNo }}
+
+
+ 需求数量:
+ {{ detail.requiredQty || 0 }}
+
+
+
+
+
+
+ 物料编码:
+ {{ detail.partNo }}
+
+
+ 单位:
+ {{ detail.umName }}
+
+
+
+
+
+ 物料名称:
+ {{ detail.partDesc }}
+
-
-
-
-
加载中...
+
+
+ 订单数量:
+ {{ detail.orderQty || 0 }}
+
+
+
+
+
+
+