From 8bea44fb459b8fcb3e0897924424971441ae4ae9 Mon Sep 17 00:00:00 2001
From: CD配唱片 <CD配唱片>
Date: 星期四, 24 四月 2025 13:35:25 +0800
Subject: [PATCH] 提交钣金计划大表所有

---
 src/views/mainPlan/platePlanList/index.vue |  215 +++++++++++++++++++----------------------------------
 1 files changed, 76 insertions(+), 139 deletions(-)

diff --git a/src/views/mainPlan/platePlanList/index.vue b/src/views/mainPlan/platePlanList/index.vue
index 2a1437f..1986cb3 100644
--- a/src/views/mainPlan/platePlanList/index.vue
+++ b/src/views/mainPlan/platePlanList/index.vue
@@ -1,6 +1,6 @@
 <template>
   <div class="app-container">
-    <el-row :gutter="20">
+    <!-- <el-row :gutter="20">
       <el-col>
         <el-form
           :model="queryParams"
@@ -31,7 +31,7 @@
           </el-row>
         </el-form>
       </el-col>
-    </el-row>
+    </el-row> -->
     <el-row :gutter="10" class="mb8">
       <el-col :span="1.5">
         <el-button
@@ -111,8 +111,7 @@
 </template>
 
 <script setup name="Aps_plate_process_stat">
-import { listPlateStat, updateStat } from "@/api/mainPlan/plateProcessStat";
-import { listApsPlateProcessShopStat } from "@/api/mainPlan/apsPlatePlanList";
+import { listApsPlateProcessShopStat, listApsPlateProcessShopStatUpdate } from "@/api/mainPlan/apsPlatePlanList";
 import HxlhTable from "@/components/HxlhTable/index.vue";
 import { getToken } from "@/utils/auth";
 import { nextTick, onMounted, ref } from "vue";
@@ -132,24 +131,24 @@
 const height = ref(document.documentElement.clientHeight - 270 + "px;");
 const columnsVersion = ref(0);
 const data = reactive({
-  form: {},
-  queryParams: {
-    pageNum: 1,
-    pageSize: 10,
-    workOrderNo: null,
-    processName: null,
-    num: null,
-    routeProcessNumber: null,
-    currentProcessNumber: null,
-    productionQuantity: null,
-    standardTime: null,
-    processTotalTime: null,
-    processPlanEndDay: null,
-    computePlanEndDay: null,
-    designTimes: null,
-    batchNumber: null,
-  },
-  rules: {},
+  // form: {},
+  // queryParams: {
+  //   pageNum: 1,
+  //   pageSize: 10,
+  //   workOrderNo: null,
+  //   processName: null,
+  //   num: null,
+  //   routeProcessNumber: null,
+  //   currentProcessNumber: null,
+  //   productionQuantity: null,
+  //   standardTime: null,
+  //   processTotalTime: null,
+  //   processPlanEndDay: null,
+  //   computePlanEndDay: null,
+  //   designTimes: null,
+  //   batchNumber: null,
+  // },
+  // rules: {},
 });
 const xGrid = ref();
 const { queryParams, form, rules } = toRefs(data);
@@ -232,7 +231,7 @@
 /** 鏌ヨ閽i噾缁熻鍒楄〃 */
 async function getList() {
   loading.value = true;
-  const response = await listApsPlateProcessShopStat(queryParams.value);
+  const response = await listApsPlateProcessShopStat();
   const listValue = response.data;
   const resData = listValue.map((item,index)=>{
     item.deptPlans.map((n, i) => {
@@ -298,72 +297,69 @@
     },
   ]);
   await nextTick();
-  console.log(xGrid.value, "llll");
   columns.value = [...columns.value, ...newArray];              // 寮哄埗缁勪欢閲嶆柊娓叉煋
   
 }
 
-function generateColumnDynamic() {}
-// 鍙栨秷鎸夐挳
-function cancel() {
-  open.value = false;
-  reset();
-}
+// // 鍙栨秷鎸夐挳
+// function cancel() {
+//   open.value = false;
+//   reset();
+// }
 
-// 琛ㄥ崟閲嶇疆
-function reset() {
-  form.value = {
-    id: null,
-    workOrderNo: null,
-    processName: null,
-    num: null,
-    routeProcessNumber: null,
-    currentProcessNumber: null,
-    productionQuantity: null,
-    standardTime: null,
-    processTotalTime: null,
-    processPlanEndDay: null,
-    computePlanEndDay: null,
-    designTimes: null,
-    batchNumber: null,
-    createBy: null,
-    delFlag: null,
-  };
-  proxy.resetForm("aps_plate_process_statRef");
-}
+// // 琛ㄥ崟閲嶇疆
+// function reset() {
+//   form.value = {
+//     id: null,
+//     workOrderNo: null,
+//     processName: null,
+//     num: null,
+//     routeProcessNumber: null,
+//     currentProcessNumber: null,
+//     productionQuantity: null,
+//     standardTime: null,
+//     processTotalTime: null,
+//     processPlanEndDay: null,
+//     computePlanEndDay: null,
+//     designTimes: null,
+//     batchNumber: null,
+//     createBy: null,
+//     delFlag: null,
+//   };
+//   proxy.resetForm("aps_plate_process_statRef");
+// }
 
-/** 鎼滅储鎸夐挳鎿嶄綔 */
-function handleQuery() {
-  queryParams.value.pageNum = 1;
-  getList();
-}
+// /** 鎼滅储鎸夐挳鎿嶄綔 */
+// function handleQuery() {
+//   queryParams.value.pageNum = 1;
+//   getList();
+// }
 
 /** 閲嶇疆鎸夐挳鎿嶄綔 */
-function resetQuery() {
-  queryParams.value.workOrderNo = "";
-  proxy.resetForm("queryRef");
-  handleQuery();
-}
+// function resetQuery() {
+//   queryParams.value.workOrderNo = "";
+//   proxy.resetForm("queryRef");
+//   handleQuery();
+// }
 
 // 澶氶�夋閫変腑鏁版嵁
-function handleSelectionChange(selection) {
-  ids.value = selection.map((item) => item.id);
-  single.value = selection.length != 1;
-  multiple.value = !selection.length;
-}
+// function handleSelectionChange(selection) {
+//   ids.value = selection.map((item) => item.id);
+//   single.value = selection.length != 1;
+//   multiple.value = !selection.length;
+// }
 
-/** 鏂板鎸夐挳鎿嶄綔 */
-function handleAdd() {
-  reset();
-  open.value = true;
-  title.value = "娣诲姞閽i噾缁熻";
-}
+// /** 鏂板鎸夐挳鎿嶄綔 */
+// function handleAdd() {
+//   reset();
+//   open.value = true;
+//   title.value = "娣诲姞閽i噾缁熻";
+// }
 
 /** 淇敼鎸夐挳鎿嶄綔 */
 function handleUpdate(row) {
-  reset();
-  updateStat().then((response) => {
-    form.value = response.data;
+  listApsPlateProcessShopStatUpdate().then((response) => {
+    // form.value = response.data;
     ElMessage({
       message: "鏁版嵁鏇存柊鎴愬姛",
       type: "success",
@@ -371,76 +367,17 @@
     getList();
   });
 }
-
-/** 鎻愪氦鎸夐挳 */
-function submitForm() {
-  proxy.$refs["aps_plate_process_statRef"].validate((valid) => {
-    if (valid) {
-      if (form.value.id != null) {
-        updateAps_plate_process_stat(form.value).then((response) => {
-          proxy.$modal.msgSuccess("淇敼鎴愬姛");
-          open.value = false;
-          getList();
-        });
-      } else {
-        addAps_plate_process_stat(form.value).then((response) => {
-          proxy.$modal.msgSuccess("鏂板鎴愬姛");
-          open.value = false;
-          getList();
-        });
-      }
-    }
-  });
-}
-
-/** 鍒犻櫎鎸夐挳鎿嶄綔 */
-function handleDelete(row) {
-  const _ids = row.id || ids.value;
-  proxy.$modal
-    .confirm('鏄惁纭鍒犻櫎閽i噾缁熻缂栧彿涓�"' + _ids + '"鐨勬暟鎹」锛�')
-    .then(function () {
-      return delAps_plate_process_stat(_ids);
-    })
-    .then(() => {
-      getList();
-      proxy.$modal.msgSuccess("鍒犻櫎鎴愬姛");
-    })
-    .catch(() => {});
-}
-
 /** 瀵煎嚭鎸夐挳鎿嶄綔 */
 function handleExport() {
   proxy.download(
-    "/aps/plateProcessStat/export",
-    {
-      ...queryParams.value,
-    },
+    "/aps/plateProcessShopStat/export",
+    // {
+    //   ...queryParams.value,
+    // },
     `aps_plate_process_stat_${new Date().getTime()}.xlsx`
   );
 }
-const headerCellClassName = ({ column }) => {
-  if (column.field === "name") {
-    return "col-blue";
-  }
-  return null;
-};
-const rowClassName = ({ rowIndex }) => {
-  if ([2, 3, 5].includes(rowIndex)) {
-    return "row-green";
-  }
-  return null;
-};
-const cellClassName = ({ row, column }) => {
-  if (
-    column.field === "processPlanStartDay" ||
-    column.field === "processPlanEndDay"
-  ) {
-    if (row.warning) {
-      return "col-orange";
-    }
-  }
-  return null;
-};
+
 onMounted(async () => {
   getList();
 });

--
Gitblit v1.9.3