From cb12d30d03e1940b1447395af46bfaba37b214eb Mon Sep 17 00:00:00 2001
From: chenhj <1263187585@qq.com>
Date: 星期二, 17 三月 2026 17:59:32 +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..e4b8842 100644
--- a/src/views/plan/manufacturingorder/productorder-form.vue
+++ b/src/views/plan/manufacturingorder/productorder-form.vue
@@ -286,6 +286,13 @@
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"
+ size="medium"
@click="addOrderOperation"
>娣诲姞
</el-button>
@@ -303,6 +310,7 @@
</el-col>
</el-row> -->
<el-table
+ v-if="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