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

basicConfig.vue 12KB

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