seimin 4 місяців тому
батько
коміт
c7a38cdb4c

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

@@ -2,7 +2,7 @@
2 2
  * @Author: seimin
3 3
  * @Date: 2024-10-24 13:47:40
4 4
  * @LastEditors: seimin
5
- * @LastEditTime: 2024-12-09 11:11:15
5
+ * @LastEditTime: 2024-12-09 15:32:35
6 6
  * @Description: 创建
7 7
 -->
8 8
 <!-- 新建工单 -->
@@ -53,7 +53,7 @@
53 53
         </div>
54 54
         <div class="newTopItem">
55 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 57
               <label nz-radio [nzValue]="item.value" *ngFor="let item of repairIncidentTypeList">{{item.name}}</label>
58 58
             </nz-radio-group>
59 59
           </span>

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

@@ -1019,7 +1019,7 @@
1019 1019
           </div>
1020 1020
           <div class="newTopItem">
1021 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 1023
                 <label nz-radio [nzValue]="item.value" *ngFor="let item of repairIncidentTypeList">{{item.name}}</label>
1024 1024
               </nz-radio-group>
1025 1025
             </span>

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

@@ -1474,11 +1474,18 @@ export class FuwutaiComponent implements OnInit {
1474 1474
         if (result.state == 200) {
1475 1475
           console.log(result);
1476 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 1485
             // if (!this.newOrderShow && !this.newOrderShowOpen) {
1479 1486
               let incidentModel:any = Object.assign({}, this.incidentModel);
1480 1487
               let incidentMsg:any = Object.assign({}, this.incidentMsg);
1481
-              incidentModel.department = result.data[0];
1488
+              incidentModel.department = deptDTO;
1482 1489
               incidentModel.department && incidentModel.department.hospital && (incidentModel.hosId = incidentModel.department.hospital.parent ? incidentModel.department.hospital.parent.id : incidentModel.department.hospital.id);
1483 1490
               incidentModel.department && incidentModel.department.building && (incidentModel.area = incidentModel.department.building.id);
1484 1491
               incidentModel.department && incidentModel.department.floor && (incidentModel.place = incidentModel.department.floor.id);
@@ -1491,7 +1498,7 @@ export class FuwutaiComponent implements OnInit {
1491 1498
               this.incidentModel = incidentModel;
1492 1499
               this.incidentMsg = incidentMsg;
1493 1500
               this.searchApplicationRequester();
1494
-              this.applyDeptMiddle = result.data[0];
1501
+              this.applyDeptMiddle = deptDTO;
1495 1502
               this.showNewOrder("yes", this.incidentModel.incomingPhone, true, '来电弹屏');
1496 1503
             // }
1497 1504
           } else {
@@ -5308,7 +5315,14 @@ export class FuwutaiComponent implements OnInit {
5308 5315
               source && (incidentModel.source = source.id);
5309 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 5326
                 incidentModel.department && incidentModel.department.hospital && (incidentModel.hosId = incidentModel.department.hospital.parent ? incidentModel.department.hospital.parent.id : incidentModel.department.hospital.id);
5313 5327
                 incidentModel.department && incidentModel.department.building && (incidentModel.area = incidentModel.department.building.id);
5314 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 1446
             <nz-form-item class="datesControl">
1447 1447
               <nz-form-label [nzSm]="24" [nzXs]="24" nzRequired nzFor="checkedType">任务类型</nz-form-label>
1448 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 1450
                   <label class="col6 ellipsis-oneline" [title]="item.taskName" *ngFor="let item of checkTypeLis" nz-radio [nzValue]="item.id">{{ item.taskName }}</label>
1451 1451
                 </nz-radio-group>
1452 1452
               </nz-form-control>
@@ -1522,7 +1522,7 @@
1522 1522
               <div class="txtC">{{ checkedShowMsg.msg }}</div>
1523 1523
             </nz-form-item>
1524 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 1526
               <nz-form-label [nzSpan]="3" nzRequired nzFor="originOffice">起点科室</nz-form-label>
1527 1527
               <nz-form-control [nzSpan]="21" nzErrorTip="请选择起点科室!">
1528 1528
                 <nz-select formControlName="originOffice" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch (nzOnSearch)="searchDept('start', checkedShowMsg, $event)" nzPlaceHolder="请选择起点科室">
@@ -1537,20 +1537,20 @@
1537 1537
               </nz-form-control>
1538 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 1541
               <nz-form-label [nzSpan]="3" nzRequired nzFor="originOffice">起点科室</nz-form-label>
1542 1542
               <nz-form-control [nzSpan]="21" nzErrorTip="请选择起点科室!">
1543 1543
                 <span class="readonly">{{deptDisplay == 2 ? checkedShowMsg.start.start.list[0].deptalias : checkedShowMsg.start.start.list[0].dept}}</span>
1544 1544
               </nz-form-control>
1545 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 1547
               <nz-form-label [nzSpan]="3" nzRequired nzFor="targetOffice">目标科室</nz-form-label>
1548 1548
               <nz-form-control [nzSpan]="21" nzErrorTip="请选择目标科室!">
1549 1549
                 <span class="readonly">{{deptDisplay == 2 ? checkedShowMsg.end.end.list[0].deptalias : checkedShowMsg.end.end.list[0].dept}}</span>
1550 1550
               </nz-form-control>
1551 1551
             </nz-form-item>
1552 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 1554
               <nz-form-label [nzSpan]="3" nzRequired nzFor="targetOffice">目标科室</nz-form-label>
1555 1555
               <nz-form-control [nzSpan]="21" nzErrorTip="请选择目标科室!">
1556 1556
                 <nz-select formControlName="targetOffice" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch (nzOnSearch)="searchDept('target', checkedShowMsg, $event)" nzPlaceHolder="请选择目标科室">
@@ -1564,7 +1564,7 @@
1564 1564
                 </nz-select>
1565 1565
               </nz-form-control>
1566 1566
             </nz-form-item>
1567
-            <div class="display_flex">
1567
+            <div class="display_flex top16bottom0">
1568 1568
               <!-- 自动送回 -->
1569 1569
               <nz-form-item class="isRemand" *ngIf="checkedShowMsg.status != 200 && checkedShowMsg.isRemand == 1">
1570 1570
                 <nz-form-control>
@@ -1574,7 +1574,7 @@
1574 1574
               <!-- 是否加急 -->
1575 1575
               <nz-form-item nz-row *ngIf="current_allowUrgent" class="allowUrgent">
1576 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 1578
                   <nz-radio-group [(ngModel)]="allowUrgent" (ngModelChange)="allowUrgentChange($event)" formControlName="allowUrgent">
1579 1579
                     <label nz-radio nzValue="1">是</label>
1580 1580
                     <label nz-radio nzValue="0">否</label>

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

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