Browse Source

自备药出库处理

XMLWAN 4 years ago
parent
commit
d9d19000ef

+ 1 - 0
src/api/dialysis.js View File

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

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

@@ -81,8 +81,8 @@
81 81
           <span class="content">{{
82 82
             target_ultrafiltration != "0" ? target_ultrafiltration : ""
83 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 86
         </li>
87 87
         <li v-if="isShow('葡萄糖')">
88 88
           <label>葡萄糖 : </label>

+ 8 - 0
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue View File

@@ -588,7 +588,13 @@
588 588
               <el-input v-model="form.dosage_of_anticoagulants"></el-input>
589 589
           </el-form-item>
590 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 599
       </el-form>
594 600
 
@@ -742,6 +748,7 @@ export default {
742 748
         supine_diastolic_blood_pressure:'',
743 749
         diastolic_pressure:'',
744 750
         additional_weight:'',
751
+        other_complication:''
745 752
       }
746 753
     }
747 754
   },
@@ -944,6 +951,7 @@ export default {
944 951
       data["supine_diastolic_blood_pressure"] = this.form.supine_diastolic_blood_pressure
945 952
       data["diastolic_pressure"] = this.form.diastolic_pressure
946 953
       data["additional_weight"] = this.form.additional_weight ? parseFloat(this.form.additional_weight) : 0
954
+      data["other_complication"] = this.form.other_complication
947 955
       postAssessmentAfterDislysis(ParamsQuery, data)
948 956
         .then(response => {
949 957
           this.loading = false

+ 23 - 2
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue View File

@@ -206,7 +206,13 @@
206 206
               <el-input v-model="assessmentBeforeDislysis.catheter" @focus="showInnerDialog('4')"></el-input>
207 207
             </el-form-item>
208 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,6 +703,7 @@
697 703
           urine_volume:'',
698 704
           edema:'',
699 705
           special_treatment:'',
706
+          catheter_maintenance:"",
700 707
         },
701 708
 
702 709
         InnerDialogProps: {
@@ -710,8 +717,8 @@
710 717
         machineType: [],
711 718
         puncture_ways: '',
712 719
         skins:[],
713
-        pinholings:[]
714
-
720
+        pinholings:[],
721
+        catheter_maintenancelist:[]
715 722
       }
716 723
     },
717 724
     props: {
@@ -978,6 +985,15 @@
978 985
             this.InnerDialogProps.selected = this.assessmentBeforeDislysis.blood_access_part_id
979 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 997
             break
982 998
         }
983 999
       },
@@ -1039,6 +1055,9 @@
1039 1055
           case 'blood_access_part_id':
1040 1056
             this.assessmentBeforeDislysis.blood_access_part_id = val.value.join(',')
1041 1057
            break
1058
+          case 'catheter_maintenance':
1059
+           this.assessmentBeforeDislysis.catheter_maintenance = val.value.join(',')
1060
+           break
1042 1061
         }
1043 1062
       },
1044 1063
       innerDialogCancle: function() {
@@ -1200,6 +1219,8 @@
1200 1219
       console.log("皮肤",this.skins)
1201 1220
       this.pinholings = getDataConfig('hemodialysis','pinholing')
1202 1221
       console.log("针眼",this.pinholings)
1222
+      this.catheter_maintenancelist = getDataConfig('hemodialysis','catheter_maintenance')
1223
+      console.log("导管维护",this.catheter_maintenancelist)
1203 1224
       // this.weight_adjust.weight = this.dry_weight.dry_weight
1204 1225
 
1205 1226
       // if(this.predialysis_evaluation.id == 0){

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

@@ -97,7 +97,7 @@
97 97
           </el-col>
98 98
 
99 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 101
             <el-form-item label="目标超滤量(L):">
102 102
               <el-input
103 103
                 type="number"
@@ -510,6 +510,16 @@
510 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 523
           <!-- </el-row>
514 524
           <el-row :gutter="20" > -->
515 525
           <!--          <el-col :span="8" v-if="isShows('实际超滤量')">-->
@@ -779,7 +789,7 @@
779 789
             <!--</el-form-item>-->
780 790
           <!--</el-col>-->
781 791
 
782
-
792
+           
783 793
 
784 794
 
785 795
 
@@ -1258,6 +1268,7 @@
1258 1268
           heparin_sodium:"", //肝素钠
1259 1269
           nucleoprotamine:"",//鱼精蛋白
1260 1270
           no_heparin_remarks:"",
1271
+          blood:"",
1261 1272
         },
1262 1273
 
1263 1274
         anticoagulant: {
@@ -1277,7 +1288,8 @@
1277 1288
         },
1278 1289
 
1279 1290
         doctorAdvices: [],
1280
-        dialyzerPerfusionApparatus: []
1291
+        dialyzerPerfusionApparatus: [],
1292
+        bloods:[]
1281 1293
       }
1282 1294
     },
1283 1295
     methods: {
@@ -1312,14 +1324,50 @@
1312 1324
             this.InnerDialogProps.selected = arrtwo
1313 1325
             this.InnerDialogProps.isShowTextArea = false
1314 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 1363
         this.InnerDialogProps.visibility = false
1318 1364
         switch (val.type) {
1319 1365
           case 'dialyzer_perfusion_apparatus':
1320 1366
             this.dialysisPrescription.dialyzer_perfusion_apparatus = val.value.join(',')
1321 1367
             break
1322
-
1368
+          case 'blood':
1369
+            this.dialysisPrescription.blood = val.value.join(',')
1370
+           break
1323 1371
         }
1324 1372
       },
1325 1373
       innerDialogCancle: function() {
@@ -1423,6 +1471,11 @@
1423 1471
           'dialyzer_perfusion_apparatus'
1424 1472
         )
1425 1473
 
1474
+        this.bloods = getDataConfig(
1475
+          'hemodialysis',
1476
+          'blood'
1477
+        )
1478
+        console.log("抽血-----",this.bloods)
1426 1479
       //  dialyzerPerfusionApparatus.map(item => {
1427 1480
       //    item.name = item.name.toUpperCase()
1428 1481
       //  })
@@ -3154,7 +3207,10 @@
3154 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 3214
     watch: {
3159 3215
       'dialysisPrescription.dialysis_duration_hour': function() {
3160 3216
         let dialysis_duration_minute = 0

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

@@ -14,8 +14,8 @@
14 14
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
15 15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
16 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 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 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 21
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySix.vue View File

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