From 2d490943e72a4668413b5fe1e091bfaa15398f4e Mon Sep 17 00:00:00 2001
From: CD配唱片 <CD配唱片>
Date: 星期四, 08 五月 2025 14:17:46 +0800
Subject: [PATCH] 提交钣金异常料号报表静态页及联调,工艺路线下拉加载表格加入节流优化避免下拉加载1s之内多次调用接口问题

---
 src/views/mainPlan/abnormalPartNumberReport/index.vue |   73 +++++++-----------------------------
 1 files changed, 14 insertions(+), 59 deletions(-)

diff --git a/src/views/mainPlan/abnormalPartNumberReport/index.vue b/src/views/mainPlan/abnormalPartNumberReport/index.vue
index 0585e63..b8ea020 100644
--- a/src/views/mainPlan/abnormalPartNumberReport/index.vue
+++ b/src/views/mainPlan/abnormalPartNumberReport/index.vue
@@ -84,18 +84,9 @@
 
 <script setup name="Calendar">
 import HxlhTable from "@/components/HxlhTable";
-import {
-  listCalendar,
-  getCalendar,
-  delCalendar,
-  addCalendar,
-  updateCalendar,
-} from "@/api/basicData/calendar";
 import { redundantOrderList } from "@/api/basicData/sheetMetalConfig/sheetMetalConfig";
-import axios from "axios";
 import { listAll_plant } from "@/api/basicData/plant";
-import { listAll_shop, listAps_shop } from "@/api/basicData/shop";
-import { selectProcessNameList } from "@/api/basicData/processRoute.js";
+import { plateStandardRequireErrorList } from "@/api/basicData/sheetMetalConfig/sheetMetalConfig.js";
 import { useI18n } from "vue-i18n"; //瑕佸湪js涓娇鐢ㄥ浗闄呭寲
 const { t, locale } = useI18n();
 const { proxy } = getCurrentInstance();
@@ -103,15 +94,7 @@
 const orderList = ref([]);
 const loading = ref(true);
 const showSearch = ref(true);
-const ids = ref([]);
-const single = ref(true);
-const multiple = ref(true);
-const total = ref(0);
-const title = ref("");
 const data = reactive({
-  form: {
-    type: "1",
-  },
   queryParams: {
     pageNum: 1,
     pageSize: 10,
@@ -120,11 +103,7 @@
   },
 });
 const { queryParams, form, rules } = toRefs(data);
-const typeRadioNumber = ref(1);
 const plantList = ref([]);
-const shopList = ref([]);
-const allShopList = ref([]);
-const processList = ref([]);
 const height = ref(document.documentElement.clientHeight - 220 + "px;");
 // 琛ㄦ牸閰嶇疆-鍒楄〃
 const columns = ref([]);
@@ -140,31 +119,19 @@
     columns.value = [
       {
         title: t("plan.table.workOrderNo"),
-        field: "documentNumber",
+        field: "docNum",
         width: 150,
         align: "center",
       },
       {
-        title: t("plan.table.subItemPartNumber"),
-        field: "itemNumber",
-        width: 200,
-        align: "center",
-      },
-      {
-        title: t("plan.table.productionQuantity"),
-        field: "productionQuantity",
-        width: 200,
-        align: "center",
-      },
-      {
-        title: t("plan.table.mismatchedProductionQuantity"),
-        field: "unmatchedQuantity",
+        title: t("plan.table.itemNumber"),
+        field: "itemNum",
         width: 200,
         align: "center",
       },
       {
         title: t("plan.table.applicableFactories"),
-        field: "plant",
+        field: "orgCode",
         width: 200,
         align: "center",
         formatter: ({ cellValue, row, column }) => {
@@ -178,37 +145,25 @@
         },
       },
       {
-        title: t("plan.table.productionBase"),
-        field: "productionBase",
+        title: t("plan.table.abnormalCause"),
+        field: "message",
         width: 200,
         align: "center",
       },
       {
-        title: t("plan.table.planStartDay"),
-        field: "planStartDay",
+        title: t("plan.table.creationTime"),
+        field: "createTime",
         width: 200,
         align: "center",
-      },
-      {
-        title: t("plan.table.planEndDayDate"),
-        field: "planEndDay",
-        width: 100,
-        align: "center",
-      },
-      {
-        title: t("plan.table.workorderCreationTime"),
-        field: "orderCreateTime",
-        width: 100,
-        align: "center",
-      },
+      }
     ];
   },
   { immediate: true, deep: true }
 );
-/** 鏌ヨ鏃ュ巻绠$悊鍒楄〃 */
+/** 鏌ヨ鏂欏彿寮傚父宸ュ崟鍒楄〃 */
 function getList() {
   loading.value = true;
-  redundantOrderList(queryParams.value).then((response) => {
+  plateStandardRequireErrorList(queryParams.value).then((response) => {
     orderList.value = response.rows;
     page.value.total = response.total;
     loading.value = false;
@@ -238,11 +193,11 @@
 /** 瀵煎嚭鎸夐挳鎿嶄綔 */
 function handleExport() {
   proxy.download(
-    "aps/apsPlatePlan/redundantOrderListExport",
+    "aps/ApsPlateStandardRequireError/export",
     {
       ...queryParams.value,
     },
-    `redundantOrderList_${new Date().getTime()}.xlsx`
+    `abnormalPartNumberReport_${new Date().getTime()}.xlsx`
   );
 }
 function changePageNo(currentPage) {

--
Gitblit v1.9.3