From 4cdbd170706a9c0dea023c2470d59a274e4ba0da Mon Sep 17 00:00:00 2001
From: fengyuan_yang <1976974459@qq.com>
Date: Wed, 2 Jul 2025 10:28:29 +0800
Subject: [PATCH] =?UTF-8?q?2025-07-02=20BM=E5=B7=A5=E8=89=BA=E4=BF=A1?=
=?UTF-8?q?=E6=81=AF=E4=B8=89=E4=B8=AA=E5=AD=97=E6=AE=B5=E6=94=B9=E6=88=90?=
=?UTF-8?q?=E6=96=87=E6=9C=AC=E5=9F=9F=20BOM=E5=92=8CRouting=E7=9A=84?=
=?UTF-8?q?=E5=AD=90=E4=BF=A1=E6=81=AF=E5=8A=A0loading?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/part/bomManagement.vue | 14 +-
src/views/modules/part/routingManagement.vue | 137 +++++++-----------
.../com_bm_prepress.vue | 36 ++++-
3 files changed, 98 insertions(+), 89 deletions(-)
diff --git a/src/views/modules/part/bomManagement.vue b/src/views/modules/part/bomManagement.vue
index 5d44edf..e6b3e8d 100644
--- a/src/views/modules/part/bomManagement.vue
+++ b/src/views/modules/part/bomManagement.vue
@@ -624,8 +624,8 @@
- 应用
- 保存
+ 应用
+ 保存
关闭
@@ -1082,6 +1082,7 @@ export default {
saveAllLoading: false,
toBecomeOfficialLoading: false,
copyLoading: false,
+ saveComponentLoading: false,
// 初始页签
detailTable: 'bom_detail',
subDetailTable: 'bom_sub_detail',
@@ -3975,6 +3976,7 @@ export default {
this.$message.warning('请选择生产属性!')
return
}
+ this.saveComponentLoading = true
if (this.componentData.flag === '1') {
saveBomComponent(this.componentData).then(({data}) => {
if (data && data.code === 0) {
@@ -3990,6 +3992,7 @@ export default {
} else {
this.componentSaveModal = false
}
+ this.saveComponentLoading = false
this.$message({
message: '操作成功',
type: 'success',
@@ -3997,10 +4000,13 @@ export default {
onClose: () => {}
})
} else {
+ this.saveComponentLoading = false
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
+ }).catch(()=>{
+ this.saveComponentLoading = false
})
} else if (this.componentData.flag === '2') {
updateBomComponent(this.componentData).then(({data}) => {
@@ -4008,6 +4014,7 @@ export default {
this.subDetailList = data.rows.subDetailList
this.byProductList = data.rows.byProductList
this.componentSaveModal = false
+ this.saveComponentLoading = false
this.$message({
message: '操作成功',
type: 'success',
@@ -4015,10 +4022,13 @@ export default {
onClose: () => {}
})
} else {
+ this.saveComponentLoading = false
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
+ }).catch(()=>{
+ this.saveComponentLoading = false
})
}
},
diff --git a/src/views/modules/part/routingManagement.vue b/src/views/modules/part/routingManagement.vue
index 41834a2..c1e9296 100644
--- a/src/views/modules/part/routingManagement.vue
+++ b/src/views/modules/part/routingManagement.vue
@@ -489,18 +489,15 @@
-
+
-
+
-
+
加工中心编码
@@ -512,48 +509,36 @@
-
+
-
+
-
+
-
+
调机过程中人员等级
-
+
-
-
-
+
+
+
-
+
-
+
-
+
-
+
@@ -568,43 +553,36 @@
-
+
-
+
-
+
-
+
-
+
- 应用
- 保存
+ 应用
+ 保存
关闭
-
+
-
+
-
+
- 工序
+ 工序
工序
-
+
-
+
- 工具
+ 工具
工具
-
+
-
+
@@ -657,8 +628,7 @@
-
+
-
+
@@ -1350,6 +1311,7 @@ export default {
workCenterModelFlag: false,
workerLevelModelFlag1: false,
workerLevelModelFlag2: false,
+ saveComponentLoading: false,
// 初始页签
detailTable: 'routing_detail',
subDetailTable: 'routing_sub_detail',
@@ -4168,6 +4130,7 @@ export default {
this.$message.warning('请填写生产过程中人数!')
return
}
+ this.saveComponentLoading = true
if (this.componentData.flag === '1') {
saveRoutingComponent(this.componentData).then(({data}) => {
if (data && data.code === 0) {
@@ -4177,36 +4140,42 @@ export default {
} else {
this.componentSaveModal = false
}
+ this.saveComponentLoading = false
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
- onClose: () => {
- }
+ onClose: () => {}
})
} else {
+ this.saveComponentLoading = false
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
+ }).catch(()=>{
+ this.saveComponentLoading = false
})
} else if (this.componentData.flag === '2') {
updateRoutingComponent(this.componentData).then(({data}) => {
if (data && data.code === 0) {
this.subDetailList = data.rows
this.componentSaveModal = false
+ this.saveComponentLoading = false
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
- onClose: () => {
- }
+ onClose: () => {}
})
} else {
+ this.saveComponentLoading = false
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
+ }).catch(()=>{
+ this.saveComponentLoading = false
})
}
},
diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_prepress.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_prepress.vue
index 112e4ee..cb5679d 100644
--- a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_prepress.vue
+++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_prepress.vue
@@ -5,21 +5,51 @@
-
+
+
+
-
+
+
+
-
+
+
+