seimin 4 months ago
parent
commit
c7a38cdb4c

+ 2 - 2
src/app/components/incidentManagement/incident-create/incident-create.component.html

@@ -2,7 +2,7 @@
2
  * @Author: seimin
2
  * @Author: seimin
3
  * @Date: 2024-10-24 13:47:40
3
  * @Date: 2024-10-24 13:47:40
4
  * @LastEditors: seimin
4
  * @LastEditors: seimin
5
- * @LastEditTime: 2024-12-09 11:11:15
5
+ * @LastEditTime: 2024-12-09 15:32:35
6
  * @Description: 创建
6
  * @Description: 创建
7
 -->
7
 -->
8
 <!-- 新建工单 -->
8
 <!-- 新建工单 -->
@@ -53,7 +53,7 @@
53
         </div>
53
         </div>
54
         <div class="newTopItem">
54
         <div class="newTopItem">
55
           <span class="grayFont">
55
           <span class="grayFont">
56
-            <nz-radio-group [(ngModel)]="incidentModel.repairIncidentType" (ngModelChange)="changeRepairIncidentType($event)">
56
+            <nz-radio-group [nzDisabled]="buildType === '编辑事件'" [(ngModel)]="incidentModel.repairIncidentType" (ngModelChange)="changeRepairIncidentType($event)">
57
               <label nz-radio [nzValue]="item.value" *ngFor="let item of repairIncidentTypeList">{{item.name}}</label>
57
               <label nz-radio [nzValue]="item.value" *ngFor="let item of repairIncidentTypeList">{{item.name}}</label>
58
             </nz-radio-group>
58
             </nz-radio-group>
59
           </span>
59
           </span>

+ 1 - 1
src/app/views/fuwutai/fuwutai.component.html

@@ -1019,7 +1019,7 @@
1019
           </div>
1019
           </div>
1020
           <div class="newTopItem">
1020
           <div class="newTopItem">
1021
             <span class="grayFont">
1021
             <span class="grayFont">
1022
-              <nz-radio-group [(ngModel)]="incidentModel.repairIncidentType" (ngModelChange)="changeRepairIncidentType($event)">
1022
+              <nz-radio-group [nzDisabled]="buildType === '编辑事件'" [(ngModel)]="incidentModel.repairIncidentType" (ngModelChange)="changeRepairIncidentType($event)">
1023
                 <label nz-radio [nzValue]="item.value" *ngFor="let item of repairIncidentTypeList">{{item.name}}</label>
1023
                 <label nz-radio [nzValue]="item.value" *ngFor="let item of repairIncidentTypeList">{{item.name}}</label>
1024
               </nz-radio-group>
1024
               </nz-radio-group>
1025
             </span>
1025
             </span>

+ 17 - 3
src/app/views/fuwutai/fuwutai.component.ts

@@ -1474,11 +1474,18 @@ export class FuwutaiComponent implements OnInit {
1474
         if (result.state == 200) {
1474
         if (result.state == 200) {
1475
           console.log(result);
1475
           console.log(result);
1476
           if (result.data.length > 0) {
1476
           if (result.data.length > 0) {
1477
+            let deptDTO;
1478
+            if(result.type === 'qrCode'){
1479
+              deptDTO = result.data[0].deptDTO;
1480
+              deptDTO.address = result.data[0].name;
1481
+            }else if(result.type === 'dept'){
1482
+              deptDTO = result.data[0];
1483
+            }
1477
             //绑定了科室
1484
             //绑定了科室
1478
             // if (!this.newOrderShow && !this.newOrderShowOpen) {
1485
             // if (!this.newOrderShow && !this.newOrderShowOpen) {
1479
               let incidentModel:any = Object.assign({}, this.incidentModel);
1486
               let incidentModel:any = Object.assign({}, this.incidentModel);
1480
               let incidentMsg:any = Object.assign({}, this.incidentMsg);
1487
               let incidentMsg:any = Object.assign({}, this.incidentMsg);
1481
-              incidentModel.department = result.data[0];
1488
+              incidentModel.department = deptDTO;
1482
               incidentModel.department && incidentModel.department.hospital && (incidentModel.hosId = incidentModel.department.hospital.parent ? incidentModel.department.hospital.parent.id : incidentModel.department.hospital.id);
1489
               incidentModel.department && incidentModel.department.hospital && (incidentModel.hosId = incidentModel.department.hospital.parent ? incidentModel.department.hospital.parent.id : incidentModel.department.hospital.id);
1483
               incidentModel.department && incidentModel.department.building && (incidentModel.area = incidentModel.department.building.id);
1490
               incidentModel.department && incidentModel.department.building && (incidentModel.area = incidentModel.department.building.id);
1484
               incidentModel.department && incidentModel.department.floor && (incidentModel.place = incidentModel.department.floor.id);
1491
               incidentModel.department && incidentModel.department.floor && (incidentModel.place = incidentModel.department.floor.id);
@@ -1491,7 +1498,7 @@ export class FuwutaiComponent implements OnInit {
1491
               this.incidentModel = incidentModel;
1498
               this.incidentModel = incidentModel;
1492
               this.incidentMsg = incidentMsg;
1499
               this.incidentMsg = incidentMsg;
1493
               this.searchApplicationRequester();
1500
               this.searchApplicationRequester();
1494
-              this.applyDeptMiddle = result.data[0];
1501
+              this.applyDeptMiddle = deptDTO;
1495
               this.showNewOrder("yes", this.incidentModel.incomingPhone, true, '来电弹屏');
1502
               this.showNewOrder("yes", this.incidentModel.incomingPhone, true, '来电弹屏');
1496
             // }
1503
             // }
1497
           } else {
1504
           } else {
@@ -5308,7 +5315,14 @@ export class FuwutaiComponent implements OnInit {
5308
               source && (incidentModel.source = source.id);
5315
               source && (incidentModel.source = source.id);
5309
               if (result.data.length > 0) {
5316
               if (result.data.length > 0) {
5310
                 //绑定了科室
5317
                 //绑定了科室
5311
-                incidentModel.department = result.data[0];
5318
+                let deptDTO;
5319
+                if(result.type === 'qrCode'){
5320
+                  deptDTO = result.data[0].deptDTO;
5321
+                  deptDTO.address = result.data[0].name;
5322
+                }else if(result.type === 'dept'){
5323
+                  deptDTO = result.data[0];
5324
+                }
5325
+                incidentModel.department = deptDTO;
5312
                 incidentModel.department && incidentModel.department.hospital && (incidentModel.hosId = incidentModel.department.hospital.parent ? incidentModel.department.hospital.parent.id : incidentModel.department.hospital.id);
5326
                 incidentModel.department && incidentModel.department.hospital && (incidentModel.hosId = incidentModel.department.hospital.parent ? incidentModel.department.hospital.parent.id : incidentModel.department.hospital.id);
5313
                 incidentModel.department && incidentModel.department.building && (incidentModel.area = incidentModel.department.building.id);
5327
                 incidentModel.department && incidentModel.department.building && (incidentModel.area = incidentModel.department.building.id);
5314
                 incidentModel.department && incidentModel.department.floor && (incidentModel.place = incidentModel.department.floor.id);
5328
                 incidentModel.department && incidentModel.department.floor && (incidentModel.place = incidentModel.department.floor.id);

+ 7 - 7
src/app/views/hushijiandan/hushijiandan.component.html

@@ -1446,7 +1446,7 @@
1446
             <nz-form-item class="datesControl">
1446
             <nz-form-item class="datesControl">
1447
               <nz-form-label [nzSm]="24" [nzXs]="24" nzRequired nzFor="checkedType">任务类型</nz-form-label>
1447
               <nz-form-label [nzSm]="24" [nzXs]="24" nzRequired nzFor="checkedType">任务类型</nz-form-label>
1448
               <nz-form-control nzErrorTip="请选择任务类型!" class="checkedType">
1448
               <nz-form-control nzErrorTip="请选择任务类型!" class="checkedType">
1449
-                <nz-radio-group class="radioGroup" formControlName="checkedType" (ngModelChange)="changeCheckedType()">
1449
+                <nz-radio-group class="radioGroup w100" formControlName="checkedType" (ngModelChange)="changeCheckedType()">
1450
                   <label class="col6 ellipsis-oneline" [title]="item.taskName" *ngFor="let item of checkTypeLis" nz-radio [nzValue]="item.id">{{ item.taskName }}</label>
1450
                   <label class="col6 ellipsis-oneline" [title]="item.taskName" *ngFor="let item of checkTypeLis" nz-radio [nzValue]="item.id">{{ item.taskName }}</label>
1451
                 </nz-radio-group>
1451
                 </nz-radio-group>
1452
               </nz-form-control>
1452
               </nz-form-control>
@@ -1522,7 +1522,7 @@
1522
               <div class="txtC">{{ checkedShowMsg.msg }}</div>
1522
               <div class="txtC">{{ checkedShowMsg.msg }}</div>
1523
             </nz-form-item>
1523
             </nz-form-item>
1524
             <!-- 100015 (护士端一键建单展策略)起点科室和终点科室下拉展示 -->
1524
             <!-- 100015 (护士端一键建单展策略)起点科室和终点科室下拉展示 -->
1525
-            <nz-form-item nz-row *ngIf="checkedShowMsg.status == 100015 || checkedShowMsg.status == 100013">
1525
+            <nz-form-item class="top16bottom0" nz-row *ngIf="checkedShowMsg.status == 100015 || checkedShowMsg.status == 100013">
1526
               <nz-form-label [nzSpan]="3" nzRequired nzFor="originOffice">起点科室</nz-form-label>
1526
               <nz-form-label [nzSpan]="3" nzRequired nzFor="originOffice">起点科室</nz-form-label>
1527
               <nz-form-control [nzSpan]="21" nzErrorTip="请选择起点科室!">
1527
               <nz-form-control [nzSpan]="21" nzErrorTip="请选择起点科室!">
1528
                 <nz-select formControlName="originOffice" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch (nzOnSearch)="searchDept('start', checkedShowMsg, $event)" nzPlaceHolder="请选择起点科室">
1528
                 <nz-select formControlName="originOffice" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch (nzOnSearch)="searchDept('start', checkedShowMsg, $event)" nzPlaceHolder="请选择起点科室">
@@ -1537,20 +1537,20 @@
1537
               </nz-form-control>
1537
               </nz-form-control>
1538
             </nz-form-item>
1538
             </nz-form-item>
1539
             <!-- 其他情况 -->
1539
             <!-- 其他情况 -->
1540
-            <nz-form-item nz-row *ngIf="checkedShowMsg.start && !(checkedShowMsg.status == 100014 || checkedShowMsg.status == 100015)">
1540
+            <nz-form-item class="top16bottom0" nz-row *ngIf="checkedShowMsg.start && (checkedShowMsg.status == 100014 || checkedShowMsg.status == 100012)">
1541
               <nz-form-label [nzSpan]="3" nzRequired nzFor="originOffice">起点科室</nz-form-label>
1541
               <nz-form-label [nzSpan]="3" nzRequired nzFor="originOffice">起点科室</nz-form-label>
1542
               <nz-form-control [nzSpan]="21" nzErrorTip="请选择起点科室!">
1542
               <nz-form-control [nzSpan]="21" nzErrorTip="请选择起点科室!">
1543
                 <span class="readonly">{{deptDisplay == 2 ? checkedShowMsg.start.start.list[0].deptalias : checkedShowMsg.start.start.list[0].dept}}</span>
1543
                 <span class="readonly">{{deptDisplay == 2 ? checkedShowMsg.start.start.list[0].deptalias : checkedShowMsg.start.start.list[0].dept}}</span>
1544
               </nz-form-control>
1544
               </nz-form-control>
1545
             </nz-form-item>
1545
             </nz-form-item>
1546
-            <nz-form-item nz-row *ngIf="checkedShowMsg.end && !(checkedShowMsg.status == 100015 || checkedShowMsg.status == 100013)">
1546
+            <nz-form-item class="top16bottom0" nz-row *ngIf="checkedShowMsg.end && (checkedShowMsg.status == 100012 || checkedShowMsg.status == 100013)">
1547
               <nz-form-label [nzSpan]="3" nzRequired nzFor="targetOffice">目标科室</nz-form-label>
1547
               <nz-form-label [nzSpan]="3" nzRequired nzFor="targetOffice">目标科室</nz-form-label>
1548
               <nz-form-control [nzSpan]="21" nzErrorTip="请选择目标科室!">
1548
               <nz-form-control [nzSpan]="21" nzErrorTip="请选择目标科室!">
1549
                 <span class="readonly">{{deptDisplay == 2 ? checkedShowMsg.end.end.list[0].deptalias : checkedShowMsg.end.end.list[0].dept}}</span>
1549
                 <span class="readonly">{{deptDisplay == 2 ? checkedShowMsg.end.end.list[0].deptalias : checkedShowMsg.end.end.list[0].dept}}</span>
1550
               </nz-form-control>
1550
               </nz-form-control>
1551
             </nz-form-item>
1551
             </nz-form-item>
1552
             <!-- 100014 (护士端一键建单展示策略)取终点科室和msg 值展示 -->
1552
             <!-- 100014 (护士端一键建单展示策略)取终点科室和msg 值展示 -->
1553
-            <nz-form-item nz-row *ngIf="checkedShowMsg.status == 100014 || checkedShowMsg.status == 100015">
1553
+            <nz-form-item class="top16bottom0" nz-row *ngIf="checkedShowMsg.status == 100014 || checkedShowMsg.status == 100015">
1554
               <nz-form-label [nzSpan]="3" nzRequired nzFor="targetOffice">目标科室</nz-form-label>
1554
               <nz-form-label [nzSpan]="3" nzRequired nzFor="targetOffice">目标科室</nz-form-label>
1555
               <nz-form-control [nzSpan]="21" nzErrorTip="请选择目标科室!">
1555
               <nz-form-control [nzSpan]="21" nzErrorTip="请选择目标科室!">
1556
                 <nz-select formControlName="targetOffice" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch (nzOnSearch)="searchDept('target', checkedShowMsg, $event)" nzPlaceHolder="请选择目标科室">
1556
                 <nz-select formControlName="targetOffice" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch (nzOnSearch)="searchDept('target', checkedShowMsg, $event)" nzPlaceHolder="请选择目标科室">
@@ -1564,7 +1564,7 @@
1564
                 </nz-select>
1564
                 </nz-select>
1565
               </nz-form-control>
1565
               </nz-form-control>
1566
             </nz-form-item>
1566
             </nz-form-item>
1567
-            <div class="display_flex">
1567
+            <div class="display_flex top16bottom0">
1568
               <!-- 自动送回 -->
1568
               <!-- 自动送回 -->
1569
               <nz-form-item class="isRemand" *ngIf="checkedShowMsg.status != 200 && checkedShowMsg.isRemand == 1">
1569
               <nz-form-item class="isRemand" *ngIf="checkedShowMsg.status != 200 && checkedShowMsg.isRemand == 1">
1570
                 <nz-form-control>
1570
                 <nz-form-control>
@@ -1574,7 +1574,7 @@
1574
               <!-- 是否加急 -->
1574
               <!-- 是否加急 -->
1575
               <nz-form-item nz-row *ngIf="current_allowUrgent" class="allowUrgent">
1575
               <nz-form-item nz-row *ngIf="current_allowUrgent" class="allowUrgent">
1576
                 <nz-form-label [nzSpan]="3" nzFor="allowUrgent" class="goods">是否加急</nz-form-label>
1576
                 <nz-form-label [nzSpan]="3" nzFor="allowUrgent" class="goods">是否加急</nz-form-label>
1577
-                <nz-form-control [nzSpan]="6" style="margin-left: 24px;">
1577
+                <nz-form-control [nzSpan]="6">
1578
                   <nz-radio-group [(ngModel)]="allowUrgent" (ngModelChange)="allowUrgentChange($event)" formControlName="allowUrgent">
1578
                   <nz-radio-group [(ngModel)]="allowUrgent" (ngModelChange)="allowUrgentChange($event)" formControlName="allowUrgent">
1579
                     <label nz-radio nzValue="1">是</label>
1579
                     <label nz-radio nzValue="1">是</label>
1580
                     <label nz-radio nzValue="0">否</label>
1580
                     <label nz-radio nzValue="0">否</label>

+ 4 - 0
src/app/views/hushijiandan/hushijiandan.component.less

@@ -2596,6 +2596,10 @@
2596
   line-height: 32px!important;
2596
   line-height: 32px!important;
2597
   flex-shrink: 0;
2597
   flex-shrink: 0;
2598
 }
2598
 }
2599
+.patient .top16bottom0{
2600
+  margin-top: 16px!important;
2601
+  margin-bottom: 0!important;
2602
+}
2599
 .patient{
2603
 .patient{
2600
   .modalBody{
2604
   .modalBody{
2601
     width: 950px;
2605
     width: 950px;