diff --git a/src/views/mes/deviceledger/DeviceLedgerForm.vue b/src/views/mes/deviceledger/DeviceLedgerForm.vue index e69f5f21..8b0ced58 100644 --- a/src/views/mes/deviceledger/DeviceLedgerForm.vue +++ b/src/views/mes/deviceledger/DeviceLedgerForm.vue @@ -74,9 +74,9 @@ - + ({ deviceBrand: undefined, deviceModel: undefined, deviceSpec: undefined, - isSchedueld: 0, + isScheduled: 0, ratedCapacity: undefined, deviceType: undefined, supplier: undefined, @@ -613,7 +613,7 @@ const open = async (type: string, id?: number, defaultDeviceTypeId?: number) => ...initFormData(), ...(detail as any), isCode: (detail as any)?.isCode ?? false, - isSchedueld: normalizeNumberish((detail as any)?.isSchedueld ?? (detail as any)?.isScheduled) ?? 0, + isScheduled: normalizeNumberish((detail as any)?.isScheduled ?? (detail as any)?.isSchedueld) ?? 0, ratedCapacity: normalizeNumberish((detail as any)?.ratedCapacity), deviceType: normalizeNumberish((detail as any)?.deviceType), deviceManagerIds: parseIdsValue((detail as any)?.deviceManager), @@ -647,7 +647,7 @@ const submitForm = async () => { try { const data = { ...(formData.value as any), - isSchedueld: normalizeNumberish((formData.value as any).isSchedueld) ?? 0, + isScheduled: normalizeNumberish((formData.value as any).isScheduled) ?? 0, ratedCapacity: normalizeNumberish((formData.value as any).ratedCapacity), deviceType: normalizeNumberish(formData.value.deviceType), productionDate: normalizeYmd(formData.value.productionDate), @@ -662,6 +662,7 @@ const submitForm = async () => { delete (data as any).deviceManagerIds delete (data as any).componentIds delete (data as any).beijianIds + delete (data as any).isSchedueld if (formType.value === 'create') { await DeviceLedgerApi.createDeviceLedger(data) message.success(t('common.createSuccess'))