tumble_history.vue 69KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829
  1. <!-- 跌倒历史评分 -->
  2. <template>
  3. <div class="patient-container">
  4. <div class="patient-app-containers advice-container app-container">
  5. <div style="display: flex;margin-bottom: 20px;">
  6. <div style="width: 50%;">
  7. <el-button type="text" icon="el-icon-arrow-left" style="font-size: 18px;" @click="fanhui">返回</el-button>
  8. <div class="history">历史评分</div>
  9. </div>
  10. <div style="margin-left: 30%;">
  11. <el-button type="primary" @click="open_pingfen(1)">打印评分</el-button>
  12. <el-button type="primary" @click="open_pingfen(2)">打印明细</el-button>
  13. <!-- <el-button type="primary" @click="open_mingxi">打印明细</el-button> -->
  14. </div>
  15. </div>
  16. <div>
  17. <el-table
  18. ref="multipleTable"
  19. :data="tableData"
  20. @selection-change="handleSelectionChange"
  21. border
  22. tooltip-effect="dark"
  23. :header-cell-style="{
  24. background:'#4579c5',
  25. color:'#fff'
  26. }"
  27. style="width: 100%">
  28. <el-table-column type="selection" width="55" align="center">
  29. <template>
  30. </template>
  31. </el-table-column>
  32. <el-table-column prop="time" label="评估日期" width="150" align="center">
  33. <template slot-scope="scope">
  34. {{ getTime(scope.row.record_date) }}
  35. </template>
  36. </el-table-column>
  37. <el-table-column prop="mark" label="分数" width="100" align="center">
  38. <template slot-scope="scope">
  39. {{ scope.row.total }}
  40. </template>
  41. </el-table-column>
  42. <el-table-column prop="measures" label="护理措施" width="" align="center">
  43. <template slot-scope="scope">
  44. {{ scope.row.content }}
  45. </template>
  46. </el-table-column>
  47. <el-table-column prop="evaluate" label="评估护士" width="130" align="center">
  48. <template slot-scope="scope">
  49. {{ getAdminName(scope.row.admin_user_id) }}
  50. </template>
  51. </el-table-column>
  52. <el-table-column
  53. prop="address"
  54. label="操作"
  55. width="180"
  56. align="center"
  57. show-overflow-tooltip>
  58. <template slot-scope="scope">
  59. <el-button type="primary" icon="el-icon-edit-outline" @click="open_editor(scope.row)"></el-button>
  60. <el-button type="primary" icon="el-icon-delete" @click="delete_fall(scope.row,scope.$index)"></el-button>
  61. </template>
  62. </el-table-column>
  63. </el-table>
  64. <el-pagination
  65. @size-change="handleSizeChange"
  66. @current-change="handleCurrentChange"
  67. :page-sizes="[10, 20, 50, 100]"
  68. :page-size="10"
  69. background
  70. style="margin-top:20px;float: right"
  71. layout="total, sizes, prev, pager, next, jumper"
  72. :total="total"
  73. ></el-pagination>
  74. </div>
  75. </div>
  76. <!-- 打印评分 -->
  77. <el-dialog
  78. title="提示"
  79. :visible.sync="dialogVisible"
  80. width="67%"
  81. >
  82. <div>
  83. <div style="overflow: hidden;">
  84. <el-button type="primary" @click="print_pingfen(1)" style="float:right">打印</el-button>
  85. </div>
  86. <div id="pingfeng" >
  87. <div class="diedao_content" style="" v-for="(item,index) in multipleSelection" :key="index">
  88. <div style="width:100%;margin-top: 20px;">
  89. <div style="text-align: center;"><h1>血液透析中心跌倒评估记录</h1></div>
  90. <div style="margin-top: 20px;font-size: 16px;">
  91. <span>患者姓名:{{ patients.name }}</span>
  92. <span>透析号:{{ patients.dialysis_no }}</span>
  93. <span>打印时间:{{time_now}}</span>
  94. </div>
  95. <table class="tables" border="1" style="border-collapse:collapse;text-align:center;width:100%;font-size:16px">
  96. <tr>
  97. <td style="width:180px">评估日期</td>
  98. <td style="width:100px">分数</td>
  99. <td style="">护理措施</td>
  100. <td style="width:150px">评估护士</td>
  101. </tr>
  102. <tr>
  103. <td>{{getTime(item.record_date)}}</td>
  104. <td>{{item.total}}</td>
  105. <td>{{item.content}}</td>
  106. <td>{{getAdminName(item.admin_user_id)}}</td>
  107. </tr>
  108. </table>
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. <span slot="footer" class="dialog-footer">
  114. <el-button @click="dialogVisible = false">取 消</el-button>
  115. <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
  116. </span>
  117. </el-dialog>
  118. <!-- 打印明细 -->
  119. <el-dialog
  120. title="提示"
  121. :visible.sync="mingxi_dialogVisible"
  122. width="67%">
  123. <div>
  124. <div style="overflow: hidden;">
  125. <el-button type="primary" @click="print_pingfen(2)" style="float:right">打印</el-button>
  126. </div>
  127. <div id="mingxi" >
  128. <div class="diedao_content" style="" v-for="(item,index) in printList" :key="index">
  129. <div style="width:100%;margin-top: 20px;">
  130. <div style="text-align: center;"><h1>血液透析中心跌倒评估记录</h1></div>
  131. <div style="margin-top: 20px;font-size: 16px;">
  132. <span>患者姓名:{{ patients.name }}</span>
  133. <span>透析号:{{ patients.dialysis_no }}</span>
  134. <span>评估日期:{{getTime(item.record_date)}}</span>
  135. <span>评估护士:{{getAdminName(item.admin_user_id)}}</span>
  136. <span>总分: {{item.total}}
  137. </span>
  138. </div>
  139. <table class="tables" border style="width: 100%;border-collapse: collapse;font-size: 16px;">
  140. <thead>
  141. <tr>
  142. <th style="width: 20%;padding: 5px;">项目</th>
  143. <th style="padding: 5px;">分值</th>
  144. </tr>
  145. </thead>
  146. <tbody>
  147. <tr class="bg_color">
  148. <td class="start">年龄</td>
  149. <td>
  150. <div class="jiange">
  151. <span v-for="item in nianlin" class="rightjiange" @change="handleCheckedCitiesChange">
  152. <label><input type="checkbox" name="ball" :value="item.content" v-model="item.age_check"/>&nbsp;{{ item.content }}</label>
  153. </span>
  154. </div>
  155. </td>
  156. </tr>
  157. <tr>
  158. <td class="start">既往史</td>
  159. <td>
  160. <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
  161. <span v-for="item in jiwang" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
  162. <label><input type="checkbox" name="ball" :value="item.content" v-model="item.jiwang_check"/>&nbsp;{{ item.content }}</label>
  163. </span>
  164. </div>
  165. </td>
  166. </tr>
  167. <tr class="bg_color">
  168. <td class="start">意识状态</td>
  169. <td>
  170. <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
  171. <span v-for="item in yishizt" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
  172. <label><input type="checkbox" name="ball" :value="item.content" v-model="item.yishizt_check"/>&nbsp;{{ item.content }}</label>
  173. </span>
  174. </div>
  175. </td>
  176. </tr>
  177. <tr>
  178. <td class="start">感官</td>
  179. <td>
  180. <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
  181. <span v-for="item in ganguan" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
  182. <label><input type="checkbox" name="ball" :value="item.content" v-model="item.ganguan_check"/>&nbsp;{{ item.content }}</label>
  183. </span>
  184. </div>
  185. </td>
  186. </tr>
  187. <tr class="bg_color">
  188. <td class="start">身体状况</td>
  189. <td>
  190. <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
  191. <span v-for="item in shentizk" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
  192. <label><input type="checkbox" name="ball" :value="item.content" v-model="item.shentizk_check"/>&nbsp;{{ item.content }}</label>
  193. </span>
  194. </div>
  195. </td>
  196. </tr>
  197. <tr>
  198. <td class="start">使用药物</td>
  199. <td>
  200. <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
  201. <span v-for="item in syyaowu" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
  202. <label><input type="checkbox" name="ball" :value="item.content" v-model="item.syyaowu_check"/>&nbsp;{{ item.content }}</label>
  203. </span>
  204. </div>
  205. </td>
  206. </tr>
  207. <tr class="bg_color">
  208. <td class="start">排泄</td>
  209. <td>
  210. <div class="jiange">
  211. <span v-for="item in paixie" class="rightjiange" @change="handleCheckedCitiesChange">
  212. <label><input type="checkbox" name="ball" :value="item.content" v-model="item.paixie_check" />&nbsp;{{ item.content }}</label>
  213. </span>
  214. </div>
  215. </td>
  216. </tr>
  217. <tr>
  218. <td class="start">自理能力</td>
  219. <td>
  220. <div class="jiange">
  221. <span v-for="item in zilinl" class="rightjiange" @change="handleCheckedCitiesChange">
  222. <label><input type="checkbox" name="ball" :value="item.content" v-model="item.zilinl_check"/>&nbsp;{{ item.content }}</label>
  223. </span>
  224. </div>
  225. </td>
  226. </tr>
  227. </tbody>
  228. </table>
  229. <p><span>健康宣教:{{ item.textOne }} </span> </p>
  230. <p> <span>护理措施:{{ item.text }}</span></p>
  231. <p>
  232. <span>预防效果:</span>
  233. <span v-for="item in xiaoguo" class="rightjiange">
  234. <label><input type="checkbox" name="ball" value="volleyball" v-model="item.xiaoguo_check" />&nbsp;{{ item.content }}</label>
  235. </span>
  236. </p>
  237. <p>
  238. <span>透析间期跌倒事件:</span>
  239. <span class="rightjiange">日期:{{ getTime(item.ping_date) }}</span>
  240. <span v-for="item in touxidiedao" style="margin-right:10px">
  241. <label><input type="checkbox" name="ball" value="volleyball" v-model="item.touxidiedao_check"/>&nbsp{{ item.content }}</label>
  242. </span>
  243. </p>
  244. <p>
  245. 打印时间:{{ time_now }}
  246. </p>
  247. </div>
  248. </div>
  249. </div>
  250. </div>
  251. <span slot="footer" class="dialog-footer">
  252. <el-button @click="mingxi_dialogVisible = false">取 消</el-button>
  253. <el-button type="primary" @click="mingxi_dialogVisible = false">确 定</el-button>
  254. </span>
  255. </el-dialog>
  256. <!-- 编辑 -->
  257. <el-dialog
  258. title="编辑"
  259. :visible.sync="bianji_dialogVisible"
  260. width="75%">
  261. <div>
  262. <div style="width: 100%; ">
  263. <div style="margin-bottom: 50px;">
  264. <div class="biaotou content_top">
  265. <div>危险评估</div>
  266. <div style="color: black;">总分:{{ tumble_Totalpoints }}</div>
  267. </div>
  268. <table class="table" border style="width: 100%;">
  269. <thead>
  270. <tr>
  271. <th style="width: 20%;">项目</th>
  272. <th>分值</th>
  273. </tr>
  274. </thead>
  275. <tbody>
  276. <tr class="bg_color">
  277. <td class="start">年龄</td>
  278. <td>
  279. <div class="jiange">
  280. <span v-for="item in nianlin" class="rightjiange" @change="handleCheckedCitiesChange">
  281. <label><input type="checkbox" name="ball" :value="item.content" v-model="item.age_check"/>&nbsp;{{ item.content }}</label>
  282. </span>
  283. </div>
  284. </td>
  285. </tr>
  286. <tr>
  287. <td class="start">既往史</td>
  288. <td>
  289. <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
  290. <span v-for="item in jiwang" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
  291. <label><input type="checkbox" name="ball" :value="item.content" v-model="item.jiwang_check"/>&nbsp;{{ item.content }}</label>
  292. </span>
  293. </div>
  294. </td>
  295. </tr>
  296. <tr class="bg_color">
  297. <td class="start">意识状态</td>
  298. <td>
  299. <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
  300. <span v-for="item in yishizt" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
  301. <label><input type="checkbox" name="ball" :value="item.content" v-model="item.yishizt_check"/>&nbsp;{{ item.content }}</label>
  302. </span>
  303. </div>
  304. </td>
  305. </tr>
  306. <tr>
  307. <td class="start">感官</td>
  308. <td>
  309. <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
  310. <span v-for="item in ganguan" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
  311. <label><input type="checkbox" name="ball" :value="item.content" v-model="item.ganguan_check"/>&nbsp;{{ item.content }}</label>
  312. </span>
  313. </div>
  314. </td>
  315. </tr>
  316. <tr class="bg_color">
  317. <td class="start">身体状况</td>
  318. <td>
  319. <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
  320. <span v-for="item in shentizk" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
  321. <label><input type="checkbox" name="ball" :value="item.content" v-model="item.shentizk_check"/>&nbsp;{{ item.content }}</label>
  322. </span>
  323. </div>
  324. </td>
  325. </tr>
  326. <tr>
  327. <td class="start">使用药物</td>
  328. <td>
  329. <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
  330. <span v-for="item in syyaowu" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
  331. <label><input type="checkbox" name="ball" :value="item.content" v-model="item.syyaowu_check"/>&nbsp;{{ item.content }}</label>
  332. </span>
  333. </div>
  334. </td>
  335. </tr>
  336. <tr class="bg_color">
  337. <td class="start">排泄</td>
  338. <td>
  339. <div class="jiange">
  340. <span v-for="item in paixie" class="rightjiange" @change="handleCheckedCitiesChange">
  341. <label><input type="checkbox" name="ball" :value="item.content" v-model="item.paixie_check" />&nbsp;{{ item.content }}</label>
  342. </span>
  343. </div>
  344. </td>
  345. </tr>
  346. <tr>
  347. <td class="start">自理能力</td>
  348. <td>
  349. <div class="jiange">
  350. <span v-for="item in zilinl" class="rightjiange" @change="handleCheckedCitiesChange">
  351. <label><input type="checkbox" name="ball" :value="item.content" v-model="item.zilinl_check"/>&nbsp;{{ item.content }}</label>
  352. </span>
  353. </div>
  354. </td>
  355. </tr>
  356. </tbody>
  357. </table>
  358. </div>
  359. <div style="margin-bottom: 50px;">
  360. <div class="biaotou">
  361. <span>预防措施</span>
  362. </div>
  363. <div style="display: flex;">
  364. <div style="flex: 1;">
  365. <table class="table" border style="width: 100%;">
  366. <thead>
  367. <tr>
  368. <th style="width: 100%;">健康宣教</th>
  369. </tr>
  370. </thead>
  371. <tr>
  372. <td colspan="2" style="height: 40px;">
  373. <div style="width: 100%;height: 50vh; overflow: auto;border: none;">
  374. <table class="table table2" border style="width: 100%;">
  375. <tr>
  376. <td>
  377. <div class="xiaojige">
  378. <label><input type="checkbox" name="ball" value="volleyball" v-model="is_check"/>&nbsp;告知病人及家属病人有跌倒的危险</label>
  379. </div>
  380. </td>
  381. </tr>
  382. <tr class="bg_color">
  383. <td>
  384. <div class="xiaojige">
  385. <label><input type="checkbox" name="ball" value="volleyball" v-model="is_check_one"/>&nbsp;
  386. 告知家属24小时陪伴,尤其在患者活动锻炼时,应有人陪伴,若离开请与值班护士联系</label>
  387. </div>
  388. </td>
  389. </tr>
  390. <tr>
  391. <td>
  392. <div class="xiaojige">
  393. <label><input type="checkbox" name="ball" value="volleyball" v-model="is_check_two"/>&nbsp;
  394. 告知病人及家属病人关于药物作用的注意事项
  395. </label>
  396. </div>
  397. </td>
  398. </tr>
  399. <tr class="bg_color">
  400. <td>
  401. <div class="xiaojige">
  402. <label><input type="checkbox" name="ball" value="volleyball" v-model="is_check_three" />&nbsp;
  403. 穿合适的裤子,以免绊倒;穿防滑鞋</label>
  404. </div>
  405. </td>
  406. </tr>
  407. <tr>
  408. <td>
  409. <div class="xiaojige">
  410. <label><input type="checkbox" name="ball" value="volleyball" v-model="is_check_four"/>&nbsp;
  411. 告知患者改变体位欲活动时应遵循“三步曲”,即平卧30秒→双腿下垂30秒→行走,避免突然改变体位,
  412. 引起体位性低血压,特别是夜间
  413. </label>
  414. </div>
  415. </td>
  416. </tr>
  417. <tr class="bg_color">
  418. <td>
  419. <div class="xiaojige">
  420. <label><input type="checkbox" name="ball" value="volleyball" v-model="is_check_five"/>&nbsp;
  421. 如出现双眼发黑、下肢无力、行走不稳和不能移动时,立即原地坐/蹲下或靠墙,呼叫他人帮助
  422. </label>
  423. </div>
  424. </td>
  425. </tr>
  426. <tr>
  427. <td>
  428. <div class="xiaojige">
  429. <label>
  430. <input type="checkbox" name="ball" value="volleyball" v-model="is_check_six"/>&nbsp;指导病人使用病房及卫生间扶手
  431. </label><br>
  432. <label>
  433. <input type="checkbox" name="ball" value="volleyball" v-model="is_check_seven"/>&nbsp;其他有关告知
  434. </label>
  435. </div>
  436. </td>
  437. </tr>
  438. <tr v-for="item in list">
  439. <td>
  440. <div class="xiaojige">
  441. <label>
  442. <input type="checkbox" name="ball" value="volleyball" v-model="item.is_content_check"/>&nbsp;{{ item.content }}
  443. </label><br>
  444. </div>
  445. </td>
  446. </tr>
  447. </table>
  448. </div>
  449. </td>
  450. </tr>
  451. <tr>
  452. <td style="">
  453. <div class="jian">
  454. <el-button type="text" @click="add">+添加</el-button>
  455. </div>
  456. </td>
  457. </tr>
  458. </table>
  459. </div>
  460. <div style="flex: 1;">
  461. <table class="table" border style="width: 100%;">
  462. <thead>
  463. <tr>
  464. <th style="width: 100%;">护理措施</th>
  465. </tr>
  466. </thead>
  467. <tr>
  468. <td colspan="2" style="height: 40px;">
  469. <div style="width: 100%;height: 50vh; overflow: auto;border: none;">
  470. <table class="table table2" border style="width: 100%;">
  471. <tr>
  472. <td>
  473. <div class="xiaojige">
  474. <label><input type="checkbox" name="ball" value="volleyball" v-model="is_check_eight"/>&nbsp;在病人床头悬挂"防跌倒"、"防坠床"警示牌</label>
  475. </div>
  476. </td>
  477. </tr>
  478. <tr class="bg_color">
  479. <td>
  480. <div class="xiaojige">
  481. <label><input type="checkbox" name="ball" value="volleyball" v-model="is_check_night"/>&nbsp;呼叫器及用物放置病人易取处,教会使用呼叫器</label>
  482. </div>
  483. </td>
  484. </tr>
  485. <tr>
  486. <td>
  487. <div class="xiaojige">
  488. <label><input type="checkbox" name="ball" value="volleyball" v-model="is_check_ten"/>
  489. &nbsp;及时给予便器,床上(边)大小便
  490. </label>
  491. </div>
  492. </td>
  493. </tr>
  494. <tr class="bg_color">
  495. <td>
  496. <div class="xiaojige">
  497. <label><input type="checkbox" name="ball" value="volleyball" v-model="is_check_eleven"/>&nbsp;使用床档 </label>
  498. <label><input type="checkbox" name="ball" value="volleyball" v-model="is_check_twelve"/>&nbsp;使用约束带 </label>
  499. <label><input type="checkbox" name="ball" value="volleyball" v-model="is_check_thirteen"/>&nbsp;使用助行器 </label>
  500. </div>
  501. </td>
  502. </tr>
  503. <tr>
  504. <td>
  505. <div class="xiaojige">
  506. <label>
  507. <input type="checkbox" name="ball" value="volleyball" v-model="is_check_fourteen"/>&nbsp;需要时协助病人上、下床
  508. </label>
  509. <label>
  510. <input type="checkbox" name="ball" value="volleyball" v-model="is_check_fifteen"/>&nbsp;协助病人如厕
  511. </label>
  512. </div>
  513. </td>
  514. </tr>
  515. <tr class="bg_color">
  516. <td>
  517. <div class="xiaojige">
  518. <label>
  519. <input type="checkbox" name="ball" value="volleyball" v-model="is_check_sixteen"/>&nbsp;避免地面积水、湿滑
  520. </label>
  521. <label>
  522. <input type="checkbox" name="ball" value="volleyball" v-model="is_check_seventeen"/>&nbsp;消除床旁及通道障碍
  523. </label>
  524. </div>
  525. </td>
  526. </tr>
  527. <tr>
  528. <td>
  529. <div class="xiaojige">
  530. <label>
  531. <input type="checkbox" name="ball" value="volleyball" v-model="is_check_eighteen"/>&nbsp;病床调至合适高度
  532. </label>
  533. <label>
  534. <input type="checkbox" name="ball" value="volleyball" v-model="is_check_nineteen" />&nbsp;及时锁上病床及轮椅的轮轴
  535. </label>
  536. </div>
  537. </td>
  538. </tr>
  539. <tr v-for="item in listOne">
  540. <td>
  541. <div class="xiaojige">
  542. <label>
  543. <input type="checkbox" name="ball" value="volleyball" v-model="item.is_content_check_one"/>&nbsp;{{ item.contentOne }}
  544. </label><br>
  545. </div>
  546. </td>
  547. </tr>
  548. </table>
  549. </div>
  550. </td>
  551. </tr>
  552. <tr>
  553. <td style="">
  554. <div class="jian">
  555. <el-button type="text" @click="addOne">+添加</el-button>
  556. </div>
  557. </td>
  558. </tr>
  559. </table>
  560. </div>
  561. </div>
  562. </div>
  563. <div class="content_top">
  564. <div style="width: 49%;">
  565. <div class="biaotou">
  566. <span>预防效果</span>
  567. </div>
  568. <table class="table" border style="width: 100%;">
  569. <thead>
  570. <tr>
  571. <th style="width: 20%;">标题</th>
  572. <th>事件</th>
  573. </tr>
  574. </thead>
  575. <tbody>
  576. <tr>
  577. <td class="start">预防效果</td>
  578. <td>
  579. <div class="jiange">
  580. <span v-for="item in xiaoguo" class="rightjiange">
  581. <label><input type="checkbox" name="ball" value="volleyball" v-model="item.xiaoguo_check" />&nbsp;{{ item.content }}</label>
  582. </span>
  583. </div>
  584. </td>
  585. </tr>
  586. </tbody>
  587. </table>
  588. </div>
  589. <div style="">
  590. <div class="biaotou">
  591. <span>透析间期跌倒事件</span>
  592. </div>
  593. <table class="table" border style="width: 100%;">
  594. <thead>
  595. <tr>
  596. <th style="width: 20%;">标题</th>
  597. <th>事件</th>
  598. </tr>
  599. </thead>
  600. <tbody>
  601. <tr>
  602. <td class="start">透析间期跌倒事件</td>
  603. <td>
  604. <!-- <div style="display: inline-block;margin-right: 10px;">
  605. <span>日期:</span>
  606. <el-date-picker
  607. v-model="pingdate"
  608. type="date"
  609. placeholder="选择日期"
  610. :clearable="false"
  611. style="width: 150px;">
  612. </el-date-picker>
  613. </div>
  614. <div class="jiange" style="display: inline-block;">
  615. <span v-for="item in touxidiedao" class="rightjiange">
  616. <label><input type="checkbox" name="ball" value="volleyball" />&nbsp{{ item }}</label>
  617. </span>
  618. </div> -->
  619. <div style="display: flex;">
  620. <div style="flex: 1;">
  621. <span>日期:</span>
  622. <el-date-picker
  623. v-model="ping_date"
  624. type="date"
  625. format="yyyy-MM-dd"
  626. value-format="yyyy-MM-dd"
  627. placeholder="选择日期"
  628. :clearable="false"
  629. style="width: 140px;">
  630. </el-date-picker>
  631. </div>
  632. <div style="flex: 1;">
  633. <span v-for="item in touxidiedao" style="margin-right:10px">
  634. <label><input type="checkbox" name="ball" value="volleyball" v-model="item.touxidiedao_check"/>&nbsp{{ item.content }}</label>
  635. </span>
  636. </div>
  637. </div>
  638. </td>
  639. </tr>
  640. </tbody>
  641. </table>
  642. </div>
  643. </div>
  644. <div class="content_top" style="margin-top: 10px;">
  645. <div>
  646. <span>评估日期:</span>
  647. <el-date-picker
  648. v-model="record_date"
  649. type="date"
  650. placeholder="选择日期"
  651. :clearable="false"
  652. format="yyyy-MM-dd"
  653. value-format="yyyy-MM-dd"
  654. style="width: 150px;">
  655. </el-date-picker>
  656. </div>
  657. <div>
  658. <span>护士:</span>
  659. <el-select v-model="admin_user_id" placeholder="请选择" style="width:120px;">
  660. <el-option
  661. v-for="item in roleList"
  662. :key="item.admin_user_id"
  663. :label="item.user_name"
  664. :value="item.admin_user_id"
  665. >
  666. </el-option>
  667. </el-select>
  668. </div>
  669. <el-button type="primary" @click="toDialog">确认</el-button>
  670. </div>
  671. </div>
  672. </div>
  673. </el-dialog>
  674. <!--删除 -->
  675. <el-dialog
  676. title="提示"
  677. :visible.sync="delete_centerDialogVisible"
  678. width="20%"
  679. center>
  680. <span>是否删除该记录</span>
  681. <span slot="footer" class="dialog-footer">
  682. <el-button @click="delete_centerDialogVisible = false">取 消</el-button>
  683. <el-button type="primary" @click="delete_tumble">确 定</el-button>
  684. </span>
  685. </el-dialog>
  686. <!-- 添加弹窗页面 -->
  687. <el-dialog
  688. title="添加"
  689. :visible.sync="add_centerDialogVisible"
  690. width="30%"
  691. center>
  692. <span>
  693. <el-input
  694. type="textarea"
  695. :autosize="{ minRows: 4, maxRows: 6}"
  696. placeholder="请输入需要添加的内容.."
  697. v-model="content">
  698. </el-input>
  699. </span>
  700. <span slot="footer" class="dialog-footer">
  701. <el-button @click="add_centerDialogVisible = false">取 消</el-button>
  702. <el-button type="primary" @click="add_tumble">确 定</el-button>
  703. </span>
  704. </el-dialog>
  705. <!-- 添加弹窗页面 -->
  706. <el-dialog
  707. title="添加"
  708. :visible.sync="add_centerDialogVisible_one"
  709. width="30%"
  710. center>
  711. <span>
  712. <el-input
  713. type="textarea"
  714. :autosize="{ minRows: 4, maxRows: 6}"
  715. placeholder="请输入需要添加的内容.."
  716. v-model="contentOne">
  717. </el-input>
  718. </span>
  719. <span slot="footer" class="dialog-footer">
  720. <el-button @click="add_centerDialogVisible_one = false">取 消</el-button>
  721. <el-button type="primary" @click="add_tumble_one">确 定</el-button>
  722. </span>
  723. </el-dialog>
  724. </div>
  725. </template>
  726. <script>
  727. const moment = require('moment')
  728. import print from 'print-js'
  729. import {getPatientFallsessmentList,getPatientFallssessmentById,DeletePatientFallassessment,updatePatientFallassment,getPatientFallaessmentListByIds,getPatientFallaessmentListOne} from '@/api/fallassement'
  730. import { uParseTime } from "@/utils/tools";
  731. export default{
  732. data(){
  733. return{
  734. tableData:[],
  735. multipleSelection:[],
  736. dialogVisible:false,
  737. mingxi_dialogVisible:false,
  738. bianji_dialogVisible:false,
  739. delete_centerDialogVisible:false,
  740. add_centerDialogVisible:false,
  741. add_centerDialogVisible_one:false,
  742. row:'',
  743. pingdate:'',
  744. Nurse:'',
  745. input:'',
  746. tumble_Totalpoints:0,
  747. options:[],
  748. checkList:[],
  749. centerDialogVisible:false,
  750. textarea2:'',
  751. nianlin:[{id:1,age_check:false,content:"≥65岁(1分)",is_status:2},{id:2,age_check:false,content:"<65(0分)",is_status:2}],
  752. jiwang:[{id:1,jiwang_check:false,content:"有跌倒史(2分)",is_status:2},{id:2,jiwang_check:false,content:"有坠床史(2分)",is_status:2} ,{id:3,jiwang_check:false,content:"晕厥(2分)",is_status:2},{id:4,jiwang_check:false,content:"低血压(2分)",is_status:2}],
  753. yishizt:[{id:1,yishizt_check:false,content:"烦躁(4分)",is_status:2},{id:2,yishizt_check:false,content:"谵妄(3分)",is_status:2}, {id:3,yishizt_check:false,content:"嗜睡(2分)",is_status:2},{id:4,yishizt_check:false,content:"模糊(2分)",is_status:2},{id:5,yishizt_check:false,content:"痴呆(2分)",is_status:2},{id:6,yishizt_check:false,content:"昏迷(1分)",is_status:2}],
  754. ganguan:[{id:1,ganguan_check:false,content:"头晕(4分)",is_status:2},{id:2,ganguan_check:false,content:"视觉障碍(2分)",is_status:2},{id:3,ganguan_check:false,content:"听力障碍(2分)",is_status:2}],
  755. shentizk:[{id:1,shentizk_check:false,content:"借助器械(3分)",is_status:2},{id:2,shentizk_check:false,content:"肢体残缺(3分)",is_status:2},{id:3,shentizk_check:false,content:"偏瘫(3分)",is_status:2},{id:4,shentizk_check:false,content:"肌肉震颤麻痹(2分)",is_status:2},{id:5,shentizk_check:false,content:"截瘫(3分)",is_status:2},{id:6,shentizk_check:false,content:"乏力(1分)",is_status:2},{id:7,shentizk_check:false,content:"关节僵硬、变形、疼痛(3分)",is_status:2},{id:8,shentizk_check:false,content:"失眠(1分)",is_status:2}],
  756. syyaowu:[{id:1,syyaowu_check:false,content:"镇静安眠药(2分)",is_status:2},{id:2,syyaowu_check:false,content:"降压药(1分)",is_status:2},{id:3,syyaowu_check:false,content:"降糖药(1分)",is_status:2},{id:4,syyaowu_check:false,content:"其他高危药物(1分)",is_status:2}],
  757. paixie:[{id:1,paixie_check:false,content:"便秘(2分)",is_status:2},{id:2,paixie_check:false,content:"腹泻(1分)",is_status:2},{id:3,paixie_check:false,content:"尿频(1分)",is_status:2}],
  758. zilinl:[{id:1,zilinl_check:false,content:"无(4分)",is_status:2},{id:2,zilinl_check:false,content:"部分(3分)",is_status:2}],
  759. xiaoguo:[{id:1,xiaoguo_check:false,content:"未发生跌倒",is_status:2},{id:2,xiaoguo_check:false,content:"发生跌倒",is_status:2},{id:3,xiaoguo_check:false,content:"发生坠床",is_status:2}],
  760. touxidiedao:[{id:1,touxidiedao_check:false,content:"发生跌倒",is_status:2},{id:2,touxidiedao_check:false,content:"发生坠床",is_status:2}],
  761. page:1,
  762. limit:10,
  763. total:0,
  764. roleList:[],
  765. list:[],
  766. content:"",
  767. contentOne:"",
  768. listOne:[],
  769. is_check:false,
  770. is_check_one:false,
  771. is_check_two:false,
  772. is_check_three:false,
  773. is_check_four:false,
  774. is_check_five:false,
  775. is_check_six:false,
  776. is_check_seven:false,
  777. is_check_eight:false,
  778. is_check_night:false,
  779. is_check_ten:false,
  780. is_check_eleven:false,
  781. is_check_twelve:false,
  782. is_check_thirteen:false,
  783. is_check_fourteen:false,
  784. is_check_fifteen:false,
  785. is_check_sixteen:false,
  786. is_check_seventeen:false,
  787. is_check_eighteen:false,
  788. is_check_nineteen:false,
  789. nurseList:[],
  790. admin_user_id:"",
  791. record_date:"",
  792. ping_date:"",
  793. id:0,
  794. index:0,
  795. fallassesment_id:0,
  796. ids:[],
  797. patients:{},
  798. time_now:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
  799. printList:[]
  800. }
  801. },
  802. methods:{
  803. fanhui(){
  804. window.history.go(-1);
  805. },
  806. handleSelectionChange(val) {
  807. if(val!=null && val.length>0){
  808. for(let i=0;i<val.length;i++){
  809. this.ids.push(val[i].id)
  810. }
  811. }
  812. },
  813. open_pingfen(ids){
  814. console.log("this.multipleSelection", this.ids)
  815. if(ids ==1){
  816. if(this.ids.length==0){
  817. this.$message('请选择需要打印的记录')
  818. return
  819. }
  820. var params = {
  821. ids:this.ids.join(","),
  822. patient_id:this.$route.query.patient_id,
  823. }
  824. console.log("params----",params)
  825. getPatientFallaessmentListByIds(params).then(response=>{
  826. if(response.data.state ==1){
  827. var list = response.data.data.list
  828. this.patients = response.data.data.patients
  829. for(let i=0;i<list.length;i++){
  830. list[i].content =""
  831. if(list[i].is_check_eight ==1){
  832. list[i].content = "在病人床头悬挂'防跌倒'、'防坠床'警示牌"
  833. }
  834. if(list[i].is_check_night == 1){
  835. list[i].content = list[i].content + "呼叫器及用物放置病人易取处,教会使用呼叫器"
  836. }
  837. if(list[i].is_check_ten == 1){
  838. list[i].content = list[i].content + "及时给予便器,床上(边)大小便"
  839. }
  840. if(list[i].is_check_eleven == 1){
  841. list[i].content = list[i].content + "使用床档"
  842. }
  843. if(list[i].is_check_twelve == 1){
  844. list[i].content = list[i].content + "使用约束带"
  845. }
  846. if(list[i].is_check_thirteen == 1){
  847. list[i].content = list[i].content + "使用助行器"
  848. }
  849. if(list[i].is_check_fourteen == 1){
  850. list[i].content = list[i].content + "需要时协助病人上、下床"
  851. }
  852. if(list[i].is_check_fourteen == 1){
  853. list[i].content = list[i].content + "协助病人如厕"
  854. }
  855. if(list[i].is_check_sixteen == 1){
  856. list[i].content = list[i].content + "避免地面积水、湿滑"
  857. }
  858. if(list[i].is_check_seventeen == 1){
  859. list[i].content = list[i].content + "消除床旁及通道障碍"
  860. }
  861. if(list[i].is_check_eighteen == 1){
  862. list[i].content = list[i].content + "病床调至合适高度"
  863. }
  864. if(list[i].is_check_nineteen == 1){
  865. list[i].content = list[i].content + "及时锁上病床及轮椅的轮轴"
  866. }
  867. }
  868. console.log("list=-====",list)
  869. this.multipleSelection =list
  870. this.dialogVisible = true
  871. }
  872. })
  873. }
  874. if(ids ==2){
  875. if(this.ids.length==0){
  876. this.$message('请选择需要打印的记录')
  877. return
  878. }
  879. var params = {
  880. ids:this.ids.join(","),
  881. patient_id:this.$route.query.patient_id,
  882. }
  883. console.log("params----",params)
  884. getPatientFallaessmentListOne(params).then(response=>{
  885. if(response.data.state ==1){
  886. var list = response.data.data.list
  887. this.patients = response.data.data.patients
  888. for(let i=0;i<list.length;i++){
  889. list[i].text =""
  890. list[i].textOne = ""
  891. if(list[i].is_check == 1){
  892. list[i].textOne= "告知病人及家属病人有跌倒的危险"
  893. }
  894. if(list[i].is_check_one == 1){
  895. list[i].textOne= list[i].textOne + "告知家属24小时陪伴,尤其在患者活动锻炼时,应有人陪伴,若离开请与值班护士联系"
  896. }
  897. if(list[i].is_check_two == 1){
  898. list[i].textOne= list[i].textOne + "告知病人及家属病人关于药物作用的注意事项"
  899. }
  900. if(list[i].is_check_three == 1){
  901. list[i].textOne= list[i].textOne + "穿合适的裤子,以免绊倒;穿防滑鞋"
  902. }
  903. if(list[i].is_check_five == 1){
  904. list[i].textOne= list[i].textOne + "如出现双眼发黑、下肢无力、行走不稳和不能移动时,立即原地坐/蹲下或靠墙,呼叫他人帮助"
  905. }
  906. if(list[i].is_check_six == 1){
  907. list[i].textOne= list[i].textOne + "指导病人使用病房及卫生间扶手"
  908. }
  909. if(list[i].is_check_seven == 1){
  910. list[i].textOne= list[i].textOne + "其他有关告知"
  911. }
  912. if(list[i].is_check_four == 1){
  913. list[i].textOne= list[i].textOne + " 告知患者改变体位欲活动时应遵循“三步曲”,即平卧30秒→双腿下垂30秒→行走,避免突然改变体位,引起体位性低血压,特别是夜间"
  914. }
  915. if(list[i].is_check_eight ==1){
  916. list[i].text = "在病人床头悬挂'防跌倒'、'防坠床'警示牌"
  917. }
  918. if(list[i].is_check_night == 1){
  919. list[i].text = list[i].text + "呼叫器及用物放置病人易取处,教会使用呼叫器"
  920. }
  921. if(list[i].is_check_ten == 1){
  922. list[i].text = list[i].text + "及时给予便器,床上(边)大小便"
  923. }
  924. if(list[i].is_check_eleven == 1){
  925. list[i].text = list[i].text + "使用床档"
  926. }
  927. if(list[i].is_check_twelve == 1){
  928. list[i].text = list[i].text + "使用约束带"
  929. }
  930. if(list[i].is_check_thirteen == 1){
  931. list[i].text = list[i].text + "使用助行器"
  932. }
  933. if(list[i].is_check_fourteen == 1){
  934. list[i].text = list[i].text + "需要时协助病人上、下床"
  935. }
  936. if(list[i].is_check_fourteen == 1){
  937. list[i].text = list[i].text + "协助病人如厕"
  938. }
  939. if(list[i].is_check_sixteen == 1){
  940. list[i].text = list[i].text + "避免地面积水、湿滑"
  941. }
  942. if(list[i].is_check_seventeen == 1){
  943. list[i].text = list[i].text + "消除床旁及通道障碍"
  944. }
  945. if(list[i].is_check_eighteen == 1){
  946. list[i].text = list[i].text + "病床调至合适高度"
  947. }
  948. if(list[i].is_check_nineteen == 1){
  949. list[i].text = list[i].text + "及时锁上病床及轮椅的轮轴"
  950. }
  951. if(list[i]&&list[i].content!=undefined){
  952. var arr = JSON.parse(list[i].content)
  953. this.nianlin = []
  954. this.nianlin = arr
  955. }
  956. if(list[i]&&list[i].content_one!=undefined){
  957. var arr = JSON.parse(list[i].content_one)
  958. this.jiwang = []
  959. this.jiwang = arr
  960. }
  961. if(list[i]&&list[i].content_two!=undefined){
  962. var arr = JSON.parse(list[i].content_two)
  963. this.yishizt = []
  964. this.yishizt = arr
  965. }
  966. if(list[i]&&list[i].content_three!=undefined){
  967. var arr = JSON.parse(list[i].content_three)
  968. this.ganguan = []
  969. this.ganguan = arr
  970. }
  971. if(list[i]&&list[i].content_four!=undefined){
  972. var arr = JSON.parse(list[i].content_four)
  973. this.shentizk = []
  974. this.shentizk = arr
  975. }
  976. if(list[i]&&list[i].content_five!=undefined){
  977. var arr = JSON.parse(list[i].content_five)
  978. this.syyaowu = []
  979. this.syyaowu = arr
  980. }
  981. if(list[i]&&list[i].content_six!=undefined){
  982. var arr = JSON.parse(list[i].content_six)
  983. this.paixie = []
  984. this.paixie = arr
  985. }
  986. if(list[i]&&list[i].content_seven!=undefined){
  987. var arr = JSON.parse(list[i].content_seven)
  988. this.zilinl = []
  989. this.zilinl = arr
  990. }
  991. if(list[i]&&list[i].content_eight!=undefined){
  992. var arr = JSON.parse(list[i].content_eight)
  993. this.xiaoguo = []
  994. this.xiaoguo = arr
  995. }
  996. if(list[i]&&list[i].content_night!=undefined){
  997. var arr = JSON.parse(list[i].content_night)
  998. this.touxidiedao = []
  999. this.touxidiedao = arr
  1000. }
  1001. if(list[i]&&list[i].content_add!=undefined){
  1002. var arr = JSON.parse(list[i].content_add)
  1003. this.list = []
  1004. this.list = arr
  1005. }
  1006. if(list[i]&&list[i].content_add_one!=undefined){
  1007. var arr = JSON.parse(list[i].content_add_one)
  1008. this.listOne = []
  1009. this.listOne = arr
  1010. }
  1011. this.printList =list
  1012. this.mingxi_dialogVisible = true
  1013. }
  1014. }
  1015. })
  1016. }
  1017. },
  1018. print_pingfen(ids){
  1019. const style= '@media print {.diedao_content{background-color: white; width:960px; margin:0 auto; padding: 0 0 20px 0;} .table tr td{padding:5px}}'
  1020. if(ids==1){
  1021. printJS({
  1022. printable: 'pingfeng',
  1023. type: 'html',
  1024. style: style,
  1025. scanStyles: false
  1026. })
  1027. this.dialogVisible=false
  1028. }
  1029. if(ids==2){
  1030. printJS({
  1031. printable: 'mingxi',
  1032. type: 'html',
  1033. style: style,
  1034. scanStyles: false
  1035. })
  1036. this.mingxi_dialogVisible=false
  1037. }
  1038. },
  1039. open_editor(row){
  1040. getPatientFallssessmentById(row.id).then(response=>{
  1041. if(response.data.state==1){
  1042. var patientFallsessment = response.data.data.patientFallsessment
  1043. this.tumble_Totalpoints = ""
  1044. this.tumble_Totalpoints = patientFallsessment.total
  1045. this.record_date = this.getTime(patientFallsessment.record_date)
  1046. this.ping_date = this.getTime(patientFallsessment.ping_date)
  1047. this.fallassesment_id = patientFallsessment.id
  1048. this.patient_id = patientFallsessment.patient_id
  1049. this.admin_user_id = patientFallsessment.admin_user_id
  1050. if(patientFallsessment.is_check ==1){
  1051. this.is_check =true
  1052. }
  1053. if(patientFallsessment.is_check ==2){
  1054. this.is_check =false
  1055. }
  1056. if(patientFallsessment.is_check_one ==1){
  1057. this.is_check_one =true
  1058. }
  1059. if(patientFallsessment.is_check_one ==2){
  1060. this.is_check_one =false
  1061. }
  1062. if(patientFallsessment.is_check_two ==1){
  1063. this.is_check_two =true
  1064. }
  1065. if(patientFallsessment.is_check_two ==2){
  1066. this.is_check_two =false
  1067. }
  1068. if(patientFallsessment.is_check_three ==1){
  1069. this.is_check_three =true
  1070. }
  1071. if(patientFallsessment.is_check_three ==2){
  1072. this.is_check_three =false
  1073. }
  1074. if(patientFallsessment.is_check_four ==1){
  1075. this.is_check_four =true
  1076. }
  1077. if(patientFallsessment.is_check_four ==2){
  1078. this.is_check_four =false
  1079. }
  1080. if(patientFallsessment.is_check_five ==1){
  1081. this.is_check_five =true
  1082. }
  1083. if(patientFallsessment.is_check_five ==2){
  1084. this.is_check_five =false
  1085. }
  1086. if(patientFallsessment.is_check_six ==1){
  1087. this.is_check_six =true
  1088. }
  1089. if(patientFallsessment.is_check_six ==2){
  1090. this.is_check_six =false
  1091. }
  1092. if(patientFallsessment.is_check_seven ==1){
  1093. this.is_check_seven =true
  1094. }
  1095. if(patientFallsessment.is_check_seven ==2){
  1096. this.is_check_seven =false
  1097. }
  1098. if(patientFallsessment.is_check_eight ==1){
  1099. this.is_check_eight =true
  1100. }
  1101. if(patientFallsessment.is_check_eight ==2){
  1102. this.is_check_eight =false
  1103. }
  1104. if(patientFallsessment.is_check_night ==1){
  1105. this.is_check_night =true
  1106. }
  1107. if(patientFallsessment.is_check_night ==2){
  1108. this.is_check_night =false
  1109. }
  1110. if(patientFallsessment.is_check_ten ==1){
  1111. this.is_check_ten =true
  1112. }
  1113. if(patientFallsessment.is_check_ten ==2){
  1114. this.is_check_ten =false
  1115. }
  1116. if(patientFallsessment.is_check_eleven ==1){
  1117. this.is_check_eleven =true
  1118. }
  1119. if(patientFallsessment.is_check_eleven ==2){
  1120. this.is_check_eleven =false
  1121. }
  1122. if(patientFallsessment.is_check_twelve ==1){
  1123. this.is_check_twelve =true
  1124. }
  1125. if(patientFallsessment.is_check_twelve ==2){
  1126. this.is_check_twelve =false
  1127. }
  1128. if(patientFallsessment.is_check_thirteen ==1){
  1129. this.is_check_thirteen =true
  1130. }
  1131. if(patientFallsessment.is_check_thirteen ==2){
  1132. this.is_check_thirteen =false
  1133. }
  1134. if(patientFallsessment.is_check_fourteen ==1){
  1135. this.is_check_fourteen =true
  1136. }
  1137. if(patientFallsessment.is_check_fourteen ==2){
  1138. this.is_check_fourteen =false
  1139. }
  1140. if(patientFallsessment.is_check_fifteen ==1){
  1141. this.is_check_fifteen =true
  1142. }
  1143. if(patientFallsessment.is_check_fifteen ==2){
  1144. this.is_check_fifteen =false
  1145. }
  1146. if(patientFallsessment.is_check_sixteen ==1){
  1147. this.is_check_sixteen =true
  1148. }
  1149. if(patientFallsessment.is_check_sixteen ==2){
  1150. this.is_check_sixteen =false
  1151. }
  1152. if(patientFallsessment.is_check_seventeen ==1){
  1153. this.is_check_seventeen =true
  1154. }
  1155. if(patientFallsessment.is_check_seventeen ==2){
  1156. this.is_check_seventeen =false
  1157. }
  1158. if(patientFallsessment.is_check_eighteen ==1){
  1159. this.is_check_eighteen =true
  1160. }
  1161. if(patientFallsessment.is_check_eighteen ==2){
  1162. this.is_check_eighteen =false
  1163. }
  1164. if(patientFallsessment.is_check_nineteen ==1){
  1165. this.is_check_nineteen =true
  1166. }
  1167. if(patientFallsessment.is_check_nineteen ==2){
  1168. this.is_check_nineteen =false
  1169. }
  1170. if(patientFallsessment&&patientFallsessment.content!=undefined){
  1171. var arr = JSON.parse(patientFallsessment.content)
  1172. this.nianlin = []
  1173. this.nianlin = arr
  1174. }
  1175. if(patientFallsessment&&patientFallsessment.content_one!=undefined){
  1176. var arr = JSON.parse(patientFallsessment.content_one)
  1177. this.jiwang = []
  1178. this.jiwang = arr
  1179. }
  1180. if(patientFallsessment&&patientFallsessment.content_two!=undefined){
  1181. var arr = JSON.parse(patientFallsessment.content_two)
  1182. this.yishizt = []
  1183. this.yishizt = arr
  1184. }
  1185. if(patientFallsessment&&patientFallsessment.content_three!=undefined){
  1186. var arr = JSON.parse(patientFallsessment.content_three)
  1187. this.ganguan = []
  1188. this.ganguan = arr
  1189. }
  1190. if(patientFallsessment&&patientFallsessment.content_four!=undefined){
  1191. var arr = JSON.parse(patientFallsessment.content_four)
  1192. this.shentizk = []
  1193. this.shentizk = arr
  1194. }
  1195. if(patientFallsessment&&patientFallsessment.content_five!=undefined){
  1196. var arr = JSON.parse(patientFallsessment.content_five)
  1197. this.syyaowu = []
  1198. this.syyaowu = arr
  1199. }
  1200. if(patientFallsessment&&patientFallsessment.content_six!=undefined){
  1201. var arr = JSON.parse(patientFallsessment.content_six)
  1202. this.paixie = []
  1203. this.paixie = arr
  1204. }
  1205. if(patientFallsessment&&patientFallsessment.content_seven!=undefined){
  1206. var arr = JSON.parse(patientFallsessment.content_seven)
  1207. this.zilinl = []
  1208. this.zilinl = arr
  1209. }
  1210. if(patientFallsessment&&patientFallsessment.content_eight!=undefined){
  1211. var arr = JSON.parse(patientFallsessment.content_eight)
  1212. this.xiaoguo = []
  1213. this.xiaoguo = arr
  1214. }
  1215. if(patientFallsessment&&patientFallsessment.content_night!=undefined){
  1216. var arr = JSON.parse(patientFallsessment.content_night)
  1217. this.touxidiedao = []
  1218. this.touxidiedao = arr
  1219. }
  1220. if(patientFallsessment&&patientFallsessment.content_add!=undefined){
  1221. var arr = JSON.parse(patientFallsessment.content_add)
  1222. this.list = []
  1223. this.list = arr
  1224. }
  1225. if(patientFallsessment&&patientFallsessment.content_add_one!=undefined){
  1226. var arr = JSON.parse(patientFallsessment.content_add_one)
  1227. this.listOne = []
  1228. this.listOne = arr
  1229. }
  1230. console.log("透析跌倒",this.touxidiedao)
  1231. console.log("xiaoguo",this.xiaoguo)
  1232. this.bianji_dialogVisible=true
  1233. console.log('1111',row);
  1234. }
  1235. })
  1236. },
  1237. delete_fall(row,index){
  1238. this.id = row.id
  1239. this.index = index
  1240. this.delete_centerDialogVisible=true
  1241. },
  1242. delete_tumble(){
  1243. DeletePatientFallassessment(this.id).then(response=>{
  1244. if(response.data.state ==1){
  1245. var msg = response.data.data.msg
  1246. this.tableData.splice(this.index,1)
  1247. this.$message.success("删除成功!")
  1248. this.delete_centerDialogVisible = false
  1249. }
  1250. })
  1251. this.delete_centerDialogVisible=false
  1252. },
  1253. add_tumble(){
  1254. var obj = {is_content_check:false,content:"",is_status:2}
  1255. obj.content = this.content
  1256. this.list.push(obj)
  1257. this.content =""
  1258. this.add_centerDialogVisible = false
  1259. },
  1260. add(){
  1261. this.add_centerDialogVisible = true
  1262. },
  1263. addOne(){
  1264. this.add_centerDialogVisible_one = true
  1265. },
  1266. add_tumble_one(){
  1267. var obj = {is_content_check_one:false,contentOne:"",is_status:2}
  1268. obj.contentOne = this.contentOne
  1269. this.listOne.push(obj)
  1270. this.add_centerDialogVisible_one = false
  1271. },
  1272. handleCheckedCitiesChange(e){
  1273. var ball = e.target.value
  1274. var jiequ =(ball.split('(')[1].split('分')[0]) * 1
  1275. if(e.target.checked==true){
  1276. this.tumble_Totalpoints=this.tumble_Totalpoints + jiequ
  1277. return this.tumble_Totalpoints
  1278. }else{
  1279. this.tumble_Totalpoints=this.tumble_Totalpoints-jiequ
  1280. return this.tumble_Totalpoints
  1281. }
  1282. },
  1283. erci_editor(){
  1284. this.bianji_dialogVisible=false
  1285. },
  1286. getPatientFallsessmentList(){
  1287. var params = {
  1288. limit:this.limit,
  1289. page:this.page,
  1290. patient_id:this.$route.query.patient_id
  1291. }
  1292. getPatientFallsessmentList(params).then(response=>{
  1293. if(response.data.state ==1){
  1294. var list = response.data.data.list
  1295. if(list!=null && list.length >0){
  1296. for(let i=0;i<list.length;i++){
  1297. list[i].content =""
  1298. if(list[i].is_check_eight ==1){
  1299. list[i].content = "在病人床头悬挂'防跌倒'、'防坠床'警示牌"
  1300. }
  1301. if(list[i].is_check_night == 1){
  1302. list[i].content = list[i].content + "呼叫器及用物放置病人易取处,教会使用呼叫器"
  1303. }
  1304. if(list[i].is_check_ten == 1){
  1305. list[i].content = list[i].content + "及时给予便器,床上(边)大小便"
  1306. }
  1307. if(list[i].is_check_eleven == 1){
  1308. list[i].content = list[i].content + "使用床档"
  1309. }
  1310. if(list[i].is_check_twelve == 1){
  1311. list[i].content = list[i].content + "使用约束带"
  1312. }
  1313. if(list[i].is_check_thirteen == 1){
  1314. list[i].content = list[i].content + "使用助行器"
  1315. }
  1316. if(list[i].is_check_fourteen == 1){
  1317. list[i].content = list[i].content + "需要时协助病人上、下床"
  1318. }
  1319. if(list[i].is_check_fourteen == 1){
  1320. list[i].content = list[i].content + "协助病人如厕"
  1321. }
  1322. if(list[i].is_check_sixteen == 1){
  1323. list[i].content = list[i].content + "避免地面积水、湿滑"
  1324. }
  1325. if(list[i].is_check_seventeen == 1){
  1326. list[i].content = list[i].content + "消除床旁及通道障碍"
  1327. }
  1328. if(list[i].is_check_eighteen == 1){
  1329. list[i].content = list[i].content + "病床调至合适高度"
  1330. }
  1331. if(list[i].is_check_nineteen == 1){
  1332. list[i].content = list[i].content + "及时锁上病床及轮椅的轮轴"
  1333. }
  1334. }
  1335. }
  1336. this.tableData = list
  1337. var total= response.data.data.total
  1338. this.total = total
  1339. var roleList = response.data.data.roleList
  1340. this.roleList = roleList
  1341. }
  1342. })
  1343. },
  1344. handleSizeChange(limit){
  1345. this.limit = limit
  1346. this.getPatientFallsessmentList()
  1347. },
  1348. handleCurrentChange(page){
  1349. this.page = page;
  1350. this.getPatientFallsessmentList();
  1351. },
  1352. getTime(val) {
  1353. if(val < 0){
  1354. return ""
  1355. }
  1356. if(val == ""){
  1357. return ""
  1358. }else {
  1359. return uParseTime(val, '{y}-{m}-{d}')
  1360. }
  1361. },
  1362. getAdminName(admin_user_id){
  1363. var user_name =""
  1364. for(let i=0;i<this.roleList.length;i++){
  1365. if(admin_user_id == this.roleList[i].admin_user_id){
  1366. user_name = this.roleList[i].user_name
  1367. }
  1368. }
  1369. return user_name
  1370. },
  1371. toDialog(){
  1372. var is_check =2
  1373. if(this.is_check == false){
  1374. is_check =2
  1375. }
  1376. if(this.is_check == true){
  1377. is_check =1
  1378. }
  1379. var is_check_one =2
  1380. if(this.is_check_one == false){
  1381. is_check_one = 2
  1382. }
  1383. if(this.is_check_one == true){
  1384. is_check_one = 1
  1385. }
  1386. var is_check_two =2
  1387. if(this.is_check_two == false){
  1388. is_check_two =2
  1389. }
  1390. if(this.is_check_two == true){
  1391. is_check_two = 1
  1392. }
  1393. var is_check_three =2
  1394. if(this.is_check_three == false){
  1395. is_check_three =2
  1396. }
  1397. if(this.is_check_three == true){
  1398. is_check_three = 1
  1399. }
  1400. var is_check_four =2
  1401. if(this.is_check_four == false){
  1402. is_check_four =2
  1403. }
  1404. if(this.is_check_four == true){
  1405. is_check_four = 1
  1406. }
  1407. var is_check_five = 2
  1408. if(this.is_check_five == false){
  1409. is_check_five =2
  1410. }
  1411. if(this.is_check_five == true){
  1412. is_check_five =1
  1413. }
  1414. var is_check_six= 2
  1415. if(this.is_check_six == false){
  1416. is_check_six =2
  1417. }
  1418. if(this.is_check_six == true){
  1419. is_check_six =1
  1420. }
  1421. var is_check_seven= 2
  1422. if(this.is_check_seven == false){
  1423. is_check_seven =2
  1424. }
  1425. if(this.is_check_seven == true){
  1426. is_check_seven =1
  1427. }
  1428. var is_check_eight= 2
  1429. if(this.is_check_eight == false){
  1430. is_check_eight =2
  1431. }
  1432. if(this.is_check_eight == true){
  1433. is_check_eight =1
  1434. }
  1435. var is_check_night= 2
  1436. if(this.is_check_night == false){
  1437. is_check_night =2
  1438. }
  1439. if(this.is_check_night == true){
  1440. is_check_night =1
  1441. }
  1442. var is_check_ten= 2
  1443. if(this.is_check_ten == false){
  1444. is_check_ten =2
  1445. }
  1446. if(this.is_check_ten == true){
  1447. is_check_ten =1
  1448. }
  1449. var is_check_eleven= 2
  1450. if(this.is_check_eleven == false){
  1451. is_check_eleven =2
  1452. }
  1453. if(this.is_check_eleven == true){
  1454. is_check_eleven =1
  1455. }
  1456. var is_check_twelve= 2
  1457. if(this.is_check_twelve == false){
  1458. is_check_twelve =2
  1459. }
  1460. if(this.is_check_twelve == true){
  1461. is_check_twelve =1
  1462. }
  1463. var is_check_thirteen= 2
  1464. if(this.is_check_thirteen == false){
  1465. is_check_thirteen =2
  1466. }
  1467. if(this.is_check_thirteen == true){
  1468. is_check_thirteen =1
  1469. }
  1470. var is_check_fourteen= 2
  1471. if(this.is_check_fourteen == false){
  1472. is_check_fourteen =2
  1473. }
  1474. if(this.is_check_fourteen == true){
  1475. is_check_fourteen =1
  1476. }
  1477. var is_check_fifteen= 2
  1478. if(this.is_check_fifteen == false){
  1479. is_check_fifteen =2
  1480. }
  1481. if(this.is_check_fifteen == true){
  1482. is_check_fifteen =1
  1483. }
  1484. var is_check_sixteen= 2
  1485. if(this.is_check_sixteen == false){
  1486. is_check_sixteen =2
  1487. }
  1488. if(this.is_check_sixteen == true){
  1489. is_check_sixteen =1
  1490. }
  1491. var is_check_seventeen= 2
  1492. if(this.is_check_seventeen == false){
  1493. is_check_seventeen =2
  1494. }
  1495. if(this.is_check_seventeen == true){
  1496. is_check_seventeen =1
  1497. }
  1498. var is_check_eighteen= 2
  1499. if(this.is_check_eighteen == false){
  1500. is_check_eighteen =2
  1501. }
  1502. if(this.is_check_eighteen == true){
  1503. is_check_eighteen =1
  1504. }
  1505. var is_check_nineteen= 2
  1506. if(this.is_check_nineteen == false){
  1507. is_check_nineteen =2
  1508. }
  1509. if(this.is_check_nineteen == true){
  1510. is_check_nineteen =1
  1511. }
  1512. var record_date = this.record_date
  1513. var ping_date = this.ping_date
  1514. var params = {
  1515. is_age:JSON.stringify(this.nianlin),//年龄
  1516. is_jiwang:JSON.stringify(this.jiwang),//既往史
  1517. is_yishizt:JSON.stringify(this.yishizt),//意识状态
  1518. is_ganguan:JSON.stringify(this.ganguan),//感官
  1519. is_shentizk:JSON.stringify(this.shentizk),// 身体状况
  1520. is_syyaowu:JSON.stringify(this.syyaowu),//使用药物
  1521. is_paixie:JSON.stringify(this.paixie),//排泄
  1522. is_zilin:JSON.stringify(this.zilinl), //自理能力
  1523. is_xiaoguo:JSON.stringify(this.xiaoguo),//预防效果
  1524. is_touxidiedao:JSON.stringify(this.touxidiedao),//透析跌倒
  1525. list:JSON.stringify(this.list),
  1526. listOne:JSON.stringify(this.listOne),
  1527. record_date:record_date,
  1528. ping_date:ping_date,
  1529. admin_user_id:this.admin_user_id,
  1530. is_check:is_check,
  1531. is_check_one:is_check_one,
  1532. is_check_two:is_check_two,
  1533. is_check_three:is_check_three,
  1534. is_check_four:is_check_four,
  1535. is_check_five:is_check_five,
  1536. is_check_six:is_check_six,
  1537. is_check_seven:is_check_seven,
  1538. is_check_eight:is_check_eight,
  1539. is_check_night:is_check_night,
  1540. is_check_ten:is_check_ten,
  1541. is_check_eleven:is_check_eleven,
  1542. is_check_twelve:is_check_twelve,
  1543. is_check_thirteen:is_check_thirteen,
  1544. is_check_fourteen:is_check_fourteen,
  1545. is_check_fifteen:is_check_fifteen,
  1546. is_check_sixteen:is_check_sixteen,
  1547. is_check_seventeen:is_check_seventeen,
  1548. is_check_eighteen:is_check_eighteen,
  1549. is_check_nineteen:is_check_nineteen,
  1550. patient_id:this.patient_id,
  1551. total:this.tumble_Totalpoints,
  1552. id:this.fallassesment_id,
  1553. }
  1554. console.log("paramas---------",params)
  1555. updatePatientFallassment(params).then(response=>{
  1556. if(response.data.state==1){
  1557. var patientFallassessment = response.data.data.patientFallassessment
  1558. this.$message.success("保存成功!")
  1559. this.bianji_dialogVisible=false
  1560. this.getPatientFallsessmentList()
  1561. }
  1562. })
  1563. }
  1564. },
  1565. created(){
  1566. this.getPatientFallsessmentList()
  1567. }
  1568. }
  1569. </script>
  1570. <style lang="scss" scoped>
  1571. .patient-app-containers {
  1572. margin-left: 10px;
  1573. margin-right: 10px;
  1574. background: #fff;
  1575. }
  1576. .history{
  1577. display: inline-block;
  1578. border-left:2px solid gray ;
  1579. padding: 0 10px;
  1580. margin-left:10px;
  1581. color: gray;
  1582. font-size: 18px;
  1583. }
  1584. .diedao_content{
  1585. background-color: white;
  1586. width:960px;
  1587. margin:0 auto;
  1588. padding: 0 0 20px 0;
  1589. }
  1590. .tables tr td{
  1591. padding:5px,
  1592. }
  1593. input{
  1594. -webkit-appearance: checkbox;
  1595. }
  1596. p{
  1597. margin: 10px 0;
  1598. font-size: 16px;
  1599. .rightjiange{
  1600. margin-right: 40px;
  1601. // font-size: 15px;
  1602. }
  1603. }
  1604. .content_top{
  1605. display: flex;
  1606. justify-content: space-between;
  1607. }
  1608. .table{
  1609. border: 1px solid #DCDFE6;
  1610. border-collapse:collapse;
  1611. border-spacing: 0;
  1612. thead th{
  1613. background: #0077ff9f;
  1614. color: white;
  1615. text-align: center;
  1616. height: 40px;
  1617. }
  1618. tbody td{
  1619. height: 40px;
  1620. padding: 5px;
  1621. }
  1622. .start{
  1623. text-align: center;
  1624. }
  1625. .bing{
  1626. width: 150px;
  1627. text-align: center;
  1628. }
  1629. .bg_color{
  1630. background: rgb(243, 240, 240);
  1631. }
  1632. .jiange{
  1633. margin-left: 20px;
  1634. // color: black;
  1635. }
  1636. .xiaojige{
  1637. margin-left: 10px;
  1638. }
  1639. .rightjiange{
  1640. margin-right: 35px;
  1641. font-size: 15px;
  1642. }
  1643. .ttbwzz-type-a {
  1644. min-width: 80px;
  1645. margin-right: 30px;
  1646. padding: 5px 0px;
  1647. font-size: 15px;
  1648. }
  1649. input{
  1650. -webkit-appearance: checkbox;
  1651. }
  1652. }
  1653. .biaotou{
  1654. font-size: 18px;
  1655. margin-bottom: 10px;
  1656. color: #0077ff9f;
  1657. // background-color: '#409eff';
  1658. }
  1659. ::-webkit-scrollbar {
  1660. width: 5px;
  1661. }
  1662. ::-webkit-scrollbar-track {
  1663. /*background black*/
  1664. border-radius: 5px;
  1665. background-color: white;
  1666. }
  1667. .table2 tr td{
  1668. width: 50%;
  1669. height: 40px;
  1670. padding: 5px;
  1671. }
  1672. </style>