From eedfb8fa8d1eeb83554081f5785f832f45a64f3a Mon Sep 17 00:00:00 2001
From: chengxiangling <291105840@qq.com>
Date: 星期日, 11 五月 2025 12:29:23 +0800
Subject: [PATCH] 提交页面script加上name命名

---
 src/views/mainPlan/abnormalPartNumberReport/index.vue |  108 ++++++++++++++---------------------------------------
 1 files changed, 29 insertions(+), 79 deletions(-)

diff --git a/src/views/mainPlan/abnormalPartNumberReport/index.vue b/src/views/mainPlan/abnormalPartNumberReport/index.vue
index 0585e63..a6fcf4a 100644
--- a/src/views/mainPlan/abnormalPartNumberReport/index.vue
+++ b/src/views/mainPlan/abnormalPartNumberReport/index.vue
@@ -9,34 +9,34 @@
       :label-width="locale === 'zh' ? '90px' : '200px'"
     >
       <el-row type="flex" justify="left">
-        <el-col :span="locale === 'zh' ? 5 : 10">
-          <el-form-item :label="$t('plan.query.itemNumber')" prop="itemNumber">
+        <el-col :span="locale === 'zh' ? 5 : 8">
+          <el-form-item :label="$t('plan.query.itemNumber')" prop="itemNum">
             <el-input
-              :style="{ width: locale === 'zh' ? '140px' : '300px' }"
-              v-model="queryParams.itemNumber"
-              :placeholder="`${$t('plan.placeholder.requireTraceID')}`"
+              :style="{ width: locale === 'zh' ? '140px' : '240px' }"
+              v-model="queryParams.itemNum"
+              :placeholder="`${$t('common.common.placeholder')}${$t('plan.query.itemNumber')}`"
               clearable
               @keyup.enter="handleQuery"
             />
           </el-form-item>
         </el-col>
-        <el-col :span="locale === 'zh' ? 8 : 9">
+        <el-col :span="locale === 'zh' ? 8 :10">
           <el-form-item
             :label="$t('plan.query.workOrderNo')"
-            prop="documentNumber"
+            prop="docNum"
           >
             <el-input
-              :style="{ width: locale === 'zh' ? '140px' : '210px' }"
-              v-model="queryParams.documentNumber"
+              :style="{ width: locale === 'zh' ? '140px' : '260px' }"
+              v-model="queryParams.docNum"
               :placeholder="`${$t('common.common.placeholder')}${$t(
-                'plan.query.itemNumber'
+                'plan.query.workOrderNo'
               )}`"
               clearable
               @keyup.enter="handleQuery"
             />
           </el-form-item>
         </el-col>
-        <el-col :span="locale === 'zh' ? 11 : 5" style="text-align: right">
+        <el-col :span="locale === 'zh' ? 11 : 6" style="text-align: right">
           <el-form-item class="column-with-margin">
             <el-button type="primary" icon="Search" @click="handleQuery">{{
               $t("common.common.query")
@@ -56,7 +56,7 @@
           plain
           icon="Download"
           @click="handleExport"
-          v-hasPermi="['Aps:apsPlatePlan:redundantOrderListExport']"
+          v-hasPermi="['Aps:ApsPlateStandardRequireError:export']"
           >{{ $t("common.common.export") }}</el-button
         >
       </el-col>
@@ -82,20 +82,11 @@
   </div>
 </template>
 
-<script setup name="Calendar">
+<script setup name="AbnormalPartNumberReport">
 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,28 +94,16 @@
 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,
-    documentNumber: null,
-    itemNumber: null,
+    docNum: null,
+    itemNum: null,
   },
 });
 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,32 +119,17 @@
     columns.value = [
       {
         title: t("plan.table.workOrderNo"),
-        field: "documentNumber",
-        width: 150,
+        field: "docNum",
         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",
-        width: 200,
+        title: t("plan.table.itemNumber"),
+        field: "itemNum",
         align: "center",
       },
       {
         title: t("plan.table.applicableFactories"),
-        field: "plant",
-        width: 200,
+        field: "orgCode",
         align: "center",
         formatter: ({ cellValue, row, column }) => {
           if (cellValue) {
@@ -178,37 +142,23 @@
         },
       },
       {
-        title: t("plan.table.productionBase"),
-        field: "productionBase",
-        width: 200,
+        title: t("plan.table.abnormalCause"),
+        field: "message",
         align: "center",
       },
       {
-        title: t("plan.table.planStartDay"),
-        field: "planStartDay",
-        width: 200,
+        title: t("plan.table.creationTime"),
+        field: "createTime",
         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 +188,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