Browse Source

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

yq1 1 week ago
parent
commit
60709651f3

+ 10 - 0
src/api/drug/drug.js View File

@@ -954,4 +954,14 @@ export function getPatientAdviceListDetail(params){
954 954
     method:"Get",
955 955
     params:params
956 956
   })
957
+}
958
+
959
+
960
+export function getSelfDrugWarhouseInfo(params){
961
+
962
+  return request({
963
+    url:"/api/drug/getselfdrugwarehouseinfo",
964
+    method:"get",
965
+    params:params,
966
+  })
957 967
 }

+ 25 - 0
src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue View File

@@ -478,6 +478,27 @@ export default {
478 478
         accepts.consciousness = 1
479 479
         accepts.appetite =1
480 480
 
481
+        if(this.$store.getters.xt_user.template_info.org_id== 10293 || this.$store.getters.xt_user.template_info.org_id == 0){
482
+          accepts.way =1 
483
+          accepts.posture = 1
484
+          accepts.consciousness =1
485
+          accepts.appetite =1
486
+          accepts.danger_level=1
487
+          console.log("this.precaution_arr",this.precaution_arr)
488
+          this.receiveTreatmentAsses.way =1
489
+          this.receiveTreatmentAsses.consciousness =2
490
+          this.receiveTreatmentAsses.appetite =2
491
+          this.receiveTreatmentAsses.posture= 1
492
+          this.receiveTreatmentAsses.danger_level=2
493
+          this.receiveTreatmentAsses.precaution = 3
494
+          var arr = [3,4]
495
+          this.precautionTwo.push(...arr)
496
+          this.receiveTreatmentAsses.precaution = this.precautionTwo   
497
+          accepts.precaution= ""
498
+          accepts.precaution = "3,4"
499
+          
500
+       }
501
+
481 502
       }
482 503
       this.accepts = accepts;
483 504
      console.log("accepts", accepts);
@@ -770,6 +791,8 @@ export default {
770 791
     if(this.lastTreat!=null){
771 792
       if(this.receiveTreatmentAsses.condition ==1){
772 793
         this.receiveTreatmentAsses.admission_number = this.lastTreat.admission_number
794
+        this.receiveTreatmentAsses.his_bed = this.lastTreat.his_bed
795
+        this.receiveTreatmentAsses.his_department = this.lastTreat.his_department
773 796
       }
774 797
     
775 798
     }
@@ -789,6 +812,8 @@ export default {
789 812
     // console.log("风险", this.precaution_arr);
790 813
     this.intake_arr = getDataConfig("hemodialysis", "intake");
791 814
     this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
815
+
816
+   
792 817
   },
793 818
  
794 819
 };

+ 106 - 7
src/xt_pages/dialysis/patientAdviceList.vue View File

@@ -71,28 +71,52 @@
71 71
                         </div>
72 72
                     </div> -->
73 73
                     <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
74
-                        <el-table-column align="center" prop="dialysis_no" label="药品名称">
74
+                       
75
+                      <el-table-column align="center" prop="dialysis_no" label="药品编号">
76
+                            <template slot-scope="scope">
77
+                                {{ scope.row.drug_id }}
78
+                            </template>
79
+                        </el-table-column>
80
+                       <el-table-column align="center" prop="dialysis_no" label="药品名称">
75 81
                             <template slot-scope="scope">
76
-                                {{ scope.row.advice_name }}
82
+                               <span v-if="scope.row.drug_id >0">
83
+                                 {{ scope.row.advice_name }}
84
+                               </span>
85
+                               <span v-if="scope.row.drug_id ==0" style="color: red;">
86
+                                 {{ scope.row.advice_name }}
87
+                               </span>
77 88
                             </template>
78 89
                         </el-table-column>
79 90
                         <el-table-column align="center" prop="name" label="规格名称">
80 91
                             <template slot-scope="scope">{{ scope.row.specification_name }}</template>
81 92
                         </el-table-column>
93
+
94
+                        <el-table-column align="center" prop="name" label="自备药入库数量">
95
+                            <template slot-scope="scope">
96
+                              {{ getCountInfo(scope.row.drug_id) }}
97
+                            </template>
98
+                        </el-table-column>
82 99
                        
83 100
                         <el-table-column align="center" prop="name" label="开药数量">
84 101
                             <template slot-scope="scope">
85 102
                               {{getTotal(scope.row.child)}}
86 103
                             </template>
87 104
                         </el-table-column>
105
+
106
+                        <el-table-column align="center" prop="name" label="剩余数量">
107
+                            <template slot-scope="scope">
108
+                               {{ getCountInfo(scope.row.drug_id) - getTotal(scope.row.child)}}
109
+                            </template>
110
+                        </el-table-column>
88 111
                         <el-table-column align="center" prop="dialysis_no" label="单位">
89 112
                             <template slot-scope="scope">{{scope.row.prescribing_number_unit}}</template>
90 113
                         </el-table-column>
91 114
                        
92 115
                        
93
-                        <el-table-column align="center" prop="name" label="操作">
116
+                        <el-table-column align="center" prop="name" label="操作" width="300">
94 117
                             <template slot-scope="scope">
95
-                                <el-button size="mini" type="primary" @click="toDetail(scope.row.advice_name,scope.row.patient_id)">明细</el-button>
118
+                                <el-button size="mini" type="primary" @click="getSelfDrugWarhouseInfo(scope.row.drug_id,scope.row.patient_id)">入库明细</el-button>
119
+                                <el-button size="mini" type="primary" @click="toDetail(scope.row.advice_name,scope.row.patient_id)">使用明细</el-button>
96 120
                             </template>
97 121
                         </el-table-column>
98 122
                     </el-table>
@@ -132,6 +156,36 @@
132 156
             <el-button type="primary" @click="adviceDialogVisible = false">确 定</el-button>
133 157
         </span>
134 158
      </el-dialog>
159
+
160
+
161
+     <el-dialog
162
+         title="入库详情"
163
+        :visible.sync="drugInfoDialogVisible"
164
+        width="50%">
165
+        <span>
166
+         <el-table :data="drugWarehouseInfo" border style="width: 100%;" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
167
+                
168
+                <el-table-column align="center" prop="name" label="入库时间">
169
+                    <template slot-scope="scope">{{getTime(scope.row.ctime)}}</template>
170
+                </el-table-column>
171
+                
172
+                <el-table-column align="center" prop="name" label="入库数量">
173
+                    <template slot-scope="scope">
174
+                        {{scope.row.warehousing_count}}
175
+                    </template>
176
+                </el-table-column>
177
+                <el-table-column align="center" prop="dialysis_no" label="单位">
178
+                    <template slot-scope="scope">{{scope.row.max_unit}}</template>
179
+                </el-table-column>
180
+                
181
+                
182
+            </el-table> 
183
+        </span>
184
+        <span slot="footer" class="dialog-footer">
185
+            <el-button @click="drugInfoDialogVisible = false">取 消</el-button>
186
+            <el-button type="primary" @click="drugInfoDialogVisible = false">确 定</el-button>
187
+        </span>
188
+     </el-dialog>
135 189
     </div>
136 190
 </template>
137 191
 
@@ -141,7 +195,7 @@
141 195
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
142 196
 const moment = require('moment')
143 197
 import { PostSearch } from '@/api/patient'
144
-import { getCurrentPatient,saveRadio,getPatientAdviceList,DeleteDrugNameById,getDrugSet,getPatientDetail,getPatientAdviceListDetail} from "@/api/drug/drug"
198
+import { getCurrentPatient,saveRadio,getPatientAdviceList,DeleteDrugNameById,getDrugSet,getPatientDetail,getPatientAdviceListDetail,getSelfDrugWarhouseInfo} from "@/api/drug/drug"
145 199
 import { TimeSelect } from "element-ui";
146 200
 import { uParseTime } from '@/utils/tools'
147 201
 export default {
@@ -172,7 +226,10 @@ export default {
172 226
             outStocklist:[],
173 227
             outList:[],
174 228
             tableList:[],
175
-            adviceDialogVisible:false
229
+            adviceDialogVisible:false,
230
+            drugInfo:[],
231
+            drugWarehouseInfo:[],
232
+            drugInfoDialogVisible:false
176 233
         }
177 234
     },
178 235
     methods:{
@@ -294,6 +351,12 @@ export default {
294 351
                    }
295 352
                    this.tableData = []
296 353
                    this.tableData = arr
354
+
355
+                  var drugInfo  = response.data.data.drugInfo
356
+
357
+                  this.drugInfo = drugInfo
358
+
359
+                  console.log("drugInfo============",drugInfo)
297 360
                 }
298 361
               
299 362
               }
@@ -406,7 +469,43 @@ export default {
406 469
         }else {
407 470
             return uParseTime(val, '{y}-{m}-{d}')
408 471
         }
409
-     },
472
+       },
473
+       getCountInfo(drug_id){
474
+        var count = 0
475
+        var arr = []
476
+        for(let i=0;i<this.drugInfo.length;i++){
477
+          if(drug_id == this.drugInfo[i].drug_id){
478
+              arr.push(this.drugInfo[i])
479
+          }
480
+        }
481
+        if(arr!=null && arr.length>0){
482
+          for(let i =0;i<arr.length;i++){
483
+             count+=arr[i].warehousing_count
484
+          }
485
+        }
486
+        if (count > 0) {
487
+           return count
488
+        }else{
489
+          return ""
490
+        }
491
+       },
492
+       getSelfDrugWarhouseInfo(drug_id,patient_id){
493
+          var params = {
494
+            drug_id:drug_id,
495
+            patient_id:patient_id
496
+          }
497
+         getSelfDrugWarhouseInfo(params).then(response=>{
498
+          
499
+            if(response.data.state ==1){
500
+             
501
+              var drugWarehouseInfo = response.data.data.drugInfo
502
+
503
+              this.drugWarehouseInfo = drugWarehouseInfo
504
+              this.drugInfoDialogVisible = true
505
+             
506
+            }
507
+         })
508
+       }
410 509
 
411 510
     },
412 511
     created(){

+ 7 - 5
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -1193,6 +1193,7 @@ export default {
1193 1193
         { value: 12, label: '门诊挂号' },
1194 1194
         { value: 1102, label: '新冠门诊' },
1195 1195
         { value: 14, label: '门诊特殊病' },
1196
+        { value: '140201', label: '门诊特殊病(140201)' },
1196 1197
         { value: '992102', label: '单病种(992102)' },
1197 1198
         { value: '140104', label: '城乡门诊特殊病(140104)' },
1198 1199
         { value: '1104', label: '异地门特'},
@@ -5935,14 +5936,13 @@ export default {
5935 5936
             case 992102:
5936 5937
               return '单病种(992102)' + '处方' + index
5937 5938
               break
5938
-            case 1104:
5939
-              return '异地门特(1104)' + '处方' + index
5940
-              break
5941 5939
 
5942 5940
             case 140104:
5943 5941
               return '门诊特殊病(140104)' + '处方' + index
5944 5942
               break
5945
-
5943
+            case 140201:
5944
+              return '门诊特殊病(140201)' + '处方' + index
5945
+              break
5946 5946
             case 999999:
5947 5947
               return '自费' + '处方' + index
5948 5948
               break
@@ -5991,7 +5991,9 @@ export default {
5991 5991
             case 990101:
5992 5992
               return '单病种(990101)' + '处方' + index
5993 5993
               break
5994
-
5994
+            case 140201:
5995
+              return '门诊特殊病(140201)' + '处方' + index
5996
+              break
5995 5997
           }
5996 5998
 
5997 5999
 

+ 1 - 4
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

@@ -661,10 +661,9 @@ export default {
661 661
         { value: 9922, label: '家庭通道' },
662 662
         { value: 9933, label: '门诊特殊病(9933)' },
663 663
         { value: 990602, label: '门诊特殊病(990602)' },
664
-
664
+        { value: 140201, label: '门诊特病(140201)' },
665 665
         { value: 992102, label: '单病种(992102)' },
666 666
         { value: 140104, label: '城乡门诊特殊病(140104)' },
667
-
668 667
         { value: 1402, label: '门诊特殊病(1402)' },
669 668
         { value: 1401, label: '门诊慢特病(1401)' },
670 669
         { value: 2302, label: '异地就医(2302)' },
@@ -673,8 +672,6 @@ export default {
673 672
         { value: 999999, label: '自费' },
674 673
         { value: 118801, label: '118801' }
675 674
 
676
-
677
-
678 675
       ],
679 676
       register10721: [
680 677
         { value: 11, label: '普通门诊' },

+ 2 - 1
src/xt_pages/outpatientTool/components/print9919.vue View File

@@ -1,6 +1,7 @@
1 1
 <template>
2 2
   <div id="statement-print" class="statement-print">
3
-    <div class="statementTitle" v-if="this.$store.getters.xt_user.org.id != 10480">广东省社会医疗保险医疗费用结算单</div>
3
+    <div class="statementTitle" v-if="this.$store.getters.xt_user.org.id != 10480 && this.$store.getters.xt_user.org.id != 10387">广东省社会医疗保险医疗费用结算单</div>
4
+    <div class="statementTitle" v-if="this.$store.getters.xt_user.org.id == 10387">湖南省社会医疗保险医疗费用结算单</div>
4 5
     <div class="statementTitle" v-else>安徽省社会医疗保险医疗费用结算单</div>
5 6
     <table class="statementTable" border="1" style="border-collapse: collapse;">
6 7
       <tr>

+ 32 - 8
src/xt_pages/stock/drugs/components/drugOutDetail.vue View File

@@ -210,7 +210,7 @@
210 210
            {{getStorehouseName(scope.row.storehouse_id)}}
211 211
           </template>
212 212
         </el-table-column>
213
-        <el-table-column label="出价" align="center">
213
+        <el-table-column label="出价" align="center">
214 214
           <template slot-scope="scope">
215 215
            <span v-if="org_id == 9919">{{scope.row.last_price}} </span>
216 216
            <span v-else>
@@ -591,7 +591,11 @@ export default {
591 591
              if(this.org_id == 9919){
592 592
                order[i].total_price = order[i].count * order[i].last_price
593 593
                total_price += order[i].count * order[i].last_price
594
-             }else{
594
+             }else if(this.org_id == 0){
595
+                order[i].total_price = order[i].total_price
596
+             }else if(this.org_id == 10721){
597
+              order[i].total_price = order[i].total_price
598
+             } else{
595 599
                if(order[i].price > 0){
596 600
                   order[i].total_price = 0
597 601
                  if(order[i].count_unit == order[i].min_unit && order[i].max_unit!=order[i].min_unit){
@@ -601,7 +605,7 @@ export default {
601 605
                    if(order[i].is_sys == 0){
602 606
                      order[i].total_price += order[i].count * order[i].price
603 607
                    }else{
604
-                    
608
+                     
605 609
                      order[i].total_price += order[i].count * order[i].price * order[i].min_number
606 610
                    }
607 611
                  }
@@ -752,8 +756,7 @@ export default {
752 756
     },
753 757
 
754 758
      exportList(){
755
-        
756
-        
759
+         
757 760
        
758 761
         for(let i=0;i<this.tablePrint.length;i++){
759 762
           this.tablePrint[i].index = i+1
@@ -770,7 +773,12 @@ export default {
770 773
              this.tablePrint[i].unit = this.tablePrint[i].dose + this.tablePrint[i].dose_unit + "*" + this.tablePrint[i].min_number +this.tablePrint[i].min_unit +"/"+this.tablePrint[i].max_unit
771 774
              this.tablePrint[i].total = this.getCountSenvenOne(this.tablePrint.drug_id,this.tablePrint[i].child,this.tablePrint[i].price)/this.tablePrint[i].min_number
772 775
             
773
-           }else{
776
+           }else if(this.org_id == 10721){
777
+            this.tablePrint[i].unit = this.tablePrint[i].dose + this.tablePrint[i].dose_unit + "*" + this.tablePrint[i].min_number +this.tablePrint[i].min_unit +"/"+this.tablePrint[i].max_unit
778
+            this.tablePrint[i].count = this.getCount(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_unit,this.tablePrint[i].min_number)
779
+            this.tablePrint[i].total_price =  ((parseInt((this.getCountSix(this.tablePrint[i].drug_id,this.tablePrint[i].child))))*this.tablePrint[i].price).toFixed(2)
780
+            this.tablePrint[i].total = this.getTotalPriceTwo(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_number,this.tablePrint[i].min_price)
781
+           } else{
774 782
               this.tablePrint[i].count = this.getCount(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_unit,this.tablePrint[i].min_number)
775 783
               this.tablePrint[i].total_price = this.getTotalPrice(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_number,this.tablePrint[i].min_price)
776 784
               this.tablePrint[i].unit = this.tablePrint[i].dose + this.tablePrint[i].dose_unit + "*" + this.tablePrint[i].min_number +this.tablePrint[i].min_unit +"/"+this.tablePrint[i].max_unit
@@ -785,7 +793,7 @@ export default {
785 793
         
786 794
         console.log("wowowoowowowowo",this.tablePrint)
787 795
         
788
-       
796
+      
789 797
       
790 798
        import('@/vendor/Export2Excel').then(excel => {
791 799
        const tHeader = ['序号','药品名称', '规格型号','生产厂商','进销商', '单位','数量','单价','总价','出库时间','备注']
@@ -866,8 +874,15 @@ export default {
866 874
                 this.tableData[i].total_price = (this.tableData[i].count * this.tableData[i].last_price)
867 875
               }
868 876
 
869
-            }else{
877
+            }else if(this.org_id == 10721){
878
+              this.tableData[i].total = (this.tableData[i].count * this.tableData[i].price)
879
+              this.tableData[i].total_price = this.tableData[i].total_price
880
+            }else if(this.org_id == 0){
870 881
               this.tableData[i].total = (this.tableData[i].count * this.tableData[i].price)
882
+              this.tableData[i].total_price = this.tableData[i].total_price
883
+            } else{
884
+              this.tableData[i].total = (this.tableData[i].count * this.tableData[i].price)
885
+
871 886
               if(this.tableData[i].count_unit == this.tableData[i].min_unit && this.tableData[i].max_unit!=this.tableData[i].min_unit){
872 887
                  this.tableData[i].total_price = (this.tableData[i].count * this.tableData[i].price)
873 888
               }
@@ -1184,6 +1199,7 @@ export default {
1184 1199
         }
1185 1200
         return str + min_str
1186 1201
       },
1202
+      
1187 1203
       getTotalPrice(arr,max_unit,min_number,min_price){
1188 1204
         console.log("arrwoowowow",arr)
1189 1205
       
@@ -1217,6 +1233,14 @@ export default {
1217 1233
 
1218 1234
         return total*min_price
1219 1235
       },
1236
+      getTotalPriceTwo(arr,max_unit,min_number,min_price){
1237
+        var total = 0
1238
+        for(let j=0;j<arr.length;j++){
1239
+          total +=arr[j].count
1240
+        }
1241
+
1242
+        return total*min_price
1243
+      },
1220 1244
       getCountSix(drug_id,val){
1221 1245
 
1222 1246
         var count = 0

+ 1 - 0
src/xt_pages/stock/drugs/drugOutOrderPrint.vue View File

@@ -319,6 +319,7 @@
319 319
         var str = ""
320 320
         var min_str = ""
321 321
         for(let i=0;i<arr.length;i++){
322
+          console.log("arr-----",arr)
322 323
           arr[i].total_count = 0
323 324
           if(arr[i].count_unit == max_unit){
324 325
             arr[i].total_count = parseInt(arr[i].count) * min_number

+ 1 - 1
src/xt_pages/stock/query/purchaseNewStockQuery.vue View File

@@ -1164,7 +1164,7 @@ export default {
1164 1164
    },
1165 1165
    exportList: function() {
1166 1166
 
1167
-       if(this.org_id!=0&& this.org_id!=9956 && this.org_id!=10697){
1167
+       if(this.org_id!=0&& this.org_id!=9956 && this.org_id!=10697 && this.org_id!=10375){
1168 1168
          
1169 1169
         for(let i=0;i<this.tableList.length;i++){
1170 1170
           this.tableList[i].index = i+1

+ 1 - 0
src/xt_pages/stock/selfPreparedMedicine/selfDrugQuery.vue View File

@@ -12,6 +12,7 @@
12 12
             
13 13
               <el-tab-pane label="患者查询" name="second">
14 14
                   <patient-drug-query ref="mychildtwo"></patient-drug-query>
15
+
15 16
               </el-tab-pane>
16 17
           </el-tabs>
17 18
        </div>