Browse Source

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

csx 4 years ago
parent
commit
20f0ef4751

+ 3 - 2
src/api/dialysis_record.js View File

47
   })
47
   })
48
 }
48
 }
49
 
49
 
50
-export function startDialysis(patient_id, schedule_date, nurse_id, bed_id, lood_drawing, puncture_nurse_id, start_time, schedual_type, mode) {
50
+export function startDialysis(patient_id, schedule_date, nurse_id, bed_id, lood_drawing, puncture_nurse_id, start_time, schedual_type, mode,washpipe_nurse) {
51
   var params = {
51
   var params = {
52
     patient_id: patient_id,
52
     patient_id: patient_id,
53
     date: schedule_date,
53
     date: schedule_date,
57
     start_time: start_time,
57
     start_time: start_time,
58
     lood_drawing: lood_drawing,
58
     lood_drawing: lood_drawing,
59
     schedual_type: schedual_type,
59
     schedual_type: schedual_type,
60
-    mode: mode
60
+    mode: mode,
61
+    washpipe_nurse:washpipe_nurse
61
   }
62
   }
62
   return request({
63
   return request({
63
     url: '/api/dialysis/start_record',
64
     url: '/api/dialysis/start_record',

+ 6 - 9
src/xt_pages/data/showConfig.vue View File

26
           </el-tab-pane>
26
           </el-tab-pane>
27
           <el-tab-pane label="透析上机">
27
           <el-tab-pane label="透析上机">
28
             <dialysis-computer
28
             <dialysis-computer
29
-              :dialysis_monitor_data="dialysis_computer_data"
29
+              :dialysis_computer_data="dialysis_computer_data"
30
               @change="changeComputerData"
30
               @change="changeComputerData"
31
             ></dialysis-computer>
31
             ></dialysis-computer>
32
           </el-tab-pane>
32
           </el-tab-pane>
150
   },
150
   },
151
   created() {
151
   created() {
152
     var filedList = store.getters.xt_user.fileds;
152
     var filedList = store.getters.xt_user.fileds;
153
-    console.log("filedList",filedList)
154
-    var arr = [];
155
-    for (let i = 0; i < filedList.length; i++) {
156
-      if (filedList[i].module == 6) {
157
-        arr.push(filedList[i]);
158
-      }
159
-    }
160
-    console.log("arr", arr);
153
+
161
     for (let i = 0; i < filedList.length; i++) {
154
     for (let i = 0; i < filedList.length; i++) {
162
       switch (filedList[i].module) {
155
       switch (filedList[i].module) {
163
         case 1:
156
         case 1:
178
         case 6:
171
         case 6:
179
           this.dialysis_summary_data.push(filedList[i]);
172
           this.dialysis_summary_data.push(filedList[i]);
180
           break;
173
           break;
174
+        case 7:
175
+          this.dialysis_computer_data.push(filedList[i]);
176
+          break;
177
+
181
       }
178
       }
182
     }
179
     }
183
   }
180
   }

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

17
           }}</span>
17
           }}</span>
18
           <span v-if="this.$store.getters.xt_user.template_info.template_id != 20" class="unit">{{ replacement_total != "0" ? "L" : "" }}</span>
18
           <span v-if="this.$store.getters.xt_user.template_info.template_id != 20" class="unit">{{ replacement_total != "0" ? "L" : "" }}</span>
19
           <span v-if="this.$store.getters.xt_user.template_info.template_id == 20" class="unit">{{ replacement_total != "0" ? "ml" : "" }}</span>
19
           <span v-if="this.$store.getters.xt_user.template_info.template_id == 20" class="unit">{{ replacement_total != "0" ? "ml" : "" }}</span>
20
-          
20
+
21
         </li>
21
         </li>
22
 
22
 
23
         <li v-if="isShow('透析液配方')">
23
         <li v-if="isShow('透析液配方')">
272
           <label>目标KT/V: </label>
272
           <label>目标KT/V: </label>
273
           <span class="content">{{ target_ktv != "0" ? target_ktv : "" }}</span>
273
           <span class="content">{{ target_ktv != "0" ? target_ktv : "" }}</span>
274
         </li>
274
         </li>
275
+
276
+        <li v-if="isShow('目标KT/V')">
277
+          <label>目标KT/V: </label>
278
+          <span class="content">{{ target_ktv != "0" ? target_ktv : "" }}</span>
279
+        </li>
280
+
281
+
282
+        <li v-if="isShow('抗凝提前停止')">
283
+          <label>抗凝提前停止 : </label>
284
+          <span class="content" v-if="this.prescription.anticoagulant_stop_time_hour > 0 && this.prescription.anticoagulant_stop_time_min > 0 ">{{this.prescription.anticoagulant_stop_time_hour }}小时{{this.prescription.anticoagulant_stop_time_min }}分钟</span>
285
+          <span class="content" v-if="this.prescription.anticoagulant_stop_time_hour > 0 && this.prescription.anticoagulant_stop_time_min == 0 ">{{this.prescription.anticoagulant_stop_time_hour }}小时</span>
286
+          <span class="content" v-if="this.prescription.anticoagulant_stop_time_hour == 0 && this.prescription.anticoagulant_stop_time_min > 0 ">{{this.prescription.anticoagulant_stop_time_min }}分钟</span>
287
+          <span class="content" v-if="this.prescription.anticoagulant_stop_time_hour == 0 && this.prescription.anticoagulant_stop_time_min == 0 "></span>
288
+          <span class="unit"></span>
289
+        </li>
290
+
291
+
275
       </ul>
292
       </ul>
276
     </div>
293
     </div>
277
   </div>
294
   </div>

+ 24 - 0
src/xt_pages/dialysis/details/assessmentBefore.vue View File

280
           <span class="content">{{ internal_fistula_skin }}</span>
280
           <span class="content">{{ internal_fistula_skin }}</span>
281
           <span class="unit"></span>
281
           <span class="unit"></span>
282
         </li>
282
         </li>
283
+
284
+        <li v-if="isShow('导管缝线')">
285
+          <label>导管缝线: </label>
286
+          <span class="content" v-if="this.record && this.record.catheter_suture.length > 0 && this.record.catheter_suture_other.length > 0 ">{{this.record.catheter_suture }},{{this.record.catheter_suture_other }}</span>
287
+          <span class="content" v-if="this.record &&this.record.catheter_suture.length > 0 && this.record.catheter_suture_other.length == 0 ">{{this.record.catheter_suture }}</span>
288
+          <span class="content" v-if="this.record &&this.record.catheter_suture.length == 0 && this.record.catheter_suture_other.length > 0 ">{{this.record.catheter_suture_other }}</span>
289
+          <span class="content" v-if="this.record && this.record.catheter_suture.length == 0 && this.record.catheter_suture_other.length == 0 "></span>
290
+          <span class="unit"></span>
291
+        </li>
292
+
293
+
294
+        <li v-if="isShow('尿量')">
295
+          <label>尿量(ml): </label>
296
+          <span class="content">{{ this.record.urine_volume ? this.record.urine_volume : ''}}</span>
297
+          <span class="unit" v-if="this.record.urine_volume">ml</span>
298
+        </li>
299
+
300
+
301
+        <li v-if="isShow('水肿')">
302
+          <label>水肿: </label>
303
+          <span class="content">{{ this.record.edema}}</span>
304
+          <span class="unit"></span>
305
+        </li>
306
+
283
       </ul>
307
       </ul>
284
     </div>
308
     </div>
285
     <div class="note">
309
     <div class="note">

+ 83 - 3
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue View File

252
             </el-form-item>
252
             </el-form-item>
253
           </el-col>
253
           </el-col>
254
 
254
 
255
-                
255
+
256
           <el-col :span="8">
256
           <el-col :span="8">
257
             <el-form-item label="针眼: " v-if="isShow('针眼')">
257
             <el-form-item label="针眼: " v-if="isShow('针眼')">
258
               <el-input v-model="assessmentBeforeDislysis.pinholing" readonly
258
               <el-input v-model="assessmentBeforeDislysis.pinholing" readonly
474
               <el-input v-model="assessmentBeforeDislysis.skin_other"></el-input>
474
               <el-input v-model="assessmentBeforeDislysis.skin_other"></el-input>
475
             </el-form-item>
475
             </el-form-item>
476
           </el-col>
476
           </el-col>
477
-   
477
+
478
+
479
+
480
+
481
+
482
+
483
+
484
+          <el-col :span="8">
485
+            <el-form-item label="导管缝线:" v-if="isShow('导管缝线')">
486
+              <el-input v-model="assessmentBeforeDislysis.catheter_suture" @focus="showInnerDialog('15')"></el-input>
487
+            </el-form-item>
488
+          </el-col>
489
+
490
+
491
+          <el-col :span="8" v-if="isShow('导管缝线(其他)')">
492
+            <el-form-item label="导管缝线(其他):">
493
+              <el-input v-model="assessmentBeforeDislysis.catheter_suture_other"></el-input>
494
+            </el-form-item>
495
+          </el-col>
496
+
497
+
498
+
499
+          <el-col :span="8" v-if="isShow('尿量')">
500
+            <el-form-item label="尿量(ml):">
501
+              <el-input v-model="assessmentBeforeDislysis.urine_volume"></el-input>
502
+            </el-form-item>
503
+          </el-col>
504
+
505
+
506
+
507
+
508
+          <el-col :span="8">
509
+            <el-form-item label="水肿:" v-if="isShow('水肿')">
510
+              <el-input v-model="assessmentBeforeDislysis.edema" @focus="showInnerDialog('16')"></el-input>
511
+            </el-form-item>
512
+          </el-col>
513
+
514
+
515
+
516
+
517
+
518
+
519
+
520
+
521
+
522
+
523
+
478
 
524
 
479
           <!-- </el-row>
525
           <!-- </el-row>
480
 
526
 
580
         dialysis_interphase: [],
626
         dialysis_interphase: [],
581
         symptom_before_dialysis: [],
627
         symptom_before_dialysis: [],
582
         blood_access_noise: [],
628
         blood_access_noise: [],
629
+        catheter_suture:[],
630
+        edema:[],
583
         catheter: [],
631
         catheter: [],
584
         complication: [],
632
         complication: [],
585
         hemorrhage: [],
633
         hemorrhage: [],
634
           skin_other: '',
682
           skin_other: '',
635
           infect_other: '',
683
           infect_other: '',
636
           machine_type: '',
684
           machine_type: '',
637
-          pinholing:''
685
+          pinholing:'',
686
+          catheter_suture:'',
687
+          catheter_suture_other:'',
688
+          urine_volume:'',
689
+          edema:'',
690
+
638
         },
691
         },
639
 
692
 
640
         InnerDialogProps: {
693
         InnerDialogProps: {
893
             this.InnerDialogProps.isShowTextArea = false
946
             this.InnerDialogProps.isShowTextArea = false
894
 
947
 
895
             break
948
             break
949
+          case '15': // 导管缝线
950
+            this.InnerDialogProps.values = this.catheter_suture
951
+            this.InnerDialogProps.titles = '导管缝线'
952
+            this.InnerDialogProps.type = 'catheter_suture'
953
+            this.InnerDialogProps.selected = this.assessmentBeforeDislysis.catheter_suture
954
+            this.InnerDialogProps.isShowTextArea = false
955
+
956
+            break
957
+          case '16': // 水肿
958
+            this.InnerDialogProps.values = this.edema
959
+            this.InnerDialogProps.titles = '水肿'
960
+            this.InnerDialogProps.type = 'edema'
961
+            this.InnerDialogProps.selected = this.assessmentBeforeDislysis.edema
962
+            this.InnerDialogProps.isShowTextArea = false
963
+
964
+            break
965
+
896
         }
966
         }
897
       },
967
       },
898
       innerDialogComfirm: function(val) {
968
       innerDialogComfirm: function(val) {
944
           case 'pinholing':
1014
           case 'pinholing':
945
             this.assessmentBeforeDislysis.pinholing = val.value.join(',')
1015
             this.assessmentBeforeDislysis.pinholing = val.value.join(',')
946
             break
1016
             break
1017
+          case 'catheter_suture':
1018
+            this.assessmentBeforeDislysis.catheter_suture = val.value.join(',')
1019
+            break
1020
+          case 'edema':
1021
+            this.assessmentBeforeDislysis.edema = val.value.join(',')
1022
+            break
947
         }
1023
         }
948
       },
1024
       },
949
       innerDialogCancle: function() {
1025
       innerDialogCancle: function() {
1086
       this.internal_fistula_skin = getDataConfig('hemodialysis', 'internal_fistula_skin')
1162
       this.internal_fistula_skin = getDataConfig('hemodialysis', 'internal_fistula_skin')
1087
       this.puncture_method = getDataConfig('hemodialysis', 'puncture_method')
1163
       this.puncture_method = getDataConfig('hemodialysis', 'puncture_method')
1088
       this.machineType = getDataConfig('hemodialysis', 'machine_type')
1164
       this.machineType = getDataConfig('hemodialysis', 'machine_type')
1165
+
1166
+      this.catheter_suture = getDataConfig('hemodialysis', 'catheter_suture')
1167
+      this.edema = getDataConfig('hemodialysis', 'edema')
1168
+
1089
       this.blood_access_noise = this.$store.getters.blood_access_noise
1169
       this.blood_access_noise = this.$store.getters.blood_access_noise
1090
       var date = this.$route.query && this.$route.query.date
1170
       var date = this.$route.query && this.$route.query.date
1091
       this.record_date = uParseTime(date, '{y}-{m}-{d}')
1171
       this.record_date = uParseTime(date, '{y}-{m}-{d}')

+ 27 - 6
src/xt_pages/dialysis/details/dialog/computer_dialog.vue View File

4
       <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
4
       <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
5
       <el-form :model="form" label-width="100px">
5
       <el-form :model="form" label-width="100px">
6
 
6
 
7
-        <el-form-item label="班次">
7
+        <el-form-item label="班次" v-if="isShowFiled('班次')">
8
           <el-select v-model="schedual_type" placeholder="请选择班次" @change="changeSchedualType">
8
           <el-select v-model="schedual_type" placeholder="请选择班次" @change="changeSchedualType">
9
             <el-option v-for="(item, index) in schedules_type" :key="index" :value="item.id"
9
             <el-option v-for="(item, index) in schedules_type" :key="index" :value="item.id"
10
                        :label="item.name"></el-option>
10
                        :label="item.name"></el-option>
11
           </el-select>
11
           </el-select>
12
         </el-form-item>
12
         </el-form-item>
13
 
13
 
14
-        <el-form-item label="上机床位">
14
+        <el-form-item label="上机床位"  v-if="isShowFiled('上机床位')">
15
           <el-select v-model="form.bed_id" placeholder="请选择上机床位">
15
           <el-select v-model="form.bed_id" placeholder="请选择上机床位">
16
             <el-option v-for="(bed, index) in zone_beds" :key="index" :value="bed.id" :label="bed.number"></el-option>
16
             <el-option v-for="(bed, index) in zone_beds" :key="index" :value="bed.id" :label="bed.number"></el-option>
17
           </el-select>
17
           </el-select>
18
         </el-form-item>
18
         </el-form-item>
19
-        <el-form-item label="上机护士">
19
+        <el-form-item label="上机护士"  v-if="isShowFiled('上机护士')">
20
           <el-select v-model="form.nurse_id" placeholder="请选择上机护士">
20
           <el-select v-model="form.nurse_id" placeholder="请选择上机护士">
21
             <el-option v-for="(admin, index) in admins" :key="index" :value="admin.id" :label="admin.name"></el-option>
21
             <el-option v-for="(admin, index) in admins" :key="index" :value="admin.id" :label="admin.name"></el-option>
22
           </el-select>
22
           </el-select>
23
         </el-form-item>
23
         </el-form-item>
24
-        <el-form-item label="穿刺护士">
24
+        <el-form-item label="穿刺护士"  v-if="isShowFiled('穿刺护士')">
25
           <el-select v-model="form.puncture_nurse_id" placeholder="请选择穿刺护士">
25
           <el-select v-model="form.puncture_nurse_id" placeholder="请选择穿刺护士">
26
             <el-option v-for="(admin, index) in admins" :key="index" :value="admin.id" :label="admin.name"></el-option>
26
             <el-option v-for="(admin, index) in admins" :key="index" :value="admin.id" :label="admin.name"></el-option>
27
           </el-select>
27
           </el-select>
28
         </el-form-item>
28
         </el-form-item>
29
+        <el-form-item label="冲管护士"  v-if="isShowFiled('冲管护士')">
30
+          <el-select v-model="form.washpipe_nurse" placeholder="请选择穿刺护士">
31
+            <el-option v-for="(admin, index) in admins" :key="index" :value="admin.id" :label="admin.name"></el-option>
32
+          </el-select>
33
+        </el-form-item>
29
         <el-form-item label="引血(ml/min)" v-if="template_id == 6">
34
         <el-form-item label="引血(ml/min)" v-if="template_id == 6">
30
           <el-input type="number" v-model="form.blood_drawing" style="width:200px;"></el-input>
35
           <el-input type="number" v-model="form.blood_drawing" style="width:200px;"></el-input>
31
         </el-form-item>
36
         </el-form-item>
32
 
37
 
33
-        <el-form-item label="上机时间 :" style="width:300px">
38
+        <el-form-item label="上机时间 :" style="width:300px"  v-if="isShowFiled('上机时间')">
34
           <el-date-picker
39
           <el-date-picker
35
             type="datetime"
40
             type="datetime"
36
             format="yyyy-MM-dd HH:mm"
41
             format="yyyy-MM-dd HH:mm"
58
 <script>
63
 <script>
59
   import { GetSchedualNumber, PostModifyStartDialysis, startDialysis } from '@/api/dialysis_record'
64
   import { GetSchedualNumber, PostModifyStartDialysis, startDialysis } from '@/api/dialysis_record'
60
   import { parseTime } from '@/utils'
65
   import { parseTime } from '@/utils'
66
+  import store from '@/store'
61
 
67
 
62
   import request from '@/utils/request'
68
   import request from '@/utils/request'
63
 
69
 
76
         start_time: 0,
82
         start_time: 0,
77
         creator: 0,
83
         creator: 0,
78
         form: {
84
         form: {
85
+          washpipe_nurse:'',
79
           bed_id: '',
86
           bed_id: '',
80
           nurse_id: '',
87
           nurse_id: '',
81
           start_time: '',
88
           start_time: '',
117
       this.schedule_date = this.$route.query.date
124
       this.schedule_date = this.$route.query.date
118
       this.form.nurse_id = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.start_nurse
125
       this.form.nurse_id = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.start_nurse
119
       this.form.puncture_nurse_id = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.puncture_nurse
126
       this.form.puncture_nurse_id = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.puncture_nurse
127
+      this.form.washpipe_nurse = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.washpipe_nurse
128
+
120
       if (this.form.puncture_nurse_id == 0) {
129
       if (this.form.puncture_nurse_id == 0) {
121
         this.form.puncture_nurse_id = this.$store.getters.xt_user.user.id
130
         this.form.puncture_nurse_id = this.$store.getters.xt_user.user.id
122
       }
131
       }
129
 
138
 
130
         this.form.nurse_id = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.start_nurse
139
         this.form.nurse_id = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.start_nurse
131
         this.form.puncture_nurse_id = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.puncture_nurse
140
         this.form.puncture_nurse_id = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.puncture_nurse
141
+        this.form.washpipe_nurse = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.washpipe_nurse
132
 
142
 
133
         var nowDate = new Date()
143
         var nowDate = new Date()
134
         var nowYear = nowDate.getFullYear()
144
         var nowYear = nowDate.getFullYear()
149
     },
159
     },
150
     computed: {},
160
     computed: {},
151
     methods: {
161
     methods: {
162
+      isShowFiled(name) {
163
+        var filedList = store.getters.xt_user.fileds
164
+        for (let i = 0; i < filedList.length; i++) {
165
+          if (filedList[i].module == 7 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
166
+            return true
167
+          }
168
+        }
169
+        return false
170
+      },
152
       changeSchedualType: function(schedual_type) {
171
       changeSchedualType: function(schedual_type) {
153
         let ParamsQuery = {}
172
         let ParamsQuery = {}
154
         ParamsQuery['schedual_type'] = schedual_type
173
         ParamsQuery['schedual_type'] = schedual_type
283
         this.loading = true
302
         this.loading = true
284
         let mode = '1'
303
         let mode = '1'
285
 
304
 
286
-        startDialysis(this.patient_id, parseTime(this.schedule_date, '{y}-{m}-{d}'), this.form.nurse_id, this.form.bed_id, this.form.lood_drawing, this.form.puncture_nurse_id, this.form.start_time, this.schedual_type, mode).then(rs => {
305
+        startDialysis(this.patient_id, parseTime(this.schedule_date, '{y}-{m}-{d}'), this.form.nurse_id, this.form.bed_id, this.form.lood_drawing, this.form.puncture_nurse_id, this.form.start_time, this.schedual_type, mode,this.form.washpipe_nurse).then(rs => {
287
           this.loading = false
306
           this.loading = false
288
           var resp = rs.data
307
           var resp = rs.data
289
           if (resp.state == 1) {
308
           if (resp.state == 1) {
307
         ParamsQuery['bed'] = this.form.bed_id
326
         ParamsQuery['bed'] = this.form.bed_id
308
         ParamsQuery['start_time'] = this.form.start_time
327
         ParamsQuery['start_time'] = this.form.start_time
309
         ParamsQuery['puncture_nurse'] = this.form.puncture_nurse_id
328
         ParamsQuery['puncture_nurse'] = this.form.puncture_nurse_id
329
+        ParamsQuery['washpipe_nurse'] = this.form.washpipe_nurse
330
+
310
 
331
 
311
         ParamsQuery['mode'] = "2"
332
         ParamsQuery['mode'] = "2"
312
         if (this.dialysis_order.creator != this.$store.getters.xt_user.user.id) {
333
         if (this.dialysis_order.creator != this.$store.getters.xt_user.user.id) {

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

454
             </el-form-item>
454
             </el-form-item>
455
           </el-col>
455
           </el-col>
456
 
456
 
457
+
458
+          <el-col :span="8" v-if="isShows('抗凝提前停止')">
459
+            <el-form-item label="抗凝提前停止(h): ">
460
+              <el-input
461
+                type="number"
462
+                v-model="dialysisPrescription.anticoagulant_stop_time_hour"
463
+              ></el-input>
464
+            </el-form-item>
465
+          </el-col>
466
+          <el-col :span="8" v-if="isShows('抗凝提前停止')">
467
+            <el-form-item label="抗凝提前停止(min): ">
468
+              <el-input
469
+                type="number"
470
+                v-model="dialysisPrescription.anticoagulant_stop_time_min"
471
+              ></el-input>
472
+            </el-form-item>
473
+          </el-col>
474
+
475
+
457
           <!-- </el-row>
476
           <!-- </el-row>
458
           <el-row :gutter="20" > -->
477
           <el-row :gutter="20" > -->
459
           <!--          <el-col :span="8" v-if="isShows('实际超滤量')">-->
478
           <!--          <el-col :span="8" v-if="isShows('实际超滤量')">-->
722
               </el-select>
741
               </el-select>
723
             </el-form-item>
742
             </el-form-item>
724
           </el-col>
743
           </el-col>
744
+
745
+
746
+
747
+
748
+
725
         </el-row>
749
         </el-row>
726
 
750
 
727
         <el-row :gutter="20">
751
         <el-row :gutter="20">
1191
           no_anticoagulant_zongliang: '0',
1215
           no_anticoagulant_zongliang: '0',
1192
           creater: 0,
1216
           creater: 0,
1193
           pre_impulse:0, //预冲量
1217
           pre_impulse:0, //预冲量
1218
+          anticoagulant_stop_time_hour:"",
1219
+          anticoagulant_stop_time_min:"",
1194
         },
1220
         },
1195
 
1221
 
1196
         anticoagulant: {
1222
         anticoagulant: {

+ 61 - 43
src/xt_pages/dialysis/details/dialysisComputer.vue View File

1
- <template>
1
+<template>
2
   <div class="plate-box">
2
   <div class="plate-box">
3
     <h2 class="DetailsTit"><span>{{ title }}</span></h2>
3
     <h2 class="DetailsTit"><span>{{ title }}</span></h2>
4
-    <div class="plate " >
4
+    <div class="plate ">
5
       <ul>
5
       <ul>
6
-        <li>
6
+        <li v-if="isShow('班次')">
7
           <label>班次 : </label>
7
           <label>班次 : </label>
8
           <span class="content">{{ schedual_type }}</span>
8
           <span class="content">{{ schedual_type }}</span>
9
         </li>
9
         </li>
10
-        <li>
10
+        <li v-if="isShow('上机床位')">
11
           <label>上机床位 : </label>
11
           <label>上机床位 : </label>
12
           <span class="content">{{ device_number }}</span>
12
           <span class="content">{{ device_number }}</span>
13
         </li>
13
         </li>
14
-        <li>
14
+        <li v-if="isShow('上机护士')">
15
           <label>上机护士 : </label>
15
           <label>上机护士 : </label>
16
           <span class="content">{{ nurse }}</span>
16
           <span class="content">{{ nurse }}</span>
17
         </li>
17
         </li>
18
       </ul>
18
       </ul>
19
       <ul>
19
       <ul>
20
-           <li>
20
+        <li v-if="isShow('穿刺护士')">
21
           <label>穿刺护士 : </label>
21
           <label>穿刺护士 : </label>
22
           <span class="content">{{ puncture_nurse }}</span>
22
           <span class="content">{{ puncture_nurse }}</span>
23
         </li>
23
         </li>
24
+        <li v-if="isShow('冲管护士')">
25
+          <label>冲管护士 : </label>
26
+          <span class="content">{{ washpipe_nurse }}</span>
27
+        </li>
24
         <li>
28
         <li>
25
           <label>状态 : </label>
29
           <label>状态 : </label>
26
           <span class="content">{{ stage }}</span>
30
           <span class="content">{{ stage }}</span>
27
         </li>
31
         </li>
28
       </ul>
32
       </ul>
29
       <ul>
33
       <ul>
30
-          <li>
34
+        <li v-if="isShow('上机时间')">
31
           <label>上机时间 : </label>
35
           <label>上机时间 : </label>
32
           <span class="content">{{start_time}}</span>
36
           <span class="content">{{start_time}}</span>
33
         </li>
37
         </li>
38
 </template>
42
 </template>
39
 
43
 
40
 <script>
44
 <script>
41
-  import { parseTime } from '@/utils';
45
+  import { parseTime } from '@/utils'
46
+  import store from '@/store'
42
 
47
 
43
   export default {
48
   export default {
44
-  name: 'DialysisComputer',
45
-  data() {
49
+    name: 'DialysisComputer',
50
+    data() {
46
       return {
51
       return {
47
         title: '透析上机 '
52
         title: '透析上机 '
48
       }
53
       }
49
-},
50
-  props: {
54
+    },
55
+    props: {
51
       record: {
56
       record: {
52
         type: Object
57
         type: Object
53
       },
58
       },
57
       device_number_map: {
62
       device_number_map: {
58
         type: Object
63
         type: Object
59
       }
64
       }
60
-  },
61
-  computed: {
62
-    schedual_type:function(){
63
-
64
-      if (this.record.id == 0) {
65
-        return '-'
66
-      }
67
-
68
-      switch (this.record.schedual_type) {
69
-        case 1:
70
-          return "上午"
71
-          break
72
-        case 2:
73
-          return "下午"
65
+    },
66
+    computed: {
67
+      schedual_type: function() {
74
 
68
 
75
-          break
76
-        case 3:
77
-          return "晚上"
69
+        if (this.record.id == 0) {
70
+          return '-'
71
+        }
78
 
72
 
79
-          break
73
+        switch (this.record.schedual_type) {
74
+          case 1:
75
+            return '上午'
76
+            break
77
+          case 2:
78
+            return '下午'
80
 
79
 
81
-      }
80
+            break
81
+          case 3:
82
+            return '晚上'
82
 
83
 
84
+            break
83
 
85
 
86
+        }
84
 
87
 
85
-    },
88
+      },
86
       device_number: function() {
89
       device_number: function() {
87
         if (this.record.id == 0) {
90
         if (this.record.id == 0) {
88
           return '-'
91
           return '-'
89
         }
92
         }
90
 
93
 
94
+        if (this.device_number_map[this.record.bed_id].number.indexOf(this.device_number_map[this.record.bed_id].zone_name) == -1) {
91
 
95
 
92
-        if(this.device_number_map[this.record.bed_id].number.indexOf(this.device_number_map[this.record.bed_id].zone_name) == -1){
93
-
94
-          return this.device_number_map[this.record.bed_id] == null ? '' :this.device_number_map[this.record.bed_id].zone_name +"-"+ this.device_number_map[this.record.bed_id].number
96
+          return this.device_number_map[this.record.bed_id] == null ? '' : this.device_number_map[this.record.bed_id].zone_name + '-' + this.device_number_map[this.record.bed_id].number
95
 
97
 
96
-
97
-        }else{
98
+        } else {
98
 
99
 
99
           return this.device_number_map[this.record.bed_id].number
100
           return this.device_number_map[this.record.bed_id].number
100
 
101
 
101
         }
102
         }
102
 
103
 
103
-
104
       },
104
       },
105
       nurse: function() {
105
       nurse: function() {
106
         if (this.record.id == 0) {
106
         if (this.record.id == 0) {
119
         }
119
         }
120
         return parseTime(this.record.start_time, '{y}年{m}月{d}日 {h}时{i}分')
120
         return parseTime(this.record.start_time, '{y}年{m}月{d}日 {h}时{i}分')
121
 
121
 
122
-
123
-  }, puncture_nurse: function() {
122
+      }, puncture_nurse: function() {
124
         if (this.record.id == 0) {
123
         if (this.record.id == 0) {
125
           return '-'
124
           return '-'
126
         }
125
         }
127
         return this.admin_map[this.record.puncture_nurse] == null ? '' : this.admin_map[this.record.puncture_nurse].name
126
         return this.admin_map[this.record.puncture_nurse] == null ? '' : this.admin_map[this.record.puncture_nurse].name
127
+      }, washpipe_nurse: function() {
128
+        if (this.record.id == 0) {
129
+          return '-'
130
+        }
131
+        return this.admin_map[this.record.washpipe_nurse] == null ? '' : this.admin_map[this.record.washpipe_nurse].name
132
+      }
133
+    },
134
+    methods: {
135
+      isShow(name) {
136
+        var filedList = store.getters.xt_user.fileds
137
+        var arr = []
138
+        for (let i = 0; i < filedList.length; i++) {
139
+          if (
140
+            filedList[i].module == 7 &&
141
+            filedList[i].filed_name_cn == name &&
142
+            filedList[i].is_show == 1
143
+          ) {
144
+            return true
145
+          }
146
+        }
147
+        return false
128
       }
148
       }
129
-  },
130
-  methods: {
131
 
149
 
150
+    }
132
   }
151
   }
133
-}
134
 </script>
152
 </script>
135
 
153
 
136
 <style rel="stylesheet/scss" lang="scss" scoped>
154
 <style rel="stylesheet/scss" lang="scss" scoped>