Procházet zdrojové kódy

建单接口添加建单来源的标识sourceId

seimin před 3 roky
rodič
revize
7914188ef5

+ 9 - 0
src/app/type/sourceId.ts

@@ -0,0 +1,9 @@
1
+/**
2
+ * 建单来源sourceId
3
+ */
4
+export enum SourceId {
5
+  fuwutai = 1, //服务台
6
+  hushi = 2, //护士端
7
+  xitong = 3, //系统自动建单
8
+  wechat = 4, //微信端
9
+}

+ 5 - 0
src/app/views/fuwutai/fuwutai.component.ts

@@ -18,6 +18,7 @@ import { NzNotificationService } from "ng-zorro-antd/notification";
18 18
 import { OverlayScrollbarsComponent } from "overlayscrollbars-ngx";
19 19
 import { Subject } from "rxjs";
20 20
 import { debounceTime } from "rxjs/operators";
21
+import { SourceId } from "src/app/type/sourceId";
21 22
 @Component({
22 23
   selector: "app-fuwutai",
23 24
   templateUrl: "./fuwutai.component.html",
@@ -256,6 +257,7 @@ export class FuwutaiComponent implements OnInit {
256 257
       goods = goods.map((current) => current.value).join();
257 258
       let postData = {
258 259
         workOrder: {
260
+          sourceId: SourceId.fuwutai,
259 261
           taskType: {
260 262
             id: this.validateFormZy.controls.taskType.value,
261 263
           },
@@ -301,6 +303,7 @@ export class FuwutaiComponent implements OnInit {
301 303
   submitFormBbps(go?) {
302 304
     let postData = {
303 305
       workOrder: {
306
+        sourceId: SourceId.fuwutai,
304 307
         taskType: {
305 308
           id: this.workTypesArrange[this.currentTabIndex][0].taskType.id,
306 309
         },
@@ -343,6 +346,7 @@ export class FuwutaiComponent implements OnInit {
343 346
     }
344 347
     let postData = {
345 348
       workOrder: {
349
+        sourceId: SourceId.fuwutai,
346 350
         workOrderRemark: this.validateFormQt.controls.workOrderRemark.value,
347 351
         taskType: {
348 352
           id: this.validateFormQt.controls.taskTypeQt.value,
@@ -1827,6 +1831,7 @@ export class FuwutaiComponent implements OnInit {
1827 1831
     this.createLoading = true;
1828 1832
     let postData = {
1829 1833
       workOrder: {
1834
+        sourceId: SourceId.fuwutai,
1830 1835
         taskType: {
1831 1836
           id: this.deathTasktypeIdPatient, //转科
1832 1837
         },

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

@@ -31,6 +31,7 @@ import {
31 31
   differenceInCalendarDays,
32 32
   getHours,
33 33
 } from "date-fns";
34
+import { SourceId } from "src/app/type/sourceId";
34 35
 // 日期禁用
35 36
 function range(start: number, end: number): number[] {
36 37
   const result: number[] = [];
@@ -1120,6 +1121,7 @@ export class HushijiandanComponent implements OnInit {
1120 1121
 
1121 1122
     let postData: any = {
1122 1123
       workOrder: {
1124
+        sourceId: SourceId.hushi,
1123 1125
         taskType: { id: that.patientForm.controls.checkedType.value },
1124 1126
         startDept: { id: that.checkedShowMsg.startDept },
1125 1127
         endDepts: [{ id: that.checkedShowMsg.endDept }],
@@ -1724,6 +1726,7 @@ export class HushijiandanComponent implements OnInit {
1724 1726
       // 其他
1725 1727
       postData = {
1726 1728
         workOrder: {
1729
+          sourceId: SourceId.hushi,
1727 1730
           workOrderRemark: this.workOrderRemark,
1728 1731
           taskType: { id: that.shortcutMsg.id },
1729 1732
           createDept: that.loginUserDeptId,
@@ -1864,6 +1867,7 @@ export class HushijiandanComponent implements OnInit {
1864 1867
       postData = {
1865 1868
         urgent: this.urgentFlag ? 1 : 0,
1866 1869
         workOrder: {
1870
+          sourceId: SourceId.hushi,
1867 1871
           workOrderRemark: this.workOrderRemark1,
1868 1872
           taskType: { id: that.shortcutMsg1.id },
1869 1873
           createDept: that.loginUserDeptId,