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