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

basicConfig.vue 15KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459
  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 style="margin-top:20px;">门诊处方和临时医嘱同步到透析医嘱:
  27. <el-switch v-model="is_open_advice_xt_his" @change="changeFuncSix"></el-switch>
  28. <p style="margin-top:20px;" v-if="is_open_advice_xt_his==true">是否出库:
  29. <el-switch v-model="is_open_prescription_xt_his" @change="changeFuncSeven"></el-switch>
  30. </p>
  31. </div>
  32. <div class="configBox">
  33. <p style="font-size:18px;font-weight:bold">处方项目同步到临时医嘱</p>
  34. <p style="font-size:14px;margin-top:5px;color:#333;">开启门诊处方的项目同步后,护士则在血透的临时医嘱中可以看到相关的耗材/检验检查数据</p>
  35. <p style="margin-top:20px;">门诊处方项目同步到透析医嘱:
  36. <el-switch v-model="is_open_xt_his_project" @change="changeFuncProject"></el-switch>
  37. </p>
  38. <p style="margin-top:20px;">耗材先出库再执行:
  39. <el-switch v-model="is_open_is_type" @change="changeFuncType"></el-switch>
  40. </p>
  41. <p style="margin-top:20px;">药品在保存处方时出库:
  42. <el-switch v-model="drug_out_open" @change="changeDrugOpen"></el-switch>
  43. </p>
  44. <p style="margin-top:20px;">药品耗材在结算时出库:
  45. <el-switch v-model="drug_settle_open" @change="changeSettleOpen"></el-switch>
  46. </p>
  47. </div>
  48. <!-- <div class="configBox">
  49. <p style="font-size:18px;font-weight:bold">血压数据自动获取</p>
  50. <p style="font-size:14px;margin-top:5px;color:#333;">在联机的状态下,开启透析监测-血压数据自动获取功能后,则不需要手动输入,数据会自动上传到监测中</p>
  51. <p style="margin-top:20px;">透析监测-血压数据自动获取:
  52. <el-switch v-model="is_open_monitor" @change="changeFuncTwo"></el-switch>
  53. </p>
  54. </div>
  55. <div class="configBox">
  56. <p style="font-size:18px;font-weight:bold">透析机数据自动获取</p>
  57. <p style="font-size:14px;margin-top:5px;color:#333;">在联机的状态下,开启透析监测-透析机数据自动获取功能后,则不需要手动输入,数据会自动上传到监测中</p>
  58. <p style="margin-top:20px;">透析监测-血压数据自动获取:
  59. <el-switch v-model="is_open_order" @change="changeFuncThree"></el-switch>
  60. </p>
  61. </div> -->
  62. <!--<div class="configBox">-->
  63. <!--<p>药品,耗材出库</p>-->
  64. <!--<p style="font-size:14px;margin-top:5px;">开启药品,耗材出库自动扣减则医生开完医嘱或处方可直接出库,不开启则由发药动作或出库按钮手动出库</p>-->
  65. <!--<div style="display:flex;margin-top:20px;">-->
  66. <!--<p style="margin-right:20px;">药品出库:-->
  67. <!--<el-switch v-model="value" @change="changeFuncTwo"></el-switch>-->
  68. <!--</p>-->
  69. <!--<p>耗材出库:-->
  70. <!--<el-switch v-model="value"></el-switch>-->
  71. <!--</p>-->
  72. <!--</div>-->
  73. <!--</div>-->
  74. <!--<div class="configBox">-->
  75. <!--<p style="margin-bottom:20px;">药品有效期预警设置(药品即将失效的预警提示)</p>-->
  76. <!--<el-select v-model="value" placeholder="请选择">-->
  77. <!--<el-option-->
  78. <!--v-for="item in options"-->
  79. <!--:key="item.value"-->
  80. <!--:label="item.label"-->
  81. <!--:value="item.value">-->
  82. <!--</el-option>-->
  83. <!--</el-select>-->
  84. <!--</div>-->
  85. <!--<div class="configBox">-->
  86. <!--<p>处方单价锁定</p>-->
  87. <!--<p style="font-size:14px;margin-top:5px;">开启处方单价锁定后,开处方是无法修改药品或者诊疗项目以及附加费用单价</p>-->
  88. <!--<p style="margin-top:20px;">收费单价锁定:-->
  89. <!--<el-switch v-model="value"></el-switch>-->
  90. <!--</p>-->
  91. <!--</div>-->
  92. </div>
  93. </div>
  94. </template>
  95. <script>
  96. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  97. import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen,changeFuncPrint,getDataPrintList,postXtHisProjectIsOpen,changeStockSetting,changeAdviceConfig,changePrescriptionConfig,changeDrugOpenConfig,changeSettleOpenConfig} from '@/api/config'
  98. export default {
  99. name: "printTemplate",
  100. components: { BreadCrumb},
  101. data() {
  102. return {
  103. showViewer:false,
  104. crumbs: [
  105. { path: false, name: "管理中心" },
  106. { path: false, name: "基础配置" }
  107. ],
  108. value:false,
  109. is_open_xt_his:false,
  110. is_open_monitor:false,
  111. is_open_order:false,
  112. is_open_print:false,
  113. is_open_xt_his_project: false,
  114. is_open_is_type:false,
  115. is_open_advice_xt_his:false,
  116. is_open_prescription_xt_his:false,
  117. drug_out_open:false,
  118. drug_settle_open:false,
  119. };
  120. },
  121. methods: {
  122. getInitIsOpenConfig(){
  123. getAllIsOpenInit().then(
  124. response => {
  125. if (response.data.state === 1) {
  126. if(response.data.data.is_open_xt_his == 1) {
  127. this.is_open_xt_his = true
  128. }else{
  129. this.is_open_xt_his = false
  130. }
  131. if(response.data.data.is_open_xt_his_project == 1) {
  132. this.is_open_xt_his_project = true
  133. }else{
  134. this.is_open_xt_his_project = false
  135. }
  136. if(response.data.data.is_open_stock == 1){
  137. this.is_open_is_type = true
  138. }else{
  139. this.is_open_is_type = false
  140. }
  141. if(response.data.data.is_open_advice == 1){
  142. this.is_open_advice_xt_his = true
  143. }else{
  144. this.is_open_advice_xt_his = false
  145. }
  146. if(response.data.data.is_prescription_advice == 1){
  147. this.is_open_prescription_xt_his = true
  148. }else{
  149. this.is_open_prescription_xt_his = false
  150. }
  151. if(response.data.data.is_open == 1){
  152. this.drug_out_open = true
  153. }else{
  154. this.drug_out_open = false
  155. }
  156. if(response.data.data.is_seetle_open == 1){
  157. this.drug_settle_open = true
  158. }else{
  159. this.drug_settle_open = false
  160. }
  161. } else {
  162. this.$message.error(response.data.msg)
  163. }
  164. }
  165. )
  166. },
  167. changeFuncOne(val){
  168. if(this.is_open_xt_his){
  169. let params={
  170. is_open:this.is_open_xt_his
  171. }
  172. postXtHisIsOpen(params).then(
  173. response => {
  174. if (response.data.state === 1) {
  175. this.is_open_xt_his = response.data.data.is_open
  176. } else {
  177. this.$message.error(response.data.msg)
  178. }
  179. }
  180. )
  181. }else{
  182. let params={
  183. is_open:this.is_open_xt_his
  184. }
  185. postXtHisIsOpen(params).then(
  186. response => {
  187. if (response.data.state === 1) {
  188. this.is_open_xt_his = response.data.data.is_open
  189. } else {
  190. this.$message.error(response.data.msg)
  191. }
  192. }
  193. )
  194. }
  195. },
  196. changeFuncProject(val){
  197. if(this.is_open_xt_his_project){
  198. let params={
  199. is_open:this.is_open_xt_his_project
  200. }
  201. postXtHisProjectIsOpen(params).then(
  202. response => {
  203. if (response.data.state === 1) {
  204. this.is_open_xt_his_project = response.data.data.is_open
  205. } else {
  206. this.$message.error(response.data.msg)
  207. }
  208. }
  209. )
  210. }else{
  211. let params={
  212. is_open:this.is_open_xt_his_project
  213. }
  214. postXtHisProjectIsOpen(params).then(
  215. response => {
  216. if (response.data.state === 1) {
  217. this.is_open_xt_his_project = response.data.data.is_open
  218. } else {
  219. this.$message.error(response.data.msg)
  220. }
  221. }
  222. )
  223. }
  224. },
  225. changeFuncTwo(){
  226. var is_open = 0
  227. if(this.is_open_monitor == true){
  228. is_open = 1
  229. }
  230. if(this.is_open_monitor == false){
  231. is_open = 2
  232. }
  233. let params = {
  234. is_open:is_open,
  235. }
  236. postMonitorIsOpen(params).then(response=>{
  237. if(response.data.state == 1){
  238. var config = response.data.data.config
  239. this.$message.success("成功")
  240. this.getMonitorConfig()
  241. }
  242. })
  243. },
  244. getMonitorConfig(){
  245. getMonitorConfig().then(response=>{
  246. if(response.data.state == 1){
  247. var config = response.data.data.config
  248. if (config.is_open == 1) {
  249. this.is_open_monitor = true
  250. }
  251. if (config.is_open == 2) {
  252. this.is_open_monitor = false
  253. }
  254. }
  255. })
  256. },
  257. changeFuncThree(){
  258. var is_open = 0
  259. if(this.is_open_order == true){
  260. is_open = 1
  261. }
  262. if(this.is_open_order == false){
  263. is_open = 2
  264. }
  265. let params = {
  266. is_open:is_open,
  267. }
  268. addOrderConfig(params).then(response=>{
  269. if(response.data.state == 1){
  270. var config = response.data.data.config
  271. this.$message.success("成功")
  272. this.getOrderConfig()
  273. }
  274. })
  275. },
  276. getOrderConfig(){
  277. getOrderConfig().then(response=>{
  278. if(response.data.state == 1){
  279. var config = response.data.data.config
  280. if (config.is_open == 1) {
  281. this.is_open_order = true
  282. }
  283. if (config.is_open == 2) {
  284. this.is_open_order = false
  285. }
  286. }
  287. })
  288. },
  289. changeFuncPrint(val){
  290. var is_open = 0
  291. if(val == true){
  292. is_open = 1
  293. }
  294. if(val == false){
  295. is_open = 0
  296. }
  297. var params = {
  298. is_open:is_open,
  299. }
  300. changeFuncPrint(params).then(response=>{
  301. if(response.data.state == 1){
  302. var dataPrint = response.data.data.dataPrint
  303. this.$message.success("保存成功")
  304. this.getDataPrintList()
  305. }
  306. })
  307. },
  308. getDataPrintList(){
  309. getDataPrintList().then(response=>{
  310. if(response.data.state ==1){
  311. var dataPrint = response.data.data.dataPrint
  312. if(dataPrint.is_open == 1){
  313. this.is_open_print = true
  314. }
  315. if(dataPrint.is_open == 0){
  316. this.is_open_print = false
  317. }
  318. }
  319. })
  320. },
  321. changeFuncType(){
  322. var is_type = 2
  323. if(this.is_open_is_type == false){
  324. is_type = 2
  325. }
  326. if(this.is_open_is_type == true){
  327. is_type = 1
  328. }
  329. var params = {
  330. is_type:is_type,
  331. }
  332. changeStockSetting(params).then(response=>{
  333. if(response.data.state == 1){
  334. this.$message.success("保存成功!")
  335. }
  336. })
  337. },
  338. changeFuncSix(){
  339. var is_advice_open = 2
  340. if(this.is_open_advice_xt_his == false){
  341. is_advice_open = 2
  342. }
  343. if(this.is_open_advice_xt_his == true){
  344. is_advice_open = 1
  345. }
  346. var params = {
  347. is_advice_open:is_advice_open,
  348. }
  349. changeAdviceConfig(params).then(response=>{
  350. if(response.data.state == 1){
  351. var msg = response.data.data.msg
  352. this.$message.success("保存成功!")
  353. }
  354. })
  355. },
  356. changeFuncSeven(){
  357. var is_open_prescription_xt_his = 0
  358. if(this.is_open_prescription_xt_his == false){
  359. is_open_prescription_xt_his = 2
  360. }
  361. if(this.is_open_prescription_xt_his == true){
  362. is_open_prescription_xt_his = 1
  363. }
  364. var params = {
  365. is_open_prescription_xt_his:is_open_prescription_xt_his,
  366. }
  367. console.log("param22332323232",params)
  368. changePrescriptionConfig(params).then(response=>{
  369. if(response.data.state == 1){
  370. var msg = response.data.data.msg
  371. this.$message.success("保存成功!")
  372. }
  373. })
  374. },
  375. changeDrugOpen(){
  376. var drug_out_open = 0
  377. if(this.drug_out_open == false){
  378. drug_out_open = 2
  379. }
  380. if(this.drug_out_open == true){
  381. drug_out_open = 1
  382. }
  383. var params = {
  384. drug_out_open:drug_out_open,
  385. }
  386. changeDrugOpenConfig(params).then(response=>{
  387. if(response.data.state == 1){
  388. var msg = response.data.data.msg
  389. this.$message.success("保存成功!")
  390. }
  391. })
  392. },
  393. changeSettleOpen(){
  394. var settle_open = 0
  395. if(this.drug_settle_open == false){
  396. settle_open = 2
  397. }
  398. if(this.drug_settle_open == true){
  399. settle_open = 1
  400. }
  401. var params= {
  402. drug_settle_open:settle_open,
  403. }
  404. changeSettleOpenConfig(params).then(response=>{
  405. if(response.data.state == 1){
  406. this.$message.success("保存成功!")
  407. this.getInitIsOpenConfig()
  408. }
  409. })
  410. }
  411. },
  412. created() {
  413. this.getInitIsOpenConfig()
  414. // this.getMonitorConfig()
  415. // this.getOrderConfig()
  416. this.getDataPrintList()
  417. }
  418. };
  419. </script>
  420. <style lang="scss" scoped>
  421. .configBox{
  422. padding-bottom:20px;
  423. margin-top:10px;
  424. border-bottom: 1px solid #000;
  425. }
  426. </style>