28169 пре 8 месеци
родитељ
комит
0b0c599564

+ 27 - 0
src/api/config.js Прегледај датотеку

@@ -225,3 +225,30 @@ export function changeGoodOutOpen(params) {
225 225
     params: params
226 226
   })
227 227
 }
228
+
229
+export function changeSelfPrescriptionOpen(params){
230
+  
231
+  return request({
232
+    url:"/api/changeselfprescriptionopen",
233
+    method:"get",
234
+    params:params,
235
+  })
236
+}
237
+
238
+export function changeSelfPrescriptionOutOpen(params){
239
+ 
240
+  return request({
241
+    url:"/api/changeselfprescriptionoutopen",
242
+    method:"get",
243
+    params:params,
244
+  })
245
+}
246
+
247
+export function getSelfPrintList(params){
248
+  
249
+  return request({
250
+    url:"/api/getselfprintlist",
251
+    method:"get",
252
+    params:params,
253
+  })
254
+}

+ 9 - 0
src/api/drug/drug.js Прегледај датотеку

@@ -764,4 +764,13 @@ export function postSelfDrugOutInfoWarehouse(){
764 764
     method:"Get",
765 765
     params:params,
766 766
   })
767
+}
768
+
769
+export function getSelfDrugBatchNumber(params){
770
+
771
+  return request({
772
+    url:"/api/drug/getselfdrugbatchnumber",
773
+    method:"get",
774
+    params:params
775
+  })
767 776
 }

+ 76 - 3
src/xt_pages/data/basicConfig.vue Прегледај датотеку

@@ -49,6 +49,14 @@
49 49
             <!-- <p style="margin-top:20px;">药品耗材在结算时出库:
50 50
                 <el-switch v-model="drug_settle_open" @change="changeSettleOpen"></el-switch>
51 51
             </p> -->
52
+
53
+            <p style="margin-top:20px;">药品在保存处方时同步到自备库:
54
+               <el-switch v-model="self_prescription_out_open" @change="changeSelfPrescriptionOpen"></el-switch>
55
+            </p>
56
+
57
+            <p style="margin-top:20px;">药品在执行时自备药出库:
58
+               <el-switch v-model="self_drug_out_open" @change="changeSelfPrescriptionOutOpen"></el-switch>
59
+            </p>
52 60
         </div>
53 61
 
54 62
 
@@ -104,7 +112,7 @@
104 112
 
105 113
 <script>
106 114
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
107
-import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen,changeFuncPrint,getDataPrintList,postXtHisProjectIsOpen,changeStockSetting,changeAdviceConfig,changePrescriptionConfig,changeDrugOpenConfig,changeSettleOpenConfig,changeGoodOutOpen} from '@/api/config'
115
+import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen,changeFuncPrint,getDataPrintList,postXtHisProjectIsOpen,changeStockSetting,changeAdviceConfig,changePrescriptionConfig,changeDrugOpenConfig,changeSettleOpenConfig,changeGoodOutOpen,changeSelfPrescriptionOpen,changeSelfPrescriptionOutOpen,getSelfPrintList} from '@/api/config'
108 116
 
109 117
 export default {
110 118
   name: "printTemplate",
@@ -128,6 +136,8 @@ export default {
128 136
       drug_out_open:false,
129 137
       drug_settle_open:false,
130 138
       good_out_open:false,
139
+      self_prescription_out_open:false,
140
+      self_drug_out_open:false
131 141
     };
132 142
   },
133 143
   methods: {
@@ -463,15 +473,78 @@ export default {
463 473
           this.$message.success("保存成功!")
464 474
         }
465 475
       })
466
-    }
467
-    
476
+    },
468 477
 
478
+    changeSelfPrescriptionOpen(){
479
+      var self_info_open = 0
480
+      if(this.self_prescription_out_open == true){
481
+          self_info_open = 1
482
+      }
483
+      if(this.self_prescription_out_open == false){
484
+         self_info_open =2
485
+      }
486
+      var params = {
487
+        is_open:self_info_open
488
+      }
489
+      changeSelfPrescriptionOpen(params).then(response=>{
490
+        if(response.data.state ==1){
491
+          var selfPrescriptionOpen = response.data.data.selfPrescriptionOpen
492
+          this.$message.success("保存成功!")
493
+        }
494
+      })
495
+    },
496
+    changeSelfPrescriptionOutOpen(){
497
+        var out_info_open = 0 
498
+        if(this.self_drug_out_open == true){
499
+          out_info_open = 1
500
+        }
501
+        if(this.self_drug_out_open == false){
502
+          out_info_open = 2
503
+        }
504
+        var params = {
505
+          is_open:out_info_open,
506
+        }
507
+      changeSelfPrescriptionOutOpen(params).then(response=>{
508
+         if(response.data.state ==1){
509
+          var selfPrescriptionOpen = response.data.data.selfPrescriptionOutOpen
510
+          this.$message.success("保存成功!")
511
+         }
512
+     })
513
+    },
514
+
515
+    getSelfPrintList(){
516
+      getSelfPrintList().then(response=>{
517
+        if(response.data.state ==1){
518
+         
519
+          var selfPrescriptionOpen =  response.data.data.selfPrescriptionOpen
520
+
521
+          if(selfPrescriptionOpen.is_open ==1){
522
+            this.self_prescription_out_open = true
523
+          }
524
+
525
+          if(selfPrescriptionOpen.is_open ==2){
526
+            this.self_prescription_out_open = false
527
+          }
528
+
529
+           var selfPrescriptionOutOpen = response.data.data.selfPrescriptionOutOpen
530
+
531
+           if(selfPrescriptionOutOpen.is_open ==1){
532
+            this.self_drug_out_open = true
533
+           }
534
+           if(selfPrescriptionOutOpen.is_open ==2){
535
+            this.self_drug_out_open = false
536
+           }
537
+        }
538
+      })
539
+    }
469 540
   },
470 541
   created() {
471 542
     this.getInitIsOpenConfig()
472 543
     // this.getMonitorConfig()
473 544
     // this.getOrderConfig()
474 545
     this.getDataPrintList()
546
+
547
+    this.getSelfPrintList()
475 548
   }
476 549
 };
477 550
 </script>

+ 22 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Прегледај датотеку

@@ -702,6 +702,28 @@
702 702
                           >
703 703
                             血浆胆红素吸附
704 704
                           </div>
705
+                          <div
706
+                            class="under_line"
707
+                            style="
708
+                              width: 100px;
709
+                              text-align: center;
710
+                              font-weight: 600;
711
+                            "
712
+                            v-if="record.prescription.mode_id == 24"
713
+                          >
714
+                            I-HDF
715
+                          </div>
716
+                          <div
717
+                            class="under_line"
718
+                            style="
719
+                              width: 100px;
720
+                              text-align: center;
721
+                              font-weight: 600;
722
+                            "
723
+                            v-if="record.prescription.mode_id == 25"
724
+                          >
725
+                            HD高通
726
+                          </div>
705 727
                           <div
706 728
                             class="under_line"
707 729
                             style="

+ 10 - 2
src/xt_pages/stock/detail/stockOutDetail.vue Прегледај датотеку

@@ -896,11 +896,19 @@ export default {
896 896
           this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
897 897
         }else if(this.orgId == 10485){
898 898
           this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
899
+        }else if(this.orgId ==10138){
900
+          this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
901
+        }else if(this.orgId == 10278){
902
+          this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
903
+        }else if(this.orgId == 10610){
904
+          this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
905
+        }else if(this.orgId==10537){
906
+          this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
899 907
         }else{
900 908
           this.tableOut[i].total_price = (this.getStockCount(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
901 909
         }
902 910
 
903
-        if(this.orgId  == 10265 || this.orgId ==10215 || this.orgId == 9919 || this.orgId == 9671 || this.orgId == 10402){
911
+        if(this.orgId  == 10265 || this.orgId ==10215 || this.orgId == 9919 || this.orgId == 9671 || this.orgId == 10402 || this.orgId==10138 || this.orgId==10278||this.orgId==10537||this.orgId==10610||this.orgId==0){
904 912
 
905 913
          this.tableOut[i].out_count = this.getMySelfCount(this.tableOut[i].good_id)
906 914
         }
@@ -908,7 +916,7 @@ export default {
908 916
           this.tableOut[i].out_count = this.getWarehouseOut(this.tableOut[i].good_id)
909 917
          
910 918
         }
911
-        if(this.orgId!=10265 && this.orgId !=10215  && this.orgId != 9671 &&this.orgId!=10210&&this.orgId!=9675 && this.orgId!=9956&& this.orgId!=10217 && this.orgId!=10188 && this.orgId!=10191 && this.orgId!=9919 && this.orgId!=0&& this.orgId!=10402 && this.orgId != 10489 && this.orgId!=10375 && this.orgId!=10485){
919
+        if(this.orgId!=10265 && this.orgId !=10215  && this.orgId != 9671 &&this.orgId!=10210&&this.orgId!=9675 && this.orgId!=9956&& this.orgId!=10217 && this.orgId!=10188 && this.orgId!=10191 && this.orgId!=9919 && this.orgId!=0&& this.orgId!=10402 && this.orgId != 10489 && this.orgId!=10375 && this.orgId!=10485&&this.orgId!=0&&this.orgId!=10138&&this.orgId!=10278&&this.orgId!=10537&&this.orgId!=10610&&this.orgId==0){
912 920
           this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
913 921
         }
914 922
         this.tableOut[i].manufacturer_name = this.getManufacturerNameOne(this.tableOut[i].manufacturer)

+ 18 - 4
src/xt_pages/stock/selfPreparedMedicine/addWarehouseOut.vue Прегледај датотеку

@@ -358,7 +358,7 @@
358 358
   import BreadCrumb from "../../components/bread-crumb";
359 359
   import { getDataConfig, getDictionaryDataConfig } from "@/utils/data";
360 360
   import { getAllDrugList, postSearchDrugList } from "@/api/data";
361
-    import { getallPatientList,postSearchSelfDrugList,postSelfDrugOutInfoWarehouse} from "@/api/drug/drug"
361
+    import { getallPatientList,postSearchSelfDrugList,postSelfDrugOutInfoWarehouse,getSelfDrugBatchNumber} from "@/api/drug/drug"
362 362
   export default {
363 363
     components: { BreadCrumb },
364 364
     name: "stockIn",
@@ -970,6 +970,8 @@
970 970
         this.currentIndex = val;
971 971
       },
972 972
       handleSelect(val) {
973
+
974
+        
973 975
         var arr = [];
974 976
 
975 977
         for (let i = 0; i < this.recordInfo.recordData.length; i++) {
@@ -987,8 +989,7 @@
987 989
         var total_count = 0;
988 990
         for (let i = 0; i < val.drug_warehouse_info.length; i++) {
989 991
           if (val.max_unit == val.drug_warehouse_info[i].max_unit) {
990
-            val.drug_warehouse_info[i].stock_max_number =
991
-              val.drug_warehouse_info[i].stock_max_number * val.min_number;
992
+             val.drug_warehouse_info[i].stock_max_number = val.drug_warehouse_info[i].stock_max_number * val.min_number;
992 993
           }
993 994
         }
994 995
 
@@ -1057,7 +1058,20 @@
1057 1058
           }
1058 1059
         }
1059 1060
       },
1060
-        querySearchAsync(keyword, cb) {
1061
+      getDrugBatchNumber(id) {
1062
+        var params = {
1063
+          id: id,
1064
+        };
1065
+        getSelfDrugBatchNumber(params).then((response) => {
1066
+          if (response.data.state == 1) {
1067
+            var list = response.data.data.list;
1068
+
1069
+            this.numberList = [];
1070
+            this.numberList = list;
1071
+          }
1072
+        });
1073
+       },
1074
+      querySearchAsync(keyword, cb) {
1061 1075
           let key = "";
1062 1076
           if (keyword != undefined) {
1063 1077
             key = keyword;