From 9c1557bfab4f8a4c17147df771f14109d0a3f07f Mon Sep 17 00:00:00 2001
From: 于杰 <1210123631@qq.com>
Date: 星期五, 31 十月 2025 13:58:49 +0800
Subject: [PATCH] 提交 保存调整提交按钮未完成联调暂时先隐藏

---
 north-glass-erp/northglass-erp/src/views/pp/glassOptimize/OptimizationRectPrint.vue |   68 +---------------------------------
 1 files changed, 2 insertions(+), 66 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/views/pp/glassOptimize/OptimizationRectPrint.vue b/north-glass-erp/northglass-erp/src/views/pp/glassOptimize/OptimizationRectPrint.vue
index 498b4cc..273f80a 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/glassOptimize/OptimizationRectPrint.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/glassOptimize/OptimizationRectPrint.vue
@@ -31,13 +31,13 @@
       <!-- PDF鍔犺浇瀹屾垚鏃舵樉绀篜DF -->
       <iframe
           v-else
-          :src="pdfUrl"          style="width: 100%; height: 800px; border: 1px solid #ddd;"
+          :src="pdfUrl"          style="width: 100%; height: 780px; border: 1px solid #ddd;"
           title="PDF棰勮">
       </iframe>
     </div>
 
     <div v-else style="margin-top: 20px;">
-      <div style="display: flex; justify-content: center; align-items: center; height: 800px; border: 1px solid #ddd; background-color: white;">
+      <div style="display: flex; justify-content: center; align-items: center; height: 780px; border: 1px solid #ddd; background-color: white;">
         <div style="text-align: center; color: #999;">
           <p style="font-size: 20px; margin-bottom: 10px;">浼樺寲鎶ュ憡棰勮鍖�</p>
           <p style="font-size: 14px;">鐐瑰嚮涓婃柟"棰勮"鎸夐挳鐢熸垚骞舵煡鐪嬩紭鍖栨姤鍛�</p>
@@ -469,70 +469,6 @@
     }
   }
 };
-
-// const autoPreviewReport = async () => {
-//   try {
-//     await generateReport();
-//     if (!filePath.value) {
-//       // 濡傛灉娌℃湁鏂囦欢璺緞锛屼笉鎵ц棰勮
-//       return;
-//     }
-//     const encodedFilePath = encodeURIComponent(filePath.value);
-//
-//     const response = await request.get('/glassOptimize/reports/pdf', {
-//       params: { filePath: encodedFilePath },
-//       responseType: 'blob',
-//       headers: {
-//         'Accept': 'application/pdf'
-//       }
-//     });
-//
-//     // 妫�鏌ュ搷搴旀暟鎹槸鍚﹀瓨鍦ㄤ笖鏈夋晥
-//     if (!response) {
-//       ElMessage.error('鏈兘鑾峰彇鍒癙DF鏁版嵁');
-//       return;
-//     }
-//
-//     const blob = new Blob([response], { type: 'application/pdf' });
-//
-//     // 妫�鏌� blob 鏄惁鏈夋晥
-//     if (blob.size === 0) {
-//       ElMessage.error('鎺ユ敹鍒扮┖鐨凱DF鏂囦欢');
-//       return;
-//     }
-//
-//     // 鍒涘缓PDF URL骞惰祴鍊肩粰 pdfUrl 鐢ㄤ簬鐣岄潰鏄剧ず
-//     const url = URL.createObjectURL(blob);
-//     pdfUrl.value = url;
-//
-//   } catch (error) {
-//     console.error('鑷姩棰勮娴佺▼寮傚父:', error);
-//   }
-// };
-//
-// onMounted(() => {
-//   // 浼樺厛浣跨敤娉ㄥ叆鐨� projectNo锛屽叾娆′娇鐢� props锛屾渶鍚庝娇鐢� localStorage
-//   if (injectedProjectNo) {
-//     processId.value = injectedProjectNo.value || injectedProjectNo;
-//   } else if (props.project) {
-//     processId.value = props.project.projectNumber || '';
-//     state.value = props.state;
-//   } else if (savedProjectNo) {
-//     processId.value = savedProjectNo;
-//   }
-//
-//   if (processId.value) {
-//     selectLayout();
-//     selectReportData();
-//     selectMaterialData();
-//     selectProductData();
-//
-//     // 鏁版嵁鍔犺浇瀹屾垚鍚庤嚜鍔ㄩ瑙�
-//     setTimeout(() => {
-//       autoPreviewReport();
-//     }, 1000); // 寤惰繜1绉掔‘淇濇墍鏈夋暟鎹姞杞藉畬鎴�
-//   }
-// });
 
 const config = reactive({
   columnTypes: '涓ゅ垪',

--
Gitblit v1.8.0