瀏覽代碼

Merge branch '20200710_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20200710_pc_vue_new_branch

XMLWAN 4 年之前
父節點
當前提交
8267fdbe41

+ 2 - 2
src/xt_pages/dialysis/details/DialysisPrescription.vue 查看文件

@@ -81,8 +81,8 @@
81 81
           <span class="content">{{
82 82
             target_ultrafiltration != "0" ? target_ultrafiltration : ""
83 83
           }}</span>
84
-          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23" class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
85
-          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
84
+          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24" class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
85
+          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
86 86
         </li>
87 87
         <li v-if="isShow('葡萄糖')">
88 88
           <label>葡萄糖 : </label>

+ 2 - 2
src/xt_pages/dialysis/details/assessmentAfter.vue 查看文件

@@ -17,8 +17,8 @@
17 17
           <span class="content" v-if="actual_ultrafiltration != '0'">{{
18 18
             actual_ultrafiltration
19 19
           }}</span>
20
-          <span class="unit" v-if=" actual_ultrafiltration != '0' && (this.$store.getters.xt_user.template_info.template_id == 6 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22) " >ml</span>
21
-          <span class="unit" v-if=" actual_ultrafiltration != '0' && this.$store.getters.xt_user.template_info.template_id != 6 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22" >L</span>
20
+          <span class="unit" v-if=" actual_ultrafiltration != '0' && (this.$store.getters.xt_user.template_info.template_id == 6 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24) " >ml</span>
21
+          <span class="unit" v-if=" actual_ultrafiltration != '0' && this.$store.getters.xt_user.template_info.template_id != 6 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24" >L</span>
22 22
         </li>
23 23
         <li v-if="isShow('导管')">
24 24
           <label>导管 : </label>

+ 1 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue 查看文件

@@ -28,7 +28,7 @@
28 28
           <el-col :span="8" v-if="isShow('实际超滤量')">
29 29
             <el-form-item
30 30
               label="实际超滤量(ml): "
31
-              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23"  >
31
+              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24"  >
32 32
               <el-input v-model="form.actual_ultrafiltration"></el-input>
33 33
             </el-form-item>
34 34
             <el-form-item label="实际超滤量(L): " v-else>

+ 2 - 2
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

@@ -87,7 +87,7 @@
87 87
           </el-col>
88 88
 
89 89
           <el-col :span="8"
90
-                  v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22  || this.$store.getters.xt_user.template_info.template_id == 23 )">
90
+                  v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22  || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24)">
91 91
             <el-form-item label="目标超滤量(ml):">
92 92
               <el-input
93 93
                 type="number"
@@ -97,7 +97,7 @@
97 97
           </el-col>
98 98
 
99 99
           <el-col :span="8"
100
-                  v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23">
100
+                  v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24">
101 101
             <el-form-item label="目标超滤量(L):">
102 102
               <el-input
103 103
                 type="number"

+ 10 - 8
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue 查看文件

@@ -153,7 +153,8 @@
153 153
                   template_id == 20 ||
154 154
                   template_id == 21 ||
155 155
                   template_id == 22 ||
156
-                  template_id == 23)
156
+                  template_id == 23 ||
157
+                  template_id == 24)
157 158
             "
158 159
           >
159 160
             <template slot-scope="scope">
@@ -182,7 +183,8 @@
182 183
                 template_id != 20 &&
183 184
                 template_id != 21 &&
184 185
                 template_id != 22 &&
185
-                template_id != 23
186
+                template_id != 23 &&
187
+                template_id != 24
186 188
             "
187 189
           >
188 190
             <template slot-scope="scope">
@@ -319,7 +321,7 @@
319 321
             align="center"
320 322
             label="超滤率(ml/h)"
321 323
             width="100"
322
-            v-if="isShow('超滤率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23) "
324
+            v-if="isShow('超滤率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24) "
323 325
           >
324 326
             <template slot-scope="scope">
325 327
               {{ scope.row.ultrafiltration_rate ? scope.row.ultrafiltration_rate : ""  }}
@@ -330,7 +332,7 @@
330 332
             align="center"
331 333
             label="超滤率(L/h)"
332 334
             width="100"
333
-            v-if="isShow('超滤率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22  && template_id != 23 "
335
+            v-if="isShow('超滤率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22  && template_id != 23 && template_id != 24"
334 336
           >
335 337
             <template slot-scope="scope">
336 338
               {{ scope.row.ultrafiltration_rate ? scope.row.ultrafiltration_rate : ""  }}
@@ -471,12 +473,12 @@
471 473
             </el-form-item>
472 474
           </el-col>
473 475
 
474
-          <el-col :span="8" v-if="isShow('超滤率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23) ">
476
+          <el-col :span="8" v-if="isShow('超滤率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24) ">
475 477
             <el-form-item label="超滤率(ml/h)">
476 478
               <el-input v-model="form.ultrafiltration_rate"></el-input>
477 479
             </el-form-item>
478 480
           </el-col>
479
-          <el-col :span="8" v-if="isShow('超滤率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23">
481
+          <el-col :span="8" v-if="isShow('超滤率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24">
480 482
             <el-form-item label="超滤率(L/h)">
481 483
               <el-input v-model="form.ultrafiltration_rate"></el-input>
482 484
             </el-form-item>
@@ -484,7 +486,7 @@
484 486
 
485 487
           <el-col
486 488
             :span="8"
487
-            v-if=" isShow('超滤量') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23) " >
489
+            v-if=" isShow('超滤量') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24) " >
488 490
             <el-form-item label="超滤量(ml):">
489 491
               <el-input v-model="form.ultrafiltration_volume"></el-input>
490 492
             </el-form-item>
@@ -492,7 +494,7 @@
492 494
 
493 495
           <el-col
494 496
             :span="8"
495
-            v-if=" isShow('超滤量') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23" >
497
+            v-if=" isShow('超滤量') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24" >
496 498
             <el-form-item label="超滤量(L):">
497 499
               <el-input v-model="form.ultrafiltration_volume"></el-input>
498 500
             </el-form-item>

+ 4 - 4
src/xt_pages/dialysis/details/dialysisMonitoring.vue 查看文件

@@ -14,8 +14,8 @@
14 14
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
15 15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
16 16
           <th v-if="isShow('跨膜压')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
17
-          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23)" width="76px" > 超滤量(ml)</th>
18
-          <th v-if=" isShow('超滤量') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23"  width="76px"> 超滤量(L) </th>
17
+          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24)" width="76px" > 超滤量(ml)</th>
18
+          <th v-if=" isShow('超滤量') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24"  width="76px"> 超滤量(L) </th>
19 19
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
20 20
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
21 21
           <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20) " width="92px" > 置换率(ml/min) </th>
@@ -26,8 +26,8 @@
26 26
           <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
27 27
           <th v-if="isShow('置换液流量')" width="92px">置换液流量(ml/h)</th>
28 28
           <th v-if="isShow('透析液流量')" width="92px">透析液流量(ml/h)</th>
29
-          <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23)" width="50px"> 超滤率 <br />(ml/h) </th>
30
-          <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23" width="50px"> 超滤率 <br />(L/h) </th>
29
+          <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24)" width="50px"> 超滤率 <br />(ml/h) </th>
30
+          <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24" width="50px"> 超滤率 <br />(L/h) </th>
31 31
           <th v-if="isShow('肝素用量余量')" width="92px">肝素用量余量(ml)</th>
32 32
           <th v-if="isShow('病情变化')" width="92px">病情变化</th>
33 33
           <th v-if="isShow('处理')" width="92px">处理</th>

+ 14 - 11
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFour.vue 查看文件

@@ -348,18 +348,22 @@
348 348
               <table class="table-box">
349 349
                 <tbody>
350 350
                   <tr>
351
-                    <td width='60'>置管口</td>
352
-                    <td width="340">
351
+                    <td width='50'>置管口</td>
352
+                    <td width="400">
353 353
                       <div>
354 354
                         <label-box :isChecked="predialysis.catheter.indexOf('干洁') > -1 ? true : false" showValue="干洁"></label-box>
355
-                        &nbsp;
355
+                        
356 356
                         <label-box :isChecked="predialysis.catheter.indexOf('红肿') > -1 ? true : false" showValue="红肿"></label-box>
357
-                        &nbsp;
357
+                        
358 358
                         <label-box :isChecked="predialysis.catheter.indexOf('分泌物') > -1 ? true : false" showValue="分泌物"></label-box>
359
-                        &nbsp;
359
+                        
360 360
                         <label-box :isChecked="predialysis.catheter.indexOf('渗血') > -1 ? true : false" showValue="渗血"></label-box>
361
-                        &nbsp;
361
+                        
362 362
                         <label-box :isChecked="predialysis.catheter.indexOf('陈旧性血痂') > -1 ? true : false" showValue="陈旧性血痂"></label-box>
363
+                        
364
+                        <label-box :isChecked="predialysis.catheter.indexOf('消毒') > -1 ? true : false" showValue="消毒"></label-box>
365
+                        
366
+                        <label-box :isChecked="predialysis.catheter.indexOf('用药') > -1 ? true : false" showValue="用药"></label-box>
363 367
                       </div>
364 368
                     </td>
365 369
                     <td width='70'>管腔外露</td>
@@ -369,7 +373,7 @@
369 373
                         </div>
370 374
                     </td>
371 375
                     <td width='10'>cm</td>
372
-                    <td width='60'>血流量</td>
376
+                    <td width='50'>血流量</td>
373 377
                     <td width="220">
374 378
                       <div>
375 379
                         <label-box :isChecked="predialysis.catheter.indexOf('血流量-好') > -1 ? true : false" showValue="干洁"></label-box>
@@ -381,7 +385,6 @@
381 385
                         <label-box :isChecked="predialysis.catheter.indexOf('血流量-AV反接') > -1 ? true : false" showValue="AV反接"></label-box>
382 386
                       </div>
383 387
                     </td>
384
-                    <td></td>
385 388
                   </tr>
386 389
                 </tbody>
387 390
               </table>
@@ -557,7 +560,7 @@
557 560
                 <table class="table-box">
558 561
                     <tbody>
559 562
                         <tr>
560
-                            <td width='80'>透析频率/周</td>
563
+                            <td width='100'>透析频率(次/周)</td>
561 564
                             <td width='50'>
562 565
                                 <div class="under-line">
563 566
                                     &nbsp;{{ predialysis.dialysis_count ? predialysis.dialysis_count : "" }}
@@ -576,14 +579,14 @@
576 579
                             <td width='60'>透析器</td>
577 580
                             <td width='120'>
578 581
                                 <div class="under-line">
579
-                                    &nbsp;{{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus.split(',')[0].indexOf('透析器') > -1 ? prescription.dialyzer_perfusion_apparatus.split(',')[0] : prescription.dialyzer_perfusion_apparatus.split(',')[1] : '' }}
582
+                                    &nbsp;{{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus.split(',')[0].indexOf('透析器') > -1 ? prescription.dialyzer_perfusion_apparatus.split(',')[0].slice(3) : prescription.dialyzer_perfusion_apparatus.split(',')[1].slice(3) : '' }}
580 583
                                 </div>
581 584
                             </td>
582 585
                             <td width='20'></td>
583 586
                             <td width='80'>灌流器</td>
584 587
                             <td width='120'>
585 588
                                 <div class="under-line">
586
-                                    &nbsp;{{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus.split(',')[0].indexOf('灌流器') > -1 ? prescription.dialyzer_perfusion_apparatus.split(',')[0] : prescription.dialyzer_perfusion_apparatus.split(',')[1] : '' }}
589
+                                    &nbsp;{{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus.split(',')[0].indexOf('灌流器') > -1 ? prescription.dialyzer_perfusion_apparatus.split(',')[0].slice(3) : prescription.dialyzer_perfusion_apparatus.split(',')[1].slice(3) : '' }}
587 590
                                 </div>
588 591
                             </td>
589 592
                             <td></td>

+ 82 - 49
src/xt_pages/medicalScheduling/index.vue 查看文件

@@ -48,7 +48,7 @@
48 48
                         </el-table-column>
49 49
                         <el-table-column :label="'周一\n(' + weekDayArr[0] + ')'" style="width:200px" align="center">
50 50
                             <template slot-scope="scope">
51
-                                <div @click="hangdleClick(scope.row,scope.$index)">
51
+                                <div @click="hangdleClick(scope.row,scope.$index,0)">
52 52
                                     <el-dropdown trigger="click" @command="changeSchedule">
53 53
                                         <span class="el-dropdown-link">
54 54
                                         {{ getClass(scope.row.user_name,1) }}<i class="el-icon-arrow-down el-icon--right"></i>
@@ -62,7 +62,7 @@
62 62
                         </el-table-column>
63 63
                         <el-table-column prop="name" :label="'周二\n(' + weekDayArr[1] + ')'" style="width:14%" align="center">
64 64
                              <template slot-scope="scope">
65
-                                <div @click="hangdleClick(scope.row,scope.$index)">
65
+                                <div @click="hangdleClick(scope.row,scope.$index,1)">
66 66
                                     <el-dropdown trigger="click" @command="changeSchedule">
67 67
                                         <span class="el-dropdown-link">
68 68
                                         {{ getClass(scope.row.user_name,2) }}<i class="el-icon-arrow-down el-icon--right"></i>
@@ -76,7 +76,7 @@
76 76
                         </el-table-column>
77 77
                         <el-table-column prop="name" :label="'周三\n(' + weekDayArr[2] + ')'" style="width:14%" align="center">
78 78
                              <template slot-scope="scope">
79
-                                <div @click="hangdleClick(scope.row,scope.$index)">
79
+                                <div @click="hangdleClick(scope.row,scope.$index,2)">
80 80
                                     <el-dropdown trigger="click" @command="changeSchedule">
81 81
                                         <span class="el-dropdown-link">
82 82
                                         {{ getClass(scope.row.user_name,3) }}<i class="el-icon-arrow-down el-icon--right"></i>
@@ -90,7 +90,7 @@
90 90
                         </el-table-column>
91 91
                         <el-table-column prop="name" :label="'周四\n(' + weekDayArr[3] + ')'" style="width:14%" align="center">
92 92
                              <template slot-scope="scope">
93
-                                <div @click="hangdleClick(scope.row,scope.$index)">
93
+                                <div @click="hangdleClick(scope.row,scope.$index,3)">
94 94
                                     <el-dropdown trigger="click" @command="changeSchedule">
95 95
                                         <span class="el-dropdown-link">
96 96
                                         {{ getClass(scope.row.user_name,4) }}<i class="el-icon-arrow-down el-icon--right"></i>
@@ -104,7 +104,7 @@
104 104
                         </el-table-column>
105 105
                         <el-table-column prop="name" :label="'周五\n(' + weekDayArr[4] + ')'" style="width:14%" align="center">
106 106
                              <template slot-scope="scope">
107
-                                <div @click="hangdleClick(scope.row,scope.$index)">
107
+                                <div @click="hangdleClick(scope.row,scope.$index,4)">
108 108
                                     <el-dropdown trigger="click" @command="changeSchedule">
109 109
                                         <span class="el-dropdown-link">
110 110
                                         {{ getClass(scope.row.user_name,5) }}<i class="el-icon-arrow-down el-icon--right"></i>
@@ -118,7 +118,7 @@
118 118
                         </el-table-column>
119 119
                         <el-table-column prop="name" :label="'周六\n(' + weekDayArr[5] + ')'" style="width:14%" align="center">
120 120
                              <template slot-scope="scope">
121
-                                <div @click="hangdleClick(scope.row,scope.$index)">
121
+                                <div @click="hangdleClick(scope.row,scope.$index,5)">
122 122
                                     <el-dropdown trigger="click" @command="changeSchedule">
123 123
                                         <span class="el-dropdown-link">
124 124
                                         {{ getClass(scope.row.user_name,6) }}<i class="el-icon-arrow-down el-icon--right"></i>
@@ -132,7 +132,7 @@
132 132
                         </el-table-column>
133 133
                         <el-table-column prop="name" :label="'周日\n(' + weekDayArr[6] + ')'" style="width:14%" align="center">
134 134
                              <template slot-scope="scope">
135
-                                <div @click="hangdleClick(scope.row,scope.$index)">
135
+                                <div @click="hangdleClick(scope.row,scope.$index,6)">
136 136
                                     <el-dropdown trigger="click" @command="changeSchedule">
137 137
                                         <span class="el-dropdown-link">
138 138
                                         {{ getClass(scope.row.user_name,0) }}<i class="el-icon-arrow-down el-icon--right"></i>
@@ -283,9 +283,13 @@ export default {
283 283
                 }
284 284
             }) 
285 285
         },
286
-        hangdleClick(val,index){
286
+        hangdleClick(val,index,num){
287 287
          console.log("val",val)
288 288
          this.docobj = val
289
+         if(this.getTimestamp(this.weekDayArr[num]) < this.timeNow){
290
+            this.$message.warning("过去日期不可以编辑")
291
+            return
292
+         }
289 293
         },
290 294
         clickThis(row, column, cell, event){
291 295
             // console.log("row",row)
@@ -492,14 +496,16 @@ export default {
492 496
                         }
493 497
                     }
494 498
                     let arr = [...newArr]
495
-                    console.log("arr=======",arr)
496
-                    this.doctorlist.map((item,index) => {
497
-                        if(!(arr[index] && item.admin_user_id == arr[index].admin_user_id)){
498
-                            arr.splice(index,0,{user_name:item.user_name,admin_user_id: item.admin_user_id,list: [],user_type:item.user_type})
499
-                        }
500
-                    })
499
+                    arr.sort(this.compare('admin_user_id'))
500
+                    this.doctorlist.sort(this.compare('admin_user_id'))
501
+                    this.doctorlist.forEach((item, index) => {
502
+                      if (arr[index] && item.admin_user_id == arr[index].admin_user_id) {
501 503
                     
502
-                    console.log("arr",arr)
504
+                      }else{
505
+                        arr.splice(index, 0, {user_name: item.user_name, admin_user_id: item.admin_user_id, list: []})
506
+                        // console.log("arr",arr)
507
+                      }
508
+                    })
503 509
                     this.tableData = arr
504 510
         
505 511
                 
@@ -561,14 +567,16 @@ export default {
561 567
                         }
562 568
                     }
563 569
                     let arr = [...newArr]
564
-
565
-                    this.doctorlist.map((item,index) => {
566
-                        if(!(arr[index] && item.admin_user_id == arr[index].admin_user_id)){
567
-                        arr.splice(index,0,{user_name:item.user_name,admin_user_id: item.admin_user_id,list: []})
568
-                        }
570
+                    arr.sort(this.compare('admin_user_id'))
571
+                    this.doctorlist.sort(this.compare('admin_user_id'))
572
+                    this.doctorlist.forEach((item, index) => {
573
+                      if (arr[index] && item.admin_user_id == arr[index].admin_user_id) {
574
+                    
575
+                      }else{
576
+                        arr.splice(index, 0, {user_name: item.user_name, admin_user_id: item.admin_user_id, list: []})
577
+                        // console.log("arr",arr)
578
+                      }
569 579
                     })
570
-
571
-                    console.log(arr)
572 580
                     this.tableData = arr
573 581
                 }
574 582
             })
@@ -605,40 +613,55 @@ export default {
605 613
 
606 614
                     if(id == 0){
607 615
                         let arr = [...newArr]
608
-                        this.doctorlist.map((item,index) => {
609
-                            if(!(arr[index] && item.admin_user_id == arr[index].admin_user_id)){
610
-                                arr.splice(index,0,{user_name:item.user_name,admin_user_id: item.admin_user_id,list: []})
611
-                            }
616
+                        arr.sort(this.compare('admin_user_id'))
617
+                        this.doctorlist.sort(this.compare('admin_user_id'))
618
+                        this.doctorlist.forEach((item, index) => {
619
+                          if (arr[index] && item.admin_user_id == arr[index].admin_user_id) {
620
+                        
621
+                          }else{
622
+                            arr.splice(index, 0, {user_name: item.user_name, admin_user_id: item.admin_user_id, list: []})
623
+                            // console.log("arr",arr)
624
+                          }
612 625
                         })
613 626
                         this.tableData = arr
614 627
                     }
615 628
                     if(id == 2){
616 629
                         let arr = [...newArr]
630
+                        arr.sort(this.compare('admin_user_id'))
631
+                        this.doctorlist.sort(this.compare('admin_user_id'))
617 632
                         let newDoctor = []
618 633
                         this.doctorlist.map(item => {
619
-                            if(item.user_type == 2){
620
-                                newDoctor.push(item)
621
-                            }
634
+                        if (item.user_type == 2) {
635
+                            newDoctor.push(item)
636
+                        }
622 637
                         })
623
-                        newDoctor.map((item,index) => {
624
-                            if(!(arr[index] && item.admin_user_id == arr[index].admin_user_id)){
625
-                                arr.splice(index,0,{user_name:item.user_name,admin_user_id: item.admin_user_id,list: []})
626
-                            }
638
+                        newDoctor.map((item, index) => {
639
+                        if (arr[index] && item.admin_user_id == arr[index].admin_user_id) {
640
+                        
641
+                          }else{
642
+                            arr.splice(index, 0, {user_name: item.user_name, admin_user_id: item.admin_user_id, list: []})
643
+                            // console.log("arr",arr)
644
+                          }
627 645
                         })
628 646
                         this.tableData = arr
629 647
                     }
630 648
                     if(id == 3){
631 649
                         let arr = [...newArr]
650
+                        arr.sort(this.compare('admin_user_id'))
651
+                        this.doctorlist.sort(this.compare('admin_user_id'))
632 652
                         let newDoctor = []
633 653
                         this.doctorlist.map(item => {
634
-                            if(item.user_type == 3){
635
-                                newDoctor.push(item)
636
-                            }
654
+                        if (item.user_type == 3) {
655
+                            newDoctor.push(item)
656
+                        }
637 657
                         })
638
-                        newDoctor.map((item,index) => {
639
-                            if(!(arr[index] && item.admin_user_id == arr[index].admin_user_id)){
640
-                                arr.splice(index,0,{user_name:item.user_name,admin_user_id: item.admin_user_id,list: []})
641
-                            }
658
+                        newDoctor.map((item, index) => {
659
+                        if (arr[index] && item.admin_user_id == arr[index].admin_user_id) {
660
+                        
661
+                          }else{
662
+                            arr.splice(index, 0, {user_name: item.user_name, admin_user_id: item.admin_user_id, list: []})
663
+                            // console.log("arr",arr)
664
+                          }
642 665
                         })
643 666
                         this.tableData = arr
644 667
                     }
@@ -680,14 +703,16 @@ export default {
680 703
                         this.tableData = newArr
681 704
                     }else{
682 705
                         let arr = [...newArr]
683
-                        this.doctorlist.map((item,index) => {
684
-                            if(!(arr[index] && item.admin_user_id == arr[index].admin_user_id)){
685
-                                arr.splice(index,0,{user_name:item.user_name,admin_user_id: item.admin_user_id,list: []})
686
-                            }
687
-                        })
706
+                        arr.sort(this.compare('admin_user_id'))
707
+                        this.doctorlist.sort(this.compare('admin_user_id'))
708
+                        this.doctorlist.forEach((item, index) => {
709
+                          if (arr[index] && item.admin_user_id == arr[index].admin_user_id) {
688 710
                         
689
-            
690
-                        console.log(arr)
711
+                          }else{
712
+                            arr.splice(index, 0, {user_name: item.user_name, admin_user_id: item.admin_user_id, list: []})
713
+                            // console.log("arr",arr)
714
+                          }
715
+                        })
691 716
                         this.tableData = arr
692 717
                     }
693 718
                 }
@@ -803,7 +828,14 @@ export default {
803 828
                 })
804 829
               }
805 830
            })
806
-        }
831
+        },
832
+        compare(property){
833
+            return function(a,b){
834
+                var value1 = a[property];
835
+                var value2 = b[property];
836
+                return value1 - value2;
837
+            }
838
+        },
807 839
     },
808 840
     created(){
809 841
         //获取医护人员
@@ -858,7 +890,7 @@ export default {
858 890
     border-radius: 4px;
859 891
 }
860 892
 .classBox{
861
-    width:25%;
893
+    width:28%;
862 894
     height: 100%;
863 895
     border: 1px solid #EBEEF5;
864 896
     .classTitle{
@@ -878,6 +910,7 @@ export default {
878 910
         flex-direction: column;
879 911
         >div>p{
880 912
             line-height: 30px;
913
+            color: rgb(48, 49, 51);
881 914
         }
882 915
         .classMainBox{
883 916
             height: 350px;

+ 16 - 11
src/xt_pages/medicalScheduling/medical_print.vue 查看文件

@@ -112,8 +112,6 @@ export default {
112 112
                     list: [{class_name:staffList[i].class_name,schedule_week:staffList[i].schedule_week}]
113 113
                   })
114 114
                   tempArr.push(staffList[i].user_name);
115
-                  console.log("temArr",tempArr)
116
-                  console.log("newARR",newArr)
117 115
                 } else {
118 116
                   for (let j = 0; j < newArr.length; j++) {
119 117
                     if (newArr[j].user_name == staffList[i].user_name) {
@@ -123,11 +121,15 @@ export default {
123 121
                 }
124 122
               }
125 123
               let arr = [...newArr]
126
-              console.log("arr====",arr)
127
-              this.doctorlist.map((item,index) => {
128
-                if(!(arr[index] && item.admin_user_id == arr[index].admin_user_id)){
129
-                  arr.splice(index,0,{user_name:item.user_name,admin_user_id: item.admin_user_id,list: []})
130
-                }
124
+              arr.sort(this.compare('admin_user_id'))
125
+              this.doctorlist.sort(this.compare('admin_user_id'))
126
+              this.doctorlist.forEach((item, index) => {
127
+                if (arr[index] && item.admin_user_id == arr[index].admin_user_id) {
128
+              
129
+                }else{
130
+                  arr.splice(index, 0, {user_name: item.user_name, admin_user_id: item.admin_user_id, list: []})
131
+                  // console.log("arr",arr)
132
+                }
131 133
               })
132 134
               this.tableData = arr
133 135
               
@@ -166,10 +168,13 @@ export default {
166 168
         var currentdate = year + seperator1 + month + seperator1 + strDate;
167 169
         return currentdate;
168 170
       },
169
-     unique(arr) { 
170
-        const res = new Map();
171
-        return arr.filter((arr) => !res.has(arr.admin_user_id) && res.set(arr.admin_user_id, 1))
172
-     },
171
+      compare(property){
172
+        return function(a,b){
173
+            var value1 = a[property];
174
+            var value2 = b[property];
175
+            return value1 - value2;
176
+        }
177
+      },
173 178
     },
174 179
     created(){
175 180
       var starttime =  this.$route.query.starttime