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 @@ - +
Source Revision @@ -682,12 +652,10 @@ - + - +
Destination Revision - + 物料编码 - + - + @@ -741,15 +706,12 @@ - + - + - +
@@ -760,8 +722,7 @@ - +
Source Revision @@ -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 @@
- + + +
- + + +
- + + +