@inherits FeedbackComponent<ProjectContentRecord>

<Card>
    <Form Size="@AntSizeLDSType.Small" Model="_Model">
        <FormItem Label="我方文号">
            <span>@_Model.ProjectNo</span>
        </FormItem>
        @if (_Model.Project != null)
        {
            <FormItem Label="案件名称">
                <span>@_Model.Project.CaseName</span>
            </FormItem>
            <FormItem Label="客户">
                <span>@_Model.Project.Customer?.Name</span>
            </FormItem>
        }
    </Form>
</Card>
<Card Title="工作内容清单">
        @if (_Model.ProjectWorkContents != null)
        {
            <AntDesign.Table TItem="ProjectWorkContent"
                             DataSource="_Model.ProjectWorkContents"
                             Bordered=@true
                             Size=@TableSize.Small>
                <RowTemplate Context="pp">
                    <AntDesign.Column Title="工作内容" TData="string">
                            <span>@pp.Content</span>
                    </AntDesign.Column>
                    <AntDesign.Column Title="工作日期" TData="string">
                            <span>@pp.WorkDate.ToString("yyyy-MM-dd")</span>
                    </AntDesign.Column>
                    <AntDesign.Column Title="时间跨度" TData="string">
                            <span>@(pp.TimeSpan)天</span>
                    </AntDesign.Column>
                    <AntDesign.Column Title="耗时" TData="string">
                            <span>@(pp.TakeTime)小时</span>
                    </AntDesign.Column>
                </RowTemplate>
            </AntDesign.Table>
        }
    
</Card>
<Card>
    <Form Model="_Model">
        <FormItem Label="请谁审核">
            <StaffSelect @bind-StaffId="_Model.Project.ReviewerId" StaffLists="Staffs" />
        </FormItem>
    </Form>
</Card>
