@page "/Project/ConfirmProjectPoint"

<PageContainer>
    <Breadcrumb>
        <Breadcrumb>
            <BreadcrumbItem>
                <a href="/Home"><Icon Type="home"></Icon></a>
            </BreadcrumbItem>
            <BreadcrumbItem>
                <span>项目</span>
            </BreadcrumbItem>
            <BreadcrumbItem>
                <span>项目点数确认</span>
            </BreadcrumbItem>
        </Breadcrumb>
    </Breadcrumb>
    <Content></Content>
    <ChildContent>
        <Card>
            <Card>
                <div>
                    <Row>
                        <AntDesign.Col Span="4"><b>我方文号:</b></AntDesign.Col>
                        <AntDesign.Col Span="8">@task.ProjectInfo.CaseNo</AntDesign.Col>
                        <AntDesign.Col Span="4"><b>处理事项:</b></AntDesign.Col>
                        <AntDesign.Col Span="8">@task.ProjectInfo.DoItem</AntDesign.Col>
                    </Row>
                    <Row><AntDesign.Col Span="24">&nbsp;</AntDesign.Col></Row>
                    <Row>
                        <AntDesign.Col Span="4"><b>案件名称:</b></AntDesign.Col>
                        <AntDesign.Col Span="16">@task.ProjectInfo.CaseName</AntDesign.Col>
                        <AntDesign.Col Span="4">
                            <Space Style="float:right">
                                <SpaceItem><Button Type="primary" Icon="save" Danger OnClick="OnShensu" Style="float:right">申诉</Button></SpaceItem>
                                <SpaceItem><Button Icon="cancel" OnClick="OnOK" Style="float:right">确认OK</Button></SpaceItem>
                            </Space>
                        </AntDesign.Col>
                    </Row>
                </div>
            </Card>
            <Card>
                <AntDesign.Table TItem="wispro.sp.web.Models.ProjectPoint"
                                 DataSource="projectPoints"
                                 Bordered=@true
                                 Size=@TableSize.Middle>
                    <ChildContent Context="pp">
                        <AntDesign.Column Title="处理事项" @bind-Field="@pp.doItem" Sortable Filterable />
                        <AntDesign.Column Title="难度系数" @bind-Field="@pp.DoItemCoefficient" Sortable Filterable />
                        <AntDesign.Column Title="处理人" @bind-Field="@pp.person" Sortable Filterable />
                        <AntDesign.Column Title="分配点数" @bind-Field="@pp.Point" TData="double" />
                    </ChildContent>

                </AntDesign.Table>
            </Card>

            <Card>
                
            </Card>
        </Card>

    </ChildContent>
</PageContainer>

<Modal Title="申诉窗口" Visible="@_visible"
       OnOk="@HandleOk"
       OnCancel="@HandleCancel"
       MaskClosable="false"
       Width="600">
    <Card Style="width:100%" Bordered>
        <div>
            <Row>
                <AntDesign.Col Span="4"><b>我方文号:</b></AntDesign.Col>
                <AntDesign.Col Span="8">@EditingItem.CaseNo</AntDesign.Col>
                <AntDesign.Col Span="4"><b>处理事项:</b></AntDesign.Col>
                <AntDesign.Col Span="8">@EditingItem.DoItem</AntDesign.Col>
            </Row>
            <Row><AntDesign.Col Span="24">&nbsp;</AntDesign.Col></Row>
            <Row>
                <AntDesign.Col Span="4"><b>案件名称:</b></AntDesign.Col>
                <AntDesign.Col Span="20">@EditingItem.CaseName</AntDesign.Col>

            </Row>
        </div>
    </Card>
    <br />
    <Form Model="_shenshou" LabelColSpan="6" WrapperColSpan="16">
        @*<FormItem Label="类型">
            <Select DataSource="@AvatarMenuItems"
                    @bind-Value="@context.Type"
                    LabelName="@nameof(AvatarMenuItem.Option)"
                    ValueName="@nameof(AvatarMenuItem.Key)"
                    Placeholder="请选择申诉类型"
                    Style="width:100%"
                    DefaultValue="reviewer"
                    AllowClear
                    DefaultActiveFirstItem="false"
                    Disabled="true">
            </Select>
        </FormItem>*@
        <FormItem Label="向谁申诉">
            <Select DataSource="@Reviewers"
                    @bind-Value="@context.ReviewerId"
                    LabelName="@nameof(Staff.Name)"
                    ValueName="@nameof(Staff.Id)"
                    Placeholder="请选择审核人"
                    Style="width: 100%"
                    AllowClear
                    DefaultActiveFirstItem="false"
                    DefaultValue="1"
                    Disabled="true">
            </Select>
        </FormItem>
        <FormItem Label="申诉理由">
            <TextArea @bind-Value="@context.Reason" Rows="6" Style="width: 100%" />
        </FormItem>
        <FormItem Label="附件">
            <Upload @attributes="attrs"
                    FileList="fileList"
                    OnChange="HandleChange">
                <Button Icon="upload"><span>添加附件</span></Button>
            </Upload>
        </FormItem>
    </Form>

</Modal>

