Browse Source

loading

java8
han\hanst 11 months ago
parent
commit
ff271d1451
  1. 13
      src/views/modules/part/bom_create.vue
  2. 6
      src/views/modules/part/quicklyCreateBom.vue

13
src/views/modules/part/bom_create.vue

@ -4093,6 +4093,14 @@ export default {
cancelButtonText: "取消",
type: "warning"
}).then(() => {
// 显示loading
const loadingInstance = this.$loading({
lock: true,
text: '正在保存BOM子件...',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.3)'
})
let tempData = {
site: this.modalData.site,
buNo: this.modalData.buNo,
@ -4117,6 +4125,8 @@ export default {
batchSaveList: convertedSelections // 使用转换后的数据
}
batchSaveBomComponent(tempData).then(({data}) => {
loadingInstance.close() // 关闭loading
if (data && data.code === 0) {
this.subDetailList = data.rows.subDetailList
this.copyBomDialogFlag = false
@ -4140,6 +4150,9 @@ export default {
page: 1,
limit: 10
}
}).catch(error => {
loadingInstance.close() // 发生错误时也要关闭loading
this.$message.error('保存失败:' + (error.message || '未知错误'))
})
})

6
src/views/modules/part/quicklyCreateBom.vue

@ -5457,7 +5457,7 @@ export default {
lock: true,
text: '正在加载商品组数据...',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
background: 'rgba(0, 0, 0, 0.3)'
})
// 先查询该BU下所有商品组1
@ -5513,7 +5513,7 @@ export default {
lock: true,
text: '正在加载ProcessTimeMatrix数据...',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
background: 'rgba(0, 0, 0, 0.3)'
})
} else {
// 更新loading文本
@ -5689,7 +5689,7 @@ export default {
lock: true,
text: '正在添加参数...',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
background: 'rgba(0, 0, 0, 0.3)'
})
// 直接添加该行的参数

Loading…
Cancel
Save