Browse Source

Merge branch 'master' of http://git.shengws.com/csx/Vue_New

csx 5 years ago
parent
commit
ae694c98c4

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

140
             align="center"
140
             align="center"
141
             label="超滤量(ml)"
141
             label="超滤量(ml)"
142
             width="110"
142
             width="110"
143
-            v-if="isShow('超滤量') && template_id == 6"
143
+            v-if="isShow('超滤量') && (template_id == 6 || template_id == 10)"
144
           >
144
           >
145
             <template slot-scope="scope">
145
             <template slot-scope="scope">
146
               {{
146
               {{
155
             align="center"
155
             align="center"
156
             label="超滤量(L)"
156
             label="超滤量(L)"
157
             width="110"
157
             width="110"
158
-            v-if="isShow('超滤量') && template_id != 6"
158
+            v-if="isShow('超滤量') && (template_id != 6 || template_id != 10)"
159
           >
159
           >
160
             <template slot-scope="scope">
160
             <template slot-scope="scope">
161
               {{
161
               {{
200
             align="center"
200
             align="center"
201
             label="置换率(ml/min)"
201
             label="置换率(ml/min)"
202
             width="120"
202
             width="120"
203
-            v-if="isShow('置换率') && template_id == 6"
203
+            v-if="isShow('置换率') && (template_id == 6  || template_id == 10)"
204
           >
204
           >
205
             <template slot-scope="scope">
205
             <template slot-scope="scope">
206
               {{ scope.row.replacement_rate ? scope.row.replacement_rate : "" }}
206
               {{ scope.row.replacement_rate ? scope.row.replacement_rate : "" }}
211
             align="center"
211
             align="center"
212
             label="置换率(L/h)"
212
             label="置换率(L/h)"
213
             width="120"
213
             width="120"
214
-            v-if="isShow('置换率') && template_id != 6"
214
+            v-if="isShow('置换率') && (template_id != 6 || template_id != 10)"
215
           >
215
           >
216
             <template slot-scope="scope">
216
             <template slot-scope="scope">
217
               {{ scope.row.replacement_rate ? scope.row.replacement_rate : "" }}
217
               {{ scope.row.replacement_rate ? scope.row.replacement_rate : "" }}
222
             align="center"
222
             align="center"
223
             label="置换量(ml)"
223
             label="置换量(ml)"
224
             width="100"
224
             width="100"
225
-            v-if="isShow('置换量' && template_id == 6)"
225
+            v-if="isShow('置换量') && (template_id == 6 || template_id == 10)"
226
           >
226
           >
227
             <template slot-scope="scope">
227
             <template slot-scope="scope">
228
               {{
228
               {{
238
             align="center"
238
             align="center"
239
             label="SpO₂(%)"
239
             label="SpO₂(%)"
240
             width="100"
240
             width="100"
241
-            v-if="isShow('SpO₂') && template_id != 6"
241
+            v-if="isShow('SpO₂') && (template_id != 6 || template_id != 10)"
242
           >
242
           >
243
             <template slot-scope="scope">
243
             <template slot-scope="scope">
244
               {{
244
               {{
254
             align="center"
254
             align="center"
255
             label="置换量(L)"
255
             label="置换量(L)"
256
             width="100"
256
             width="100"
257
-            v-if="isShow('置换量') && template_id != 6"
257
+            v-if="isShow('置换量') && (template_id != 6 || template_id != 10)"
258
           >
258
           >
259
             <template slot-scope="scope">
259
             <template slot-scope="scope">
260
               {{
260
               {{

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

12
         <th width="76px">静脉压/动脉压(mmHg)</th>
12
         <th width="76px">静脉压/动脉压(mmHg)</th>
13
         <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
13
         <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
14
         <th v-if="isShow('跨膜压')" width="76px">跨膜压(mmhg)</th>
14
         <th v-if="isShow('跨膜压')" width="76px">跨膜压(mmhg)</th>
15
-        <th v-if="isShow('超滤量') && template_id == 6" width="76px">超滤量(ml)</th>
16
-        <th v-if="isShow('超滤量') && template_id != 6" width="76px">超滤量(L)</th>
15
+        <th v-if="isShow('超滤量') && (template_id == 6 || template_id == 10)" width="76px">超滤量(ml)</th>
16
+        <th v-if="isShow('超滤量') && (template_id != 6 || template_id != 10)" width="76px">超滤量(L)</th>
17
         <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
17
         <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
18
         <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
18
         <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
19
-        <th v-if="isShow('置换率')&& template_id == 6" width="92px">置换率(ml/min)</th>
20
-        <th v-if="isShow('置换率')&&template_id != 6" width="92px">置换率(L/h)</th>
19
+        <th v-if="isShow('置换率')&& (template_id == 6 || template_id == 10)" width="92px">置换率(ml/min)</th>
20
+        <th v-if="isShow('置换率')&& (template_id != 6 || template_id != 10)" width="92px">置换率(L/h)</th>
21
 
21
 
22
-        <th v-if="isShow('置换量')&& template_id == 6" width="92px">置换量(ml)</th>
23
-        <th v-if="isShow('置换量')&& template_id != 6" width="92px">置换量(L)</th>
24
-         <th v-if="isShow('SpO₂')&& template_id != 6" width="92px">SpO₂(%)</th>
22
+        <th v-if="isShow('置换量')&& (template_id == 6 || template_id == 10)" width="92px">置换量(ml)</th>
23
+        <th v-if="isShow('置换量')&& (template_id != 6 || template_id != 10)" width="92px">置换量(L)</th>
24
+         <th v-if="isShow('SpO₂')&& (template_id != 6 || template_id != 10)" width="92px">SpO₂(%)</th>
25
         <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
25
         <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
26
         <th v-if="isShow('置换液流量')"  width="92px">置换液流量(ml/h)</th>
26
         <th v-if="isShow('置换液流量')"  width="92px">置换液流量(ml/h)</th>
27
         <th v-if="isShow('病情变化')" width="92px">病情变化</th>
27
         <th v-if="isShow('病情变化')" width="92px">病情变化</th>

+ 28 - 34
src/xt_pages/workforce/components/tableWeeks.vue View File

257
             break
257
             break
258
         }
258
         }
259
         return type_name
259
         return type_name
260
-      },getAdvice:function(doctor_advice) {
261
-        console.log(doctor_advice)
260
+      },
261
+      getAdvice:function(doctor_advice) {
262
 
262
 
263
         let name = ""
263
         let name = ""
264
         for (let i = 0; i< doctor_advice.length; i++){
264
         for (let i = 0; i< doctor_advice.length; i++){
281
 
281
 
282
           name = name + doctor_advice[i].advice_name +" "+ drug_spec+" "+ prescribing_number + " "+single_dose+" " + doctor_advice[i].delivery_way+" "+ doctor_advice[i].execution_frequency +" " + doctor_advice[i].remark +"\n"
282
           name = name + doctor_advice[i].advice_name +" "+ drug_spec+" "+ prescribing_number + " "+single_dose+" " + doctor_advice[i].delivery_way+" "+ doctor_advice[i].execution_frequency +" " + doctor_advice[i].remark +"\n"
283
 
283
 
284
-          // if (doctor_advice[i].child.length > 0){
285
-          //   for (let a = 0 ; a < doctor_advice[a].child.length; a++){
286
-          //     if(doctor_advice[i].child[a].prescribing_number > 0){
287
-          //       doctor_advice[i].child[a]['presc'] = doctor_advice[i].child[a].prescribing_number + doctor_advice[i].child[a].prescribing_number_unit
288
-          //     }else{
289
-          //       doctor_advice[i].child[a]['presc'] = ''
290
-          //     }
291
-          //
292
-          //     if(doctor_advice[i].child[a].single_dose > 0){
293
-          //       doctor_advice[i].child[a]['single'] = " "+' 单次用量 '+" "+doctor_advice[i].child[a].single_dose + doctor_advice[i].child[a].single_dose_unit
294
-          //     }else{
295
-          //       doctor_advice[i].child[a]['single'] = ''
296
-          //     }
297
-          //     name = name+"▲"+doctor_advice[i].child[a].advice_name+""
298
-          //       + doctor_advice[i].child[a].advice_desc
299
-          //       + doctor_advice[i].child[a].drug_spec_unit
300
-          //       + doctor_advice[i].child[a].presc
301
-          //       + doctor_advice[i].child[a].single
302
-          //
303
-          //
304
-          //   }
305
-          //   return  doctor_advice[i].advice_name +"  "+ doctor_advice[i].advice_desc+" "
306
-          //     + doctor_advice[i].drug_spec_unit
307
-          //     + prescribing_number
308
-          //     + " "+single_dose+" "+ " "+doctor_advice[i].delivery_way+" "+ doctor_advice[i].execution_frequency + doctor_advice[i].remark +name
309
-          //
310
-          // }else{
311
-          //
312
-          //
313
-          //
314
-          // }
284
+          if (doctor_advice[i].child.length > 0){
315
 
285
 
286
+            for (let a = 0 ; a < doctor_advice[i].child.length; a++){
316
 
287
 
317
-        }
288
+              if(doctor_advice[i].child[a].prescribing_number > 0){
289
+                doctor_advice[i].child[a]['presc'] = doctor_advice[i].child[a].prescribing_number + doctor_advice[i].child[a].prescribing_number_unit
290
+              }else{
291
+                doctor_advice[i].child[a]['presc'] = ''
292
+              }
293
+
294
+              if(doctor_advice[i].child[a].single_dose > 0){
295
+                doctor_advice[i].child[a]['single'] = " "+' 单次用量 '+" "+doctor_advice[i].child[a].single_dose + doctor_advice[i].child[a].single_dose_unit
296
+              }else{
297
+                doctor_advice[i].child[a]['single'] = ''
298
+              }
299
+
300
+
301
+              name = name+"▲"+doctor_advice[i].child[a].advice_name+""
302
+                + doctor_advice[i].child[a].advice_desc
303
+                + doctor_advice[i].child[a].drug_spec_unit
304
+                + doctor_advice[i].child[a].presc
305
+                + doctor_advice[i].child[a].single+"\n"
306
+            }
318
 
307
 
319
 
308
 
309
+          }
310
+
311
+        }
320
         return name
312
         return name
321
 
313
 
314
+
315
+
322
       }
316
       }
323
     },
317
     },
324
     components: {
318
     components: {

+ 24 - 32
src/xt_pages/workforce/remind_print.vue View File

135
     },
135
     },
136
     methods: {
136
     methods: {
137
       getAdvice:function(doctor_advice) {
137
       getAdvice:function(doctor_advice) {
138
-        console.log(doctor_advice)
139
 
138
 
140
         let name = ""
139
         let name = ""
141
         for (let i = 0; i< doctor_advice.length; i++){
140
         for (let i = 0; i< doctor_advice.length; i++){
158
 
157
 
159
           name = name + doctor_advice[i].advice_name +" "+ drug_spec+" "+ prescribing_number + " "+single_dose+" " + doctor_advice[i].delivery_way+" "+ doctor_advice[i].execution_frequency +" " + doctor_advice[i].remark +"\n"
158
           name = name + doctor_advice[i].advice_name +" "+ drug_spec+" "+ prescribing_number + " "+single_dose+" " + doctor_advice[i].delivery_way+" "+ doctor_advice[i].execution_frequency +" " + doctor_advice[i].remark +"\n"
160
 
159
 
161
-          // if (doctor_advice[i].child.length > 0){
162
-          //   for (let a = 0 ; a < doctor_advice[a].child.length; a++){
163
-          //     if(doctor_advice[i].child[a].prescribing_number > 0){
164
-          //       doctor_advice[i].child[a]['presc'] = doctor_advice[i].child[a].prescribing_number + doctor_advice[i].child[a].prescribing_number_unit
165
-          //     }else{
166
-          //       doctor_advice[i].child[a]['presc'] = ''
167
-          //     }
168
-          //
169
-          //     if(doctor_advice[i].child[a].single_dose > 0){
170
-          //       doctor_advice[i].child[a]['single'] = " "+' 单次用量 '+" "+doctor_advice[i].child[a].single_dose + doctor_advice[i].child[a].single_dose_unit
171
-          //     }else{
172
-          //       doctor_advice[i].child[a]['single'] = ''
173
-          //     }
174
-          //     name = name+"▲"+doctor_advice[i].child[a].advice_name+""
175
-          //       + doctor_advice[i].child[a].advice_desc
176
-          //       + doctor_advice[i].child[a].drug_spec_unit
177
-          //       + doctor_advice[i].child[a].presc
178
-          //       + doctor_advice[i].child[a].single
179
-          //
180
-          //
181
-          //   }
182
-          //   return  doctor_advice[i].advice_name +"  "+ doctor_advice[i].advice_desc+" "
183
-          //     + doctor_advice[i].drug_spec_unit
184
-          //     + prescribing_number
185
-          //     + " "+single_dose+" "+ " "+doctor_advice[i].delivery_way+" "+ doctor_advice[i].execution_frequency + doctor_advice[i].remark +name
186
-          //
187
-          // }else{
188
-          //
189
-          //
190
-          //
191
-          // }
160
+          if (doctor_advice[i].child.length > 0){
192
 
161
 
162
+            for (let a = 0 ; a < doctor_advice[i].child.length; a++){
163
+
164
+              if(doctor_advice[i].child[a].prescribing_number > 0){
165
+                doctor_advice[i].child[a]['presc'] = doctor_advice[i].child[a].prescribing_number + doctor_advice[i].child[a].prescribing_number_unit
166
+              }else{
167
+                doctor_advice[i].child[a]['presc'] = ''
168
+              }
169
+
170
+              if(doctor_advice[i].child[a].single_dose > 0){
171
+                doctor_advice[i].child[a]['single'] = " "+' 单次用量 '+" "+doctor_advice[i].child[a].single_dose + doctor_advice[i].child[a].single_dose_unit
172
+              }else{
173
+                doctor_advice[i].child[a]['single'] = ''
174
+              }
175
+
176
+
177
+              name = name+"▲"+doctor_advice[i].child[a].advice_name+""
178
+                + doctor_advice[i].child[a].advice_desc
179
+                + doctor_advice[i].child[a].drug_spec_unit
180
+                + doctor_advice[i].child[a].presc
181
+                + doctor_advice[i].child[a].single+"\n"
182
+            }
183
+
184
+          }
193
 
185
 
194
         }
186
         }
195
         return name
187
         return name