4 Комити b2c851454e ... 931654530a

Аутор SHA1 Порука Датум
  seimin 931654530a 优化 пре 3 недеља
  seimin d366bd1df6 演示平台 пре 3 недеља
  seimin a66d7f1773 Merge branch 'master' of http://git.dashitech.com/seimin/zy-pc пре 3 недеља
  seimin db4ccafa5a 检查可以修改患者信息和申请科室 пре 3 недеља

+ 6 - 6
src/app/services/main.service.ts

@@ -38,7 +38,7 @@ export class MainService {
38 38
     let data:any = {
39 39
       username: name,
40 40
       password: pwd,
41
-			captcha: captcha, 
41
+			captcha: captcha,
42 42
 			captchaId: captchaId,
43 43
       type: "PC",
44 44
     };
@@ -325,10 +325,10 @@ export class MainService {
325 325
     });
326 326
   }
327 327
   //服务台新建工单—调度台建单获取起点科室或者终点科室列表
328
-  getdeptList(taskTypeId, patientCode?, startTime?, endTime?) {
328
+  getdeptList(taskTypeId, applyDeptId?, patientCode?, startTime?, endTime?) {
329 329
     return this.http.post(
330 330
       host.host + "/ser/getdeptList",
331
-      { taskTypeId, patientCode: patientCode || undefined, startTime, endTime },
331
+      { taskTypeId, patientDeptId: applyDeptId || undefined,  patientCode: patientCode || undefined, startTime, endTime },
332 332
       { headers: this.headers }
333 333
     );
334 334
   }
@@ -1272,19 +1272,19 @@ export class MainService {
1272 1272
 		  headers: this.headers,
1273 1273
 		});
1274 1274
 	}
1275
-	
1275
+
1276 1276
 	// 故障工单-告警信息-建单
1277 1277
 	addAlarmIncident(data){
1278 1278
 		return this.http.post(host.host + `/flow/incident/task/createAlarmIncident`, data, {
1279 1279
 		  headers: this.headers,
1280 1280
 		});
1281 1281
 	}
1282
-	
1282
+
1283 1283
 	// 获取登录验证码
1284 1284
 	getLoginCode(data){
1285 1285
 		return this.http.get(host.host + "/auth/captcha", {});
1286 1286
 	}
1287
-	
1287
+
1288 1288
 	// 根据包号查看标本
1289 1289
 	getInfoPack(packageId, data){
1290 1290
 		return this.http.post(host.host + `/nurse/specimen/getInfo/${packageId}`, data);

+ 17 - 0
src/app/share/add-inspect-info/add-inspect-info.component.html

@@ -3,6 +3,23 @@
3 3
     <div class="title">新增检查信息<i class="icon_transport transport-guanbi" (click)="hideModal()"></i></div>
4 4
     <div class="content">
5 5
       <div class="tableWrap">
6
+        <div class="row">
7
+          <div class="formItem flex_1">
8
+            <div class="name"><i class="icon_transport transport-required red"></i>申请科室:</div>
9
+            <div class="value">
10
+              <nz-select class="w100" [nzDropdownMatchSelectWidth]="false" [(ngModel)]="inspectData.applyDeptId" nzShowSearch nzPlaceHolder="请选择申请科室" nzServerSearch (nzOnSearch)="searchApplyDept($event)" (nzOpenChange)="openApplyDept($event)" (ngModelChange)="changeApplyDept($event)">
11
+                <ng-container *ngFor="let data of applyDeptList">
12
+                  <nz-option *ngIf="!isLoading" [nzLabel]="data.dept" [nzValue]="data.id">
13
+                  </nz-option>
14
+                </ng-container>
15
+                <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
16
+                  <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
17
+                </nz-option>
18
+              </nz-select>
19
+            </div>
20
+          </div>
21
+        </div>
22
+
6 23
         <div class="row">
7 24
           <div class="formItem flex_1">
8 25
             <div class="name"><i class="icon_transport transport-required red"></i>患者信息:</div>

+ 48 - 2
src/app/share/add-inspect-info/add-inspect-info.component.ts

@@ -33,6 +33,7 @@ export class AddInspectInfoComponent implements OnInit {
33 33
   }; //检查项目
34 34
   changeInspectSubject = new Subject(); //防抖
35 35
   changePatientSubject = new Subject(); //防抖
36
+  changeApplyDeptSubject = new Subject(); //防抖
36 37
 
37 38
   ngOnInit() {
38 39
     //防抖
@@ -42,6 +43,9 @@ export class AddInspectInfoComponent implements OnInit {
42 43
     this.changePatientSubject.pipe(debounceTime(500)).subscribe((v) => {
43 44
       this.getPatientList(v[0]);
44 45
     });
46
+    this.changeApplyDeptSubject.pipe(debounceTime(500)).subscribe((v) => {
47
+      this.getApplyDeptList(v[0]);
48
+    });
45 49
     this.hosId = this.tool.getCurrentHospital().id;
46 50
     this.currentDept = this.tool.getCurrentUserDept();
47 51
   }
@@ -75,6 +79,10 @@ export class AddInspectInfoComponent implements OnInit {
75 79
     this.patientDTO = this.patientList.find(v => v.id == this.inspectData.patientId) || {};
76 80
   }
77 81
 
82
+  changeApplyDept(e){
83
+    this.inspectData.patientId = undefined;
84
+  }
85
+
78 86
   // 关闭弹窗
79 87
   hideModal() {
80 88
     this.closeModelHs.emit(JSON.stringify({ show: false }));//emits(向上弹射)事件
@@ -139,9 +147,46 @@ export class AddInspectInfoComponent implements OnInit {
139 147
     }
140 148
   }
141 149
 
150
+  // =========================申请科室=====================
151
+  applyDeptList: Array<any>; //申请科室列表
152
+  // 获取申请科室
153
+  getApplyDeptList(keyword = '') {
154
+    let postData = {
155
+      idx: 0,
156
+      sum: 10,
157
+      department:{
158
+	  		hospital: {
159
+					id: this.hosId
160
+				},
161
+				dept: keyword
162
+	  	}
163
+    };
164
+    this.isLoading = true;
165
+    this.mainService
166
+      .getFetchDataList("data", "department",postData)
167
+      .subscribe((data:any) => {
168
+        this.isLoading = false;
169
+        this.applyDeptList = data.list || [];
170
+      });
171
+  }
172
+
173
+  // 边输边搜节流阀
174
+  searchApplyDept(e) {
175
+    this.isLoading = true;
176
+    this.changeApplyDeptSubject.next([e]);
177
+  }
178
+
179
+  // 打开
180
+  openApplyDept(e){
181
+    if(e){
182
+      this.getApplyDeptList();
183
+    }
184
+  }
185
+  // =========================申请科室=====================
186
+
142 187
   // =========================患者=====================
143
-  patientList: Array<any>; //检查项目列表
144
-  // 获取检查项目
188
+  patientList: Array<any>; //患者列表
189
+  // 获取患者
145 190
   getPatientList(keyword = '') {
146 191
     let postData = {
147 192
       idx: 0,
@@ -149,6 +194,7 @@ export class AddInspectInfoComponent implements OnInit {
149 194
       hosId: this.hosId,
150 195
       patientName: keyword || undefined,
151 196
       hasBedNum: 1,//有床号
197
+      department: this.inspectData.applyDeptId,
152 198
     };
153 199
     this.isLoading = true;
154 200
     this.mainService

+ 87 - 0
src/app/share/edit-inspect-info2/edit-inspect-info2.component.html

@@ -0,0 +1,87 @@
1
+<div class="save add display_flex align-items_center justify-content_flex-center">
2
+  <div class="modalBody">
3
+    <div class="title">修改检查信息<i class="icon_transport transport-guanbi" (click)="hideModal()"></i>
4
+    </div>
5
+    <div class="content">
6
+      <div class="addForm">
7
+        <div class="row">
8
+          <div class="formItem flex_1">
9
+            <div class="name"><i class="icon_transport transport-required red"></i>申请科室:</div>
10
+            <div class="value">
11
+              <nz-select class="w100" [nzDropdownMatchSelectWidth]="false" [(ngModel)]="inspectData.applyDeptId" nzPlaceHolder="请选择申请科室" nzShowSearch nzServerSearch (nzOnSearch)="searchApplyDept($event)" (nzOpenChange)="openApplyDept($event)" (ngModelChange)="changeApplyDept($event)">
12
+                <ng-container *ngFor="let data of applyDeptList">
13
+                  <nz-option *ngIf="!isLoading" [nzLabel]="data.dept" [nzValue]="data.id">
14
+                  </nz-option>
15
+                </ng-container>
16
+                <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
17
+                  <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
18
+                </nz-option>
19
+              </nz-select>
20
+            </div>
21
+          </div>
22
+        </div>
23
+
24
+        <div class="row">
25
+          <div class="formItem flex_1">
26
+            <div class="name"><i class="icon_transport transport-required red"></i>患者信息:</div>
27
+            <div class="value">
28
+              <nz-select class="w100" [nzDropdownMatchSelectWidth]="false" [(ngModel)]="inspectData.patientId" nzPlaceHolder="请选择患者信息" nzShowSearch nzServerSearch (nzOnSearch)="searchPatient($event)" (nzOpenChange)="openPatient($event)" (ngModelChange)="changePatient($event)">
29
+                <ng-container *ngFor="let data of patientList">
30
+                  <nz-option *ngIf="!isLoading" [nzLabel]="data.patientName + '(' + (data.bedNum || '') + ')' + '-' + data.residenceNo" [nzValue]="data.id">
31
+                  </nz-option>
32
+                </ng-container>
33
+                <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
34
+                  <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
35
+                </nz-option>
36
+              </nz-select>
37
+            </div>
38
+          </div>
39
+        </div>
40
+
41
+        <div class="row">
42
+          <div class="formItem flex_1">
43
+            <div class="name"><i class="icon_transport transport-required red"></i>检查科室:</div>
44
+            <div class="value">
45
+              <nz-select class="w100" [nzDropdownMatchSelectWidth]="false" [(ngModel)]="deptId" nzPlaceHolder="请选择检查科室">
46
+                <ng-container *ngFor="let data of deptList">
47
+                  <nz-option *ngIf="!isLoading" [nzLabel]="data.dept" [nzValue]="data.id">
48
+                  </nz-option>
49
+                </ng-container>
50
+                <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
51
+                  <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
52
+                </nz-option>
53
+              </nz-select>
54
+            </div>
55
+          </div>
56
+        </div>
57
+
58
+        <div class="row">
59
+          <div class="formItem flex_1">
60
+            <div class="name"><i class="icon_transport transport-required red"></i>预约时间:</div>
61
+            <div class="value">
62
+              <nz-date-picker [(ngModel)]="yyDate" [nzShowToday]="false"></nz-date-picker>
63
+              <nz-time-picker [nzDisabled]="!yyDate" class="ml8" nzFormat="HH:mm" [(ngModel)]="yyTime" [nzAllowEmpty]="false">
64
+              </nz-time-picker>
65
+              <button [disabled]="!yyDate" nz-button nzType="primary" class="ml8 mt0" (click)="nextDay()">
66
+                下一日
67
+              </button>
68
+            </div>
69
+          </div>
70
+        </div>
71
+
72
+        <div class="row">
73
+          <div class="formItem flex_1">
74
+            <div class="name"><i class="icon_transport transport-required red" style="visibility: hidden;"></i>医生备注:</div>
75
+            <div class="value">
76
+              <input class="w100" nz-input placeholder="请填写医生备注" [(ngModel)]="remark" />
77
+            </div>
78
+          </div>
79
+        </div>
80
+      </div>
81
+    </div>
82
+    <div class="display_flex justify-content_flex-center">
83
+      <button nzType="primary" nz-button (click)="submitForm()">确认</button>
84
+      <button class="btn cancel" nz-button nzType="default" (click)="hideModal()">取消</button>
85
+    </div>
86
+  </div>
87
+</div>

+ 160 - 0
src/app/share/edit-inspect-info2/edit-inspect-info2.component.less

@@ -0,0 +1,160 @@
1
+.yyTimeError {
2
+  ::ng-deep .ant-time-picker-input,
3
+  ::ng-deep .ant-calendar-picker-input {
4
+    border: 1px solid red !important;
5
+  }
6
+}
7
+.transport-required{
8
+  font-size: 10px;
9
+  margin-right: 4px;
10
+  position: relative;
11
+  bottom: 2px;
12
+}
13
+.row{
14
+  display: flex;
15
+  align-items: center;
16
+  text-align: left;
17
+  margin-top: 32px;
18
+  &:first-of-type{
19
+    margin-top: 0;
20
+  }
21
+  .formItem{
22
+    display: flex;
23
+    align-items: center;
24
+    justify-content: space-between;
25
+    margin-right: 24px;
26
+    &:last-of-type{
27
+      margin-right: 0;
28
+    }
29
+    .name{}
30
+    .value{
31
+      flex: 1;
32
+    }
33
+  }
34
+}
35
+.save {
36
+  position: fixed;
37
+  left: 0;
38
+  top: 0;
39
+  width: 100%;
40
+  height: 100%;
41
+  background: rgba(0, 0, 0, 0.4);
42
+  z-index: 999;
43
+
44
+  .modalBody {
45
+    width: 350px;
46
+    background: #fff;
47
+    border-radius: 5px;
48
+    padding: 10px 20px;
49
+    color: #333;
50
+
51
+    .title {
52
+      width: 100%;
53
+      text-align: center;
54
+      font-size: 18px;
55
+      position: relative;
56
+
57
+      i {
58
+        position: absolute;
59
+        right: 0;
60
+        top: 0;
61
+        font-size: 20px;
62
+        color: #666;
63
+        cursor: pointer;
64
+        padding: 0 5px;
65
+      }
66
+    }
67
+
68
+    .content {
69
+      width: 100%;
70
+      height: 117px;
71
+      background: #f9fafb;
72
+      border: 1px solid #e5e9ed;
73
+      border-radius: 5px;
74
+      overflow: hidden;
75
+      margin-top: 12px;
76
+
77
+      .tips{
78
+        margin-bottom: 19px;
79
+      }
80
+
81
+      div {
82
+        &.icon {
83
+          margin-top: 17px;
84
+
85
+          i {
86
+            color: #34b349;
87
+            font-size: 30px !important;
88
+
89
+            &.transport-wenhao {
90
+              color: #f5a523;
91
+            }
92
+
93
+            &.transport-shibai {
94
+              color: #ff3a52;
95
+            }
96
+          }
97
+        }
98
+
99
+        &.defeat {
100
+          color: #333;
101
+          font-size: 16px;
102
+        }
103
+
104
+        &:nth-child(3) {
105
+          font-size: 14px;
106
+          color: #666;
107
+        }
108
+      }
109
+    }
110
+
111
+    button {
112
+      margin-top: 10px;
113
+
114
+      &.btn {
115
+        margin-left: 8px;
116
+      }
117
+    }
118
+  }
119
+
120
+  // 新增
121
+  &.add {
122
+    .modalBody {
123
+      width: 560px;
124
+      height: auto;
125
+
126
+      .content {
127
+        width: 100%;
128
+        height: auto;
129
+        padding: 32px 16px;
130
+        max-height: 500px;
131
+        overflow-y: auto;
132
+
133
+        .addForm {
134
+          .ant-form-item {
135
+            margin-bottom: 14px;
136
+
137
+            .ant-form-item-label {
138
+              line-height: 14px;
139
+              text-align: left;
140
+            }
141
+          }
142
+        }
143
+
144
+        .editForm {
145
+          .ant-form-item {
146
+            margin-bottom: 14px;
147
+
148
+            .ant-form-item-label {
149
+              line-height: 0;
150
+            }
151
+          }
152
+        }
153
+      }
154
+
155
+      button:nth-child(1) {
156
+        margin-right: 20px;
157
+      }
158
+    }
159
+  }
160
+}

+ 203 - 0
src/app/share/edit-inspect-info2/edit-inspect-info2.component.ts

@@ -0,0 +1,203 @@
1
+import { Component, OnInit, Output, Input } from '@angular/core';
2
+import { EventEmitter } from '@angular/core';
3
+import { NzMessageService } from 'ng-zorro-antd';
4
+import { addDays, startOfMinute, format } from 'date-fns';
5
+import { Subject } from "rxjs";
6
+import { debounceTime } from "rxjs/operators";
7
+import { ToolService } from 'src/app/services/tool.service';
8
+import { MainService } from '../../services/main.service';
9
+
10
+@Component({
11
+  selector: 'app-edit-inspect-info2',
12
+  templateUrl: './edit-inspect-info2.component.html',
13
+  styleUrls: ['./edit-inspect-info2.component.less']
14
+})
15
+
16
+export class EditInspectInfo2Component implements OnInit {
17
+  @Input() date:any;
18
+  @Input() execDeptId:any;
19
+  @Input() remarkText:any;
20
+  @Input() applyDept:any = {};
21
+  @Input() patient:any = {};
22
+  @Input() execDeptList:any[] = [];
23
+  @Output() submitFormHand = new EventEmitter();
24
+  @Output() cancelFlagHand = new EventEmitter();
25
+  yyDate = null; //预约日期-患者其他服务
26
+  yyTime = null; //预约时间-患者其他服务
27
+  deptId = null;
28
+  remark = '';
29
+  deptList:any[] = [];
30
+  isLoading:boolean = false;
31
+  hosId;
32
+
33
+  changePatientSubject = new Subject(); //防抖
34
+  changeApplyDeptSubject = new Subject(); //防抖
35
+
36
+  constructor(
37
+    private message: NzMessageService,
38
+    private tool: ToolService,
39
+    private mainService: MainService,
40
+  ) { }
41
+
42
+  ngOnInit() {
43
+    this.changePatientSubject.pipe(debounceTime(500)).subscribe((v) => {
44
+      this.getPatientList(v[0]);
45
+    });
46
+    this.changeApplyDeptSubject.pipe(debounceTime(500)).subscribe((v) => {
47
+      this.getApplyDeptList(v[0]);
48
+    });
49
+
50
+    this.hosId = this.tool.getCurrentHospital().id;
51
+
52
+    if(this.applyDept){
53
+      this.inspectData.applyDeptId = this.applyDept.id;
54
+      this.applyDeptList = [this.applyDept];
55
+    }
56
+
57
+    if(this.patient){
58
+      this.inspectData.patientId = this.patient.id;
59
+      this.patientList = [this.patient];
60
+    }
61
+
62
+    if(this.date){
63
+      this.yyDate = new Date(this.date);
64
+      this.yyTime = new Date(this.date);
65
+    }
66
+
67
+    if(this.execDeptList){
68
+      this.deptList = this.execDeptList;
69
+    }
70
+
71
+    console.log('this.remarkText:', this.remarkText)
72
+    if(this.remarkText){
73
+      this.remark = this.remarkText;
74
+    }
75
+
76
+    if(this.execDeptId){
77
+      let flag = this.deptList.some(v => v.id == this.execDeptId);
78
+      if(flag){
79
+        this.deptId = this.execDeptId;
80
+      }
81
+    }
82
+  }
83
+
84
+  patientDTO:any = {};
85
+  inspectData:any = {}; //检查项目
86
+  changePatient(e){
87
+    this.patientDTO = this.patientList.find(v => v.id == this.inspectData.patientId) || {};
88
+  }
89
+
90
+  changeApplyDept(e){
91
+    this.inspectData.patientId = undefined;
92
+  }
93
+
94
+  // =========================申请科室=====================
95
+  applyDeptList: Array<any>; //申请科室列表
96
+  // 获取申请科室
97
+  getApplyDeptList(keyword = '') {
98
+    let postData = {
99
+      idx: 0,
100
+      sum: 10,
101
+      department:{
102
+	  		hospital: {
103
+					id: this.hosId
104
+				},
105
+				dept: keyword
106
+	  	}
107
+    };
108
+    this.isLoading = true;
109
+    this.mainService
110
+      .getFetchDataList("data", "department",postData)
111
+      .subscribe((data:any) => {
112
+        this.isLoading = false;
113
+        this.applyDeptList = data.list || [];
114
+      });
115
+  }
116
+
117
+  // 边输边搜节流阀
118
+  searchApplyDept(e) {
119
+    this.isLoading = true;
120
+    this.changeApplyDeptSubject.next([e]);
121
+  }
122
+
123
+  // 打开
124
+  openApplyDept(e){
125
+    if(e){
126
+      this.getApplyDeptList();
127
+    }
128
+  }
129
+  // =========================申请科室=====================
130
+
131
+  // =========================患者=====================
132
+  patientList: Array<any>; //患者列表
133
+  // 获取患者
134
+  getPatientList(keyword = '') {
135
+    let postData = {
136
+      idx: 0,
137
+      sum: 10,
138
+      hosId: this.hosId,
139
+      patientName: keyword || undefined,
140
+      hasBedNum: 1,//有床号
141
+      department: this.inspectData.applyDeptId,
142
+    };
143
+    this.isLoading = true;
144
+    this.mainService
145
+      .listMsgByMain('listPatient',postData)
146
+      .subscribe((data:any) => {
147
+        this.isLoading = false;
148
+        this.patientList = data.list || [];
149
+      });
150
+  }
151
+
152
+  // 边输边搜节流阀
153
+  searchPatient(e) {
154
+    this.isLoading = true;
155
+    this.changePatientSubject.next([e]);
156
+  }
157
+
158
+  // 打开
159
+  openPatient(e){
160
+    if(e){
161
+      this.getPatientList();
162
+    }
163
+  }
164
+  // =========================患者=====================
165
+
166
+  // 下一日(患者其他服务)
167
+  nextDay() {
168
+    this.yyDate = addDays(this.yyDate, 1);
169
+  }
170
+
171
+  // 隐藏模态框
172
+  hideModal() {
173
+    this.cancelFlagHand.emit(false)
174
+  }
175
+
176
+  // 表单提交
177
+  submitForm(): void {
178
+    if(!this.inspectData.applyDeptId) {
179
+      this.message.warning('请选择申请科室!');
180
+      return;
181
+    }
182
+    if(!this.inspectData.patientId) {
183
+      this.message.warning('请选择患者信息!');
184
+      return;
185
+    }
186
+    if(!this.deptId) {
187
+      this.message.warning('请选择检查科室!');
188
+      return;
189
+    }
190
+    if(!this.yyDate || !this.yyTime) {
191
+      this.message.warning('请选择完整预约时间!');
192
+      return;
193
+    }
194
+    this.submitFormHand.emit({
195
+      applyDeptId: this.inspectData.applyDeptId,
196
+      patientDTO: this.patientList.find(v => v.id == this.inspectData.patientId),
197
+      deptId: this.deptId,
198
+      remark: this.remark,
199
+      date: format(this.yyDate, 'yyyy-MM-dd') + ' ' + format(startOfMinute(this.yyTime), 'HH:mm:ss'),
200
+    });
201
+  }
202
+}
203
+

+ 3 - 0
src/app/share/share.module.ts

@@ -62,6 +62,7 @@ import { StringToFirstValuePipe } from '../pipes/string-to-first-name.pipe';
62 62
 import { BusinessDataDetailInfoModalComponent } from './businessData-detail-info-modal/businessData-detail-info-modal.component';
63 63
 import { SelectDateComponent } from './select-date/select-date.component';
64 64
 import { EditInspectInfoComponent } from './edit-inspect-info/edit-inspect-info.component';
65
+import { EditInspectInfo2Component } from './edit-inspect-info2/edit-inspect-info2.component';
65 66
 import { AddInspectInfoComponent } from './add-inspect-info/add-inspect-info.component';
66 67
 import { SelectRemarkComponent } from './select-remark/select-remark.component';
67 68
 import { AddInspectModalComponent } from './add-inspect-modal/add-inspect-modal.component';
@@ -140,6 +141,7 @@ import { ViewSpecimenComponent } from './view-specimen/view-specimen.component';
140 141
     MedicalWasteLogPromptModalComponent,
141 142
     SelectDateComponent,
142 143
     EditInspectInfoComponent,
144
+    EditInspectInfo2Component,
143 145
     AddInspectInfoComponent,
144 146
     SelectRemarkComponent,
145 147
     AddInspectModalComponent,
@@ -226,6 +228,7 @@ import { ViewSpecimenComponent } from './view-specimen/view-specimen.component';
226 228
     MedicalWasteLogPromptModalComponent,
227 229
     SelectDateComponent,
228 230
     EditInspectInfoComponent,
231
+    EditInspectInfo2Component,
229 232
     AddInspectInfoComponent,
230 233
     SelectRemarkComponent,
231 234
     AddInspectModalComponent,

+ 8 - 8
src/app/views/fuwutai/fuwutai.component.ts

@@ -5094,7 +5094,7 @@ export class FuwutaiComponent implements OnInit {
5094 5094
     }
5095 5095
 		if (type === "start" && this.deptZyList["startStatus"] == 202) {
5096 5096
 		  //固定科室范围,禁止搜索
5097
-			this.mainService.getdeptList(this.radioValueZy).subscribe((data:any) => {
5097
+			this.mainService.getdeptList(this.radioValueZy, this.applyDept).subscribe((data:any) => {
5098 5098
 				if(data.startDept){
5099 5099
 					data.startDept.forEach(i=>{
5100 5100
 						if(i.inputcode){
@@ -5114,7 +5114,7 @@ export class FuwutaiComponent implements OnInit {
5114 5114
 		  return;
5115 5115
 		} else if (type === "end" && this.deptZyList["endStatus"] == 202) {
5116 5116
 		  //固定科室范围,禁止搜索
5117
-			this.mainService.getdeptList(this.radioValueZy).subscribe((data:any) => {
5117
+			this.mainService.getdeptList(this.radioValueZy, this.applyDept).subscribe((data:any) => {
5118 5118
 				if(data.endDept){
5119 5119
 					data.endDept.forEach(i=>{
5120 5120
 						if(i.inputcode){
@@ -5192,7 +5192,7 @@ export class FuwutaiComponent implements OnInit {
5192 5192
     }
5193 5193
     if (type === "start" && this.deptQtList["startStatus"] == 202) {
5194 5194
       //固定科室范围,禁止搜索
5195
-			this.mainService.getdeptList(this.psValue).subscribe((data:any) => {
5195
+			this.mainService.getdeptList(this.psValue, this.applyDept).subscribe((data:any) => {
5196 5196
 				if(data.startDept){
5197 5197
 					data.startDept.forEach(i=>{
5198 5198
 						if(i.inputcode){
@@ -5212,7 +5212,7 @@ export class FuwutaiComponent implements OnInit {
5212 5212
       return;
5213 5213
     } else if (type === "end" && this.deptQtList["endStatus"] == 202) {
5214 5214
       //固定科室范围,禁止搜索
5215
-			this.mainService.getdeptList(this.psValue).subscribe((data:any) => {
5215
+			this.mainService.getdeptList(this.psValue, this.applyDept).subscribe((data:any) => {
5216 5216
 				if(data.endDept){
5217 5217
 					data.endDept.forEach(i=>{
5218 5218
 						if(i.inputcode){
@@ -5557,7 +5557,7 @@ export class FuwutaiComponent implements OnInit {
5557 5557
     // 返回值的status是204 则让前端自己调用科室搜索接口-自主填写
5558 5558
     // 返回值的status是205 则是固定科室类型,会返回科室列表
5559 5559
     // 返回值的status是206 则是默认患者所在科室,把患者所在科室作为值
5560
-    this.mainService.getdeptList(value, patientCode, (taskType.associationTypeValue === 'inspect' ? format(startOfDay(this.inspectToday), 'yyyy-MM-dd HH:mm:ss') : undefined), (taskType.associationTypeValue === 'inspect' ? format(endOfDay(this.inspectToday), 'yyyy-MM-dd HH:mm:ss') : undefined)).subscribe((data:any) => {
5560
+    this.mainService.getdeptList(value, this.applyDept, patientCode, (taskType.associationTypeValue === 'inspect' ? format(startOfDay(this.inspectToday), 'yyyy-MM-dd HH:mm:ss') : undefined), (taskType.associationTypeValue === 'inspect' ? format(endOfDay(this.inspectToday), 'yyyy-MM-dd HH:mm:ss') : undefined)).subscribe((data:any) => {
5561 5561
 			if(data.startDept){
5562 5562
 				data.startDept.forEach(i=>{
5563 5563
 					if(i.inputcode){
@@ -5749,7 +5749,7 @@ export class FuwutaiComponent implements OnInit {
5749 5749
     // 返回值的status是203 则是固定科室,会返回单个科室
5750 5750
     // 返回值的status是204 则让前端自己调用科室搜索接口
5751 5751
     // 返回值的status是205 则是固定科室类型,会返回科室列表
5752
-    this.mainService.getdeptList(value).subscribe((data:any) => {
5752
+    this.mainService.getdeptList(value, this.applyDept).subscribe((data:any) => {
5753 5753
 			if(data.startDept){
5754 5754
 				data.startDept.forEach(i=>{
5755 5755
 					if(i.inputcode){
@@ -7268,7 +7268,7 @@ export class FuwutaiComponent implements OnInit {
7268 7268
         patientCode = undefined;
7269 7269
       }
7270 7270
 
7271
-      this.mainService.getdeptList(value, patientCode, (taskType.associationTypeValue === 'inspect' ? format(startOfDay(this.inspectToday), 'yyyy-MM-dd HH:mm:ss') : undefined), (taskType.associationTypeValue === 'inspect' ? format(endOfDay(this.inspectToday), 'yyyy-MM-dd HH:mm:ss') : undefined)).subscribe((data:any) => {
7271
+      this.mainService.getdeptList(value, this.applyDept, patientCode, (taskType.associationTypeValue === 'inspect' ? format(startOfDay(this.inspectToday), 'yyyy-MM-dd HH:mm:ss') : undefined), (taskType.associationTypeValue === 'inspect' ? format(endOfDay(this.inspectToday), 'yyyy-MM-dd HH:mm:ss') : undefined)).subscribe((data:any) => {
7272 7272
         this.linkCheckLis = [];
7273 7273
         if(data.data && Array.isArray(data.data.data) && data.data.data.length) {
7274 7274
           let arr = [];
@@ -7334,7 +7334,7 @@ export class FuwutaiComponent implements OnInit {
7334 7334
 
7335 7335
   refreshInspectList(){
7336 7336
     this.linkCheckLis = [];
7337
-    this.mainService.getdeptList(this.radioValueZy, this.patientZy, format(startOfDay(this.inspectToday), 'yyyy-MM-dd HH:mm:ss'), format(endOfDay(this.inspectToday), 'yyyy-MM-dd HH:mm:ss')).subscribe((data:any) => {
7337
+    this.mainService.getdeptList(this.radioValueZy, this.applyDept, this.patientZy, format(startOfDay(this.inspectToday), 'yyyy-MM-dd HH:mm:ss'), format(endOfDay(this.inspectToday), 'yyyy-MM-dd HH:mm:ss')).subscribe((data:any) => {
7338 7338
       if (data.data && Array.isArray(data.data.data) && data.data.data.length) {
7339 7339
         let arr = [];
7340 7340
         data.data.data.forEach((e) => {

+ 1 - 1
src/app/views/inspect-search/inspect-search.component.html

@@ -100,7 +100,7 @@
100 100
 </app-prompt-modal>
101 101
 
102 102
 <!-- 修改检查 -->
103
-<app-edit-inspect-info [execDeptList]="coopData.inspectCheckType && coopData.inspectCheckType.deptList" [execDeptId]="coopData.execDept && coopData.execDept.id" [remarkText]="coopData.remark" [date]="coopData.yyTime" *ngIf="isShowSelectDate" (submitFormHand)="submitSelectDate($event)" (cancelFlagHand)="cancelSelectDate($event)"></app-edit-inspect-info>
103
+<app-edit-inspect-info2 [patient]="coopData.patientDTO" [applyDept]="coopData.applyDept" [execDeptList]="coopData.inspectCheckType && coopData.inspectCheckType.deptList" [execDeptId]="coopData.execDept && coopData.execDept.id" [remarkText]="coopData.remark" [date]="coopData.yyTime" *ngIf="isShowSelectDate" (submitFormHand)="submitSelectDate($event)" (cancelFlagHand)="cancelSelectDate($event)"></app-edit-inspect-info2>
104 104
 
105 105
 <!-- 新增检查 -->
106 106
 <app-add-inspect-info *ngIf="isShowAddInspect" (closeModelHs)="closeAddInspectModel($event)" (confirmModelHs)="confirmAddInspectModel($event)"></app-add-inspect-info>

+ 7 - 2
src/app/views/inspect-search/inspect-search.component.ts

@@ -217,7 +217,7 @@ export class InspectSearchComponent implements OnInit {
217 217
         patientName: obj.patientDTO.patientName,
218 218
         barCode: obj.patientDTO.barCode,
219 219
         inspectCheckType: { id: obj.inspectData.id },
220
-        applyDeptId: this.tool.getCurrentUserDept().id,
220
+        applyDeptId: obj.inspectData.applyDeptId,
221 221
         execDeptId: obj.inspectData.execDeptId,
222 222
         bedNum: obj.patientDTO.bedNum,
223 223
         hosId: this.searchCriteria.hospital,
@@ -252,12 +252,17 @@ export class InspectSearchComponent implements OnInit {
252 252
 
253 253
   // 修改检查项目-确定
254 254
   maskFlag: any = false;
255
-  submitSelectDate({date, deptId, remark}){
255
+  submitSelectDate({date, deptId, remark, applyDeptId, patientDTO}){
256 256
     let postData = {
257 257
       id: this.coopData.id,
258 258
       yyTime: date || undefined,
259 259
       execDeptId: deptId,
260 260
       remark,
261
+      applyDeptId,
262
+      patientCode: patientDTO.patientCode,
263
+      patientName: patientDTO.patientName,
264
+      barCode: patientDTO.barCode,
265
+      bedNum: patientDTO.bedNum,
261 266
     }
262 267
     this.maskFlag = this.message.loading("正在加载中..", {
263 268
       nzDuration: 0,

+ 2 - 2
upload/production.js

@@ -1,11 +1,11 @@
1 1
 const shell = require('shelljs')
2 2
 const path = require('path');
3 3
 const config = {
4
-  ip: "47.113.226.223", // ssh地址
4
+  ip: "47.115.219.94", // ssh地址
5 5
   username: "root", // ssh 用户名
6 6
   port: 22,      //端口
7 7
   password: "DStech@123", // ssh 密码
8
-  path: '/home/itsm/project/html2/pc', // 上传地址,删除地址
8
+  path: '/home/itsm/project/front/pc', // 上传地址,删除地址
9 9
   buildPath: '../dist/pc' // 本地打包后文件地址
10 10
 }
11 11
 let Client = require('ssh2-sftp-client');