Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

basicConfig.vue 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. <template>
  2. <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb :crumbs="crumbs"></bread-crumb>
  5. </div>
  6. <div class="app-container">
  7. <!--<div class="configBox">-->
  8. <!--<p>收费发药</p>-->
  9. <!--<p style="font-size:14px;margin-top:5px;">开启收费发药分离后,处方发药的工作需要到收费发药页面完成</p>-->
  10. <!--<p style="margin-top:20px;">收费,发药分离:-->
  11. <!--<el-switch v-model="value"></el-switch>-->
  12. <!--</p>-->
  13. <!--</div>-->
  14. <div class="configBox">
  15. <p style="font-size:18px;font-weight:bold">门诊打印</p>
  16. <p style="font-size:14px;margin-top:5px;color:#333;">开启直接打印后,门诊病历、处方、治疗单、处置单、收费清单等打印时跳过打印预览,直接连接打印机打印。</p>
  17. <p style="margin-top:20px;">直接打印:
  18. <el-switch v-model="is_open_print" @change="changeFuncPrint"></el-switch>
  19. </p>
  20. </div>
  21. <div class="configBox">
  22. <p style="font-size:18px;font-weight:bold">医嘱同步</p>
  23. <p style="font-size:14px;margin-top:5px;color:#333;">开启门诊处方同步到透析医嘱后,同一个患者,门诊医生站开的药品类处方自动同步到透析管理临时医嘱中,同时在透析管理中,给患者开长期医嘱和临时医嘱的功能失效,医生只能在门诊医生站开处方,只有同时使用门诊管理和透析管理的机构方可开启。</p>
  24. <p style="margin-top:20px;">门诊处方同步到透析医嘱:
  25. <el-switch v-model="is_open_xt_his" @change="changeFuncOne"></el-switch>
  26. </p>
  27. </div>
  28. <div class="configBox">
  29. <p style="font-size:18px;font-weight:bold">处方项目同步到临时医嘱</p>
  30. <p style="font-size:14px;margin-top:5px;color:#333;">开启门诊处方的项目同步后,护士则在血透的临时医嘱中可以看到相关的耗材/检验检查数据</p>
  31. <p style="margin-top:20px;">门诊处方项目同步到透析医嘱:
  32. <el-switch v-model="is_open_xt_his_project" @change="changeFuncProject"></el-switch>
  33. </p>
  34. </div>
  35. <!-- <div class="configBox">
  36. <p style="font-size:18px;font-weight:bold">血压数据自动获取</p>
  37. <p style="font-size:14px;margin-top:5px;color:#333;">在联机的状态下,开启透析监测-血压数据自动获取功能后,则不需要手动输入,数据会自动上传到监测中</p>
  38. <p style="margin-top:20px;">透析监测-血压数据自动获取:
  39. <el-switch v-model="is_open_monitor" @change="changeFuncTwo"></el-switch>
  40. </p>
  41. </div>
  42. <div class="configBox">
  43. <p style="font-size:18px;font-weight:bold">透析机数据自动获取</p>
  44. <p style="font-size:14px;margin-top:5px;color:#333;">在联机的状态下,开启透析监测-透析机数据自动获取功能后,则不需要手动输入,数据会自动上传到监测中</p>
  45. <p style="margin-top:20px;">透析监测-血压数据自动获取:
  46. <el-switch v-model="is_open_order" @change="changeFuncThree"></el-switch>
  47. </p>
  48. </div> -->
  49. <!--<div class="configBox">-->
  50. <!--<p>药品,耗材出库</p>-->
  51. <!--<p style="font-size:14px;margin-top:5px;">开启药品,耗材出库自动扣减则医生开完医嘱或处方可直接出库,不开启则由发药动作或出库按钮手动出库</p>-->
  52. <!--<div style="display:flex;margin-top:20px;">-->
  53. <!--<p style="margin-right:20px;">药品出库:-->
  54. <!--<el-switch v-model="value" @change="changeFuncTwo"></el-switch>-->
  55. <!--</p>-->
  56. <!--<p>耗材出库:-->
  57. <!--<el-switch v-model="value"></el-switch>-->
  58. <!--</p>-->
  59. <!--</div>-->
  60. <!--</div>-->
  61. <!--<div class="configBox">-->
  62. <!--<p style="margin-bottom:20px;">药品有效期预警设置(药品即将失效的预警提示)</p>-->
  63. <!--<el-select v-model="value" placeholder="请选择">-->
  64. <!--<el-option-->
  65. <!--v-for="item in options"-->
  66. <!--:key="item.value"-->
  67. <!--:label="item.label"-->
  68. <!--:value="item.value">-->
  69. <!--</el-option>-->
  70. <!--</el-select>-->
  71. <!--</div>-->
  72. <!--<div class="configBox">-->
  73. <!--<p>处方单价锁定</p>-->
  74. <!--<p style="font-size:14px;margin-top:5px;">开启处方单价锁定后,开处方是无法修改药品或者诊疗项目以及附加费用单价</p>-->
  75. <!--<p style="margin-top:20px;">收费单价锁定:-->
  76. <!--<el-switch v-model="value"></el-switch>-->
  77. <!--</p>-->
  78. <!--</div>-->
  79. </div>
  80. </div>
  81. </template>
  82. <script>
  83. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  84. import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen,changeFuncPrint,getDataPrintList,postXtHisProjectIsOpen} from '@/api/config'
  85. export default {
  86. name: "printTemplate",
  87. components: { BreadCrumb},
  88. data() {
  89. return {
  90. showViewer:false,
  91. crumbs: [
  92. { path: false, name: "管理中心" },
  93. { path: false, name: "基础配置" }
  94. ],
  95. value:false,
  96. is_open_xt_his:false,
  97. is_open_monitor:false,
  98. is_open_order:false,
  99. is_open_print:false,
  100. is_open_xt_his_project: false,
  101. };
  102. },
  103. methods: {
  104. getInitIsOpenConfig(){
  105. getAllIsOpenInit().then(
  106. response => {
  107. if (response.data.state === 1) {
  108. if(response.data.data.is_open_xt_his == 1) {
  109. this.is_open_xt_his = true
  110. }else{
  111. this.is_open_xt_his = false
  112. }
  113. if(response.data.data.is_open_xt_his_project == 1) {
  114. this.is_open_xt_his_project = true
  115. }else{
  116. this.is_open_xt_his_project = false
  117. }
  118. } else {
  119. this.$message.error(response.data.msg)
  120. }
  121. }
  122. )
  123. },
  124. changeFuncOne(val){
  125. if(this.is_open_xt_his){
  126. let params={
  127. is_open:this.is_open_xt_his
  128. }
  129. postXtHisIsOpen(params).then(
  130. response => {
  131. if (response.data.state === 1) {
  132. this.is_open_xt_his = response.data.data.is_open
  133. } else {
  134. this.$message.error(response.data.msg)
  135. }
  136. }
  137. )
  138. }else{
  139. let params={
  140. is_open:this.is_open_xt_his
  141. }
  142. postXtHisIsOpen(params).then(
  143. response => {
  144. if (response.data.state === 1) {
  145. this.is_open_xt_his = response.data.data.is_open
  146. } else {
  147. this.$message.error(response.data.msg)
  148. }
  149. }
  150. )
  151. }
  152. },
  153. changeFuncProject(val){
  154. if(this.is_open_xt_his_project){
  155. let params={
  156. is_open:this.is_open_xt_his_project
  157. }
  158. postXtHisProjectIsOpen(params).then(
  159. response => {
  160. if (response.data.state === 1) {
  161. this.is_open_xt_his_project = response.data.data.is_open
  162. } else {
  163. this.$message.error(response.data.msg)
  164. }
  165. }
  166. )
  167. }else{
  168. let params={
  169. is_open:this.is_open_xt_his_project
  170. }
  171. postXtHisProjectIsOpen(params).then(
  172. response => {
  173. if (response.data.state === 1) {
  174. this.is_open_xt_his_project = response.data.data.is_open
  175. } else {
  176. this.$message.error(response.data.msg)
  177. }
  178. }
  179. )
  180. }
  181. },
  182. changeFuncTwo(){
  183. console.log("3333333",this.is_open_monitor)
  184. var is_open = 0
  185. if(this.is_open_monitor == true){
  186. is_open = 1
  187. }
  188. if(this.is_open_monitor == false){
  189. is_open = 2
  190. }
  191. let params = {
  192. is_open:is_open,
  193. }
  194. console.log("params",params)
  195. postMonitorIsOpen(params).then(response=>{
  196. if(response.data.state == 1){
  197. var config = response.data.data.config
  198. this.$message.success("成功")
  199. this.getMonitorConfig()
  200. }
  201. })
  202. },
  203. getMonitorConfig(){
  204. getMonitorConfig().then(response=>{
  205. if(response.data.state == 1){
  206. var config = response.data.data.config
  207. console.log("config",config)
  208. if (config.is_open == 1) {
  209. this.is_open_monitor = true
  210. }
  211. if (config.is_open == 2) {
  212. this.is_open_monitor = false
  213. }
  214. }
  215. })
  216. },
  217. changeFuncThree(){
  218. var is_open = 0
  219. if(this.is_open_order == true){
  220. is_open = 1
  221. }
  222. if(this.is_open_order == false){
  223. is_open = 2
  224. }
  225. let params = {
  226. is_open:is_open,
  227. }
  228. addOrderConfig(params).then(response=>{
  229. if(response.data.state == 1){
  230. var config = response.data.data.config
  231. this.$message.success("成功")
  232. this.getOrderConfig()
  233. }
  234. })
  235. },
  236. getOrderConfig(){
  237. getOrderConfig().then(response=>{
  238. if(response.data.state == 1){
  239. var config = response.data.data.config
  240. if (config.is_open == 1) {
  241. this.is_open_order = true
  242. }
  243. if (config.is_open == 2) {
  244. this.is_open_order = false
  245. }
  246. }
  247. })
  248. },
  249. changeFuncPrint(val){
  250. console.log("val22222",val)
  251. var is_open = 0
  252. if(val == true){
  253. is_open = 1
  254. }
  255. if(val == false){
  256. is_open = 0
  257. }
  258. var params = {
  259. is_open:is_open,
  260. }
  261. changeFuncPrint(params).then(response=>{
  262. if(response.data.state == 1){
  263. var dataPrint = response.data.data.dataPrint
  264. this.$message.success("保存成功")
  265. this.getDataPrintList()
  266. }
  267. })
  268. },
  269. getDataPrintList(){
  270. getDataPrintList().then(response=>{
  271. if(response.data.state ==1){
  272. var dataPrint = response.data.data.dataPrint
  273. console.log("列表数据",dataPrint)
  274. if(dataPrint.is_open == 1){
  275. this.is_open_print = true
  276. }
  277. if(dataPrint.is_open == 0){
  278. this.is_open_print = false
  279. }
  280. }
  281. })
  282. }
  283. },
  284. created() {
  285. this.getInitIsOpenConfig()
  286. // this.getMonitorConfig()
  287. // this.getOrderConfig()
  288. this.getDataPrintList()
  289. }
  290. };
  291. </script>
  292. <style lang="scss" scoped>
  293. .configBox{
  294. padding-bottom:20px;
  295. margin-top:10px;
  296. border-bottom: 1px solid #000;
  297. }
  298. </style>