Browse Source

新增/编辑补给品标签,点击保存后加loading,不允许连续点击

intex_online20250224
叶佳兴 1 month ago
parent
commit
5981addf8c
  1. 4
      src/views/wms/basicDataManage/labelManage/supplyLabel/index.vue

4
src/views/wms/basicDataManage/labelManage/supplyLabel/index.vue

@ -253,13 +253,17 @@ const formsSuccess = async (formType,data) => {
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
if (formType === 'create') {
basicFormRef.value.formLoading = true
await SupplyLabelApi.createSupplyLabel(data)
message.success(t('common.createSuccess'))
} else {
basicFormRef.value.formLoading = true
await SupplyLabelApi.updateSupplyLabel(data)
message.success(t('common.updateSuccess'))
}
basicFormRef.value.dialogVisible = false
basicFormRef.value.formLoading = false
getList()
}

Loading…
Cancel
Save