OAFRONT4 统一PC日期和状态展示

这个提交包含在:
2026-05-25 08:00:12 +08:00
父节点 fa5ed0337d
当前提交 5519c3d240
共修改 8 个文件,包含 123 行新增和 52 行删除
+6 -10
查看文件
@@ -23,6 +23,7 @@ import { useAuth } from "../auth/AuthContext";
import { hasAnyPermission } from "../auth/permissions";
import { PageHeader } from "../components/common/PageHeader";
import { StatusBadge } from "../components/common/StatusBadge";
import { DateTextInput } from "../components/common/DateTextInput";
import { Button } from "../components/ui/button";
import { Input } from "../components/ui/input";
import { Label } from "../components/ui/label";
@@ -499,24 +500,21 @@ export function ContractsRegistryPage() {
<div className="grid gap-3 md:grid-cols-3">
<div className="space-y-2">
<Label>签署日期</Label>
<Input
type="date"
<DateTextInput
value={editor.signedDate}
onChange={(event) => setEditor((current) => ({ ...current, signedDate: event.target.value }))}
/>
</div>
<div className="space-y-2">
<Label>生效日期</Label>
<Input
type="date"
<DateTextInput
value={editor.effectiveDate}
onChange={(event) => setEditor((current) => ({ ...current, effectiveDate: event.target.value }))}
/>
</div>
<div className="space-y-2">
<Label>到期日期</Label>
<Input
type="date"
<DateTextInput
value={editor.expiryDate}
onChange={(event) => setEditor((current) => ({ ...current, expiryDate: event.target.value }))}
/>
@@ -685,8 +683,7 @@ export function ContractsRegistryPage() {
<div className="space-y-2">
<Label>到期日开始</Label>
<Input
type="date"
<DateTextInput
value={filters.expiryDateFrom}
onChange={(event) => setFilters((current) => ({ ...current, expiryDateFrom: event.target.value }))}
/>
@@ -694,8 +691,7 @@ export function ContractsRegistryPage() {
<div className="space-y-2">
<Label>到期日结束</Label>
<Input
type="date"
<DateTextInput
value={filters.expiryDateTo}
onChange={(event) => setFilters((current) => ({ ...current, expiryDateTo: event.target.value }))}
/>