Browse Source

hah阿凡达

28169 2 weeks ago
parent
commit
730830ce02

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

119
 
119
 
120
             <el-button v-loading="loadingone" size="small"
120
             <el-button v-loading="loadingone" size="small"
121
                        @click="open(40)"
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
                        type="primary">登陆
123
                        type="primary">登陆
124
             </el-button>
124
             </el-button>
125
 
125
 

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

157
              <span > {{getDrugCount(scope.row.over_count,scope.row.BaseDrugLib.max_unit,scope.row.BaseDrugLib.min_unit,scope.row.BaseDrugLib.min_number)}}</span>
157
              <span > {{getDrugCount(scope.row.over_count,scope.row.BaseDrugLib.max_unit,scope.row.BaseDrugLib.min_unit,scope.row.BaseDrugLib.min_number)}}</span>
158
            </template>
158
            </template>
159
         </el-table-column>
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
            <template slot-scope="scope">
161
            <template slot-scope="scope">
162
-             <span > {{scope.row.remark}}</span>
162
+             <span>{{scope.row.batch_number}}</span>
163
            </template>
163
            </template>
164
         </el-table-column>
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
            <template slot-scope="scope">
167
            <template slot-scope="scope">
167
-             <span>{{scope.row.batch_number}}</span>
168
+             <span> {{scope.row.drug_code }}</span>
168
            </template>
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
         <!-- <el-table-column prop="drug_name" label="生产商" align="center">
178
         <!-- <el-table-column prop="drug_name" label="生产商" align="center">
171
            <template slot-scope="scope">
179
            <template slot-scope="scope">
172
              {{getManufacturer(scope.row.manufacturer)}}
180
              {{getManufacturer(scope.row.manufacturer)}}
288
         drug:{},
296
         drug:{},
289
         houseList:[],
297
         houseList:[],
290
         patientList:[],
298
         patientList:[],
299
+        adviceMap:[]
291
       }
300
       }
292
     },
301
     },
293
     methods:{
302
     methods:{
543
             this.patientList = response.data.data.patientList
552
             this.patientList = response.data.data.patientList
544
 
553
 
545
             this.houseList = response.data.data.houseList
554
             this.houseList = response.data.data.houseList
555
+
556
+           
546
           }
557
           }
547
        })
558
        })
548
      },
559
      },
755
       getDrugFlowDetailByDrugId(params).then(response=>{
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
 </script>
783
 </script>

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

304
                   <td style="border-right: none; border-inline-end:none;text-align: center">
304
                   <td style="border-right: none; border-inline-end:none;text-align: center">
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>
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
                     <span v-if="is_sys == 12">{{getOutCountTen(item.count,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
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
                   </td>
308
                   </td>
309
                </tr>
309
                </tr>
310
             </template>
310
             </template>
1453
           console.log("list999992332232323",list)
1453
           console.log("list999992332232323",list)
1454
           for(let i=0;i<list.length;i++){
1454
           for(let i=0;i<list.length;i++){
1455
             for(let j=0;j<list[i].childOne.length;j++){
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
       }
2037
       }
2038
       return max_str + min_str;
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
       var arr = []
2044
       var arr = []
2043
       var total = 0
2045
       var total = 0
2044
       var max_str = ""
2046
       var max_str = ""
2046
     
2048
     
2047
       for(let j=0;j<this.tabList.length;j++){
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
            arr.push(this.tabList[j])
2052
            arr.push(this.tabList[j])
2051
         }
2053
         }
2052
       }
2054
       }

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

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
         for(let i=0;i<this.tableList.length;i++){
1231
         for(let i=0;i<this.tableList.length;i++){
1232
           this.tableList[i].index = i+1
1232
           this.tableList[i].index = i+1

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

116
         </el-table-column>
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
          <template slot-scope="scope">
120
          <template slot-scope="scope">
121
            <span>{{scope.row.number}}</span>
121
            <span>{{scope.row.number}}</span>
122
          </template>
122
          </template>
123
-       </el-table-column> -->
123
+       </el-table-column>
124
 
124
 
125
     
125
     
126
         <el-table-column prop="drug_name" label="单价"  align="center">
126
         <el-table-column prop="drug_name" label="单价"  align="center">
154
              <span > {{scope.row.over_count}}</span>
154
              <span > {{scope.row.over_count}}</span>
155
            </template>
155
            </template>
156
         </el-table-column>
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
         <el-table-column prop="remark" label="备注" align="center">
164
         <el-table-column prop="remark" label="备注" align="center">
158
            <template slot-scope="scope">
165
            <template slot-scope="scope">
159
              <span > {{scope.row.remark}}</span>
166
              <span > {{scope.row.remark}}</span>
264
         cancelCountList:[],
271
         cancelCountList:[],
265
         good:{},
272
         good:{},
266
         houseList:[],
273
         houseList:[],
267
-        patientList:[]
274
+        patientList:[],
275
+        hisPrescription:[]
276
+
268
       }
277
       }
269
     },
278
     },
270
     methods:{
279
     methods:{
474
            this.houseList = response.data.data.houseList
483
            this.houseList = response.data.data.houseList
475
            this.patientList = response.data.data.patients
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
 
12
 
13
 router.beforeEach((to, from, next) => {
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
   NProgress.start()
29
   NProgress.start()
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))