Browse Source

bug 修复

hella_online_20240829
wangyufei 3 months ago
parent
commit
0df2922abb
  1. 6
      src/views/wms/basicDataManage/systemSetting/accountcalendar/index.vue
  2. 6
      src/views/wms/basicDataManage/systemSetting/currencyexchange/index.vue
  3. 6
      src/views/wms/basicDataManage/systemSetting/systemcalendar/index.vue
  4. 10
      src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts
  5. 10
      src/views/wms/productionManage/productionplan/productionMainAssemble/productionMainAssemble.data.ts

6
src/views/wms/basicDataManage/systemSetting/accountcalendar/index.vue

@ -163,6 +163,9 @@ const formsSuccess = async (formType,data) => {
} }
if(data.activeTime==0)data.activeTime = null; if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null; if(data.expireTime==0)data.expireTime = null;
basicFormRef.value.formLoading = true
try {
if (formType === 'create') { if (formType === 'create') {
await AccountcalendarApi.createAccountcalendar(data) await AccountcalendarApi.createAccountcalendar(data)
message.success(t('common.createSuccess')) message.success(t('common.createSuccess'))
@ -170,6 +173,9 @@ const formsSuccess = async (formType,data) => {
await AccountcalendarApi.updateAccountcalendar(data) await AccountcalendarApi.updateAccountcalendar(data)
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
} }
} finally {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false basicFormRef.value.dialogVisible = false
getList() getList()
} }

6
src/views/wms/basicDataManage/systemSetting/currencyexchange/index.vue

@ -164,6 +164,9 @@ const formsSuccess = async (formType,data) => {
} }
if(data.activeTime==0)data.activeTime = null; if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null; if(data.expireTime==0)data.expireTime = null;
basicFormRef.value.formLoading = true
try {
if (formType === 'create') { if (formType === 'create') {
await CurrencyexchangeApi.createCurrencyexchange(data) await CurrencyexchangeApi.createCurrencyexchange(data)
message.success(t('common.createSuccess')) message.success(t('common.createSuccess'))
@ -171,6 +174,9 @@ const formsSuccess = async (formType,data) => {
await CurrencyexchangeApi.updateCurrencyexchange(data) await CurrencyexchangeApi.updateCurrencyexchange(data)
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
} }
} finally {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false basicFormRef.value.dialogVisible = false
getList() getList()
} }

6
src/views/wms/basicDataManage/systemSetting/systemcalendar/index.vue

@ -163,6 +163,9 @@ const formsSuccess = async (formType,data) => {
} }
if(data.activeTime==0)data.activeTime = null; if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null; if(data.expireTime==0)data.expireTime = null;
basicFormRef.value.formLoading = true
try {
if (formType === 'create') { if (formType === 'create') {
await SystemcalendarApi.createSystemcalendar(data) await SystemcalendarApi.createSystemcalendar(data)
message.success(t('common.createSuccess')) message.success(t('common.createSuccess'))
@ -170,6 +173,9 @@ const formsSuccess = async (formType,data) => {
await SystemcalendarApi.updateSystemcalendar(data) await SystemcalendarApi.updateSystemcalendar(data)
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
} }
} finally {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false basicFormRef.value.dialogVisible = false
getList() getList()
} }

10
src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts

@ -730,6 +730,11 @@ export const ProductionDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
form:{
componentProps:{
disabled: true
}
}
}, },
{ {
label: 'Bom版本', label: 'Bom版本',
@ -843,6 +848,11 @@ export const ProductionDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
form:{
componentProps:{
disabled: true
}
},
tableForm:{ tableForm:{
type: 'Select', type: 'Select',
disabled: true, disabled: true,

10
src/views/wms/productionManage/productionplan/productionMainAssemble/productionMainAssemble.data.ts

@ -729,6 +729,11 @@ export const ProductionDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
form:{
componentProps:{
disabled: true
}
},
}, },
{ {
label: 'Bom版本', label: 'Bom版本',
@ -842,6 +847,11 @@ export const ProductionDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
form:{
componentProps:{
disabled: true
}
},
tableForm:{ tableForm:{
type: 'Select' type: 'Select'
} }

Loading…
Cancel
Save