123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237 |
- <template>
- <div class="main-contain">
- <div class="position">
- <bread-crumb :crumbs="crumbs"></bread-crumb>
- </div>
- <div class="app-container">
- <!--<div class="configBox">-->
- <!--<p>收费发药</p>-->
- <!--<p style="font-size:14px;margin-top:5px;">开启收费发药分离后,处方发药的工作需要到收费发药页面完成</p>-->
- <!--<p style="margin-top:20px;">收费,发药分离:-->
- <!--<el-switch v-model="value"></el-switch>-->
- <!--</p>-->
- <!--</div>-->
- <div class="configBox">
- <p style="font-size:18px;font-weight:bold">门诊打印</p>
- <p style="font-size:14px;margin-top:5px;color:#333;">开启直接打印后,门诊病历、处方、治疗单、处置单、收费清单等打印时跳过打印预览,直接连接打印机打印。</p>
- <p style="margin-top:20px;">直接打印:
- <el-switch v-model="value"></el-switch>
- </p>
- </div>
- <div class="configBox">
- <p style="font-size:18px;font-weight:bold">医嘱同步</p>
- <p style="font-size:14px;margin-top:5px;color:#333;">开启门诊处方同步到透析医嘱后,同一个患者,门诊医生站开的药品类处方自动同步到透析管理临时医嘱中,同时在透析管理中,给患者开长期医嘱和临时医嘱的功能失效,医生只能在门诊医生站开处方,只有同时使用门诊管理和透析管理的机构方可开启。</p>
- <p style="margin-top:20px;">门诊处方同步到透析医嘱:
- <el-switch v-model="is_open_xt_his" @change="changeFuncOne"></el-switch>
- </p>
- </div>
-
- <!-- <div class="configBox">
- <p style="font-size:18px;font-weight:bold">血压数据自动获取</p>
- <p style="font-size:14px;margin-top:5px;color:#333;">在联机的状态下,开启透析监测-血压数据自动获取功能后,则不需要手动输入,数据会自动上传到监测中</p>
- <p style="margin-top:20px;">透析监测-血压数据自动获取:
- <el-switch v-model="is_open_monitor" @change="changeFuncTwo"></el-switch>
- </p>
- </div>
-
- <div class="configBox">
- <p style="font-size:18px;font-weight:bold">透析机数据自动获取</p>
- <p style="font-size:14px;margin-top:5px;color:#333;">在联机的状态下,开启透析监测-透析机数据自动获取功能后,则不需要手动输入,数据会自动上传到监测中</p>
- <p style="margin-top:20px;">透析监测-血压数据自动获取:
- <el-switch v-model="is_open_order" @change="changeFuncThree"></el-switch>
- </p>
- </div> -->
- <!--<div class="configBox">-->
- <!--<p>药品,耗材出库</p>-->
- <!--<p style="font-size:14px;margin-top:5px;">开启药品,耗材出库自动扣减则医生开完医嘱或处方可直接出库,不开启则由发药动作或出库按钮手动出库</p>-->
- <!--<div style="display:flex;margin-top:20px;">-->
- <!--<p style="margin-right:20px;">药品出库:-->
- <!--<el-switch v-model="value" @change="changeFuncTwo"></el-switch>-->
- <!--</p>-->
- <!--<p>耗材出库:-->
- <!--<el-switch v-model="value"></el-switch>-->
- <!--</p>-->
- <!--</div>-->
- <!--</div>-->
- <!--<div class="configBox">-->
- <!--<p style="margin-bottom:20px;">药品有效期预警设置(药品即将失效的预警提示)</p>-->
- <!--<el-select v-model="value" placeholder="请选择">-->
- <!--<el-option-->
- <!--v-for="item in options"-->
- <!--:key="item.value"-->
- <!--:label="item.label"-->
- <!--:value="item.value">-->
- <!--</el-option>-->
- <!--</el-select>-->
- <!--</div>-->
- <!--<div class="configBox">-->
- <!--<p>处方单价锁定</p>-->
- <!--<p style="font-size:14px;margin-top:5px;">开启处方单价锁定后,开处方是无法修改药品或者诊疗项目以及附加费用单价</p>-->
- <!--<p style="margin-top:20px;">收费单价锁定:-->
- <!--<el-switch v-model="value"></el-switch>-->
- <!--</p>-->
- <!--</div>-->
-
- </div>
- </div>
- </template>
-
- <script>
- import BreadCrumb from "@/xt_pages/components/bread-crumb";
- import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen} from '@/api/config'
-
- export default {
- name: "printTemplate",
- components: { BreadCrumb},
- data() {
- return {
- showViewer:false,
- crumbs: [
- { path: false, name: "管理中心" },
- { path: false, name: "基础配置" }
- ],
- value:false,
- is_open_xt_his:false,
- is_open_monitor:false,
- is_open_order:false,
- };
- },
- methods: {
- getInitIsOpenConfig(){
- getAllIsOpenInit().then(
- response => {
- if (response.data.state === 1) {
- if(response.data.data.is_open_xt_his == 1) {
- this.is_open_xt_his = true
- }else{
- this.is_open_xt_his = false
- }
-
- } else {
- this.$message.error(response.data.msg)
- }
- }
- )
-
- },
- changeFuncOne(val){
- if(this.is_open_xt_his){
- let params={
- is_open:this.is_open_xt_his
- }
- postXtHisIsOpen(params).then(
- response => {
- if (response.data.state === 1) {
- this.is_open_xt_his = response.data.data.is_open
-
- } else {
- this.$message.error(response.data.msg)
- }
- }
- )
- }else{
- let params={
- is_open:this.is_open_xt_his
- }
- postXtHisIsOpen(params).then(
- response => {
- if (response.data.state === 1) {
- this.is_open_xt_his = response.data.data.is_open
-
- } else {
- this.$message.error(response.data.msg)
- }
- }
- )
- }
- },
-
- changeFuncTwo(){
- console.log("3333333",this.is_open_monitor)
- var is_open = 0
- if(this.is_open_monitor == true){
- is_open = 1
- }
- if(this.is_open_monitor == false){
- is_open = 2
- }
- let params = {
- is_open:is_open,
- }
- console.log("params",params)
- postMonitorIsOpen(params).then(response=>{
- if(response.data.state == 1){
- var config = response.data.data.config
- this.$message.success("成功")
- this.getMonitorConfig()
- }
- })
- },
- getMonitorConfig(){
- getMonitorConfig().then(response=>{
- if(response.data.state == 1){
- var config = response.data.data.config
- console.log("config",config)
- if (config.is_open == 1) {
- this.is_open_monitor = true
- }
- if (config.is_open == 2) {
- this.is_open_monitor = false
- }
- }
- })
- },
-
- changeFuncThree(){
- var is_open = 0
- if(this.is_open_order == true){
- is_open = 1
- }
- if(this.is_open_order == false){
- is_open = 2
- }
- let params = {
- is_open:is_open,
- }
- addOrderConfig(params).then(response=>{
- if(response.data.state == 1){
- var config = response.data.data.config
- this.$message.success("成功")
- this.getOrderConfig()
- }
- })
- },
- getOrderConfig(){
- getOrderConfig().then(response=>{
- if(response.data.state == 1){
- var config = response.data.data.config
- if (config.is_open == 1) {
- this.is_open_order = true
- }
- if (config.is_open == 2) {
- this.is_open_order = false
- }
- }
- })
- }
-
- },
- created() {
- this.getInitIsOpenConfig()
- this.getMonitorConfig()
- this.getOrderConfig()
-
- }
- };
- </script>
-
- <style lang="scss" scoped>
- .configBox{
- padding-bottom:20px;
- margin-top:10px;
- border-bottom: 1px solid #000;
- }
- </style>
-
-
|