Browse Source

新分支

28169 1 year ago
parent
commit
1eb0293722

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

@@ -939,6 +939,21 @@ const global_config = {
939 939
         zongliang_unit: 'iu',
940 940
         gaimingcheng_unit: '',
941 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 959
     anticoagulants_set: {

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

@@ -1179,16 +1179,16 @@ export default {
1179 1179
           data["urr"] = this.form.urr
1180 1180
           data["hypertenison"] = parseInt(this.form.hypertenison)
1181 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 1187
           data["after_urea"] = this.form.after_urea
1188 1188
           data["pip_coagulation"] = this.form.pip_coagulation
1189 1189
           data["accumulated_blood_volume"] = this.form.accumulated_blood_volume
1190 1190
           data["transfusion_volume"] = this.form.transfusion_volume
1191
-          console.log("Data",data)
1191
+        
1192 1192
           console.log("Paramsquery",data)
1193 1193
 
1194 1194
           postAssessmentAfterDislysis(ParamsQuery, data)
@@ -1504,6 +1504,7 @@ export default {
1504 1504
   },
1505 1505
   created() {
1506 1506
     // console.log("this.form", this.form.consciousness);
1507
+    
1507 1508
     this.org_id = this.$store.getters.xt_user.template_info.org_id
1508 1509
     this.cruorOptions = getDataConfig('hemodialysis', 'cruor')
1509 1510
     this.pip_coagulationOptions = getDataConfig('hemodialysis','pip_coagulation')

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

@@ -142,6 +142,12 @@
142 142
           </template>
143 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 151
         <el-table-column label="数量" align="center">
146 152
           <template slot-scope="scope">
147 153
             {{ scope.row.count }}
@@ -260,6 +266,8 @@ export default {
260 266
       storehouse_id:0,
261 267
       manufacturerList:[],
262 268
       dealerList:[],
269
+      patientsList:[]
270
+        
263 271
     };
264 272
   },
265 273
   methods: {
@@ -405,7 +413,8 @@ export default {
405 413
           this.dealerList = response.data.data.dealerList
406 414
           var listgroup = response.data.data.listgroup
407 415
           
408
-          this.
416
+          this.patientsList = []
417
+          this.patientsList = response.data.data.patientsList
409 418
 
410 419
           this.cancelStockDate.push({
411 420
             order_number: "合计",
@@ -759,7 +768,17 @@ export default {
759 768
      changeHouseList(){
760 769
        this.houseList = []
761 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 784
 </script>

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

@@ -154,6 +154,11 @@
154 154
             </span>
155 155
           </template>
156 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 162
         <el-table-column label="数量" align="center">
158 163
           <template slot-scope="scope">
159 164
             <span v-if="scope.row.is_total == 0">
@@ -165,6 +170,7 @@
165 170
             </span>
166 171
           </template>
167 172
         </el-table-column>
173
+      
168 174
         <el-table-column label="总价" align="center">
169 175
           <template slot-scope="scope">
170 176
             <span v-if="scope.row.is_total == 0 && scope.row.price > 0">{{getTotal(scope.row.price, scope.row.count)}}</span>
@@ -280,6 +286,7 @@ export default {
280 286
       wareOutList:[],
281 287
       manufacturerList:[],
282 288
       dealerList:[],
289
+      patientsList:[],
283 290
     };
284 291
   },
285 292
   methods: {
@@ -353,7 +360,9 @@ export default {
353 360
           this.total = response.data.data.total;
354 361
           this.wareOutList = []
355 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 366
           var total = 0
358 367
           var objOne = {
359 368
             warehouse_out_order_number: "合计",
@@ -413,7 +422,9 @@ export default {
413 422
            this.houseList.push(response.data.data.houseList[i])
414 423
           }
415 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 428
           var total = 0
418 429
           var objOne = {
419 430
             warehouse_out_order_number: "合计",
@@ -1034,7 +1045,17 @@ export default {
1034 1045
          }
1035 1046
       }
1036 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 1061
 </script>

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

@@ -133,6 +133,11 @@
133 133
           {{scope.row.price}}
134 134
           </template>
135 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 141
         <el-table-column label="数量" align="center">
137 142
           <template slot-scope="scope">
138 143
             {{scope.row.count}}
@@ -236,7 +241,8 @@ export default {
236 241
       tableDataList:[],
237 242
       drugTypeList:[],
238 243
       dealerList:[],
239
-      manufacturerList:[]
244
+      manufacturerList:[],
245
+      patientsList:[]
240 246
     };
241 247
   },
242 248
   methods: {
@@ -352,6 +358,7 @@ export default {
352 358
            var list = response.data.data.orderPrint
353 359
            this.dealerList =  response.data.data.dealerList
354 360
            this.manufacturerList =  response.data.data.manufacturerList
361
+           this.patientsList =response.data.data.patientsList
355 362
            //this.drugTypeList = response.data.data.drugTypeList
356 363
            for(let i=0;i<list.length;i++){
357 364
              list[i].child = []
@@ -365,6 +372,7 @@ export default {
365 372
            }
366 373
            this.tableDataList = list
367 374
            console.log("数据我我我",this.tableDataList)
375
+
368 376
            var total_price = 0
369 377
           for(let i=0;i<order.length;i++){
370 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,7 +523,17 @@ export default {
515 523
         }
516 524
       }
517 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 539
 </script>

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

@@ -162,6 +162,11 @@
162 162
            </span>
163 163
           </template>
164 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 170
         <el-table-column label="数量" align="center">
166 171
           <template slot-scope="scope">
167 172
             {{scope.row.count}}
@@ -290,7 +295,8 @@ export default {
290 295
       storehouse_id:0,
291 296
       houseList:[],
292 297
       dealerList:[],
293
-      manufacturerList:[]
298
+      manufacturerList:[],
299
+      patientsList:[]
294 300
     };
295 301
   },
296 302
   methods: {
@@ -430,12 +436,16 @@ export default {
430 436
         if(response.data.state == 1){
431 437
           var order = response.data.data.order
432 438
           console.log("order233322332323223",order)
439
+
433 440
           var obj = {id:0,storehouse_name:"全部"}
434 441
           this.houseList = []
435 442
           this.houseList.push(obj)
436 443
           for(let i=0;i<response.data.data.houseList.length;i++){
437 444
            this.houseList.push(response.data.data.houseList[i])
438 445
           }
446
+          this.patientsList = []
447
+          this.patientsList = response.data.data.patientsList
448
+
439 449
           var total_price = 0
440 450
           for(let i=0;i<order.length;i++){
441 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,6 +596,16 @@ export default {
586 596
       }
587 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 610
      exportList(){
591 611