|
@@ -160,6 +160,7 @@ export class HushijiandanComponent implements OnInit {
|
160
|
160
|
this.getCloseTimeFlag();
|
161
|
161
|
this.currentDept = this.tool.getCurrentUserDept();
|
162
|
162
|
console.log(this.currentDept, this.tabSearchCont);
|
|
163
|
+ this.currentDept.typeValue == 'surgery' && this.getSurgeryConfig();
|
163
|
164
|
this.getSpecimenButton();
|
164
|
165
|
//防抖
|
165
|
166
|
this.searchTabInpSubject.pipe(debounceTime(500)).subscribe((v) => {
|
|
@@ -748,7 +749,6 @@ export class HushijiandanComponent implements OnInit {
|
748
|
749
|
if(this.currentDept.typeValue != 'surgery'){
|
749
|
750
|
return;
|
750
|
751
|
}
|
751
|
|
- let that = this;
|
752
|
752
|
let postData = {
|
753
|
753
|
idx: 0,
|
754
|
754
|
sum: 1,
|
|
@@ -764,7 +764,7 @@ export class HushijiandanComponent implements OnInit {
|
764
|
764
|
}
|
765
|
765
|
}
|
766
|
766
|
this.surgeryLoading = true;
|
767
|
|
- that.mainService
|
|
767
|
+ this.mainService
|
768
|
768
|
.getFetchDataList("simple/data", "surgery", postData)
|
769
|
769
|
.subscribe((data) => {
|
770
|
770
|
this.surgeryLoading = false;
|
|
@@ -772,6 +772,34 @@ export class HushijiandanComponent implements OnInit {
|
772
|
772
|
});
|
773
|
773
|
}
|
774
|
774
|
|
|
775
|
+ // 获取手术配置信息
|
|
776
|
+ surgeryField = null; //手术关联业务
|
|
777
|
+ surgeryConfigs:any = {};
|
|
778
|
+ getSurgeryConfig() {
|
|
779
|
+ this.mainService
|
|
780
|
+ .getDictionary("list", "ordinary_field")
|
|
781
|
+ .subscribe((data) => {
|
|
782
|
+ this.surgeryField = data.find(v => v.value == 'surgery');
|
|
783
|
+ if(this.surgeryField){
|
|
784
|
+ let postData = {
|
|
785
|
+ idx: 0,
|
|
786
|
+ sum: 10,
|
|
787
|
+ taskTypeConfig: {
|
|
788
|
+ hosId: this.currentHospital.id,
|
|
789
|
+ ordinaryField: this.surgeryField
|
|
790
|
+ }
|
|
791
|
+ };
|
|
792
|
+ this.mainService
|
|
793
|
+ .getFetchDataList("simple/data", "taskTypeConfig", postData)
|
|
794
|
+ .subscribe((result) => {
|
|
795
|
+ if (result.status == 200) {
|
|
796
|
+ this.surgeryConfigs = result.list[0] || {};
|
|
797
|
+ }
|
|
798
|
+ });
|
|
799
|
+ }
|
|
800
|
+ });
|
|
801
|
+ }
|
|
802
|
+
|
775
|
803
|
// 药品静配提示信息
|
776
|
804
|
drugJpLoading = false;
|
777
|
805
|
getJpDrugsWKOMsg() {
|
|
@@ -1498,19 +1526,15 @@ export class HushijiandanComponent implements OnInit {
|
1498
|
1526
|
// 确认
|
1499
|
1527
|
sLoading1 = false;
|
1500
|
1528
|
confirmSendWard() {
|
1501
|
|
- alert('暂无接口');
|
1502
|
|
- return;
|
1503
|
1529
|
console.log(this.sendWardItem);
|
1504
|
1530
|
this.sLoading1 = true;
|
1505
|
1531
|
this.mainService
|
1506
|
|
- .createOrTakeOrder({
|
|
1532
|
+ .createRemandOrder({
|
1507
|
1533
|
type: 'surgery',
|
1508
|
|
- id: this.sendWardItem.id,
|
1509
|
|
- workOrder: {
|
1510
|
|
- sourceld: 2,
|
1511
|
|
- createDept: this.loginUser.dept.id,
|
1512
|
|
- platform: 2
|
1513
|
|
- }
|
|
1534
|
+ surgeryId: this.sendWardItem.id,
|
|
1535
|
+ orderId: this.sendWardItem.gdid,
|
|
1536
|
+ configId: this.surgeryConfigs.id,
|
|
1537
|
+ remandType: 'clinical'
|
1514
|
1538
|
})
|
1515
|
1539
|
.subscribe((result:any) => {
|
1516
|
1540
|
this.sLoading1 = false;
|
|
@@ -1541,19 +1565,15 @@ export class HushijiandanComponent implements OnInit {
|
1541
|
1565
|
// 确认
|
1542
|
1566
|
sLoading2 = false;
|
1543
|
1567
|
confirmSendAwakeningRoom() {
|
1544
|
|
- alert('暂无接口');
|
1545
|
|
- return;
|
1546
|
1568
|
console.log(this.sendAwakeningRoomItem);
|
1547
|
1569
|
this.sLoading2 = true;
|
1548
|
1570
|
this.mainService
|
1549
|
|
- .createOrTakeOrder({
|
|
1571
|
+ .createRemandOrder({
|
1550
|
1572
|
type: 'surgery',
|
1551
|
|
- id: this.sendAwakeningRoomItem.id,
|
1552
|
|
- workOrder: {
|
1553
|
|
- sourceld: 2,
|
1554
|
|
- createDept: this.loginUser.dept.id,
|
1555
|
|
- platform: 2
|
1556
|
|
- }
|
|
1573
|
+ surgeryId: this.sendAwakeningRoomItem.id,
|
|
1574
|
+ orderId: this.sendAwakeningRoomItem.gdid,
|
|
1575
|
+ configId: this.surgeryConfigs.id,
|
|
1576
|
+ remandType: 'recovery'
|
1557
|
1577
|
})
|
1558
|
1578
|
.subscribe((result:any) => {
|
1559
|
1579
|
this.sLoading2 = false;
|