Procházet zdrojové kódy

药房端2BUG修复

seimin před 3 roky
rodič
revize
cf5c3c2b07

+ 29 - 41
src/app/views/pharmacy2/pharmacy2.component.html

@@ -10,7 +10,10 @@
10 10
       <h1 class="pharmacy-logo__name">大势医院输送保障管理平台</h1>
11 11
     </div>
12 12
     <div class="pharmacy-name">
13
-      <h2 class="pharmacy-name__title">药房</h2>
13
+      <h2 class="pharmacy-name__title">
14
+        <span>药房</span>
15
+        <span class="currentDate">{{ time | date: "yyyy年MM月dd日" }}</span>
16
+      </h2>
14 17
       <div class="pharmacy-name__total">
15 18
         <div>
16 19
           今日药单量:<strong>{{ todayTotal }}</strong>
@@ -74,14 +77,11 @@
74 77
               </div>
75 78
               <div class="pharmacy-main__selectionItem">
76 79
                 <span>单号:{{ item.packid }}</span>
77
-              </div>
78
-              <div class="pharmacy-main__selectionItem">
79
-                <span
80
-                  >记账时间:<ng-container *ngIf="item.bagTime">{{
81
-                    item.bagTime | date: "MM-dd HH:mm"
82
-                  }}</ng-container
83
-                  ><ng-container *ngIf="!item.bagTime">无</ng-container></span
84
-                >
80
+                <span>
81
+                  <ng-container *ngIf="item.bagTime">{{
82
+                    item.bagTime | date: "HH:mm"
83
+                  }}</ng-container>
84
+                </span>
85 85
               </div>
86 86
             </div>
87 87
           </div>
@@ -162,14 +162,11 @@
162 162
               </div>
163 163
               <div class="pharmacy-main__selectionItem">
164 164
                 <span>单号:{{ item.packid }}</span>
165
-              </div>
166
-              <div class="pharmacy-main__selectionItem">
167
-                <span
168
-                  >记账时间:<ng-container *ngIf="item.bagTime">{{
169
-                    item.bagTime | date: "MM-dd HH:mm"
170
-                  }}</ng-container
171
-                  ><ng-container *ngIf="!item.bagTime">无</ng-container></span
172
-                >
165
+                <span>
166
+                  <ng-container *ngIf="item.bagTime">{{
167
+                    item.bagTime | date: "HH:mm"
168
+                  }}</ng-container>
169
+                </span>
173 170
               </div>
174 171
             </div>
175 172
           </div>
@@ -250,14 +247,11 @@
250 247
               </div>
251 248
               <div class="pharmacy-main__selectionItem">
252 249
                 <span>单号:{{ item.packid }}</span>
253
-              </div>
254
-              <div class="pharmacy-main__selectionItem">
255
-                <span
256
-                  >记账时间:<ng-container *ngIf="item.bagTime">{{
257
-                    item.bagTime | date: "MM-dd HH:mm"
258
-                  }}</ng-container
259
-                  ><ng-container *ngIf="!item.bagTime">无</ng-container></span
260
-                >
250
+                <span>
251
+                  <ng-container *ngIf="item.bagTime">{{
252
+                    item.bagTime | date: "HH:mm"
253
+                  }}</ng-container>
254
+                </span>
261 255
               </div>
262 256
             </div>
263 257
           </div>
@@ -338,14 +332,11 @@
338 332
               </div>
339 333
               <div class="pharmacy-main__selectionItem">
340 334
                 <span>单号:{{ item.packid }}</span>
341
-              </div>
342
-              <div class="pharmacy-main__selectionItem">
343
-                <span
344
-                  >记账时间:<ng-container *ngIf="item.bagTime">{{
345
-                    item.bagTime | date: "MM-dd HH:mm"
346
-                  }}</ng-container
347
-                  ><ng-container *ngIf="!item.bagTime">无</ng-container></span
348
-                >
335
+                <span>
336
+                  <ng-container *ngIf="item.bagTime">{{
337
+                    item.bagTime | date: "HH:mm"
338
+                  }}</ng-container>
339
+                </span>
349 340
               </div>
350 341
             </div>
351 342
           </div>
@@ -426,14 +417,11 @@
426 417
               </div>
427 418
               <div class="pharmacy-main__selectionItem">
428 419
                 <span>单号:{{ item.packid }}</span>
429
-              </div>
430
-              <div class="pharmacy-main__selectionItem">
431
-                <span
432
-                  >记账时间:<ng-container *ngIf="item.bagTime">{{
433
-                    item.bagTime | date: "MM-dd HH:mm"
434
-                  }}</ng-container
435
-                  ><ng-container *ngIf="!item.bagTime">无</ng-container></span
436
-                >
420
+                <span>
421
+                  <ng-container *ngIf="item.bagTime">{{
422
+                    item.bagTime | date: "HH:mm"
423
+                  }}</ng-container>
424
+                </span>
437 425
               </div>
438 426
             </div>
439 427
           </div>

+ 237 - 245
src/app/views/pharmacy2/pharmacy2.component.less

@@ -1,123 +1,127 @@
1 1
 @import "../../../../src/theme.less";
2 2
 :host {
3
-	width: 100%;
3
+  width: 100%;
4 4
   background-color: #f9fafb;
5
-  .ant-btn[disabled]{
6
-    color: rgba(0, 0, 0, 0.25)!important;
7
-    background-color: #f5f5f5!important;
5
+  .ant-btn[disabled] {
6
+    color: rgba(0, 0, 0, 0.25) !important;
7
+    background-color: #f5f5f5 !important;
8 8
   }
9
-  .red{
10
-    color: red!important;
11
-    font-weight: bold!important;
9
+  .red {
10
+    color: red !important;
11
+    font-weight: bold !important;
12 12
   }
13
-  .green{
13
+  .green {
14 14
     color: @primary-color!important;
15
-    font-weight: bold!important;
15
+    font-weight: bold !important;
16 16
   }
17 17
 
18
-	h1,
19
-	h2,
20
-	h3,
21
-	p {
22
-		margin: 0;
23
-	}
24
-	em {
25
-		font-style: normal;
18
+  h1,
19
+  h2,
20
+  h3,
21
+  p {
22
+    margin: 0;
26 23
   }
27
-  .pharmacy{
24
+  em {
25
+    font-style: normal;
26
+  }
27
+  .pharmacy {
28 28
     display: flex;
29 29
     flex-direction: column;
30 30
     height: 100%;
31 31
   }
32 32
 
33
-	// 头部 start
34
-	.pharmacy-header {
35
-		height: 88px;
36
-		background-color: #fff;
37
-		border-bottom: 1px solid #e5e9ed;
38
-		box-sizing: border-box;
39
-		display: flex;
40
-
41
-		.pharmacy-logo {
42
-			width: 221px;
43
-			background-color: #0f2e3b;
44
-			display: flex;
45
-			justify-content: center;
46
-			align-items: center;
47
-
48
-			.pharmacy-logo__img {
49
-				width: 32px;
50
-			}
51
-
52
-			.pharmacy-logo__name {
53
-				font-size: 14px;
54
-				color: #fff;
55
-			}
56
-		}
57
-
58
-		.pharmacy-name {
33
+  // 头部 start
34
+  .pharmacy-header {
35
+    height: 88px;
36
+    background-color: #fff;
37
+    border-bottom: 1px solid #e5e9ed;
38
+    box-sizing: border-box;
39
+    display: flex;
40
+
41
+    .pharmacy-logo {
42
+      width: 221px;
43
+      background-color: #0f2e3b;
44
+      display: flex;
45
+      justify-content: center;
46
+      align-items: center;
47
+
48
+      .pharmacy-logo__img {
49
+        width: 32px;
50
+      }
51
+
52
+      .pharmacy-logo__name {
53
+        font-size: 14px;
54
+        color: #fff;
55
+      }
56
+    }
57
+
58
+    .pharmacy-name {
59 59
       flex: 1;
60
-			border-right: 1px solid #e5e9ed;
60
+      border-right: 1px solid #e5e9ed;
61 61
       display: flex;
62 62
       justify-content: space-between;
63 63
       align-items: center;
64 64
 
65
-			.pharmacy-name__title {
66
-				font-size: 22px;
67
-				color: #333;
68
-				margin-left: 43px;
69
-				line-height: 87px;
70
-			}
71
-      .pharmacy-name__total{
65
+      .pharmacy-name__title {
66
+        font-size: 22px;
67
+        color: #333;
68
+        margin-left: 43px;
69
+        line-height: 87px;
70
+        .currentDate {
71
+          margin-left: 24px;
72
+          font-size: 16px;
73
+        }
74
+      }
75
+      .pharmacy-name__total {
72 76
         margin-right: 16px;
73 77
         font-size: 16px;
74 78
       }
75
-		}
76
-
77
-		.pharmacy-operate {
78
-			width: 211px;
79
-			display: flex;
80
-			justify-content: center;
81
-			align-items: center;
82
-			position: relative;
83
-			.pharmacy-operatePop {
79
+    }
80
+
81
+    .pharmacy-operate {
82
+      width: 211px;
83
+      display: flex;
84
+      justify-content: center;
85
+      align-items: center;
86
+      position: relative;
87
+      .pharmacy-operatePop {
84 88
         cursor: pointer;
85 89
         border: 1px solid #e5e9ed;
86
-				background-color: #fff;
87
-				position: absolute;
88
-				left: 0;
89
-				top: 100%;
90
-				width: 100%;
91
-				height: 34px;
92
-				line-height: 34px;
93
-				text-align: center;
94
-				font-size: 14px;
95
-				color: @primary-color;
96
-			}
97
-
98
-			&:after {
99
-				content: '';
100
-				display: block;
101
-				width: 0;
102
-				height: 0;
103
-				border-left: 7px solid transparent;
104
-				border-right: 7px solid transparent;
105
-				border-top: 10px solid #666;
106
-			}
107
-
108
-			.pharmacy-operate__img {
109
-				max-height: 40px;
110
-				margin-right: 8px;
111
-			}
112
-
113
-			.pharmacy-operate__title {
114
-				font-size: 20px;
115
-				color: #666;
116
-				padding-right: 24px;
117
-				cursor: pointer;
118
-			}
119
-		}
120
-	}
90
+        background-color: #fff;
91
+        position: absolute;
92
+        left: 0;
93
+        top: 100%;
94
+        width: 100%;
95
+        height: 34px;
96
+        line-height: 34px;
97
+        text-align: center;
98
+        font-size: 14px;
99
+        color: @primary-color;
100
+      }
101
+
102
+      &:after {
103
+        content: "";
104
+        display: block;
105
+        width: 0;
106
+        height: 0;
107
+        border-left: 7px solid transparent;
108
+        border-right: 7px solid transparent;
109
+        border-top: 10px solid #666;
110
+      }
111
+
112
+      .pharmacy-operate__img {
113
+        max-height: 40px;
114
+        margin-right: 8px;
115
+      }
116
+
117
+      .pharmacy-operate__title {
118
+        font-size: 20px;
119
+        color: #666;
120
+        padding-right: 24px;
121
+        cursor: pointer;
122
+      }
123
+    }
124
+  }
121 125
   .userInfo {
122 126
     width: 336px;
123 127
     height: 100%;
@@ -157,182 +161,172 @@
157 161
       }
158 162
     }
159 163
   }
160
-	// 头部 end
161
-	// 主体部分 start
162
-	.pharmacy-main {
164
+  // 头部 end
165
+  // 主体部分 start
166
+  .pharmacy-main {
163 167
     height: calc(100vh - 88px);
164 168
     min-height: 680px;
165 169
     flex: 1;
166
-		padding: 16px;
167
-		display: flex;
168
-		justify-content: space-between;
169
-		.pharmacy-main__list {
170
+    padding: 16px;
171
+    display: flex;
172
+    justify-content: space-between;
173
+    .pharmacy-main__list {
170 174
       display: flex;
171 175
       flex-direction: column;
172
-			background-color: #f9fafb;
173
-			flex: 1;
176
+      background-color: #f9fafb;
177
+      flex: 1;
174 178
       margin: 0 4px;
175
-			box-sizing: border-box;
176
-			border: 1px solid #e5e9ed;
177
-			// 标题 start
178
-			.pharmacy-main__title {
179
-				height: 40px;
180
-				background-color: #fff;
181
-				font-size: 16px;
182
-				color: #333;
183
-				font-weight: 700;
184
-				padding-left: 8px;
185
-				display: flex;
186
-				justify-content: space-between;
187
-				align-items: center;
188
-				border-bottom: 1px solid #e5e9ed;
189
-        .autoUpdate{
179
+      box-sizing: border-box;
180
+      border: 1px solid #e5e9ed;
181
+      // 标题 start
182
+      .pharmacy-main__title {
183
+        height: 40px;
184
+        background-color: #fff;
185
+        font-size: 16px;
186
+        color: #333;
187
+        font-weight: 700;
188
+        padding-left: 8px;
189
+        display: flex;
190
+        justify-content: space-between;
191
+        align-items: center;
192
+        border-bottom: 1px solid #e5e9ed;
193
+        .autoUpdate {
190 194
           font-size: 14px;
191 195
           color: #49b856;
192 196
           margin-right: 8px;
193 197
         }
194
-				.pharmacy-main__printAll {
195
-					// width: 80px;
196
-					height: 28px;
197
-					line-height: 28px;
198
-					margin-right: 16px;
199
-					background-color: @primary-color;
200
-					font-size: 14px;
201
-					color: #fff;
202
-					border-radius: 4px;
198
+        .pharmacy-main__printAll {
199
+          // width: 80px;
200
+          height: 28px;
201
+          line-height: 28px;
202
+          margin-right: 16px;
203
+          background-color: @primary-color;
204
+          font-size: 14px;
205
+          color: #fff;
206
+          border-radius: 4px;
203 207
           text-align: center;
204 208
           display: flex;
205 209
           justify-content: center;
206
-				}
207
-			}
208
-			// 标题 end
209
-			// 搜索框 start
210
-			.pharmacy-main__search {
211
-				padding: 8px;
212
-				position: relative;
213
-				.pharmacy-main__searchInput {
214
-					border-radius: 100px;
215
-					padding-right: 82px;
216
-					border: 1px solid #e5e9ed;
217
-					background-color: #fff;
218
-					overflow: hidden;
219
-					input {
220
-						border: none;
221
-					}
222
-					.ant-input:focus {
223
-						border-color: #fff;
224
-						outline: 0;
225
-						box-shadow: 0 0 0 2px #fff;
226
-					}
227
-					.pharmacy-main__searchText {
228
-						cursor: pointer;
229
-						position: absolute;
230
-						top: 13px;
231
-						right: 8px;
232
-						width: 74px;
233
-						height: 22px;
234
-						border-left: 1px solid #e5e9ed;
235
-						color: #999;
236
-						padding-left: 8px;
237
-						box-sizing: border-box;
238
-						span {
239
-							color: @primary-color;
240
-							margin-left: 8px;
241
-						}
242
-					}
243
-				}
244
-			}
245
-			// 搜索框 end
246
-			// 列表 start
247
-			.pharmacy-main__selectionWrap {
210
+        }
211
+      }
212
+      // 标题 end
213
+      // 搜索框 start
214
+      .pharmacy-main__search {
215
+        padding: 8px;
216
+        position: relative;
217
+        .pharmacy-main__searchInput {
218
+          border-radius: 100px;
219
+          padding-right: 82px;
220
+          border: 1px solid #e5e9ed;
221
+          background-color: #fff;
222
+          overflow: hidden;
223
+          input {
224
+            border: none;
225
+          }
226
+          .ant-input:focus {
227
+            border-color: #fff;
228
+            outline: 0;
229
+            box-shadow: 0 0 0 2px #fff;
230
+          }
231
+          .pharmacy-main__searchText {
232
+            cursor: pointer;
233
+            position: absolute;
234
+            top: 13px;
235
+            right: 8px;
236
+            width: 74px;
237
+            height: 22px;
238
+            border-left: 1px solid #e5e9ed;
239
+            color: #999;
240
+            padding-left: 8px;
241
+            box-sizing: border-box;
242
+            span {
243
+              color: @primary-color;
244
+              margin-left: 8px;
245
+            }
246
+          }
247
+        }
248
+      }
249
+      // 搜索框 end
250
+      // 列表 start
251
+      .pharmacy-main__selectionWrap {
248 252
         flex: 1;
249
-				// height: 630px;
250
-				overflow: auto;
251
-				&:first-child {
252
-					border-top: 1px solid #e5e9ed;
253
-				}
254
-				.pharmacy-main__selection {
255
-					box-sizing: border-box;
256
-					border-bottom: 1px solid #e5e9ed;
253
+        // height: 630px;
254
+        overflow: auto;
255
+        &:first-child {
256
+          border-top: 1px solid #e5e9ed;
257
+        }
258
+        .pharmacy-main__selection {
259
+          box-sizing: border-box;
260
+          border-bottom: 1px solid #e5e9ed;
257 261
           display: flex;
258 262
           cursor: pointer;
259
-          &.pharmacy-main__selection--more{
263
+          &.pharmacy-main__selection--more {
260 264
             color: @primary-color;
261 265
             height: 34px;
262 266
             cursor: pointer;
263
-            .pharmacy-main__selectionInfo{
267
+            .pharmacy-main__selectionInfo {
264 268
               justify-content: center;
265 269
               align-items: center;
266 270
               flex-direction: row;
267
-              .pharmacy-main__selection--icon{
271
+              .pharmacy-main__selection--icon {
268 272
                 margin-right: 8px;
269 273
               }
270 274
             }
271 275
           }
272
-          &.pharmacy-main__selection--noData{
276
+          &.pharmacy-main__selection--noData {
273 277
             height: calc(100vh - 212px);
274 278
             min-height: 556px;
275 279
             display: flex;
276 280
             justify-content: center;
277 281
             align-items: center;
278
-            img{
282
+            img {
279 283
               width: 100px;
280 284
             }
281 285
           }
282
-					.pharmacy-main__selectionInfo {
283
-						padding: 8px;
284
-						flex: 1;
285
-						display: flex;
286
-						flex-direction: column;
287
-						justify-content: space-between;
288
-						.pharmacy-main__selectionItem {
289
-							display: flex;
286
+          .pharmacy-main__selectionInfo {
287
+            padding: 8px;
288
+            flex: 1;
289
+            display: flex;
290
+            flex-direction: column;
291
+            justify-content: space-between;
292
+            .pharmacy-main__selectionItem {
293
+              display: flex;
290 294
               justify-content: space-between;
291 295
               padding: 0 8px;
292
-							span {
293
-								color: #666;
296
+              span {
297
+                color: #666;
294 298
                 font-size: 12px;
295
-							}
296
-							strong {
297
-								color: #333;
298
-								font-weight: 700;
299
-								font-size: 14px;
300
-							}
301
-						}
302
-					}
303
-					.pharmacy-main__selectionPrint {
304
-						width: 90px;
305
-						display: flex;
306
-						justify-content: center;
307
-						align-items: center;
308
-						border-left: 1px solid #e5e9ed;
309
-						.pharmacy-main__selectionPrintBtn {
310
-							width: 60px;
311
-							height: 28px;
312
-							line-height: 28px;
313
-							border-radius: 4px;
314
-							border: 1px solid @primary-color;
315
-							color: @primary-color;
316
-							text-align: center;
317
-							cursor: pointer;
318
-						}
319
-					}
320
-				}
321
-			}
322
-			// 列表 end
323
-		}
324
-	}
325
-	// 主体部分 end
326
-
327
-
328
-
329
-
330
-
331
-
332
-
333
-
334
-
335
-
299
+              }
300
+              strong {
301
+                color: #333;
302
+                font-weight: 700;
303
+                font-size: 14px;
304
+              }
305
+            }
306
+          }
307
+          .pharmacy-main__selectionPrint {
308
+            width: 90px;
309
+            display: flex;
310
+            justify-content: center;
311
+            align-items: center;
312
+            border-left: 1px solid #e5e9ed;
313
+            .pharmacy-main__selectionPrintBtn {
314
+              width: 60px;
315
+              height: 28px;
316
+              line-height: 28px;
317
+              border-radius: 4px;
318
+              border: 1px solid @primary-color;
319
+              color: @primary-color;
320
+              text-align: center;
321
+              cursor: pointer;
322
+            }
323
+          }
324
+        }
325
+      }
326
+      // 列表 end
327
+    }
328
+  }
329
+  // 主体部分 end
336 330
 
337 331
   // 右侧悬浮菜单
338 332
   .fixed {
@@ -348,12 +342,12 @@
348 342
       top: 0;
349 343
       width: 100%;
350 344
       height: 100%;
351
-      background: rgba(0, 0, 0, .2);
345
+      background: rgba(0, 0, 0, 0.2);
352 346
       z-index: 88;
353 347
     }
354 348
 
355 349
     // overflow: hidden;
356
-    &>.left {
350
+    & > .left {
357 351
       width: 480px;
358 352
       // height: 280px;
359 353
       float: left;
@@ -384,7 +378,7 @@
384 378
                 padding: 15px 6px;
385 379
                 text-align: center;
386 380
 
387
-                &>.tdiv {
381
+                & > .tdiv {
388 382
                   overflow: hidden;
389 383
 
390 384
                   .name {
@@ -421,7 +415,7 @@
421 415
         }
422 416
 
423 417
         .conditions {
424
-          &>.ant-row {
418
+          & > .ant-row {
425 419
             margin: 8px 0;
426 420
 
427 421
             .ant-row {
@@ -448,15 +442,15 @@
448 442
       // opacity: .5;
449 443
       width: 80px;
450 444
       float: left;
451
-      background: rgba(255, 255, 255, .5);
445
+      background: rgba(255, 255, 255, 0.5);
452 446
       border-radius: 5px 0 0 5px;
453 447
       position: relative;
454 448
       z-index: 98;
455 449
 
456 450
       .fixedMenu {
457 451
         border: 1px solid #e5e9ed;
458
-        color: rgba(0, 128, 0, .5);
459
-        background: rgba(255, 255, 255, .5);
452
+        color: rgba(0, 128, 0, 0.5);
453
+        background: rgba(255, 255, 255, 0.5);
460 454
         text-align: center;
461 455
         border-radius: 5px 0 0 5px;
462 456
         // box-shadow: -3px 4px 15px rgba(234, 233, 233, .5);
@@ -483,7 +477,7 @@
483 477
           }
484 478
 
485 479
           .others {
486
-            transition: height .4s linear;
480
+            transition: height 0.4s linear;
487 481
             overflow: hidden;
488 482
           }
489 483
         }
@@ -492,8 +486,6 @@
492 486
           cursor: pointer;
493 487
         }
494 488
       }
495
-
496 489
     }
497 490
   }
498
-
499 491
 }

+ 20 - 5
src/app/views/pharmacy2/pharmacy2.component.ts

@@ -1,4 +1,4 @@
1
-import { Component, OnInit, ViewChild } from "@angular/core";
1
+import { Component, OnInit, ViewChild, OnDestroy } from "@angular/core";
2 2
 import { MainService } from "../../services/main.service";
3 3
 import { Router } from "@angular/router";
4 4
 import { OverlayScrollbarsComponent } from "overlayscrollbars-ngx";
@@ -9,7 +9,7 @@ import { startOfDay, format, endOfDay } from "date-fns";
9 9
   templateUrl: "./pharmacy2.component.html",
10 10
   styleUrls: ["./pharmacy2.component.less"],
11 11
 })
12
-export class Pharmacy2Component implements OnInit {
12
+export class Pharmacy2Component implements OnInit, OnDestroy {
13 13
   @ViewChild("osComponentRef1", {
14 14
     read: OverlayScrollbarsComponent,
15 15
     static: false,
@@ -87,7 +87,16 @@ export class Pharmacy2Component implements OnInit {
87 87
   logTime = 0; //自动刷新秒数
88 88
   logTimeConst = 60; //自动刷新秒数
89 89
 
90
+  time = new Date().getTime(); // 时间戳
91
+  timer = null; // 时间定时器
92
+
93
+  ngOnDestroy() {
94
+    clearTimeout(this.timer);
95
+    clearTimeout(this.logTimer);
96
+  }
97
+
90 98
   ngOnInit() {
99
+    this.runTime();
91 100
     // 统计
92 101
     this.total();
93 102
     // 切换科室
@@ -107,11 +116,17 @@ export class Pharmacy2Component implements OnInit {
107 116
     this.autoUpdate();
108 117
     // 自动刷新倒计时 end
109 118
   }
119
+  // 当前时间日期
120
+  runTime() {
121
+    clearTimeout(this.timer);
122
+    this.timer = setTimeout(() => {
123
+      this.time = Date.now();
124
+      this.runTime();
125
+    }, 500);
126
+  }
110 127
   // 统计
111 128
   total() {
112
-    let launch = {
113
-      id: JSON.parse(localStorage.getItem("user")).user.dept.id,
114
-    };
129
+    let launch = JSON.parse(localStorage.getItem("user")).user.dept.id;
115 130
     let startTime = format(startOfDay(new Date()), "yyyy-MM-dd HH:mm:ss");
116 131
     let endTime = format(endOfDay(new Date()), "yyyy-MM-dd HH:mm:ss");
117 132
     let postData = {