From a1f37f9b5be8978fce0cd670f4e455e2fb2c6d9b Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期二, 24 三月 2026 14:54:37 +0800
Subject: [PATCH] 生产工单加上生产订单搜索框
---
src/views/productionManagement/productionReporting/index.vue | 63 ++++++++++++++++++++++++-------
1 files changed, 49 insertions(+), 14 deletions(-)
diff --git a/src/views/productionManagement/productionReporting/index.vue b/src/views/productionManagement/productionReporting/index.vue
index 0904dee..5c019b8 100644
--- a/src/views/productionManagement/productionReporting/index.vue
+++ b/src/views/productionManagement/productionReporting/index.vue
@@ -43,24 +43,13 @@
@selection-change="handleSelectionChange"
:tableLoading="tableLoading"
@pagination="pagination"
+ :rowClassName="rowClassName"
:total="page.total">
<template #productNoSlot="{ row }">
<el-button
- v-if="row.process ==='鍗伴摐' || row.process ==='鍗伴摱'"
type="primary"
link
@click="openDetail(row)"
- >
- {{ row.productNo }}
- </el-button>
- <el-button
- v-else
- type="primary"
- link
- @click="(row) => {
- currentReportRowData = row
- showDetail = true
- }"
>
{{ row.productNo }}
</el-button>
@@ -154,6 +143,18 @@
:isEdit="false"
:row="currentReportRowData"
@refreshData="getList"/>
+ <VoltageSortingForm
+ v-if="voltageSortingFormVisible"
+ v-model:isShow="voltageSortingFormVisible"
+ :isEdit="false"
+ :row="currentReportRowData"
+ @refreshData="getList"/>
+ <GranulationForm
+ v-if="granulationFormVisible"
+ v-model:isShow="granulationFormVisible"
+ :isEdit="false"
+ :row="currentReportRowData"
+ @refreshData="getList"/>
<Detail
v-if="showDetail"
v-model:isShow="showDetail"
@@ -174,7 +175,9 @@
import {userListNoPageByTenantId} from "@/api/system/user.js";
import InputModal from "@/views/productionManagement/productionReporting/Input.vue";
+const VoltageSortingForm = defineAsyncComponent(() => import("@/views/productionManagement/workOrder/components/VoltageSortingForm.vue"));
const CopperPrintingForm = defineAsyncComponent(() => import("@/views/productionManagement/workOrder/components/CopperPrintingForm.vue"));
+const GranulationForm = defineAsyncComponent(() => import("@/views/productionManagement/workOrder/components/GranulationForm.vue"));
const Detail = defineAsyncComponent(() => import("@/views/productionManagement/productionReporting/components/Detail.vue"));
@@ -235,6 +238,16 @@
{
label: "鎶ュ簾鏁伴噺",
prop: "scrapQty",
+ width: 120,
+ },
+ {
+ label: "鍚堟牸鐜�",
+ prop: "actualQualifiedRate",
+ width: 120,
+ },
+ {
+ label: "鏍囧噯鍚堟牸鐜�",
+ prop: "processQualifiedRate",
width: 120,
},
{
@@ -300,6 +313,14 @@
}
handleQuery();
};
+
+const rowClassName = ({row}) => {
+ if (Number(row.actualQualifiedRate) < Number(row.processQualifiedRate)) {
+ return 'danger-row';
+ }
+ return '';
+};
+
const deleteReport = row => {
ElMessageBox.confirm("纭畾鍒犻櫎璇ユ姤宸ュ悧锛�", "鎻愮ず", {
confirmButtonText: "纭畾",
@@ -434,6 +455,8 @@
// 鎵撳紑鎶曞叆妯℃�佹
const isShowInput = ref(false);
const copperPrintingFormVisible = ref(false);
+const voltageSortingFormVisible = ref(false);
+const granulationFormVisible = ref(false);
const showDetail = ref(false);
const isShowingId = ref(0);
const showInput = row => {
@@ -457,11 +480,23 @@
};
const openDetail = row => {
currentReportRowData.value = row;
- copperPrintingFormVisible.value = true;
+ if (row.process ==='鍗伴摐' || row.process ==='鍗伴摱') {
+ copperPrintingFormVisible.value = true;
+ } else if (row.process === '鐢靛帇鍒嗛��') {
+ voltageSortingFormVisible.value = true;
+ } else if (row.process === '閫犵矑') {
+ granulationFormVisible.value = true;
+ } else {
+ showDetail.value = true;
+ }
};
onMounted(() => {
getList();
});
</script>
-<style scoped></style>
+<style scoped>
+:deep(.danger-row td) {
+ color: #e95a66 !important;
+}
+</style>
--
Gitblit v1.9.3