完善文档预览的效果修改
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { postgrestGet, postgrestDelete, postgrestPut, type PostgrestParams } from '../postgrest-client';
|
||||
import dayjs from 'dayjs';
|
||||
import { getDocumentTypes } from '../document-types/document-types';
|
||||
import { formatDate } from '../../utils';
|
||||
|
||||
@@ -433,9 +432,9 @@ export async function updateDocument(id: string, document: Partial<DocumentUI> &
|
||||
apiDocument.document_number = document.documentNumber;
|
||||
}
|
||||
|
||||
if (document.type !== undefined) {
|
||||
apiDocument.type_id = parseInt(document.type);
|
||||
}
|
||||
// if (document.type !== undefined) {
|
||||
// apiDocument.type_id = parseInt(document.type);
|
||||
// }
|
||||
|
||||
if (document.auditStatus !== undefined) {
|
||||
apiDocument.audit_status = document.auditStatus;
|
||||
|
||||
Reference in New Issue
Block a user