Browse Source

修改透析下机功能

张保健 5 years ago
parent
commit
32393b219a

+ 8 - 4
src/pages/main/dialog/MonitDialog.vue View File

30
                 <th v-if="isShow('超滤量') && template_id !=6" width="76px">超滤量(L)</th>
30
                 <th v-if="isShow('超滤量') && template_id !=6" width="76px">超滤量(L)</th>
31
                 <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
31
                 <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
32
                 <th v-if="isShow('透析液温度')" width="82px">透析液温度(℃)</th>
32
                 <th v-if="isShow('透析液温度')" width="82px">透析液温度(℃)</th>
33
-                <th v-if="isShow('置换率')" width="92px">置换率(L/h)</th>
34
-                <th v-if="isShow('置换量')" width="50px">置换量(L)</th>
33
+                <th v-if="isShow('置换率') && template_id ==6" width="92px">置换率(ml/min)</th>
34
+                <th v-if="isShow('置换率') && template_id !=6" width="92px">置换率(L/h)</th>
35
+                <th v-if="isShow('置换量') && template_id ==6" width="50px">置换量(ml)</th>
36
+                <th v-if="isShow('置换量') && template_id !=6" width="50px">置换量(L)</th>
35
                 <th v-if="isShow('电导度')" width="50px">电导度(mS/m)</th>
37
                 <th v-if="isShow('电导度')" width="50px">电导度(mS/m)</th>
36
                 <th v-if="isShow('置换液流量')" width="50px">置换液流量(ml/h)</th>
38
                 <th v-if="isShow('置换液流量')" width="50px">置换液流量(ml/h)</th>
37
 
39
 
150
                      v-model="form.sodium_concentration">
152
                      v-model="form.sodium_concentration">
151
             </div>
153
             </div>
152
             <div class="cell" v-if="isShow('置换率')">
154
             <div class="cell" v-if="isShow('置换率')">
153
-              <label>置换率(L/h)</label>
155
+              <label v-if="template_id == 6">置换率(ml/min)</label>
156
+              <label v-else>置换率(L/h)</label>
154
               <input type="number" @focus="inputFocus" onclick="this.select();" class="inputBox"
157
               <input type="number" @focus="inputFocus" onclick="this.select();" class="inputBox"
155
                      v-model="form.replacement_rate">
158
                      v-model="form.replacement_rate">
156
             </div>
159
             </div>
157
             <div class="cell" v-if="isShow('置换量')">
160
             <div class="cell" v-if="isShow('置换量')">
158
-              <label>置换量(L)</label>
161
+              <label v-if="template_id == 6">置换量(ml)</label>
162
+              <label v-else>置换量(L)</label>
159
               <input type="number" @focus="inputFocus" onclick="this.select();" class="inputBox"
163
               <input type="number" @focus="inputFocus" onclick="this.select();" class="inputBox"
160
                      v-model="form.displacement_quantity">
164
                      v-model="form.displacement_quantity">
161
             </div>
165
             </div>

+ 2 - 2
src/pages/main/dialog/PlaneDialog.vue View File

197
         if (response.data.state == 0) {
197
         if (response.data.state == 0) {
198
           Toast.fail(response.data.msg);
198
           Toast.fail(response.data.msg);
199
           return false;
199
           return false;
200
-        } else {
200
+        } else {debugger
201
           Toast.success("下机成功");
201
           Toast.success("下机成功");
202
-          this.$emit('did_off', response.data.data.dialysisOrder);
202
+          this.$emit('did_off', response.data.data.assessmentAfterDislysis);
203
           var record = this.record
203
           var record = this.record
204
           for (const key in response.data.data.dialysisOrder) {
204
           for (const key in response.data.data.dialysisOrder) {
205
             this.$set(record, key, response.data.data.dialysisOrder[key])
205
             this.$set(record, key, response.data.data.dialysisOrder[key])

+ 1 - 1
src/pages/main/dialog/PrescriptionDialog.vue View File

5
       <div class="DialogTit">
5
       <div class="DialogTit">
6
         <span @click="close()" class="iconfont">&#xe6e9;</span>
6
         <span @click="close()" class="iconfont">&#xe6e9;</span>
7
         <h1 class="name">透析处方</h1>
7
         <h1 class="name">透析处方</h1>
8
-        <botton @click="showmsgtip">{{patient.name}}  [透析号 {{patient.dialysis_no}} ]</botton>
8
+        <button @click="showmsgtip">{{patient.name}}  [透析号 {{patient.dialysis_no}} ]</button>
9
         <span @click="commitInfo" class="success" v-if="isPermission()">完成</span>
9
         <span @click="commitInfo" class="success" v-if="isPermission()">完成</span>
10
         <span @click="commitInfo" class="success" v-if="!isPermission()"></span>
10
         <span @click="commitInfo" class="success" v-if="!isPermission()"></span>
11
 
11
 

+ 19 - 7
src/pages/main/dialog/ThorougDialog.vue View File

19
         </div>
19
         </div>
20
 
20
 
21
         <div class="item" v-if="isShow('实际超滤量')">
21
         <div class="item" v-if="isShow('实际超滤量')">
22
-          <label class="name" for="sjcll">实际超滤量(L)</label>
22
+          <label v-if="template_id == 6" class="name" for="sjcll">实际超滤量(ml)</label>
23
+          <label v-else class="name" for="sjcll">实际超滤量(L)</label>
23
           <div class="content">
24
           <div class="content">
24
             <input type="tel" @focus="inputFocus" id="sjcll" v-model="formValue.actual_ultrafiltration"/>
25
             <input type="tel" @focus="inputFocus" id="sjcll" v-model="formValue.actual_ultrafiltration"/>
25
 
26
 
411
         puncture_point_oozing_blood_state: false,
412
         puncture_point_oozing_blood_state: false,
412
         puncture_point_haematoma_state: false,
413
         puncture_point_haematoma_state: false,
413
         eat_state: false,
414
         eat_state: false,
414
-
415
+        template_id: 0,
415
         isShowDialog: true,
416
         isShowDialog: true,
416
         time: '00:00',
417
         time: '00:00',
417
         puncture_point_oozing_bloods:[
418
         puncture_point_oozing_bloods:[
1245
       let initMinute = ''
1246
       let initMinute = ''
1246
       let tempHour = ''
1247
       let tempHour = ''
1247
       let tempMinute = ''
1248
       let tempMinute = ''
1249
+      this.template_id = this.$store.getters.user.template_info.template_id
1248
 
1250
 
1249
       if (this.record != null && this.record.id != '' && this.record.assessment_doctor != 0) {
1251
       if (this.record != null && this.record.id != '' && this.record.assessment_doctor != 0) {
1250
         for (const key in this.formValue) {
1252
         for (const key in this.formValue) {
1251
           // console.log(key, this.record[key]);
1253
           // console.log(key, this.record[key]);
1252
           this.formValue[key] = this.record[key];
1254
           this.formValue[key] = this.record[key];
1253
         }
1255
         }
1254
-      }else if (this.last_record != null && this.last_record.id != "") {
1255
-        for (const key in this.formValue) {
1256
-          // console.log(key, this.record[key]);
1257
-          this.formValue[key] = this.last_record[key];
1258
-        }
1256
+      }else  {
1257
+        // if (this.last_record != null && this.last_record.id != ""){
1258
+        //   for (const key in this.formValue) {
1259
+        //     // console.log(key, this.record[key]);
1260
+        //     this.formValue[key] = this.last_record[key];
1261
+        //   }
1262
+        // }
1259
         if (this.record != null && this.record.id != '' && this.record.assessment_doctor == 0){
1263
         if (this.record != null && this.record.id != '' && this.record.assessment_doctor == 0){
1260
           this.$set(this.formValue, "actual_ultrafiltration", this.record.actual_ultrafiltration)
1264
           this.$set(this.formValue, "actual_ultrafiltration", this.record.actual_ultrafiltration)
1261
           this.$set(this.formValue, "weight_after", this.record.weight_after)
1265
           this.$set(this.formValue, "weight_after", this.record.weight_after)
1262
           this.$set(this.formValue, "weight_loss", this.record.weight_loss)
1266
           this.$set(this.formValue, "weight_loss", this.record.weight_loss)
1267
+          this.$set(this.formValue, "actual_ultrafiltration", this.record.actual_ultrafiltration)
1268
+          this.$set(this.formValue, "actual_displacement", this.record.actual_displacement)
1269
+          this.$set(this.formValue, "actual_treatment_hour", this.record.actual_treatment_hour)
1270
+          this.$set(this.formValue, "actual_treatment_minute", this.record.actual_treatment_minute)
1263
         } else {
1271
         } else {
1264
           this.$set(this.formValue, "actual_ultrafiltration", '')
1272
           this.$set(this.formValue, "actual_ultrafiltration", '')
1265
           this.$set(this.formValue, "weight_after", '')
1273
           this.$set(this.formValue, "weight_after", '')
1266
           this.$set(this.formValue, "weight_loss", '')
1274
           this.$set(this.formValue, "weight_loss", '')
1275
+          this.$set(this.formValue, "actual_ultrafiltration", '')
1276
+          this.$set(this.formValue, "actual_displacement", '')
1277
+          this.$set(this.formValue, "actual_treatment_hour", '')
1278
+          this.$set(this.formValue, "actual_treatment_minute", '')
1267
         }
1279
         }
1268
       } 
1280
       } 
1269
   
1281
   

+ 16 - 7
src/pages/main/today/TodayTab.vue View File

147
                        :device_numbers="device_numbers" :admin_map="admin_user_map"
147
                        :device_numbers="device_numbers" :admin_map="admin_user_map"
148
                        :special_premission="special_premission"
148
                        :special_premission="special_premission"
149
                        :device_number_map="device_number_map" @did_start="closeDialysisComputer"
149
                        :device_number_map="device_number_map" @did_start="closeDialysisComputer"
150
-                        @did_add_monitor="didAddMonitor" @close="closeDialysisComputer" ref="computer_dialog"></computer-dialog>
150
+                        @did_add_monitor="didAddMonitor" @close="closeDialysisComputerclose" ref="computer_dialog"></computer-dialog>
151
     </van-popup>
151
     </van-popup>
152
 
152
 
153
     <van-popup title="透析监测" v-model="menuList[6].showPopup" :overlay="true" :close-on-click-overlay="false">
153
     <van-popup title="透析监测" v-model="menuList[6].showPopup" :overlay="true" :close-on-click-overlay="false">
161
     <van-popup title="透析下机" v-model="menuList[7].showPopup" :overlay="true" :close-on-click-overlay="false">
161
     <van-popup title="透析下机" v-model="menuList[7].showPopup" :overlay="true" :close-on-click-overlay="false">
162
       <plane-dialog :patient_prop="patient" :record="dialysis_order" :last_monitor_record="last_monitor_record" :admins="admin_users" :admin_map="admin_user_map"
162
       <plane-dialog :patient_prop="patient" :record="dialysis_order" :last_monitor_record="last_monitor_record" :admins="admin_users" :admin_map="admin_user_map"
163
                     :special_premission="special_premission"
163
                     :special_premission="special_premission"
164
-                    @did_off="closeDialysisOff" @close="closeDialysisOff" ref="plane_dialog"></plane-dialog>
164
+                    @did_off="closeDialysisOff" @close="closeDialysisOffclose" ref="plane_dialog"></plane-dialog>
165
     </van-popup>
165
     </van-popup>
166
 
166
 
167
     <van-popup title="透后评估" v-model="menuList[8].showPopup" :overlay="true" :close-on-click-overlay="false">
167
     <van-popup title="透后评估" v-model="menuList[8].showPopup" :overlay="true" :close-on-click-overlay="false">
683
             }
683
             }
684
 
684
 
685
             this.double_check = double_check == null ? {id: ''} : double_check
685
             this.double_check = double_check == null ? {id: ''} : double_check
686
-            this.assessment_after_dislysis =
687
-              assessment_after_dislysis == null
688
-                ? {id: ''}
689
-                : assessment_after_dislysis
686
+            this.assessment_after_dislysis = assessment_after_dislysis == null ? {id: ''} : assessment_after_dislysis
690
             this.last_assessment_after_dislysis =
687
             this.last_assessment_after_dislysis =
691
               last_assessment_after_dislysis == null
688
               last_assessment_after_dislysis == null
692
                 ? {id: ''}
689
                 ? {id: ''}
1063
       ,
1060
       ,
1064
       closeDialysisComputer: function (dialysis_order) {
1061
       closeDialysisComputer: function (dialysis_order) {
1065
         this.closeDialog(0)
1062
         this.closeDialog(0)
1063
+        this.dialysis_order = dialysis_order
1064
+        // this.scrollToView('dialysis_computer')
1065
+      },
1066
+       closeDialysisComputerclose: function (dialysis_order) {
1067
+        this.closeDialog(0)
1068
+        // this.dialysis_order = dialysis_order
1066
         // this.scrollToView('dialysis_computer')
1069
         // this.scrollToView('dialysis_computer')
1067
       }
1070
       }
1068
       ,
1071
       ,
1076
         // this.scrollToView('monitoring')
1079
         // this.scrollToView('monitoring')
1077
       }
1080
       }
1078
       ,
1081
       ,
1079
-      closeDialysisOff: function () {
1082
+      closeDialysisOff: function (assessment_after_dislysis) {debugger
1083
+        this.closeDialog(7)
1084
+        if (assessment_after_dislysis != undefined) {
1085
+          this.assessment_after_dislysis = assessment_after_dislysis
1086
+        }
1087
+      },
1088
+      closeDialysisOffclose: function () {
1080
         this.closeDialog(7)
1089
         this.closeDialog(7)
1081
         // this.scrollToView('dialysis_off')
1090
         // this.scrollToView('dialysis_off')
1082
       }
1091
       }

+ 15 - 1
src/pages/main/today/assessmentBefore.vue View File

31
           <span class="content">{{ catheter }}</span>
31
           <span class="content">{{ catheter }}</span>
32
           <span class="unit"></span>
32
           <span class="unit"></span>
33
         </li>
33
         </li>
34
+        <li v-if="isShow('衣物重')">
35
+          <label>衣物重 : </label>
36
+          <span class="content">{{ additional_weight?additional_weight:''}}</span>
37
+          <span class="unit">{{ additional_weight?'kg':''}}</span>
38
+        </li>
34
         <li v-if="isShow('干体重')">
39
         <li v-if="isShow('干体重')">
35
           <label>干体重 : </label>
40
           <label>干体重 : </label>
36
           <span class="content">{{ dry_weight?dry_weight:''}}</span>
41
           <span class="content">{{ dry_weight?dry_weight:''}}</span>
201
     data () {
206
     data () {
202
       return {
207
       return {
203
         title: '透前评估 ',
208
         title: '透前评估 ',
204
-
209
+        template_id: 0,
205
       }
210
       }
206
     },
211
     },
207
     props: {
212
     props: {
209
         type: Object
214
         type: Object
210
       }
215
       }
211
     },
216
     },
217
+    created () {
218
+      this.template_id = this.$store.getters.user.template_info.template_id
219
+    },
212
     computed: {
220
     computed: {
213
       machine_type:function(){
221
       machine_type:function(){
214
         if (this.record == null || this.record.id == '') {
222
         if (this.record == null || this.record.id == '') {
223
         }
231
         }
224
         return this.record.weight_before
232
         return this.record.weight_before
225
       },
233
       },
234
+      additional_weight:function () {
235
+        if (this.record == null || this.record.id == '') {
236
+          return '-'
237
+        }
238
+        return this.record.additional_weight
239
+      },
226
       systolic_blood_pressure: function () {
240
       systolic_blood_pressure: function () {
227
         if (this.record == null || this.record.id == '') {
241
         if (this.record == null || this.record.id == '') {
228
           return '-'
242
           return '-'

+ 7 - 1
src/pages/main/today/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('超滤量')" width="76px">超滤量(L)</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>
16
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
17
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
17
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
18
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
18
           <th v-if="isShow('置换率')" width="92px">置换率(L/h)</th>
19
           <th v-if="isShow('置换率')" width="92px">置换率(L/h)</th>
19
           <th v-if="isShow('置换量')"  width="92px">置换量(L)</th>
20
           <th v-if="isShow('置换量')"  width="92px">置换量(L)</th>
21
+          
20
           <th v-if="isShow('电导度')"  width="92px">电导度(mS/m)</th>
22
           <th v-if="isShow('电导度')"  width="92px">电导度(mS/m)</th>
21
           <th v-if="isShow('置换液流量')"  width="92px">置换液流量(ml/h)</th>
23
           <th v-if="isShow('置换液流量')"  width="92px">置换液流量(ml/h)</th>
22
           <th v-if="isShow('病情变化')" width="92px">病情变化</th>
24
           <th v-if="isShow('病情变化')" width="92px">病情变化</th>
59
   data() {
61
   data() {
60
     return {
62
     return {
61
       title: "透析监测 ",
63
       title: "透析监测 ",
64
+      template_id: 0,
62
       tableDate: []
65
       tableDate: []
63
     };
66
     };
64
   },
67
   },
68
+   created () {
69
+    this.template_id = this.$store.getters.user.template_info.template_id
70
+   },
65
   methods: {
71
   methods: {
66
     isShow(name){
72
     isShow(name){
67
       var filedList = this.$store.getters.user.fileds
73
       var filedList = this.$store.getters.user.fileds