From 65f86f41dedbbbb7030e2f37ce3e001bbca4923a Mon Sep 17 00:00:00 2001
From: chengxiangling <291105840@qq.com>
Date: 星期四, 15 五月 2025 13:03:25 +0800
Subject: [PATCH] 查询日历带适用工厂

---
 src/views/mainPlan/sheetMetalRedundantReport/index.vue |   94 ++++++++++++++++-------------------------------
 1 files changed, 32 insertions(+), 62 deletions(-)

diff --git a/src/views/mainPlan/sheetMetalRedundantReport/index.vue b/src/views/mainPlan/sheetMetalRedundantReport/index.vue
index 0585e63..58a692f 100644
--- a/src/views/mainPlan/sheetMetalRedundantReport/index.vue
+++ b/src/views/mainPlan/sheetMetalRedundantReport/index.vue
@@ -6,28 +6,13 @@
       ref="queryRef"
       :inline="true"
       v-show="showSearch"
-      :label-width="locale === 'zh' ? '90px' : '200px'"
+      label-position="left"
     >
-      <el-row type="flex" justify="left">
-        <el-col :span="locale === 'zh' ? 5 : 10">
-          <el-form-item :label="$t('plan.query.itemNumber')" prop="itemNumber">
+      <el-row :gutter="20">
+        <el-col :span="8">
+          <el-form-item :style="{ width: '100%'  }" :label="$t('plan.query.itemNumber')" prop="itemNumber">
             <el-input
-              :style="{ width: locale === 'zh' ? '140px' : '300px' }"
               v-model="queryParams.itemNumber"
-              :placeholder="`${$t('plan.placeholder.requireTraceID')}`"
-              clearable
-              @keyup.enter="handleQuery"
-            />
-          </el-form-item>
-        </el-col>
-        <el-col :span="locale === 'zh' ? 8 : 9">
-          <el-form-item
-            :label="$t('plan.query.workOrderNo')"
-            prop="documentNumber"
-          >
-            <el-input
-              :style="{ width: locale === 'zh' ? '140px' : '210px' }"
-              v-model="queryParams.documentNumber"
               :placeholder="`${$t('common.common.placeholder')}${$t(
                 'plan.query.itemNumber'
               )}`"
@@ -36,7 +21,23 @@
             />
           </el-form-item>
         </el-col>
-        <el-col :span="locale === 'zh' ? 11 : 5" style="text-align: right">
+        <el-col :span="8">
+          <el-form-item
+            :style="{ width: '100%'  }"
+            :label="$t('plan.query.workOrderNo')"
+            prop="documentNumber"
+          >
+            <el-input
+              v-model="queryParams.documentNumber"
+              :placeholder="`${$t('common.common.placeholder')}${$t(
+                'plan.query.workOrderNo'
+              )}`"
+              clearable
+              @keyup.enter="handleQuery"
+            />
+          </el-form-item>
+        </el-col>
+        <el-col :span="8" style="text-align: right">
           <el-form-item class="column-with-margin">
             <el-button type="primary" icon="Search" @click="handleQuery">{{
               $t("common.common.query")
@@ -76,26 +77,15 @@
       @changePageNo="changePageNo"
       @changePageSize="changePageSize"
       @on-checkbox="handleCheckboxChange"
-      class="auto-height-grid"
     >
     </HxlhTable>
   </div>
 </template>
 
-<script setup name="Calendar">
+<script setup name="SheetMetalRedundantReport">
 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 { useI18n } from "vue-i18n"; //瑕佸湪js涓娇鐢ㄥ浗闄呭寲
 const { t, locale } = useI18n();
 const { proxy } = getCurrentInstance();
@@ -103,15 +93,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,
@@ -119,12 +101,8 @@
     itemNumber: null,
   },
 });
-const { queryParams, form, rules } = toRefs(data);
-const typeRadioNumber = ref(1);
+const { queryParams } = toRefs(data);
 const plantList = ref([]);
-const shopList = ref([]);
-const allShopList = ref([]);
-const processList = ref([]);
 const height = ref(document.documentElement.clientHeight - 220 + "px;");
 // 琛ㄦ牸閰嶇疆-鍒楄〃
 const columns = ref([]);
@@ -141,31 +119,29 @@
       {
         title: t("plan.table.workOrderNo"),
         field: "documentNumber",
-        width: 150,
         align: "center",
       },
       {
-        title: t("plan.table.subItemPartNumber"),
+        title: t("plan.table.itemNumber"),
         field: "itemNumber",
-        width: 200,
         align: "center",
       },
       {
         title: t("plan.table.productionQuantity"),
         field: "productionQuantity",
-        width: 200,
+        width: "80",
         align: "center",
       },
       {
         title: t("plan.table.mismatchedProductionQuantity"),
         field: "unmatchedQuantity",
-        width: 200,
+        width: "auto",
         align: "center",
       },
       {
         title: t("plan.table.applicableFactories"),
         field: "plant",
-        width: 200,
+        width: "100",
         align: "center",
         formatter: ({ cellValue, row, column }) => {
           if (cellValue) {
@@ -180,32 +156,32 @@
       {
         title: t("plan.table.productionBase"),
         field: "productionBase",
-        width: 200,
+        width: "100",
         align: "center",
       },
       {
         title: t("plan.table.planStartDay"),
         field: "planStartDay",
-        width: 200,
+        width: "120",
         align: "center",
       },
       {
         title: t("plan.table.planEndDayDate"),
         field: "planEndDay",
-        width: 100,
+        width: "120",
         align: "center",
       },
       {
         title: t("plan.table.workorderCreationTime"),
         field: "orderCreateTime",
-        width: 100,
+        width: "150",
         align: "center",
       },
     ];
   },
   { immediate: true, deep: true }
 );
-/** 鏌ヨ鏃ュ巻绠$悊鍒楄〃 */
+/** 鏌ヨ绠$悊鍒楄〃 */
 function getList() {
   loading.value = true;
   redundantOrderList(queryParams.value).then((response) => {
@@ -216,12 +192,6 @@
      loading.value = false;
   });
 }
-
-// 琛ㄥ崟閲嶇疆
-function reset() {
-  proxy.resetForm("queryRef");
-}
-
 /** 鎼滅储鎸夐挳鎿嶄綔 */
 function handleQuery() {
   queryParams.value.pageNum = 1;

--
Gitblit v1.9.3