28169 8 månader sedan
förälder
incheckning
0b0c599564

+ 27 - 0
src/api/config.js Visa fil

225
     params: params
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 Visa fil

764
     method:"Get",
764
     method:"Get",
765
     params:params,
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 Visa fil

49
             <!-- <p style="margin-top:20px;">药品耗材在结算时出库:
49
             <!-- <p style="margin-top:20px;">药品耗材在结算时出库:
50
                 <el-switch v-model="drug_settle_open" @change="changeSettleOpen"></el-switch>
50
                 <el-switch v-model="drug_settle_open" @change="changeSettleOpen"></el-switch>
51
             </p> -->
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
         </div>
60
         </div>
53
 
61
 
54
 
62
 
104
 
112
 
105
 <script>
113
 <script>
106
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
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
 export default {
117
 export default {
110
   name: "printTemplate",
118
   name: "printTemplate",
128
       drug_out_open:false,
136
       drug_out_open:false,
129
       drug_settle_open:false,
137
       drug_settle_open:false,
130
       good_out_open:false,
138
       good_out_open:false,
139
+      self_prescription_out_open:false,
140
+      self_drug_out_open:false
131
     };
141
     };
132
   },
142
   },
133
   methods: {
143
   methods: {
463
           this.$message.success("保存成功!")
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
   created() {
541
   created() {
471
     this.getInitIsOpenConfig()
542
     this.getInitIsOpenConfig()
472
     // this.getMonitorConfig()
543
     // this.getMonitorConfig()
473
     // this.getOrderConfig()
544
     // this.getOrderConfig()
474
     this.getDataPrintList()
545
     this.getDataPrintList()
546
+
547
+    this.getSelfPrintList()
475
   }
548
   }
476
 };
549
 };
477
 </script>
550
 </script>

+ 22 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Visa fil

702
                           >
702
                           >
703
                             血浆胆红素吸附
703
                             血浆胆红素吸附
704
                           </div>
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
                           <div
727
                           <div
706
                             class="under_line"
728
                             class="under_line"
707
                             style="
729
                             style="

+ 10 - 2
src/xt_pages/stock/detail/stockOutDetail.vue Visa fil

896
           this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
896
           this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
897
         }else if(this.orgId == 10485){
897
         }else if(this.orgId == 10485){
898
           this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
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
         }else{
907
         }else{
900
           this.tableOut[i].total_price = (this.getStockCount(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
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
          this.tableOut[i].out_count = this.getMySelfCount(this.tableOut[i].good_id)
913
          this.tableOut[i].out_count = this.getMySelfCount(this.tableOut[i].good_id)
906
         }
914
         }
908
           this.tableOut[i].out_count = this.getWarehouseOut(this.tableOut[i].good_id)
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
           this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
920
           this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
913
         }
921
         }
914
         this.tableOut[i].manufacturer_name = this.getManufacturerNameOne(this.tableOut[i].manufacturer)
922
         this.tableOut[i].manufacturer_name = this.getManufacturerNameOne(this.tableOut[i].manufacturer)

+ 18 - 4
src/xt_pages/stock/selfPreparedMedicine/addWarehouseOut.vue Visa fil

358
   import BreadCrumb from "../../components/bread-crumb";
358
   import BreadCrumb from "../../components/bread-crumb";
359
   import { getDataConfig, getDictionaryDataConfig } from "@/utils/data";
359
   import { getDataConfig, getDictionaryDataConfig } from "@/utils/data";
360
   import { getAllDrugList, postSearchDrugList } from "@/api/data";
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
   export default {
362
   export default {
363
     components: { BreadCrumb },
363
     components: { BreadCrumb },
364
     name: "stockIn",
364
     name: "stockIn",
970
         this.currentIndex = val;
970
         this.currentIndex = val;
971
       },
971
       },
972
       handleSelect(val) {
972
       handleSelect(val) {
973
+
974
+        
973
         var arr = [];
975
         var arr = [];
974
 
976
 
975
         for (let i = 0; i < this.recordInfo.recordData.length; i++) {
977
         for (let i = 0; i < this.recordInfo.recordData.length; i++) {
987
         var total_count = 0;
989
         var total_count = 0;
988
         for (let i = 0; i < val.drug_warehouse_info.length; i++) {
990
         for (let i = 0; i < val.drug_warehouse_info.length; i++) {
989
           if (val.max_unit == val.drug_warehouse_info[i].max_unit) {
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
           }
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
           let key = "";
1075
           let key = "";
1062
           if (keyword != undefined) {
1076
           if (keyword != undefined) {
1063
             key = keyword;
1077
             key = keyword;