|
@@ -1418,41 +1418,30 @@ export class HushijiandanComponent implements OnInit {
|
1418
|
1418
|
}
|
1419
|
1419
|
// 确认
|
1420
|
1420
|
confirmPickUp() {
|
1421
|
|
- alert('建单,无接口')
|
1422
|
1421
|
console.log(this.pickUpItem);
|
1423
|
|
- return;
|
1424
|
|
- this.showPromptModal("创建", true, "");
|
1425
|
|
- this.getOrderList();
|
1426
|
|
- this.getDeptTaskType();
|
1427
|
|
- this.getTodayNum();
|
1428
|
|
- // var that = this;
|
1429
|
|
- // that.btnLoading = true;
|
1430
|
|
- // that.mainService
|
1431
|
|
- // .coopData(
|
1432
|
|
- // "rmvData",
|
1433
|
|
- // "department",
|
1434
|
|
- // 1
|
1435
|
|
- // )
|
1436
|
|
- // .subscribe((data) => {
|
1437
|
|
- // that.btnLoading = false;
|
1438
|
|
- // that.pickUpModal = false;
|
1439
|
|
- // if (data.data && data.data[0]) {
|
1440
|
|
- // if (!data.data[0].msg) {
|
1441
|
|
- // if (
|
1442
|
|
- // that.listOfData.length == 1 &&
|
1443
|
|
- // that.pageIndex == Math.ceil(that.listLength / that.pageSize)
|
1444
|
|
- // ) {
|
1445
|
|
- // that.listLength--;
|
1446
|
|
- // that.pageIndex = Math.ceil(that.listLength / that.pageSize);
|
1447
|
|
- // }
|
1448
|
|
- // that.showPromptModal("删除", true, "");
|
1449
|
|
- // } else {
|
1450
|
|
- // that.showPromptModal("删除", false, data.data[0].msg);
|
1451
|
|
- // }
|
1452
|
|
- // } else {
|
1453
|
|
- // that.showPromptModal("删除", false, "");
|
1454
|
|
- // }
|
1455
|
|
- // });
|
|
1422
|
+ this.btnLoading = true;
|
|
1423
|
+ this.mainService
|
|
1424
|
+ .createOrTakeOrder({
|
|
1425
|
+ type: 'surgery',
|
|
1426
|
+ id: this.pickUpItem.id,
|
|
1427
|
+ workOrder: {
|
|
1428
|
+ sourceld: 2,
|
|
1429
|
+ createDept: this.loginUser.dept.id,
|
|
1430
|
+ platform: 2
|
|
1431
|
+ }
|
|
1432
|
+ })
|
|
1433
|
+ .subscribe((result:any) => {
|
|
1434
|
+ this.btnLoading = false;
|
|
1435
|
+ this.pickUpModal = false;
|
|
1436
|
+ if(result.state == 200){
|
|
1437
|
+ this.showPromptModal("创建", true, "");
|
|
1438
|
+ this.getOrderList();
|
|
1439
|
+ this.getDeptTaskType();
|
|
1440
|
+ this.getTodayNum();
|
|
1441
|
+ }else{
|
|
1442
|
+ this.showPromptModal("创建", false, result.msg);
|
|
1443
|
+ }
|
|
1444
|
+ });
|
1456
|
1445
|
}
|
1457
|
1446
|
// 手术安排信息-一键接患者
|
1458
|
1447
|
pickUpPatient(e, item){
|