Prechádzať zdrojové kódy

添加审核申诉界面

luocaiyang 4 rokov pred
rodič
commit
5849e586d9

+ 13 - 13
wispro.sp.web/Layouts/BasicLayout.razor

@@ -72,51 +72,51 @@
                 },
                 new MenuDataItem
                 {
-                    Path="/PerformanceList",
+                    Path="/AppCase/ShensuReview/1",
                     Name = "案件系数申诉审核",
                     Key = "app_xishu_confirm"
                 },
                 new MenuDataItem
                 {
-                    Path="/PerformanceList",
+                    Path="/AppCase/ShensuReview/2",
                     Name = "处理事项系数申诉审核",
                     Key = "app_doItemxishu_confirm"
                 },
                 new MenuDataItem
                 {
-                    Path="/PerformanceList",
+                    Path="/AppCase/ShensuReview/3",
                     Name = "处理人错误申诉审核",
                     Key = "app_doperson_confirm"
                 },
                 new MenuDataItem
                 {
-                    Path="/PerformanceList",
+                    Path="/AppCase/ShensuReview/4",
                     Name = "审核人错误申诉审核",
-                    Key = "app_doperson_confirm"
+                    Key = "app_doperson_confirm4"
                 },
                 new MenuDataItem
                 {
-                    Path="/PerformanceList",
+                    Path="/AppCase/ShensuReview/5",
                     Name = "验证超期说明审核",
-                    Key = "app_doperson_confirm1"
+                    Key = "app_doperson_confirm5"
                 },
                 new MenuDataItem
                 {
-                    Path="/PerformanceList",
+                    Path="/AppCase/ShensuReview/6",
                     Name = "案件分配比例申诉审核",
-                    Key = "app_doperson_confirm4"
+                    Key = "app_doperson_confirm6"
                 },
                 new MenuDataItem
                 {
-                    Path="/PerformanceList",
+                    Path="/AppCase/ShensuReview/7",
                     Name = "案件缺漏提报审核",
-                    Key = "app_doperson_confirm2"
+                    Key = "app_doperson_confirm7"
                 },
                 new MenuDataItem
                 {
-                    Path="/PerformanceList",
+                    Path="/AppCase/ShensuReview/8",
                     Name = "涉外新申请算法确认",
-                    Key = "app_doperson_confirm3"
+                    Key = "app_doperson_confirm8"
                 }
             }
         },

+ 18 - 0
wispro.sp.web/Models/InputField.cs

@@ -0,0 +1,18 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace wispro.sp.web.Models
+{
+    public class InputField
+    {
+        public string FieldName { get; set; }
+
+        public string FieldType { get; set; }
+
+        public string FieldValue { get; set; }
+
+        public string MapObjectField { get; set; }
+    }
+}

+ 2 - 0
wispro.sp.web/Models/ProjectInfo.cs

@@ -50,6 +50,8 @@ namespace wispro.sp.web.Models
         public DateTime? FinishedTime { get; set; }
 
         public DateTime CreateTime { get; set; } = DateTime.Now;
+
+        public List<InputField> InputFields { get; set; }
     }
 
     public class TaskHandleInfo

+ 1 - 1
wispro.sp.web/Pages/AppCase/MyCaselist.razor

@@ -74,7 +74,7 @@
     <br />
     <Form Model="_calType" LabelColSpan="6" WrapperColSpan="16">
         <FormItem Label="绩效计算方式">
-            <RadioGroup @bind-Value="@context.Type">
+            <RadioGroup @bind-Value="@context.Type" Disabled="true">
                 <Radio Value="@("按照字数计算绩效")">按照字数计算绩效</Radio>
                 <Radio Value="@("按照件数计算绩效")">按照件数计算绩效</Radio>
             </RadioGroup>

+ 3 - 24
wispro.sp.web/Pages/AppCase/MyCaselist.razor.cs

@@ -1,5 +1,6 @@
 using AntDesign;
 using AntDesign.ProLayout;
+using Microsoft.AspNetCore.Authorization;
 using Microsoft.AspNetCore.Components;
 using Microsoft.AspNetCore.Components.Web;
 using System;
@@ -12,6 +13,7 @@ using wispro.sp.web.Services;
 
 namespace wispro.sp.web.Pages.AppCase
 {
+    [Authorize]
     public partial class MyCaselist
     {
         private List<PerformanceItem> _Datas;
@@ -31,30 +33,7 @@ namespace wispro.sp.web.Pages.AppCase
 
 
 
-        public void HandleSelectUser(MenuItem item)
-        {
-            switch (item.Key)
-            {
-                case "reviewer":
-                    //NavigationManager.NavigateTo("/account/center");
-                    break;
-                case "doPerson":
-                    //NavigationManager.NavigateTo("/account/settings");
-                    break;
-                case "caseCoe":
-                    //authorProvider.LogoutAsync();
-                    //NavigationManager.NavigateTo("/LoginPages");
-                    break;
-                case "itemCoe":
-                    //authorProvider.LogoutAsync();
-                    //NavigationManager.NavigateTo("/LoginPages");
-                    break;
-                case "milPerson":
-                    //authorProvider.LogoutAsync();
-                    //NavigationManager.NavigateTo("/LoginPages");
-                    break;
-            }
-        }
+        
         protected async override Task OnInitializedAsync()
         {
 

+ 78 - 0
wispro.sp.web/Pages/AppCase/ShensuReview.razor

@@ -0,0 +1,78 @@
+@page "/AppCase/ShensuReview/{Id:int}"
+@using wispro.sp.web.Components
+<PageContainer>
+    <Breadcrumb>
+        <Breadcrumb>
+            <BreadcrumbItem>
+                <a href="/Home"><Icon Type="home"></Icon></a>
+            </BreadcrumbItem>
+            <BreadcrumbItem>
+                <Icon Type="setting"></Icon><span>审核</span>
+            </BreadcrumbItem>
+
+        </Breadcrumb>
+    </Breadcrumb>
+    <Content>
+        @*<Button Type="primary" Icon="plus" OnClick="AddNew" Style="float:right">添加</Button>*@
+    </Content>
+    <ChildContent>
+        <Card>
+            <Card Style="width:100%" Bordered>
+                <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="20">@_task.ProjectInfo.CaseName</AntDesign.Col>
+
+                    </Row>
+                </div>
+            </Card>
+            <br />
+            <Card Style="width:100%" Bordered>
+                <div>
+                    <Row>
+                        @foreach (Models.InputField field in _task.InputFields)
+                        {
+                            <AntDesign.Col Span="4"></AntDesign.Col>
+                            <AntDesign.Col Span="6"><b>@field.FieldName:</b></AntDesign.Col>
+                            <AntDesign.Col Span="10">@field.FieldValue</AntDesign.Col>
+                            <AntDesign.Col Span="4"></AntDesign.Col>
+                        }
+                    </Row>
+                    <Row>
+                        <AntDesign.Col Span="4"></AntDesign.Col>
+                        <AntDesign.Col Span="6"><b>附件:</b></AntDesign.Col>
+                        <AntDesign.Col Span="10">
+                            @foreach (UploadFileItem file in fileList)
+                            {
+                                <a href="#">@file.FileName</a><br />
+                            }
+                        </AntDesign.Col>
+                        <AntDesign.Col Span="4"></AntDesign.Col>
+                    </Row>
+                </div>
+            </Card>
+            <Card>
+                <span>审核说明:</span>
+                <TextArea @bind-Value="@Memo" rows="6"></TextArea>
+                <br/><br />
+                <center>
+                    <Space>
+                        <SpaceItem>
+                            <Tooltip Title=@("系统通过后,将改变的栏位值保存到流程管理系统")>
+                                <Button Type="primary">通过</Button>
+                            </Tooltip>
+                        </SpaceItem>
+                        <SpaceItem><Button Danger Type="primary">不通过</Button></SpaceItem>
+                    </Space>
+                </center>
+            </Card>
+        </Card>
+    </ChildContent>
+</PageContainer>

+ 55 - 0
wispro.sp.web/Pages/AppCase/ShensuReview.razor.cs

@@ -0,0 +1,55 @@
+using AntDesign;
+using Microsoft.AspNetCore.Components;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+using wispro.sp.web.Services;
+
+namespace wispro.sp.web.Pages.AppCase
+{
+    public partial class ShensuReview
+    {
+        [Parameter]
+        public int Id { get; set; }
+
+        private string Memo;
+
+        [Inject]
+        private TaskService taskService { get; set; }
+
+        private Models.Task _task;
+
+        List<UploadFileItem> fileList = new List<UploadFileItem>
+            {
+                new UploadFileItem
+                {
+                    Id = "1",
+                    FileName = "客户往来邮件1.jpg",
+                    Url = "#",
+                    State = UploadState.Success
+                },
+                new UploadFileItem
+                {
+                    Id = "2",
+                    FileName = "与客户微信聊天图片.jpg",
+                    Url = "#",
+                    State = UploadState.Success
+                },
+                new UploadFileItem
+                {
+                    Id = "3",
+                    FileName = "附件.docx",
+                    Url = "#",
+                    State = UploadState.Success
+                }
+            };
+
+        protected override void OnInitialized()
+        {
+            base.OnInitialized();
+            _task = taskService.GetTask(Id);
+        }
+
+    }
+}

+ 1 - 0
wispro.sp.web/Pages/StaffGrade.razor.cs

@@ -15,6 +15,7 @@ namespace wispro.sp.web.Pages
     public partial  class StaffGrade
     {
         [Inject] public StaffGradeService _sfService { get; set; }
+        
         private List<wispro.sp.entity.StaffGrade> staffGrades;
         IEnumerable<wispro.sp.entity.StaffGrade> selectedRows;
         

+ 7 - 3
wispro.sp.web/Pages/StartPerformanceCalculation.razor

@@ -41,12 +41,16 @@
                 </div>
                 <div style="visibility:@v5">
                     5、系统通知代理人确认申请案件处理事项信息:
-                    <AntDesign.Progress Percent=_percent5 />
+                    <AntDesign.Progress Percent=_percent5 /><br /><br />
                 </div>
-                
-
+                <div style="visibility:@v6">
+                    6、系统通知系数设定人设定没有案件系数和处理事项系数的绩效数据:
+                    <AntDesign.Progress Percent=_percent6 />
                 </div>
 
+
+            </div>
+
 </Card>
     </ChildContent>
 </PageContainer>

+ 10 - 1
wispro.sp.web/Pages/StartPerformanceCalculation.razor.cs

@@ -16,12 +16,13 @@ namespace wispro.sp.web.Pages
 
         private Model model = new Model();
 
-        int _percent1, _percent2, _percent3, _percent4, _percent5;
+        int _percent1, _percent2, _percent3, _percent4, _percent5, _percent6;
         string v1 = "hidden";
         string v2 = "hidden";
         string v3 = "hidden";
         string v4 = "hidden";
         string v5 = "hidden";
+        string v6 = "hidden";
 
         private async Task start()
         {
@@ -72,6 +73,14 @@ namespace wispro.sp.web.Pages
                 StateHasChanged();
                 await Task.Delay(50);
             }
+
+            v6 = "visible";
+            while (_percent6 < 100)
+            {
+                _percent6++;
+                StateHasChanged();
+                await Task.Delay(50);
+            }
         }
 
         

+ 1 - 0
wispro.sp.web/Program.cs

@@ -35,6 +35,7 @@ namespace wispro.sp.web
             );
             builder.Services.AddScoped<AuthenticationStateProvider, JwtAuthenticationStateProvider>();
             builder.Services.AddScoped<IAuthService, AuthService>();
+            builder.Services.AddScoped<TaskService, TaskService>();
 
             await builder.Build().RunAsync();
         }

+ 52 - 0
wispro.sp.web/Services/TaskService.cs

@@ -0,0 +1,52 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+using wispro.sp.web.Models;
+
+namespace wispro.sp.web.Services
+{
+    public class TaskService
+    {
+        public Models.Task GetTask(int id)
+        {
+            ProjectInfo project = new ProjectInfo()
+            {
+                CaseNo = "WOCN2111703",
+                CaseName = "NETWORK SWITCHING METHOD, APPARATUS, USER EQUIPTMENT, AND STORAGE MEDIUM",
+                DoItem = "新申请",
+                DoPerson = new List<string>() { "李申" }, ResponseMan = ""
+            };
+
+            switch (id)
+            {
+                case 1:
+                    return new Models.Task()
+                    {
+                        Id =1,
+                        ProjectInfo = project,
+                        Name =$"案件{project.CaseNo}申诉审核",
+                        ResponseMan ="李丽",
+                        LimiteDate = new DateTime(2021,10,20),
+                        Type ="申诉审核", CreateTime = DateTime.Now, State="待处理", 
+                        InputFields = new List<InputField>()
+                        {
+                            new(){ FieldName ="申诉类型", FieldType="string", FieldValue="案件系数申诉"},
+                            new(){ FieldName ="案件系数变更为", FieldType="string", FieldValue="A"}
+                        }
+                        
+                    };
+                    break;
+                case 2:
+                    break;
+                case 3:
+                    break;
+                case 4:
+                    break;
+
+            }
+
+            return null;
+        }
+    }
+}