瀏覽代碼

bug修复

seimin 9 月之前
父節點
當前提交
c223fc393e

+ 1 - 1
proxy.conf.json

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

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

@@ -1,6 +1,6 @@
1
 <div class="modal display_flex justify-content_flex-center align-items_center" *ngIf="show">
1
 <div class="modal display_flex justify-content_flex-center align-items_center" *ngIf="show">
2
   <div class="modalBody">
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
     <div class="list-template content">
4
     <div class="list-template content">
5
       <div class="list-template__content">
5
       <div class="list-template__content">
6
         <div class="list-template__top" nz-row>
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
         buildIds: this.searchDto.buildId ? this.searchDto.buildId.toString() : undefined,
144
         buildIds: this.searchDto.buildId ? this.searchDto.buildId.toString() : undefined,
145
         cascadeHosId: this.currentHospital.id,
145
         cascadeHosId: this.currentHospital.id,
146
         bussType: 'inspection',
146
         bussType: 'inspection',
147
+        noBuilding: '查询无楼栋科室',
147
       }
148
       }
148
     }
149
     }
149
     this.hsLoading = true;
150
     this.hsLoading = true;

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

@@ -36,9 +36,9 @@
36
         <div class="dropdown">
36
         <div class="dropdown">
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>
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
           <div class="dropdown-content" [hidden]="!showDropdown" (mouseenter)="showDropdown = true" (mouseleave)="showDropdown = false">
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
             <div class="dropdownItem" *ngIf="coopBtns.print" (click)="print($event,true)">批量打印</div>
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
           </div>
42
           </div>
43
         </div>
43
         </div>
44
         <button nz-button class="btn default ml8" (click)='search()'>搜索</button>
44
         <button nz-button class="btn default ml8" (click)='search()'>搜索</button>
@@ -104,7 +104,7 @@
104
           <nz-form-item>
104
           <nz-form-item>
105
             <nz-form-label [nzSpan]="5" nzRequired nzFor="deptId">关联科室</nz-form-label>
105
             <nz-form-label [nzSpan]="5" nzRequired nzFor="deptId">关联科室</nz-form-label>
106
             <nz-form-control [nzSpan]="19" nzErrorTip="请选择关联科室!">
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
                 <ng-container *ngFor="let option of departmentAddList">
108
                 <ng-container *ngFor="let option of departmentAddList">
109
                   <nz-option *ngIf="!isLoading" [nzLabel]="option.dept" [nzValue]="option.id"></nz-option>
109
                   <nz-option *ngIf="!isLoading" [nzLabel]="option.dept" [nzValue]="option.id"></nz-option>
110
                 </ng-container>
110
                 </ng-container>

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

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