<Selection Key="@(EditingItem.Id.ToString())" Width="50" Fixed="left"/>
<AntDesign.Column Title="我方文号" @bind-Field="@EditingItem.CaseNo" Width="150" Sortable Filterable Fixed="left" />
<AntDesign.Column Title="案件类型" @bind-Field="@EditingItem.CaseType" Width="120" Sortable Filterable />

@*<AntDesign.Column Title="案件系数" Width="120" DataIndex="@nameof(EditingItem.CaseCoefficient)" TData="string">
    @if (EditField  == "CaseCoefficient")
    {
        <Input Type="text" @bind-Value="EditingItem.CaseCoefficient" OnBlur="stopEdit" OnChange="InputChanged" AutoFocus />
    }
    else
    {
        <div class="editable-cell-value-wrap" style="padding-right:24px" @onclick="()=>startEdit(strCaseCoefficient)">
            @EditingItem.CaseCoefficient
        </div>
    }
</AntDesign.Column>*@
<AntDesign.Column Title="处理事项" @bind-Field="@EditingItem.DoItem" Width="120" Sortable Filterable />

@*<AntDesign.Column Title="处理事项系数" Width="120" DataIndex="@nameof(EditingItem.CaseCoefficient)" TData="string">
    @if (EditField == "DoItemCoefficient")
    {
        <Input Type="text" @bind-Value="EditingItem.DoItemCoefficient" OnBlur="stopEdit" OnChange="InputChanged" AutoFocus />
    }
    else
    {
        <div class="editable-cell-value-wrap" style="padding-right:24px" @onclick="()=>startEdit(strDoItemCoefficient)">
            @EditingItem.CaseCoefficient
        </div>
    }
</AntDesign.Column>*@
<AntDesign.Column Title="绩效特殊字段" DataIndex="@nameof(EditingItem.AgentFeedbackMemo)" Width="300" TData="string">
    @if (EditField == "AgentFeedbackMemo")
    {
        <Select DataSource="@_Reasons"
                @bind-Value="@EditingItem.AgentFeedbackMemo"
                LabelName="@nameof(Reason.Name)"
                ValueName="@nameof(Reason.Value)"
                Placeholder="请选项一项"
                DefaultActiveFirstItem="false"
                EnableSearch="true"
                AllowClear="true"
                Style="width:220px;"
                OnBlur="@stopEdit" OnSelectedItemChanged="(value)=>SelectChanged(value)" AutoFocus>
        </Select>
        
    }
    else
    {
        <div class="editable-cell-value-wrap" style="padding-right:24px" @onclick="()=>startEdit(strAgentFeedbackMemo)">
            @EditingItem.AgentFeedbackMemo
        </div>
    }

</AntDesign.Column>

<AntDesign.Column Title="处理人" TData="string" DataIndex="@nameof(EditingItem.ItemStaffs)" Width="150">
    @if (EditingItem.ItemStaffs != null)
    {
        foreach (ItemStaff itemStaff in EditingItem.ItemStaffs)
        {
            <span>@(itemStaff.DoPerson.Name)&nbsp;</span>
        }
    }
</AntDesign.Column>
<AntDesign.Column Title="核稿人" TData="string" Width="100">@(EditingItem.Reviewer ==null?"": EditingItem.Reviewer.Name)</AntDesign.Column>
<AntDesign.Column Title="基础点数" TData="string" Width="100">@(EditingItem.BasePoint ==null?"": EditingItem.BasePoint)</AntDesign.Column>
<AntDesign.Column Title="完成时间" TData="string" Width="100">@(EditingItem.FinishedDate.HasValue? EditingItem.FinishedDate.Value.ToString("yyyy-MM-dd"):"")</AntDesign.Column>
<AntDesign.Column Title="返稿日" TData="string" Width="100">@(EditingItem.ReturnDate .HasValue? EditingItem.ReturnDate.Value.ToString("yyyy-MM-dd"):"")</AntDesign.Column>
<AntDesign.Column Title="客户期限" TData="string" Width="100">@(EditingItem.CustomerLimitDate .HasValue? EditingItem.CustomerLimitDate.Value.ToString("yyyy-MM-dd"):"")</AntDesign.Column>
<AntDesign.Column Title="初稿日" TData="string" Width="100">@(EditingItem.FirstDraftDate .HasValue? EditingItem.FirstDraftDate.Value.ToString("yyyy-MM-dd"):"")</AntDesign.Column>
<AntDesign.Column Title="内部期限" TData="string" Width="100">@(EditingItem.InternalDate .HasValue? EditingItem.InternalDate.Value.ToString("yyyy-MM-dd"):"")</AntDesign.Column>
<AntDesign.Column Title="案件阶段" TData="string" Width="100">@EditingItem.CaseStage</AntDesign.Column>
<AntDesign.Column Title="案件名称" TData="string" @bind-Field="EditingItem.CaseName" Width="250"></AntDesign.Column>
<AntDesign.Column Title="案件状态" @bind-Field="@EditingItem.CaseState" Width="100"></AntDesign.Column>
<AntDesign.Column Title=" 申请人" @bind-Field="@EditingItem.ApplicationName" Width="200"></AntDesign.Column>
<AntDesign.Column Title="备注" @bind-Field="@EditingItem.CaseMemo"></AntDesign.Column>

<ActionColumn Fixed="right" Title="绩效特殊字段填写与操作" Width="50">
    <Space>
        
        @if ((!EditingItem.CaseNo.Contains("CN") || EditingItem.CaseNo.Contains("WO")) && EditingItem.DoItem == "新申请")
        {
            <SpaceItem>
                <DropdownButton OnClick="OnsubShensu" Type="@((ButtonType.Primary, ButtonType.Default))" ButtonsStyle="@("background-color: #1890ff;")">
                    <Overlay>
                        <Menu>
                            @*<MenuItem Key="1" icon="plus" Click="OnsubShensu"></MenuItem>*@
                            <MenuItem Key="2" icon="plus" OnClick="OnSWJXType">涉外绩效按字数计算</MenuItem>
                        </Menu>
                    </Overlay>
                    <Unbound>
                        申诉
                    </Unbound>
                </DropdownButton>
            </SpaceItem>
        }
        else
        {
            <SpaceItem>
                <Button Type="primary" OnClick="OnsubShensu" Style="float:right" Size="small">申诉</Button>
            </SpaceItem>
        }
    </Space>
</ActionColumn>

