nourishmentAssessment.vue 27KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767
  1. <template>
  2. <div class="patient-container">
  3. <patient-sidebar :id="patientID" defaultActive="5-8" @tran-patient="tranpatient"></patient-sidebar>
  4. <div>
  5. <div class="patient-app-container advice-container app-container">
  6. <div class='content_top' style="width: 100%;margin-bottom: 20px;">
  7. <div style="font-size: 20px;text-align: center;">NRS-2002</div>
  8. <div>
  9. <el-button @click="nourishistory">历史评分</el-button>
  10. </div>
  11. </div>
  12. <div>
  13. <table class="table" border="1" style="width: 100%;margin-bottom: 20px;">
  14. <thead>
  15. <tr>
  16. <th colspan="2" style="text-align: left;padding-left: 5px;">疾病相关评分</th>
  17. </tr>
  18. </thead>
  19. <tbody>
  20. <tr class="bg_color">
  21. <td class="start yingyang">
  22. <el-radio v-model="radio" label="0" @change="handleCheckedCitiesChange">0分</el-radio>
  23. </td>
  24. <td class="saoyang wenzi_color">营养需要量无增加</td>
  25. </tr>
  26. <tr>
  27. <td class="start">
  28. <el-radio v-model="radio" label="1" @change="handleCheckedCitiesChange">1分</el-radio>
  29. </td>
  30. <td class="saoyang wenzi_color">
  31. 营养需要量轻度增加:
  32. <div >
  33. <span v-for="item in jibing_qdu" class="rightjiange">
  34. <label><input type="checkbox" :value='item.label' v-model='item.is_check' @click='jibing_q(item)' />&nbsp;{{ item.label }}</label>
  35. </span>
  36. <label><input type="checkbox" v-model='is_check1' @click='jibing_q2'/>&nbsp;
  37. <el-input v-model="qd_input" placeholder="" style="width: 120px;"></el-input>
  38. </label>
  39. </div>
  40. </td>
  41. </tr>
  42. <tr class="bg_color">
  43. <td class="start">
  44. <el-radio v-model="radio" label="2" @change="handleCheckedCitiesChange">2分</el-radio>
  45. </td>
  46. <td class="saoyang wenzi_color">
  47. 营养需要量中度增加:
  48. <div >
  49. <span v-for="item in jibing_zhdu" class="rightjiange" >
  50. <label><input type="checkbox" :value='item.label' v-model='item.is_check' @click="jibing_z(item)"/>&nbsp;{{ item.label }}</label>
  51. </span>
  52. <label><input type="checkbox" v-model="is_check2" @click="jibing_z2"/>&nbsp;
  53. <el-input v-model="zd_input" placeholder="" style="width: 120px;"></el-input>
  54. </label>
  55. </div>
  56. </td>
  57. </tr>
  58. <tr>
  59. <td class="start">
  60. <el-radio v-model="radio" label="3" @change="handleCheckedCitiesChange">3分</el-radio>
  61. </td>
  62. <td class="saoyang wenzi_color">
  63. 营养需要量重度增加:
  64. <div >
  65. <span v-for="item in jibing_zhongsdu" class="rightjiange" >
  66. <label><input type="checkbox" :value='item.label' v-model='item.is_check' @click="jibing_zz(item)"/>&nbsp;{{ item.label }}</label>
  67. </span>
  68. <label><input type="checkbox" v-model="is_check3" @click="jibing_zz2"/>&nbsp;
  69. <el-input v-model="zzd_input" placeholder="" style="width: 120px;"></el-input>
  70. </label>
  71. </div>
  72. </td>
  73. </tr>
  74. </tbody>
  75. </table>
  76. <table class="table" border="1" style="width: 100%;margin-bottom: 20px;">
  77. <thead>
  78. <tr>
  79. <th colspan="2" style="text-align: left;padding-left: 5px;">营养受损评分</th>
  80. </tr>
  81. </thead>
  82. <tbody>
  83. <tr class="bg_color">
  84. <td class="start yingyang">
  85. <el-radio v-model="radio1" label="0" @change="handleCheckedCitiesChange">0分</el-radio>
  86. </td>
  87. <td class="saoyang wenzi_color" >无营养受损</td>
  88. </tr>
  89. <tr>
  90. <td class="start">
  91. <el-radio v-model="radio1" label="1" @change="handleCheckedCitiesChange">1分</el-radio>
  92. </td>
  93. <td class="saoyang">
  94. <div >
  95. <span class="rightjiange" v-for="(item,index) in yingyang_qd" :key="index">
  96. <label><input type="checkbox" :value="item.label" v-model="item.is_check" @click="yingyang_q(item)"/>&nbsp;
  97. {{item.label}}
  98. </label>
  99. </span>
  100. </div>
  101. </td>
  102. </tr>
  103. <tr class="bg_color">
  104. <td class="start">
  105. <el-radio v-model="radio1" label="2" @change="handleCheckedCitiesChange">2分</el-radio>
  106. </td>
  107. <td class="saoyang">
  108. <div >
  109. <span class="rightjiange" v-for="(item,index) in yingyang_zd" :key="index">
  110. <label><input type="checkbox" :value="item.label" v-model="item.is_check" @click="yingyang_z(item)"/>&nbsp;
  111. {{item.label}}
  112. </label>
  113. </span>
  114. </div>
  115. </td>
  116. </tr>
  117. <tr>
  118. <td class="start">
  119. <el-radio v-model="radio1" label="3" @change="handleCheckedCitiesChange">3分</el-radio>
  120. </td>
  121. <td class="saoyang">
  122. <div >
  123. <span class="rightjiange" v-for="(item,index) in yingyang_zzd" :key="index">
  124. <label><input type="checkbox" :value="item.label" v-model="item.is_check" @click="yingyang_zz(item)"/>&nbsp;
  125. {{item.label}}
  126. </label>
  127. </span>
  128. </div>
  129. </td>
  130. </tr>
  131. </tbody>
  132. </table>
  133. <table class="table" border="1" style="width: 100%;">
  134. <thead>
  135. <tr>
  136. <th colspan="2" style="text-align: left;padding-left: 5px;">年龄评分</th>
  137. </tr>
  138. </thead>
  139. <tbody>
  140. <tr class="bg_color ">
  141. <td class="start yingyang">
  142. <el-radio v-model="radio2" label="0" @change="handleCheckedCitiesChange">0分</el-radio>
  143. </td>
  144. <td class="saoyang" style="font-size: 15px;">≤70岁</td>
  145. </tr>
  146. <tr>
  147. <td class="start yingyang">
  148. <el-radio v-model="radio2" label="1" @change="handleCheckedCitiesChange">1分</el-radio>
  149. </td>
  150. <td class="saoyang" style="font-size: 15px;">>70岁</td>
  151. </tr>
  152. </tbody>
  153. </table>
  154. </div>
  155. <div class="content_top" style="margin: 20px 0px;">
  156. <div>
  157. <div class="bottoms">
  158. <span>营养风险总评分:</span>
  159. <el-input v-model="nour_Totalpoints" style="width: 50px;"></el-input>分 (疾病相关评分+营养受损评分+年龄评分)
  160. </div>
  161. <div class="bottoms">
  162. <span>评估日期:</span>
  163. <el-date-picker
  164. v-model="yy_date"
  165. type="date"
  166. value-format="yyyy-MM-dd"
  167. placeholder="选择日期"
  168. :clearable="false"
  169. style="width: 150px;">
  170. </el-date-picker>
  171. </div>
  172. <div class="bottoms">
  173. <span>评估人:</span>
  174. <el-select v-model="yy_appraiser" placeholder="请选择" style="width:120px;">
  175. <el-option
  176. v-for="item in yy_options"
  177. :key="item.admin_user_id"
  178. :label="item.user_name"
  179. :value="item.admin_user_id"
  180. >
  181. </el-option>
  182. </el-select>
  183. </div>
  184. </div>
  185. <div>
  186. <el-button type="primary" @click="yy_onsbmit">确定</el-button>
  187. </div>
  188. </div>
  189. <p>说明:总分 ≥3分 通知医生</p>
  190. </div>
  191. </div>
  192. </div>
  193. </template>
  194. <script>
  195. import PatientSidebar from '../components/PatientSidebar.vue'
  196. import { uParseTime } from '@/utils/tools'
  197. import {savePatientHpressuresore} from '@/api/fallassement'
  198. export default {
  199. components:{
  200. PatientSidebar
  201. },
  202. data(){
  203. return{
  204. patientID:0,
  205. checkList:[],
  206. options:[],
  207. value:'',
  208. value1:'',
  209. input:'',
  210. radio:'',
  211. radio1:'',
  212. radio2:'',
  213. radio_val:null,
  214. radio1_val:null,
  215. radio2_val:null,
  216. qd_input:'',
  217. zd_input:'',
  218. zzd_input:'',
  219. is_check1:false,
  220. check1:0,
  221. is_check2:false,
  222. check2:0,
  223. is_check3:false,
  224. check3:0,
  225. yy_date:this.getTime(new Date()),
  226. Patient_info:{name:'',dialysis_no:''},
  227. yy_appraiser:'',
  228. yy_options:[{admin_user_id:1,user_name:'寒千落'},{admin_user_id:2,user_name:'千仞雪'},{admin_user_id:3,user_name:'千亦雪'}],
  229. jibq_show:[],
  230. jibz_show:[],
  231. jibzz_show:[],
  232. yyq_show:[],
  233. yyz_show:[],
  234. yyzz_show:[],
  235. jibing_qdu:[{id:1,is_check:false,check:0,label:'骸骨折'},{id:2,is_check:false,check:0,label:'慢性疾病急性发作或有'},{id:3,is_check:false,check:0,label:'COPD'},
  236. {id:4,is_check:false,check:0,label:'血液透析'},{id:5,is_check:false,check:0,label:'肝硬化'},
  237. {id:6,is_check:false,check:0,label:'一般恶性肿瘤患者'},{id:7,is_check:false,check:0,label:'糖尿病'}],
  238. jibing_zhdu:[{id:1,is_check:false,check:0,label:'腹部大手术'},{id:2,is_check:false,check:0,label:'脑卒中'},
  239. {id:3,is_check:false,check:0,label:'重度肺炎'},{id:4,is_check:false,check:0,label:'血液恶性肿瘤'}],
  240. jibing_zhongsdu:[{id:1,is_check:false,check:0,label:'颅脑损伤'},{id:2,is_check:false,check:0,label:'骨髓移植'},
  241. {id:3,is_check:false,check:0,label:'大于APACHE分的ICU患者'}],
  242. yingyang_qd:[{id:1,is_check:false,check:0,label:'3个月内体重下降>5%'},{id:2,is_check:false,check:0,label:'一周内进食量较从前减少25%-50%'}],
  243. yingyang_zd:[{id:1,is_check:false,check:0,label:'2个月内体重下降>5%'},{id:2,is_check:false,check:0,label:'一周内进食量较从前减少50%-75%'}],
  244. yingyang_zzd:[{id:1,is_check:false,check:0,label:'1个月内体重下降>5%'},{id:2,is_check:false,check:0,label:'一周内进食量较从前减少75%-100%'},
  245. {id:3,is_check:false,check:0,label:'体重指数(BMI)<18.5'},{id:4,is_check:false,check:0,label:'血蛋白<30g/L(得不到准确的BNI值时用白蛋白替代)'}],
  246. }
  247. },
  248. created(){
  249. const id = this.$route.params && this.$route.params.id
  250. this.patientID = parseInt(id)
  251. },
  252. methods:{
  253. // 选中分值
  254. handleCheckedCitiesChange(e){
  255. const ball=e * 1
  256. var qingdu = this.jibing_qdu
  257. var zhdu= this.jibing_zhdu
  258. var zhongdu = this.jibing_zhongsdu
  259. var yy_qd = this.yingyang_qd
  260. var yy_zd = this.yingyang_zd
  261. var yy_zzd = this.yingyang_zzd
  262. console.log('1111',e,this.radio);
  263. if(ball == this.radio){
  264. this.radio_val = ball
  265. if(this.radio == '0'){
  266. for(let i in qingdu){
  267. if(qingdu[i].check==1 || qingdu[i].is_check == true){
  268. qingdu[i].check=0
  269. qingdu[i].is_check = false
  270. }
  271. }
  272. if(this.is_check1 == true || this.check1 ==1){
  273. this.is_check1 = false
  274. this.check1 =0
  275. }
  276. for(let i in zhdu){
  277. if(zhdu[i].check==1 || zhdu[i].is_check == true){
  278. zhdu[i].check=0
  279. zhdu[i].is_check = false
  280. }
  281. }
  282. if(this.is_check2 == true || this.check2 ==1){
  283. this.is_check2 = false
  284. this.check2 =0
  285. }
  286. for(let i in zhongdu){
  287. if(zhongdu[i].check==1 || zhongdu[i].is_check == true){
  288. zhongdu[i].check=0
  289. zhongdu[i].is_check = false
  290. }
  291. }
  292. if(this.is_check3 == true || this.check3 ==1){
  293. this.is_check3 = false
  294. this.check3 =0
  295. }
  296. this.jibq_show.length = 0
  297. this.jibz_show.length = 0
  298. this.jibzz_show.length = 0
  299. }
  300. if(this.radio == '1'){
  301. for(let i in zhdu){
  302. if(zhdu[i].check==1 || zhdu[i].is_check == true){
  303. zhdu[i].check=0
  304. zhdu[i].is_check = false
  305. }
  306. }
  307. for(let i in zhongdu){
  308. if(zhongdu[i].check==1 || zhongdu[i].is_check == true){
  309. zhongdu[i].check=0
  310. zhongdu[i].is_check = false
  311. }
  312. }
  313. if(this.is_check2 == true || this.check2 ==1){
  314. this.is_check2 = false
  315. this.check2 =0
  316. }
  317. if(this.is_check3 == true || this.check3 ==1){
  318. this.is_check3 = false
  319. this.check3 =0
  320. }
  321. this.jibz_show.length = 0
  322. this.jibzz_show.length = 0
  323. }
  324. if(this.radio == '2'){
  325. for(let i in qingdu){
  326. if(qingdu[i].check==1 || qingdu[i].is_check == true){
  327. qingdu[i].check=0
  328. qingdu[i].is_check = false
  329. }
  330. }
  331. for(let i in zhongdu){
  332. if(zhongdu[i].check==1 || zhongdu[i].is_check == true){
  333. zhongdu[i].check=0
  334. zhongdu[i].is_check = false
  335. }
  336. }
  337. if(this.is_check1 == true || this.check1 ==1){
  338. this.is_check1 = false
  339. this.check1 =0
  340. }
  341. if(this.is_check3 == true || this.check3 ==1){
  342. this.is_check3 = false
  343. this.check3 =0
  344. }
  345. this.jibq_show.length = 0
  346. this.jibzz_show.length = 0
  347. }
  348. if(this.radio == '3'){
  349. for(let i in qingdu){
  350. if(qingdu[i].check==1 || qingdu[i].is_check == true){
  351. qingdu[i].check=0
  352. qingdu[i].is_check = false
  353. }
  354. }
  355. for(let i in zhdu){
  356. if(zhdu[i].check==1 || zhdu[i].is_check == true){
  357. zhdu[i].check=0
  358. zhdu[i].is_check = false
  359. }
  360. }
  361. if(this.is_check1 == true || this.check1 ==1){
  362. this.is_check1 = false
  363. this.check1 =0
  364. }
  365. if(this.is_check2 == true || this.check2 ==1){
  366. this.is_check2 = false
  367. this.check2 =0
  368. }
  369. this.jibq_show.length = 0
  370. this.jibz_show.length = 0
  371. }
  372. }
  373. if(e == this.radio1){
  374. this.radio1_val = ball
  375. if(this.radio1 == '0'){
  376. for(let i in yy_qd){
  377. if(yy_qd[i].check==1 || yy_qd[i].is_check == true){
  378. yy_qd[i].check=0
  379. yy_qd[i].is_check = false
  380. }
  381. }
  382. for(let i in yy_zd){
  383. if(yy_zd[i].check==1 || yy_zd[i].is_check == true){
  384. yy_zd[i].check=0
  385. yy_zd[i].is_check = false
  386. }
  387. }
  388. for(let i in yy_zzd){
  389. if(yy_zzd[i].check==1 || yy_zzd[i].is_check == true){
  390. yy_zzd[i].check=0
  391. yy_zzd[i].is_check = false
  392. }
  393. }
  394. this.yyq_show.length = 0
  395. this.yyz_show.length = 0
  396. this.yyzz_show.length = 0
  397. }
  398. if(this.radio1 == '1'){
  399. for(let i in yy_zd){
  400. if(yy_zd[i].check==1 || yy_zd[i].is_check == true){
  401. yy_zd[i].check=0
  402. yy_zd[i].is_check = false
  403. }
  404. }
  405. for(let i in yy_zzd){
  406. if(yy_zzd[i].check==1 || yy_zzd[i].is_check == true){
  407. yy_zzd[i].check=0
  408. yy_zzd[i].is_check = false
  409. }
  410. }
  411. this.yyz_show.length = 0
  412. this.yyzz_show.length = 0
  413. }
  414. if(this.radio1 == '2'){
  415. for(let i in yy_qd){
  416. if(yy_qd[i].check==1 || yy_qd[i].is_check == true){
  417. yy_qd[i].check=0
  418. yy_qd[i].is_check = false
  419. }
  420. }
  421. for(let i in yy_zzd){
  422. if(yy_zzd[i].check==1 || yy_zzd[i].is_check == true){
  423. yy_zzd[i].check=0
  424. yy_zzd[i].is_check = false
  425. }
  426. }
  427. this.yyq_show.length = 0
  428. this.yyzz_show.length = 0
  429. }
  430. if(this.radio1 == '3'){
  431. for(let i in yy_qd){
  432. if(yy_qd[i].check==1 || yy_qd[i].is_check == true){
  433. yy_qd[i].check=0
  434. yy_qd[i].is_check = false
  435. }
  436. }
  437. for(let i in yy_zd){
  438. if(yy_zd[i].check==1 || yy_zd[i].is_check == true){
  439. yy_zd[i].check=0
  440. yy_zd[i].is_check = false
  441. }
  442. }
  443. this.yyq_show.length = 0
  444. this.yyz_show.length = 0
  445. }
  446. }
  447. if(e == this.radio2){
  448. this.radio2_val = ball
  449. }
  450. },
  451. // 疾病轻度
  452. jibing_q(item){
  453. const qingdu = this.jibing_qdu
  454. for(let i in qingdu){
  455. if(item.label==qingdu[i].label){
  456. if(item.check==0){
  457. qingdu[i].is_check = true
  458. qingdu[i].check = 1
  459. this.jibq_show.push(item.id)
  460. }else{
  461. qingdu[i].is_check = false
  462. qingdu[i].check = 0
  463. if(this.jibq_show.length>0){
  464. for(let j in this.jibq_show){
  465. if(item.id == this.jibq_show[j]){
  466. let index = this.jibq_show.indexOf(this.jibq_show[j]);
  467. this.jibq_show.splice(index,1)
  468. }
  469. }
  470. }
  471. }
  472. }
  473. }
  474. },
  475. jibing_q2(){
  476. if(this.check1 ==0){
  477. this.is_check1 = true
  478. this.check1 = 1
  479. }else{
  480. this.is_check1 = false
  481. this.check1 = 0
  482. }
  483. },
  484. // 疾病中度
  485. jibing_z(item){
  486. const zdu = this.jibing_zhdu
  487. for(let i in zdu){
  488. if(item.label==zdu[i].label){
  489. console.log('aaaaa',item);
  490. if(item.check==0){
  491. zdu[i].is_check = true
  492. zdu[i].check = 1
  493. this.jibz_show.push(item.id)
  494. }else{
  495. zdu[i].is_check = false
  496. zdu[i].check = 0
  497. if(this.jibz_show.length>0){
  498. for(let j in this.jibz_show){
  499. if(item.id == this.jibz_show[j]){
  500. let index = this.jibz_show.indexOf(this.jibz_show[j]);
  501. this.jibz_show.splice(index,1)
  502. }
  503. }
  504. }
  505. }
  506. }
  507. }
  508. },
  509. jibing_z2(){
  510. if(this.check2 ==0){
  511. this.is_check2 = true
  512. this.check2 = 1
  513. }else{
  514. this.is_check2 = false
  515. this.check2 = 0
  516. }
  517. },
  518. // 疾病重度
  519. jibing_zz(item){
  520. const zhongdu = this.jibing_zhongsdu
  521. for(let i in zhongdu){
  522. if(item.label==zhongdu[i].label){
  523. console.log('aaaaa',zhongdu);
  524. if(item.check==0){
  525. zhongdu[i].is_check = true
  526. zhongdu[i].check = 1
  527. this.jibzz_show.push(item.id)
  528. }else{
  529. zhongdu[i].is_check = false
  530. zhongdu[i].check = 0
  531. if(this.jibzz_show.length>0){
  532. for(let j in this.jibzz_show){
  533. if(item.id == this.jibzz_show[j]){
  534. let index = this.jibzz_show.indexOf(this.jibzz_show[j]);
  535. this.jibzz_show.splice(index,1)
  536. }
  537. }
  538. }
  539. }
  540. }
  541. }
  542. },
  543. jibing_zz2(){
  544. if(this.check3 ==0){
  545. this.is_check3 = true
  546. this.check3 = 1
  547. }else{
  548. this.is_check3 = false
  549. this.check3 = 0
  550. }
  551. },
  552. // 营养轻度
  553. yingyang_q(item){
  554. const yy_qing = this.yingyang_qd
  555. for(let i in yy_qing){
  556. if(item.label==yy_qing[i].label){
  557. console.log('aaaaa',yy_qing);
  558. if(item.check==0){
  559. yy_qing[i].is_check = true
  560. yy_qing[i].check = 1
  561. this.yyq_show.push(item.id)
  562. }else{
  563. yy_qing[i].is_check = false
  564. yy_qing[i].check = 0
  565. if(this.yyq_show.length>0){
  566. for(let j in this.yyq_show){
  567. if(item.id == this.yyq_show[j]){
  568. let index = this.yyq_show.indexOf(this.yyq_show[j]);
  569. this.yyq_show.splice(index,1)
  570. }
  571. }
  572. }
  573. }
  574. }
  575. }
  576. },
  577. // 中度
  578. yingyang_z(item){
  579. const yy_zhdu = this.yingyang_zd
  580. for(let i in yy_zhdu){
  581. if(item.label==yy_zhdu[i].label){
  582. console.log('aaaaa',yy_zhdu);
  583. if(item.check==0){
  584. yy_zhdu[i].is_check = true
  585. yy_zhdu[i].check = 1
  586. this.yyz_show.push(item.id)
  587. }else{
  588. yy_zhdu[i].is_check = false
  589. yy_zhdu[i].check = 0
  590. if(this.yyz_show.length>0){
  591. for(let j in this.yyz_show){
  592. if(item.id == this.yyz_show[j]){
  593. let index = this.yyz_show.indexOf(this.yyz_show[j]);
  594. this.yyz_show.splice(index,1)
  595. }
  596. }
  597. }
  598. }
  599. }
  600. }
  601. },
  602. // 重度
  603. yingyang_zz(item){
  604. const yy_zzd = this.yingyang_zzd
  605. for(let i in yy_zzd){
  606. if(item.label==yy_zzd[i].label){
  607. console.log('aaaaa',yy_zzd);
  608. if(item.check==0){
  609. yy_zzd[i].is_check = true
  610. yy_zzd[i].check = 1
  611. this.yyzz_show.push(item.id)
  612. }else{
  613. yy_zzd[i].is_check = false
  614. yy_zzd[i].check = 0
  615. if(this.yyzz_show.length>0){
  616. for(let j in this.yyzz_show){
  617. if(item.id == this.yyzz_show[j]){
  618. let index = this.yyzz_show.indexOf(this.yyzz_show[j]);
  619. this.yyzz_show.splice(index,1)
  620. }
  621. }
  622. }
  623. }
  624. }
  625. }
  626. },
  627. // 转换时间
  628. getTime(val) {
  629. if(val < 0){
  630. return ""
  631. }
  632. if(val == ""){
  633. return ""
  634. }else {
  635. return uParseTime(val, '{y}-{m}-{d}')
  636. }
  637. },
  638. // 确认
  639. yy_onsbmit(){
  640. const data = {}
  641. const list = []
  642. data['radio'] = this.radio
  643. data['radio1'] = this.radio1
  644. data['radio2'] = this.radio2
  645. data['jibing_qdu'] = this.jibq_show
  646. data['jibing_zhdu'] = this.jibz_show
  647. data['jibing_zhongsdu'] = this.jibzz_show
  648. data['jb_qing'] = this.jibing_qdu
  649. data['jb_zhong'] = this.jibing_zhdu
  650. data['jb_zhingd'] = this.jibing_zhongsdu
  651. data['is_check1'] = this.is_check1
  652. data['is_check2'] = this.is_check2
  653. data['is_check3'] = this.is_check3
  654. data['yingyang_qd'] = this.yyq_show
  655. data['yingyang_zd'] = this.yyz_show
  656. data['yingyang_zzd'] = this.yyzz_show
  657. data['yiya_qd'] = this.yingyang_qd
  658. data['yiya_zd'] = this.yingyang_zd
  659. data['yiya_zzd'] = this.yingyang_zzd
  660. data['yy_date'] = this.yy_date
  661. data['yy_appraiser'] = this.yy_appraiser
  662. data['total'] = this.nour_Totalpoints
  663. data['qd_input'] = this.qd_input
  664. data['zd_input'] = this.zd_input
  665. data['zzd_input'] = this.zzd_input
  666. list .push(data)
  667. var params={
  668. patient_id:this.patientID,
  669. record_date:this.yy_date,
  670. is_type:6,
  671. list:list,
  672. }
  673. console.log('params---',params);
  674. savePatientHpressuresore(params).then(response =>{
  675. if(response.data.state == 1){
  676. const nour = response.data.data.pedFallssessment
  677. console.log('11111',nour)
  678. this.$message({message:'保存成功',type:'success'})
  679. }
  680. })
  681. },
  682. // 跳转历史
  683. nourishistory(){
  684. this.$router.push({
  685. path: '/patients/nourishment_history',
  686. query:{patient_id:this.patientID,
  687. Patient_info:this.Patient_info}
  688. })
  689. },
  690. // 患者信息
  691. tranpatient(event){
  692. console.log('event',event);
  693. this.Patient_info={
  694. name:event.name,
  695. dialysis_no:event.dialysis_no
  696. }
  697. },
  698. },
  699. computed:{
  700. nour_Totalpoints(){
  701. return this.radio_val + this.radio1_val + this.radio2_val
  702. }
  703. }
  704. }
  705. </script>
  706. <style lang="scss" scoped>
  707. .content_top{
  708. display: flex;
  709. justify-content: space-between;
  710. }
  711. .table{
  712. border: 1px solid #DCDFE6;
  713. border-collapse:collapse;
  714. border-spacing: 0;
  715. thead th{
  716. background: #0077ff9f;
  717. color: white;
  718. text-align: center;
  719. height: 40px;
  720. }
  721. tbody td{
  722. height: 40px;
  723. }
  724. .start{
  725. text-align: center;
  726. }
  727. .bing{
  728. width: 150px;
  729. text-align: center;
  730. }
  731. .bg_color{
  732. background: rgb(243, 240, 240);
  733. }
  734. .jiange{
  735. margin-left: 20px;
  736. color: black;
  737. }
  738. .rightjiange{
  739. margin-right: 40px;
  740. font-size: 15px;
  741. }
  742. input{
  743. -webkit-appearance: checkbox;
  744. }
  745. .saoyang{
  746. padding: 5px;
  747. }
  748. .yingyang{
  749. width: 8%;
  750. }
  751. }
  752. .bottoms{
  753. display: inline-block;
  754. margin-left: 10px;
  755. margin-top: 5px;
  756. }
  757. </style>