AppealRecords.razor 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. @page "/AppealRecords"
  2. @using Microsoft.Extensions.Configuration
  3. @inject IConfiguration configuration
  4. @{
  5. RenderFragment appealIcon =
  6. @<svg t="1640841864723" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1655"><path d="M430.1 568.2l79 79c2.5 2.5 4.3 5.6 5.1 9.1l17.9 71.8c3.7 14.7 22 19.8 32.7 9.1l213.5-213.5c10.7-10.7 5.6-29-9-32.7l-71.8-18.1c-3.4-0.9-6.5-2.6-9-5.1L420.1 199.6c-2.5-2.5-4.3-5.6-5.1-9.1l-17.9-71.8c-3.7-14.7-22-19.8-32.7-9.1L151 323.1c-10.7 10.7-5.6 29 9.1 32.7l71.8 17.9c3.4 0.9 6.6 2.6 9.1 5.1l79 79c7.6 7.6 7.6 19.9 0 27.5L140.4 664.9c-22.8 22.8-22.8 59.9 0 82.7 22.8 22.8 59.9 22.8 82.7 0l179.4-179.4c7.6-7.6 19.9-7.6 27.6 0zM865.9 920H386c-19.1 0-34.8-15.6-34.8-34.8 0-19.1 15.6-34.8 34.8-34.8h479.9c19.1 0 34.8 15.6 34.8 34.8 0 19.2-15.6 34.8-34.8 34.8z" fill="#151515" p-id="1656"></path></svg>;
  7. RenderFragment avatar = @<Avatar Src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png"></Avatar>;
  8. }
  9. <PageContainer>
  10. <Breadcrumb>
  11. <Breadcrumb>
  12. <BreadcrumbItem>
  13. <a href="/Home"><Icon Type="home"></Icon></a>
  14. </BreadcrumbItem>
  15. <BreadcrumbItem>
  16. <Icon Component="appealIcon" Style="width:18px;height:18px;" /><span>申诉记录查看</span>
  17. </BreadcrumbItem>
  18. </Breadcrumb>
  19. </Breadcrumb>
  20. <Content>
  21. <Collapse DefaultActiveKey="@(new[]{"1"})">
  22. <Panel Header="检索条件" Key="1" ShowArrow="false" Active="@ShowSearchPanel">
  23. <ExtraTemplate>
  24. @if (ShowSearchPanel)
  25. {
  26. <div @onclick="()=> { ShowSearchPanel = !ShowSearchPanel; }">隐藏</div>
  27. }
  28. else
  29. {
  30. <div @onclick="()=> { ShowSearchPanel = !ShowSearchPanel; }">展开</div>
  31. }
  32. </ExtraTemplate>
  33. <ChildContent>
  34. <Form @ref="_form" Model="_filter" Size="@AntSizeLDSType.Small">
  35. <Row Gutter="(16,0)">
  36. <GridCol Span="6">
  37. <FormItem Label="@($" 申诉类型")">
  38. <Select DataSource="@AppealTypes"
  39. @bind-Value="@context.AppealTypeId"
  40. LabelName="@nameof(wispro.sp.entity.AppealType.Name)"
  41. ValueName="@nameof(wispro.sp.entity.AppealType.Id)"
  42. Style="width: 170px"
  43. Placeholder="请选择"
  44. AllowClear>
  45. </Select>
  46. @*<Input @bind-Value="@context.AppealTypeId" Placeholder="placeholder" />*@
  47. </FormItem>
  48. </GridCol>
  49. <GridCol Span="6">
  50. <FormItem Label="@($"案件编号")">
  51. <Input @bind-Value="@context.CaseNo" Placeholder="请输入案件编号" />
  52. </FormItem>
  53. </GridCol>
  54. <GridCol Span="6">
  55. <FormItem Label="@($"申 诉 人")">
  56. <Input @bind-Value="@context.CreateUser" Placeholder="请输入申诉人名称" />
  57. </FormItem>
  58. </GridCol>
  59. <GridCol Span="6">
  60. <FormItem Label="@($"审 核 人")">
  61. <Input @bind-Value="@context.Reviewer" Placeholder="请输入审核人名称" />
  62. </FormItem>
  63. </GridCol>
  64. <GridCol Span="6">
  65. <FormItem Label="@($"申诉日期从")">
  66. <DatePicker @bind-Value="@context.beginCreateTime" TValue="DateTime?" Picker="@DatePickerType.Date" />
  67. @*<Input @bind-Value="@context.beginCreateTime" />*@
  68. </FormItem>
  69. </GridCol>
  70. <GridCol Span="6">
  71. <FormItem Label="@($" 到")">
  72. <DatePicker @bind-Value="@context.endCreateTime" TValue="DateTime?" Picker="@DatePickerType.Date" />
  73. @*<Input @bind-Value="@context.endCreateTime" />*@
  74. </FormItem>
  75. </GridCol>
  76. <GridCol Span="6">
  77. <FormItem Label="@($"审核日期从")">
  78. <DatePicker @bind-Value="@context.beginReviewTime" TValue="DateTime?" Picker="@DatePickerType.Date" />
  79. @*<Input @bind-Value="@context.beginReviewTime" />*@
  80. </FormItem>
  81. </GridCol>
  82. <GridCol Span="6">
  83. <FormItem Label="@($" 到")">
  84. <DatePicker @bind-Value="@context.endReviewTime" TValue="DateTime?" Picker="@DatePickerType.Date" />
  85. @*<Input @bind-Value="@context.endReviewTime" />*@
  86. </FormItem>
  87. </GridCol>
  88. </Row>
  89. <Row>
  90. <GridCol Span="24" Style="text-align:right;">
  91. <Button Type="primary" HtmlType="submit" OnClick="OnSearch">查询</Button>
  92. <Button Style="margin: 0 8px;" OnClick="()=>{_form?.Reset();}">清除</Button>
  93. </GridCol>
  94. </Row>
  95. </Form>
  96. </ChildContent>
  97. </Panel>
  98. </Collapse>
  99. </Content>
  100. <ChildContent>
  101. <wispro.sp.web.Components.SSTable Datas="@showRecords" ShowAction="false"></wispro.sp.web.Components.SSTable>
  102. @*<div style="height:600px;width:100%;overflow:auto;background:#FFFFFF;" id="div-Container">
  103. <AntList DataSource="@showRecords" TItem="AppealRecord">
  104. <ListItem OnClick="()=>ShowDetail(context)">
  105. <ListItemMeta AvatarTemplate="avatar" Description="@GetDescription(context)">
  106. <TitleTemplate>
  107. @context.Type.Name
  108. </TitleTemplate>
  109. </ListItemMeta>
  110. </ListItem>
  111. </AntList>
  112. <Drawer Style="position:absolute" Width="600" Visible="_ShowDetail" Placement="right" Title='("申诉详情")' OnClose="_=>CloseDetail()">
  113. @if (CurrentAppealRecord != null && CurrentAppealRecord.Item != null)
  114. {
  115. <div>
  116. <Row>
  117. <AntDesign.Col Span="4"><b>我方文号:</b></AntDesign.Col>
  118. <AntDesign.Col Span="8">@CurrentAppealRecord.Item.CaseNo</AntDesign.Col>
  119. <AntDesign.Col Span="4"><b>处理事项:</b></AntDesign.Col>
  120. <AntDesign.Col Span="8">@CurrentAppealRecord.Item.DoItem</AntDesign.Col>
  121. </Row>
  122. <Row>
  123. <AntDesign.Col Span="4"><b>案件名称:</b></AntDesign.Col>
  124. <AntDesign.Col Span="20">@CurrentAppealRecord.Item.CaseName</AntDesign.Col>
  125. </Row>
  126. </div>
  127. }
  128. @if (_FieldValues != null)
  129. {
  130. <Divider Orientation="left" Style="font-weight:bold">申诉人:@CurrentAppealRecord.Creater.Name 申诉时间:@CurrentAppealRecord.CreateTime.ToString("yyyy-MM-dd") </Divider>
  131. foreach (InputFieldValue temValue in _FieldValues)
  132. {
  133. <Row>
  134. <AntDesign.Col Span="2"></AntDesign.Col>
  135. <AntDesign.Col Span="8"><b>@temValue.InputField.FieldName:</b></AntDesign.Col>
  136. <AntDesign.Col Span="14">@temValue.Value</AntDesign.Col>
  137. </Row>
  138. }
  139. }
  140. <Divider />
  141. @if (_ReviewValues != null)
  142. {
  143. <Divider Orientation="left" Style="font-weight:bold">审核人:@CurrentAppealRecord.Reviewer.Name 审核时间:@CurrentAppealRecord.ReviewTime?.ToString("yyyy-MM-dd") </Divider>
  144. foreach (InputFieldValue temValue in _ReviewValues)
  145. {
  146. <Row>
  147. <AntDesign.Col Span="2"></AntDesign.Col>
  148. <AntDesign.Col Span="8"><b>@temValue.InputField.FieldName:</b></AntDesign.Col>
  149. <AntDesign.Col Span="14">@temValue.Value</AntDesign.Col>
  150. </Row>
  151. }
  152. }
  153. @if (attachFiles != null && attachFiles.Count > 0)
  154. {
  155. <Divider Orientation="left" Style="font-weight:bold">附件</Divider>
  156. <Row>
  157. <AntDesign.Col Span="2"></AntDesign.Col>
  158. <AntDesign.Col Span="14">文件名称</AntDesign.Col>
  159. <AntDesign.Col Span="8">上传人</AntDesign.Col>
  160. </Row>
  161. @foreach (AttachFile file in attachFiles)
  162. {
  163. <Row>
  164. <AntDesign.Col Span="2"></AntDesign.Col>
  165. <AntDesign.Col Span="14"><a href="@($"{configuration.GetValue<string>("APIUrl")}AttachFiles/Download?id={file.Id}")">@file.Name </a></AntDesign.Col>
  166. <AntDesign.Col Span="8">@file.UploadUser.Name</AntDesign.Col>
  167. </Row>
  168. }
  169. }
  170. </Drawer>
  171. </div>*@
  172. </ChildContent>
  173. </PageContainer>