28169 1 vuosi sitten
vanhempi
commit
faaf3a7eb4

+ 9 - 0
src/api/fallassement.js Näytä tiedosto

61
       method:"post",
61
       method:"post",
62
       data:data,
62
       data:data,
63
     })
63
     })
64
+  }
65
+
66
+  export function getPedDiatricFallAssessmentList(params){
67
+   
68
+    return request({
69
+      url:"/api/patient/getbeddiatricfallassessmentlist",
70
+      method:"get",
71
+      params:params
72
+    })
64
   }
73
   }

+ 4 - 0
src/xt_pages/dialysis/PatientBox.vue Näytä tiedosto

361
       modedata: 0,
361
       modedata: 0,
362
       stockType: [],
362
       stockType: [],
363
       dryWeightList:[],
363
       dryWeightList:[],
364
+      lastAccept:{id:0}
364
     };
365
     };
365
   },
366
   },
366
   props: {
367
   props: {
580
 
581
 
581
           var lastPredialysisEvaluation = resp.data.lastPredialysisEvaluation;
582
           var lastPredialysisEvaluation = resp.data.lastPredialysisEvaluation;
582
           console.log("上次透前评估", lastPredialysisEvaluation);
583
           console.log("上次透前评估", lastPredialysisEvaluation);
584
+          this.lastAccept = resp.data.lastAcceptTreatment
585
+          console.log("上次透析数据----",this.lastAccept)
586
+          
583
           if (lastPredialysisEvaluation != null) {
587
           if (lastPredialysisEvaluation != null) {
584
             if (lastPredialysisEvaluation.blood_access_part_id == -2) {
588
             if (lastPredialysisEvaluation.blood_access_part_id == -2) {
585
               lastPredialysisEvaluation.blood_access_part_id = 0;
589
               lastPredialysisEvaluation.blood_access_part_id = 0;

+ 3 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_seventyone.vue Näytä tiedosto

689
                     </td>
689
                     </td>
690
                     <td v-if="advice_index === 4">净脱水量</td>
690
                     <td v-if="advice_index === 4">净脱水量</td>
691
                     <td v-if="advice_index === 4">
691
                     <td v-if="advice_index === 4">
692
-                      {{record.assessment_after_dislysis.actual_ultrafiltration ? record.assessment_after_dislysis.actual_ultrafiltration : '0'}}L
692
+                      {{record.assessment_after_dislysis.actual_ultrafiltration ? record.assessment_after_dislysis.actual_ultrafiltration : '0'}}
693
+                      <span v-if="org_id ==10617"> ml</span>
694
+                      <span v-else>L</span>
693
                     </td>
695
                     </td>
694
                     <td v-if="advice_index === 5">透后体重</td>
696
                     <td v-if="advice_index === 5">透后体重</td>
695
                     <td v-if="advice_index === 5">
697
                     <td v-if="advice_index === 5">

+ 7 - 0
src/xt_pages/dialysis/details/NavIgation.vue Näytä tiedosto

110
       ref="accepts"
110
       ref="accepts"
111
       :patient="patient"
111
       :patient="patient"
112
       :receiver_treatment_access="receiver_treatment_access"
112
       :receiver_treatment_access="receiver_treatment_access"
113
+      :lastTreat="lastTreat"
113
     ></accepts-treatment-dialog>
114
     ></accepts-treatment-dialog>
114
 
115
 
115
     <assessment-before-dislysis-dialog
116
     <assessment-before-dislysis-dialog
588
     },
589
     },
589
     record_date:{
590
     record_date:{
590
       type:String
591
       type:String
592
+    },
593
+    lastTreat:{
594
+      type: Object,
595
+      default: () => {
596
+        return { id: 0 };
597
+      }
591
     }
598
     }
592
   },
599
   },
593
   methods: {
600
   methods: {

+ 23 - 1
src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue Näytä tiedosto

77
         :rules="isCheckmust('病人情况')"
77
         :rules="isCheckmust('病人情况')"
78
         v-if="isShow('病人情况')"
78
         v-if="isShow('病人情况')"
79
       >
79
       >
80
-      <el-radio-group v-model="receiveTreatmentAsses.condition">
80
+      <el-radio-group v-model="receiveTreatmentAsses.condition" @change="changeRaido">
81
         <el-radio label="1"
81
         <el-radio label="1"
82
           >住院</el-radio
82
           >住院</el-radio
83
         >
83
         >
734
         return { id: 0 };
734
         return { id: 0 };
735
       },
735
       },
736
     },
736
     },
737
+    lastTreat:{
738
+      type: Object,
739
+      default: () => {
740
+        return { id: 0 };
741
+      }
742
+    }
737
   },
743
   },
738
   watch: {
744
   watch: {
739
     isVisibility(val) {},
745
     isVisibility(val) {},
747
     },
753
     },
748
   },
754
   },
749
   created() {
755
   created() {
756
+    console.log("lastTreat",this.lastTreat)
757
+    if(this.lastTreat!=null){
758
+      if(this.receiveTreatmentAsses.condition ==1){
759
+        this.receiveTreatmentAsses.admission_number = this.lastTreat.admission_number
760
+      }
761
+    
762
+    }
750
     // console.log("接诊评估", this.receiver_treatment_access);
763
     // console.log("接诊评估", this.receiver_treatment_access);
751
     var date = this.$route.query && this.$route.query.date;
764
     var date = this.$route.query && this.$route.query.date;
752
     this.record_date = date
765
     this.record_date = date
764
     this.intake_arr = getDataConfig("hemodialysis", "intake");
777
     this.intake_arr = getDataConfig("hemodialysis", "intake");
765
     this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
778
     this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
766
   },
779
   },
780
+  methods:{
781
+    changeRaido(val){
782
+      if(val ==1){
783
+        this.receiveTreatmentAsses.admission_number = this.lastTreat.admission_number
784
+      }else{
785
+        this.receiveTreatmentAsses.admission_number = this.lastTreat.admission_number
786
+      }
787
+    }
788
+  }
767
 };
789
 };
768
 </script>
790
 </script>
769
 
791
 

+ 2 - 1
src/xt_pages/dialysis/details/dialog/computer_dialog.vue Näytä tiedosto

551
     this.form.dialysis_dialyszers = this.dialysis_order.dialysis_dialyszers;
551
     this.form.dialysis_dialyszers = this.dialysis_order.dialysis_dialyszers;
552
     this.form.dialysis_irrigation = this.dialysis_order.dialysis_irrigation;
552
     this.form.dialysis_irrigation = this.dialysis_order.dialysis_irrigation;
553
     this.form.blood_access_id = this.dialysis_order.blood_access_id;
553
     this.form.blood_access_id = this.dialysis_order.blood_access_id;
554
+    this.form.blood_drawing = this.dialysis_order.blood_drawing
554
     this.blood_access_option_name = this.changeBloodAccessOpion(this.dialysis_order.blood_access_id)
555
     this.blood_access_option_name = this.changeBloodAccessOpion(this.dialysis_order.blood_access_id)
555
     // this.form.schedual_type = this.dialysis_order.schedule_type
556
     // this.form.schedual_type = this.dialysis_order.schedule_type
556
     // this.schedual_type = this.dialysis_order.schedule_type
557
     // this.schedual_type = this.dialysis_order.schedule_type
608
       this.form.dialysis_dialyszers = this.dialysis_order.dialysis_dialyszers;
609
       this.form.dialysis_dialyszers = this.dialysis_order.dialysis_dialyszers;
609
       this.form.dialysis_irrigation = this.dialysis_order.dialysis_irrigation;
610
       this.form.dialysis_irrigation = this.dialysis_order.dialysis_irrigation;
610
       this.form.blood_access_id = this.dialysis_order.blood_access_id;
611
       this.form.blood_access_id = this.dialysis_order.blood_access_id;
611
-
612
+      this.form.blood_drawing = this.dialysis_order.blood_drawing
612
       var blood_access_option_name = this.changeBloodAccessOpionOne(this.dialysis_order.blood_access_id)
613
       var blood_access_option_name = this.changeBloodAccessOpionOne(this.dialysis_order.blood_access_id)
613
       // this.form.schedual_type = this.dialysis_order.schedule_type
614
       // this.form.schedual_type = this.dialysis_order.schedule_type
614
       // console.log("8823832323223",this.form.schedual_type)
615
       // console.log("8823832323223",this.form.schedual_type)

+ 5 - 1
src/xt_pages/dialysis/details/index.vue Näytä tiedosto

1041
           :lastOrder="lastOrder"
1041
           :lastOrder="lastOrder"
1042
           :dryWeightList="dryWeightList"
1042
           :dryWeightList="dryWeightList"
1043
           :docList="docList"
1043
           :docList="docList"
1044
-
1044
+          :lastTreat="lastTreat"
1045
         >
1045
         >
1046
         </nav-igation>
1046
         </nav-igation>
1047
 
1047
 
1522
       start_time:moment().startOf('months').format('YYYY-MM-DD'),
1522
       start_time:moment().startOf('months').format('YYYY-MM-DD'),
1523
       end_time:moment().endOf('months').format('YYYY-MM-DD'),
1523
       end_time:moment().endOf('months').format('YYYY-MM-DD'),
1524
       orderList:[],
1524
       orderList:[],
1525
+      lastTreat:{id:0}
1525
       // start_time2:'',
1526
       // start_time2:'',
1526
       // end_time2:'',
1527
       // end_time2:'',
1527
     }
1528
     }
2021
           var stockType =  resp.data.stockType
2022
           var stockType =  resp.data.stockType
2022
           this.stockType = stockType
2023
           this.stockType = stockType
2023
 
2024
 
2025
+          this.lastTreat = resp.data.lastAcceptTreatment
2026
+          console.log("上次透后平出-----------",this.lastTreat)
2027
+
2024
           this.dryWeightList = resp.data.dryWeightList
2028
           this.dryWeightList = resp.data.dryWeightList
2025
           this.docList = resp.data.docList
2029
           this.docList = resp.data.docList
2026
           console.log("doclist-----",this.docList)
2030
           console.log("doclist-----",this.docList)

+ 5 - 0
src/xt_pages/dialysis/details/indexs.vue Näytä tiedosto

106
           :lastOrder="lastOrder"
106
           :lastOrder="lastOrder"
107
           :dryWeightList="dryWeightList"
107
           :dryWeightList="dryWeightList"
108
           :docList="docList"
108
           :docList="docList"
109
+          :lastTreat="lastTreat"
109
 
110
 
110
         >
111
         >
111
         </nav-igation>
112
         </nav-igation>
538
       dryWeightList:[],
539
       dryWeightList:[],
539
       docList:[],
540
       docList:[],
540
       blood_access_part_opera: [],
541
       blood_access_part_opera: [],
542
+      lastTreat:{id:0}
541
     }
543
     }
542
   },
544
   },
543
   created() {
545
   created() {
1033
           this.dryWeightList = resp.data.dryWeightList
1035
           this.dryWeightList = resp.data.dryWeightList
1034
           this.docList = resp.data.docList
1036
           this.docList = resp.data.docList
1035
           console.log("doclist-----",this.docList)
1037
           console.log("doclist-----",this.docList)
1038
+
1039
+          this.lastTreat = resp.data.lastAcceptTreatment
1040
+          console.log("上次透后平出-----------",this.lastTreat)
1036
           var prepare = resp.data.prepare
1041
           var prepare = resp.data.prepare
1037
           if(prepare!=null){
1042
           if(prepare!=null){
1038
             this.preparestock = prepare
1043
             this.preparestock = prepare

+ 12 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderSeventyTwo.vue Näytä tiedosto

73
                   : ""
73
                   : ""
74
               }}</span>
74
               }}</span>
75
               <span v-else>{{ "/" }}</span> -->
75
               <span v-else>{{ "/" }}</span> -->
76
+
77
+              <span>{{
78
+                patientInfo.DialysisSchedule.device_zone.name
79
+                  ? patientInfo.DialysisSchedule.device_zone.name
80
+                  : ""
81
+              }}</span>
76
             </div>
82
             </div>
77
           </div>
83
           </div>
78
           <div class="inline_block" >
84
           <div class="inline_block" >
86
                   : patientInfo.DialysisSchedule.device_number.number
92
                   : patientInfo.DialysisSchedule.device_number.number
87
               }}</span>
93
               }}</span>
88
               <span v-else>{{ "/" }}</span> -->
94
               <span v-else>{{ "/" }}</span> -->
95
+              {{dialysisOrder &&
96
+                dialysisOrder.DeviceNumber &&
97
+                dialysisOrder.DeviceNumber.number.length > 0
98
+                  ? dialysisOrder.DeviceNumber.number
99
+                  : patientInfo.DialysisSchedule.device_number.number
100
+                }}
89
             </div>
101
             </div>
90
           </div>
102
           </div>
91
           <div class="inline_block">
103
           <div class="inline_block">

+ 4 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderseventyone.vue Näytä tiedosto

497
               <td v-if="advice_index === 3">较干体重增加量</td>
497
               <td v-if="advice_index === 3">较干体重增加量</td>
498
               <td v-if="advice_index === 3">{{ (predialysis.weight_before - predialysis.dry_weight - predialysis.additional_weight).toFixed(2) }}kg</td>
498
               <td v-if="advice_index === 3">{{ (predialysis.weight_before - predialysis.dry_weight - predialysis.additional_weight).toFixed(2) }}kg</td>
499
               <td v-if="advice_index === 4">净脱水量</td>
499
               <td v-if="advice_index === 4">净脱水量</td>
500
-              <td v-if="advice_index === 4">{{ afterdialysis.actual_ultrafiltration }}L</td>
500
+              <td v-if="advice_index === 4">{{ afterdialysis.actual_ultrafiltration }} 
501
+                <span v-if="org_id ==10617"> ml</span>
502
+                <span v-else>L</span>
503
+              </td>
501
               <td v-if="advice_index === 5">透后体重</td>
504
               <td v-if="advice_index === 5">透后体重</td>
502
               <td v-if="advice_index === 5">{{ afterdialysis.weight_after }}kg</td>
505
               <td v-if="advice_index === 5">{{ afterdialysis.weight_after }}kg</td>
503
               <td v-if="advice_index === 6">本次透析体重下降量</td>
506
               <td v-if="advice_index === 6">本次透析体重下降量</td>

+ 3 - 3
src/xt_pages/stock/drugs/components/purchaseNewDrugQuery.vue Näytä tiedosto

144
            <el-pagination
144
            <el-pagination
145
             @size-change="handleSizeChange"
145
             @size-change="handleSizeChange"
146
             @current-change="handleCurrentChange"
146
             @current-change="handleCurrentChange"
147
-            :page-sizes="[10, 50, 100,200,500,1000]"
147
+            :page-sizes="[10, 50, 100,200,300,400,500,1000]"
148
             :page-size="10"
148
             :page-size="10"
149
             background
149
             background
150
             align="right"
150
             align="right"
438
               list[i].drugAddOne= 0
438
               list[i].drugAddOne= 0
439
               list[i].drugOutOne =0
439
               list[i].drugOutOne =0
440
               
440
               
441
-              if(this.org_id ==10210 || this.org_id==0 || this.org_id ==10402){
441
+              if(this.org_id ==10210 || this.org_id==0 || this.org_id ==10402 || this.org_id ==10215){
442
                  list[i].drugIn = this.GetDrugStartFlow(list[i].DrugStatFlow.over_count,list[i].min_number,list[i].min_unit,list[i].max_unit) 
442
                  list[i].drugIn = this.GetDrugStartFlow(list[i].DrugStatFlow.over_count,list[i].min_number,list[i].min_unit,list[i].max_unit) 
443
               }else{
443
               }else{
444
                 list[i].drugIn = this.GetInitStartFlow(list[i].new_drug_in_flow_info,list[i].new_drug_profit_flow_info,list[i].new_drug_out_flow_info,list[i].new_drug_no_profit_flow_info,list[i].new_drug_cancel_flow_info,list[i].min_number,list[i].min_unit,list[i].max_unit)
444
                 list[i].drugIn = this.GetInitStartFlow(list[i].new_drug_in_flow_info,list[i].new_drug_profit_flow_info,list[i].new_drug_out_flow_info,list[i].new_drug_no_profit_flow_info,list[i].new_drug_cancel_flow_info,list[i].min_number,list[i].min_unit,list[i].max_unit)
463
               list[i].drugOutSalePrice = "/"
463
               list[i].drugOutSalePrice = "/"
464
 
464
 
465
          
465
          
466
-            if(this.org_id == 10265 || this.org_id ==10210 || this.org_id==10402){
466
+            if(this.org_id == 10265 || this.org_id ==10210 || this.org_id==10402 || this.org_id ==10215){
467
               list[i].overDrug = this.GetDrugEndFlow(list[i].DrugEndFlow.over_count,list[i].min_number,list[i].min_unit,list[i].max_unit)
467
               list[i].overDrug = this.GetDrugEndFlow(list[i].DrugEndFlow.over_count,list[i].min_number,list[i].min_unit,list[i].max_unit)
468
             }else{
468
             }else{
469
               list[i].overDrug = this.GetDrugOver(list[i].over_count_one,list[i].drugAddOne,list[i].drugOutOne,list[i].min_number,list[i].min_unit,list[i].max_unit)
469
               list[i].overDrug = this.GetDrugOver(list[i].over_count_one,list[i].drugAddOne,list[i].drugOutOne,list[i].min_number,list[i].min_unit,list[i].max_unit)

+ 2 - 2
src/xt_pages/stock/drugs/components/purchaseNewDrugQueryPrint.vue Näytä tiedosto

347
                 list[i].drugAddOne= 0
347
                 list[i].drugAddOne= 0
348
                 list[i].drugOutOne =0
348
                 list[i].drugOutOne =0
349
                
349
                
350
-                if(this.org_id ==10210 || this.org_id ==10402){
350
+                if(this.org_id ==10210 || this.org_id ==10402 || this.org_id ==10215){
351
                    list[i].drugIn = this.GetDrugStartFlow(list[i].DrugStatFlow.over_count,list[i].min_number,list[i].min_unit,list[i].max_unit) 
351
                    list[i].drugIn = this.GetDrugStartFlow(list[i].DrugStatFlow.over_count,list[i].min_number,list[i].min_unit,list[i].max_unit) 
352
                 }else{
352
                 }else{
353
                   list[i].drugIn = this.GetInitStartFlow(list[i].new_drug_in_flow_info,list[i].new_drug_profit_flow_info,list[i].new_drug_out_flow_info,list[i].new_drug_no_profit_flow_info,list[i].new_drug_cancel_flow_info,list[i].min_number,list[i].min_unit,list[i].max_unit)
353
                   list[i].drugIn = this.GetInitStartFlow(list[i].new_drug_in_flow_info,list[i].new_drug_profit_flow_info,list[i].new_drug_out_flow_info,list[i].new_drug_no_profit_flow_info,list[i].new_drug_cancel_flow_info,list[i].min_number,list[i].min_unit,list[i].max_unit)
371
                 list[i].drugOutSalePrice = "/"
371
                 list[i].drugOutSalePrice = "/"
372
 
372
 
373
                
373
                
374
-                if(this.org_id ==10265 || this.org_id ==10210 || this.org_id ==10402){
374
+                if(this.org_id ==10265 || this.org_id ==10210 || this.org_id ==10402 || this.org_id ==10215){
375
                   list[i].overDrug = this.GetDrugEndFlow(list[i].DrugEndFlow.over_count,list[i].min_number,list[i].min_unit,list[i].max_unit)
375
                   list[i].overDrug = this.GetDrugEndFlow(list[i].DrugEndFlow.over_count,list[i].min_number,list[i].min_unit,list[i].max_unit)
376
                 }else{
376
                 }else{
377
                   list[i].overDrug = this.GetDrugOver(list[i].over_count_one,list[i].drugAddOne,list[i].drugOutOne,list[i].min_number,list[i].min_unit,list[i].max_unit)
377
                   list[i].overDrug = this.GetDrugOver(list[i].over_count_one,list[i].drugAddOne,list[i].drugOutOne,list[i].min_number,list[i].min_unit,list[i].max_unit)

+ 22 - 7
src/xt_pages/stock/query/purchaseNewStockQuery.vue Näytä tiedosto

151
            <el-pagination
151
            <el-pagination
152
             @size-change="handleSizeChange"
152
             @size-change="handleSizeChange"
153
             @current-change="handleCurrentChange"
153
             @current-change="handleCurrentChange"
154
-            :page-sizes="[10, 50, 100,200,500,1000]"
154
+            :page-sizes="[10, 50, 100,200,300,400,500,1000]"
155
             :page-size="10"
155
             :page-size="10"
156
             background
156
             background
157
             align="right"
157
             align="right"
265
             this.loading = false
265
             this.loading = false
266
             for(let i=0;i<list.length;i++){
266
             for(let i=0;i<list.length;i++){
267
                
267
                
268
-              if(this.org_id == 0 || this.org_id ==10210){
268
+              if(this.org_id ==10210){
269
                 list[i].stockIn = list[i].GoodStartFlowInfo.over_count
269
                 list[i].stockIn = list[i].GoodStartFlowInfo.over_count
270
               }else{
270
               }else{
271
-                list[i].stockIn = this.getAllStockIn(list[i].StWarehousingInfoTwo) + this.getAllStockInFlow(list[i].WareStartInStockFlow) - this.getAllOutStockIn(list[i].WarehouseOutInfoTenty) - this.getAllStockOutFlow(list[i].WareStartOutStockFlow)
272
-                if(list[i].stockIn <0){
273
-                  list[i].stockIn =0
271
+                console.log("入库",this.getAllStockIn(list[i].StWarehousingInfoTwo))
272
+                console.log("盘盈",this.getAllStockInFlow(list[i].WareStartInStockFlow))
273
+                console.log("出库",this.getAllOutStockIn(list[i].WarehouseOutInfoTenty) )
274
+                console.log("盘亏",this.getAllStockOutFlow(list[i].WareStartOutStockFlow))
275
+                //针对武穴软水盐的问题
276
+                if(list[i].id== 5052){
277
+                  list[i].stockIn = list[i].GoodStartFlowInfo.over_count
278
+                }else{
279
+                  list[i].stockIn = this.getAllStockIn(list[i].StWarehousingInfoTwo) + this.getAllStockInFlow(list[i].WareStartInStockFlow) - this.getAllOutStockIn(list[i].WarehouseOutInfoTenty) - this.getAllStockOutFlow(list[i].WareStartOutStockFlow)
280
+                  if(list[i].stockIn <0){
281
+                    list[i].stockIn =0
282
+                  }
274
                 }
283
                 }
284
+               
275
               }
285
               }
276
               //  list[i].stockIn = list[i].GoodStartFlowInfo.over_count
286
               //  list[i].stockIn = list[i].GoodStartFlowInfo.over_count
277
                list[i].stock_in_price = "/"
287
                list[i].stock_in_price = "/"
285
               list[i].outStock = this.getWarehosueOutInfo(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)//本期减少
295
               list[i].outStock = this.getWarehosueOutInfo(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)//本期减少
286
               list[i].stockOutprice = "/"
296
               list[i].stockOutprice = "/"
287
               list[i].saleOutMoney = "/"
297
               list[i].saleOutMoney = "/"
288
-              if(this.org_id == 10265 || this.org_id == 0){
298
+              if(this.org_id == 10265){
289
                 list[i].overStock = list[i].GoodEndFlowInfo.over_count
299
                 list[i].overStock = list[i].GoodEndFlowInfo.over_count
290
               }else{
300
               }else{
291
-                list[i].overStock = list[i].stockIn + list[i].stockAdd - list[i].outStock
301
+                if((list[i].stockIn + list[i].stockAdd - list[i].outStock)>0 ){
302
+                  list[i].overStock = list[i].stockIn + list[i].stockAdd - list[i].outStock
303
+                }else{
304
+                  list[i].overStock = 0
305
+                }
306
+               
292
               }
307
               }
293
             
308
             
294
             
309
             

+ 8 - 4
src/xt_pages/stock/query/purchaseNewStockQueryPrint.vue Näytä tiedosto

172
                     if(this.org_id == 0 || this.org_id ==10210){
172
                     if(this.org_id == 0 || this.org_id ==10210){
173
                        list[i].stockIn = list[i].GoodStartFlowInfo.over_count
173
                        list[i].stockIn = list[i].GoodStartFlowInfo.over_count
174
                     }else{
174
                     }else{
175
-                       list[i].stockIn = this.getAllStockIn(list[i].StWarehousingInfoTwo) + this.getAllStockInFlow(list[i].WareStartInStockFlow) - this.getAllOutStockIn(list[i].WarehouseOutInfoTenty) - this.getAllStockOutFlow(list[i].WareStartOutStockFlow)
176
-                       if(list[i].stockIn <0){
177
-                         list[i].stockIn =0
178
-                       }
175
+                      if(list[i].id== 5052){
176
+                        list[i].stockIn = list[i].GoodStartFlowInfo.over_count
177
+                      }else{
178
+                        list[i].stockIn = this.getAllStockIn(list[i].StWarehousingInfoTwo) + this.getAllStockInFlow(list[i].WareStartInStockFlow) - this.getAllOutStockIn(list[i].WarehouseOutInfoTenty) - this.getAllStockOutFlow(list[i].WareStartOutStockFlow)
179
+                        if(list[i].stockIn <0){
180
+                          list[i].stockIn =0
181
+                        }
182
+                      }
179
                     }
183
                     }
180
                     list[i].stock_in_price = "/"
184
                     list[i].stock_in_price = "/"
181
                     list[i].stockMoney = "/"
185
                     list[i].stockMoney = "/"

+ 21 - 8
src/xt_pages/user/evaluationtool/pediatricFallAssessment.vue Näytä tiedosto

115
                             <el-select v-model="tumble" placeholder="请选择" >
115
                             <el-select v-model="tumble" placeholder="请选择" >
116
                                 <el-option
116
                                 <el-option
117
                                 v-for="item in tumble_options"
117
                                 v-for="item in tumble_options"
118
-                                :key="item.value"
119
-                                :label="item.label"
120
-                                :value="item.value"
118
+                                :key="item.admin_user_id"
119
+                                :label="item.user_name"
120
+                                :value="item.admin_user_id"
121
                                 style="width:150px;">
121
                                 style="width:150px;">
122
                                 </el-option>
122
                                 </el-option>
123
                             </el-select>
123
                             </el-select>
157
 import PatientSidebar from '../components/PatientSidebar.vue'
157
 import PatientSidebar from '../components/PatientSidebar.vue'
158
 import Falloutbedprint from './Falloutbedprint.vue'
158
 import Falloutbedprint from './Falloutbedprint.vue'
159
 import { uParseTime } from '@/utils/tools'
159
 import { uParseTime } from '@/utils/tools'
160
-import { savePediatrcFallAssesment } from '@/api/fallassement'
160
+import { savePediatrcFallAssesment,getAllNurseList } from '@/api/fallassement'
161
 export default {
161
 export default {
162
   components:{
162
   components:{
163
     PatientSidebar,
163
     PatientSidebar,
209
   created(){
209
   created(){
210
     const id = this.$route.params && this.$route.params.id
210
     const id = this.$route.params && this.$route.params.id
211
     this.patient_id = parseInt(id)
211
     this.patient_id = parseInt(id)
212
+    this.getAllNurseList()
212
   },
213
   },
213
   methods:{
214
   methods:{
214
     ageclick(e,item){
215
     ageclick(e,item){
309
     },
310
     },
310
     // 历史评估
311
     // 历史评估
311
     childerHistory(){
312
     childerHistory(){
312
-      this.$router.push({path: '/patients/Children_history'})
313
+      this.$router.push({path: '/patients/Children_history?patient_id='+this.patient_id})
313
     },
314
     },
314
     getTime(val) {
315
     getTime(val) {
315
         if(val < 0){
316
         if(val < 0){
338
           patient:this.patient,
339
           patient:this.patient,
339
        }
340
        }
340
        console.log("params----",params)
341
        console.log("params----",params)
341
-      savePediatrcFallAssesment(params).then(Response=>{
342
-
342
+      savePediatrcFallAssesment(params).then(response=>{
343
+         if(response.data.state ==1){
344
+           var pedFallssessment =  response.data.data.pedFallssessment
345
+           this.$message.success("保存成功!")
346
+         }
343
       })
347
       })
344
-    }
348
+    },
349
+    getAllNurseList(){
350
+        getAllNurseList().then(response=>{
351
+           if(response.data.state ==1){
352
+             var nurseList  = response.data.data.nurseList
353
+
354
+             this.tumble_options =nurseList
355
+           }
356
+        })
357
+    },
345
   },
358
   },
346
   computed:{
359
   computed:{
347
     pedia_Totalpoints(){
360
     pedia_Totalpoints(){

+ 36 - 1
src/xt_pages/user/history/Children_history.vue Näytä tiedosto

62
             </template>
62
             </template>
63
           </el-table-column>
63
           </el-table-column>
64
         </el-table>
64
         </el-table>
65
+
65
       </div>
66
       </div>
66
 
67
 
67
     </div>
68
     </div>
349
 <script>
350
 <script>
350
 import print from 'print-js'
351
 import print from 'print-js'
351
 import { uParseTime } from '@/utils/tools'
352
 import { uParseTime } from '@/utils/tools'
353
+import {  getPedDiatricFallAssessmentList } from '@/api/fallassement'
352
 export default{
354
 export default{
353
   data(){
355
   data(){
354
     return{
356
     return{
395
       patient_id:0,
397
       patient_id:0,
396
       patient:'',
398
       patient:'',
397
       touxihao:0,//透析号
399
       touxihao:0,//透析号
398
-      dayintime:new Date()//打印时间
400
+      dayintime:new Date(),//打印时间
401
+      patient_id:0,
402
+      page:1,
403
+      limit:10,
404
+      total:0,
399
     }
405
     }
400
   },
406
   },
401
   methods:{
407
   methods:{
408
+    handleSizeChange(limit){
409
+      this.limit = limit
410
+      this.getPedDiatricFallAssessmentList()
411
+    },
412
+    handleCurrentChange(page){
413
+      this.page = page;
414
+      this.getPedDiatricFallAssessmentList();
415
+    },
402
     fanhui(){
416
     fanhui(){
403
       window.history.go(-1);
417
       window.history.go(-1);
404
     },
418
     },
584
         return uParseTime(val, '{y}-{m}-{d}')
598
         return uParseTime(val, '{y}-{m}-{d}')
585
         }
599
         }
586
     },
600
     },
601
+
602
+    getPedDiatricFallAssessmentList(){
603
+        var params = {
604
+          patient_id:this.patient_id,
605
+          is_type:1,
606
+          page:this.page,
607
+          limit:this.limit,
608
+        }
609
+      getPedDiatricFallAssessmentList(params).then(response=>{
610
+         if(response.data.state ==1){
611
+          var list = response.data.data.list
612
+          console.log("list------",list)
613
+          var total =  response.data.data.total
614
+          this.total = total
615
+         }
616
+      })
617
+    }
587
   },
618
   },
588
   computed:{
619
   computed:{
589
     pedia_Totalpoints(){
620
     pedia_Totalpoints(){
590
       return this.agevalue + this.sexvalue + this.diagnosis_val +this.cognize_val + this.environment_val + this.medicine_val
621
       return this.agevalue + this.sexvalue + this.diagnosis_val +this.cognize_val + this.environment_val + this.medicine_val
591
     },
622
     },
623
+  },
624
+  created(){
625
+    this.patient_id = this.$route.query.patient_id
626
+    this.getPedDiatricFallAssessmentList()
592
   }
627
   }
593
 }
628
 }
594
 </script>
629
 </script>