Glasgow.vue 26KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791
  1. <template>
  2. <div class="patient-container">
  3. <patient-sidebar :id="patientID" defaultActive="5-13" @tran-patient="tranpatient"></patient-sidebar>
  4. <div>
  5. <div class="patient-app-container advice-container app-container">
  6. <div class="content_top">
  7. <!-- 左 -->
  8. <div style="width: 58%;">
  9. <div style="margin-bottom: 20px; display: flex;">
  10. <div style="flex:2" >
  11. <el-button type="primary" @click="Glas_add" v-if="Glasadd_show">新增</el-button>
  12. <el-button style="background:#00B6D7;color:white" @click="Glas_editor" v-if="Glas_gzdayin">编辑</el-button>
  13. <el-button type="danger" @click="Glas_dele" v-if="Glas_gzdayin">删除</el-button>
  14. <el-button type="success" @click="open_print=true" v-if="Glas_gzdayin">打印</el-button>
  15. </div>
  16. <div style="flex:1" v-if="Glas_baoxiao">
  17. <el-button type="primary" @click="Glas_save" v-if="qufen == false">保存</el-button>
  18. <el-button type="primary" @click="Glas_save2" v-if="qufen == true && dele_id != ''">保存1</el-button>
  19. <el-button @click="Glas_quxiao" >取消</el-button>
  20. </div>
  21. </div>
  22. <div style="font-size: 20px;margin-bottom: 20px;">Glasgow昏迷评分量表</div>
  23. <div style="width: 100%;">
  24. <table class="table" border="1" style="width: 100%;">
  25. <thead>
  26. <tr>
  27. <th style="width: 150px;">项目</th>
  28. <th>分值</th>
  29. </tr>
  30. </thead>
  31. <tbody>
  32. <tr class="bg_color">
  33. <td class="start">睁眼反应(E)</td>
  34. <td>
  35. <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
  36. <span v-for="item in zhengyan" class="ttbwzz-type-a" @change="handleCheckedCitiesChange(item)">
  37. <label><input type="checkbox" class="checkbox1" :value="item.value" v-model="item.is_check" />&nbsp;{{ item.label }}</label>
  38. </span>
  39. </div>
  40. </td>
  41. </tr>
  42. <tr>
  43. <td class="start">言语反映 (V)</td>
  44. <td>
  45. <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
  46. <span v-for="item in yanyu" class="ttbwzz-type-a" @change="yuyan_change(item)">
  47. <label><input type="checkbox" class="checkbox2" :value="item.value" v-model="item.is_check" />&nbsp;{{ item.label }}</label>
  48. </span>
  49. </div>
  50. </td>
  51. </tr>
  52. <tr class="bg_color">
  53. <td class="start">运动反应(M)</td>
  54. <td>
  55. <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
  56. <span v-for="item in yundong" class="ttbwzz-type-a" @change="yundong_change(item)">
  57. <label><input type="checkbox" class="checkbox3" :value="item.value" v-model="item.is_check" />&nbsp;{{ item.label }}</label>
  58. </span>
  59. </div>
  60. </td>
  61. </tr>
  62. </tbody>
  63. </table>
  64. </div>
  65. <div style="vertical-align: top; margin: 10px 0px; position: relative;">
  66. <span style="position: relative; top: -55px;">护理措施:</span>
  67. <div style="margin-top: 20px;display: inline-block; width: 85%;">
  68. <el-input maxlength="200" type = "textarea" :rows="3" v-model="glasgow_input" placeholder="输入护理措施,200字以内" ></el-input>
  69. </div>
  70. </div>
  71. <div>
  72. <div class="bottoms">
  73. <span>总分:</span>
  74. <el-input v-model="Glasgow_Totalpoints" style="width: 80px;"></el-input>分
  75. </div>
  76. <div class="bottoms">
  77. <span>评估日期:</span>
  78. <el-date-picker
  79. v-model="date"
  80. type="date"
  81. value-format="yyyy-MM-dd"
  82. placeholder="选择日期"
  83. :clearable="false"
  84. style="width: 150px;">
  85. </el-date-picker>
  86. </div>
  87. <div class="bottoms">
  88. <span>评估人:</span>
  89. <el-select v-model="Glas_pinggu" placeholder="请选择" style="width:120px;">
  90. <el-option
  91. v-for="item in pinggr"
  92. :key="item.id"
  93. :label="item.label"
  94. :value="item.id"
  95. >
  96. </el-option>
  97. </el-select>
  98. </div>
  99. </div>
  100. <div id="ctrl-xgtlpic-mask" class="readonly" data-text="图片操作的遮罩层" v-show="append == false"></div>
  101. <hr style=" background-color: #DCDFE6;margin-top: 20px; height: 1px;border: none;"/>
  102. <div class="shuoming">
  103. <p>说明:</p>
  104. <p>总分15分,其中 14-15分为正常,8-13分为中度意识障碍,≦7分为浅昏迷 ,3分为深昏迷 。</p>
  105. </div>
  106. </div>
  107. <!-- 虚线 -->
  108. <div style="height: 100vh; width: 1px; border-left:1px dashed #DCDFE6 ;"></div>
  109. <!-- 右 -->
  110. <div style="width: 38%;">
  111. <div style="font-size: 20px; margin-bottom: 20px;">评估历史记录</div>
  112. <div style="width: 100%;">
  113. <el-table
  114. :data="history_Glasgow"
  115. stripe
  116. border
  117. @row-click="glasgow_click"
  118. :highlight-current-row="true"
  119. :header-cell-style="{
  120. background: '#0077ff9f',color:'white'}"
  121. style="width: 100%">
  122. <el-table-column
  123. prop="date"
  124. label="评估日期"
  125. width="180">
  126. </el-table-column>
  127. <el-table-column
  128. prop="mark"
  129. label="总分"
  130. >
  131. </el-table-column>
  132. <el-table-column
  133. prop="evaluate"
  134. label="评估人"
  135. >
  136. </el-table-column>
  137. </el-table>
  138. </div>
  139. </div>
  140. </div>
  141. </div>
  142. <!-- 打印 -->
  143. <el-dialog
  144. title="提示"
  145. :visible.sync="open_print"
  146. width="67%"
  147. >
  148. <div>
  149. <el-button type="primary" @click="print_pingfen" style="float:right">打印</el-button>
  150. <div id="mingxi" >
  151. <div class="diedao_content" style="">
  152. <div style="width:100%;margin-top: 20px;">
  153. <div style="text-align: center;"><h1>血液透析中心跌倒评估记录</h1></div>
  154. <div style="margin-top: 20px;font-size: 16px;">
  155. <span>患者姓名:{{ Patient_info.name }}</span>
  156. <span>透析号:{{ Patient_info.dialysis_no }}</span>
  157. <span>评估日期:{{ date }}</span>
  158. <span>评估护士:{{ getpinggr(Glas_pinggu) }}</span>
  159. <span>总分:{{ Glasgow_Totalpoints }}</span>
  160. <span>打印时间:{{ dayintime }}</span>
  161. </div>
  162. <table class="tables" border="1" style="width: 100%;border-collapse: collapse;font-size: 16px;">
  163. <thead>
  164. <tr>
  165. <th style="width: 150px;padding: 5px;">项目</th>
  166. <th style="padding: 5px;">分值</th>
  167. </tr>
  168. </thead>
  169. <tbody>
  170. <tr class="bg_color">
  171. <td class="start">睁眼反应(E)</td>
  172. <td>
  173. <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
  174. <span v-for="item in zhengyan" class="ttbwzz-type-a" @change="handleCheckedCitiesChange(item)">
  175. <label><input type="checkbox" class="checkbox1" :value="item.value" v-model="item.is_check" />&nbsp;{{ item.label }}</label>
  176. </span>
  177. </div>
  178. </td>
  179. </tr>
  180. <tr>
  181. <td class="start">言语反映 (V)</td>
  182. <td>
  183. <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
  184. <span v-for="item in yanyu" class="ttbwzz-type-a" @change="yuyan_change(item)">
  185. <label><input type="checkbox" class="checkbox2" :value="item.value" v-model="item.is_check" />&nbsp;{{ item.label }}</label>
  186. </span>
  187. </div>
  188. </td>
  189. </tr>
  190. <tr class="bg_color">
  191. <td class="start">运动反应(M)</td>
  192. <td>
  193. <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
  194. <span v-for="item in yundong" class="ttbwzz-type-a" @change="yundong_change(item)">
  195. <label><input type="checkbox" class="checkbox3" :value="item.value" v-model="item.is_check" />&nbsp;{{ item.label }}</label>
  196. </span>
  197. </div>
  198. </td>
  199. </tr>
  200. </tbody>
  201. </table>
  202. <div style="vertical-align: top; margin: 10px 0px;">
  203. <span style=" top: -55px;">护理措施:</span>
  204. <div style="margin-top: 20px;display: inline-block; width: 85%;height: 80px;">
  205. {{ glasgow_input }}
  206. </div>
  207. </div>
  208. </div>
  209. </div>
  210. </div>
  211. </div>
  212. </el-dialog>
  213. </div>
  214. <!-- 删除弹窗 -->
  215. <el-dialog
  216. title="提示"
  217. :visible.sync="dele_dialogVisible"
  218. width="30%">
  219. <span>确认删除该数据</span>
  220. <span slot="footer" class="dialog-footer">
  221. <el-button @click="dele_Cancel">取 消</el-button>
  222. <el-button type="primary" @click="deleclick">确 定</el-button>
  223. </span>
  224. </el-dialog>
  225. </div>
  226. </template>
  227. <script>
  228. import PatientSidebar from '../components/PatientSidebar.vue'
  229. import { uParseTime } from '@/utils/tools'
  230. import {getAllNurseList,savePatientHpressuresore,getPatientBedlist,getPedPatientFallAssessmentById,deletePedPatientFallassment,updateBedPatientList} from '@/api/fallassement'
  231. export default {
  232. components:{
  233. PatientSidebar
  234. },
  235. data(){
  236. return{
  237. patientID:0,
  238. checkList:'',
  239. checkList1:'',
  240. checkList2:'',
  241. value1:'',
  242. value:'',
  243. input:'',
  244. zhengyan_num:null,
  245. yuyan_num:null,
  246. yundong_num:null,
  247. options:[],
  248. tableData:[],
  249. glasgow_input:'',
  250. limit:10,
  251. page:1,
  252. date:this.getTime(new Date()),
  253. zhengyan:[{value:4,label:'自动睁眼(4分)',is_check:false,check:0},{value:3,label:'互换睁眼(3分)',is_check:false,check:0},{value:2,label:'刺激睁眼(2分)',is_check:false,check:0},{value:1,label:'无反应(1分)',is_check:false,check:0}],
  254. yanyu:[{value:5,label:'正常(5分)',is_check:false,check:0},{value:4,label:'不准确回答问题(4分)',is_check:false,check:0},
  255. {value:3,label:'不恰当词句(3分)',is_check:false,check:0},{value:2,label:'不能理解的言语(2分)',is_check:false,check:0},{value:1,label:'无言语反映(1分)',is_check:false,check:0}],
  256. yundong:[{value:6,label:'能按指令运动肢体(6分)',is_check:false,check:0},{value:5,label:'对刺痛能定位(5分)',is_check:false,check:0},{value:4,label:'对刺痛能躲避(4分)',is_check:false,check:0},
  257. {value:3,label:'刺痛肢体屈曲(3分)',is_check:false,check:0},{value:2,label:'刺痛肢体过伸(2分)',is_check:false,check:0},{value:1,label:'无反应(1分)',is_check:false,check:0}],
  258. pinggr:[{id:1,label:'小米'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
  259. history_Glasgow:[],
  260. append:false,//显示遮罩层
  261. Glasadd_show:true,//显示新增
  262. Glas_gzdayin:false,//显示编辑删除
  263. Glas_baoxiao:false,//显示保存
  264. qufen:false,//区分新增保存和修改保存
  265. cancel_num:0,
  266. Glas_pinggu:null,
  267. open_print:false,
  268. dele_id:'',
  269. dele_dialogVisible:false,
  270. dayintime:this.getTime2(new Date()),
  271. glasgow_zong:0,
  272. Patient_info:{name:'',dialysis_no:''},
  273. }
  274. },
  275. created(){
  276. const id = this.$route.params && this.$route.params.id
  277. this.patientID = parseInt(id)
  278. this.getlist()
  279. },
  280. methods:{
  281. //睁眼
  282. handleCheckedCitiesChange(item){
  283. for(let i=0;i<this.zhengyan.length;i++){
  284. if(item.value == this.zhengyan[i].value){
  285. if(this.zhengyan[i].check == 0){
  286. this.zhengyan[i].check =1
  287. this.zhengyan[i].is_check = true
  288. this.zhengyan_num = item.value
  289. }else{
  290. this.zhengyan[i].check =0
  291. this.zhengyan[i].is_check = false
  292. this.zhengyan_num = 0
  293. }
  294. }else{
  295. this.zhengyan[i].check =0
  296. this.zhengyan[i].is_check = false
  297. }
  298. }
  299. },
  300. // 语言
  301. yuyan_change(item){
  302. for(let i=0;i<this.yanyu.length;i++){
  303. if(item.value == this.yanyu[i].value){
  304. if(this.yanyu[i].check == 0){
  305. this.yanyu[i].check =1
  306. this.yanyu[i].is_check = true
  307. this.yuyan_num = item.value
  308. }else{
  309. this.yanyu[i].check =0
  310. this.yanyu[i].is_check = false
  311. this.yuyan_num = 0
  312. }
  313. }else{
  314. this.yanyu[i].check =0
  315. this.yanyu[i].is_check = false
  316. }
  317. }
  318. },
  319. // 运动
  320. yundong_change(item){
  321. for(let i=0;i<this.yundong.length;i++){
  322. if(item.value == this.yundong[i].value){
  323. if(this.yundong[i].check == 0){
  324. this.yundong[i].check =1
  325. this.yundong[i].is_check = true
  326. this.yundong_num = item.value
  327. }else{
  328. this.yundong[i].check =0
  329. this.yundong[i].is_check = false
  330. this.yundong_num = 0
  331. }
  332. }else{
  333. this.yundong[i].check =0
  334. this.yundong[i].is_check = false
  335. }
  336. }
  337. },
  338. // 新增
  339. Glas_add(){
  340. this.cancel_num=0
  341. this.append=true
  342. this.Glas_baoxiao=true
  343. this.Glasadd_show =false
  344. this.Glas_gzdayin = false
  345. this.qufen = false
  346. },
  347. // 新增保存
  348. Glas_save(){
  349. if(this.Glas_pinggu==null){
  350. this.$message('请选择评估人')
  351. }else{
  352. this.Glasadd_show = true
  353. this.Glas_baoxiao = false
  354. this.Glas_gzdayin = true
  355. this.cancel_num = 1
  356. const data = {}
  357. var list = []
  358. data['zhengyan'] = this.zhengyan_num
  359. data['yanyu'] = this.yuyan_num
  360. data['yundong'] = this.yundong_num
  361. data['glasgow_input'] = this.glasgow_input
  362. data['Glas_pinggu'] = this.Glas_pinggu
  363. data['date'] = this.date
  364. data['total'] = this.Glasgow_Totalpoints
  365. list.push(data)
  366. var params={
  367. patient_id:this.patientID,
  368. record_date:this.date,
  369. is_type:11,
  370. list:list,
  371. }
  372. savePatientHpressuresore(params).then(response =>{
  373. if(response.data.state == 1){
  374. const Glasgow = response.data.data.pedFallssessment
  375. console.log('response.data.state',response.data.data.pedFallssessment);
  376. if(Glasgow.text !=''){
  377. var text = JSON.parse(Glasgow.text)
  378. const arr ={
  379. id:Glasgow.id,
  380. date:text.date,
  381. mark:text.total,
  382. evaluate:this.getpinggr(text.Glas_pinggu),
  383. list:text
  384. }
  385. this.history_Glasgow.push(arr)
  386. }
  387. }
  388. })
  389. // console.log('1111111',params);
  390. // const arr={
  391. // date:this.date,
  392. // mark:this.Glasgow_Totalpoints,
  393. // evaluate:this.Glas_pinggu
  394. // }
  395. // console.log('2121212',arr,params);
  396. // this.history_Glasgow.push(arr)
  397. // const Glalen=this.pinggr
  398. // const historylen = this.history_Glasgow
  399. // var pingguname =''
  400. // for(let x=0;x<historylen.length;x++){
  401. // historylen[x].mark = this.Glasgow_Totalpoints
  402. // for(let i=0;i<Glalen.length;i++){
  403. // if(this.Glas_pinggu==Glalen[i].id){
  404. // pingguname = Glalen[i].label
  405. // }
  406. // }
  407. // historylen[x].evaluate = pingguname
  408. // // return historylen[x].evaluate
  409. // }
  410. return this.history_Glasgow
  411. }
  412. },
  413. // 修改保存
  414. Glas_save2(){
  415. this.Glasadd_show = false
  416. this.Glas_baoxiao = true
  417. this.Glas_gzdayin = false
  418. this.cancel_num = 1
  419. const data = {}
  420. var list = []
  421. data['zhengyan'] = this.zhengyan_num
  422. data['yanyu'] = this.yuyan_num
  423. data['yundong'] = this.yundong_num
  424. data['glasgow_input'] = this.glasgow_input
  425. data['Glas_pinggu'] = this.Glas_pinggu
  426. data['date'] = this.date
  427. data['total'] = this.Glasgow_Totalpoints
  428. list.push(data)
  429. var params={
  430. patient_id:this.patientID,
  431. record_date:this.date,
  432. is_type:11,
  433. list:list,
  434. id:this.dele_id
  435. }
  436. updateBedPatientList(params).then(response =>{
  437. if(response.data.state == 1){
  438. const Glasgow = response.data.data.pedFallssessment
  439. console.log('response.data.state',response.data.data.pedFallssessment);
  440. if(Glasgow.text !=''){
  441. var text = JSON.parse(Glasgow.text)
  442. for(let i in this.history_Glasgow){
  443. if(Glasgow.id ==this.history_Glasgow[i].id){
  444. this.history_Glasgow[i].date = text.date
  445. this.history_Glasgow[i].mark = text.total
  446. this.history_Glasgow[i].evaluate = this.getpinggr(text.Glas_pinggu)
  447. this.history_Glasgow[i].glasgow_input = text.glasgow_input
  448. }
  449. }
  450. }
  451. this.Glasadd_show = true
  452. this.Glas_baoxiao = false
  453. this.Glas_gzdayin = true
  454. }
  455. })
  456. return this.history_Glasgow
  457. },
  458. // 编辑
  459. Glas_editor(){
  460. this.Glas_gzdayin=false
  461. this.Glas_baoxiao=true
  462. this.Glasadd_show=false
  463. this.cancel_num =1
  464. this.qufen = true
  465. },
  466. // 选中数据
  467. glasgow_click(row,column, event){
  468. this.dele_id=row.id
  469. // if(this.cancel_num == 1){
  470. // this.Glasadd_show = true
  471. // this.Glas_gzdayin = true
  472. // this.Glas_baoxiao = false
  473. // // this.append2 = false
  474. // }
  475. if(this.Glas_baoxiao == true){
  476. this.Glasadd_show = true
  477. this.Glas_gzdayin = true
  478. this.Glas_baoxiao = false
  479. this.qufen = false
  480. // this.append2 = false
  481. }
  482. getPedPatientFallAssessmentById(this.dele_id).then(response =>{
  483. if(response.data.state ==1){
  484. const glasgow = response.data.data.fallassessment
  485. // console.log('response.data.',response.data.data.fallassessment);
  486. if(glasgow.text !=''){
  487. const text =JSON.parse(glasgow.text)
  488. for(let i in this.zhengyan){
  489. if(text.zhengyan == this.zhengyan[i].value){
  490. this.zhengyan[i].is_check = true
  491. this.zhengyan[i].check = 1
  492. this.zhengyan_num = text.zhengyan
  493. }else{
  494. this.zhengyan[i].is_check = false
  495. this.zhengyan[i].check = 0
  496. }
  497. }
  498. for(let i in this.yanyu){
  499. if(text.yanyu == this.yanyu[i].value){
  500. this.yanyu[i].is_check = true
  501. this.yanyu[i].check = 1
  502. this.yuyan_num = text.yanyu
  503. }else{
  504. this.yanyu[i].is_check = false
  505. this.yanyu[i].check = 0
  506. }
  507. }
  508. for(let i in this.yundong){
  509. if(text.yundong == this.yundong[i].value){
  510. this.yundong[i].is_check = true
  511. this.yundong[i].check = 1
  512. this.yundong_num = text.yundong
  513. }else{
  514. this.yundong[i].is_check = false
  515. this.yundong[i].check = 0
  516. }
  517. }
  518. this.date = text.date
  519. this.Glas_pinggu = text.Glas_pinggu
  520. this.glasgow_input = text.glasgow_input
  521. this.Glasgow_Totalpoints =text.total
  522. }
  523. }
  524. })
  525. },
  526. // 删除
  527. Glas_dele(){
  528. if(this.dele_id !=''){
  529. this.append=false
  530. this.Glas_gzdayin=false
  531. this.Glasadd_show=true
  532. this.Glas_baoxiao=false
  533. this.cancel_num=0
  534. this.dele_dialogVisible=true
  535. }else{
  536. this.$message('请选择需要删除的记录')
  537. }
  538. },
  539. // 确认删除
  540. deleclick(){
  541. deletePedPatientFallassment(this.dele_id).then(response =>{
  542. if(response.data.state == 1){
  543. for(let i=0;i<this.history_Glasgow.length;i++){
  544. if(this.dele_id==this.history_Glasgow[i].id){
  545. this.history_Glasgow.splice(i,1)
  546. }
  547. }
  548. }
  549. })
  550. this.dele_dialogVisible=false
  551. return this.history_Glasgow
  552. },
  553. // 取消删除
  554. dele_Cancel(){
  555. this.append=false
  556. this.Glasadd_show=true
  557. this.Glas_gzdayin=true
  558. this.dele_dialogVisible=false
  559. },
  560. // 取消
  561. Glas_quxiao(){
  562. // console.log('1111',this.cancel_num);
  563. if(this.cancel_num==0){
  564. this.append=false
  565. this.Glasadd_show=true
  566. this.Glas_gzdayin=false
  567. this.Glas_baoxiao=false
  568. // return this.append
  569. }else{
  570. this.Glasadd_show=true
  571. this.Glas_gzdayin=true
  572. this.Glas_baoxiao=false
  573. this.append=true
  574. }
  575. for(let i in this.zhengyan){
  576. this.zhengyan[i].is_check = false
  577. this.zhengyan_num = 0
  578. }
  579. for(let i in this.yanyu){
  580. this.yanyu[i].is_check = false
  581. this.yuyan_num = 0
  582. }
  583. for(let i in this.yundong){
  584. this.yundong[i].is_check = false
  585. this.yundong_num = 0
  586. }
  587. this.Glas_pinggu = ''
  588. this.date =this.date
  589. this.glasgow_input = ''
  590. this.Glasgow_Totalpoints = 0
  591. // console.log('2222', this.apppend);
  592. },
  593. // 打印
  594. print_pingfen(){
  595. const style= '@media print {.diedao_content{background-color: white; width:960px; margin:0 auto; padding: 0 0 20px 0;} .tables thead th{ text-align: center;height: 40px;} .tables tbody td{height: 40px;padding:0 10px} .tables{font-size: 16px;}}'
  596. printJS({
  597. printable: 'mingxi',
  598. type: 'html',
  599. style: style,
  600. scanStyles: false
  601. })
  602. this.open_print=false
  603. },
  604. // 转换时间
  605. getTime(val) {
  606. if(val < 0){
  607. return ""
  608. }
  609. if(val == ""){
  610. return ""
  611. }else {
  612. return uParseTime(val, '{y}-{m}-{d}')
  613. }
  614. },
  615. getTime2(val) {
  616. if(val < 0){
  617. return ""
  618. }
  619. if(val == ""){
  620. return ""
  621. }else {
  622. return uParseTime(val, '{y}-{m}-{d} {h}:{i}:{s}')
  623. }
  624. },
  625. // 评估护士
  626. getpinggr(id){
  627. for(let i in this.pinggr){
  628. if(id == this.pinggr[i].id){
  629. return this.pinggr[i].label
  630. }
  631. }
  632. },
  633. // 数据源
  634. getlist(){
  635. var params = {
  636. patient_id:this.patientID,
  637. limit:this.limit,
  638. is_type:11,
  639. page:this.page,
  640. }
  641. getPatientBedlist(params).then(response=>{
  642. if(response.data.state ==1){
  643. var list = response.data.data.list
  644. list.forEach((item) => {
  645. if(item.text !=''){
  646. var text = JSON.parse(item.text)
  647. const arr ={
  648. id:item.id,
  649. date:text.date,
  650. mark:text.total,
  651. evaluate:this.getpinggr(text.Glas_pinggu),
  652. glasgow_input:text.glasgow_input,
  653. list:text
  654. }
  655. this.history_Glasgow.push(arr)
  656. }
  657. });
  658. var total = response.data.data.total
  659. console.log('list',list);
  660. }
  661. })
  662. return this.history_OH
  663. },
  664. // 患者信息
  665. tranpatient(event){
  666. console.log('event',event);
  667. this.Patient_info={
  668. name:event.name,
  669. dialysis_no:event.dialysis_no
  670. }
  671. },
  672. },
  673. computed:{
  674. Glasgow_Totalpoints:{
  675. get(){
  676. this.glasgow_zong = this.zhengyan_num*1 + this.yuyan_num*1 + this.yundong_num*1
  677. return this.glasgow_zong
  678. },
  679. set(val){
  680. return this.glasgow_zong = val
  681. }
  682. }
  683. }
  684. }
  685. </script>
  686. <style lang="scss" scoped>
  687. .content_top{
  688. display: flex;
  689. justify-content: space-between;
  690. }
  691. .bottoms{
  692. display: inline-block;
  693. margin-left: 10px;
  694. margin-top: 5px;
  695. }
  696. .shuoming p{
  697. margin-top: 5px;
  698. color: rgb(167, 165, 165);
  699. }
  700. .table{
  701. border: 1px solid #DCDFE6;
  702. border-collapse:collapse;
  703. border-spacing: 0;
  704. thead th{
  705. background: #0077ff9f;
  706. color: white;
  707. text-align: center;
  708. height: 40px;
  709. }
  710. tbody td{
  711. height: 40px;
  712. }
  713. .start{
  714. text-align: center;
  715. }
  716. .bing{
  717. width: 150px;
  718. text-align: center;
  719. }
  720. .bg_color{
  721. background: rgb(243, 240, 240);
  722. }
  723. .jiange{
  724. margin: 5px 0px 5px 20px;
  725. color: black;
  726. }
  727. .rightjiange{
  728. margin-right: 40px;
  729. font-size: 15px;
  730. }
  731. .ttbwzz-type-a {
  732. min-width: 80px;
  733. margin-right: 30px;
  734. padding: 5px 0px;
  735. font-size: 15px;
  736. }
  737. input{
  738. -webkit-appearance: checkbox;
  739. }
  740. }
  741. #ctrl-xgtlpic-mask.readonly {
  742. z-index: 2000;
  743. }
  744. #ctrl-xgtlpic-mask {
  745. width: 85%;
  746. height: 100%;
  747. position: absolute;
  748. left: 196px;
  749. top: 131px;
  750. opacity: 0;
  751. z-index: -1;
  752. }
  753. .tables {
  754. thead th{
  755. text-align: center;
  756. height: 40px;
  757. }
  758. tbody td{
  759. padding:0 10px;
  760. height: 40px;
  761. }
  762. input{
  763. -webkit-appearance: checkbox;
  764. }
  765. }
  766. </style>