medical-waste-information.component.html 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <div class="list-template">
  2. <div class="list-template__content">
  3. <div class="list-template__top" nz-row>
  4. <div nz-col nzXl='16' class="list-template__searchBox">
  5. <div class="list-template__searchItem">
  6. <span class="label">医废类型:</span>
  7. <nz-select
  8. [nzDropdownMatchSelectWidth]="false"
  9. class="formItem"
  10. nzServerSearch
  11. nzShowSearch
  12. nzAllowClear
  13. nzPlaceHolder="请选择医废类型"
  14. [(ngModel)]="searchCriteria.clinicalWasteType"
  15. (nzOnSearch)="changeInp($event)"
  16. (nzOpenChange)="changeSearch($event)"
  17. >
  18. <ng-container *ngFor="let data of clinicalWasteTypeList">
  19. <nz-option
  20. *ngIf="!isLoading"
  21. nzLabel="{{ data.typeName }}"
  22. nzValue="{{ data.id }}"
  23. ></nz-option>
  24. </ng-container>
  25. <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
  26. <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
  27. </nz-option>
  28. </nz-select>
  29. </div>
  30. <div class="list-template__searchItem">
  31. <span class="label">医废序号:</span>
  32. <input nz-input class="formItem" placeholder="请输入医废序号:" [(ngModel)]="searchCriteria.clinicalWasteSn" />
  33. </div>
  34. <div class="list-template__searchItem">
  35. <span class="label">医废状态:</span>
  36. <nz-select
  37. [nzDropdownMatchSelectWidth]="false"
  38. class="formItem"
  39. nzServerSearch
  40. nzShowSearch
  41. nzAllowClear
  42. nzPlaceHolder="请选择医废状态"
  43. [(ngModel)]="searchCriteria.status"
  44. (nzOpenChange)="changeSearch1($event)"
  45. >
  46. <ng-container *ngFor="let data of types">
  47. <nz-option
  48. *ngIf="!isLoading1"
  49. nzLabel="{{ data.name }}"
  50. nzValue="{{ data.id }}"
  51. ></nz-option>
  52. </ng-container>
  53. <nz-option *ngIf="isLoading1" nzDisabled nzCustomContent>
  54. <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
  55. </nz-option>
  56. </nz-select>
  57. </div>
  58. <div class="list-template__searchItem">
  59. <span class="label">收取时间:</span>
  60. <nz-range-picker nzShowTime [(ngModel)]="searchCriteria.dateRange" (nzOnCalendarChange)="onCalendarChangeDate($event)"></nz-range-picker>
  61. </div>
  62. </div>
  63. <div nz-col nzXl="8" class="list-template__btns">
  64. <button nz-button class="btn default" (click)='reset()'>重置</button>
  65. <button nz-button class="btn default ml8" (click)='getList(1)'>搜索</button>
  66. </div>
  67. </div>
  68. <div class="list-template__bottom">
  69. <nz-table class="list-template__nzTable" [nzData]="listOfData" nzSize="middle" [nzShowPagination]="false"
  70. [nzLoading]="loading1">
  71. <thead>
  72. <tr class="thead">
  73. <th nzWidth="5%">#</th>
  74. <th nzWidth="10%">医废类型</th>
  75. <th nzWidth="10%">序号</th>
  76. <th nzWidth="10%">重量(KG)</th>
  77. <th nzWidth="10%">科室名称</th>
  78. <th nzWidth="10%">收取人</th>
  79. <th nzWidth="10%">收取时间</th>
  80. <th nzWidth="8%">医废状态</th>
  81. <th nzWidth="10%">备注</th>
  82. <th nzWidth="7%">总价</th>
  83. <th nzWidth="10%">操作</th>
  84. </tr>
  85. </thead>
  86. <tbody>
  87. <tr *ngFor="let data of listOfData;let index = index">
  88. <td>{{index+(pageIndex-1) * pageSize + 1}}</td>
  89. <td>{{ data.clinicalWasteType ? data.clinicalWasteType.typeName : '' }}</td>
  90. <td>{{ data.clinicalWasteSn }}</td>
  91. <td>{{ data.weight }}</td>
  92. <td>{{ data.dept ? data.dept.dept: '' }}</td>
  93. <td>{{ data.receivor ? data.receivor.name: '' }}</td>
  94. <td>{{ data.receiveTime | date:"yyyy-MM-dd HH:mm:ss" }}</td>
  95. <td>{{ data.status ? data.status.name : '' }}</td>
  96. <td>{{ data.remark }}</td>
  97. <td>{{ data.totalPrice }}</td>
  98. <td>
  99. <div class="coop">
  100. <span *ngIf="coopBtns.look" (click)="viewHistory(data)">查看日志</span>
  101. <span *ngIf="coopBtns.editNum && data.status.value != 4" (click)="showModal(data)">矫正重量</span>
  102. </div>
  103. </td>
  104. </tr>
  105. </tbody>
  106. </nz-table>
  107. <div class="list-template__pagination">
  108. <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="listLength" [(nzPageSize)]="pageSize"
  109. (nzPageIndexChange)="getList(0)" (nzPageSizeChange)="getList(0)">
  110. </nz-pagination>
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. <!-- 矫正重量模态框 -->
  116. <div class="save add display_flex align-items_center justify-content_flex-center" *ngIf="modal">
  117. <div class="modalBody">
  118. <div class="title">矫正重量<i class="icon_transport transport-guanbi" (click)="hideModal()"></i>
  119. </div>
  120. <overlay-scrollbars #osComponentRef1 class="content">
  121. <div style="height: 50px;line-height: 50px;">原重量:{{coopData.weight}}kg</div>
  122. <form nz-form [formGroup]="validateForm" class="addForm" (ngSubmit)="submitForm()">
  123. <nz-form-item>
  124. <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="weight">矫正重量</nz-form-label>
  125. <nz-form-control nzErrorTip="请填写矫正重量!">
  126. <nz-input-number nz-input formControlName="weight" nzPlaceHolder="请填写矫正重量" [nzMin]="0" [nzStep]="0.01" [nzPrecision]="2"></nz-input-number>
  127. <span class="red">(kg)</span>
  128. </nz-form-control>
  129. </nz-form-item>
  130. </form>
  131. </overlay-scrollbars>
  132. <div class="display_flex justify-content_flex-center">
  133. <button nzType="primary" nz-button (click)="submitForm()" [nzLoading]="btnLoading">确认</button>
  134. <button class="btn cancel" nz-button nzType="default" (click)="hideModal()">取消</button>
  135. </div>
  136. </div>
  137. </div>
  138. <!-- 删除模态框 -->
  139. <app-dialog-delete [delModal]="delModal" (hideDelModalEvent)="hideDelModal()" [btnLoading]="btnLoading" (confirmDelEvent)="confirmDel()" [content]="content"></app-dialog-delete>
  140. <!-- 操作成功/失败提示框 -->
  141. <app-prompt-modal *ngIf="promptModalShow" [content]="promptContent" [success]="ifSuccess" [show]="promptModalShow" [info]="promptInfo"></app-prompt-modal>
  142. <!-- 查看 -->
  143. <app-medical-waste-log-prompt-modal
  144. *ngIf="historyPromptModalShow"
  145. [show]="historyPromptModalShow"
  146. [id]="id"
  147. (closeModelHs)="closeModelHistory($event)"
  148. ></app-medical-waste-log-prompt-modal>