diff --git a/mes-ui/mes-ui-admin-vue3/src/views/biz/storage/StorageOut.vue b/mes-ui/mes-ui-admin-vue3/src/views/biz/storage/StorageOut.vue index 1ec6c3b2..cb4b3be1 100644 --- a/mes-ui/mes-ui-admin-vue3/src/views/biz/storage/StorageOut.vue +++ b/mes-ui/mes-ui-admin-vue3/src/views/biz/storage/StorageOut.vue @@ -382,7 +382,8 @@ type="success" plain size="large" - v-bind:disabled="activetype == 'review' || activetype == 'Check'" + v-bind:disabled="activetype == 'review' || activetype == 'Check'||BomLoading" + v-loading="BomLoading" @click="processBom" >更新BOM @@ -815,10 +816,13 @@ const openMatForm2 = () => { matOpenFormRef2.value.open(formData.value.projectOrderCode, formData.value.workshopId) } //获取Bom +const BomLoading = ref(false) const processBom = async () => { + BomLoading.value = true try { await StorageApi.getBomUpdateCode(formData.value.projectOrderCode) } finally { + BomLoading.value = false message.success('更新成功') } }