Browse Source

bug 修复

hella_online_20240829
wangyufei 3 months ago
parent
commit
0df2922abb
  1. 18
      src/views/wms/basicDataManage/systemSetting/accountcalendar/index.vue
  2. 18
      src/views/wms/basicDataManage/systemSetting/currencyexchange/index.vue
  3. 18
      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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save