From d0e9936a97b451615442638af296c426a2032a28 Mon Sep 17 00:00:00 2001
From: chenhj <1263187585@qq.com>
Date: 星期三, 18 三月 2026 10:36:35 +0800
Subject: [PATCH] 车间订单处理工艺文件工序排序错误问题

---
 src/views/plan/manufacturingorder/productorder-form.vue |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/src/views/plan/manufacturingorder/productorder-form.vue b/src/views/plan/manufacturingorder/productorder-form.vue
index bd6d66e..5968318 100644
--- a/src/views/plan/manufacturingorder/productorder-form.vue
+++ b/src/views/plan/manufacturingorder/productorder-form.vue
@@ -282,6 +282,13 @@
                       <el-col :span="24" class="productorder-operates-col">
                         <el-card class="productorder-operates">
                           <div style="display:flex;justify-content:flex-end;">
+<!--                            <el-button-->
+<!--                              style="padding: 3px 0;margin-right:10px;"-->
+<!--                              type="text"-->
+<!--                              size="medium"-->
+<!--                              @click="refresh"-->
+<!--                              >鍒锋柊-->
+<!--                            </el-button>-->
                             <el-button
                               style="padding: 3px 0;margin-right:10px;"
                               type="text"
@@ -303,6 +310,7 @@
                             </el-col>
                           </el-row> -->
                           <el-table
+                            :key="operationIndex"
                             id="operationTable"
                             ref="operationTable"
                             class="basic-template-table"
@@ -1269,6 +1277,7 @@
       currentRow: [],
       currentRouting: {}, // 褰撳墠閫夋嫨鐨勫伐鑹�
       operations: [], // 褰撳墠閫夋嫨宸ヨ壓瀵瑰簲鐨勫伐搴�
+      operationIndex: 10,
       currentBom: {}, // 褰撳墠閫夋嫨鐨勪骇鍝佺粨鏋�
       components: [], // 褰撳墠閫夋嫨浜у搧缁撴瀯瀵瑰簲鐨勭粨鏋勭粍浠�
       factoryOptions: [],
@@ -2259,6 +2268,16 @@
         }
       }
     },
+    refresh() {
+      getMoRoutingOption(this.dataForm.id).then((response) => {
+        if (response.data.code === 0) {
+          this.operations = response.data.data
+          this.operationIndex += 1
+        } else {
+          this.operations = []
+        }
+      })
+    },
     // 鍒犻櫎褰撳墠宸ュ簭
     deleteOrderOperation(row) {
       this.$confirm('鏄惁纭鍒犻櫎?', '鎻愮ず', {
@@ -2299,6 +2318,14 @@
                 }
               }
               this.$message.success('璁㈠崟宸ュ簭鍒犻櫎鎴愬姛')
+              getMoRoutingOption(this.dataForm.id).then((response) => {
+                if (response.data.code === 0) {
+                  this.operations = response.data.data
+                  this.operationIndex += 1
+                } else {
+                  this.operations = []
+                }
+              })
             } else {
               this.$message.error('璁㈠崟宸ュ簭鍒犻櫎澶辫触')
             }
@@ -2350,6 +2377,7 @@
           getMoRoutingOption(this.dataForm.id).then((response) => {
             if (response.data.code === 0) {
               this.operations = response.data.data
+              this.operationIndex += 1
             } else {
               this.operations = []
             }

--
Gitblit v1.9.3