From 4079d1c5a3efb6b31879d9f80dd067cc01b11e91 Mon Sep 17 00:00:00 2001
From: CD配唱片 <CD配唱片>
Date: 星期三, 07 五月 2025 11:28:02 +0800
Subject: [PATCH] 对接bom静态页及联调接口

---
 src/views/mainPlan/sheetMetalOrderManage/index.vue |  164 ++++++++++++++++++++++++++++++++++--------------------
 1 files changed, 103 insertions(+), 61 deletions(-)

diff --git a/src/views/mainPlan/sheetMetalOrderManage/index.vue b/src/views/mainPlan/sheetMetalOrderManage/index.vue
index 544f05e..e989511 100644
--- a/src/views/mainPlan/sheetMetalOrderManage/index.vue
+++ b/src/views/mainPlan/sheetMetalOrderManage/index.vue
@@ -8,80 +8,85 @@
       v-show="showSearch"
       label-width="110px"
     >
-        <el-form-item label="宸ュ崟鍙�" prop="description">
-            <el-input
-              style="width: 140px"
-              v-model="queryParams.description"
-              placeholder="璇疯緭鍏ラ渶姹傝拷婧疘D"
-              clearable
-              @keyup.enter="handleQuery"
-            />
-          </el-form-item>
+      <el-form-item label="宸ュ崟鍙�" prop="description">
+        <el-input
+          style="width: 140px"
+          v-model="queryParams.description"
+          placeholder="璇疯緭鍏ラ渶姹傝拷婧疘D"
+          clearable
+          @keyup.enter="handleQuery"
+        />
+      </el-form-item>
       <!-- <el-row type="flex" justify="left">
         <el-col :span="5"> -->
-          <el-form-item label="闇�姹傝拷婧疘D" prop="description">
-            <el-input
-              style="width: 140px"
-              v-model="queryParams.description"
-              placeholder="璇疯緭鍏ラ渶姹傝拷婧疘D"
-              clearable
-              @keyup.enter="handleQuery"
-            />
-          </el-form-item>
-        <!-- </el-col>
+      <el-form-item label="闇�姹傝拷婧疘D" prop="description">
+        <el-input
+          style="width: 140px"
+          v-model="queryParams.description"
+          placeholder="璇疯緭鍏ラ渶姹傝拷婧疘D"
+          clearable
+          @keyup.enter="handleQuery"
+        />
+      </el-form-item>
+      <!-- </el-col>
         <el-col :span="5"> -->
-          <el-form-item label="鏂欏彿" prop="description">
-            <el-input
-              style="width: 140px"
-              v-model="queryParams.description"
-              placeholder="璇疯緭鍏ユ枡鍙�"
-              clearable
-              @keyup.enter="handleQuery"
-            />
-          </el-form-item>
-          <el-form-item label="寤惰繜椋庨櫓鏍囪瘑" prop="description">
-            <el-input
-              style="width: 140px"
-              v-model="queryParams.description"
-              placeholder="璇疯緭鍏ユ枡鍙�"
-              clearable
-              @keyup.enter="handleQuery"
-            />
-          </el-form-item>
-        <!-- </el-col>
+      <el-form-item label="鏂欏彿" prop="description">
+        <el-input
+          style="width: 140px"
+          v-model="queryParams.description"
+          placeholder="璇疯緭鍏ユ枡鍙�"
+          clearable
+          @keyup.enter="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="寤惰繜椋庨櫓鏍囪瘑" prop="description">
+        <el-input
+          style="width: 140px"
+          v-model="queryParams.description"
+          placeholder="璇疯緭鍏ユ枡鍙�"
+          clearable
+          @keyup.enter="handleQuery"
+        />
+      </el-form-item>
+      <!-- </el-col>
         <el-col :span="14" style="text-align: right"> -->
-          <el-form-item class="column-with-margin">
-            <el-button type="primary" icon="Search" @click="handleQuery"
-              >鏌ヨ</el-button
-            >
-            <el-button icon="Refresh" @click="resetQuery">閲嶇疆</el-button>
-          </el-form-item>
-        <!-- </el-col>
+      <el-form-item class="column-with-margin">
+        <el-button type="primary" icon="Search" @click="handleQuery"
+          >鏌ヨ</el-button
+        >
+        <el-button icon="Refresh" @click="resetQuery">閲嶇疆</el-button>
+      </el-form-item>
+      <!-- </el-col>
       </el-row> -->
     </el-form>
 
     <el-row :gutter="10" class="mb8">
       <el-col :span="1.5">
         <el-button
-            type="primary"
-            plain
-            icon="Plus"
-            :disabled="single"
-            @click="handleUpdate"
-            v-hasPermi="['apsPlatePlan:edit']"
-        >鎵归噺鏇存柊宸ュ崟璁″垝鏃ユ湡</el-button>
+          type="primary"
+          plain
+          icon="Plus"
+          :disabled="single"
+          @click="handleUpdate"
+          v-hasPermi="['apsPlatePlan:edit']"
+          >鎵归噺鏇存柊宸ュ崟璁″垝鏃ユ湡</el-button
+        >
       </el-col>
       <el-col :span="1.5">
         <el-button
-            type="success"
-            plain
-            icon="Edit"
-            :disabled="single"
-            @click="handleUpdate"
-            v-hasPermi="['apsPlatePlan:edit']"
-        >鐢熸垚閽i噾璁″垝宸ュ崟</el-button>
+          type="success"
+          plain
+          icon="Edit"
+          :disabled="single"
+          @click="handleUpdate"
+          v-hasPermi="['apsPlatePlan:edit']"
+          >鐢熸垚閽i噾璁″垝宸ュ崟</el-button
+        >
       </el-col>
-      <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
+      <right-toolbar
+        v-model:showSearch="showSearch"
+        @queryTable="getList"
+      ></right-toolbar>
     </el-row>
     <HxlhTable
       style="width: 100%"
@@ -96,7 +101,30 @@
       @on-checkbox="handleCheckboxChange"
       class="auto-height-grid"
     >
+      <template #buttons="{ row }">
+        <el-button
+          type="primary"
+          link
+          @click="handleCheckView(row)"
+          v-hasPermi="['aps:calendar:update']"
+          >鏌ョ湅闇�姹�</el-button
+        >
+      </template>
     </HxlhTable>
+    <el-dialog :title="title" v-model="openDialog" width="900px" append-to-body>
+      <HxlhTable
+        style="width: 100%"
+        :columns="subGridOptions"
+        :data="subList"
+        :loading="loading"
+        :height="heightSub"
+        @on-checkbox="handleCheckboxChange"
+        :page="page"
+        @changePageNo="changePageNo"
+        @changePageSize="changePageSize"
+      >
+      </HxlhTable>
+    </el-dialog>
   </div>
 </template>
 
@@ -114,6 +142,8 @@
 import { listAll_shop, listAps_shop } from "@/api/basicData/shop";
 import { selectProcessNameList } from "@/api/basicData/processRoute.js";
 const { proxy } = getCurrentInstance();
+const openDialog = ref(false);
+const subGridOptions = ref([]);
 const tableRef = ref();
 const calendarList = ref([]);
 const loading = ref(true);
@@ -231,6 +261,13 @@
     width: 100,
     align: "center",
   },
+  {
+    title: "鎿嶄綔",
+    width: 100,
+    fixed: "right",
+    slots: { default: "buttons" },
+    align: "center",
+  },
 ]);
 // 鍒嗛〉灞炴��
 const page = ref({
@@ -238,7 +275,12 @@
   current: 1,
   size: 10,
 });
-
+function handleCheckView(row) {
+  openDialog.value = true;
+  // listProcessRoute({ workOrderNo: row.documentNumber }).then((data) => {
+  //   subList.value = data.rows;
+  // });
+}
 /** 鏌ヨ鏃ュ巻绠$悊鍒楄〃 */
 function getList() {
   loading.value = true;

--
Gitblit v1.9.3