|
@@ -764,9 +764,6 @@ export class FuwutaiComponent implements OnInit {
|
764
|
764
|
this.retract();
|
765
|
765
|
this.refresh();
|
766
|
766
|
this.initOrderScope();
|
767
|
|
- this.getOrderList(1);
|
768
|
|
- this.getOrderList(2);
|
769
|
|
- this.getOrderList(3);
|
770
|
767
|
this.getVisitList();
|
771
|
768
|
this.getMessageList();
|
772
|
769
|
this.initControlView();
|
|
@@ -1196,8 +1193,8 @@ export class FuwutaiComponent implements OnInit {
|
1196
|
1193
|
executionSearchCon: string = ""; //执行中搜索框内容
|
1197
|
1194
|
workerMessage: any = []; //顶部全部工单
|
1198
|
1195
|
// 展示形式
|
1199
|
|
- patientCareCol: number = 6; //顶部工单列数(4列-8人,7列-14人,6列-单排 )
|
1200
|
|
- hurseInfoHiding = '1'; //护工信息隐藏
|
|
1196
|
+ patientCareCol: number = 7; //顶部工单列数(4列-8人,7列-14人,6列-单排 )
|
|
1197
|
+ hurseInfoHiding = 1; //护工信息隐藏
|
1201
|
1198
|
txtLabelCol: number = 1; //工单信息列数
|
1202
|
1199
|
workerInfoTime: number = 60; //配送人员刷新时间
|
1203
|
1200
|
orderInfoTime: number = 60; //工单刷新时间
|
|
@@ -1336,7 +1333,6 @@ export class FuwutaiComponent implements OnInit {
|
1336
|
1333
|
this.user.user.scope = data.data;
|
1337
|
1334
|
localStorage.setItem("user", JSON.stringify(this.user));
|
1338
|
1335
|
this.initOrderScope();
|
1339
|
|
- this.initControlView();
|
1340
|
1336
|
} else {
|
1341
|
1337
|
this.showPromptModal("保存", false, data.msg);
|
1342
|
1338
|
}
|
|
@@ -1352,6 +1348,26 @@ export class FuwutaiComponent implements OnInit {
|
1352
|
1348
|
this.showInitModal = true;
|
1353
|
1349
|
}
|
1354
|
1350
|
|
|
1351
|
+ // 展示形式
|
|
1352
|
+ showDisplayFormModal: boolean = false;
|
|
1353
|
+ cancelDisplayForm() {
|
|
1354
|
+ this.showDisplayFormModal = false;
|
|
1355
|
+ }
|
|
1356
|
+
|
|
1357
|
+ showDisplayForm() {
|
|
1358
|
+ this.showDisplayFormModal = true;
|
|
1359
|
+ }
|
|
1360
|
+
|
|
1361
|
+ confirmDisplayForm(data){
|
|
1362
|
+ if (data.status == 200) {
|
|
1363
|
+ this.cancelDisplayForm();
|
|
1364
|
+ this.msg.success('保存成功');
|
|
1365
|
+ this.initControlView();
|
|
1366
|
+ } else {
|
|
1367
|
+ this.msg.error(data.msg || '保存失败');
|
|
1368
|
+ }
|
|
1369
|
+ }
|
|
1370
|
+
|
1355
|
1371
|
// 绑定分机
|
1356
|
1372
|
showBindExtensionNumberModal: boolean = false;
|
1357
|
1373
|
cancelBindExtensionNumber() {
|
|
@@ -1883,7 +1899,7 @@ export class FuwutaiComponent implements OnInit {
|
1883
|
1899
|
// });
|
1884
|
1900
|
// postData.groups = groups;
|
1885
|
1901
|
// }
|
1886
|
|
- if (this.hurseInfoHiding == '1'){
|
|
1902
|
+ if (this.hurseInfoHiding == 1){
|
1887
|
1903
|
that.workerMessage = [];
|
1888
|
1904
|
that.initTopCount();
|
1889
|
1905
|
return;
|
|
@@ -1901,7 +1917,7 @@ export class FuwutaiComponent implements OnInit {
|
1901
|
1917
|
let postData = {
|
1902
|
1918
|
groups: [typeId],
|
1903
|
1919
|
};
|
1904
|
|
- if (this.hurseInfoHiding == '1'){
|
|
1920
|
+ if (this.hurseInfoHiding == 1){
|
1905
|
1921
|
that.workerMessage = [];
|
1906
|
1922
|
that.initTopCount();
|
1907
|
1923
|
return;
|
|
@@ -1978,7 +1994,7 @@ export class FuwutaiComponent implements OnInit {
|
1978
|
1994
|
let types = "";
|
1979
|
1995
|
|
1980
|
1996
|
let postData:any = {
|
1981
|
|
- orderType: this['orderType' + stateId],
|
|
1997
|
+ orderType: this.orderType,
|
1982
|
1998
|
};
|
1983
|
1999
|
// 配送
|
1984
|
2000
|
if(this.flagList['hsmsFlag' + stateId]){
|
|
@@ -2307,9 +2323,9 @@ export class FuwutaiComponent implements OnInit {
|
2307
|
2323
|
}
|
2308
|
2324
|
|
2309
|
2325
|
// 护工信息展示形式
|
2310
|
|
- changPatientCareCol(e) {
|
2311
|
|
- this.initTopCount();
|
2312
|
|
- }
|
|
2326
|
+ // changPatientCareCol(e) {
|
|
2327
|
+ // this.initTopCount();
|
|
2328
|
+ // }
|
2313
|
2329
|
|
2314
|
2330
|
// 获取配置文件写死的任务类型ID(送病人回病房9),选择此任务类型的话,患者信息从终点科室获取
|
2315
|
2331
|
getConfigTasktypeLoading: boolean = false;
|
|
@@ -4593,9 +4609,6 @@ export class FuwutaiComponent implements OnInit {
|
4593
|
4609
|
// 初始化展示形式
|
4594
|
4610
|
controlView = {}; //展示形式
|
4595
|
4611
|
initControlView() {
|
4596
|
|
- if(!this.hsmsData.hsmsSwitch){
|
4597
|
|
- return;
|
4598
|
|
- }
|
4599
|
4612
|
let that = this;
|
4600
|
4613
|
let postData = {
|
4601
|
4614
|
controlView: {},
|
|
@@ -4607,24 +4620,31 @@ export class FuwutaiComponent implements OnInit {
|
4607
|
4620
|
.subscribe((data) => {
|
4608
|
4621
|
that.controlView = data.list[0] ? data.list[0] : [];
|
4609
|
4622
|
if (!data.list.length) return;
|
4610
|
|
- switch (data.list[0].workerNum) {
|
4611
|
|
- case 1:
|
4612
|
|
- that.patientCareCol = 6;
|
4613
|
|
- break;
|
4614
|
|
- case 2:
|
4615
|
|
- that.patientCareCol = 7;
|
4616
|
|
- break;
|
4617
|
|
- case 3:
|
4618
|
|
- that.patientCareCol = 4;
|
4619
|
|
- break;
|
4620
|
|
- }
|
4621
|
|
- this.hurseInfoHiding = data.list[0].hurseInfoHiding ? "1" : "0";
|
4622
|
|
- that.txtLabelCol = data.list[0].labelNum;
|
|
4623
|
+ // switch (data.list[0].workerNum) {
|
|
4624
|
+ // case 1:
|
|
4625
|
+ // that.patientCareCol = 6;
|
|
4626
|
+ // break;
|
|
4627
|
+ // case 2:
|
|
4628
|
+ // that.patientCareCol = 7;
|
|
4629
|
+ // break;
|
|
4630
|
+ // case 3:
|
|
4631
|
+ // that.patientCareCol = 4;
|
|
4632
|
+ // break;
|
|
4633
|
+ // }
|
|
4634
|
+ that.patientCareCol = 7;
|
|
4635
|
+ this.hurseInfoHiding = data.list[0].hurseInfoHiding ? 1 : 0;
|
|
4636
|
+ // that.txtLabelCol = data.list[0].labelNum;
|
|
4637
|
+ that.txtLabelCol = 1;
|
4623
|
4638
|
that.orderRefreshTime = that.orderInfoTime = data.list[0].orderInfoTime;
|
4624
|
4639
|
that.workerRefreshTime = that.workerInfoTime =
|
4625
|
4640
|
data.list[0].workerInfoTime;
|
4626
|
4641
|
that.audioNotDispatched = data.list[0].unsendOrderVoice !== false;
|
|
4642
|
+ this.orderType = data.list[0].orderType || 'priority';
|
4627
|
4643
|
that.checkTab(this.typeId);
|
|
4644
|
+
|
|
4645
|
+ this.getOrderList(1);
|
|
4646
|
+ this.getOrderList(2);
|
|
4647
|
+ this.getOrderList(3);
|
4628
|
4648
|
});
|
4629
|
4649
|
}
|
4630
|
4650
|
|
|
@@ -4652,7 +4672,8 @@ export class FuwutaiComponent implements OnInit {
|
4652
|
4672
|
workerInfoTime: that.workerInfoTime,
|
4653
|
4673
|
orderInfoTime: that.orderInfoTime,
|
4654
|
4674
|
unsendOrderVoice: that.audioNotDispatched,
|
4655
|
|
- hurseInfoHiding: that.hurseInfoHiding === "1",
|
|
4675
|
+ hurseInfoHiding: that.hurseInfoHiding === 1,
|
|
4676
|
+ orderType: this.orderType,
|
4656
|
4677
|
},
|
4657
|
4678
|
};
|
4658
|
4679
|
if (that.controlView["id"]) {
|
|
@@ -4665,10 +4686,10 @@ export class FuwutaiComponent implements OnInit {
|
4665
|
4686
|
.subscribe((data) => {
|
4666
|
4687
|
that.saveLoading = false;
|
4667
|
4688
|
if (data.status == 200) {
|
4668
|
|
- that.showPromptModal("保存", true, "");
|
4669
|
|
- that.initControlView();
|
|
4689
|
+ that.msg.success('排序成功');
|
|
4690
|
+ this.initControlView();
|
4670
|
4691
|
} else {
|
4671
|
|
- that.showPromptModal("保存", false, data.msg);
|
|
4692
|
+ that.msg.error(data.msg || '排序失败');
|
4672
|
4693
|
}
|
4673
|
4694
|
});
|
4674
|
4695
|
}
|
|
@@ -4695,23 +4716,23 @@ export class FuwutaiComponent implements OnInit {
|
4695
|
4716
|
|
4696
|
4717
|
showPromptModalRefresh(){
|
4697
|
4718
|
this.getUnassignedBuilding2();
|
4698
|
|
- this.resetList();
|
4699
|
|
- this.getOrderList(1);
|
4700
|
|
- this.getOrderList(2);
|
4701
|
|
- this.getOrderList(3);
|
4702
|
|
- this.getVisitList();
|
4703
|
|
- this.getMessageList();
|
4704
|
|
- if (this.currentRTab === 0) {
|
4705
|
|
- this.getWorkOrders(this.applyDept);
|
4706
|
|
- } else if (this.currentRTab === 1) {
|
4707
|
|
- this.getPatientLog(this.applyDept);
|
4708
|
|
- } else if (this.currentRTab === 2) {
|
4709
|
|
- this.getItsmOrders(this.incidentModel.department);
|
4710
|
|
- } else if (this.currentRTab === 3) {
|
4711
|
|
- this.getDictionaryList();
|
4712
|
|
- }
|
4713
|
|
- this.fixedTab = "";
|
4714
|
|
- this.fixedMenuShangla();
|
|
4719
|
+ this.resetList();
|
|
4720
|
+ this.getOrderList(1);
|
|
4721
|
+ this.getOrderList(2);
|
|
4722
|
+ this.getOrderList(3);
|
|
4723
|
+ this.getVisitList();
|
|
4724
|
+ this.getMessageList();
|
|
4725
|
+ if (this.currentRTab === 0) {
|
|
4726
|
+ this.getWorkOrders(this.applyDept);
|
|
4727
|
+ } else if (this.currentRTab === 1) {
|
|
4728
|
+ this.getPatientLog(this.applyDept);
|
|
4729
|
+ } else if (this.currentRTab === 2) {
|
|
4730
|
+ this.getItsmOrders(this.incidentModel.department);
|
|
4731
|
+ } else if (this.currentRTab === 3) {
|
|
4732
|
+ this.getDictionaryList();
|
|
4733
|
+ }
|
|
4734
|
+ this.fixedTab = "";
|
|
4735
|
+ this.fixedMenuShangla();
|
4715
|
4736
|
}
|
4716
|
4737
|
|
4717
|
4738
|
// 格式化时分秒
|
|
@@ -4867,12 +4888,10 @@ export class FuwutaiComponent implements OnInit {
|
4867
|
4888
|
}
|
4868
|
4889
|
|
4869
|
4890
|
// 排序
|
4870
|
|
- orderType1:any = 'priority';//priority:优先级,time:时间
|
4871
|
|
- orderType2:any = 'priority';//priority:优先级,time:时间
|
4872
|
|
- orderType3:any = 'priority';//priority:优先级,time:时间
|
4873
|
|
- orderList(state){
|
4874
|
|
- this['orderType' + state] = this['orderType' + state] === 'priority' ? 'time' : 'priority';
|
4875
|
|
- this.getOrderList(state, state === 1);
|
|
4891
|
+ orderType: string = 'priority'; //排序方式 priority:优先级,time:时间
|
|
4892
|
+ orderList(){
|
|
4893
|
+ this.orderType = this.orderType === 'priority' ? 'time' : 'priority';
|
|
4894
|
+ this.saveControlView();
|
4876
|
4895
|
}
|
4877
|
4896
|
|
4878
|
4897
|
// 优先级颜色
|