From b665f6f67837fb608e0055dd2ea9ad05c5c5fb34 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期二, 06 一月 2026 11:28:45 +0800
Subject: [PATCH] 增加生产报工-投入产出接口

---
 src/views/productionManagement/productionReporting/Output.vue |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/src/views/productionManagement/productionReporting/Output.vue b/src/views/productionManagement/productionReporting/Output.vue
index b033dc0..0f49a55 100644
--- a/src/views/productionManagement/productionReporting/Output.vue
+++ b/src/views/productionManagement/productionReporting/Output.vue
@@ -24,10 +24,15 @@
 
 <script setup>
 import {ref, computed, onMounted} from "vue";
+import { productionProductOutputListPage } from "@/api/productionManagement/productionProductOutput.js";
 
 const props = defineProps({
   visible: {
     type: Boolean,
+    required: true,
+  },
+  productionProductMainId: {
+    type: Number,
     required: true,
   },
 });
@@ -55,10 +60,10 @@
   },
   {
     label: '浜у搧鍨嬪彿',
-    prop: 'productModelName',
+    prop: 'model',
   },
   {
-    label: '浜у嚭鏁伴噺',
+    label: '鎶曞叆鏁伴噺',
     prop: 'quantity',
   },
 ]
@@ -79,6 +84,16 @@
 };
 
 const fetchData = () => {
+  tableLoading.value = true;
+  const params = { productMainId: props.productionProductMainId, ...page };
+
+  productionProductOutputListPage(params).then(res => {
+    tableLoading.value = false;
+    data.value = res.data.records;
+    page.total = res.data.total;
+  }).catch(err => {
+    tableLoading.value = false;
+  })
 };
 
 defineExpose({

--
Gitblit v1.9.3