28169 vor 8 Monaten
Ursprung
Commit
0f34825d84

+ 45 - 1
src/api/drug/drug.js Datei anzeigen

731
 export function ModifySelfDrugWarehouse(data,patient_id,warehousing_time,warehousing_id){
731
 export function ModifySelfDrugWarehouse(data,patient_id,warehousing_time,warehousing_id){
732
  
732
  
733
   return request({
733
   return request({
734
-    url:"/api/drug/modifyselfdrugwarehouse?patient_id="+patient_id+"warehousing_time="+warehousing_time+"&warehousing_id="+warehousing_id,
734
+    url:"/api/drug/modifyselfdrugwarehouse?patient_id="+patient_id+"&warehousing_time="+warehousing_time+"&warehousing_id="+warehousing_id,
735
     method:"post",
735
     method:"post",
736
     data:data,
736
     data:data,
737
   })
737
   })
827
     method:"get",
827
     method:"get",
828
     params:params
828
     params:params
829
   })
829
   })
830
+}
831
+
832
+export function checkSelfOutDrugQuery(params){
833
+  
834
+  return request({
835
+    url:"/api/drug/checkselfdrugoutquery",
836
+    method:"Get",
837
+    params:params
838
+  })
839
+}
840
+
841
+export function returnCheckSelfOutDrugQuery(params){
842
+  
843
+   return request({
844
+    url:"/api/drug/returncheckselfoutdrugquery",
845
+    method:"get",
846
+    params:params,
847
+   })
848
+}
849
+
850
+export function returnSelfCheckWarehouse(params){
851
+ 
852
+  return request({
853
+    url:"/api/drug/returnselfcheckwarehouse",
854
+    method:"get",
855
+    params:params,
856
+  })
857
+}
858
+
859
+export function getSelfDrugFlow(params){
860
+  return request({
861
+    url:"/api/drug/getselfdrugflow",
862
+    method:"Get",
863
+    params:params,
864
+  })
865
+}
866
+
867
+export function getSelfDrugBatchNumberList(params){
868
+ 
869
+  return request({
870
+    url:"/api/drug/getselfdrugbatchnumberlist",
871
+    method:"Get",
872
+    params:params
873
+  })
830
 }
874
 }

+ 18 - 0
src/router/modules/selfPreparedMedicine.js Datei anzeigen

74
       hidden: true,
74
       hidden: true,
75
       is_menu: false,
75
       is_menu: false,
76
     },
76
     },
77
+
78
+    {
79
+      path: '/stock/selfwarehouse/selfdrugflow',
80
+      component: () => import('@/xt_pages/stock/selfPreparedMedicine/selfDrugFlow'),
81
+      name: 'selfdrugflow',
82
+      meta: { title: '自备药流水', noCache: true },
83
+      hidden: true,
84
+      is_menu: false,
85
+    },
86
+
87
+    {
88
+      path: '/stock/selfwarehouse/selfdrugbatchnumber',
89
+      component: () => import('@/xt_pages/stock/selfPreparedMedicine/selfDrugBatchNumber'),
90
+      name: 'selfdrugflow',
91
+      meta: { title: '自备药批次', noCache: true },
92
+      hidden: true,
93
+      is_menu: false,
94
+    },
77
     
95
     
78
     {
96
     {
79
       path: '/stock/selfPreparedMedicineIndex',
97
       path: '/stock/selfPreparedMedicineIndex',

+ 12 - 9
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Datei anzeigen

400
                         血管通路:
400
                         血管通路:
401
                         <div
401
                         <div
402
                           class="under_line"
402
                           class="under_line"
403
-                          style="width: 200px; text-align: center"
403
+                          style="width: 280px; text-align: center"
404
                         >
404
                         >
405
                           {{
405
                           {{
406
                             record.assessment_before_dislysis &&
406
                             record.assessment_before_dislysis &&
408
                               .blood_access_part_id
408
                               .blood_access_part_id
409
                               ? record.assessment_before_dislysis
409
                               ? record.assessment_before_dislysis
410
                                   .blood_access_part_id
410
                                   .blood_access_part_id
411
-                              : 0
411
+                              :  ""
412
                           }}
412
                           }}
413
                           {{
413
                           {{
414
-                            record.assessment_before_dislysis &&
415
-                            record.assessment_before_dislysis
416
-                              .blood_access_part_opera_name
417
-                              ? record.assessment_before_dislysis
418
-                                  .blood_access_part_opera_name
419
-                              : ""
414
+                            bloodAccessParOperaName(record.assessment_before_dislysis.blood_access_part_opera_id)
420
                           }}
415
                           }}
421
                         </div>
416
                         </div>
422
                       </div>
417
                       </div>
3014
                         实际超滤量:
3009
                         实际超滤量:
3015
                         <div
3010
                         <div
3016
                           class="under_line"
3011
                           class="under_line"
3017
-                          style="width: 100px; text-align: center"
3012
+                          style="width: 80px; text-align: center"
3018
                         >
3013
                         >
3019
                           {{
3014
                           {{
3020
                             record.assessment_after_dislysis &&
3015
                             record.assessment_after_dislysis &&
3798
     };
3793
     };
3799
   },
3794
   },
3800
   created() {
3795
   created() {
3796
+   
3801
     var bloodAccessParOpera = getDataConfig(
3797
     var bloodAccessParOpera = getDataConfig(
3802
       "hemodialysis",
3798
       "hemodialysis",
3803
       "vascular_access_desc"
3799
       "vascular_access_desc"
3804
     );
3800
     );
3801
+    this.bloodAccessParOpera = bloodAccessParOpera
3805
     this.way_arr = getDataConfig("hemodialysis", "way");
3802
     this.way_arr = getDataConfig("hemodialysis", "way");
3806
     this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
3803
     this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
3807
     this.appetite_arr = getDataConfig("hemodialysis", "appetite");
3804
     this.appetite_arr = getDataConfig("hemodialysis", "appetite");
4427
       }
4424
       }
4428
       return displace_liqui_part_name;
4425
       return displace_liqui_part_name;
4429
     },
4426
     },
4427
+    bloodAccessParOperaName(id) {
4428
+      if (id in this.bloodAccessParOpera) {
4429
+        return this.bloodAccessParOpera[id].name;
4430
+      }
4431
+      return "";
4432
+    },
4430
   },
4433
   },
4431
 };
4434
 };
4432
 </script>
4435
 </script>

+ 14 - 7
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Datei anzeigen

13
            
13
            
14
             <span style="position: absolute;left: 20%;top: 3%">
14
             <span style="position: absolute;left: 20%;top: 3%">
15
               透前称重:{{predialysis&&predialysis.weight_before?predialysis.weight_before:"" }} kg
15
               透前称重:{{predialysis&&predialysis.weight_before?predialysis.weight_before:"" }} kg
16
-            
17
             </span>
16
             </span>
17
+
18
+          
18
            
19
            
19
             <span style="position: absolute;left: 30%;top: 3%">
20
             <span style="position: absolute;left: 30%;top: 3%">
20
               干体重:{{predialysis&&predialysis.dry_weight?predialysis.dry_weight:""}}kg
21
               干体重:{{predialysis&&predialysis.dry_weight?predialysis.dry_weight:""}}kg
23
               衣物重:{{predialysis&&predialysis.additional_weight?predialysis.additional_weight:""}}kg
24
               衣物重:{{predialysis&&predialysis.additional_weight?predialysis.additional_weight:""}}kg
24
             </span> -->
25
             </span> -->
25
             <span style="position: absolute;left:38%;top: 3%">
26
             <span style="position: absolute;left:38%;top: 3%">
26
-              上次透后体重:{{last_record&&last_record.weight_after?last_record.weight_after:""}}kg
27
+              上次透后体重:
28
+               <span v-if="this.$store.getters.xt_user.template_info.org_id!=0 && this.$store.getters.xt_user.template_info.org_id!=10702">{{last_record&&last_record.weight_after?last_record.weight_after:""}}kg</span> 
29
+               <span v-if="this.$store.getters.xt_user.template_info.org_id==0 || this.$store.getters.xt_user.template_info.org_id==10702">{{last_record&&(last_record.weight_after-last_record.additional_weight).toFixed(2)?(last_record.weight_after-last_record.additional_weight).toFixed(2):""}}kg</span> 
27
             </span>
30
             </span>
28
 
31
 
29
-            <span style="position: absolute;left:50%;top: 3%">
32
+            <span style="position: absolute;left:51%;top: 3%">
30
               4小时超滤量上限(5%):
33
               4小时超滤量上限(5%):
31
               <span v-if="predialysis!=null && ((predialysis.dry_weight)*0.05) >0 "></span> {{(predialysis.dry_weight*0.05).toFixed(2)}}
34
               <span v-if="predialysis!=null && ((predialysis.dry_weight)*0.05) >0 "></span> {{(predialysis.dry_weight*0.05).toFixed(2)}}
32
               kg
35
               kg
33
             </span>
36
             </span>
34
-            <span style="position: absolute;left: 70%;top: 3%">
37
+            <span style="position: absolute;left: 70%;top: 3%" v-if="this.$store.getters.xt_user.template_info.org_id!=0&&this.$store.getters.xt_user.template_info.org_id!=10702">
35
               透前血压:  {{predialysis&&predialysis.systolic_blood_pressure?predialysis.systolic_blood_pressure:""  }} / {{ predialysis&&predialysis.diastolic_blood_pressure?predialysis.diastolic_blood_pressure:"" }} mmHg
38
               透前血压:  {{predialysis&&predialysis.systolic_blood_pressure?predialysis.systolic_blood_pressure:""  }} / {{ predialysis&&predialysis.diastolic_blood_pressure?predialysis.diastolic_blood_pressure:"" }} mmHg
36
             </span>
39
             </span>
37
 
40
 
38
-            <!-- <span style="position: absolute;left: 20%;top: 3%" v-if="this.$store.getters.xt_user.template_info.org_id == 0 || this.$store.getters.xt_user.template_info.org_id ==10702">
39
-              透前体重:{{predialysis&&(predialysis.weight_before - predialysis.additional_weight).toFixed(2)?(predialysis.weight_before-predialysis.additional_weight).toFixed(2):"" }} kg
41
+            <span style="position: absolute;left: 70%;top: 3%" v-if="this.$store.getters.xt_user.template_info.org_id==0||this.$store.getters.xt_user.template_info.org_id==10702">
42
+             衣物重:{{predialysis&&predialysis.additional_weight?predialysis.additional_weight:"" }} kg
43
+            </span>
44
+
45
+            <span style="position: absolute;left: 80%;top: 3%" v-if="this.$store.getters.xt_user.template_info.org_id == 0 || this.$store.getters.xt_user.template_info.org_id ==10702">
46
+              体重增长:{{predialysis&&((predialysis.weight_before - predialysis.additional_weight)-(last_record.weight_after-last_record.additional_weight)).toFixed(2)?((predialysis.weight_before - predialysis.additional_weight)-(last_record.weight_after-last_record.additional_weight)).toFixed(2):"" }} kg
40
             
47
             
41
-            </span> -->
48
+            </span>
42
             <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
49
             <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
43
             <el-form
50
             <el-form
44
                     ref="dialysisPrescription"
51
                     ref="dialysisPrescription"

+ 4 - 5
src/xt_pages/outpatientTool/components/detailStatistics.vue Datei anzeigen

73
           {{ scope.row.index }}
73
           {{ scope.row.index }}
74
         </template>
74
         </template>
75
       </el-table-column>
75
       </el-table-column>
76
-<!--      <el-table-column align="center" label="处方日期">-->
77
-<!--        <template slot-scope="scope">{{-->
78
-<!--          getTime(scope.row.record_date)-->
79
-<!--        }}</template>-->
80
-<!--      </el-table-column>-->
76
+     <el-table-column align="center" label="处方日期">
77
+        <template slot-scope="scope">
78
+          {{getTime(scope.row.record_date)}}</template>
79
+      </el-table-column>
81
       <el-table-column align="center" label="费用编码">
80
       <el-table-column align="center" label="费用编码">
82
         <template slot-scope="scope">
81
         <template slot-scope="scope">
83
           {{ scope.row.number }}
82
           {{ scope.row.number }}

+ 2 - 2
src/xt_pages/outpatientTool/components/gatherStatistics.vue Datei anzeigen

73
           {{ scope.$index + 1 }}
73
           {{ scope.$index + 1 }}
74
         </template>
74
         </template>
75
       </el-table-column>
75
       </el-table-column>
76
-      <el-table-column align="center" label="处方日期">
76
+      <!-- <el-table-column align="center" label="处方日期">
77
         <template slot-scope="scope">
77
         <template slot-scope="scope">
78
           <span v-if="scope.row.record_date > 0"
78
           <span v-if="scope.row.record_date > 0"
79
             >{{ getTimes(scope.row.record_date) }}
79
             >{{ getTimes(scope.row.record_date) }}
80
           </span>
80
           </span>
81
         </template>
81
         </template>
82
-      </el-table-column>
82
+      </el-table-column> -->
83
       <el-table-column align="center" label="费用分类">
83
       <el-table-column align="center" label="费用分类">
84
         <template slot-scope="scope">
84
         <template slot-scope="scope">
85
           <span v-if="scope.row.type == 1">
85
           <span v-if="scope.row.type == 1">

+ 1 - 23
src/xt_pages/stock/selfPreparedMedicine/addWarehouseInfo.vue Datei anzeigen

969
            }
969
            }
970
         })
970
         })
971
       },
971
       },
972
-      toReturnCheck(){
973
-         const loading = this.$loading({
974
-          lock: true,
975
-          text: "Loading",
976
-          spinner: "el-icon-loading",
977
-          background: "rgba(0, 0, 0, 0.7)",
978
-        });
979
-          var params = {
980
-            warehousing_id:this.warehousing_id,
981
-          }
982
-        toReturnCheckWarehousing(params).then(response=>{
983
-           if(response.data.state == 1){
984
-            var list = response.data.data.list
985
-             this.$message.success("反审核成功!")
986
-             this.showCheck = true
987
-             this.showReturnCheck = false
988
-             loading.close()
989
-           }else{
990
-            this.$message.error("反审核失败!")
991
-            loading.close()
992
-           }
993
-        })
994
-      },
972
+    
995
       changeUnit(val,index){
973
       changeUnit(val,index){
996
     
974
     
997
       },
975
       },

+ 30 - 2
src/xt_pages/stock/selfPreparedMedicine/addWarehouseOut.vue Datei anzeigen

351
   import BreadCrumb from "../../components/bread-crumb";
351
   import BreadCrumb from "../../components/bread-crumb";
352
   import { getDataConfig, getDictionaryDataConfig } from "@/utils/data";
352
   import { getDataConfig, getDictionaryDataConfig } from "@/utils/data";
353
   import { getAllDrugList, postSearchDrugList } from "@/api/data";
353
   import { getAllDrugList, postSearchDrugList } from "@/api/data";
354
-    import { getallPatientList,postSearchSelfDrugList,postSelfDrugWarehouseOut,getSelfDrugBatchNumber} from "@/api/drug/drug"
354
+  import { getallPatientList,postSearchSelfDrugList,postSelfDrugWarehouseOut,getSelfDrugBatchNumber,checkSelfOutDrugQuery} from "@/api/drug/drug"
355
   export default {
355
   export default {
356
     components: { BreadCrumb },
356
     components: { BreadCrumb },
357
     name: "stockIn",
357
     name: "stockIn",
1162
         }
1162
         }
1163
         return total;
1163
         return total;
1164
       },
1164
       },
1165
-    
1165
+      toCheck(){
1166
+         var params = {
1167
+            warehouse_out_id:this.warehouse_out_id,
1168
+            patient_id:this.patient_id,
1169
+         }
1170
+        checkSelfOutDrugQuery(params).then(response=>{
1171
+          if(response.data.state ==1){
1172
+            var warehousingOutInfoList = response.data.data.warehousingOutInfoList
1173
+              var msg =response.data.data.msg
1174
+              if(msg == 1){
1175
+                this.$message.success("审核成功!")
1176
+                this.showCheck = false
1177
+                this.showReturnCheck = true
1178
+                this.$router.back(-1)
1179
+              }
1180
+              if(msg == 2){
1181
+                var drug_name = response.data.data.drug_name
1182
+                var dose = response.data.data.dose
1183
+                var dose_unit = response.data.data.dose_unit
1184
+                var min_number = response.data.data.min_number
1185
+                var min_unit = response.data.data.min_unit
1186
+                var max_unit = response.data.data.max_unit
1187
+                var str = drug_name +" " +dose +dose_unit +"*" + min_number + min_unit +"/" + max_unit;
1188
+                this.$message.error(str+"库存不足,审核失败!")
1189
+              }
1190
+              loading.close()
1191
+          }
1192
+        })
1193
+      }
1166
     
1194
     
1167
     },
1195
     },
1168
     created() {
1196
     created() {

+ 39 - 19
src/xt_pages/stock/selfPreparedMedicine/editWarehouseInfo.vue Datei anzeigen

23
             class="filter-item"
23
             class="filter-item"
24
             >审核</el-button
24
             >审核</el-button
25
           >
25
           >
26
+
27
+          <el-button
28
+            size="small"
29
+            type="primary"
30
+           v-if="is_check == 1 && parseInt(this.$route.query.is_sys) == 0"
31
+            @click="toReturnCheck()"
32
+            class="filter-item"
33
+            >反审核</el-button>
26
         </div>
34
         </div>
27
       </div>
35
       </div>
28
       <div class="app-container" v-loading="loading">
36
       <div class="app-container" v-loading="loading">
340
   import { uParseTime } from "@/utils/tools";
348
   import { uParseTime } from "@/utils/tools";
341
   import {
349
   import {
342
     GetAllDrugInfoByID,
350
     GetAllDrugInfoByID,
343
-    toCheckWarehousingInfo,
344
-    toReturnCheckWarehousing,
345
   } from "@/api/drug/drug_stock";
351
   } from "@/api/drug/drug_stock";
346
   import BreadCrumb from "../../components/bread-crumb";
352
   import BreadCrumb from "../../components/bread-crumb";
347
   import { getDataConfig, getDictionaryDataConfig } from "@/utils/data";
353
   import { getDataConfig, getDictionaryDataConfig } from "@/utils/data";
348
   import { getAllDrugList } from "@/api/data";
354
   import { getAllDrugList } from "@/api/data";
349
-  import { getallPatientList,postSearchSelfDrugList,ModifySelfDrugWarehouse,getSelfDrugWarehouseInfoById,deleteSelfWarehouseInfo} from "@/api/drug/drug"
355
+  import { getallPatientList,postSearchSelfDrugList,ModifySelfDrugWarehouse,getSelfDrugWarehouseInfoById,deleteSelfWarehouseInfo,toCheckSelfWarehousingInfo,returnSelfCheckWarehouse} from "@/api/drug/drug"
350
   export default {
356
   export default {
351
     components: { BreadCrumb },
357
     components: { BreadCrumb },
352
     name: "stockIn",
358
     name: "stockIn",
468
         showReturnCheck:false,
474
         showReturnCheck:false,
469
         patientList:[],
475
         patientList:[],
470
         id:0,
476
         id:0,
477
+        is_check:0,
478
+        is_sys:0,
471
       };
479
       };
472
     },
480
     },
473
     methods: {
481
     methods: {
739
               stockIn: this.recordInfo.recordData,
747
               stockIn: this.recordInfo.recordData,
740
             };
748
             };
741
             console.log("params=---------------",params)
749
             console.log("params=---------------",params)
750
+            console.log("patinet_id-----------",this.patient_id)
751
+            console.log("warehousing_time-----------",this.warehousing_time)
752
+            console.log("warehousing_id--------------",this.warehousing_id)
742
             ModifySelfDrugWarehouse(
753
             ModifySelfDrugWarehouse(
743
               params,
754
               params,
744
               this.patient_id,
755
               this.patient_id,
752
               } else {
763
               } else {
753
                 this.loading = false;
764
                 this.loading = false;
754
                 this.$message.success("保存成功");
765
                 this.$message.success("保存成功");
766
+                this.showCheck = true
767
+                this.showReturnCheck = false
755
                 this.listLoading = false;
768
                 this.listLoading = false;
756
                 var list = response.data.data.list
769
                 var list = response.data.data.list
757
                 var manufacturerList = response.data.data.manufacturerList
770
                 var manufacturerList = response.data.data.manufacturerList
795
                 this.recordInfo.recordData = []
808
                 this.recordInfo.recordData = []
796
                 console.log("list========================",list)
809
                 console.log("list========================",list)
797
                 this.recordInfo.recordData = list
810
                 this.recordInfo.recordData = list
798
-                this.showCheck = true
799
-                this.showReturnCheck = false
811
+               
800
               }
812
               }
801
             });
813
             });
802
           } else {
814
           } else {
929
         });
941
         });
930
          var params = {
942
          var params = {
931
            warehousing_id:this.warehousing_id,
943
            warehousing_id:this.warehousing_id,
944
+           patient_id:this.patient_id
932
          }
945
          }
933
-        toCheckWarehousingInfo(params).then(response=>{
946
+         console.log("praams------",params)
947
+        toCheckSelfWarehousingInfo(params).then(response=>{
934
            if(response.data.state == 1){
948
            if(response.data.state == 1){
935
              var list = response.data.data.list
949
              var list = response.data.data.list
936
              this.$message.success("审核成功!")
950
              this.$message.success("审核成功!")
953
         });
967
         });
954
           var params = {
968
           var params = {
955
             warehousing_id:this.warehousing_id,
969
             warehousing_id:this.warehousing_id,
970
+            patient_id:this.patient_id,
956
           }
971
           }
957
-        toReturnCheckWarehousing(params).then(response=>{
972
+        returnSelfCheckWarehouse(params).then(response=>{
958
            if(response.data.state == 1){
973
            if(response.data.state == 1){
959
             var list = response.data.data.list
974
             var list = response.data.data.list
960
              this.$message.success("反审核成功!")
975
              this.$message.success("反审核成功!")
967
            }
982
            }
968
         })
983
         })
969
       },
984
       },
970
-      changeUnit(val,index){
971
-    
972
-      },
973
-       
974
-
975
       //新
985
       //新
976
       getSelfDrugWarehouseInfoById(id){
986
       getSelfDrugWarehouseInfoById(id){
977
         getSelfDrugWarehouseInfoById(id).then(response=>{
987
         getSelfDrugWarehouseInfoById(id).then(response=>{
978
            if(response.data.state == 1){
988
            if(response.data.state == 1){
979
              var info = response.data.data.info
989
              var info = response.data.data.info
990
+             if(info.is_check == 2){
991
+               this.showCheck = true
992
+               this.showReturnCheck = false
993
+             }
994
+             if(info.is_check == 1){
995
+                this.showCheck = false
996
+                this.showReturnCheck = true
997
+             }
980
              this.patient_id = info.patient_id
998
              this.patient_id = info.patient_id
981
-             this.warehousing_time  =this.getTime(info.record_date)
999
+             this.warehousing_time  =this.getTimeOne(info.record_date)
982
              this.manufacturerList = response.data.data.manufacturerList
1000
              this.manufacturerList = response.data.data.manufacturerList
983
              this.dealerList = response.data.data.dealerList
1001
              this.dealerList = response.data.data.dealerList
984
              this.drugTypeList = response.data.data.drugTypeList
1002
              this.drugTypeList = response.data.data.drugTypeList
990
              tempObj["drug_name"] = info.drug.drug_name;
1008
              tempObj["drug_name"] = info.drug.drug_name;
991
              tempObj["max_unit"] = info.max_unit;
1009
              tempObj["max_unit"] = info.max_unit;
992
              tempObj["min_unit"] = info.min_unit,
1010
              tempObj["min_unit"] = info.min_unit,
993
-             tempObj["product_date"] = this.getTime(info.product_date);
994
-             tempObj["expiry_date"] = this.getTime(info.expiry_date);
995
-             tempObj["warehousing_count"] = info.warehousing_count;
1011
+             tempObj["product_date"] = this.getTimeOne(info.product_date);
1012
+             tempObj["expiry_date"] = this.getTimeOne(info.expiry_date);
1013
+             tempObj["warehousing_count"] = info.warehousing_count.toString();
996
              tempObj["remark"] = info.remark;
1014
              tempObj["remark"] = info.remark;
997
              tempObj["dealer"] =this.getDealer(info.dealer) 
1015
              tempObj["dealer"] =this.getDealer(info.dealer) 
998
              tempObj["manufacturer"] = this.getManufacturer(info.manufacturer);
1016
              tempObj["manufacturer"] = this.getManufacturer(info.manufacturer);
1033
             }
1051
             }
1034
             return name
1052
             return name
1035
       },
1053
       },
1054
+      
1036
     },
1055
     },
1037
     created() {
1056
     created() {
1038
       var id =  this.$route.query.id
1057
       var id =  this.$route.query.id
1039
       var is_sys = this.$route.query.is_sys
1058
       var is_sys = this.$route.query.is_sys
1059
+      this.is_sys = is_sys
1060
+      console.log("is_check-=------------------------------------",is_sys)
1040
       var is_check = this.$route.query.is_check
1061
       var is_check = this.$route.query.is_check
1041
-      console.log("id",id)
1042
-      console.log("is_sys",is_sys)
1043
-      console.log("is_check",is_check)
1062
+      console.log("is_check-=------------------------------------",is_check)
1063
+      this.is_check= is_check
1044
       this.drugTypeList = getDictionaryDataConfig("system", "drug_type");
1064
       this.drugTypeList = getDictionaryDataConfig("system", "drug_type");
1045
       this.getallPatientList() 
1065
       this.getallPatientList() 
1046
       this.getSelfDrugWarehouseInfoById(id)
1066
       this.getSelfDrugWarehouseInfoById(id)

+ 60 - 2
src/xt_pages/stock/selfPreparedMedicine/editWarehouseOut.vue Datei anzeigen

23
             class="filter-item"
23
             class="filter-item"
24
             >审核</el-button
24
             >审核</el-button
25
           >
25
           >
26
+
27
+          <el-button
28
+          size="small"
29
+          type="primary"
30
+          v-if="is_check == 1 && parseInt(this.$route.query.is_sys) == 0"
31
+          @click="toReturnCheck"
32
+          class="filter-item"
33
+          >反 审 核</el-button
34
+        >
26
        
35
        
27
         </div>
36
         </div>
28
       </div>
37
       </div>
346
   import {
355
   import {
347
     GetAllConfig,
356
     GetAllConfig,
348
     GetAllDrugInfoByID,
357
     GetAllDrugInfoByID,
349
-    postDrugWarehouse,
350
   } from "@/api/drug/drug_stock";
358
   } from "@/api/drug/drug_stock";
351
   import BreadCrumb from "../../components/bread-crumb";
359
   import BreadCrumb from "../../components/bread-crumb";
352
   import { getDataConfig, getDictionaryDataConfig } from "@/utils/data";
360
   import { getDataConfig, getDictionaryDataConfig } from "@/utils/data";
353
   import { getAllDrugList, postSearchDrugList } from "@/api/data";
361
   import { getAllDrugList, postSearchDrugList } from "@/api/data";
354
-    import { getallPatientList,postSearchSelfDrugList,modifySelfDrugWarehouseOut,getSelfDrugBatchNumber,getSelfDrugWarehouseOutById} from "@/api/drug/drug"
362
+  import { getallPatientList,postSearchSelfDrugList,modifySelfDrugWarehouseOut,getSelfDrugBatchNumber,getSelfDrugWarehouseOutById,checkSelfOutDrugQuery,returnCheckSelfOutDrugQuery} from "@/api/drug/drug"
355
   export default {
363
   export default {
356
     components: { BreadCrumb },
364
     components: { BreadCrumb },
357
     name: "stockIn",
365
     name: "stockIn",
1237
             }
1245
             }
1238
             return name
1246
             return name
1239
       },
1247
       },
1248
+
1249
+      toCheck(){
1250
+         var params = {
1251
+            warehouse_out_id:this.warehouse_out_id,
1252
+            patient_id:this.patient_id,
1253
+         }
1254
+        checkSelfOutDrugQuery(params).then(response=>{
1255
+          if(response.data.state ==1){
1256
+            var warehousingOutInfoList = response.data.data.warehousingOutInfoList
1257
+              var msg =response.data.data.msg
1258
+              if(msg == 1){
1259
+                this.$message.success("审核成功!")
1260
+                this.showCheck = false
1261
+                this.showReturnCheck = true
1262
+                this.$router.back(-1)
1263
+              }
1264
+              if(msg == 2){
1265
+                var drug_name = response.data.data.drug_name
1266
+                var dose = response.data.data.dose
1267
+                var dose_unit = response.data.data.dose_unit
1268
+                var min_number = response.data.data.min_number
1269
+                var min_unit = response.data.data.min_unit
1270
+                var max_unit = response.data.data.max_unit
1271
+                var str = drug_name +" " +dose +dose_unit +"*" + min_number + min_unit +"/" + max_unit;
1272
+                this.$message.error(str+"库存不足,审核失败!")
1273
+              }
1274
+              loading.close()
1275
+          }
1276
+        })
1277
+      },
1278
+      toReturnCheck(){
1279
+         var params = {
1280
+           warehouse_out_id:this.warehouse_out_id,
1281
+           patient_id:this.patient_id,
1282
+         }
1283
+        returnCheckSelfOutDrugQuery(params).then(response=>{
1284
+           if(response.data.state ==1){
1285
+            var out = response.data.data.out
1286
+            this.$message.success("反审核成功!")
1287
+            this.showCheck = true
1288
+            this.showReturnCheck = false
1289
+            loading.close()
1290
+            this.$router.back(-1)
1291
+           }else{
1292
+            this.$message.error(response.data.msg)
1293
+            loading.close()
1294
+            this.$router.back(-1);
1295
+           }
1296
+        })
1297
+      }
1240
     
1298
     
1241
     
1299
     
1242
     },
1300
     },

+ 23 - 57
src/xt_pages/stock/selfPreparedMedicine/warehouseInfo.vue Datei anzeigen

37
           style="width: 200px"
37
           style="width: 200px"
38
           v-model.trim="searchKey"
38
           v-model.trim="searchKey"
39
           class="filter-item"
39
           class="filter-item"
40
-          placeholder="单据编码/制单人/药品名称"
40
+          placeholder="药品名称"
41
         />
41
         />
42
         <el-button
42
         <el-button
43
           size="small"
43
           size="small"
191
 
191
 
192
         <el-table-column label="生产厂家" align="center">
192
         <el-table-column label="生产厂家" align="center">
193
           <template slot-scope="scope">
193
           <template slot-scope="scope">
194
+           
194
             {{ getManufacturer(scope.row.manufacturer) }}
195
             {{ getManufacturer(scope.row.manufacturer) }}
195
           </template>
196
           </template>
196
         </el-table-column>
197
         </el-table-column>
207
           </template>
208
           </template>
208
         </el-table-column>
209
         </el-table-column>
209
 
210
 
211
+        <el-table-column label="审核状态" align="center">
212
+          <template slot-scope="scope">
213
+             <span v-if="scope.row.is_check ==1">已审核</span>
214
+             <span v-if="scope.row.is_check ==2">未审核</span>
215
+          </template>
216
+        </el-table-column>
217
+
210
         <el-table-column label="备注" align="center">
218
         <el-table-column label="备注" align="center">
211
           <template slot-scope="scope">
219
           <template slot-scope="scope">
212
              {{ scope.row.remark }}
220
              {{ scope.row.remark }}
274
   exportDrugList,
282
   exportDrugList,
275
 
283
 
276
 } from "@/api/drug/drug_stock";
284
 } from "@/api/drug/drug_stock";
277
-import { getAllDrugList } from "@/api/data";
278
 import { getDictionaryDataConfig } from "@/utils/data";
285
 import { getDictionaryDataConfig } from "@/utils/data";
279
 import BreadCrumb from "../../components/bread-crumb";
286
 import BreadCrumb from "../../components/bread-crumb";
280
   import { getallPatientList,getAllSelfDrugWarehouseInfoList,deleteSelfWarehouseInfo} from "@/api/drug/drug"
287
   import { getallPatientList,getAllSelfDrugWarehouseInfoList,deleteSelfWarehouseInfo} from "@/api/drug/drug"
368
       patient_id:0,
375
       patient_id:0,
369
       patientList:[],
376
       patientList:[],
370
       tableList:[],
377
       tableList:[],
371
-      manufacturerList:[],
372
       dealerList:[],
378
       dealerList:[],
373
       drugTypeList:[],
379
       drugTypeList:[],
374
     };
380
     };
384
         getAllSelfDrugWarehouseInfoList(params).then(response=>{
390
         getAllSelfDrugWarehouseInfoList(params).then(response=>{
385
           if(response.data.state ==1){
391
           if(response.data.state ==1){
386
             var infoList  =  response.data.data.infoList
392
             var infoList  =  response.data.data.infoList
387
-            console.log("infolist22222222222222",infoList)
388
             this.tableList = infoList
393
             this.tableList = infoList
389
             this.manufacturerList = response.data.data.manufacturerList
394
             this.manufacturerList = response.data.data.manufacturerList
395
+            console.log("infolist22222222222222",this.manufacturerList)
390
             this.dealerList = response.data.data.dealerList
396
             this.dealerList = response.data.data.dealerList
391
             this.drugTypeList = response.data.data.drugTypeList
397
             this.drugTypeList = response.data.data.drugTypeList
392
 
398
 
517
     },
523
     },
518
     handleSearch(id) {
524
     handleSearch(id) {
519
       this.WarehouseInfo.warehouseInfoDate = [];
525
       this.WarehouseInfo.warehouseInfoDate = [];
520
-      this.GetOrderDetail(id);
521
       this.dialogVisible = true;
526
       this.dialogVisible = true;
522
     },
527
     },
523
-    GetOrderDetail(order_id) {
524
-      const params = {
525
-        id: order_id,
526
-      };
527
-
528
-      this.WarehouseInfo.warehouseInfoDate = [];
529
-      getDrugWarehouseInfoList(params).then((response) => {
530
-        if (response.data.state == 0) {
531
-          this.$message.error(response.data.msg);
532
-          return false;
533
-        } else {
534
-          var obj = {total_count:0,is_total:1}
535
-          for (let i = 0; i < response.data.data.info.length; i++) {
536
-            response.data.data.info[i].is_total = 0
537
-            this.showOne = true;
538
-            this.WarehouseInfo.warehouseInfoDate.push(
539
-              response.data.data.info[i]
540
-            );
541
-            obj.total_count += (response.data.data.info[i].warehousing_count *response.data.data.info[i].price)
542
-          }
543
-          this.WarehouseInfo.warehouseInfoDate.push(obj)
544
-        
545
-          this.WarehouseInfo.warehouse = response.data.data.warehousing;
546
-          this.getAllDrugList();
547
-        }
548
-      });
549
-    },
550
     handleDelete: function (index, row) {
528
     handleDelete: function (index, row) {
551
-
552
-        this.$confirm('确定删除' + row.name + row.sub_name + '方案吗?', '提示', {
529
+        if(row.is_check ==1){
530
+          this.$message.error("该药品已经审核,不能删除!")
531
+          return false
532
+        }
533
+        if(row.is_sys ==1){
534
+          this.$message.error("该药瓶自动入库,不能删除!")
535
+          return false
536
+        }
537
+        this.$confirm('确定删除吗?', '提示', {
553
           confirmButtonText: '确定',
538
           confirmButtonText: '确定',
554
           cancelButtonText: '取消',
539
           cancelButtonText: '取消',
555
           type: 'warning'
540
           type: 'warning'
650
         .catch(() => {});
635
         .catch(() => {});
651
     },
636
     },
652
     handleCurrentChangeOne(val) {
637
     handleCurrentChangeOne(val) {
653
-      this.GetOrderDetail(val.id);
638
+     
654
     },
639
     },
655
     getTime(val) {
640
     getTime(val) {
656
       if (val < 0) {
641
       if (val < 0) {
671
       }
656
       }
672
       return name;
657
       return name;
673
     },
658
     },
674
-    getAllDrugList() {
675
-      getAllDrugList().then((response) => {
676
-        if (response.data.state == 1) {
677
-          var manufacturerList = response.data.data.manufacturerList;
678
-          this.manufacturerList = manufacturerList;
679
-          this.dealerList = response.data.data.dealerList;
680
-        }
681
-      });
682
-    },
659
+    
683
     getManufacturer(id) {
660
     getManufacturer(id) {
684
       var name = "";
661
       var name = "";
662
+      console.log("manufacturerList-=------",this.manufacturerList)
685
       for (let i = 0; i < this.manufacturerList.length; i++) {
663
       for (let i = 0; i < this.manufacturerList.length; i++) {
664
+
686
         if (id == this.manufacturerList[i].id) {
665
         if (id == this.manufacturerList[i].id) {
687
           name = this.manufacturerList[i].manufacturer_name;
666
           name = this.manufacturerList[i].manufacturer_name;
688
         }
667
         }
734
       });
713
       });
735
     },
714
     },
736
 
715
 
737
-    lili(){
738
-      console.log("exportList",this.exportList)
739
-    },
740
     toExport() {
716
     toExport() {
741
       if (this.order_id == "") {
717
       if (this.order_id == "") {
742
         this.$message.error("请勾选入库单");
718
         this.$message.error("请勾选入库单");
853
         getallPatientList().then(response=>{
829
         getallPatientList().then(response=>{
854
           if(response.data.state ==1){
830
           if(response.data.state ==1){
855
             var patient = response.data.data.patient
831
             var patient = response.data.data.patient
856
-            console.log("patient====",patient)
857
             this.patientList = []
832
             this.patientList = []
858
             var obj = {id:0,name:"全部"}
833
             var obj = {id:0,name:"全部"}
859
             this.patientList.push(obj)
834
             this.patientList.push(obj)
872
         }
847
         }
873
         return name
848
         return name
874
       },
849
       },
875
-      getManufacturer(id){
876
-         var manufacturer_name = ""
877
-         for(let i=0;i<this.manufacturerList.length;i++){
878
-           if(id == this.manufacturerList[i].id){
879
-            manufacturer_name = this.manufacturerList[i].manufacturer_name
880
-           }
881
-         }
882
-         return
883
-      },
884
       getDealerName(id){
850
       getDealerName(id){
885
         var dealer_name = ""
851
         var dealer_name = ""
886
         for(let i=0;i<this.dealerList.length;i++){
852
         for(let i=0;i<this.dealerList.length;i++){

+ 13 - 13
src/xt_permission.js Datei anzeigen

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))