浏览代码

护士端标本建单按钮文字可修改

seimin 3 年之前
父节点
当前提交
77eb00ea7d

+ 1 - 1
src/app/views/hushijiandan/hushijiandan.component.html

@@ -180,7 +180,7 @@
180 180
                       <div class="quick">
181 181
                         <button [nzLoading]="bLoading" nz-button nzType="primary" class="btn txtC"
182 182
                           (click)="newShortcutOrder1(bbMsg,'bb')">
183
-                          特殊标本建单
183
+                          {{specimenButton}}
184 184
                         </button>
185 185
                         <!-- <button class="btn txtC" (click)="newShortcutOrder1(bbMsg,'bb',true)">
186 186
                           收取急查标本

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

@@ -134,6 +134,7 @@ export class HushijiandanComponent implements OnInit {
134 134
   logTimeConst = 30; //综合日志自动刷新秒数
135 135
   ngOnInit() {
136 136
     this.getUpdateTipsForNurses();
137
+    this.getSpecimenButton();
137 138
     this.getCloseTimeFlag();
138 139
     this.currentUser = this.tool.getCurrentUserDept();
139 140
     console.log(this.currentUser, this.tabSearchCont);
@@ -239,6 +240,22 @@ export class HushijiandanComponent implements OnInit {
239 240
         }
240 241
       });
241 242
   }
243
+  // 获取护士端更新提示
244
+  specimenButton = "";
245
+  getSpecimenButton() {
246
+    let postData = {
247
+      idx: 0,
248
+      sum: 1,
249
+      systemConfiguration: { keyconfig: "specimenButton" },
250
+    };
251
+    this.mainService
252
+      .getFetchDataList("simple/data", "systemConfiguration", postData)
253
+      .subscribe((result) => {
254
+        if (result.status == 200) {
255
+          this.specimenButton = result.list[0].valueconfig;
256
+        }
257
+      });
258
+  }
242 259
   // 获取护士端弹窗的配置
243 260
   // (1)	当用户设置为正数时,用户必须查看此窗体指定秒数。
244 261
   // (2)	当用户设置为负数时,用户可点击知道了也可倒计时自动关闭。

+ 6 - 0
src/app/views/sys-config/sys-config.component.html

@@ -17,6 +17,12 @@
17 17
           </nz-form-control>
18 18
         </nz-form-item>
19 19
         <nz-form-item class="formItem">
20
+          <nz-form-label [nzSpan]="24" nzFor="specimenButton" nzRequired class="label">护士端标本建单按钮文字</nz-form-label>
21
+          <nz-form-control [nzSpan]="24" nzErrorTip="请输入护士端标本建单按钮文字!">
22
+            <input nz-input formControlName="specimenButton" id="specimenButton" placeholder="请输入护士端标本建单按钮文字">
23
+          </nz-form-control>
24
+        </nz-form-item>
25
+        <nz-form-item class="formItem">
20 26
           <nz-form-label [nzSpan]="12" nzFor="orderClearUserSwitch" nzRequired class="label">下班后是否自动调度重新分派
21 27
           </nz-form-label>
22 28
           <nz-form-control [nzSpan]="12" nzErrorTip="下班后是否自动调度重新分派是必填项!">

+ 7 - 0
src/app/views/sys-config/sys-config.component.ts

@@ -34,6 +34,7 @@ export class SysConfigComponent implements OnInit {
34 34
     this.validateForm = this.fb.group({
35 35
       defaultPwd: [null, [Validators.required]],
36 36
       effectiveDuration: [null, [Validators.required]],
37
+      specimenButton: [null, [Validators.required]],
37 38
       orderClearUserSwitch: [null, [Validators.required]],
38 39
       deptQRCode: [null, [Validators.required]],
39 40
       workOrderSettings: [5, [Validators.required]],
@@ -93,6 +94,7 @@ export class SysConfigComponent implements OnInit {
93 94
       (item) =>
94 95
         item.keyconfig === "pwd" ||
95 96
         item.keyconfig === "conversationSeconds" ||
97
+        item.keyconfig === "specimenButton" ||
96 98
         item.keyconfig === "orderClearUserSwitch" ||
97 99
         item.keyconfig === "deptQRCode" ||
98 100
         item.keyconfig === "workOrderSettings" ||
@@ -106,6 +108,8 @@ export class SysConfigComponent implements OnInit {
106 108
         item.valueconfig = this.validateForm.controls.defaultPwd.value;
107 109
       } else if (item.keyconfig === "conversationSeconds") {
108 110
         item.valueconfig = this.validateForm.controls.effectiveDuration.value;
111
+      } else if (item.keyconfig === "specimenButton") {
112
+        item.valueconfig = this.validateForm.controls.specimenButton.value;
109 113
       } else if (item.keyconfig === "orderClearUserSwitch") {
110 114
         item.valueconfig =
111 115
           this.validateForm.controls.orderClearUserSwitch.value;
@@ -173,6 +177,9 @@ export class SysConfigComponent implements OnInit {
173 177
                 case "conversationSeconds":
174 178
                   this.validateForm.controls.effectiveDuration.setValue(c[1]);
175 179
                   break;
180
+                case "specimenButton":
181
+                  this.validateForm.controls.specimenButton.setValue(c[1]);
182
+                  break;
176 183
                 case "orderClearUserSwitch":
177 184
                   this.validateForm.controls.orderClearUserSwitch.setValue(
178 185
                     c[1]