From b9c0cee25748ea2d5621a8ca56ceb855a9ce3700 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期五, 17 四月 2026 16:08:01 +0800
Subject: [PATCH] fix: 修改生产模块
---
src/views/productionManagement/processRoute/processRouteItem/index.vue | 27 +++++++++++++++++++--------
1 files changed, 19 insertions(+), 8 deletions(-)
diff --git a/src/views/productionManagement/processRoute/processRouteItem/index.vue b/src/views/productionManagement/processRoute/processRouteItem/index.vue
index 6169e9d..b673a81 100644
--- a/src/views/productionManagement/processRoute/processRouteItem/index.vue
+++ b/src/views/productionManagement/processRoute/processRouteItem/index.vue
@@ -47,7 +47,13 @@
</div>
</div>
</el-card>
-
+ <div class="section-title" style="margin-bottom: 10px;">浜у搧缁撴瀯</div>
+ <ProductStructureDetail
+ class="product-structure-panel"
+ style="margin-bottom: 20px;"
+ embedded
+ :bom-id="route.query.bomId"
+ />
<!-- 琛ㄦ牸瑙嗗浘 -->
<div v-if="viewMode === 'table'" class="section-header">
<div class="section-title">宸ヨ壓璺嚎椤圭洰鍒楄〃</div>
@@ -87,14 +93,14 @@
{{scope.row.isQuality ? "鏄�" : "鍚�"}}
</template>
</el-table-column>
- <el-table-column label="鏄惁鍏ュ簱" prop="isInbound" width="100">
+ <el-table-column label="鏄惁鍏ュ簱" prop="inbound" width="100">
<template #default="scope">
- {{ scope.row.isInbound ? "鏄�" : "鍚�" }}
+ {{ scope.row.inbound ? "鏄�" : "鍚�" }}
</template>
</el-table-column>
- <el-table-column label="鏄惁鎶ュ伐" prop="isReportWork" width="100">
+ <el-table-column label="鏄惁鎶ュ伐" prop="reportWork" width="100">
<template #default="scope">
- {{ scope.row.isReportWork ? "鏄�" : "鍚�" }}
+ {{ scope.row.reportWork ? "鏄�" : "鍚�" }}
</template>
</el-table-column>
<el-table-column label="鎿嶄綔" align="center" fixed="right" width="150">
@@ -147,8 +153,8 @@
</div>
<el-tag type="primary" class="product-tag" v-if="item.isQuality">璐ㄦ</el-tag>
<div class="product-flags">
- <span>鍏ュ簱锛歿{ item.isInbound ? "鏄�" : "鍚�" }}</span>
- <span>鎶ュ伐锛歿{ item.isReportWork ? "鏄�" : "鍚�" }}</span>
+ <span>鍏ュ簱锛歿{ item.inbound ? "鏄�" : "鍚�" }}</span>
+ <span>鎶ュ伐锛歿{ item.reportWork ? "鏄�" : "鍚�" }}</span>
</div>
</div>
<div v-else class="product-info empty">鏆傛棤浜у搧淇℃伅</div>
@@ -231,7 +237,7 @@
</template>
<script setup>
-import { ref, computed, getCurrentInstance, onMounted, onUnmounted, nextTick } from "vue";
+import { ref, computed, getCurrentInstance, onMounted, onUnmounted, nextTick, defineAsyncComponent } from "vue";
import ProductSelectDialog from "@/views/basicData/product/ProductSelectDialog.vue";
import { findProcessRouteItemList, addOrUpdateProcessRouteItem, sortProcessRouteItem, batchDeleteProcessRouteItem } from "@/api/productionManagement/processRouteItem.js";
import { findProductProcessRouteItemList, deleteRouteItem, addRouteItem, addOrUpdateProductProcessRouteItem, sortRouteItem } from "@/api/productionManagement/productProcessRoute.js";
@@ -242,6 +248,7 @@
const route = useRoute()
const { proxy } = getCurrentInstance() || {};
+const ProductStructureDetail = defineAsyncComponent(() => import("@/views/productionManagement/productStructure/Detail/index.vue"));
const routeId = computed(() => route.query.id);
const orderId = computed(() => route.query.orderId);
@@ -841,6 +848,10 @@
align-items: center;
}
+.product-structure-panel {
+ margin: 12px 0 20px;
+}
+
/* 宸ヨ壓璺嚎淇℃伅鍗$墖鏍峰紡 */
.route-info-card {
margin-bottom: 20px;
--
Gitblit v1.9.3