|
@@ -57,6 +57,11 @@
|
57
|
57
|
<p style="margin-top:20px;">药品在执行时自备药出库:
|
58
|
58
|
<el-switch v-model="self_drug_out_open" @change="changeSelfPrescriptionOutOpen"></el-switch>
|
59
|
59
|
</p>
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+ <p style="margin-top:20px;">药品在患者发药显示:
|
|
63
|
+ <el-switch v-model="drug_code_open" @change="changeDrugCodeOpen"></el-switch>
|
|
64
|
+ </p>
|
60
|
65
|
</div>
|
61
|
66
|
|
62
|
67
|
|
|
@@ -112,7 +117,7 @@
|
112
|
117
|
|
113
|
118
|
<script>
|
114
|
119
|
import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
115
|
|
-import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen,changeFuncPrint,getDataPrintList,postXtHisProjectIsOpen,changeStockSetting,changeAdviceConfig,changePrescriptionConfig,changeDrugOpenConfig,changeSettleOpenConfig,changeGoodOutOpen,changeSelfPrescriptionOpen,changeSelfPrescriptionOutOpen,getSelfPrintList} from '@/api/config'
|
|
120
|
+import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen,changeFuncPrint,getDataPrintList,postXtHisProjectIsOpen,changeStockSetting,changeAdviceConfig,changePrescriptionConfig,changeDrugOpenConfig,changeSettleOpenConfig,changeGoodOutOpen,changeSelfPrescriptionOpen,changeSelfPrescriptionOutOpen,getSelfPrintList,changeDrugCodeOpen} from '@/api/config'
|
116
|
121
|
|
117
|
122
|
export default {
|
118
|
123
|
name: "printTemplate",
|
|
@@ -137,7 +142,8 @@ export default {
|
137
|
142
|
drug_settle_open:false,
|
138
|
143
|
good_out_open:false,
|
139
|
144
|
self_prescription_out_open:false,
|
140
|
|
- self_drug_out_open:false
|
|
145
|
+ self_drug_out_open:false,
|
|
146
|
+ drug_code_open:false,
|
141
|
147
|
};
|
142
|
148
|
},
|
143
|
149
|
methods: {
|
|
@@ -195,6 +201,12 @@ export default {
|
195
|
201
|
this.good_out_open = false
|
196
|
202
|
}
|
197
|
203
|
|
|
204
|
+ if(response.data.data.is_code_open == 1){
|
|
205
|
+ this.drug_code_open = true
|
|
206
|
+ }else{
|
|
207
|
+ this.drug_code_open = false
|
|
208
|
+ }
|
|
209
|
+
|
198
|
210
|
} else {
|
199
|
211
|
this.$message.error(response.data.msg)
|
200
|
212
|
}
|
|
@@ -536,7 +548,27 @@ export default {
|
536
|
548
|
}
|
537
|
549
|
}
|
538
|
550
|
})
|
|
551
|
+ },
|
|
552
|
+ changeDrugCodeOpen(){
|
|
553
|
+
|
|
554
|
+ var drug_out_open = 0
|
|
555
|
+ if(this.drug_code_open == true){
|
|
556
|
+ drug_out_open = 1
|
|
557
|
+ }
|
|
558
|
+ if(this.drug_code_open == false){
|
|
559
|
+ drug_out_open = 2
|
|
560
|
+ }
|
|
561
|
+ var params = {
|
|
562
|
+ is_open:drug_out_open,
|
|
563
|
+ }
|
|
564
|
+ changeDrugCodeOpen(params).then(response=>{
|
|
565
|
+ if(response.data.state ==1){
|
|
566
|
+ var drugCodeOpen = response.data.data.drugCodeOpen
|
|
567
|
+ this.$message.success("保存成功!")
|
|
568
|
+ }
|
|
569
|
+ })
|
539
|
570
|
}
|
|
571
|
+
|
540
|
572
|
},
|
541
|
573
|
created() {
|
542
|
574
|
this.getInitIsOpenConfig()
|