This commit is contained in:
sjl
2024-12-16 15:25:30 +08:00
parent d061fc9b32
commit 5da07d8631
3 changed files with 32 additions and 56 deletions

View File

@@ -125,7 +125,12 @@
try {
dialogFormRef.value?.validate(async (valid: boolean) => {
if (valid) {
// 确保 standardTime 是 Date 对象
if (formContent.value.standardTime) {
const date = new Date(formContent.value.standardTime);
formContent.value.standardTime = date.getFullYear().toString();
}
formContent.value.pqErrSysDtlsList = tableData.value
if (formContent.value.id) {
await updatePqErrSys(formContent.value);