Browse Source

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 1 year ago
parent
commit
41fab116aa

+ 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: {

+ 16 - 3
src/xt_pages/data/druguseTemplate.vue View File

@@ -1181,9 +1181,17 @@
1181 1181
                 <el-form-item label="给药途径 :" required prop="name">
1182 1182
                   <el-input v-model="drugwayForm.name" placeholder="给药途径"></el-input>
1183 1183
                 </el-form-item>
1184
-                <el-form-item label="编码 :" required prop="name">
1184
+                <el-form-item label="bbx01 :" required prop="name" v-if="$store.getters.xt_user.org_id == 10206 || $store.getters.xt_user.org_id == 0">
1185
+                  <el-input v-model="drugwayForm.code" placeholder="bbx01"></el-input>
1186
+                </el-form-item>
1187
+
1188
+                <el-form-item label="编码 :" required prop="name" v-if="$store.getters.xt_user.org_id != 10206 && $store.getters.xt_user.org_id !=0">
1185 1189
                   <el-input v-model="drugwayForm.code" placeholder="给药途径编码"></el-input>
1186 1190
                 </el-form-item>
1191
+
1192
+                <el-form-item label="bby01 :" required prop="name">
1193
+                  <el-input v-model="drugwayForm.bby01" placeholder="bby01"></el-input>
1194
+                </el-form-item>
1187 1195
               </el-form>
1188 1196
               <div slot="footer" class="dialog-footer">
1189 1197
                 <el-button @click="drugwayFormVisible = false">取消</el-button>
@@ -1447,6 +1455,7 @@
1447 1455
           name: '',
1448 1456
           id: 0,
1449 1457
           code:"",
1458
+          bby01:"",
1450 1459
         },
1451 1460
         efForm: {
1452 1461
           name: '',
@@ -1984,7 +1993,8 @@
1984 1993
         this.drugwayForm = {
1985 1994
           name: '',
1986 1995
           code:'',
1987
-          id: 0
1996
+          id: 0,
1997
+          bby01:"",
1988 1998
         }
1989 1999
         this.drugwayFormVisible = true
1990 2000
         this.dialogTitle = '新增给药途径'
@@ -1997,7 +2007,8 @@
1997 2007
         this.drugwayForm = {
1998 2008
           name: row.name,
1999 2009
           id: row.id,
2000
-          code:row.code
2010
+          code:row.code,
2011
+          bby01:row.bby01
2001 2012
         }
2002 2013
 
2003 2014
         this.drugwayFormVisible = true
@@ -2021,6 +2032,8 @@
2021 2032
                     var drugway = response.data.data.drugway
2022 2033
                     this.drugways[this.currentIndex].name = drugway.name
2023 2034
                     this.drugways[this.currentIndex].code = drugway.code
2035
+                    this.drugways[this.currentIndex].bby01 = drugway.bby01
2036
+
2024 2037
 
2025 2038
                     this.drugways[this.currentIndex].updated_time =
2026 2039
                       drugway.updated_time

+ 2 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue View File

@@ -1188,7 +1188,7 @@ export default {
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')

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

@@ -4280,7 +4280,7 @@ export default {
4280 4280
         
4281 4281
 
4282 4282
         console.log("RESWOOWOWWOOW",response.data.data.doctorAdevieInfo)
4283
-        if(this.org_id ==10515 || this.org_id == 0 || this.org_id == 10510){
4283
+        if(this.org_id ==10515 || this.org_id == 0 || this.org_id == 10510 || this.org_id ==10567 ){
4284 4284
           if(response.data.data.doctorAdevieInfo!=null && response.data.data.doctorAdevieInfo.length>0){
4285 4285
             
4286 4286
             for(let i=0;i<response.data.data.doctorAdevieInfo.length;i++){

+ 2 - 2
src/xt_pages/role/components/AdminInfoForm.vue View File

@@ -68,7 +68,7 @@
68 68
           </el-form-item>
69 69
         </el-col>
70 70
       </el-row>
71
-      <el-row :span="24" v-if="$store.getters.xt_user.org_id != 10206">
71
+      <el-row :span="24" v-if="$store.getters.xt_user.org_id != 10206 && $store.getters.xt_user.org_id != 0">
72 72
         <el-col :span="8">
73 73
           <el-form-item label="医保医师编码:">
74 74
             <el-input v-model="form.doctor_number"></el-input>
@@ -77,7 +77,7 @@
77 77
       </el-row>
78 78
 
79 79
 
80
-      <el-row :span="24" v-if="$store.getters.xt_user.org_id == 10206">
80
+      <el-row :span="24" v-if="$store.getters.xt_user.org_id == 10206  || $store.getters.xt_user.org_id ==  0">
81 81
         <el-col :span="8">
82 82
           <el-form-item label="员工ID:">
83 83
             <el-input v-model="form.doctor_number"></el-input>

+ 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