Browse Source

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

yq1 1 week ago
parent
commit
244c933295

+ 1 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -119,7 +119,7 @@
119 119
 
120 120
             <el-button v-loading="loadingone" size="small"
121 121
                        @click="open(40)"
122
-                       v-if="org_id == 10191 || org_id == 10318 || org_id == 10567  || org_id == 10375 || org_id == 10480 || org_id == 10721"
122
+                       v-if="org_id == 10191 || org_id == 10318 || org_id == 10567  || org_id == 10375 || org_id == 10480 || org_id == 10721 || org_id == 10724"
123 123
                        type="primary">登陆
124 124
             </el-button>
125 125
 

+ 28 - 6
src/xt_pages/stock/drugs/drugStockFlow.vue View File

@@ -157,16 +157,24 @@
157 157
              <span > {{getDrugCount(scope.row.over_count,scope.row.BaseDrugLib.max_unit,scope.row.BaseDrugLib.min_unit,scope.row.BaseDrugLib.min_number)}}</span>
158 158
            </template>
159 159
         </el-table-column>
160
-        <el-table-column prop="remark" label="备注" align="center">
160
+        <el-table-column prop="drug_name" label="批号" align="center" v-if="this.$store.getters.xt_user.template_info.org_id == 10191">
161 161
            <template slot-scope="scope">
162
-             <span > {{scope.row.remark}}</span>
162
+             <span>{{scope.row.batch_number}}</span>
163 163
            </template>
164 164
         </el-table-column>
165
-        <!-- <el-table-column prop="drug_name" label="批号" align="center">
165
+
166
+        <el-table-column prop="remark" label="药品追溯码" align="center">
166 167
            <template slot-scope="scope">
167
-             <span>{{scope.row.batch_number}}</span>
168
+             <span> {{scope.row.drug_code }}</span>
168 169
            </template>
169
-        </el-table-column> -->
170
+        </el-table-column>
171
+
172
+        <el-table-column prop="remark" label="备注" align="center">
173
+           <template slot-scope="scope">
174
+             <span > {{scope.row.remark}}</span>
175
+           </template>
176
+        </el-table-column>
177
+       
170 178
         <!-- <el-table-column prop="drug_name" label="生产商" align="center">
171 179
            <template slot-scope="scope">
172 180
              {{getManufacturer(scope.row.manufacturer)}}
@@ -288,6 +296,7 @@
288 296
         drug:{},
289 297
         houseList:[],
290 298
         patientList:[],
299
+        adviceMap:[]
291 300
       }
292 301
     },
293 302
     methods:{
@@ -543,6 +552,8 @@
543 552
             this.patientList = response.data.data.patientList
544 553
 
545 554
             this.houseList = response.data.data.houseList
555
+
556
+           
546 557
           }
547 558
        })
548 559
      },
@@ -755,7 +766,18 @@
755 766
       getDrugFlowDetailByDrugId(params).then(response=>{
756 767
 
757 768
       })
758
-    }
769
+    },
770
+    // getDrugCode(patient_id,advice_date){
771
+    //    console.log("patinet_id========",patient_id)
772
+    //    console.log("advice_datre====",advice_date)
773
+    //   var drug_code = ""
774
+    //   for(let i=0;i<this.adviceMap.length;i++){
775
+    //    if(patient_id == this.adviceMap[i].patient_id && advice_date == this.adviceMap[i].advice_date){
776
+    //        drug_code = this.adviceMap[i].drug_code
777
+    //    }
778
+    //   }
779
+    //   return drug_code
780
+    // }
759 781
     }
760 782
   }
761 783
 </script>

+ 8 - 6
src/xt_pages/stock/drugs/drugStockOutOrder.vue View File

@@ -304,7 +304,7 @@
304 304
                   <td style="border-right: none; border-inline-end:none;text-align: center">
305 305
                     <span v-if="is_sys==1 || is_sys == 5">{{getOutCountSix(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_id)}}</span>
306 306
                     <span v-if="is_sys == 12">{{getOutCountTen(item.count,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
307
-                    <span v-if="is_sys == 0"> {{getOutCountOne(item.batch_number,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_id)}} </span>
307
+                    <span v-if="is_sys == 0"> {{getOutCountOne(item.batch_number,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_id,item.warehousing_detail_id)}} </span>
308 308
                   </td>
309 309
                </tr>
310 310
             </template>
@@ -1453,8 +1453,8 @@ export default {
1453 1453
           console.log("list999992332232323",list)
1454 1454
           for(let i=0;i<list.length;i++){
1455 1455
             for(let j=0;j<list[i].childOne.length;j++){
1456
-              console.log("hhhahhawiiw",this.getOutCountOne(list[i].childOne[j].batch_number,list[i].max_unit,list[i].min_unit,list[i].min_number,list[i].drug_id))
1457
-               list[i].childOne[j].over_count_total = this.getOutCountOne(list[i].childOne[j].batch_number,list[i].max_unit,list[i].min_unit,list[i].min_number,list[i].drug_id)
1456
+              console.log("hhhahhawiiw",this.getOutCountOne(list[i].childOne[j].batch_number,list[i].max_unit,list[i].min_unit,list[i].min_number,list[i].drug_id,list[i].warehouse_info_id))
1457
+               list[i].childOne[j].over_count_total = this.getOutCountOne(list[i].childOne[j].batch_number,list[i].max_unit,list[i].min_unit,list[i].min_number,list[i].drug_id,list[i].warehouse_info_id)
1458 1458
             }
1459 1459
           }
1460 1460
 
@@ -2037,8 +2037,10 @@ export default {
2037 2037
       }
2038 2038
       return max_str + min_str;
2039 2039
     },
2040
-    getOutCountOne(batch_number,max_unit,min_unit,min_number,drug_id){
2041
-    
2040
+    getOutCountOne(batch_number,max_unit,min_unit,min_number,drug_id,warehousing_detail_id){
2041
+      
2042
+      console.log("warehousing_detail_id",warehousing_detail_id)
2043
+      console.log("tabList-----------------",this.tabList)
2042 2044
       var arr = []
2043 2045
       var total = 0
2044 2046
       var max_str = ""
@@ -2046,7 +2048,7 @@ export default {
2046 2048
     
2047 2049
       for(let j=0;j<this.tabList.length;j++){
2048 2050
       
2049
-        if(batch_number == this.tabList[j].batch_number && drug_id == this.tabList[j].drug_id){
2051
+        if(batch_number == this.tabList[j].batch_number && drug_id == this.tabList[j].drug_id && warehousing_detail_id == this.tabList[j].warehousing_detail_id){
2050 2052
            arr.push(this.tabList[j])
2051 2053
         }
2052 2054
       }

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

@@ -1226,7 +1226,7 @@ export default {
1226 1226
         })
1227 1227
        }
1228 1228
 
1229
-       if(this.org_id == 10697 || this.org_id == 0){
1229
+       if(this.org_id == 10697 || this.org_id == 0 || this.org_id == 10375){
1230 1230
         
1231 1231
         for(let i=0;i<this.tableList.length;i++){
1232 1232
           this.tableList[i].index = i+1

+ 14 - 3
src/xt_pages/stock/stockFlow.vue View File

@@ -116,11 +116,11 @@
116 116
         </el-table-column>
117 117
    
118 118
 
119
-       <!-- <el-table-column label="批次" align="center">
119
+       <el-table-column label="批次" align="center" v-if="this.$store.getters.xt_user.template_info.org_id == 10191">
120 120
          <template slot-scope="scope">
121 121
            <span>{{scope.row.number}}</span>
122 122
          </template>
123
-       </el-table-column> -->
123
+       </el-table-column>
124 124
 
125 125
     
126 126
         <el-table-column prop="drug_name" label="单价"  align="center">
@@ -154,6 +154,13 @@
154 154
              <span > {{scope.row.over_count}}</span>
155 155
            </template>
156 156
         </el-table-column>
157
+
158
+        <el-table-column prop="drug_name" label="耗材追溯码" align="center">
159
+           <template slot-scope="scope">
160
+             <span > {{scope.row.good_code}}</span>
161
+           </template>
162
+        </el-table-column>
163
+
157 164
         <el-table-column prop="remark" label="备注" align="center">
158 165
            <template slot-scope="scope">
159 166
              <span > {{scope.row.remark}}</span>
@@ -264,7 +271,9 @@
264 271
         cancelCountList:[],
265 272
         good:{},
266 273
         houseList:[],
267
-        patientList:[]
274
+        patientList:[],
275
+        hisPrescription:[]
276
+
268 277
       }
269 278
     },
270 279
     methods:{
@@ -474,6 +483,8 @@
474 483
            this.houseList = response.data.data.houseList
475 484
            this.patientList = response.data.data.patients
476 485
 
486
+
487
+
477 488
           
478 489
           }
479 490
        })

+ 13 - 13
src/xt_permission.js View File

@@ -12,19 +12,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
12 12
 
13 13
 router.beforeEach((to, from, next) => {
14 14
   // 线上注释
15
-  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-  //   store.dispatch('VerifyConfigList', []).then(() => {
17
-  //     next()
18
-  //   })
19
-  // }
20
-  // if (store.getters.permission_routers === undefined) {
21
-  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-  //     next()
23
-  //   })
24
-  // } else {
25
-  //   next()
26
-  // }
27
-  // return
15
+  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+    store.dispatch('VerifyConfigList', []).then(() => {
17
+      next()
18
+    })
19
+  }
20
+  if (store.getters.permission_routers === undefined) {
21
+    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+      next()
23
+    })
24
+  } else {
25
+    next()
26
+  }
27
+  return
28 28
  // 线上注释
29 29
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))