|
|
@@ -1,3 +1,4 @@
|
|
|
+import dayjs from 'dayjs';
|
|
|
import React, { useState, useEffect } from 'react';
|
|
|
import { Table, Button, Modal, Form, Input, DatePicker, Space, Typography, message, Tag } from 'antd';
|
|
|
import { PlusOutlined, EditOutlined, DeleteOutlined, SearchOutlined } from '@ant-design/icons';
|
|
|
@@ -83,7 +84,7 @@ export const DateNotesPage: React.FC = () => {
|
|
|
setCurrentItem(record);
|
|
|
form.setFieldsValue({
|
|
|
code: record.code,
|
|
|
- noteDate: record.noteDate ? new Date(record.noteDate) : null,
|
|
|
+ noteDate: record.noteDate ? dayjs(record.noteDate) : null,
|
|
|
note: record.note,
|
|
|
});
|
|
|
setIsModalVisible(true);
|