From 79edcd87697f5cce97e461443fac1e4e655f6dae Mon Sep 17 00:00:00 2001
From: zs <zhousong@weben-smart.com>
Date: 周一, 19 5月 2025 16:53:16 +0800
Subject: [PATCH] Merge branch 'master' of http://222.71.245.114:9086/r/HIA24016N_PipeLineDemo

---
 PipeLineLems/pipelinelems_web/src/widgets/PipeAccessoryAssembly/Views/Pages/PipeAccessoryAssembly/PipeAccessoryAssembly.tsx |   39 +++++++++++++++++++++++----------------
 1 files changed, 23 insertions(+), 16 deletions(-)

diff --git a/PipeLineLems/pipelinelems_web/src/widgets/PipeAccessoryAssembly/Views/Pages/PipeAccessoryAssembly/PipeAccessoryAssembly.tsx b/PipeLineLems/pipelinelems_web/src/widgets/PipeAccessoryAssembly/Views/Pages/PipeAccessoryAssembly/PipeAccessoryAssembly.tsx
index b27033c..91441ff 100644
--- a/PipeLineLems/pipelinelems_web/src/widgets/PipeAccessoryAssembly/Views/Pages/PipeAccessoryAssembly/PipeAccessoryAssembly.tsx
+++ b/PipeLineLems/pipelinelems_web/src/widgets/PipeAccessoryAssembly/Views/Pages/PipeAccessoryAssembly/PipeAccessoryAssembly.tsx
@@ -50,8 +50,8 @@
 
     onMounted(() => {
       // 缁勪欢鎸傝浇鍚庤幏鍙栧瀷鍙峰垪琛ㄥ拰搴撲綅鍙峰垪琛�
-      getModelList()
-      getPlaceNoList()
+      // getModelList()
+      // getPlaceNoList()
     })
 
     // 缁勭洏鎿嶄綔
@@ -96,6 +96,10 @@
     }
     const handleChange =async (value) => {
       console.log('杈撳叆鍐呭纭:', value); // 澶卞幓鐒︾偣鎴栧洖杞︽椂瑙﹀彂
+      if(value==''){
+        initQueryForm();
+        return;
+      }
       // 鍦ㄦ澶勬坊鍔犱笟鍔¢�昏緫锛堝鏍¢獙銆佹彁浜ょ瓑锛�
       const param={
         pipeSpecCode:value,
@@ -107,24 +111,27 @@
       console.log('杩斿洖:'+workPlan);
       if(workPlan==''){
         ElMessage.error('娌℃湁鎵惧埌鏁版嵁'); 
-        queryForm.value ={ pipeSpecCode: '',
-          processRouteNumber: '',
-          taskCode: '',
-          length: '',
-          projectNumber: '',
-          shipNumber: '',
-          material: '',
-          outerDiameter: '',
-          thickness: '',
-          plannedStartTime: '',
-          plannedEndTime: '',
-          workstationCode: '',
-          processName: '',
-          equipmentCode: ''}
+        initQueryForm();
       }else{
         queryForm.value=workPlan;
       }
     };
+    const initQueryForm=()=>{
+      queryForm.value ={ pipeSpecCode: '',
+        processRouteNumber: '',
+        taskCode: '',
+        length: '',
+        projectNumber: '',
+        shipNumber: '',
+        material: '',
+        outerDiameter: '',
+        thickness: '',
+        plannedStartTime: '',
+        plannedEndTime: '',
+        workstationCode: '',
+        processName: '',
+        equipmentCode: ''}
+    }
 
     // 寮�宸ヤ簨浠跺鐞�
     const startWork = () => {

--
Gitblit v1.9.3