Browse Source

新分支

28169 1 year ago
parent
commit
1eb0293722

+ 15 - 0
src/store/modules/globalConfig.js View File

939
         zongliang_unit: 'iu',
939
         zongliang_unit: 'iu',
940
         gaimingcheng_unit: '',
940
         gaimingcheng_unit: '',
941
         gaijiliang_unit: ''
941
         gaijiliang_unit: ''
942
+      },
943
+      17: {
944
+        id: 17,
945
+        name: '肝素钠',
946
+        type: 1,
947
+        shouji: 1,
948
+        weichi: 1,
949
+        zongliang: 1,
950
+        gaimingcheng: -1,
951
+        gaijiliang: -1,
952
+        shouji_unit: 'mg',
953
+        weichi_unit: 'mg/h',
954
+        zongliang_unit: 'mg',
955
+        gaimingcheng_unit: '',
956
+        gaijiliang_unit: ''
942
       }
957
       }
943
     },
958
     },
944
     anticoagulants_set: {
959
     anticoagulants_set: {

+ 7 - 6
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue View File

1179
           data["urr"] = this.form.urr
1179
           data["urr"] = this.form.urr
1180
           data["hypertenison"] = parseInt(this.form.hypertenison)
1180
           data["hypertenison"] = parseInt(this.form.hypertenison)
1181
           data["hypopiesia"] = parseInt(this.form.hypopiesia)
1181
           data["hypopiesia"] = parseInt(this.form.hypopiesia)
1182
-          data["leave_office_method"] = this.form.leave_office_method
1183
-          data["lapse"] = this.form.lapse
1184
-          data["consciousness"] = this.form.consciousness
1185
-          data["fallrisk"] = this.form.fallrisk
1186
-          data["machine_run"] = this.form.machine_run
1182
+          data["leave_office_method"] = this.form.leave_office_method?parseFloat(this.form.leave_office_method) : 0
1183
+          data["lapse"] = this.form.lapse?parseFloat(this.form.lapse) : 0
1184
+          data["consciousness"] = this.form.consciousness?parseFloat(this.form.consciousness) : 0
1185
+          data["fallrisk"] = this.form.fallrisk?parseFloat(this.form.fallrisk) : 0
1186
+          data["machine_run"] = this.form.machine_run?parseFloat(this.form.machine_run) : 0
1187
           data["after_urea"] = this.form.after_urea
1187
           data["after_urea"] = this.form.after_urea
1188
           data["pip_coagulation"] = this.form.pip_coagulation
1188
           data["pip_coagulation"] = this.form.pip_coagulation
1189
           data["accumulated_blood_volume"] = this.form.accumulated_blood_volume
1189
           data["accumulated_blood_volume"] = this.form.accumulated_blood_volume
1190
           data["transfusion_volume"] = this.form.transfusion_volume
1190
           data["transfusion_volume"] = this.form.transfusion_volume
1191
-          console.log("Data",data)
1191
+        
1192
           console.log("Paramsquery",data)
1192
           console.log("Paramsquery",data)
1193
 
1193
 
1194
           postAssessmentAfterDislysis(ParamsQuery, data)
1194
           postAssessmentAfterDislysis(ParamsQuery, data)
1504
   },
1504
   },
1505
   created() {
1505
   created() {
1506
     // console.log("this.form", this.form.consciousness);
1506
     // console.log("this.form", this.form.consciousness);
1507
+    
1507
     this.org_id = this.$store.getters.xt_user.template_info.org_id
1508
     this.org_id = this.$store.getters.xt_user.template_info.org_id
1508
     this.cruorOptions = getDataConfig('hemodialysis', 'cruor')
1509
     this.cruorOptions = getDataConfig('hemodialysis', 'cruor')
1509
     this.pip_coagulationOptions = getDataConfig('hemodialysis','pip_coagulation')
1510
     this.pip_coagulationOptions = getDataConfig('hemodialysis','pip_coagulation')

+ 20 - 1
src/xt_pages/stock/detail/cancelStockDetail.vue View File

142
           </template>
142
           </template>
143
         </el-table-column>
143
         </el-table-column>
144
 
144
 
145
+        <el-table-column label="使用人" align="center">
146
+            <template slot-scope="scope">
147
+                {{getPatientName(scope.row.patient_id)  }}
148
+            </template>
149
+        </el-table-column>
150
+
145
         <el-table-column label="数量" align="center">
151
         <el-table-column label="数量" align="center">
146
           <template slot-scope="scope">
152
           <template slot-scope="scope">
147
             {{ scope.row.count }}
153
             {{ scope.row.count }}
260
       storehouse_id:0,
266
       storehouse_id:0,
261
       manufacturerList:[],
267
       manufacturerList:[],
262
       dealerList:[],
268
       dealerList:[],
269
+      patientsList:[]
270
+        
263
     };
271
     };
264
   },
272
   },
265
   methods: {
273
   methods: {
405
           this.dealerList = response.data.data.dealerList
413
           this.dealerList = response.data.data.dealerList
406
           var listgroup = response.data.data.listgroup
414
           var listgroup = response.data.data.listgroup
407
           
415
           
408
-          this.
416
+          this.patientsList = []
417
+          this.patientsList = response.data.data.patientsList
409
 
418
 
410
           this.cancelStockDate.push({
419
           this.cancelStockDate.push({
411
             order_number: "合计",
420
             order_number: "合计",
759
      changeHouseList(){
768
      changeHouseList(){
760
        this.houseList = []
769
        this.houseList = []
761
        this.GetCancelStock()
770
        this.GetCancelStock()
771
+     },
772
+     getPatientName(id){
773
+     
774
+     var name =""
775
+     for(let i=0;i<this.patientsList.length;i++){
776
+       if(id == this.patientsList[i].id){
777
+         name = this.patientsList[i].name
778
+       }
762
      }
779
      }
780
+     return name
781
+    }
763
   }
782
   }
764
 };
783
 };
765
 </script>
784
 </script>

+ 24 - 3
src/xt_pages/stock/detail/stockOutDetail.vue View File

154
             </span>
154
             </span>
155
           </template>
155
           </template>
156
         </el-table-column>
156
         </el-table-column>
157
+        <el-table-column label="使用人" align="center">
158
+            <template slot-scope="scope">
159
+                {{getPatientName(scope.row.patient_id)  }}
160
+            </template>
161
+        </el-table-column>
157
         <el-table-column label="数量" align="center">
162
         <el-table-column label="数量" align="center">
158
           <template slot-scope="scope">
163
           <template slot-scope="scope">
159
             <span v-if="scope.row.is_total == 0">
164
             <span v-if="scope.row.is_total == 0">
165
             </span>
170
             </span>
166
           </template>
171
           </template>
167
         </el-table-column>
172
         </el-table-column>
173
+      
168
         <el-table-column label="总价" align="center">
174
         <el-table-column label="总价" align="center">
169
           <template slot-scope="scope">
175
           <template slot-scope="scope">
170
             <span v-if="scope.row.is_total == 0 && scope.row.price > 0">{{getTotal(scope.row.price, scope.row.count)}}</span>
176
             <span v-if="scope.row.is_total == 0 && scope.row.price > 0">{{getTotal(scope.row.price, scope.row.count)}}</span>
280
       wareOutList:[],
286
       wareOutList:[],
281
       manufacturerList:[],
287
       manufacturerList:[],
282
       dealerList:[],
288
       dealerList:[],
289
+      patientsList:[],
283
     };
290
     };
284
   },
291
   },
285
   methods: {
292
   methods: {
353
           this.total = response.data.data.total;
360
           this.total = response.data.data.total;
354
           this.wareOutList = []
361
           this.wareOutList = []
355
           this.wareOutList =  response.data.data.list
362
           this.wareOutList =  response.data.data.list
356
-          console.log("党的20大长长",this.wareOutList)
363
+          this.patientsList = []
364
+          this.patientsList = response.data.data.patientsList
365
+         
357
           var total = 0
366
           var total = 0
358
           var objOne = {
367
           var objOne = {
359
             warehouse_out_order_number: "合计",
368
             warehouse_out_order_number: "合计",
413
            this.houseList.push(response.data.data.houseList[i])
422
            this.houseList.push(response.data.data.houseList[i])
414
           }
423
           }
415
           this.wareOutList =  response.data.data.list
424
           this.wareOutList =  response.data.data.list
416
-          console.log("党的20大长长",this.wareOutList)
425
+          // console.log("党的20大长长",this.wareOutList)
426
+          this.patientsList = []
427
+          this.patientsList = response.data.data.patientsList
417
           var total = 0
428
           var total = 0
418
           var objOne = {
429
           var objOne = {
419
             warehouse_out_order_number: "合计",
430
             warehouse_out_order_number: "合计",
1034
          }
1045
          }
1035
       }
1046
       }
1036
       return total
1047
       return total
1037
-    }
1048
+    },
1049
+    getPatientName(id){
1050
+     
1051
+      var name =""
1052
+      for(let i=0;i<this.patientsList.length;i++){
1053
+        if(id == this.patientsList[i].id){
1054
+          name = this.patientsList[i].name
1055
+        }
1056
+      }
1057
+      return name
1058
+     }
1038
   }
1059
   }
1039
 };
1060
 };
1040
 </script>
1061
 </script>

+ 20 - 2
src/xt_pages/stock/drugs/components/drugCancelDetail.vue View File

133
           {{scope.row.price}}
133
           {{scope.row.price}}
134
           </template>
134
           </template>
135
         </el-table-column>
135
         </el-table-column>
136
+        <el-table-column label="使用人" align="center">
137
+            <template slot-scope="scope">
138
+                {{getPatientName(scope.row.patient_id)  }}
139
+            </template>
140
+        </el-table-column>
136
         <el-table-column label="数量" align="center">
141
         <el-table-column label="数量" align="center">
137
           <template slot-scope="scope">
142
           <template slot-scope="scope">
138
             {{scope.row.count}}
143
             {{scope.row.count}}
236
       tableDataList:[],
241
       tableDataList:[],
237
       drugTypeList:[],
242
       drugTypeList:[],
238
       dealerList:[],
243
       dealerList:[],
239
-      manufacturerList:[]
244
+      manufacturerList:[],
245
+      patientsList:[]
240
     };
246
     };
241
   },
247
   },
242
   methods: {
248
   methods: {
352
            var list = response.data.data.orderPrint
358
            var list = response.data.data.orderPrint
353
            this.dealerList =  response.data.data.dealerList
359
            this.dealerList =  response.data.data.dealerList
354
            this.manufacturerList =  response.data.data.manufacturerList
360
            this.manufacturerList =  response.data.data.manufacturerList
361
+           this.patientsList =response.data.data.patientsList
355
            //this.drugTypeList = response.data.data.drugTypeList
362
            //this.drugTypeList = response.data.data.drugTypeList
356
            for(let i=0;i<list.length;i++){
363
            for(let i=0;i<list.length;i++){
357
              list[i].child = []
364
              list[i].child = []
365
            }
372
            }
366
            this.tableDataList = list
373
            this.tableDataList = list
367
            console.log("数据我我我",this.tableDataList)
374
            console.log("数据我我我",this.tableDataList)
375
+
368
            var total_price = 0
376
            var total_price = 0
369
           for(let i=0;i<order.length;i++){
377
           for(let i=0;i<order.length;i++){
370
              order[i].specification_name  = order[i].dose + order[i].dose_unit + "*" + order[i].min_number +  order[i].min_unit + "/" + order[i].max_unit
378
              order[i].specification_name  = order[i].dose + order[i].dose_unit + "*" + order[i].min_number +  order[i].min_unit + "/" + order[i].max_unit
515
         }
523
         }
516
       }
524
       }
517
       return name
525
       return name
518
-    }
526
+    },
527
+    getPatientName(id){
528
+     
529
+     var name =""
530
+     for(let i=0;i<this.patientsList.length;i++){
531
+       if(id == this.patientsList[i].id){
532
+         name = this.patientsList[i].name
533
+       }
534
+     }
535
+     return name
536
+    },
519
   }
537
   }
520
 };
538
 };
521
 </script>
539
 </script>

+ 21 - 1
src/xt_pages/stock/drugs/components/drugOutDetail.vue View File

162
            </span>
162
            </span>
163
           </template>
163
           </template>
164
         </el-table-column>
164
         </el-table-column>
165
+        <el-table-column label="使用人" align="center">
166
+            <template slot-scope="scope">
167
+                {{getPatientName(scope.row.patient_id)  }}
168
+            </template>
169
+        </el-table-column>
165
         <el-table-column label="数量" align="center">
170
         <el-table-column label="数量" align="center">
166
           <template slot-scope="scope">
171
           <template slot-scope="scope">
167
             {{scope.row.count}}
172
             {{scope.row.count}}
290
       storehouse_id:0,
295
       storehouse_id:0,
291
       houseList:[],
296
       houseList:[],
292
       dealerList:[],
297
       dealerList:[],
293
-      manufacturerList:[]
298
+      manufacturerList:[],
299
+      patientsList:[]
294
     };
300
     };
295
   },
301
   },
296
   methods: {
302
   methods: {
430
         if(response.data.state == 1){
436
         if(response.data.state == 1){
431
           var order = response.data.data.order
437
           var order = response.data.data.order
432
           console.log("order233322332323223",order)
438
           console.log("order233322332323223",order)
439
+
433
           var obj = {id:0,storehouse_name:"全部"}
440
           var obj = {id:0,storehouse_name:"全部"}
434
           this.houseList = []
441
           this.houseList = []
435
           this.houseList.push(obj)
442
           this.houseList.push(obj)
436
           for(let i=0;i<response.data.data.houseList.length;i++){
443
           for(let i=0;i<response.data.data.houseList.length;i++){
437
            this.houseList.push(response.data.data.houseList[i])
444
            this.houseList.push(response.data.data.houseList[i])
438
           }
445
           }
446
+          this.patientsList = []
447
+          this.patientsList = response.data.data.patientsList
448
+
439
           var total_price = 0
449
           var total_price = 0
440
           for(let i=0;i<order.length;i++){
450
           for(let i=0;i<order.length;i++){
441
              order[i].specification_name  = order[i].dose + order[i].dose_unit + "*" + order[i].min_number +  order[i].min_unit + "/" + order[i].max_unit
451
              order[i].specification_name  = order[i].dose + order[i].dose_unit + "*" + order[i].min_number +  order[i].min_unit + "/" + order[i].max_unit
586
       }
596
       }
587
       return name
597
       return name
588
     },
598
     },
599
+    getPatientName(id){
600
+     
601
+     var name =""
602
+     for(let i=0;i<this.patientsList.length;i++){
603
+       if(id == this.patientsList[i].id){
604
+         name = this.patientsList[i].name
605
+       }
606
+     }
607
+     return name
608
+    },
589
 
609
 
590
      exportList(){
610
      exportList(){
591
         
611