seimin 8 місяців тому
батько
коміт
c223fc393e

+ 1 - 1
proxy.conf.json

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "/service": {
3
-		"target": "http://192.168.3.108",
3
+		"target": "http://192.168.4.105",
4 4
     "logLevel": "debug",
5 5
     "changeOrigin": true,
6 6
     "pathRewrite": {

+ 1 - 1
src/app/share/inspection-address-department-prompt-modal/inspection-address-department-prompt-modal.component.html

@@ -1,6 +1,6 @@
1 1
 <div class="modal display_flex justify-content_flex-center align-items_center" *ngIf="show">
2 2
   <div class="modalBody">
3
-    <div class="title">批量关联科室<i class="icon_transport transport-guanbi" (click)="hideModal()"></i></div>
3
+    <div class="title">批量关联科室<span class="red">(没有楼栋的科室无法查询到)</span><i class="icon_transport transport-guanbi" (click)="hideModal()"></i></div>
4 4
     <div class="list-template content">
5 5
       <div class="list-template__content">
6 6
         <div class="list-template__top" nz-row>

+ 1 - 0
src/app/share/inspection-address-department-prompt-modal/inspection-address-department-prompt-modal.component.ts

@@ -144,6 +144,7 @@ export class InspectionAddressDepartmentPromptModalComponent implements OnInit {
144 144
         buildIds: this.searchDto.buildId ? this.searchDto.buildId.toString() : undefined,
145 145
         cascadeHosId: this.currentHospital.id,
146 146
         bussType: 'inspection',
147
+        noBuilding: '查询无楼栋科室',
147 148
       }
148 149
     }
149 150
     this.hsLoading = true;

+ 3 - 3
src/app/views/inspection-address/inspection-address.component.html

@@ -36,9 +36,9 @@
36 36
         <div class="dropdown">
37 37
           <button [disabled]="!checkedDepIds.length" nz-button class="btn default ml8" *ngIf="coopBtns.del || coopBtns.print || coopBtns.reset" (mouseenter)="showDropdown = (checkedDepIds.length ? true : false)" (mouseleave)="showDropdown = false">批量操作</button>
38 38
           <div class="dropdown-content" [hidden]="!showDropdown" (mouseenter)="showDropdown = true" (mouseleave)="showDropdown = false">
39
-            <div class="dropdownItem" (click)="showDelModal(data,'删除后您配置的相关巡检计划,下次执行时不在生成巡检任务,您确认要删除吗?','删除','delList')" *ngIf="coopBtns.del">批量删除</div>
39
+            <div class="dropdownItem" (click)="showDelModal($event, data,'删除后您配置的相关巡检计划,下次执行时不在生成巡检任务,您确认要删除吗?','删除','delList')" *ngIf="coopBtns.del">批量删除</div>
40 40
             <div class="dropdownItem" *ngIf="coopBtns.print" (click)="print($event,true)">批量打印</div>
41
-            <div class="dropdownItem" *ngIf="coopBtns.reset" (click)="showDelModal(data,'您确认要重置二维码吗?','重置','resetList')">批量重置</div>
41
+            <div class="dropdownItem" *ngIf="coopBtns.reset" (click)="showDelModal($event, data,'您确认要重置二维码吗?','重置','resetList')">批量重置</div>
42 42
           </div>
43 43
         </div>
44 44
         <button nz-button class="btn default ml8" (click)='search()'>搜索</button>
@@ -104,7 +104,7 @@
104 104
           <nz-form-item>
105 105
             <nz-form-label [nzSpan]="5" nzRequired nzFor="deptId">关联科室</nz-form-label>
106 106
             <nz-form-control [nzSpan]="19" nzErrorTip="请选择关联科室!">
107
-              <nz-select (nzOnSearch)="changeInp('add', 'department', $event)" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch nzAllowClear formControlName="deptId" nzPlaceHolder="请选择关联科室" (ngModelChange)="changeDepartment($event)" [nzDisabled]="!add">
107
+              <nz-select (nzOnSearch)="changeInp('add', 'department', $event)" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch nzAllowClear formControlName="deptId" nzPlaceHolder="请选择关联科室" (ngModelChange)="changeDepartment($event)" [nzDisabled]="!add" (nzOpenChange)="changeInp('add', 'department', '')">
108 108
                 <ng-container *ngFor="let option of departmentAddList">
109 109
                   <nz-option *ngIf="!isLoading" [nzLabel]="option.dept" [nzValue]="option.id"></nz-option>
110 110
                 </ng-container>

+ 4 - 0
src/app/views/inspection-plan/inspection-plan.component.ts

@@ -56,6 +56,7 @@ export class InspectionPlanComponent implements OnInit {
56 56
   add: boolean; //true:新增;false:编辑
57 57
   validateForm: FormGroup; //新增/编辑表单
58 58
   coopId: number; //当前操作列id
59
+  coopData: any = {}; //当前操作列
59 60
 
60 61
   hosId: any; //当前院区id
61 62
   btnLoading: boolean = false; //提交按钮loading状态
@@ -300,6 +301,8 @@ export class InspectionPlanComponent implements OnInit {
300 301
     } else {
301 302
       //编辑
302 303
       postData = {
304
+        // deleteFlag: this.coopData.deleteFlag,
305
+        ...this.coopData,
303 306
         id: this.coopId,
304 307
         name: this.validateForm.value.name,
305 308
         content: this.validateForm.value.content,
@@ -349,6 +352,7 @@ export class InspectionPlanComponent implements OnInit {
349 352
     this.add = false;
350 353
     this.modal = true;
351 354
     this.coopId = data.id;
355
+    this.coopData = data;
352 356
     this.validateForm.controls.name.setValue(data.name);
353 357
     this.validateForm.controls.content.setValue(data.content);
354 358
     this.validateForm.controls.planType.setValue(data.planType ? data.planType.value : null);