소스 검색

自备药出库处理

XMLWAN 4 년 전
부모
커밋
d9d19000ef

+ 1 - 0
src/api/dialysis.js 파일 보기

145
 }
145
 }
146
 
146
 
147
 export function postPrescription(params) {
147
 export function postPrescription(params) {
148
+  console.log('params', params)
148
   return request({
149
   return request({
149
     url: '/api/dialysis/prescription',
150
     url: '/api/dialysis/prescription',
150
     method: 'Post',
151
     method: 'Post',

+ 2 - 2
src/xt_pages/dialysis/details/DialysisPrescription.vue 파일 보기

81
           <span class="content">{{
81
           <span class="content">{{
82
             target_ultrafiltration != "0" ? target_ultrafiltration : ""
82
             target_ultrafiltration != "0" ? target_ultrafiltration : ""
83
           }}</span>
83
           }}</span>
84
-          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27" class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
85
-          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id != 27" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
84
+          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.org_id != 9555" class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
85
+          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.org_id == 9555" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
86
         </li>
86
         </li>
87
         <li v-if="isShow('葡萄糖')">
87
         <li v-if="isShow('葡萄糖')">
88
           <label>葡萄糖 : </label>
88
           <label>葡萄糖 : </label>

+ 8 - 0
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue 파일 보기

588
               <el-input v-model="form.dosage_of_anticoagulants"></el-input>
588
               <el-input v-model="form.dosage_of_anticoagulants"></el-input>
589
           </el-form-item>
589
           </el-form-item>
590
         </el-col>
590
         </el-col>
591
+        
591
 
592
 
593
+        <el-col :span="8" v-if="isShow('并发症其他')">
594
+          <el-form-item label="并发症其他: ">
595
+            <el-input v-model="form.other_complication"></el-input>
596
+          </el-form-item>
597
+        </el-col>
592
 
598
 
593
       </el-form>
599
       </el-form>
594
 
600
 
742
         supine_diastolic_blood_pressure:'',
748
         supine_diastolic_blood_pressure:'',
743
         diastolic_pressure:'',
749
         diastolic_pressure:'',
744
         additional_weight:'',
750
         additional_weight:'',
751
+        other_complication:''
745
       }
752
       }
746
     }
753
     }
747
   },
754
   },
944
       data["supine_diastolic_blood_pressure"] = this.form.supine_diastolic_blood_pressure
951
       data["supine_diastolic_blood_pressure"] = this.form.supine_diastolic_blood_pressure
945
       data["diastolic_pressure"] = this.form.diastolic_pressure
952
       data["diastolic_pressure"] = this.form.diastolic_pressure
946
       data["additional_weight"] = this.form.additional_weight ? parseFloat(this.form.additional_weight) : 0
953
       data["additional_weight"] = this.form.additional_weight ? parseFloat(this.form.additional_weight) : 0
954
+      data["other_complication"] = this.form.other_complication
947
       postAssessmentAfterDislysis(ParamsQuery, data)
955
       postAssessmentAfterDislysis(ParamsQuery, data)
948
         .then(response => {
956
         .then(response => {
949
           this.loading = false
957
           this.loading = false

+ 23 - 2
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue 파일 보기

206
               <el-input v-model="assessmentBeforeDislysis.catheter" @focus="showInnerDialog('4')"></el-input>
206
               <el-input v-model="assessmentBeforeDislysis.catheter" @focus="showInnerDialog('4')"></el-input>
207
             </el-form-item>
207
             </el-form-item>
208
           </el-col>
208
           </el-col>
209
+           
209
 
210
 
211
+          <el-col :span="8">
212
+            <el-form-item label="导管维护: " v-if="isShow('导管维护')">
213
+              <el-input v-model="assessmentBeforeDislysis.catheter_maintenance" @focus="showInnerDialog('18')"></el-input>
214
+            </el-form-item>
215
+          </el-col>
210
 
216
 
211
 
217
 
212
 
218
 
697
           urine_volume:'',
703
           urine_volume:'',
698
           edema:'',
704
           edema:'',
699
           special_treatment:'',
705
           special_treatment:'',
706
+          catheter_maintenance:"",
700
         },
707
         },
701
 
708
 
702
         InnerDialogProps: {
709
         InnerDialogProps: {
710
         machineType: [],
717
         machineType: [],
711
         puncture_ways: '',
718
         puncture_ways: '',
712
         skins:[],
719
         skins:[],
713
-        pinholings:[]
714
-
720
+        pinholings:[],
721
+        catheter_maintenancelist:[]
715
       }
722
       }
716
     },
723
     },
717
     props: {
724
     props: {
978
             this.InnerDialogProps.selected = this.assessmentBeforeDislysis.blood_access_part_id
985
             this.InnerDialogProps.selected = this.assessmentBeforeDislysis.blood_access_part_id
979
             this.InnerDialogProps.isShowTextArea = false
986
             this.InnerDialogProps.isShowTextArea = false
980
 
987
 
988
+            break
989
+
990
+           case '18': // 导管维护
991
+            this.InnerDialogProps.values = this.catheter_maintenancelist
992
+            this.InnerDialogProps.titles = '导管维护'
993
+            this.InnerDialogProps.type = 'catheter_maintenance'
994
+            this.InnerDialogProps.selected = this.assessmentBeforeDislysis.catheter_maintenance
995
+            this.InnerDialogProps.isShowTextArea = false
996
+
981
             break
997
             break
982
         }
998
         }
983
       },
999
       },
1039
           case 'blood_access_part_id':
1055
           case 'blood_access_part_id':
1040
             this.assessmentBeforeDislysis.blood_access_part_id = val.value.join(',')
1056
             this.assessmentBeforeDislysis.blood_access_part_id = val.value.join(',')
1041
            break
1057
            break
1058
+          case 'catheter_maintenance':
1059
+           this.assessmentBeforeDislysis.catheter_maintenance = val.value.join(',')
1060
+           break
1042
         }
1061
         }
1043
       },
1062
       },
1044
       innerDialogCancle: function() {
1063
       innerDialogCancle: function() {
1200
       console.log("皮肤",this.skins)
1219
       console.log("皮肤",this.skins)
1201
       this.pinholings = getDataConfig('hemodialysis','pinholing')
1220
       this.pinholings = getDataConfig('hemodialysis','pinholing')
1202
       console.log("针眼",this.pinholings)
1221
       console.log("针眼",this.pinholings)
1222
+      this.catheter_maintenancelist = getDataConfig('hemodialysis','catheter_maintenance')
1223
+      console.log("导管维护",this.catheter_maintenancelist)
1203
       // this.weight_adjust.weight = this.dry_weight.dry_weight
1224
       // this.weight_adjust.weight = this.dry_weight.dry_weight
1204
 
1225
 
1205
       // if(this.predialysis_evaluation.id == 0){
1226
       // if(this.predialysis_evaluation.id == 0){

+ 63 - 7
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 파일 보기

97
           </el-col>
97
           </el-col>
98
 
98
 
99
           <el-col :span="8"
99
           <el-col :span="8"
100
-                  v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 || this.$store.getters.xt_user.template_info.template_id == 27 && this.$store.getters.xt_user.template_info.org_id == 9555 ">
100
+                  v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.org_id != 9555 ">
101
             <el-form-item label="目标超滤量(L):">
101
             <el-form-item label="目标超滤量(L):">
102
               <el-input
102
               <el-input
103
                 type="number"
103
                 type="number"
510
           </el-col>
510
           </el-col>
511
 
511
 
512
 
512
 
513
+           <el-col :span="8" v-if="isShows('抽血')">
514
+            <el-form-item label="抽血:">
515
+
516
+              <el-input v-model="dialysisPrescription.blood" @focus="showInnerDialog('6')"></el-input>
517
+
518
+              
519
+            </el-form-item>
520
+          </el-col>
521
+
522
+
513
           <!-- </el-row>
523
           <!-- </el-row>
514
           <el-row :gutter="20" > -->
524
           <el-row :gutter="20" > -->
515
           <!--          <el-col :span="8" v-if="isShows('实际超滤量')">-->
525
           <!--          <el-col :span="8" v-if="isShows('实际超滤量')">-->
779
             <!--</el-form-item>-->
789
             <!--</el-form-item>-->
780
           <!--</el-col>-->
790
           <!--</el-col>-->
781
 
791
 
782
-
792
+           
783
 
793
 
784
 
794
 
785
 
795
 
1258
           heparin_sodium:"", //肝素钠
1268
           heparin_sodium:"", //肝素钠
1259
           nucleoprotamine:"",//鱼精蛋白
1269
           nucleoprotamine:"",//鱼精蛋白
1260
           no_heparin_remarks:"",
1270
           no_heparin_remarks:"",
1271
+          blood:"",
1261
         },
1272
         },
1262
 
1273
 
1263
         anticoagulant: {
1274
         anticoagulant: {
1277
         },
1288
         },
1278
 
1289
 
1279
         doctorAdvices: [],
1290
         doctorAdvices: [],
1280
-        dialyzerPerfusionApparatus: []
1291
+        dialyzerPerfusionApparatus: [],
1292
+        bloods:[]
1281
       }
1293
       }
1282
     },
1294
     },
1283
     methods: {
1295
     methods: {
1312
             this.InnerDialogProps.selected = arrtwo
1324
             this.InnerDialogProps.selected = arrtwo
1313
             this.InnerDialogProps.isShowTextArea = false
1325
             this.InnerDialogProps.isShowTextArea = false
1314
             break
1326
             break
1315
-        }
1316
-      }, innerDialogComfirm: function(val) {
1327
+
1328
+          case '6': // 透析器/灌流器
1329
+
1330
+            this.InnerDialogProps.values = this.bloods
1331
+            this.InnerDialogProps.titles = '抽血'
1332
+            this.InnerDialogProps.type = 'blood'
1333
+            this.InnerDialogProps.selected = this.dialysisPrescription.blood
1334
+            this.InnerDialogProps.isShowTextArea = false
1335
+            // if(this.dialysisPrescription.blood !="" || dialysisPrescription.blood !=undefined ){
1336
+            //     var arr = this.dialysisPrescription.blood
1337
+            //     var newArr =  arr.split(",")
1338
+            //     console.log("抽血",newArr)
1339
+            //     var Arr = []
1340
+            //     for(let i=0;i<newArr.length;i++){
1341
+            //       for(let j=0;j<this.bloods.length;j++){
1342
+            //         var newarr = newArr[i].toUpperCase()
1343
+
1344
+            //         var dialy = this.bloods[j].name.toUpperCase()
1345
+
1346
+            //         if(newarr == dialy){
1347
+            //             Arr.push(this.bloods[j].name)
1348
+            //         }
1349
+            //       }
1350
+            //     }
1351
+            //     var arrtwo = Arr.join(",")
1352
+            //     console.log("Arr",arrtwo)
1353
+            //     this.InnerDialogProps.values = this.bloods
1354
+            //     this.InnerDialogProps.titles = '抽血'
1355
+            //     this.InnerDialogProps.type = 'blood'
1356
+            //     this.InnerDialogProps.selected = arrtwo
1357
+            //     this.InnerDialogProps.isShowTextArea = false
1358
+            //     break
1359
+            // }  
1360
+        }
1361
+      }, 
1362
+      innerDialogComfirm: function(val) {
1317
         this.InnerDialogProps.visibility = false
1363
         this.InnerDialogProps.visibility = false
1318
         switch (val.type) {
1364
         switch (val.type) {
1319
           case 'dialyzer_perfusion_apparatus':
1365
           case 'dialyzer_perfusion_apparatus':
1320
             this.dialysisPrescription.dialyzer_perfusion_apparatus = val.value.join(',')
1366
             this.dialysisPrescription.dialyzer_perfusion_apparatus = val.value.join(',')
1321
             break
1367
             break
1322
-
1368
+          case 'blood':
1369
+            this.dialysisPrescription.blood = val.value.join(',')
1370
+           break
1323
         }
1371
         }
1324
       },
1372
       },
1325
       innerDialogCancle: function() {
1373
       innerDialogCancle: function() {
1423
           'dialyzer_perfusion_apparatus'
1471
           'dialyzer_perfusion_apparatus'
1424
         )
1472
         )
1425
 
1473
 
1474
+        this.bloods = getDataConfig(
1475
+          'hemodialysis',
1476
+          'blood'
1477
+        )
1478
+        console.log("抽血-----",this.bloods)
1426
       //  dialyzerPerfusionApparatus.map(item => {
1479
       //  dialyzerPerfusionApparatus.map(item => {
1427
       //    item.name = item.name.toUpperCase()
1480
       //    item.name = item.name.toUpperCase()
1428
       //  })
1481
       //  })
3154
         return arr.filter((arr) => !res.has(arr.name) && res.set(arr.name, 1));
3207
         return arr.filter((arr) => !res.has(arr.name) && res.set(arr.name, 1));
3155
       },
3208
       },
3156
     },
3209
     },
3157
-
3210
+    // created(){
3211
+    //   var org_id =  this.$store.getters.xt_user.template_info.org_id
3212
+    //   console.log("org_id-----",org_id)
3213
+    // },
3158
     watch: {
3214
     watch: {
3159
       'dialysisPrescription.dialysis_duration_hour': function() {
3215
       'dialysisPrescription.dialysis_duration_hour': function() {
3160
         let dialysis_duration_minute = 0
3216
         let dialysis_duration_minute = 0

+ 2 - 2
src/xt_pages/dialysis/details/dialysisMonitoring.vue 파일 보기

14
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
14
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
16
           <th v-if="isShow('跨膜压')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
16
           <th v-if="isShow('跨膜压')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
17
-          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26)" width="76px" > 超滤量(ml)</th>
18
-          <th v-if=" isShow('超滤量') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26"  width="76px"> 超滤量(L) </th>
17
+          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 28 || this.$store.getters.xt_user.template_info.org_id == 9555)" width="76px" > 超滤量(ml)</th>
18
+          <th v-if=" isShow('超滤量') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id !=27 && template_id!=28 && this.$store.getters.xt_user.template_info.org_id != 9555"  width="76px"> 超滤量(L) </th>
19
           <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26)" width="50px"> 超滤率 <br />(ml/h) </th>
19
           <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26)" width="50px"> 超滤率 <br />(ml/h) </th>
20
           <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26" width="50px"> 超滤率 <br />(L/h) </th>
20
           <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26" width="50px"> 超滤率 <br />(L/h) </th>
21
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
21
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySix.vue 파일 보기

1414
            // console.log("上次透后体重", this.assessmentafter);
1414
            // console.log("上次透后体重", this.assessmentafter);
1415
           var doctorAdevieInfo = response.data.data.doctorAdevieInfo;
1415
           var doctorAdevieInfo = response.data.data.doctorAdevieInfo;
1416
           var tableAdvice = doctorAdevieInfo;
1416
           var tableAdvice = doctorAdevieInfo;
1417
-          // console.log("医生", tableAdvice);
1417
+          console.log("医生", tableAdvice);
1418
           if (tableAdvice.length === 0) {
1418
           if (tableAdvice.length === 0) {
1419
             var obj = { advice_name: "", start_time: "" };
1419
             var obj = { advice_name: "", start_time: "" };
1420
             var obj1 = { advice_name: "", start_time: "" };
1420
             var obj1 = { advice_name: "", start_time: "" };