瀏覽代碼

是否允许提前执行

seimin 1 年之前
父節點
當前提交
d0f4f665b2

+ 1 - 1
proxy.conf.json

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "/service": {
3
-    "target": "http://192.168.4.223",
3
+    "target": "http://192.168.4.241",
4 4
     "logLevel": "debug",
5 5
     "changeOrigin": true,
6 6
     "pathRewrite": {

+ 6 - 32
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -407,42 +407,16 @@ export class HushijiandanComponent implements OnInit {
407 407
   // 打开立即执行模态框
408 408
   openExecModal(item) {
409 409
     this.coopItem = item;
410
-    this.execModal = true;
410
+    // 是否允许提前执行
411
+    if(item.taskType.executeSwitch == 1){
412
+      this.execModal = true;
413
+    }else{
414
+      this.showPromptModal("操作", false, "相关任务会到点执行,无需立即执行。有问题请联系相关科室!");
415
+    }
411 416
   }
412 417
   // 确认立即执行
413 418
   confirmExec() {
414 419
     this.btnLoading = true;
415
-    // let postData: any = {
416
-    //   workOderId: this.coopItem.id,
417
-    //   workOrder: {
418
-    //     sourceId: this.coopItem.sourceId,
419
-    //     taskType: {
420
-    //       id: this.coopItem.taskType.id,
421
-    //     },
422
-    //     startDept: {
423
-    //       id: this.coopItem.startDept.id,
424
-    //     },
425
-    //     endDepts: this.coopItem.endDepts.map((v) => ({ id: v.id })),
426
-    //     createDept: this.coopItem.createDept,
427
-    //     patient: {
428
-    //       patientCode: this.coopItem.patient.patientCode,
429
-    //     },
430
-    //     goods: this.coopItem.goods,
431
-    //     platform: 2,
432
-    //     isAccompany: this.coopItem.isAccompany,
433
-    //   },
434
-    // };
435
-    // if (this.coopItem.isRemand !== undefined) {
436
-    //   postData.workOrder.isRemand = this.coopItem.isRemand;
437
-    // }
438
-    // if (this.coopItem.taskType.associationType.value == 'inspect') {
439
-    //   postData.workOrder.taskType.isHalfInspect = this.coopItem.taskType.isHalfInspect;
440
-    // }
441
-    // checkList:[
442
-    //   {
443
-    //     "id": 1165517
444
-    //   }
445
-    // ]
446 420
     this.mainService.executeNow(this.coopItem.id).subscribe((result: any) => {
447 421
       this.closeExecModal();
448 422
       if (result.status == 200) {

+ 7 - 0
src/app/views/task-type-management/task-type-management.component.html

@@ -187,6 +187,13 @@
187 187
             <label nz-radio nzValue='0'>否</label>
188 188
           </nz-radio-group>
189 189
         </div>
190
+        <div class="mb8 w100">
191
+          <nz-form-label class="label" nzRequired>是否允许提前执行</nz-form-label>
192
+          <nz-radio-group class="handlerType" [(ngModel)]="executeSwitch">
193
+            <label nz-radio [nzValue]='1'>是</label>
194
+            <label nz-radio [nzValue]='0'>否</label>
195
+          </nz-radio-group>
196
+        </div>
190 197
         <div class="mb8 w100" *ngIf="association.value == 'other'">
191 198
           <nz-form-label class="label" nzRequired>是否关联数据</nz-form-label>
192 199
           <nz-radio-group class="handlerType" [(ngModel)]="bindTrans">

+ 4 - 0
src/app/views/task-type-management/task-type-management.component.ts

@@ -104,6 +104,7 @@ export class TaskTypeManagementComponent implements OnInit {
104 104
   remandTypeId = null; //开通自动送回,选择的任务类型
105 105
   defaultNullDeptId = null; //空单默认科室-标本配送
106 106
   specialCloseButton = "0"; //是否开通自动送回
107
+  executeSwitch = 0;
107 108
   bindTrans = "0"; //是否关联数据
108 109
   appointmentBuildFlag = "0"; //护士端是否允许预约建单,患者陪检业务
109 110
   appointmentBuildFlagZy = "0"; //护士端是否允许预约建单,患者其他服务
@@ -966,6 +967,7 @@ export class TaskTypeManagementComponent implements OnInit {
966 967
     this.specialCloseButton = data.specialCloseButton
967 968
       ? data.specialCloseButton + ""
968 969
       : "0";
970
+    this.executeSwitch = data.executeSwitch ? data.executeSwitch : 0;
969 971
     this.bindTrans = data.bindTrans
970 972
       ? data.bindTrans + ""
971 973
       : "0";
@@ -1266,6 +1268,7 @@ export class TaskTypeManagementComponent implements OnInit {
1266 1268
       delete this.taskData.taskType["ordinaryField"];
1267 1269
     }
1268 1270
     this.taskData.taskType["specialCloseButton"] = this.specialCloseButton;
1271
+    this.taskData.taskType["executeSwitch"] = this.executeSwitch;
1269 1272
     this.taskData.taskType["bindTrans"] = this.bindTrans;
1270 1273
     if (this.departmentStrategy.idv) {
1271 1274
       this.taskData.taskType.carryingCourses[this.indexs].departmentStrategy = {
@@ -1491,6 +1494,7 @@ export class TaskTypeManagementComponent implements OnInit {
1491 1494
     this.remandTypeId = null; //自动送回,选择任务类型
1492 1495
     this.defaultNullDeptId = null; //标本配送空单默认值
1493 1496
     this.specialCloseButton = "0"; //是否特殊情况关闭
1497
+    this.executeSwitch = 0;
1494 1498
     this.bindTrans = "0"; //是否关联数据
1495 1499
     this.appointmentBuildFlag = "0"; //护士端是否允许预约建单,患者陪检
1496 1500
     this.appointmentBuildFlagZy = "0"; //护士端是否允许预约建单,患者其他