Просмотр исходного кода

Merge branch 'pad_statistics_branch' of http://git.shengws.com/csx/Pad_New into pad_statistics_branch

csx 5 лет назад
Родитель
Сommit
ec3da75a96

+ 0 - 1
src/api/patient/patient.js Просмотреть файл

931
 }
931
 }
932
 
932
 
933
 export function getMobile (params) {
933
 export function getMobile (params) {
934
-  console.log('params', params)
935
   return request({
934
   return request({
936
     url: '/m/api/patient/getmobile',
935
     url: '/m/api/patient/getmobile',
937
     method: 'get',
936
     method: 'get',

+ 1 - 1
src/pages/main/dialysis/AdviceTable.vue Просмотреть файл

375
             </div>
375
             </div>
376
          </div>
376
          </div>
377
 
377
 
378
-            <div class="all">全部</div>
378
+            <div class="all" @click="toDoctorAdviceDetail(item.start_time)">全部</div>
379
           </div>
379
           </div>
380
         </van-list>
380
         </van-list>
381
       </div>
381
       </div>

+ 1 - 1
src/pages/main/dialysis/CourseManagement.vue Просмотреть файл

49
                   <p>记录医生:{{ item.user_name }}</p>
49
                   <p>记录医生:{{ item.user_name }}</p>
50
                 </div>
50
                 </div>
51
               </div>
51
               </div>
52
-              <div class="all">全部</div>
52
+              <div class="all" @click="toCourseDetail(item.id)">全部</div>
53
             </div>
53
             </div>
54
           </div>
54
           </div>
55
         </van-list>
55
         </van-list>

+ 1 - 1
src/pages/main/dialysis/DryWeight.vue Просмотреть файл

45
                 <div class="doctorBox">
45
                 <div class="doctorBox">
46
                   <p>记录医生:{{ item.user_name }}</p>
46
                   <p>记录医生:{{ item.user_name }}</p>
47
                 </div>
47
                 </div>
48
-                <div class="all">全部</div>
48
+                <div class="all" @click="getDryWeightDetail(item.id)">全部</div>
49
               </div>
49
               </div>
50
             </div>
50
             </div>
51
           </div>
51
           </div>

+ 1 - 1
src/pages/main/dialysis/LongTable.vue Просмотреть файл

463
                 <p>实际超滤量(L):{{ item.ultrafiltration }}</p>
463
                 <p>实际超滤量(L):{{ item.ultrafiltration }}</p>
464
                 <div>备注:{{ item.remark }}</div>
464
                 <div>备注:{{ item.remark }}</div>
465
               </div>
465
               </div>
466
-              <div class="all">全部</div>
466
+              <div class="all" @click="toLongDialysisDetail(item.id)">全部</div>
467
             </div>
467
             </div>
468
           </div>
468
           </div>
469
         </van-list>
469
         </van-list>

+ 1 - 1
src/pages/main/dialysis/MissionTable.vue Просмотреть файл

106
                   <p>{{ item.mission }}</p>
106
                   <p>{{ item.mission }}</p>
107
                 </div>
107
                 </div>
108
               </div>
108
               </div>
109
-              <div class="all">全部</div>
109
+              <div class="all" @click="toEducationDetail(item.id)">全部</div>
110
             </div>
110
             </div>
111
           </div>
111
           </div>
112
         </van-list>
112
         </van-list>

+ 1 - 1
src/pages/main/dialysis/RescueRecord.vue Просмотреть файл

46
                   <p>记录医生:{{ item.user_name }}</p>
46
                   <p>记录医生:{{ item.user_name }}</p>
47
                 </div>
47
                 </div>
48
               </div>
48
               </div>
49
-              <div class="all">全部</div>
49
+              <div class="all" @click="toRescueRecord(item.id)">全部</div>
50
             </div>
50
             </div>
51
           </div>
51
           </div>
52
         </van-list>
52
         </van-list>

+ 1 - 1
src/pages/main/dialysis/SchedulTable.vue Просмотреть файл

84
               <p>机号:{{item.number}}</p>
84
               <p>机号:{{item.number}}</p>
85
               <p>治疗模式:{{item.mode_id}}</p>
85
               <p>治疗模式:{{item.mode_id}}</p>
86
             </div>
86
             </div>
87
-            <div class="all">全部</div>
87
+            <div class="all" @click="toEditSchduling(item.id)">全部</div>
88
           </div>
88
           </div>
89
         </div>
89
         </div>
90
         </van-list>
90
         </van-list>

+ 73 - 10
src/pages/main/template/DialysisPrintOrderThirteen.vue Просмотреть файл

187
               </div>kg
187
               </div>kg
188
           </div>
188
           </div>
189
       </div>
189
       </div>
190
+      <div class="row">
191
+        透前评估 
192
+        <div class="inline_block under_line" style="width:93%;text-align: left;">
193
+          <div class="inline_block" style="margin-right:30px;">
194
+            体温
195
+            <div class="inline_block" style="width:50px;text-align:center">
196
+              {{ predialysis.temperature ? predialysis.temperature : "" }}
197
+            </div>℃
198
+          </div>
199
+          <div class="inline_block" style="margin-right:30px;">
200
+            血压
201
+            <div class="inline_block" style="width:100px;text-align:center">
202
+              {{ predialysis.systolic_blood_pressure ? predialysis.systolic_blood_pressure : "" }}/
203
+              {{ predialysis.diastolic_blood_pressure ? predialysis.diastolic_blood_pressure : "" }}
204
+            </div>mmHg
205
+          </div>
206
+          <div class="inline_block" style="margin-right:30px;">
207
+            脉搏
208
+            <div class="inline_block" style="width:50px;text-align:center">
209
+              {{ predialysis.pulse_frequency ? predialysis.pulse_frequency : "" }}
210
+            </div>次/分
211
+          </div>
212
+ 
213
+        </div>
214
+      </div>
190
 
215
 
191
       <table class="print-table" border="1">
216
       <table class="print-table" border="1">
192
         <tr>
217
         <tr>
238
       <table class="print-table" border="1">
263
       <table class="print-table" border="1">
239
         <tbody>
264
         <tbody>
240
             <tr>
265
             <tr>
241
-              <td width="40"></td>
242
               <td width="60">时间</td>
266
               <td width="60">时间</td>
243
               <td width="80">BP</td>
267
               <td width="80">BP</td>
244
               <td width="40">心率</td>
268
               <td width="40">心率</td>
253
             </tr>
277
             </tr>
254
 
278
 
255
 
279
 
256
-            <tr v-for="(monitor,i) in monitors" :key="monitor.id">
257
-              <td>
258
-                  <span v-if="i == 0">
259
-                      透前
260
-                  </span>
261
-                  <span v-if="i == 1">
262
-                      透后
263
-                  </span>
264
-              </td>
280
+            <tr v-for="monitor in monitors" :key="monitor.id">
265
               <td>&nbsp;
281
               <td>&nbsp;
266
                 {{getTime(monitor.operate_time,'{h}:{i}')}}
282
                 {{getTime(monitor.operate_time,'{h}:{i}')}}
267
               </td>
283
               </td>
289
         </tbody>
305
         </tbody>
290
       </table>
306
       </table>
291
 
307
 
308
+      <table class="print-table" border="1">
309
+        <tbody>
310
+          <tr>
311
+            <td width="50" style="padding-left:5px;border:none;border-right:1px solid #000;">
312
+              透后评估
313
+            </td>
314
+
315
+            <td width="30" style="border:none;padding-left:5px;">
316
+              体温:
317
+            </td>
318
+            <td width="50" style="text-align:left;border:none;">
319
+              <div>
320
+                <span class="under_line" style="width:50px;display:inline-block;">
321
+                  {{ afterdialysis.temperature ? afterdialysis.temperature : "" }}
322
+                </span>℃
323
+              </div>
324
+            </td>
325
+            <!-- <td width="10" style="border:none;"></td> -->
326
+
327
+            <td width="30" style="border:none;padding-left:5px;">血压:</td>
328
+            <td width="100" style="text-align:left;border:none;line-height: 30px;">
329
+              <div>
330
+                <span class="under_line" style="width:100px;display:inline-block">
331
+                  {{ afterdialysis.systolic_blood_pressure ? afterdialysis.systolic_blood_pressure : "" }}/
332
+                  {{ afterdialysis.diastolic_blood_pressure ? afterdialysis.diastolic_blood_pressure : "" }}
333
+                </span>mmHg
334
+              </div>
335
+            </td>
336
+            <td width="30" style="border:none;padding-left:5px">脉搏:</td>
337
+            <td width="50" style="text-align:left;border:none;">
338
+              <div>
339
+                <span class="under_line" style="width:50px;display:inline-block">
340
+                  {{ predialysis.pulse_frequency ? predialysis.pulse_frequency : "" }}
341
+                </span>次/分
342
+              </div>
343
+            </td>
344
+            <td width="50" style="border:none;padding-left:5px">透析器凝血:</td>
345
+            <td width="120" style="text-align:left;border:none;">
346
+              <label-box :isChecked="afterdialysis.cruor.indexOf('透析器-0度') > -1 ? true : false" showValue="0"></label-box>
347
+              <label-box :isChecked="afterdialysis.cruor.indexOf('透析器-Ⅰ度') > -1 ? true : false" showValue="+"></label-box>
348
+              <label-box :isChecked="afterdialysis.cruor.indexOf('透析器-Ⅱ度') > -1" showValue="+ +"></label-box>
349
+              <label-box :isChecked="afterdialysis.cruor.indexOf('透析器-Ⅲ度') > -1 ? true : false" showValue="+ + +"></label-box>
350
+            </td>
351
+          </tr>
352
+        </tbody>
353
+      </table>
354
+
292
       <table class="print-table" border="1">
355
       <table class="print-table" border="1">
293
         <tr style="height:36px;text-align:left;border:none;">
356
         <tr style="height:36px;text-align:left;border:none;">
294
           <td style="padding-left:5px;border:none">
357
           <td style="padding-left:5px;border:none">

+ 8 - 1
src/pages/main/today/TodayTab.vue Просмотреть файл

501
     },
501
     },
502
     monitor_records: function () {
502
     monitor_records: function () {
503
       this.$refs.monitoring.setRecords(this.monitor_records)
503
       this.$refs.monitoring.setRecords(this.monitor_records)
504
-    }
504
+    },
505
+    '$route': function (to, from) {
506
+      if(to.query.active1 == "2" && to.active2 == undefined){
507
+        this.date = this.$route.query.date
508
+        this.requestLongAdvice()
509
+        this.requestDialysisRecord()
510
+      }
511
+  }
505
 
512
 
506
     // $route: 'requestDialysisRecord'
513
     // $route: 'requestDialysisRecord'
507
   },
514
   },

+ 192 - 192
src/pages/main/today/dialysisPrescription.vue Просмотреть файл

210
 </template>
210
 </template>
211
 
211
 
212
 <script>
212
 <script>
213
-import { getDataConfig } from "@/utils/data";
213
+import { getDataConfig } from '@/utils/data'
214
 export default {
214
 export default {
215
-  name: "DialysisPrescription",
216
-  data() {
215
+  name: 'DialysisPrescription',
216
+  data () {
217
     return {
217
     return {
218
-      title: "透析处方",
218
+      title: '透析处方',
219
       perfusion_apparatus_map: {},
219
       perfusion_apparatus_map: {},
220
       dialysateFormulationMap: {},
220
       dialysateFormulationMap: {},
221
       dialyzerPerfusionApparatus: []
221
       dialyzerPerfusionApparatus: []
222
-    };
222
+    }
223
   },
223
   },
224
   props: {
224
   props: {
225
     prescription: {
225
     prescription: {
233
     }
233
     }
234
   },
234
   },
235
   computed: {
235
   computed: {
236
-    target_ultrafiltration: function() {
236
+    target_ultrafiltration: function () {
237
       var v = this.getValueStr(
237
       var v = this.getValueStr(
238
-        "target_ultrafiltration",
239
-        "target_ultrafiltration"
240
-      );
241
-      v = this.getFloat(v);
242
-      return v.length == 0 ? "0" : v;
243
-    },
244
-    dialysis_mode: function() {
245
-      var mode = this.getValueStr("mode_id", "mode_id");
238
+        'target_ultrafiltration',
239
+        'target_ultrafiltration'
240
+      )
241
+      v = this.getFloat(v)
242
+      return v.length == 0 ? '0' : v
243
+    },
244
+    dialysis_mode: function () {
245
+      var mode = this.getValueStr('mode_id', 'mode_id')
246
       if (mode.length == 0) {
246
       if (mode.length == 0) {
247
-        return "";
247
+        return ''
248
       }
248
       }
249
       if (this.$store.getters.treatment_mode[mode] != undefined) {
249
       if (this.$store.getters.treatment_mode[mode] != undefined) {
250
-        return this.$store.getters.treatment_mode[mode].name;
250
+        return this.$store.getters.treatment_mode[mode].name
251
       }
251
       }
252
-      return "";
252
+      return ''
253
     },
253
     },
254
-    perfusion_apparatus: function() {
255
-      var v = this.getValueStr("perfusion_apparatus", "perfusion_apparatus");
254
+    perfusion_apparatus: function () {
255
+      var v = this.getValueStr('perfusion_apparatus', 'perfusion_apparatus')
256
       if (v.length == 0) {
256
       if (v.length == 0) {
257
-        return "";
257
+        return ''
258
       }
258
       }
259
       if (this.perfusion_apparatus_map[v] != undefined) {
259
       if (this.perfusion_apparatus_map[v] != undefined) {
260
-        return this.perfusion_apparatus_map[v].name;
260
+        return this.perfusion_apparatus_map[v].name
261
       }
261
       }
262
-      return "";
262
+      return ''
263
     },
263
     },
264
-    displace_liqui: function() {
265
-      var v = this.getValueStr("displace_liqui", "displace_liqui");
266
-      return v.length == 0 ? "0" : v;
264
+    displace_liqui: function () {
265
+      var v = this.getValueStr('displace_liqui', 'displace_liqui')
266
+      return v.length == 0 ? '0' : v
267
     },
267
     },
268
-    anticoagulant_shouji: function() {
269
-      var v = this.getValueStr("anticoagulant_shouji", "anticoagulant_shouji");
270
-      return v.length == 0 ? "0" : v;
268
+    anticoagulant_shouji: function () {
269
+      var v = this.getValueStr('anticoagulant_shouji', 'anticoagulant_shouji')
270
+      return v.length == 0 ? '0' : v
271
     },
271
     },
272
-    kalium: function() {
273
-      var v = this.getValueStr("kalium", "kalium");
274
-      v = this.getFloat(v);
275
-      return v == 0 ? "0" : v;
272
+    kalium: function () {
273
+      var v = this.getValueStr('kalium', 'kalium')
274
+      v = this.getFloat(v)
275
+      return v == 0 ? '0' : v
276
     },
276
     },
277
-    replacement_total: function() {
278
-      var v = this.getValueStr("replacement_total", "replacement_total");
279
-      return v.length == 0 ? "0" : v;
277
+    replacement_total: function () {
278
+      var v = this.getValueStr('replacement_total', 'replacement_total')
279
+      return v.length == 0 ? '0' : v
280
     },
280
     },
281
-    bicarbonate: function() {
282
-      var v = this.getValueStr("bicarbonate", "bicarbonate");
283
-      return v.length == 0 ? "0" : v;
281
+    bicarbonate: function () {
282
+      var v = this.getValueStr('bicarbonate', 'bicarbonate')
283
+      return v.length == 0 ? '0' : v
284
     },
284
     },
285
-    dialysate_flow: function() {
286
-      var v = this.getValueStr("dialysate_flow", "dialysate_flow");
287
-      return v.length == 0 ? "0" : v;
285
+    dialysate_flow: function () {
286
+      var v = this.getValueStr('dialysate_flow', 'dialysate_flow')
287
+      return v.length == 0 ? '0' : v
288
     },
288
     },
289
-    dialysis_duration: function() {
289
+    dialysis_duration: function () {
290
       var dialysis_duration_hour = this.getValueStr(
290
       var dialysis_duration_hour = this.getValueStr(
291
-        "dialysis_duration_hour",
292
-        "dialysis_duration_hour"
293
-      );
291
+        'dialysis_duration_hour',
292
+        'dialysis_duration_hour'
293
+      )
294
       var dialysis_duration_minute = this.getValueStr(
294
       var dialysis_duration_minute = this.getValueStr(
295
-        "dialysis_duration_minute",
296
-        "dialysis_duration_minute"
297
-      );
295
+        'dialysis_duration_minute',
296
+        'dialysis_duration_minute'
297
+      )
298
       if (
298
       if (
299
         dialysis_duration_hour.length == 0 &&
299
         dialysis_duration_hour.length == 0 &&
300
         dialysis_duration_minute.length == 0
300
         dialysis_duration_minute.length == 0
301
       ) {
301
       ) {
302
-        return "0";
302
+        return '0'
303
       } else {
303
       } else {
304
         var time =
304
         var time =
305
-          dialysis_duration_hour + "h" + dialysis_duration_minute + "min";
306
-        return time.length == 0 ? "0" : time;
305
+          dialysis_duration_hour + 'h' + dialysis_duration_minute + 'min'
306
+        return time.length == 0 ? '0' : time
307
       }
307
       }
308
     },
308
     },
309
-    blood_flow_volume: function() {
310
-      var v = this.getValueStr("blood_flow_volume", "blood_flow_volume");
311
-      return v.length == 0 ? "0" : v;
309
+    blood_flow_volume: function () {
310
+      var v = this.getValueStr('blood_flow_volume', 'blood_flow_volume')
311
+      return v.length == 0 ? '0' : v
312
     },
312
     },
313
-    replacement_way: function() {
314
-      return this.getValueStr("replacement_way", "replacement_way");
313
+    replacement_way: function () {
314
+      return this.getValueStr('replacement_way', 'replacement_way')
315
     },
315
     },
316
-    anticoagulant_weichi: function() {
317
-      var v = this.getValueStr("anticoagulant_weichi", "anticoagulant_weichi");
318
-      return v.length == 0 ? "0" : v;
316
+    anticoagulant_weichi: function () {
317
+      var v = this.getValueStr('anticoagulant_weichi', 'anticoagulant_weichi')
318
+      return v.length == 0 ? '0' : v
319
     },
319
     },
320
-    sodium: function() {
321
-      var v = this.getValueStr("sodium", "sodium");
322
-      console.log(v);
323
-      v = this.getFloat(v);
324
-      console.log(v);
325
-      return v == 0 ? "0" : v;
320
+    sodium: function () {
321
+      var v = this.getValueStr('sodium', 'sodium')
322
+      console.log(v)
323
+      v = this.getFloat(v)
324
+      console.log(v)
325
+      return v == 0 ? '0' : v
326
     },
326
     },
327
-    glucose: function() {
328
-      var v = this.getValueStr("glucose", "glucose");
329
-      return v.length == 0 ? "0" : v;
327
+    glucose: function () {
328
+      var v = this.getValueStr('glucose', 'glucose')
329
+      return v.length == 0 ? '0' : v
330
     },
330
     },
331
-    dialysate_temperature: function() {
331
+    dialysate_temperature: function () {
332
       var v = this.getValueStr(
332
       var v = this.getValueStr(
333
-        "dialysate_temperature",
334
-        "dialysate_temperature"
335
-      );
336
-      return v.length == 0 ? "0" : v;
333
+        'dialysate_temperature',
334
+        'dialysate_temperature'
335
+      )
336
+      return v.length == 0 ? '0' : v
337
     },
337
     },
338
-    dialyzer: function() {
339
-      var v = this.getValueStr("dialyzer", "hemodialysis_machine");
338
+    dialyzer: function () {
339
+      var v = this.getValueStr('dialyzer', 'hemodialysis_machine')
340
       if (v.length == 0) {
340
       if (v.length == 0) {
341
-        return "";
341
+        return ''
342
       }
342
       }
343
       if (this.device_number_map[v] != undefined) {
343
       if (this.device_number_map[v] != undefined) {
344
-        return this.device_number_map[v].name;
344
+        return this.device_number_map[v].name
345
       }
345
       }
346
-      return "";
346
+      return ''
347
     },
347
     },
348
-    dialysate_formulation: function() {
348
+    dialysate_formulation: function () {
349
       var v = this.getValueStr(
349
       var v = this.getValueStr(
350
-        "dialysate_formulation",
351
-        "dialysate_formulation"
352
-      );
350
+        'dialysate_formulation',
351
+        'dialysate_formulation'
352
+      )
353
       if (v.length == 0) {
353
       if (v.length == 0) {
354
-        return "";
354
+        return ''
355
       }
355
       }
356
       if (v in this.dialysateFormulationMap) {
356
       if (v in this.dialysateFormulationMap) {
357
-        return this.dialysateFormulationMap[v].name;
357
+        return this.dialysateFormulationMap[v].name
358
       }
358
       }
359
-      return "";
359
+      return ''
360
     },
360
     },
361
-    prescription_dewatering: function() {
362
-      var v = this.getValueStr("prescription_dewatering", "dewater");
363
-      return v.length == 0 ? "0" : v;
361
+    prescription_dewatering: function () {
362
+      var v = this.getValueStr('prescription_dewatering', 'dewater')
363
+      return v.length == 0 ? '0' : v
364
     },
364
     },
365
-    anticoagulant: function() {
366
-      var v = this.getValueStr("anticoagulant", "anticoagulant");
365
+    anticoagulant: function () {
366
+      var v = this.getValueStr('anticoagulant', 'anticoagulant')
367
       if (v.length == 0) {
367
       if (v.length == 0) {
368
-        return "";
368
+        return ''
369
       }
369
       }
370
       if (this.$store.getters.anticoagulants_confit[v] != undefined) {
370
       if (this.$store.getters.anticoagulants_confit[v] != undefined) {
371
-        return this.$store.getters.anticoagulants_confit[v].name;
371
+        return this.$store.getters.anticoagulants_confit[v].name
372
       }
372
       }
373
-      return "";
373
+      return ''
374
     },
374
     },
375
-    anticoagulant_zongliang: function() {
375
+    anticoagulant_zongliang: function () {
376
       var v = this.getValueStr(
376
       var v = this.getValueStr(
377
-        "anticoagulant_zongliang",
378
-        "anticoagulant_zongliang"
379
-      );
380
-      return v.length == 0 ? "0" : v;
377
+        'anticoagulant_zongliang',
378
+        'anticoagulant_zongliang'
379
+      )
380
+      return v.length == 0 ? '0' : v
381
     },
381
     },
382
-    calcium: function() {
383
-      var v = this.getValueStr("calcium", "calcium");
384
-      v = this.getFloat(v);
385
-      return v == 0 ? "0" : v;
382
+    calcium: function () {
383
+      var v = this.getValueStr('calcium', 'calcium')
384
+      v = this.getFloat(v)
385
+      return v == 0 ? '0' : v
386
     },
386
     },
387
 
387
 
388
-    conductivity: function() {
389
-      var v = this.getValueStr("conductivity", "conductivity");
390
-      return v.length == 0 ? "0" : v;
388
+    conductivity: function () {
389
+      var v = this.getValueStr('conductivity', 'conductivity')
390
+      return v.length == 0 ? '0' : v
391
     },
391
     },
392
-    dialyzer_perfusion_apparatus: function() {
392
+    dialyzer_perfusion_apparatus: function () {
393
       return this.getValueStr(
393
       return this.getValueStr(
394
-        "dialyzer_perfusion_apparatus",
395
-        "dialyzer_perfusion_apparatus"
396
-      );
394
+        'dialyzer_perfusion_apparatus',
395
+        'dialyzer_perfusion_apparatus'
396
+      )
397
     },
397
     },
398
-    note: function() {
399
-      return this.getValueStr("remark", "remark");
398
+    note: function () {
399
+      return this.getValueStr('remark', 'remark')
400
     },
400
     },
401
-    body_fluid: function() {
402
-      var id = this.getValueStr("body_fluid", "body_fluid");
401
+    body_fluid: function () {
402
+      var id = this.getValueStr('body_fluid', 'body_fluid')
403
       if (id == 0) {
403
       if (id == 0) {
404
-        return "";
404
+        return ''
405
       }
405
       }
406
-      var bodyFluidOptions = this.$store.getters.body_fluid;
406
+      var bodyFluidOptions = this.$store.getters.body_fluid
407
       for (let i = 0; i < bodyFluidOptions.length; i++) {
407
       for (let i = 0; i < bodyFluidOptions.length; i++) {
408
         if (bodyFluidOptions[i].id == id) {
408
         if (bodyFluidOptions[i].id == id) {
409
-          return bodyFluidOptions[i].name;
409
+          return bodyFluidOptions[i].name
410
         }
410
         }
411
       }
411
       }
412
     },
412
     },
413
-    special_medicine: function() {
414
-      var id = this.getValueStr("special_medicine", "special_medicine");
413
+    special_medicine: function () {
414
+      var id = this.getValueStr('special_medicine', 'special_medicine')
415
       if (id == 0) {
415
       if (id == 0) {
416
-        return "";
416
+        return ''
417
       }
417
       }
418
-      var special_medicine = this.$store.getters.special_medicine;
418
+      var special_medicine = this.$store.getters.special_medicine
419
       for (let i = 0; i < special_medicine.length; i++) {
419
       for (let i = 0; i < special_medicine.length; i++) {
420
         if (special_medicine[i].id == id) {
420
         if (special_medicine[i].id == id) {
421
-          return special_medicine[i].name;
421
+          return special_medicine[i].name
422
         }
422
         }
423
       }
423
       }
424
     },
424
     },
425
-    special_medicine_other: function() {
425
+    special_medicine_other: function () {
426
       return this.getValueStr(
426
       return this.getValueStr(
427
-        "special_medicine_other",
428
-        "special_medicine_other"
429
-      );
427
+        'special_medicine_other',
428
+        'special_medicine_other'
429
+      )
430
     },
430
     },
431
-    blood_access: function() {
432
-      var id = this.getValueStr("blood_access", "blood_access");
431
+    blood_access: function () {
432
+      var id = this.getValueStr('blood_access', 'blood_access')
433
       if (id == 0) {
433
       if (id == 0) {
434
-        return "";
434
+        return ''
435
       }
435
       }
436
       // var blood_access = this.$store.getters.blood_access
436
       // var blood_access = this.$store.getters.blood_access
437
-      var blood_access = getDataConfig("hemodialysis", "vascular_access_desc");
438
-      console.log("blood_access", blood_access);
437
+      var blood_access = getDataConfig('hemodialysis', 'vascular_access_desc')
438
+      console.log('blood_access', blood_access)
439
       for (let i = 0; i < blood_access.length; i++) {
439
       for (let i = 0; i < blood_access.length; i++) {
440
         if (blood_access[i].id == id) {
440
         if (blood_access[i].id == id) {
441
-          return blood_access[i].name;
441
+          return blood_access[i].name
442
         }
442
         }
443
       }
443
       }
444
     },
444
     },
445
-    displace_liqui: function() {
446
-      var id = this.getValueStr("displace_liqui_part", "displace_liqui_part");
445
+    displace_liqui: function () {
446
+      var id = this.getValueStr('displace_liqui_part', 'displace_liqui_part')
447
       var displace_liqui_value = this.getValueStr(
447
       var displace_liqui_value = this.getValueStr(
448
-        "displace_liqui_value",
449
-        "displace_liqui_value"
450
-      );
451
-      var displace_liqui_part = "";
452
-      var displace_liqui = this.$store.getters.displace_liqui;
448
+        'displace_liqui_value',
449
+        'displace_liqui_value'
450
+      )
451
+      var displace_liqui_part = ''
452
+      var displace_liqui = this.$store.getters.displace_liqui
453
       for (let i = 0; i < displace_liqui.length; i++) {
453
       for (let i = 0; i < displace_liqui.length; i++) {
454
         if (displace_liqui[i].id == id) {
454
         if (displace_liqui[i].id == id) {
455
-          displace_liqui_part = displace_liqui[i].name;
455
+          displace_liqui_part = displace_liqui[i].name
456
         }
456
         }
457
       }
457
       }
458
-      return displace_liqui_part;
458
+      return displace_liqui_part
459
     },
459
     },
460
-    ultrafiltration: function() {
461
-      var v = this.getValueStr("ultrafiltration", "ultrafiltration");
462
-      v = this.getFloat(v);
463
-      return v.length == 0 ? "0" : v;
460
+    ultrafiltration: function () {
461
+      var v = this.getValueStr('ultrafiltration', 'ultrafiltration')
462
+      v = this.getFloat(v)
463
+      return v.length == 0 ? '0' : v
464
     },
464
     },
465
-    target_ktv: function() {
466
-      var v = this.getValueStr("target_ktv", "target_ktv");
467
-      return v.length == 0 ? "0" : v;
465
+    target_ktv: function () {
466
+      var v = this.getValueStr('target_ktv', 'target_ktv')
467
+      return v.length == 0 ? '0' : v
468
     }
468
     }
469
   },
469
   },
470
-  created() {
471
-    var perfusion_apparatus = this.$store.getters.perfusion_apparatus;
472
-    var map = {};
470
+  created () {
471
+    var perfusion_apparatus = this.$store.getters.perfusion_apparatus
472
+    var map = {}
473
     for (let index = 0; index < perfusion_apparatus.length; index++) {
473
     for (let index = 0; index < perfusion_apparatus.length; index++) {
474
-      const p = perfusion_apparatus[index];
475
-      map[p.id] = p;
474
+      const p = perfusion_apparatus[index]
475
+      map[p.id] = p
476
     }
476
     }
477
-    this.perfusion_apparatus_map = map;
477
+    this.perfusion_apparatus_map = map
478
 
478
 
479
     var dialysateFormulationOptions = getDataConfig(
479
     var dialysateFormulationOptions = getDataConfig(
480
-      "hemodialysis",
481
-      "dialysate_formulation"
482
-    );
480
+      'hemodialysis',
481
+      'dialysate_formulation'
482
+    )
483
     for (var index in dialysateFormulationOptions) {
483
     for (var index in dialysateFormulationOptions) {
484
       this.dialysateFormulationMap[dialysateFormulationOptions[index].id] =
484
       this.dialysateFormulationMap[dialysateFormulationOptions[index].id] =
485
-        dialysateFormulationOptions[index];
485
+        dialysateFormulationOptions[index]
486
     }
486
     }
487
     this.dialyzerPerfusionApparatus = getDataConfig(
487
     this.dialyzerPerfusionApparatus = getDataConfig(
488
-      "hemodialysis",
489
-      "dialyzer_perfusion_apparatus"
490
-    );
488
+      'hemodialysis',
489
+      'dialyzer_perfusion_apparatus'
490
+    )
491
     for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
491
     for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
492
       if (
492
       if (
493
         this.prescription.dialyzer_perfusion_apparatus ==
493
         this.prescription.dialyzer_perfusion_apparatus ==
495
       ) {
495
       ) {
496
         this.prescription.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
496
         this.prescription.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
497
           i
497
           i
498
-        ].name;
498
+        ].name
499
       }
499
       }
500
     }
500
     }
501
-    console.log("透析处方----2", this.prescription);
501
+    console.log('透析处方----2', this.prescription)
502
   },
502
   },
503
   methods: {
503
   methods: {
504
-    getDisplaceLiquiValue: function() {
505
-      return this.getValueStr("displace_liqui_value", "displace_liqui_value");
504
+    getDisplaceLiquiValue: function () {
505
+      return this.getValueStr('displace_liqui_value', 'displace_liqui_value')
506
     },
506
     },
507
-    isShow(name) {
508
-      var filedList = this.$store.getters.user.fileds;
507
+    isShow (name) {
508
+      var filedList = this.$store.getters.user.fileds
509
       for (let i = 0; i < filedList.length; i++) {
509
       for (let i = 0; i < filedList.length; i++) {
510
         if (
510
         if (
511
           filedList[i].module == 1 &&
511
           filedList[i].module == 1 &&
512
           filedList[i].filed_name_cn == name &&
512
           filedList[i].filed_name_cn == name &&
513
           filedList[i].is_show == 1
513
           filedList[i].is_show == 1
514
         ) {
514
         ) {
515
-          return true;
515
+          return true
516
         }
516
         }
517
       }
517
       }
518
-      return false;
518
+      return false
519
     },
519
     },
520
-    getValueStr(pkey, skey) {
520
+    getValueStr (pkey, skey) {
521
       if (
521
       if (
522
-        (this.prescription == null || this.prescription.id == "") &&
523
-        (this.solution == null || this.solution.id == "")
522
+        (this.prescription == null || this.prescription.id == '') &&
523
+        (this.solution == null || this.solution.id == '')
524
       ) {
524
       ) {
525
-        return "";
526
-      } else if (this.prescription != null && this.prescription.id != "") {
525
+        return ''
526
+      } else if (this.prescription != null && this.prescription.id != '') {
527
         if (
527
         if (
528
           this.prescription[pkey] == null ||
528
           this.prescription[pkey] == null ||
529
           this.prescription[pkey] == undefined
529
           this.prescription[pkey] == undefined
530
         ) {
530
         ) {
531
-          return "";
531
+          return ''
532
         }
532
         }
533
-        return this.prescription[pkey] + "";
533
+        return this.prescription[pkey] + ''
534
       } else {
534
       } else {
535
         if (this.solution[skey] == null || this.solution[skey] == undefined) {
535
         if (this.solution[skey] == null || this.solution[skey] == undefined) {
536
-          return "";
536
+          return ''
537
         }
537
         }
538
-        return this.solution[skey] + "";
538
+        return this.solution[skey] + ''
539
       }
539
       }
540
     },
540
     },
541
-    getFloat: function(x) {
542
-      if (x != ".") {
543
-        var f = Math.round(x * 100) / 100;
544
-        var s = f.toString();
545
-        var rs = s.indexOf(".");
541
+    getFloat: function (x) {
542
+      if (x != '.') {
543
+        var f = Math.round(x * 100) / 100
544
+        var s = f.toString()
545
+        var rs = s.indexOf('.')
546
         if (rs <= 0) {
546
         if (rs <= 0) {
547
-          rs = s.length;
548
-          s += ".";
547
+          rs = s.length
548
+          s += '.'
549
         }
549
         }
550
         while (s.length <= rs + 1) {
550
         while (s.length <= rs + 1) {
551
-          s += "0";
551
+          s += '0'
552
         }
552
         }
553
-        return s;
553
+        return s
554
       } else {
554
       } else {
555
-        return "0.0";
555
+        return '0.0'
556
       }
556
       }
557
     },
557
     },
558
-    getData(val) {
559
-      var obj = "";
558
+    getData (val) {
559
+      var obj = ''
560
       for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
560
       for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
561
         if (val == this.dialyzerPerfusionApparatus[i].id) {
561
         if (val == this.dialyzerPerfusionApparatus[i].id) {
562
-          obj = this.dialyzerPerfusionApparatus[i].name;
562
+          obj = this.dialyzerPerfusionApparatus[i].name
563
         }
563
         }
564
       }
564
       }
565
-      return obj;
565
+      return obj
566
     }
566
     }
567
   }
567
   }
568
-};
568
+}
569
 </script>
569
 </script>
570
 
570
 
571
 <style rel="stylesheet/scss" lang="scss" scoped>
571
 <style rel="stylesheet/scss" lang="scss" scoped>

+ 79 - 79
src/pages/waitingRoom/components/dialysisPrescription.vue Просмотреть файл

122
 
122
 
123
 <script>
123
 <script>
124
 export default {
124
 export default {
125
-  name: "DialysisPrescription",
126
-  data() {
125
+  name: 'DialysisPrescription',
126
+  data () {
127
     return {
127
     return {
128
-      title: "透析处方"
128
+      title: '透析处方'
129
       // note: "",
129
       // note: "",
130
       // doctor: "刘小军 医生",
130
       // doctor: "刘小军 医生",
131
       // row1: [
131
       // row1: [
157
       // ],
157
       // ],
158
       // prescription: null,
158
       // prescription: null,
159
       // solution: null,
159
       // solution: null,
160
-    };
160
+    }
161
   },
161
   },
162
   props: {
162
   props: {
163
     prescription: {
163
     prescription: {
180
   // },
180
   // },
181
   computed: {
181
   computed: {
182
     // row1
182
     // row1
183
-    dialysis_mode: function() {
184
-      return this.getValueStr("mode_id", "mode_id");
183
+    dialysis_mode: function () {
184
+      return this.getValueStr('mode_id', 'mode_id')
185
     },
185
     },
186
-    perfusion_apparatus: function() {
187
-      return this.getValueStr("perfusion_apparatus", "perfusion_apparatus");
186
+    perfusion_apparatus: function () {
187
+      return this.getValueStr('perfusion_apparatus', 'perfusion_apparatus')
188
     },
188
     },
189
-    displace_liqui: function() {
190
-      var v = this.getValueStr("displace_liqui", "displace_liqui");
191
-      return v.length == 0 ? "0" : v;
189
+    displace_liqui: function () {
190
+      var v = this.getValueStr('displace_liqui', 'displace_liqui')
191
+      return v.length == 0 ? '0' : v
192
     },
192
     },
193
-    anticoagulant_shouji: function() {
194
-      var v = this.getValueStr("anticoagulant_shouji", "anticoagulant_shouji");
195
-      return v.length == 0 ? "0" : v;
193
+    anticoagulant_shouji: function () {
194
+      var v = this.getValueStr('anticoagulant_shouji', 'anticoagulant_shouji')
195
+      return v.length == 0 ? '0' : v
196
     },
196
     },
197
-    kalium: function() {
198
-      var v = this.getValueStr("kalium", "kalium");
199
-      return v.length == 0 ? "0" : v;
197
+    kalium: function () {
198
+      var v = this.getValueStr('kalium', 'kalium')
199
+      return v.length == 0 ? '0' : v
200
     },
200
     },
201
-    bicarbonate: function() {
202
-      var v = this.getValueStr("bicarbonate", "bicarbonate");
203
-      return v.length == 0 ? "0" : v;
201
+    bicarbonate: function () {
202
+      var v = this.getValueStr('bicarbonate', 'bicarbonate')
203
+      return v.length == 0 ? '0' : v
204
     },
204
     },
205
-    dialysate_flow: function() {
206
-      var v = this.getValueStr("dialysate_flow", "dialysate_flow");
207
-      return v.length == 0 ? "0" : v;
205
+    dialysate_flow: function () {
206
+      var v = this.getValueStr('dialysate_flow', 'dialysate_flow')
207
+      return v.length == 0 ? '0' : v
208
     },
208
     },
209
     // row2
209
     // row2
210
-    dialysis_duration: function() {
211
-      var v = this.getValueStr("dialysis_duration", "dialysis_duration");
212
-      return v.length == 0 ? "0" : v;
210
+    dialysis_duration: function () {
211
+      var v = this.getValueStr('dialysis_duration', 'dialysis_duration')
212
+      return v.length == 0 ? '0' : v
213
     },
213
     },
214
-    blood_flow_volume: function() {
215
-      var v = this.getValueStr("blood_flow_volume", "blood_flow_volume");
216
-      return v.length == 0 ? "0" : v;
214
+    blood_flow_volume: function () {
215
+      var v = this.getValueStr('blood_flow_volume', 'blood_flow_volume')
216
+      return v.length == 0 ? '0' : v
217
     },
217
     },
218
-    replacement_way: function() {
219
-      return this.getValueStr("replacement_way", "replacement_way");
218
+    replacement_way: function () {
219
+      return this.getValueStr('replacement_way', 'replacement_way')
220
     },
220
     },
221
-    anticoagulant_weichi: function() {
222
-      var v = this.getValueStr("anticoagulant_weichi", "anticoagulant_weichi");
223
-      return v.length == 0 ? "0" : v;
221
+    anticoagulant_weichi: function () {
222
+      var v = this.getValueStr('anticoagulant_weichi', 'anticoagulant_weichi')
223
+      return v.length == 0 ? '0' : v
224
     },
224
     },
225
-    sodium: function() {
226
-      var v = this.getValueStr("sodium", "sodium");
227
-      return v.length == 0 ? "0" : v;
225
+    sodium: function () {
226
+      var v = this.getValueStr('sodium', 'sodium')
227
+      return v.length == 0 ? '0' : v
228
     },
228
     },
229
-    glucose: function() {
230
-      var v = this.getValueStr("glucose", "glucose");
231
-      return v.length == 0 ? "0" : v;
229
+    glucose: function () {
230
+      var v = this.getValueStr('glucose', 'glucose')
231
+      return v.length == 0 ? '0' : v
232
     },
232
     },
233
-    dialysate_temperature: function() {
233
+    dialysate_temperature: function () {
234
       var v = this.getValueStr(
234
       var v = this.getValueStr(
235
-        "dialysate_temperature",
236
-        "dialysate_temperature"
237
-      );
238
-      return v.length == 0 ? "0" : v;
235
+        'dialysate_temperature',
236
+        'dialysate_temperature'
237
+      )
238
+      return v.length == 0 ? '0' : v
239
     },
239
     },
240
-    dialyzer: function() {
241
-      var v = this.getValueStr("dialyzer", "hemodialysis_machine");
242
-      return v.length == 0 ? "0" : v;
240
+    dialyzer: function () {
241
+      var v = this.getValueStr('dialyzer', 'hemodialysis_machine')
242
+      return v.length == 0 ? '0' : v
243
     },
243
     },
244
-    prescription_dewatering: function() {
245
-      var v = this.getValueStr("prescription_dewatering", "dewater");
246
-      return v.length == 0 ? "0" : v;
244
+    prescription_dewatering: function () {
245
+      var v = this.getValueStr('prescription_dewatering', 'dewater')
246
+      return v.length == 0 ? '0' : v
247
     },
247
     },
248
-    anticoagulant: function() {
249
-      return this.getValueStr("anticoagulant", "anticoagulant");
248
+    anticoagulant: function () {
249
+      return this.getValueStr('anticoagulant', 'anticoagulant')
250
     },
250
     },
251
-    anticoagulant_zongliang: function() {
251
+    anticoagulant_zongliang: function () {
252
       var v = this.getValueStr(
252
       var v = this.getValueStr(
253
-        "anticoagulant_zongliang",
254
-        "anticoagulant_zongliang"
255
-      );
256
-      return v.length == 0 ? "0" : v;
253
+        'anticoagulant_zongliang',
254
+        'anticoagulant_zongliang'
255
+      )
256
+      return v.length == 0 ? '0' : v
257
     },
257
     },
258
-    calcium: function() {
259
-      var v = this.getValueStr("calcium", "calcium");
260
-      return v.length == 0 ? "0" : v;
258
+    calcium: function () {
259
+      var v = this.getValueStr('calcium', 'calcium')
260
+      return v.length == 0 ? '0' : v
261
     },
261
     },
262
-    dry_weight: function() {
263
-      var v = this.getValueStr("dry_weight", "dry_weight");
264
-      return v.length == 0 ? "0" : v;
262
+    dry_weight: function () {
263
+      var v = this.getValueStr('dry_weight', 'dry_weight')
264
+      return v.length == 0 ? '0' : v
265
     },
265
     },
266
-    conductivity: function() {
267
-      var v = this.getValueStr("conductivity", "conductivity");
268
-      return v.length == 0 ? "0" : v;
266
+    conductivity: function () {
267
+      var v = this.getValueStr('conductivity', 'conductivity')
268
+      return v.length == 0 ? '0' : v
269
     },
269
     },
270
-    note: function() {
271
-      return this.getValueStr("remark", "remark");
270
+    note: function () {
271
+      return this.getValueStr('remark', 'remark')
272
     }
272
     }
273
   },
273
   },
274
   methods: {
274
   methods: {
276
     //   this.prescription = prescription
276
     //   this.prescription = prescription
277
     //   this.solution = solution
277
     //   this.solution = solution
278
     // },
278
     // },
279
-    getValueStr(pkey, skey) {
279
+    getValueStr (pkey, skey) {
280
       // console.log(this.prescription.id)
280
       // console.log(this.prescription.id)
281
       if (
281
       if (
282
-        (this.prescription == null || this.prescription.id == "") &&
283
-        (this.solution == null || this.solution.id == "")
282
+        (this.prescription == null || this.prescription.id == '') &&
283
+        (this.solution == null || this.solution.id == '')
284
       ) {
284
       ) {
285
-        return "";
286
-      } else if (this.prescription != null && this.prescription.id != "") {
285
+        return ''
286
+      } else if (this.prescription != null && this.prescription.id != '') {
287
         if (
287
         if (
288
           this.prescription[pkey] == null ||
288
           this.prescription[pkey] == null ||
289
           this.prescription[pkey] == undefined
289
           this.prescription[pkey] == undefined
290
         ) {
290
         ) {
291
-          return "";
291
+          return ''
292
         }
292
         }
293
-        return this.prescription[pkey] + "";
293
+        return this.prescription[pkey] + ''
294
       } else {
294
       } else {
295
         if (this.solution[skey] == null || this.solution[skey] == undefined) {
295
         if (this.solution[skey] == null || this.solution[skey] == undefined) {
296
-          return "";
296
+          return ''
297
         }
297
         }
298
-        return this.solution[skey] + "";
298
+        return this.solution[skey] + ''
299
       }
299
       }
300
     }
300
     }
301
     // setPrescription1(prescription, solution) {
301
     // setPrescription1(prescription, solution) {
382
     //   }
382
     //   }
383
     // }
383
     // }
384
   }
384
   }
385
-};
385
+}
386
 </script>
386
 </script>
387
 
387
 
388
 <style rel="stylesheet/scss" lang="scss" scoped></style>
388
 <style rel="stylesheet/scss" lang="scss" scoped></style>