Browse Source

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

XMLWAN 4 years ago
parent
commit
8267fdbe41

+ 2 - 2
src/xt_pages/dialysis/details/DialysisPrescription.vue View File

81
           <span class="content">{{
81
           <span class="content">{{
82
             target_ultrafiltration != "0" ? target_ultrafiltration : ""
82
             target_ultrafiltration != "0" ? target_ultrafiltration : ""
83
           }}</span>
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
         </li>
86
         </li>
87
         <li v-if="isShow('葡萄糖')">
87
         <li v-if="isShow('葡萄糖')">
88
           <label>葡萄糖 : </label>
88
           <label>葡萄糖 : </label>

+ 2 - 2
src/xt_pages/dialysis/details/assessmentAfter.vue View File

17
           <span class="content" v-if="actual_ultrafiltration != '0'">{{
17
           <span class="content" v-if="actual_ultrafiltration != '0'">{{
18
             actual_ultrafiltration
18
             actual_ultrafiltration
19
           }}</span>
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
         </li>
22
         </li>
23
         <li v-if="isShow('导管')">
23
         <li v-if="isShow('导管')">
24
           <label>导管 : </label>
24
           <label>导管 : </label>

+ 1 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue View File

28
           <el-col :span="8" v-if="isShow('实际超滤量')">
28
           <el-col :span="8" v-if="isShow('实际超滤量')">
29
             <el-form-item
29
             <el-form-item
30
               label="实际超滤量(ml): "
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
               <el-input v-model="form.actual_ultrafiltration"></el-input>
32
               <el-input v-model="form.actual_ultrafiltration"></el-input>
33
             </el-form-item>
33
             </el-form-item>
34
             <el-form-item label="实际超滤量(L): " v-else>
34
             <el-form-item label="实际超滤量(L): " v-else>

+ 2 - 2
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

87
           </el-col>
87
           </el-col>
88
 
88
 
89
           <el-col :span="8"
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
             <el-form-item label="目标超滤量(ml):">
91
             <el-form-item label="目标超滤量(ml):">
92
               <el-input
92
               <el-input
93
                 type="number"
93
                 type="number"
97
           </el-col>
97
           </el-col>
98
 
98
 
99
           <el-col :span="8"
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
             <el-form-item label="目标超滤量(L):">
101
             <el-form-item label="目标超滤量(L):">
102
               <el-input
102
               <el-input
103
                 type="number"
103
                 type="number"

+ 10 - 8
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

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

+ 4 - 4
src/xt_pages/dialysis/details/dialysisMonitoring.vue View File

14
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
14
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
16
           <th v-if="isShow('跨膜压')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
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
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
19
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
20
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
20
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
21
           <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20) " width="92px" > 置换率(ml/min) </th>
21
           <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20) " width="92px" > 置换率(ml/min) </th>
26
           <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
26
           <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
27
           <th v-if="isShow('置换液流量')" width="92px">置换液流量(ml/h)</th>
27
           <th v-if="isShow('置换液流量')" width="92px">置换液流量(ml/h)</th>
28
           <th v-if="isShow('透析液流量')" width="92px">透析液流量(ml/h)</th>
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
           <th v-if="isShow('肝素用量余量')" width="92px">肝素用量余量(ml)</th>
31
           <th v-if="isShow('肝素用量余量')" width="92px">肝素用量余量(ml)</th>
32
           <th v-if="isShow('病情变化')" width="92px">病情变化</th>
32
           <th v-if="isShow('病情变化')" width="92px">病情变化</th>
33
           <th v-if="isShow('处理')" width="92px">处理</th>
33
           <th v-if="isShow('处理')" width="92px">处理</th>

+ 14 - 11
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFour.vue View File

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

+ 82 - 49
src/xt_pages/medicalScheduling/index.vue View File

48
                         </el-table-column>
48
                         </el-table-column>
49
                         <el-table-column :label="'周一\n(' + weekDayArr[0] + ')'" style="width:200px" align="center">
49
                         <el-table-column :label="'周一\n(' + weekDayArr[0] + ')'" style="width:200px" align="center">
50
                             <template slot-scope="scope">
50
                             <template slot-scope="scope">
51
-                                <div @click="hangdleClick(scope.row,scope.$index)">
51
+                                <div @click="hangdleClick(scope.row,scope.$index,0)">
52
                                     <el-dropdown trigger="click" @command="changeSchedule">
52
                                     <el-dropdown trigger="click" @command="changeSchedule">
53
                                         <span class="el-dropdown-link">
53
                                         <span class="el-dropdown-link">
54
                                         {{ getClass(scope.row.user_name,1) }}<i class="el-icon-arrow-down el-icon--right"></i>
54
                                         {{ getClass(scope.row.user_name,1) }}<i class="el-icon-arrow-down el-icon--right"></i>
62
                         </el-table-column>
62
                         </el-table-column>
63
                         <el-table-column prop="name" :label="'周二\n(' + weekDayArr[1] + ')'" style="width:14%" align="center">
63
                         <el-table-column prop="name" :label="'周二\n(' + weekDayArr[1] + ')'" style="width:14%" align="center">
64
                              <template slot-scope="scope">
64
                              <template slot-scope="scope">
65
-                                <div @click="hangdleClick(scope.row,scope.$index)">
65
+                                <div @click="hangdleClick(scope.row,scope.$index,1)">
66
                                     <el-dropdown trigger="click" @command="changeSchedule">
66
                                     <el-dropdown trigger="click" @command="changeSchedule">
67
                                         <span class="el-dropdown-link">
67
                                         <span class="el-dropdown-link">
68
                                         {{ getClass(scope.row.user_name,2) }}<i class="el-icon-arrow-down el-icon--right"></i>
68
                                         {{ getClass(scope.row.user_name,2) }}<i class="el-icon-arrow-down el-icon--right"></i>
76
                         </el-table-column>
76
                         </el-table-column>
77
                         <el-table-column prop="name" :label="'周三\n(' + weekDayArr[2] + ')'" style="width:14%" align="center">
77
                         <el-table-column prop="name" :label="'周三\n(' + weekDayArr[2] + ')'" style="width:14%" align="center">
78
                              <template slot-scope="scope">
78
                              <template slot-scope="scope">
79
-                                <div @click="hangdleClick(scope.row,scope.$index)">
79
+                                <div @click="hangdleClick(scope.row,scope.$index,2)">
80
                                     <el-dropdown trigger="click" @command="changeSchedule">
80
                                     <el-dropdown trigger="click" @command="changeSchedule">
81
                                         <span class="el-dropdown-link">
81
                                         <span class="el-dropdown-link">
82
                                         {{ getClass(scope.row.user_name,3) }}<i class="el-icon-arrow-down el-icon--right"></i>
82
                                         {{ getClass(scope.row.user_name,3) }}<i class="el-icon-arrow-down el-icon--right"></i>
90
                         </el-table-column>
90
                         </el-table-column>
91
                         <el-table-column prop="name" :label="'周四\n(' + weekDayArr[3] + ')'" style="width:14%" align="center">
91
                         <el-table-column prop="name" :label="'周四\n(' + weekDayArr[3] + ')'" style="width:14%" align="center">
92
                              <template slot-scope="scope">
92
                              <template slot-scope="scope">
93
-                                <div @click="hangdleClick(scope.row,scope.$index)">
93
+                                <div @click="hangdleClick(scope.row,scope.$index,3)">
94
                                     <el-dropdown trigger="click" @command="changeSchedule">
94
                                     <el-dropdown trigger="click" @command="changeSchedule">
95
                                         <span class="el-dropdown-link">
95
                                         <span class="el-dropdown-link">
96
                                         {{ getClass(scope.row.user_name,4) }}<i class="el-icon-arrow-down el-icon--right"></i>
96
                                         {{ getClass(scope.row.user_name,4) }}<i class="el-icon-arrow-down el-icon--right"></i>
104
                         </el-table-column>
104
                         </el-table-column>
105
                         <el-table-column prop="name" :label="'周五\n(' + weekDayArr[4] + ')'" style="width:14%" align="center">
105
                         <el-table-column prop="name" :label="'周五\n(' + weekDayArr[4] + ')'" style="width:14%" align="center">
106
                              <template slot-scope="scope">
106
                              <template slot-scope="scope">
107
-                                <div @click="hangdleClick(scope.row,scope.$index)">
107
+                                <div @click="hangdleClick(scope.row,scope.$index,4)">
108
                                     <el-dropdown trigger="click" @command="changeSchedule">
108
                                     <el-dropdown trigger="click" @command="changeSchedule">
109
                                         <span class="el-dropdown-link">
109
                                         <span class="el-dropdown-link">
110
                                         {{ getClass(scope.row.user_name,5) }}<i class="el-icon-arrow-down el-icon--right"></i>
110
                                         {{ getClass(scope.row.user_name,5) }}<i class="el-icon-arrow-down el-icon--right"></i>
118
                         </el-table-column>
118
                         </el-table-column>
119
                         <el-table-column prop="name" :label="'周六\n(' + weekDayArr[5] + ')'" style="width:14%" align="center">
119
                         <el-table-column prop="name" :label="'周六\n(' + weekDayArr[5] + ')'" style="width:14%" align="center">
120
                              <template slot-scope="scope">
120
                              <template slot-scope="scope">
121
-                                <div @click="hangdleClick(scope.row,scope.$index)">
121
+                                <div @click="hangdleClick(scope.row,scope.$index,5)">
122
                                     <el-dropdown trigger="click" @command="changeSchedule">
122
                                     <el-dropdown trigger="click" @command="changeSchedule">
123
                                         <span class="el-dropdown-link">
123
                                         <span class="el-dropdown-link">
124
                                         {{ getClass(scope.row.user_name,6) }}<i class="el-icon-arrow-down el-icon--right"></i>
124
                                         {{ getClass(scope.row.user_name,6) }}<i class="el-icon-arrow-down el-icon--right"></i>
132
                         </el-table-column>
132
                         </el-table-column>
133
                         <el-table-column prop="name" :label="'周日\n(' + weekDayArr[6] + ')'" style="width:14%" align="center">
133
                         <el-table-column prop="name" :label="'周日\n(' + weekDayArr[6] + ')'" style="width:14%" align="center">
134
                              <template slot-scope="scope">
134
                              <template slot-scope="scope">
135
-                                <div @click="hangdleClick(scope.row,scope.$index)">
135
+                                <div @click="hangdleClick(scope.row,scope.$index,6)">
136
                                     <el-dropdown trigger="click" @command="changeSchedule">
136
                                     <el-dropdown trigger="click" @command="changeSchedule">
137
                                         <span class="el-dropdown-link">
137
                                         <span class="el-dropdown-link">
138
                                         {{ getClass(scope.row.user_name,0) }}<i class="el-icon-arrow-down el-icon--right"></i>
138
                                         {{ getClass(scope.row.user_name,0) }}<i class="el-icon-arrow-down el-icon--right"></i>
283
                 }
283
                 }
284
             }) 
284
             }) 
285
         },
285
         },
286
-        hangdleClick(val,index){
286
+        hangdleClick(val,index,num){
287
          console.log("val",val)
287
          console.log("val",val)
288
          this.docobj = val
288
          this.docobj = val
289
+         if(this.getTimestamp(this.weekDayArr[num]) < this.timeNow){
290
+            this.$message.warning("过去日期不可以编辑")
291
+            return
292
+         }
289
         },
293
         },
290
         clickThis(row, column, cell, event){
294
         clickThis(row, column, cell, event){
291
             // console.log("row",row)
295
             // console.log("row",row)
492
                         }
496
                         }
493
                     }
497
                     }
494
                     let arr = [...newArr]
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
                     this.tableData = arr
509
                     this.tableData = arr
504
         
510
         
505
                 
511
                 
561
                         }
567
                         }
562
                     }
568
                     }
563
                     let arr = [...newArr]
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
                     this.tableData = arr
580
                     this.tableData = arr
573
                 }
581
                 }
574
             })
582
             })
605
 
613
 
606
                     if(id == 0){
614
                     if(id == 0){
607
                         let arr = [...newArr]
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
                         this.tableData = arr
626
                         this.tableData = arr
614
                     }
627
                     }
615
                     if(id == 2){
628
                     if(id == 2){
616
                         let arr = [...newArr]
629
                         let arr = [...newArr]
630
+                        arr.sort(this.compare('admin_user_id'))
631
+                        this.doctorlist.sort(this.compare('admin_user_id'))
617
                         let newDoctor = []
632
                         let newDoctor = []
618
                         this.doctorlist.map(item => {
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
                         this.tableData = arr
646
                         this.tableData = arr
629
                     }
647
                     }
630
                     if(id == 3){
648
                     if(id == 3){
631
                         let arr = [...newArr]
649
                         let arr = [...newArr]
650
+                        arr.sort(this.compare('admin_user_id'))
651
+                        this.doctorlist.sort(this.compare('admin_user_id'))
632
                         let newDoctor = []
652
                         let newDoctor = []
633
                         this.doctorlist.map(item => {
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
                         this.tableData = arr
666
                         this.tableData = arr
644
                     }
667
                     }
680
                         this.tableData = newArr
703
                         this.tableData = newArr
681
                     }else{
704
                     }else{
682
                         let arr = [...newArr]
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
                         this.tableData = arr
716
                         this.tableData = arr
692
                     }
717
                     }
693
                 }
718
                 }
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
     created(){
840
     created(){
809
         //获取医护人员
841
         //获取医护人员
858
     border-radius: 4px;
890
     border-radius: 4px;
859
 }
891
 }
860
 .classBox{
892
 .classBox{
861
-    width:25%;
893
+    width:28%;
862
     height: 100%;
894
     height: 100%;
863
     border: 1px solid #EBEEF5;
895
     border: 1px solid #EBEEF5;
864
     .classTitle{
896
     .classTitle{
878
         flex-direction: column;
910
         flex-direction: column;
879
         >div>p{
911
         >div>p{
880
             line-height: 30px;
912
             line-height: 30px;
913
+            color: rgb(48, 49, 51);
881
         }
914
         }
882
         .classMainBox{
915
         .classMainBox{
883
             height: 350px;
916
             height: 350px;

+ 16 - 11
src/xt_pages/medicalScheduling/medical_print.vue View File

112
                     list: [{class_name:staffList[i].class_name,schedule_week:staffList[i].schedule_week}]
112
                     list: [{class_name:staffList[i].class_name,schedule_week:staffList[i].schedule_week}]
113
                   })
113
                   })
114
                   tempArr.push(staffList[i].user_name);
114
                   tempArr.push(staffList[i].user_name);
115
-                  console.log("temArr",tempArr)
116
-                  console.log("newARR",newArr)
117
                 } else {
115
                 } else {
118
                   for (let j = 0; j < newArr.length; j++) {
116
                   for (let j = 0; j < newArr.length; j++) {
119
                     if (newArr[j].user_name == staffList[i].user_name) {
117
                     if (newArr[j].user_name == staffList[i].user_name) {
123
                 }
121
                 }
124
               }
122
               }
125
               let arr = [...newArr]
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
               this.tableData = arr
134
               this.tableData = arr
133
               
135
               
166
         var currentdate = year + seperator1 + month + seperator1 + strDate;
168
         var currentdate = year + seperator1 + month + seperator1 + strDate;
167
         return currentdate;
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
     created(){
179
     created(){
175
       var starttime =  this.$route.query.starttime
180
       var starttime =  this.$route.query.starttime