Browse Source

新分支

28169 9 months ago
parent
commit
bfffaefd53

+ 2 - 1
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, washpipe_nurse, change_nurse, difficult_puncture_nurse, new_fistula_nurse, blood_drawing, quality_nurse, puncture_needle, puncture_way, dialysis_dialyszers, dialysis_irrigation, blood_access_id, nuclein_date, schedule_remark, order_remark,catheter_operation,blood_flow_volume) {
50
+export function startDialysis(patient_id, schedule_date, nurse_id, bed_id, lood_drawing, puncture_nurse_id, start_time, schedual_type, mode, washpipe_nurse, change_nurse, difficult_puncture_nurse, new_fistula_nurse, blood_drawing, quality_nurse, puncture_needle, puncture_way, dialysis_dialyszers, dialysis_irrigation, blood_access_id, nuclein_date, schedule_remark, order_remark,catheter_operation,blood_flow_volume,dialysis_strainer) {
51
   var params = {
51
   var params = {
52
     patient_id: patient_id,
52
     patient_id: patient_id,
53
     date: schedule_date,
53
     date: schedule_date,
74
     order_remark: order_remark,
74
     order_remark: order_remark,
75
     catheter_operation:catheter_operation,
75
     catheter_operation:catheter_operation,
76
     blood_flow_volume:blood_flow_volume,
76
     blood_flow_volume:blood_flow_volume,
77
+    dialysis_strainer:dialysis_strainer,
77
   }
78
   }
78
   console.log('params', params)
79
   console.log('params', params)
79
   return request({
80
   return request({

+ 39 - 2
src/api/drug/drug.js View File

701
   })
701
   })
702
 }
702
 }
703
 
703
 
704
-export function postSelfDrugWarehouse(data){
704
+export function postSelfDrugWarehouse(data,patient_id,warehousing_time,warehousing_id){
705
   
705
   
706
   return request({
706
   return request({
707
-    url:"/api/drug/postselfdrugwarehouse",
707
+    url:"/api/drug/postselfdrugwarehouse?patient_id="+patient_id+"&warehousing_time="+warehousing_time+"&warehousing_id="+warehousing_id,
708
     method:"post",
708
     method:"post",
709
     data:data
709
     data:data
710
   })
710
   })
711
+}
712
+
713
+export function getAllSelfDrugWarehouseInfoList(params){
714
+
715
+  return request({
716
+    url:"/api/drug/getallselfdrugwarehosueinfolist",
717
+    method:"get",
718
+    params:params
719
+  })
720
+}
721
+
722
+export function getSelfDrugWarehouseInfoById(id,params){
723
+
724
+  return request({
725
+    url:"/api/drug/getselfdrugwarehouseinfobyid?id="+id,
726
+    method:"Get",
727
+    params:params
728
+  })
729
+}
730
+
731
+export function ModifySelfDrugWarehouse(data,patient_id,warehousing_time,warehousing_id){
732
+ 
733
+  return request({
734
+    url:"/api/drug/modifyselfdrugwarehouse?patient_id="+patient_id+"warehousing_time="+warehousing_time+"&warehousing_id="+warehousing_id,
735
+    method:"post",
736
+    data:data,
737
+  })
738
+
739
+}
740
+
741
+export function deleteSelfWarehouseInfo(id,params){
742
+  
743
+  return request({
744
+    url:"/api/drug/deleteselfwarehouseinfo?id="+id,
745
+    method:"get",
746
+    params:params,
747
+  })
711
 }
748
 }

+ 8 - 0
src/router/modules/selfPreparedMedicine.js View File

27
       hidden: true,
27
       hidden: true,
28
       is_menu: false,
28
       is_menu: false,
29
     },
29
     },
30
+    {
31
+      path: '/stock/selfwarehouse/info/edit',
32
+      component: () => import('@/xt_pages/stock/selfPreparedMedicine/editWarehouseInfo'),
33
+      name: 'selfPrepareWaresingEdit',
34
+      meta: { title: '自备药编辑入库', noCache: true },
35
+      hidden: true,
36
+      is_menu: false,
37
+    },
30
     {
38
     {
31
       path: '/stock/selfwarehouse/out',
39
       path: '/stock/selfwarehouse/out',
32
       component: () => import('@/xt_pages/stock/selfPreparedMedicine/warehouseOut'),
40
       component: () => import('@/xt_pages/stock/selfPreparedMedicine/warehouseOut'),

+ 45 - 1
src/xt_pages/dialysis/details/dialog/computer_dialog.vue View File

244
           ></el-input>
244
           ></el-input>
245
         </el-form-item>
245
         </el-form-item>
246
 
246
 
247
+      <el-form-item  label="血滤器:"
248
+          v-if="isShowFiled('血滤器')"
249
+          :prop="isName('血滤器')"
250
+          :rules="isCheckmust('血滤器')">
251
+          <el-input
252
+            v-model="form.dialysis_strainer"
253
+            style="width: 200px"
254
+            @focus="showInnerDialog('12')"
255
+          ></el-input>
256
+      </el-form-item>
257
+
258
+      
247
         <el-form-item
259
         <el-form-item
248
           label="血管通路:"
260
           label="血管通路:"
249
           v-if="isShowFiled('血管通路')"
261
           v-if="isShowFiled('血管通路')"
449
         catheter_operation:"",
461
         catheter_operation:"",
450
         blood_flow_volume:"" ,
462
         blood_flow_volume:"" ,
451
         schedual_type:0,
463
         schedual_type:0,
464
+        dialysis_strainer:"",
452
       },
465
       },
453
       blood_access_option: [],
466
       blood_access_option: [],
454
       schedules_type: [
467
       schedules_type: [
471
       },
484
       },
472
       dialyzers: [],
485
       dialyzers: [],
473
       irrigations: [],
486
       irrigations: [],
487
+      dialysisStrainerList:[],
474
       summary:[],
488
       summary:[],
475
       blood_access_option_name:"",
489
       blood_access_option_name:"",
476
       value2:"",
490
       value2:"",
508
     lastOrder: {
522
     lastOrder: {
509
       type: Object,
523
       type: Object,
510
     },
524
     },
525
+    
511
   },
526
   },
512
   mounted() {},
527
   mounted() {},
513
   created() {
528
   created() {
541
     this.form.puncture_way = this.dialysis_order.puncture_way;
556
     this.form.puncture_way = this.dialysis_order.puncture_way;
542
     this.form.dialysis_dialyszers = this.dialysis_order.dialysis_dialyszers;
557
     this.form.dialysis_dialyszers = this.dialysis_order.dialysis_dialyszers;
543
     this.form.dialysis_irrigation = this.dialysis_order.dialysis_irrigation;
558
     this.form.dialysis_irrigation = this.dialysis_order.dialysis_irrigation;
559
+    this.form.dialysis_strainer = this.dialysis_order.dialysis_strainer;
544
     this.form.blood_access_id = this.dialysis_order.blood_access_id;
560
     this.form.blood_access_id = this.dialysis_order.blood_access_id;
545
     this.form.blood_drawing = this.dialysis_order.blood_drawing
561
     this.form.blood_drawing = this.dialysis_order.blood_drawing
546
     this.blood_access_option_name = this.changeBloodAccessOpion(this.dialysis_order.blood_access_id)
562
     this.blood_access_option_name = this.changeBloodAccessOpion(this.dialysis_order.blood_access_id)
647
       console.log("stockType", this.stockType);
663
       console.log("stockType", this.stockType);
648
       var arr = [];
664
       var arr = [];
649
       var arrTwo = [];
665
       var arrTwo = [];
666
+      var arrThree = []
650
       for (let i = 0; i < this.stockType.length; i++) {
667
       for (let i = 0; i < this.stockType.length; i++) {
651
         if (this.stockType[i].stock_attribute == 2) {
668
         if (this.stockType[i].stock_attribute == 2) {
652
           arr.push(this.stockType[i]);
669
           arr.push(this.stockType[i]);
654
         if (this.stockType[i].stock_attribute == 3) {
671
         if (this.stockType[i].stock_attribute == 3) {
655
           arrTwo.push(this.stockType[i]);
672
           arrTwo.push(this.stockType[i]);
656
         }
673
         }
674
+        if(this.stockType[i].stock_attribute == 4){
675
+            arrThree.push(this.stockType[i])
676
+        }
657
       }
677
       }
658
       var dialyzator = [];
678
       var dialyzator = [];
659
       var irrigation = [];
679
       var irrigation = [];
680
+      var dialysis_strainer = []
660
       for (let i = 0; i < arr.length; i++) {
681
       for (let i = 0; i < arr.length; i++) {
661
         for (let j = 0; j < arr[i].GoodInfo.length; j++) {
682
         for (let j = 0; j < arr[i].GoodInfo.length; j++) {
662
           dialyzator.push(arr[i].GoodInfo[j]);
683
           dialyzator.push(arr[i].GoodInfo[j]);
670
         }
691
         }
671
       }
692
       }
672
       this.irrigations = irrigation;
693
       this.irrigations = irrigation;
694
+
695
+      for(let i=0;i<arrThree.length;i++){
696
+          for (let j = 0; j < arrThree[i].GoodInfo.length; j++) {
697
+            dialysis_strainer.push(arrThree[i].GoodInfo[j])
698
+          }
699
+        }
700
+
701
+        this.dialysisStrainerList = dialysis_strainer
673
     },
702
     },
674
   },
703
   },
675
   computed: {},
704
   computed: {},
929
             this.form.blood_access_id,
958
             this.form.blood_access_id,
930
             this.form.nuclein_date,
959
             this.form.nuclein_date,
931
             this.form.catheter_operation,
960
             this.form.catheter_operation,
932
-            this.form.blood_flow_volume
961
+            this.form.blood_flow_volume,
962
+            this.form.dialysis_strainer,
933
           ).then((rs) => {
963
           ).then((rs) => {
934
             this.loading = false;
964
             this.loading = false;
935
             var resp = rs.data;
965
             var resp = rs.data;
983
       ParamsQuery["mode"] = "2";
1013
       ParamsQuery["mode"] = "2";
984
       ParamsQuery['catheter_operation'] = this.form.catheter_operation
1014
       ParamsQuery['catheter_operation'] = this.form.catheter_operation
985
       ParamsQuery["blood_flow_volume"] = this.form.blood_flow_volume
1015
       ParamsQuery["blood_flow_volume"] = this.form.blood_flow_volume
1016
+      ParamsQuery["dialysis_strainer"] = this.form.dialysis_strainer
986
       if (this.dialysis_order.creator != this.$store.getters.xt_user.user.id) {
1017
       if (this.dialysis_order.creator != this.$store.getters.xt_user.user.id) {
987
         ParamsQuery["mode"] = "3";
1018
         ParamsQuery["mode"] = "3";
988
       }
1019
       }
1084
           this.InnerDialogProps.selected = this.form.puncture_needle;
1115
           this.InnerDialogProps.selected = this.form.puncture_needle;
1085
           this.InnerDialogProps.isShowTextArea = false;
1116
           this.InnerDialogProps.isShowTextArea = false;
1086
           break;
1117
           break;
1118
+        case '12':
1119
+            for (let i = 0; i < this.dialysisStrainerList.length; i++) {
1120
+              this.dialysisStrainerList[i].name = this.dialysisStrainerList[i].specification_name
1121
+            }
1122
+            this.InnerDialogProps.values = this.dialysisStrainerList
1123
+            this.InnerDialogProps.titles = '滤过器'
1124
+            this.InnerDialogProps.type = 'dialysis_strainer'
1125
+            this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_strainer
1126
+            this.InnerDialogProps.isShowTextArea = false
1127
+        break
1087
         case "13": // 穿刺方式
1128
         case "13": // 穿刺方式
1088
           this.InnerDialogProps.values = this.puncture_ways;
1129
           this.InnerDialogProps.values = this.puncture_ways;
1089
           this.InnerDialogProps.titles = "穿刺方式";
1130
           this.InnerDialogProps.titles = "穿刺方式";
1109
         case "irrigations":
1150
         case "irrigations":
1110
           this.form.dialysis_irrigation = val.value.join(",");
1151
           this.form.dialysis_irrigation = val.value.join(",");
1111
           break;
1152
           break;
1153
+        case 'dialysis_strainer':
1154
+            this.form.dialysis_strainer = val.value.join(',')
1155
+        break
1112
       }
1156
       }
1113
     },
1157
     },
1114
     innerDialogCancle: function () {
1158
     innerDialogCancle: function () {

+ 4 - 0
src/xt_pages/dialysis/details/dialysisComputer.vue View File

58
         <li v-if="isShow('灌流器')">
58
         <li v-if="isShow('灌流器')">
59
           <label>灌流器 : </label>
59
           <label>灌流器 : </label>
60
           <span class="content">{{ record.dialysis_irrigation }}</span>
60
           <span class="content">{{ record.dialysis_irrigation }}</span>
61
+        </li>
62
+        <li v-if="isShow('血滤器')">
63
+          <label>血滤器 : </label>
64
+          <span class="content">{{ record.dialysis_strainer }}</span>
61
         </li>
65
         </li>
62
          <li v-if="isShow('血管通路')">
66
          <li v-if="isShow('血管通路')">
63
           <label>血管通路 : </label>
67
           <label>血管通路 : </label>