Ver código fonte

被服页面控制

seimin 1 ano atrás
pai
commit
0cd2f1699a

+ 1 - 1
proxy.conf.json

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

+ 4 - 4
src/app/views/quilt-washing-send-page-control/quilt-washing-send-page-control.component.html

@@ -25,7 +25,7 @@
25 25
           </nz-select>
26 26
         </div>
27 27
         <!-- 被服洗涤科室 -->
28
-        <div class="display_flex align-items_center mb8">
28
+        <!-- <div class="display_flex align-items_center mb8">
29 29
           <nz-form-label class="label" nzRequired>被服洗涤科室</nz-form-label>
30 30
           <nz-select class="w320px" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch nzAllowClear nzPlaceHolder="请选择" (nzOnSearch)="changeDept($event)" [(ngModel)]="clothingDept">
31 31
             <ng-container *ngFor="let data of clothingDepts">
@@ -35,9 +35,9 @@
35 35
               <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
36 36
             </nz-option>
37 37
           </nz-select>
38
-        </div>
38
+        </div> -->
39 39
         <!-- 批次号生成规则 -->
40
-        <div class="display_flex align-items_center mb8">
40
+        <!-- <div class="display_flex align-items_center mb8">
41 41
           <nz-form-label class="label" nzRequired>批次号生成规则</nz-form-label>
42 42
           <nz-select class="w320px" [nzDropdownMatchSelectWidth]="false" nzPlaceHolder="请选择" [(ngModel)]="batchNoRule">
43 43
             <ng-container *ngFor="let data of clothing_batchno_rule">
@@ -47,7 +47,7 @@
47 47
               <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
48 48
             </nz-option>
49 49
           </nz-select>
50
-        </div>
50
+        </div> -->
51 51
 
52 52
       </div>
53 53
       <!-- 自动建单配置 -->

+ 50 - 50
src/app/views/quilt-washing-send-page-control/quilt-washing-send-page-control.component.ts

@@ -17,9 +17,9 @@ export class QuiltWashingSendPageControlComponent implements OnInit {
17 17
   hosId = this.tool.getCurrentHospital().id; //当前院区
18 18
 
19 19
   // 积分计算方式
20
-  clothingDept:any = null;
20
+  // clothingDept:any = null;
21 21
   // 批次号生成规则
22
-  batchNoRule:any = null;
22
+  // batchNoRule:any = null;
23 23
   // 配置
24 24
   configs:any = {};
25 25
   searchTimerSubject = new Subject();
@@ -32,8 +32,8 @@ export class QuiltWashingSendPageControlComponent implements OnInit {
32 32
       fun.call(this, v[1]);
33 33
     });
34 34
     this.getTaskTypes();
35
-    this.getDepts();
36
-    this.getClothingBatchnoRule();
35
+    // this.getDepts();
36
+    // this.getClothingBatchnoRule();
37 37
     this.getConfig();
38 38
   }
39 39
 
@@ -51,9 +51,9 @@ export class QuiltWashingSendPageControlComponent implements OnInit {
51 51
     this.searchTimer(this.getTaskTypes, e);
52 52
   }
53 53
 
54
-  changeDept(e) {
55
-    this.searchTimer(this.getDepts, e);
56
-  }
54
+  // changeDept(e) {
55
+  //   this.searchTimer(this.getDepts, e);
56
+  // }
57 57
 
58 58
   //获取任务类型
59 59
   getTaskTypes(e:string = '') {
@@ -84,38 +84,38 @@ export class QuiltWashingSendPageControlComponent implements OnInit {
84 84
   }
85 85
 
86 86
   //获取科室
87
-  clothingDepts:any = [];
88
-  getDepts(e:string = '') {
89
-    this.isLoading = true;
90
-    let postData = {
91
-      idx: 0,
92
-      sum: 9999,
93
-      department: {
94
-        searchType: 1,// 简单查询
95
-        dept: e,
96
-        cascadeHosId: this.hosId,
97
-      }
98
-    };
99
-    this.otherPageControlService
100
-      .getDepts(postData)
101
-      .subscribe((result) => {
102
-        this.isLoading = false;
103
-        if (result.status == 200) {
104
-          this.clothingDepts = result.list || [];
105
-        }
106
-      });
107
-  }
87
+  // clothingDepts:any = [];
88
+  // getDepts(e:string = '') {
89
+  //   this.isLoading = true;
90
+  //   let postData = {
91
+  //     idx: 0,
92
+  //     sum: 9999,
93
+  //     department: {
94
+  //       searchType: 1,// 简单查询
95
+  //       dept: e,
96
+  //       cascadeHosId: this.hosId,
97
+  //     }
98
+  //   };
99
+  //   this.otherPageControlService
100
+  //     .getDepts(postData)
101
+  //     .subscribe((result) => {
102
+  //       this.isLoading = false;
103
+  //       if (result.status == 200) {
104
+  //         this.clothingDepts = result.list || [];
105
+  //       }
106
+  //     });
107
+  // }
108 108
   //获取批次号生成规则
109
-  clothing_batchno_rule:any = [];
110
-  getClothingBatchnoRule() {
111
-    this.isLoading = true;
112
-    this.otherPageControlService
113
-      .getDictionary("clothing_batchno_rule")
114
-      .subscribe((data) => {
115
-        this.isLoading = false;
116
-        this.clothing_batchno_rule = data;
117
-      });
118
-  }
109
+  // clothing_batchno_rule:any = [];
110
+  // getClothingBatchnoRule() {
111
+  //   this.isLoading = true;
112
+  //   this.otherPageControlService
113
+  //     .getDictionary("clothing_batchno_rule")
114
+  //     .subscribe((data) => {
115
+  //       this.isLoading = false;
116
+  //       this.clothing_batchno_rule = data;
117
+  //     });
118
+  // }
119 119
   // 切换tab
120 120
   tabModal(tabModalName:string){
121 121
     this.tabModalName = tabModalName;
@@ -128,23 +128,23 @@ export class QuiltWashingSendPageControlComponent implements OnInit {
128 128
       return;
129 129
     }
130 130
 
131
-    if(!this.clothingDept){
132
-      this.msg.create("warning", "请先配置被服洗涤科室!");
133
-      return;
134
-    }
131
+    // if(!this.clothingDept){
132
+    //   this.msg.create("warning", "请先配置被服洗涤科室!");
133
+    //   return;
134
+    // }
135 135
 
136
-    if(!this.batchNoRule){
137
-      this.msg.create("warning", "请先配置批次号生成规则!");
138
-      return;
139
-    }
136
+    // if(!this.batchNoRule){
137
+    //   this.msg.create("warning", "请先配置批次号生成规则!");
138
+    //   return;
139
+    // }
140 140
 
141 141
     let postData:any = {
142 142
       id: this.configs.id,
143 143
       taskType: this.clothingSendTypeId,
144 144
       clothingSendTypeId: this.clothingSendTypeId,
145 145
       hosId: this.hosId,
146
-      clothingDept: this.clothingDept,
147
-      batchNoRule: { id: this.batchNoRule },
146
+      // clothingDept: this.clothingDept,
147
+      // batchNoRule: { id: this.batchNoRule },
148 148
     };
149 149
     this.btnLoading = true;
150 150
     this.otherPageControlService
@@ -181,8 +181,8 @@ export class QuiltWashingSendPageControlComponent implements OnInit {
181 181
         this.loading = false;
182 182
         if (result.status == 200) {
183 183
           this.configs = result.list[0] || {};
184
-          this.clothingDept = this.configs.clothingDept;
185
-          this.batchNoRule = this.configs.batchNoRule ? this.configs.batchNoRule.id : null;
184
+          // this.clothingDept = this.configs.clothingDept;
185
+          // this.batchNoRule = this.configs.batchNoRule ? this.configs.batchNoRule.id : null;
186 186
           this.clothingSendTypeId = this.configs.clothingSendTypeId || null;
187 187
         }
188 188
       });