From a1361a1e9e2999b864859a33aa1d4dc830d86818 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期五, 16 一月 2026 15:13:32 +0800
Subject: [PATCH] fix: 生产工单、生产入库调整

---
 src/views/productionManagement/productionReporting/index.vue |  109 ++++++++++++++----------------------------------------
 1 files changed, 29 insertions(+), 80 deletions(-)

diff --git a/src/views/productionManagement/productionReporting/index.vue b/src/views/productionManagement/productionReporting/index.vue
index b34b14e..f4137af 100644
--- a/src/views/productionManagement/productionReporting/index.vue
+++ b/src/views/productionManagement/productionReporting/index.vue
@@ -115,7 +115,7 @@
               </template>
             </el-table-column>
             <el-table-column label="鎿嶄綔"
-                             width="60">
+                             >
               <template #default="scope">
                 <el-button link
                            type="primary"
@@ -139,9 +139,6 @@
     <input-modal v-if="isShowInput"
                  v-model:visible="isShowInput"
                  :production-product-main-id="isShowingId" />
-    <output-modal v-if="isShowOutput"
-                  v-model:visible="isShowOutput"
-                  :production-product-main-id="isShowingId" />
   </div>
 </template>
 
@@ -157,7 +154,6 @@
   import { productionProductMainListPage } from "@/api/productionManagement/productionProductMain.js";
   import { userListNoPageByTenantId } from "@/api/system/user.js";
   import InputModal from "@/views/productionManagement/productionReporting/Input.vue";
-  import OutputModal from "@/views/productionManagement/productionReporting/Output.vue";
 
   const data = reactive({
     searchForm: {
@@ -187,92 +183,52 @@
       width: 120,
     },
     {
-      label: "鎶ュ伐鐘舵��",
-      prop: "status",
-      dataType: "tag",
-      formatData: params => {
-        if (params == 3) {
-          return "宸叉姤宸�";
-        } else if (params == 1) {
-          return "寰呯敓浜�";
-        } else {
-          return "鐢熶骇涓�";
-        }
-      },
-      formatType: params => {
-        if (params == 3) {
-          return "success";
-        } else if (params == 1) {
-          return "primary";
-        } else {
-          return "warning";
-        }
-      },
+      label: "閿�鍞悎鍚屽彿",
+      prop: "salesContractNo",
+      width: 120,
     },
     {
-      label: "宸ュ崟鐘舵��",
-      prop: "workOrderStatus",
-      dataType: "tag",
-      formatData: params => {
-        switch (params) {
-          case "1":
-            return "寰呯‘璁�";
-          case "2":
-            return "寰呯敓浜�";
-          case "3":
-            return "鐢熶骇涓�";
-          case "4":
-            return "宸茬敓浜�";
-          default:
-            return "";
-        }
-      },
-      formatType: params => {
-        switch (params) {
-          case "1":
-            return "primary";
-          case "2":
-            return "info";
-          case "3":
-            return "warning";
-          case "4":
-            return "success";
-          default:
-            return "";
-        }
-      },
+      label: "浜у搧鍚嶇О",
+      prop: "productName",
+      width: 120,
     },
     {
-      label: "鐢熶骇鏃堕棿",
+      label: "浜у搧瑙勬牸鍨嬪彿",
+      prop: "productModelName",
+      width: 120,
+    },
+    {
+      label: "浜у嚭鏁伴噺",
+      prop: "quantity",
+      width: 120,
+    },
+    // {
+    //   label: "鎶ュ簾鏁伴噺",
+    //   prop: "scrapQuantity",
+    //   width: 120,
+    // },
+    {
+      label: "鍗曚綅",
+      prop: "unit",
+      width: 120,
+    },
+    
+    {
+      label: "鍒涘缓鏃堕棿",
       prop: "createTime",
       width: 120,
-      formatData: params => {
-        const date = new Date(params);
-        return `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(
-          2,
-          "0"
-        )}-${String(date.getDate()).padStart(2, "0")}`;
-      },
     },
     {
       dataType: "action",
       label: "鎿嶄綔",
       align: "center",
       fixed: "right",
-      width: 230,
       operation: [
         {
           name: "鏌ョ湅鎶曞叆",
           type: "text",
           clickFun: row => {
             showInput(row);
-          },
-        },
-        {
-          name: "鏌ョ湅浜у嚭",
-          type: "text",
-          clickFun: row => {
-            showOutput(row);
           },
         },
         {
@@ -449,13 +405,6 @@
   const isShowingId = ref(0);
   const showInput = row => {
     isShowInput.value = true;
-    isShowingId.value = row.id;
-  };
-
-  // 鎵撳紑浜у嚭妯℃�佹
-  const isShowOutput = ref(false);
-  const showOutput = row => {
-    isShowOutput.value = true;
     isShowingId.value = row.id;
   };
 

--
Gitblit v1.9.3