pruritusAssessment.vue 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. <template>
  2. <div class="patient-container">
  3. <patient-sidebar :id="patientID" defaultActive="5-11"></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;">瘙痒评估表</div>
  8. <div>
  9. <el-button>历史评分</el-button>
  10. </div>
  11. </div>
  12. <div>
  13. <table class="table" border="1" style="width: 100%;">
  14. <thead>
  15. <tr>
  16. <th style="width: 10%;">项目</th>
  17. <th style="width: 57%;">结果</th>
  18. <th style="width: 3%;">得分</th>
  19. <th style="width: 30%;">说明</th>
  20. </tr>
  21. </thead>
  22. <tbody>
  23. <tr>
  24. <td class="start">痒的部位</td>
  25. <td>
  26. <div class="jiange">
  27. <span v-for="item in buwei" class="rightjiange" @change="handleCheckedCitiesChange">
  28. <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
  29. </span>
  30. <label @change="handleCheckedCitiesChange"><input type="checkbox" name="ball" value="其他" />
  31. &nbsp;其他 <el-input v-model="input" style="width: 100px;"></el-input>
  32. </label>
  33. </div>
  34. </td>
  35. <td class="start">{{checked_points}}</td>
  36. <td class="saoyang">瘙痒部位:计分范围1~3分一个部位瘙痒计1分,最多得3分,选全身计3分</td>
  37. </tr>
  38. <tr>
  39. <td class="start">痒的程度</td>
  40. <td>
  41. <div class="jiange">
  42. <el-radio-group v-model="radio1" @change="radiochecked">
  43. <el-radio v-for="(item,index ) in chengdu" :label="item" :key="index" style="color: black;font-size: 15PX;">{{ item }}</el-radio>
  44. </el-radio-group>
  45. </div>
  46. </td>
  47. <td class="start">{{radio1_points}}</td>
  48. <td class="saoyang">瘙痒严重程度:计分范围1~5分</td>
  49. </tr>
  50. <tr>
  51. <td class="start">痒的频率</td>
  52. <td>
  53. <div class="jiange">
  54. <el-radio-group v-model="radio2" @change="radiochecked">
  55. <el-radio v-for="(item,index ) in pinlv" :label="item" :key="index" style="color: black;font-size: 15PX;">{{ item }}</el-radio>
  56. </el-radio-group>
  57. </div>
  58. </td>
  59. <td class="start">{{radio2_points}}</td>
  60. <td class="saoyang">瘙痒频率:计分范围1~5分瘙痒有过4次,每次<10min或有1次瘙痒>10min计1分,以此类推,一直持续计5分</td>
  61. </tr>
  62. <tr>
  63. <td class="start">痒对睡眠的影响</td>
  64. <td>
  65. <div class="jiange">
  66. <el-radio-group v-model="radio3" @change="radiochecked">
  67. <el-radio v-for="(item,index ) in yingxiang" :label="item" :key="index" style="color: black;font-size: 15PX;">{{ item }}</el-radio>
  68. </el-radio-group>
  69. </div>
  70. </td>
  71. <td class="start">{{radio3_points}}</td>
  72. <td class="saoyang">
  73. 瘙痒对睡眠的影响:计分范围0~6分无影响0分,一夜痒醒1次计2分,一夜痒醒2次计4分,一夜痒醒3次以上计6分
  74. </td>
  75. </tr>
  76. </tbody>
  77. </table>
  78. </div>
  79. <p style="margin: 20px 0px 10px 0px;">备注:总分得分范围3(轻度瘙痒)~19分(最大程度瘙痒)</p>
  80. <div class="content_top" style="margin-bottom: 10px ;">
  81. <div>
  82. <div class="bottoms">
  83. <span>总分:</span>
  84. <el-input v-model="pruritus_Totalpoints" placeholder="请输入内容" style="width: 100px;"></el-input>分
  85. </div>
  86. <div class="bottoms">
  87. <span>评估日期:</span>
  88. <el-date-picker
  89. v-model="value1"
  90. type="date"
  91. placeholder="选择日期"
  92. :clearable="false"
  93. style="width: 150px;">
  94. </el-date-picker>
  95. </div>
  96. <div class="bottoms">
  97. <span>评估人:</span>
  98. <el-select v-model="value" placeholder="请选择" >
  99. <el-option
  100. v-for="item in options"
  101. :key="item.value"
  102. :label="item.label"
  103. :value="item.value"
  104. style="width:150px;">
  105. </el-option>
  106. </el-select>
  107. </div>
  108. </div>
  109. <div style="margin:5px 10px;">
  110. <el-button type="primary">确认</el-button>
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. </template>
  117. <script>
  118. import PatientSidebar from '../components/PatientSidebar.vue'
  119. export default {
  120. components:{
  121. PatientSidebar
  122. },
  123. data(){
  124. return{
  125. patientID:0,
  126. checkList:[],
  127. radio1:'',
  128. radio2:'',
  129. radio3:'',
  130. input:'',
  131. ball:'',
  132. radio1_points:0,
  133. radio2_points:0,
  134. radio3_points:0,
  135. checked_points:0,
  136. pruritus_Totalpoints:0,
  137. buwei:['躯体','上肢','下肢','头皮','全身'],
  138. chengdu:['不要抓(1)','要抓但没有抓痕(2)','抓出抓痕才能止痒(3)','经常抓出抓痕(4)','完全坐立不安(5)'],
  139. pinlv:['很少时候(1)','较少时候(2)','较多时候(3)','很多时候(4)','一直持续(5)'],
  140. yingxiang:['无影响(0)','一夜痒醒一次(2)','一夜痒醒两次(4)','一夜痒醒三次(6)'],
  141. options:[],
  142. value:'',
  143. value1:'',
  144. }
  145. },
  146. methods:{
  147. handleCheckedCitiesChange(e){
  148. this.ball = e.target.value
  149. console.log('1111111',this.ball)
  150. if(e.target.checked==true){
  151. if(e.target.value == '全身'){
  152. this.checked_points = 3
  153. this.pruritus_Totalpoints=this.pruritus_Totalpoints + this.checked_points
  154. }else{
  155. var checked =1
  156. this.checked_points = this.checked_points + checked
  157. this.pruritus_Totalpoints=this.pruritus_Totalpoints + checked
  158. }
  159. return this.pruritus_Totalpoints
  160. }else{
  161. if(e.target.value == '全身'){
  162. this.checked_points = 0
  163. this.pruritus_Totalpoints=this.pruritus_Totalpoints - 3
  164. }else{
  165. var checked =1
  166. this.checked_points = this.checked_points - checked
  167. this.pruritus_Totalpoints=this.pruritus_Totalpoints - checked
  168. }
  169. // return this.pruritus_Totalpoints
  170. }
  171. },
  172. radiochecked(e){
  173. const bal=e
  174. const jiequ =(bal.split('(')[1].split(')')[0]) * 1
  175. if(e == this.radio1 && this.ball == '' && this.radio2 =='' && this.radio3 ==''){
  176. this.radio1_points =jiequ
  177. this.pruritus_Totalpoints =jiequ
  178. }else if(e == this.radio1 && this.ball != '' && this.radio3 !='' && this.radio2 !=''){
  179. this.radio1_points =jiequ
  180. this.pruritus_Totalpoints = this.pruritus_Totalpoints + jiequ
  181. }else if(e == this.radio1 && (this.ball != '' || this.radio3 !='' || this.radio2 !='')){
  182. this.radio1_points =jiequ
  183. this.pruritus_Totalpoints = this.pruritus_Totalpoints + jiequ
  184. }
  185. if(e == this.radio2 && this.radio1 =='' && this.radio3 =='' && this.ball == '') {
  186. this.radio2_points =jiequ
  187. this.pruritus_Totalpoints =jiequ
  188. }else if(e == this.radio2 && this.radio1 !='' && this.radio3 !='' && this.ball != ''){
  189. this.radio2_points =jiequ
  190. this.pruritus_Totalpoints = this.pruritus_Totalpoints + jiequ
  191. }else if(e == this.radio2 && (this.radio1 !=''|| this.radio3 =='' || this.ball != '')){
  192. this.radio2_points =jiequ
  193. this.pruritus_Totalpoints = this.pruritus_Totalpoints + jiequ
  194. }
  195. if(e==this.radio3 && this.radio1 =='' && this.radio2 ==''&& this.ball == ''){
  196. this.radio3_points =jiequ
  197. this.pruritus_Totalpoints =jiequ
  198. } else if(e==this.radio3 && this.radio1 !='' && this.radio2 !='' && this.ball != ''){
  199. this.radio3_points =jiequ
  200. this.pruritus_Totalpoints = this.pruritus_Totalpoints + jiequ
  201. }else if(e==this.radio3 && (this.radio1 !='' || this.radio2 !='' || this.ball != '')){
  202. this.radio2_points =jiequ
  203. this.pruritus_Totalpoints = this.pruritus_Totalpoints + jiequ
  204. }
  205. }
  206. }
  207. }
  208. </script>
  209. <style lang="scss" scoped>
  210. .content_top{
  211. display: flex;
  212. justify-content: space-between;
  213. }
  214. .table{
  215. border: 1px solid #DCDFE6;
  216. border-collapse:collapse;
  217. border-spacing: 0;
  218. thead th{
  219. background: #0077ff9f;
  220. color: white;
  221. text-align: center;
  222. height: 40px;
  223. }
  224. tbody td{
  225. height: 40px;
  226. }
  227. .start{
  228. text-align: center;
  229. }
  230. .bing{
  231. width: 150px;
  232. text-align: center;
  233. }
  234. .bg_color{
  235. background: rgb(243, 240, 240);
  236. }
  237. .jiange{
  238. margin-left: 20px;
  239. color: black;
  240. }
  241. .rightjiange{
  242. margin-right: 40px;
  243. font-size: 15px;
  244. }
  245. input{
  246. -webkit-appearance: checkbox;
  247. }
  248. .saoyang{
  249. padding: 5px;
  250. }
  251. }
  252. .bottoms{
  253. display: inline-block;
  254. margin-left: 10px;
  255. margin-top: 5px;
  256. }
  257. </style>