yq1 1 个月前
父节点
当前提交
f87120551f

+ 62 - 62
src/xt_pages/user/components/PatientSidebar.vue 查看文件

@@ -204,68 +204,68 @@ export default {
204 204
             },
205 205
           ]
206 206
         },
207
-        // {
208
-        //   name: '5',
209
-        //   label: '评估工具',
210
-        //   children: [
211
-        //     {
212
-        //       name: '5-1',
213
-        //       label: '跌倒评估'
214
-        //     },
215
-        //     {
216
-        //       name: '5-2',
217
-        //       label: '小儿跌倒风险评估'
218
-        //     },
219
-        //     {
220
-        //       name: '5-3',
221
-        //       label: '压疮风险评估'
222
-        //     },
223
-        //     {
224
-        //       name: '5-4',
225
-        //       label: 'OH压疮评估'
226
-        //     },
227
-        //     {
228
-        //       name: '5-5',
229
-        //       label: '日常生活能力评估'
230
-        //     },
231
-        //     {
232
-        //       name: '5-6',
233
-        //       label: '导管脱落风险评估'
234
-        //     },
235
-        //     {
236
-        //       name: '5-7',
237
-        //       label: 'RASS及疼痛评估'
238
-        //     },
239
-        //     {
240
-        //       name: '5-8',
241
-        //       label: '营养状况评估'
242
-        //     },
243
-        //     {
244
-        //       name: '5-9',
245
-        //       label: '约束告知单'
246
-        //     },
247
-        //     {
248
-        //       name: '5-10',
249
-        //       label: '心理评估'
250
-        //     },
251
-        //     {
252
-        //       name: '5-11',
253
-        //       label: '瘙痒评估'
254
-        //     },
255
-        //     {
256
-        //       name: '5-12',
257
-        //       label: '血液透析患者评估'
258
-        //     },
259
-        //     {
260
-        //       name: '5-13',
261
-        //       label: 'Glasgow昏迷评分量表'
262
-        //     },
263
-        //     {
264
-        //       name: '5-14',
265
-        //       label: '肌力评估表'
266
-        //     },
267
-        //   ]
268
-        // },
207
+        {
208
+          name: '5',
209
+          label: '评估工具',
210
+          children: [
211
+            {
212
+              name: '5-1',
213
+              label: '跌倒评估'
214
+            },
215
+            {
216
+              name: '5-2',
217
+              label: '小儿跌倒风险评估'
218
+            },
219
+            {
220
+              name: '5-3',
221
+              label: '压疮风险评估'
222
+            },
223
+            {
224
+              name: '5-4',
225
+              label: 'OH压疮评估'
226
+            },
227
+            {
228
+              name: '5-5',
229
+              label: '日常生活能力评估'
230
+            },
231
+            {
232
+              name: '5-6',
233
+              label: '导管脱落风险评估'
234
+            },
235
+            {
236
+              name: '5-7',
237
+              label: 'RASS及疼痛评估'
238
+            },
239
+            {
240
+              name: '5-8',
241
+              label: '营养状况评估'
242
+            },
243
+            {
244
+              name: '5-9',
245
+              label: '约束告知单'
246
+            },
247
+            {
248
+              name: '5-10',
249
+              label: '心理评估'
250
+            },
251
+            {
252
+              name: '5-11',
253
+              label: '瘙痒评估'
254
+            },
255
+            {
256
+              name: '5-12',
257
+              label: '血液透析患者评估'
258
+            },
259
+            {
260
+              name: '5-13',
261
+              label: 'Glasgow昏迷评分量表'
262
+            },
263
+            {
264
+              name: '5-14',
265
+              label: '肌力评估表'
266
+            },
267
+           ]
268
+         },
269 269
         {
270 270
           name: '6',
271 271
           label: '文书管理',

+ 103 - 34
src/xt_pages/user/evaluationtool/Cathetershedding.vue 查看文件

@@ -25,21 +25,15 @@
25 25
                         <td>
26 26
                           <div class="jiange">
27 27
                             <el-radio-group v-model="radio" @change="handleCheckedCitiesChange">
28
-                              <el-radio v-for="(item,index ) in tuoguan" :label="item" :key="index" style="">{{ item }}</el-radio>
28
+                              <el-radio v-for="(item,index ) in tuoguan" :label="item.value" :key="index" style="">{{ item.label }}</el-radio>
29 29
                             </el-radio-group>
30 30
                           </div>
31 31
                         </td>
32 32
                         <td rowspan="3">
33 33
                           <div style="vertical-align: top; color: black; padding: 5px;">
34
-                            <label><input name="ball" type="checkbox" value="football" />&nbsp;1.管道维护,导管脱落严重后果及预防措施的健康教育;</label> <br/>
35
-                            <label><input name="ball" type="checkbox" value="football" />&nbsp;2.床边悬挂警示标识(>9分悬挂);</label><br/>
36
-                            <label><input name="ball" type="checkbox" value="football" />&nbsp;3.正确妥善固定;</label><br/>
37
-                            <label><input name="ball" type="checkbox" value="football" />&nbsp;4.正确卧位及床上活动方式, 病人带管下床活动时, 将引流管固定在病人的衣服或裤子上;</label><br/>
38
-                            <label><input name="ball" type="checkbox" value="football" />&nbsp;5.加强巡视,及时发现满足患者需要;</label><br/>
39
-                            <label><input name="ball" type="checkbox" value="football" />&nbsp;6.严格交接班,各班重点交接,观察外露长度,必要时记录;</label><br/>
40
-                            <label><input name="ball" type="checkbox" value="football" />&nbsp;7.昏迷、暴躁、不合作病人,根据医嘱使用镇静剂和约束带;</label><br/>
41
-                            <label><input name="ball" type="checkbox" value="football" />&nbsp;8.进行诊疗护理需要移动患者时,根据医嘱使用镇静剂和约束带;</label><br/>
42
-                            <label><input name="ball" type="checkbox" value="football" />&nbsp;9.对于气管插管清醒患者,进行心理疏导和安全教育。</label>
34
+                            <span v-for="item in hulicuoshi">
35
+                              <label><input name="ball" type="checkbox" v-model="item.is_check" @click="cuoshi(item)"/>&nbsp;{{item.label}}</label> <br/>
36
+                            </span>
43 37
                           </div>
44 38
                         </td>
45 39
                       </tr>
@@ -48,7 +42,8 @@
48 42
                         <td>
49 43
                           <div class="jiange">
50 44
                               <el-radio-group v-model="radio1"  @change="handleCheckedCitiesChange">
51
-                                  <el-radio v-for="(item,index ) in yishi" :label="item" :key="index">{{ item }}</el-radio>
45
+                                <el-radio v-for="(item,index ) in yishi" :label="item.value" :key="index" style="">{{ item.label }}</el-radio>
46
+                                  <!-- <el-radio v-for="(item,index ) in yishi" :label="item" :key="index">{{ item }}</el-radio> -->
52 47
                               </el-radio-group>
53 48
                           </div>
54 49
                         </td>
@@ -58,7 +53,8 @@
58 53
                         <td>
59 54
                           <div  class="jiange">
60 55
                               <el-radio-group v-model="radio2" @change="handleCheckedCitiesChange">
61
-                                <el-radio v-for="(item,index ) in peihe" :label="item" :key="index">{{ item }}</el-radio>
56
+                                <el-radio v-for="(item,index ) in peihe" :label="item.value" :key="index" style="">{{ item.label }}</el-radio>
57
+                                <!-- <el-radio v-for="(item,index ) in peihe" :label="item" :key="index">{{ item }}</el-radio> -->
62 58
                               </el-radio-group>
63 59
                           </div>
64 60
                         </td>
@@ -77,8 +73,9 @@
77 73
                       <div class="bottoms">
78 74
                           <span>评估日期:</span>
79 75
                           <el-date-picker
80
-                              v-model="value1"
76
+                              v-model="date"
81 77
                               type="date"
78
+                              value-format="yyyy-MM-dd"
82 79
                               placeholder="选择日期"
83 80
                               :clearable="false"
84 81
                               style="width: 150px;">
@@ -87,9 +84,9 @@
87 84
 
88 85
                       <div class="bottoms">
89 86
                           <span>评估人:</span>
90
-                          <el-select v-model="value" placeholder="请选择" >
87
+                          <el-select v-model="appraiser" placeholder="请选择" >
91 88
                               <el-option
92
-                              v-for="item in options"
89
+                              v-for="item in optionsarr"
93 90
                               :key="item.value"
94 91
                               :label="item.label"
95 92
                               :value="item.value"
@@ -100,7 +97,7 @@
100 97
 
101 98
                   </div>
102 99
                   <div style="margin:5px 10px;">
103
-                    <el-button type="primary">确认</el-button>
100
+                    <el-button type="primary" @click="daoguanclick">确认</el-button>
104 101
                   </div>
105 102
                 </div>
106 103
                 <hr style="border:none;height:1px;background:#DCDFE6;"/><!--水平线-->
@@ -111,8 +108,9 @@
111 108
                         <p style="display: inline-block;">
112 109
                             日期:
113 110
                             <el-date-picker
114
-                                v-model="value1"
111
+                                v-model="jiashu_date"
115 112
                                 type="date"
113
+                                value-format="yyyy-MM-dd"
116 114
                                 placeholder="选择日期"
117 115
                                 style="width: 150px;">
118 116
                             </el-date-picker>
@@ -120,15 +118,15 @@
120 118
                     </div>
121 119
                     <div class="zhuangui">
122 120
                         <span>转归:</span>
123
-                        <el-radio v-model="radio" label="1">脱落</el-radio>
124
-                        <el-radio v-model="radio" label="2">未脱落</el-radio>
121
+                        <el-radio v-model="zhuanggui" label="1">脱落</el-radio>
122
+                        <el-radio v-model="zhuanggui" label="2">未脱落</el-radio>
125 123
                     </div>
126 124
                     <div class="zhuangui">
127 125
                         <p style="display: inline-block; margin-right: 30px;">
128 126
                             评估人签字:
129
-                            <el-select v-model="value" placeholder="请选择" style="width: 120px;">
127
+                            <el-select v-model="appraiser" placeholder="请选择" style="width: 120px;">
130 128
                                 <el-option
131
-                                v-for="item in options"
129
+                                v-for="item in optionsarr"
132 130
                                 :key="item.value"
133 131
                                 :label="item.label"
134 132
                                 :value="item.value">
@@ -138,8 +136,9 @@
138 136
                         <p style="display: inline-block;">
139 137
                             日期:
140 138
                             <el-date-picker
141
-                                v-model="value1"
139
+                                v-model="date"
142 140
                                 type="date"
141
+                                value-format="yyyy-MM-dd"
143 142
                                 placeholder="选择日期"
144 143
                                 style="width: 150px;">
145 144
                             </el-date-picker>
@@ -148,9 +147,9 @@
148 147
                     <div class="zhuangui">
149 148
                         <p style="display: inline-block; margin-right: 30px;">
150 149
                             护士长签字:
151
-                            <el-select v-model="value" placeholder="请选择" style="width: 120px;">
150
+                            <el-select v-model="hushi" placeholder="请选择" style="width: 120px;">
152 151
                                 <el-option
153
-                                v-for="item in options"
152
+                                v-for="item in hushiarr"
154 153
                                 :key="item.value"
155 154
                                 :label="item.label"
156 155
                                 :value="item.value">
@@ -160,8 +159,9 @@
160 159
                         <p style="display: inline-block;">
161 160
                             日期:
162 161
                             <el-date-picker
163
-                                v-model="value1"
162
+                                v-model="hushi_date"
164 163
                                 type="date"
164
+                                value-format="yyyy-MM-dd"
165 165
                                 placeholder="选择日期"
166 166
                                 style="width: 150px;">
167 167
                             </el-date-picker>
@@ -181,6 +181,7 @@
181 181
     </div>
182 182
 </template>
183 183
 <script>
184
+import { uParseTime } from '@/utils/tools'
184 185
 import PatientSidebar from '../components/PatientSidebar.vue'
185 186
 export default {
186 187
   components:{
@@ -200,28 +201,96 @@ export default {
200 201
       options:[],
201 202
       input:'',
202 203
       value:'',
203
-      tuoguan:['低危导管 (1分)','中危导管 (2分)','高危导管 (3分)'],
204
-      yishi:['意识清醒 (0分)','中昏迷、深昏迷 (1分)','嗜睡、昏睡 (2分)','浅昏迷 (3分)','意识模糊 (4分)'],
205
-      peihe:['完全配合 (1分)','部分配合 (2分)','不配合 (3分)']
204
+      date:this.getTime(new Date()),
205
+      appraiser:'',
206
+      optionsarr:[],
207
+      jiashu_date:this.getTime(new Date()),//家属时间
208
+      zhuanggui:'',//转归
209
+      hushi:'',//护理
210
+      hushiarr:'',//护理
211
+      hushi_date:this.getTime(new Date()),//护理时间
212
+      tuoguan:[{value:1,label:'低危导管 (1分)',is_check:false,check:0},
213
+              {value:2,label:'中危导管 (2分)',is_check:false,check:0},
214
+              {value:3,label:'高危导管 (3分)',is_check:false,check:0}
215
+            ],
216
+      yishi:[{value:0,label:'意识清醒 (0分)',is_check:false,check:0},
217
+            {value:1,label:'中昏迷、深昏迷 (1分)',is_check:false,check:0},
218
+            {value:2,label:'嗜睡、昏睡 (2分)',is_check:false,check:0},
219
+            {value:3,label:'浅昏迷 (3分)',is_check:false,check:0},
220
+            {value:4,label:'意识模糊 (4分)',is_check:false,check:0},
221
+            ],
222
+      peihe:[{value:1,label:'完全配合 (1分)',is_check:false,check:0},
223
+            {value:2,label:'部分配合 (2分)',is_check:false,check:0},
224
+            {value:3,label:'不配合 (3分)',is_check:false,check:0},
225
+            ],
226
+      hulicuoshi:[{label:'1.管道维护,导管脱落严重后果及预防措施的健康教育;',is_check:false,check:0},
227
+      {label:'2.床边悬挂警示标识(>9分悬挂);',is_check:false,check:0},{label:'3.正确妥善固定;',is_check:false,check:0},
228
+      {label:'4.正确卧位及床上活动方式, 病人带管下床活动时, 将引流管固定在病人的衣服或裤子上;',is_check:false,check:0},
229
+      {label:'5.加强巡视,及时发现满足患者需要;',is_check:false,check:0},{label:'6.严格交接班,各班重点交接,观察外露长度,必要时记录;',is_check:false,check:0},
230
+      {label:'7.昏迷、暴躁、不合作病人,根据医嘱使用镇静剂和约束带;',is_check:false,check:0},
231
+      {label:'8.进行诊疗护理需要移动患者时,根据医嘱使用镇静剂和约束带;',is_check:false,check:0},
232
+      {label:'9.对于气管插管清醒患者,进行心理疏导和安全教育。',is_check:false,check:0},]
233
+      // tuoguan:['低危导管 (1分)','中危导管 (2分)','高危导管 (3分)'],
234
+      // yishi:['意识清醒 (0分)','中昏迷、深昏迷 (1分)','嗜睡、昏睡 (2分)','浅昏迷 (3分)','意识模糊 (4分)'],
235
+      // peihe:['完全配合 (1分)','部分配合 (2分)','不配合 (3分)']
206 236
     }
207 237
   },
208 238
   methods:{
209 239
     handleCheckedCitiesChange(e){
210
-      const ball=e
211
-      const jiequ =(ball.split('(')[1].split('分')[0]) * 1
212 240
       if(e == this.radio){
213
-        this.radio_val = jiequ
241
+        this.radio_val = e
214 242
       }
215 243
       if(e == this.radio1){
216
-        this.radio1_val = jiequ
244
+        this.radio1_val = e
217 245
       }
218 246
       if(e == this.radio2){
219
-        this.radio2_val = jiequ
247
+        this.radio2_val = e
220 248
       }
221 249
     },
222 250
     daoguanhistory(){
223 251
       this.$router.push({path: '/patients/daoguan_history'})
224
-    }
252
+    },
253
+    // 确认
254
+    daoguanclick(){
255
+      var params={
256
+        radio:this.radio,
257
+        radio1:this.radio1,
258
+        radio2:this.radio2,
259
+        duct_Totalpoints:this.duct_Totalpoints,
260
+        hulicuoshi:this.hulicuoshi,
261
+        date:this.date,//评估时间
262
+        appraiser:this.appraiser,
263
+        optionsarr:this.optionsarr,//评估数组
264
+        jiashu_date:this.jiashu_date,
265
+        zhuanggui:this.zhuanggui,
266
+        hushi:this.hushi,
267
+        hushiarr:this.hushiarr,
268
+        hushi_date:this.hushi_date,
269
+        patientID:this.patientID
270
+      }
271
+      console.log('params====',params);
272
+    },
273
+    // 点击护理措施
274
+    cuoshi(item){
275
+      for(let i in this.hulicuoshi){
276
+        if(item.is_check==false){
277
+          if(item.label==this.hulicuoshi[i].label){
278
+            this.hulicuoshi[i].check= 1
279
+          }
280
+        }
281
+      }
282
+    },
283
+    // 转换时间
284
+    getTime(val) {
285
+        if(val < 0){
286
+          return ""
287
+        }
288
+        if(val == ""){
289
+        return ""
290
+        }else {
291
+        return uParseTime(val, '{y}-{m}-{d}')
292
+        }
293
+    },
225 294
   },
226 295
   computed:{
227 296
     duct_Totalpoints(){

+ 17 - 14
src/xt_pages/user/evaluationtool/Fallassessment.vue 查看文件

@@ -215,7 +215,7 @@
215 215
                                         穿合适的裤子,以免绊倒;穿防滑鞋</label>
216 216
                                   </div>
217 217
                                 </td>
218
- 
218
+
219 219
                               </tr>
220 220
                               <tr>
221 221
                                 <td>
@@ -226,7 +226,7 @@
226 226
                                     </label>
227 227
                                   </div>
228 228
                                 </td>
229
- 
229
+
230 230
                               </tr>
231 231
                               <tr class="bg_color">
232 232
                                 <td>
@@ -256,7 +256,7 @@
256 256
                                     <label>
257 257
                                       <input type="checkbox" name="ball" value="volleyball" v-model="item.is_content_check"/>&nbsp;{{ item.content }}
258 258
                                     </label><br>
259
-                                   
259
+
260 260
                                   </div>
261 261
                                 </td>
262 262
                               </tr>
@@ -360,7 +360,7 @@
360 360
                                     <label>
361 361
                                       <input type="checkbox" name="ball" value="volleyball" />&nbsp;{{ item.contentOne }}
362 362
                                     </label><br>
363
-                                   
363
+
364 364
                                   </div>
365 365
                                 </td>
366 366
                               </tr>
@@ -375,11 +375,11 @@
375 375
                           </div>
376 376
                         </td>
377 377
                       </tr>
378
-                    
378
+
379 379
                     </table>
380 380
                   </div>
381 381
                 </div>
382
-               
382
+
383 383
               </div>
384 384
 
385 385
               <div style="">
@@ -518,6 +518,7 @@
518 518
     data() {
519 519
       return {
520 520
         patient_id:0,
521
+        postdata:{
521 522
         ping_date:'',
522 523
         Nurse:'',
523 524
         input:'',
@@ -542,6 +543,7 @@
542 543
         content:"",
543 544
         contentOne:"",
544 545
         listOne:[],
546
+
545 547
         is_check:false,
546 548
         is_check_one:false,
547 549
         is_check_two:false,
@@ -562,10 +564,11 @@
562 564
         is_check_seventeen:false,
563 565
         is_check_eighteen:false,
564 566
         is_check_nineteen:false,
565
-       
567
+
566 568
         nurseList:[],
567 569
         admin_user_id:"",
568 570
         record_date:"",
571
+        }
569 572
       }
570 573
 
571 574
     },
@@ -662,7 +665,7 @@
662 665
         if(this.is_check_four == true){
663 666
           is_check_four = 1
664 667
         }
665
-        
668
+
666 669
         var is_check_five = 2
667 670
         if(this.is_check_five == false){
668 671
           is_check_five =2
@@ -678,7 +681,7 @@
678 681
         if(this.is_check_six == true){
679 682
           is_check_six =1
680 683
         }
681
-        
684
+
682 685
         var is_check_seven= 2
683 686
         if(this.is_check_seven == false){
684 687
           is_check_seven =2
@@ -726,7 +729,7 @@
726 729
         if(this.is_check_twelve == true){
727 730
           is_check_twelve =1
728 731
         }
729
-       
732
+
730 733
         var is_check_thirteen= 2
731 734
         if(this.is_check_thirteen == false){
732 735
           is_check_thirteen =2
@@ -766,7 +769,7 @@
766 769
         if(this.is_check_seventeen == true){
767 770
           is_check_seventeen =1
768 771
         }
769
-       
772
+
770 773
         var is_check_eighteen= 2
771 774
         if(this.is_check_eighteen == false){
772 775
           is_check_eighteen =2
@@ -774,7 +777,7 @@
774 777
         if(this.is_check_eighteen == true){
775 778
           is_check_eighteen =1
776 779
         }
777
-       
780
+
778 781
         var is_check_nineteen= 2
779 782
         if(this.is_check_nineteen == false){
780 783
           is_check_nineteen =2
@@ -966,10 +969,10 @@
966 969
           is_check_nineteen:is_check_nineteen,
967 970
           patient_id:this.patient_id,
968 971
           total:this.tumble_Totalpoints,
969
-          
972
+
970 973
          }
971 974
          console.log("params",params)
972
-        
975
+
973 976
         saveFllassessmentList(params).then(response=>{
974 977
            if(response.data.state ==1){
975 978
              var patientFallassessment = response.data.data.patientFallassessment

+ 124 - 62
src/xt_pages/user/evaluationtool/Glasgow.vue 查看文件

@@ -33,8 +33,8 @@
33 33
                     <td class="start">睁眼反应(E)</td>
34 34
                     <td>
35 35
                       <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
36
-                        <span v-for="item in zhengyan" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
37
-                          <label><input type="checkbox" class="checkbox1" name="ball" :value="item.value" />&nbsp;{{ item.label }}</label>
36
+                        <span v-for="item in zhengyan" class="ttbwzz-type-a" @change="handleCheckedCitiesChange(item)">
37
+                          <label><input type="checkbox" class="checkbox1" :value="item.value" v-model="item.is_check" />&nbsp;{{ item.label }}</label>
38 38
                         </span>
39 39
                       </div>
40 40
                     </td>
@@ -44,8 +44,8 @@
44 44
                     <td class="start">言语反映 (V)</td>
45 45
                     <td>
46 46
                       <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
47
-                        <span v-for="item in yanyu" class="ttbwzz-type-a" @change="yuyan_change">
48
-                          <label><input type="checkbox" class="checkbox2" name="ball" :value="item.value" />&nbsp;{{ item.label }}</label>
47
+                        <span v-for="item in yanyu" class="ttbwzz-type-a" @change="yuyan_change(item)">
48
+                          <label><input type="checkbox" class="checkbox2" :value="item.value" v-model="item.is_check" />&nbsp;{{ item.label }}</label>
49 49
                         </span>
50 50
                       </div>
51 51
                     </td>
@@ -55,8 +55,8 @@
55 55
                     <td class="start">运动反应(M)</td>
56 56
                     <td>
57 57
                       <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
58
-                        <span v-for="item in yundong" class="ttbwzz-type-a" @change="yundong_change">
59
-                          <label><input type="checkbox" class="checkbox3" name="ball" :value="item.value" />&nbsp;{{ item.label }}</label>
58
+                        <span v-for="item in yundong" class="ttbwzz-type-a" @change="yundong_change(item)">
59
+                          <label><input type="checkbox" class="checkbox3" :value="item.value" v-model="item.is_check" />&nbsp;{{ item.label }}</label>
60 60
                         </span>
61 61
                       </div>
62 62
                     </td>
@@ -69,7 +69,7 @@
69 69
             <div style="vertical-align: top;  margin: 10px 0px; position: relative;">
70 70
               <span style="position: relative; top: -55px;">护理措施:</span>
71 71
               <div style="margin-top: 20px;display: inline-block; width: 85%;">
72
-                <el-input maxlength="200" type = "textarea" :rows="3" v-model="input" placeholder="输入护理措施,200字以内" ></el-input>
72
+                <el-input maxlength="200" type = "textarea" :rows="3" v-model="glasgow_input" placeholder="输入护理措施,200字以内" ></el-input>
73 73
               </div>
74 74
             </div>
75 75
 
@@ -82,8 +82,9 @@
82 82
               <div class="bottoms">
83 83
                 <span>评估日期:</span>
84 84
                 <el-date-picker
85
-                    v-model="value1"
85
+                    v-model="date"
86 86
                     type="date"
87
+                    value-format="yyyy-MM-dd"
87 88
                     placeholder="选择日期"
88 89
                     :clearable="false"
89 90
                     style="width: 150px;">
@@ -160,10 +161,10 @@
160 161
               <div style="margin-top: 20px;font-size: 16px;">
161 162
                 <span>患者姓名:</span>
162 163
                 <span>透析号:</span>
163
-                <span>评估日期:</span>
164
-                <span>评估护士:</span>
165
-                <span>总分:</span>
166
-                <span>打印时间:</span>
164
+                <span>评估日期:{{ date }}</span>
165
+                <span>评估护士:{{ getpinggr(Glas_pinggu) }}</span>
166
+                <span>总分:{{ Glasgow_Totalpoints }}</span>
167
+                <span>打印时间:{{ dayintime }}</span>
167 168
               </div>
168 169
               <table class="tables" border="1" style="width: 100%;border-collapse: collapse;font-size: 16px;">
169 170
                 <thead>
@@ -177,8 +178,8 @@
177 178
                     <td class="start">睁眼反应(E)</td>
178 179
                     <td>
179 180
                       <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
180
-                        <span v-for="item in zhengyan" class="ttbwzz-type-a" >
181
-                          <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
181
+                        <span v-for="item in zhengyan" class="ttbwzz-type-a" @change="handleCheckedCitiesChange(item)">
182
+                          <label><input type="checkbox" class="checkbox1" :value="item.value" v-model="item.is_check" />&nbsp;{{ item.label }}</label>
182 183
                         </span>
183 184
                       </div>
184 185
                     </td>
@@ -188,8 +189,8 @@
188 189
                     <td class="start">言语反映 (V)</td>
189 190
                     <td>
190 191
                       <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
191
-                        <span v-for="item in yanyu" class="ttbwzz-type-a" >
192
-                          <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
192
+                        <span v-for="item in yanyu" class="ttbwzz-type-a" @change="yuyan_change(item)">
193
+                          <label><input type="checkbox" class="checkbox2" :value="item.value" v-model="item.is_check" />&nbsp;{{ item.label }}</label>
193 194
                         </span>
194 195
                       </div>
195 196
                     </td>
@@ -199,8 +200,8 @@
199 200
                     <td class="start">运动反应(M)</td>
200 201
                     <td>
201 202
                       <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
202
-                        <span v-for="item in yundong" class="ttbwzz-type-a" >
203
-                          <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
203
+                        <span v-for="item in yundong" class="ttbwzz-type-a" @change="yundong_change(item)">
204
+                          <label><input type="checkbox" class="checkbox3" :value="item.value" v-model="item.is_check" />&nbsp;{{ item.label }}</label>
204 205
                         </span>
205 206
                       </div>
206 207
                     </td>
@@ -208,10 +209,10 @@
208 209
 
209 210
                 </tbody>
210 211
               </table>
211
-              <div style="vertical-align: top;  margin: 10px 0px; position: relative;">
212
-                  <span style="position: relative; top: -55px;">护理措施:</span>
212
+              <div style="vertical-align: top;  margin: 10px 0px;">
213
+                  <span style=" top: -55px;">护理措施:</span>
213 214
                   <div style="margin-top: 20px;display: inline-block; width: 85%;height: 80px;">
214
-
215
+                    {{ glasgow_input }}
215 216
                   </div>
216 217
               </div>
217 218
 
@@ -238,6 +239,7 @@
238 239
 </template>
239 240
 <script>
240 241
 import PatientSidebar from '../components/PatientSidebar.vue'
242
+import { uParseTime } from '@/utils/tools'
241 243
 export default {
242 244
   components:{
243 245
     PatientSidebar
@@ -256,9 +258,14 @@ export default {
256 258
       yundong_num:null,
257 259
       options:[],
258 260
       tableData:[],
259
-      zhengyan:[{value:4,label:'自动睁眼(4分)'},{value:3,label:'互换睁眼(3分)'},{value:2,label:'刺激睁眼(2分)'},{value:1,label:'无反应(1分)'}],
260
-      yanyu:[{value:5,label:'正常(5分)'},{value:4,label:'不准确回答问题(4分)'},{value:3,label:'不恰当词句(3分)'},{value:2,label:'不能理解的言语(2分)'},{value:1,label:'无言语反映(1分)'}],
261
-      yundong:[{value:6,label:'能按指令运动肢体(6分)'},{value:5,label:'对刺痛能定位(5分)'},{value:4,label:'对刺痛能躲避(4分)'},{value:3,label:'刺痛肢体屈曲(3分)'},{value:2,label:'刺痛肢体过伸(2分)'},{value:1,label:'无反应(1分)'}],
261
+      glasgow_input:'',
262
+      date:this.getTime(new Date()),
263
+      zhengyan:[{value:4,label:'自动睁眼(4分)',is_check:false,check:0},{value:3,label:'互换睁眼(3分)',is_check:false,check:0},{value:2,label:'刺激睁眼(2分)',is_check:false,check:0},{value:1,label:'无反应(1分)',is_check:false,check:0}],
264
+      yanyu:[{value:5,label:'正常(5分)',is_check:false,check:0},{value:4,label:'不准确回答问题(4分)',is_check:false,check:0},
265
+      {value:3,label:'不恰当词句(3分)',is_check:false,check:0},{value:2,label:'不能理解的言语(2分)',is_check:false,check:0},{value:1,label:'无言语反映(1分)',is_check:false,check:0}],
266
+      yundong:[{value:6,label:'能按指令运动肢体(6分)',is_check:false,check:0},{value:5,label:'对刺痛能定位(5分)',is_check:false,check:0},{value:4,label:'对刺痛能躲避(4分)',is_check:false,check:0},
267
+      {value:3,label:'刺痛肢体屈曲(3分)',is_check:false,check:0},{value:2,label:'刺痛肢体过伸(2分)',is_check:false,check:0},{value:1,label:'无反应(1分)',is_check:false,check:0}],
268
+      
262 269
       pinggr:[{id:1,label:'小米'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
263 270
       history_Glasgow:[{date:'2023-9-27',mark:'',evaluate:''}],
264 271
 
@@ -271,62 +278,74 @@ export default {
271 278
       open_print:false,
272 279
       dele_id:'',
273 280
       dele_dialogVisible:false,
281
+      dayintime:this.getTime(new Date())
274 282
     }
275 283
   },
276 284
   methods:{
277
-    handleCheckedCitiesChange(e){
278
-      var ball = e.target.value
279
-      // var jiequ =(ball.split('(')[1].split('分')[0]) * 1
280
-      // if(e.target.checked==true){
281
-      //   this.Glasgow_Totalpoints=this.Glasgow_Totalpoints + jiequ
282
-      //   return this.Glasgow_Totalpoints
283
-      // }else{
284
-      //   this.Glasgow_Totalpoints=this.Glasgow_Totalpoints-jiequ
285
-      //   return this.Glasgow_Totalpoints
286
-      // }
287
-      const checkboxs=document.getElementsByClassName('checkbox1')
288
-      for(let i=0;i<checkboxs.length;i++){
289
-        if(ball==checkboxs[i].value ){
290
-          console.log('vvvv',ball,'bbbb',e.target.checked);
291
-          this.zhengyan_num = checkboxs[i].value
292
-          checkboxs[i].checked=true
285
+    handleCheckedCitiesChange(item){
286
+
287
+      for(let i=0;i<this.zhengyan.length;i++){
288
+        if(item.value == this.zhengyan[i].value){
289
+          if(this.zhengyan[i].check == 0){
290
+            this.zhengyan[i].check =1
291
+            this.zhengyan[i].is_check = true
292
+            this.zhengyan_num = item.value
293
+          }else{
294
+            this.zhengyan[i].check =0
295
+            this.zhengyan[i].is_check = false
296
+            this.zhengyan_num = 0
297
+          }
293 298
         }else{
294
-          checkboxs[i].checked = false
299
+          this.zhengyan[i].check =0
300
+          this.zhengyan[i].is_check = false
295 301
         }
296 302
       }
297 303
     },
298
-    yuyan_change(e){
299
-      var ball = e.target.value
300
-      const checkboxs=document.getElementsByClassName('checkbox2')
301
-      for(let i=0;i<checkboxs.length;i++){
302
-        if(ball==checkboxs[i].value ){
303
-          console.log('vvvv',ball,'bbbb',e.target.checked);
304
-          this.yuyan_num = checkboxs[i].value
305
-          checkboxs[i].checked=true
304
+    yuyan_change(item){
305
+      for(let i=0;i<this.yanyu.length;i++){
306
+        if(item.value == this.yanyu[i].value){
307
+          if(this.yanyu[i].check == 0){
308
+            this.yanyu[i].check =1
309
+            this.yanyu[i].is_check = true
310
+            this.yuyan_num = item.value
311
+          }else{
312
+            this.yanyu[i].check =0
313
+            this.yanyu[i].is_check = false
314
+            this.yuyan_num = 0
315
+          }
306 316
         }else{
307
-          checkboxs[i].checked = false
317
+          this.yanyu[i].check =0
318
+          this.yanyu[i].is_check = false
308 319
         }
309 320
       }
310 321
     },
311
-    yundong_change(e){
312
-      var ball = e.target.value
313
-      const checkboxs=document.getElementsByClassName('checkbox3')
314
-      for(let i=0;i<checkboxs.length;i++){
315
-        if(ball==checkboxs[i].value ){
316
-          console.log('vvvv',ball,'bbbb',e.target.checked);
317
-          this.yundong_num = checkboxs[i].value
318
-          checkboxs[i].checked=true
322
+    yundong_change(item){
323
+
324
+      for(let i=0;i<this.yundong.length;i++){
325
+        if(item.value == this.yundong[i].value){
326
+          if(this.yundong[i].check == 0){
327
+            this.yundong[i].check =1
328
+            this.yundong[i].is_check = true
329
+            this.yundong_num = item.value
330
+          }else{
331
+            this.yundong[i].check =0
332
+            this.yundong[i].is_check = false
333
+            this.yundong_num = 0
334
+          }
319 335
         }else{
320
-          checkboxs[i].checked = false
336
+          this.yundong[i].check =0
337
+          this.yundong[i].is_check = false
321 338
         }
322 339
       }
323 340
     },
341
+    // 新增
324 342
     Glas_add(){
325 343
       this.cancel_num=0
326 344
       this.append=true
327 345
       this.Glas_baoxiao=true
328 346
       this.Glasadd_show =false
329 347
     },
348
+    // 保存
330 349
     Glas_save(){
331 350
       if(this.Glas_pinggu==null){
332 351
         this.$message('请选择评估人')
@@ -335,19 +354,41 @@ export default {
335 354
         this.Glas_baoxiao = false
336 355
         this.Glas_gzdayin = true
337 356
         this.cancel_num = 1
357
+        
358
+
359
+        var params={
360
+          zhengyan:this.zhengyan,
361
+          yanyu:this.yanyu,
362
+          yundong:this.yundong,
363
+          glasgow_input:this.glasgow_input,
364
+          Glas_pinggu:this.Glas_pinggu,
365
+          date:this.date,
366
+          Glasgow_Totalpoints:this.Glasgow_Totalpoints,
367
+        }
368
+        const arr={
369
+          date:this.date,
370
+          mark:this.Glasgow_Totalpoints,
371
+          evaluate:this.Glas_pinggu
372
+        }
373
+        console.log('2121212',arr,params);
374
+        this.history_Glasgow.push(arr)
338 375
         const Glalen=this.pinggr
339 376
         const historylen = this.history_Glasgow
377
+        var pingguname =''
340 378
         for(let x=0;x<historylen.length;x++){
341 379
           historylen[x].mark = this.Glasgow_Totalpoints
342 380
           for(let i=0;i<Glalen.length;i++){
343 381
             if(this.Glas_pinggu==Glalen[i].id){
344
-              historylen[x].evaluate = Glalen[i].label
345
-              return historylen[x].evaluate
382
+              pingguname = Glalen[i].label
383
+              
346 384
             }
347 385
           }
386
+          historylen[x].evaluate = pingguname
387
+              // return historylen[x].evaluate
348 388
         }
349 389
       }
350 390
     },
391
+    // 编辑
351 392
     Glas_editor(){
352 393
       this.Glas_gzdayin=false
353 394
       this.Glas_baoxiao=true
@@ -357,6 +398,7 @@ export default {
357 398
     glasgow_click(row,column, event){
358 399
       this.dele_id=row.id
359 400
     },
401
+    // 删除
360 402
     Glas_dele(){
361 403
       if(this.dele_id !=''){
362 404
         this.append=false
@@ -384,6 +426,7 @@ export default {
384 426
       this.Glas_gzdayin=true
385 427
       this.dele_dialogVisible=false
386 428
     },
429
+    // 取消
387 430
     Glas_quxiao(){
388 431
       // console.log('1111',this.cancel_num);
389 432
       if(this.cancel_num==0){
@@ -400,6 +443,7 @@ export default {
400 443
       }
401 444
       // console.log('2222', this.apppend);
402 445
     },
446
+    // 打印
403 447
     print_pingfen(){
404 448
       const style= '@media print {.diedao_content{background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0;} .tables thead th{ text-align: center;height: 40px;} .tables tbody td{height: 40px;padding:0 10px} .tables{font-size: 16px;}}'
405 449
       printJS({
@@ -410,7 +454,25 @@ export default {
410 454
       })
411 455
       this.open_print=false
412 456
     },
413
-
457
+    // 转换时间
458
+    getTime(val) {
459
+        if(val < 0){
460
+          return ""
461
+        }
462
+        if(val == ""){
463
+        return ""
464
+        }else {
465
+        return uParseTime(val, '{y}-{m}-{d}')
466
+        }
467
+    },
468
+    // 评估护士
469
+    getpinggr(id){
470
+      for(let i in this.pinggr){
471
+        if(id == this.pinggr[i].id){
472
+          return this.pinggr[i].label
473
+        }
474
+      }
475
+    }
414 476
   },
415 477
   computed:{
416 478
     Glasgow_Totalpoints(){

+ 78 - 30
src/xt_pages/user/evaluationtool/Muscleforce.vue 查看文件

@@ -34,7 +34,7 @@
34 34
                       <td class="start">{{ item.title }}</td>
35 35
                       <td>
36 36
                         <div class="jiange">
37
-                          <label style="font-size: 15px;"><input type="checkbox" class="checkbox" name="ball" :value="item.value" @change="handleCheckedCitiesChange"/>&nbsp;{{ item.label }}</label>
37
+                          <label style="font-size: 15px;"><input type="checkbox" class="checkbox" name="ball" :value="item.value" v-model="item.is_check" @change="handleCheckedCitiesChange(item)"/>&nbsp;{{ item.label }}</label>
38 38
                         </div>
39 39
                       </td>
40 40
                     </tr>
@@ -58,8 +58,9 @@
58 58
               <div class="bottoms">
59 59
                   <span>评估日期:</span>
60 60
                   <el-date-picker
61
-                      v-model="value1"
61
+                      v-model="date"
62 62
                       type="date"
63
+                      value-format="yyyy-MM-dd"
63 64
                       placeholder="选择日期"
64 65
                       :clearable="false"
65 66
                       style="width: 150px;">
@@ -136,10 +137,10 @@
136 137
               <div style="margin-top: 20px;font-size: 16px;">
137 138
                 <span>患者姓名:</span>
138 139
                 <span>透析号:</span>
139
-                <span>评估日期:</span>
140
-                <span>评估护士:</span>
141
-                <span>总分:</span>
142
-                <span>打印时间:</span>
140
+                <span>评估日期:{{ date }}</span>
141
+                <span>评估护士:{{ getpinggr(muscle_pinggu) }}</span>
142
+                <span>总分:{{ Mus_Totalpoints }}</span>
143
+                <span>打印时间:{{ dayintime }}</span>
143 144
               </div>
144 145
               <table class="tables" border="1" style="width: 100%;border-collapse: collapse;font-size: 16px;">
145 146
                 <thead>
@@ -153,16 +154,16 @@
153 154
                       <td class="start">{{ item.title }}</td>
154 155
                       <td>
155 156
                         <div >
156
-                          <label style="font-size: 15px;"><input type="checkbox" name="ball" :value="item.value"  v-model="item.is_check"/>&nbsp;{{ item.value }}</label>
157
+                          <label style="font-size: 15px;"><input type="checkbox" name="ball" :value="item.value"  v-model="item.is_check"/>&nbsp;{{ item.label }}</label>
157 158
                         </div>
158 159
                       </td>
159 160
                     </tr>
160 161
                   </tbody>
161 162
               </table>
162
-              <div style="vertical-align: top;  margin: 10px 0px; position: relative;">
163
-                  <span style="position: relative; top: -55px;">护理措施:</span>
163
+              <div style="vertical-align: top;  margin: 10px 0px; ">
164
+                  <span style="">护理措施:</span>
164 165
                   <div style="margin-top: 20px;display: inline-block; width: 85%;height: 80px;">
165
-
166
+                    {{ content }}
166 167
                   </div>
167 168
               </div>
168 169
 
@@ -187,6 +188,7 @@
187 188
 </template>
188 189
 <script>
189 190
 import PatientSidebar from '../components/PatientSidebar.vue'
191
+import { uParseTime } from '@/utils/tools'
190 192
 import print from 'print-js'
191 193
 export default {
192 194
   components:{
@@ -206,12 +208,12 @@ export default {
206 208
       options:[],
207 209
       tableData:[],
208 210
       shuju:[
209
-        {title:'0级',label:'肌肉完全不收缩',value:0,is_check:false},
210
-        {title:'1级',label:'可见肌肉收缩但无肢体运动',value:1,is_check:false},
211
-        {title:'2级',label:'肢体能在床上移动,但不能抬离床面,即不能对抗地心引力',value:2,is_check:false},
212
-        {title:'3级',label:'肢体能抬离床面,克服地心引力做随意运动,但不能对抗外加阻力',value:3,is_check:false},
213
-        {title:'4级',label:'能在一般的外加阻力下作运动,但力量较正常弱',value:4},
214
-        {title:'5级',label:' 正常肌力',value:5,is_check:false},
211
+        {title:'0级',label:'肌肉完全不收缩',value:0,is_check:false,check:0},
212
+        {title:'1级',label:'可见肌肉收缩但无肢体运动',value:1,is_check:false,check:0},
213
+        {title:'2级',label:'肢体能在床上移动,但不能抬离床面,即不能对抗地心引力',value:2,is_check:false,check:0},
214
+        {title:'3级',label:'肢体能抬离床面,克服地心引力做随意运动,但不能对抗外加阻力',value:3,is_check:false,check:0},
215
+        {title:'4级',label:'能在一般的外加阻力下作运动,但力量较正常弱',value:4,is_check:false,check:0},
216
+        {title:'5级',label:' 正常肌力',value:5,is_check:false,check:0},
215 217
       ],
216 218
       history_muscle:[{id:'001',date:'2023-9-27',mark:'',evaluate:''}],
217 219
       pinggr:[{id:1,label:'小米'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
@@ -226,23 +228,30 @@ export default {
226 228
       dele_dialogVisible:false,
227 229
       content:"",
228 230
       text:"",
231
+      date:this.getTime(new Date()),
232
+      dayintime:this.getTime(new Date())
229 233
     }
230 234
   },
231 235
   methods:{
232
-    handleCheckedCitiesChange(e){
233
-      console.log('6666',e.target.value);
234
-      const ball = e.target.value
235
-      const checkboxs=document.getElementsByClassName('checkbox')
236
-      for(let i=0;i<checkboxs.length;i++){
237
-        if(ball==checkboxs[i].value ){
238
-          console.log('vvvv',this.ball,'bbbb',e.target.checked);
239
-          this.Mus_Totalpoints = checkboxs[i].value
240
-          checkboxs[i].checked=true
236
+    handleCheckedCitiesChange(item){
237
+      for(let i in this.shuju){
238
+        if(item.label==this.shuju[i].label){
239
+          if(item.check==0){
240
+            this.shuju[i].is_check=true
241
+            this.shuju[i].check=1
242
+            this.Mus_Totalpoints = item.value
243
+          }else{
244
+            this.shuju[i].is_check=false
245
+            this.shuju[i].check=0
246
+            this.Mus_Totalpoints = 0
247
+          }
241 248
         }else{
242
-          checkboxs[i].checked = false
249
+          this.shuju[i].is_check=false
250
+            this.shuju[i].check=0
243 251
         }
244 252
       }
245 253
     },
254
+    // 新增
246 255
     muscle_add(){
247 256
       if(this.add_open==1){
248 257
         this.append=true
@@ -252,6 +261,7 @@ export default {
252 261
         this.append = false
253 262
       }
254 263
     },
264
+    // 保存
255 265
     muscle_save(){
256 266
       if(this.muscle_pinggu==null){
257 267
         this.$message('请选择评估人')
@@ -261,21 +271,39 @@ export default {
261 271
         this.muscle_gsdayin=true
262 272
         this.cancel_num=1
263 273
 
274
+        var params={
275
+          shuju:this.shuju,
276
+          Mus_Totalpoints:this.Mus_Totalpoints,
277
+          content:this.content,
278
+          date:this.date,
279
+          muscle_pinggu:this.muscle_pinggu,
280
+        }
281
+        const arr={
282
+          id:'002',
283
+          date:this.date,
284
+          mark:this.Mus_Totalpoints,
285
+          evaluate:this.muscle_pinggu
286
+        }
287
+        console.log('44444',params);
288
+        this.history_muscle.push(arr)
264 289
         var musclelen=this.history_muscle
290
+        var musclename =''
265 291
         for(let i=0;i<musclelen.length;i++){
266 292
           musclelen[i].mark = this.Mus_Totalpoints
267 293
           for(let y=0;y<this.pinggr.length;y++){
268 294
             if(this.muscle_pinggu==this.pinggr[y].id){
269
-              musclelen[i].evaluate= this.pinggr[y].label
270
-              return musclelen[i].evaluate
295
+              musclename = this.pinggr[y].label
271 296
             }
272 297
           }
298
+          musclelen[i].evaluate = musclename
273 299
         }
274 300
       }
275 301
     },
302
+    // 选中右侧删除项
276 303
     Muscle_click(row,column, event){
277 304
       this.dele_id=row.id
278 305
     },
306
+    // 删除
279 307
     muscle_dele(){
280 308
       if(this.dele_id !=''){
281 309
         this.muscle_gsdayin=false
@@ -303,6 +331,7 @@ export default {
303 331
       this.baocun_quxiao=false
304 332
       this.append=false
305 333
     },
334
+    // 取消
306 335
     muscle_cancel(){
307 336
       if(this.cancel_num==0){
308 337
         this.baocun_quxiao=false
@@ -317,12 +346,14 @@ export default {
317 346
       }
318 347
 
319 348
     },
349
+    // 编辑
320 350
     muscle_editor(){
321 351
       this.baocun_quxiao=true
322 352
       this.muscle_gsdayin=false
323 353
       this.muscle_show=false
324 354
       this.cancel_num=1
325 355
     },
356
+    // 打印
326 357
     print_pingfen(){
327 358
       const style= '@media print {.diedao_content{background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0;} .tables thead th{ text-align: center;height: 40px;} .tables tbody td{height: 40px;padding:0 10px} .tables{font-size: 16px;}}'
328 359
       printJS({
@@ -333,8 +364,25 @@ export default {
333 364
       })
334 365
       this.open_print=false
335 366
     },
336
-
337
-
367
+    // 转换时间
368
+    getTime(val) {
369
+        if(val < 0){
370
+          return ""
371
+        }
372
+        if(val == ""){
373
+        return ""
374
+        }else {
375
+        return uParseTime(val, '{y}-{m}-{d}')
376
+        }
377
+    },
378
+    // 评估护士
379
+    getpinggr(id){
380
+      for(let i in this.pinggr){
381
+        if(id == this.pinggr[i].id){
382
+          return this.pinggr[i].label
383
+        }
384
+      }
385
+    }
338 386
   }
339 387
 }
340 388
 </script>

+ 165 - 99
src/xt_pages/user/evaluationtool/OHpressuresore.vue 查看文件

@@ -35,19 +35,19 @@
35 35
                           <tr class="bg_color">
36 36
                               <td class="start">自主体位变换</td>
37 37
                               <td>
38
-                                  <div class="jiange">
39
-                                      <span v-for="item in tiwei" class="rightjiange" @change="handleCheckedCitiesChange">
40
-                                          <label><input type="checkbox" class="checkbox1" name="ball" :value="item.value"/>&nbsp;{{ item.label }}</label>
41
-                                      </span>
42
-                                  </div>
38
+                                <div class="jiange">
39
+                                    <span v-for="item in tiwei" class="rightjiange" @change="handleCheckedCitiesChange($event,item)">
40
+                                        <label><input type="checkbox" class="checkbox1" name="ball" v-model="item.is_check" :value="item.value"/>&nbsp;{{ item.label }}</label>
41
+                                    </span>
42
+                                </div>
43 43
                               </td>
44 44
                           </tr>
45 45
                           <tr>
46 46
                               <td class="start">病理性骨突出</td>
47 47
                               <td>
48 48
                                   <div class="jiange">
49
-                                      <span v-for="item in bingli" class="rightjiange" @change="bingligu">
50
-                                          <label><input type="checkbox" class="checkbox2" name="ball" :value="item.value" />&nbsp;{{ item.label }}</label>
49
+                                      <span v-for="item in bingli" class="rightjiange" @change="bingligu(item)">
50
+                                          <label><input type="checkbox" class="checkbox2" name="ball" v-model="item.is_check" :value="item.value" />&nbsp;{{ item.label }}</label>
51 51
                                       </span>
52 52
                                   </div>
53 53
                               </td>
@@ -57,8 +57,8 @@
57 57
                               <td class="start">浮肿</td>
58 58
                               <td>
59 59
                                   <div class="jiange">
60
-                                      <span v-for="item in edema" class="rightjiange" @change="fozhong_chang">
61
-                                          <label><input type="checkbox" class="checkbox3" name="ball" :value="item.value" />&nbsp;{{ item.label }}</label>
60
+                                      <span v-for="item in edema" class="rightjiange" @change="fozhong_chang(item)">
61
+                                          <label><input type="checkbox" class="checkbox3" name="ball" v-model="item.is_check" :value="item.value" />&nbsp;{{ item.label }}</label>
62 62
                                       </span>
63 63
                                   </div>
64 64
                               </td>
@@ -68,8 +68,8 @@
68 68
                               <td class="start">关节痉挛</td>
69 69
                                 <td>
70 70
                                   <div class="jiange">
71
-                                      <span v-for="item in guanjie" class="rightjiange" @change="guanjie_change">
72
-                                          <label><input type="checkbox" class="checkbox4" name="ball" :value="item.value" />&nbsp;{{ item.label }}</label>
71
+                                      <span v-for="item in guanjie" class="rightjiange" @change="guanjie_change(item)">
72
+                                          <label><input type="checkbox" class="checkbox4" name="ball" v-model="item.is_check" :value="item.value" />&nbsp;{{ item.label }}</label>
73 73
                                       </span>
74 74
                                   </div>
75 75
                               </td>
@@ -81,7 +81,7 @@
81 81
               <div style="vertical-align: top;  margin: 10px 0px; position: relative;">
82 82
                   <span style="position: relative; top: -55px;">护理措施:</span>
83 83
                   <div style="margin-top: 20px;display: inline-block; width: 85%;">
84
-                      <el-input maxlength="200" type = "textarea" :rows="3" v-model="input" placeholder="输入护理措施,200字以内" ></el-input>
84
+                      <el-input maxlength="200" type = "textarea" :rows="3" v-model="oh_huli" placeholder="输入护理措施,200字以内" ></el-input>
85 85
                   </div>
86 86
               </div>
87 87
 
@@ -93,18 +93,19 @@
93 93
                 <div class="bottoms">
94 94
                   <span>评估日期:</span>
95 95
                   <el-date-picker
96
-                    v-model="value1"
96
+                    v-model="oh_date"
97 97
                     type="date"
98 98
                     placeholder="选择日期"
99
+                    value-format="yyyy-MM-dd"
99 100
                     :clearable="false"
100 101
                     style="width: 150px;">
101 102
                   </el-date-picker>
102 103
                 </div>
103 104
                 <div class="bottoms">
104 105
                   <span>评估人:</span>
105
-                  <el-select v-model="appraiser" placeholder="请选择"  style="width:120px;">
106
+                  <el-select v-model="oh_appraiser" placeholder="请选择"  style="width:120px;">
106 107
                       <el-option
107
-                      v-for="item in pinggr"
108
+                      v-for="item in oh_pinggr"
108 109
                       :key="item.id"
109 110
                       :label="item.label"
110 111
                       :value="item.id"
@@ -180,10 +181,10 @@
180 181
               <div style="margin-top: 20px;font-size: 16px;">
181 182
                 <span>患者姓名:</span>
182 183
                 <span>透析号:</span>
183
-                <span>评估日期:</span>
184
-                <span>评估护士:</span>
185
-                <span>总分:</span>
186
-                <span>打印时间:</span>
184
+                <span>评估日期:{{ oh_date }}</span>
185
+                <span>评估护士:{{ getpinggr(oh_appraiser) }}</span>
186
+                <span>总分:{{ Totalpoints }}</span>
187
+                <span>打印时间:{{ dayintime }}</span>
187 188
               </div>
188 189
               <table class="tables" border="1" style="width: 100%;border-collapse: collapse;">
189 190
                 <thead>
@@ -193,53 +194,54 @@
193 194
                   </tr>
194 195
                 </thead>
195 196
                 <tbody>
196
-                    <tr class="">
197
-                      <td class="">自主体位变换</td>
198
-                      <td>
199
-                        <div class="">
200
-                          <span v-for="item in tiwei"  style="padding-right: 10px;">
201
-                            <label><input type="checkbox" name="ball" :value="item"/>&nbsp;{{ item }}</label>
202
-                          </span>
203
-                        </div>
204
-                      </td>
197
+                    <tr class="bg_color">
198
+                        <td class="start">自主体位变换</td>
199
+                        <td>
200
+                          <div class="jiange">
201
+                              <span v-for="item in tiwei" class="rightjiange" @change="handleCheckedCitiesChange($event,item)">
202
+                                  <label><input type="checkbox" class="checkbox1" name="ball" v-model="item.is_check" :value="item.value"/>&nbsp;{{ item.label }}</label>
203
+                              </span>
204
+                          </div>
205
+                        </td>
205 206
                     </tr>
206 207
                     <tr>
207
-                        <td >病理性骨突出</td>
208
+                        <td class="start">病理性骨突出</td>
208 209
                         <td>
209
-                            <div >
210
-                                <span v-for="item in bingli"  style="padding-right: 10px;">
211
-                                    <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
210
+                            <div class="jiange">
211
+                                <span v-for="item in bingli" class="rightjiange" @change="bingligu(item)">
212
+                                    <label><input type="checkbox" class="checkbox2" name="ball" v-model="item.is_check" :value="item.value" />&nbsp;{{ item.label }}</label>
212 213
                                 </span>
213 214
                             </div>
214 215
                         </td>
215 216
                     </tr>
216 217
 
217
-                    <tr >
218
-                      <td >浮肿</td>
219
-                      <td>
220
-                          <div >
221
-                              <span v-for="item in edema" style="padding-right: 10px;">
222
-                                  <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
223
-                              </span>
224
-                          </div>
225
-                      </td>
218
+                    <tr class="bg_color">
219
+                        <td class="start">浮肿</td>
220
+                        <td>
221
+                            <div class="jiange">
222
+                                <span v-for="item in edema" class="rightjiange" @change="fozhong_chang(item)">
223
+                                    <label><input type="checkbox" class="checkbox3" name="ball" v-model="item.is_check" :value="item.value" />&nbsp;{{ item.label }}</label>
224
+                                </span>
225
+                            </div>
226
+                        </td>
226 227
                     </tr>
227 228
 
228 229
                     <tr>
229
-                      <td>关节痉挛</td>
230
-                      <td>
231
-                        <div>
232
-                          <span v-for="item in guanjie"  style="padding-right: 10px;">
233
-                            <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
234
-                          </span>
235
-                        </div>
236
-                      </td>
230
+                        <td class="start">关节痉挛</td>
231
+                          <td>
232
+                            <div class="jiange">
233
+                                <span v-for="item in guanjie" class="rightjiange" @change="guanjie_change(item)">
234
+                                    <label><input type="checkbox" class="checkbox4" name="ball" v-model="item.is_check" :value="item.value" />&nbsp;{{ item.label }}</label>
235
+                                </span>
236
+                            </div>
237
+                        </td>
237 238
                     </tr>
238 239
                 </tbody>
239 240
               </table>
240
-              <div style="vertical-align: top;  margin: 10px 0px; position: relative;">
241
-                  <span style="position: relative; top: -55px;">护理措施:</span>
241
+              <div style="vertical-align: top;  margin: 10px 0px; ">
242
+                  <span >护理措施:</span>
242 243
                   <div style="margin-top: 20px;display: inline-block; width: 85%;height: 80px;">
244
+                    {{ oh_huli }}
243 245
                       <!-- <el-input maxlength="200" type = "textarea" :rows="3" v-model="input" placeholder="输入护理措施,200字以内" ></el-input> -->
244 246
                   </div>
245 247
               </div>
@@ -275,6 +277,7 @@
275 277
 <script>
276 278
 import PatientSidebar from '../components/PatientSidebar.vue'
277 279
 import print from 'print-js'
280
+import { uParseTime } from '@/utils/tools'
278 281
 export default {
279 282
   components:{
280 283
     PatientSidebar
@@ -293,11 +296,11 @@ export default {
293 296
       appraiser:null,
294 297
       value1:'',
295 298
       options:[],
296
-      tiwei:[{value:0,label:'能(0分)'},{value:1.5,label:'不能完全自立(1.5分)'},{value:3,label:'不能(3分)'}],
297
-      bingli:[{value:0,label:'无(0分)'},{value:1.5,label:'轻度/中度(1.5分)'},{value:3,label:'高度(3分)'}],
298
-      edema:[{value:0,label:'无(0分)'},{value:3,label:'有(3分)'}],
299
-      guanjie:[{value:0,label:'无(0分)'},{value:1,label:'有(1分)'}],
300
-      pinggr:[{id:1,label:'小米'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
299
+      tiwei:[{id:1,value:0,label:'能(0分)',check:0,is_check:false},{id:2,value:1.5,label:'不能完全自立(1.5分)',check:0,is_check:false},{id:3,value:3,label:'不能(3分)',check:0,is_check:false}],
300
+      bingli:[{value:0,label:'无(0分)',check:0,is_check:false},{value:1.5,label:'轻度/中度(1.5分)',check:0,is_check:false},{value:3,label:'高度(3分)',check:0,is_check:false}],
301
+      edema:[{value:0,label:'无(0分)',check:0,is_check:false},{value:3,label:'有(3分)',check:0,is_check:false}],
302
+      guanjie:[{value:0,label:'无(0分)',check:0,is_check:false},{value:1,label:'有(1分)',check:0,is_check:false}],
303
+      oh_pinggr:[{id:1,label:'小米'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
301 304
       checkList:[],
302 305
       checkList1:[],
303 306
       checkList2:[],
@@ -311,61 +314,87 @@ export default {
311 314
       cancel_num:0,//取消的条件
312 315
       open_print:false,
313 316
       dele_id:'',//删除的索引
314
-      dele_dialogVisible:false
317
+      dele_dialogVisible:false,
318
+      oh_huli:'',//护理措施
319
+      oh_date:this.getTime(new Date()),
320
+      oh_appraiser:null,
321
+      dayintime:this.getTime(new Date())//打印
322
+      // oh_pinggr:[],
315 323
     }
316 324
   },
317 325
   methods:{
318 326
     //选择的总分
319
-    handleCheckedCitiesChange(e){
320
-      const ball = e.target.value
321
-      const checkboxs=document.getElementsByClassName('checkbox1')
322
-      for(let i=0;i<checkboxs.length;i++){
323
-        if(ball==checkboxs[i].value ){
324
-            console.log('vvvv',ball,'bbbb',e.target.checked);
325
-            this.tiwei_num = checkboxs[i].value
326
-            e.target.checked=true
327
-            checkboxs[i].checked=true
327
+    handleCheckedCitiesChange(e,item){
328
+      console.log('vvvv','bbbb',item);
329
+      for(let i=0;i<this.tiwei.length;i++){
330
+        if(item.value == this.tiwei[i].value){
331
+          if(this.tiwei[i].check == 0){
332
+            this.tiwei[i].check =1
333
+            this.tiwei[i].is_check = true
334
+            this.tiwei_num = item.value
335
+          }else{
336
+            this.tiwei[i].check =0
337
+            this.tiwei[i].is_check = false
338
+            this.tiwei_num = 0
339
+          }
328 340
         }else{
329
-          checkboxs[i].checked = false
341
+          this.tiwei[i].check =0
342
+          this.tiwei[i].is_check = false
330 343
         }
331 344
       }
345
+      console.log('oooo',this.tiwei);
332 346
     },
333
-    bingligu(e){
334
-      const ball=e.target.value
335
-      const checkboxs=document.getElementsByClassName('checkbox2')
336
-      for(let i=0;i<checkboxs.length;i++){
337
-        if(ball==checkboxs[i].value ){
338
-          console.log('vvvv',ball,'bbbb',e.target.checked);
339
-          this.bingli_num = checkboxs[i].value
340
-          checkboxs[i].checked=true
347
+    bingligu(item){
348
+      for(let i=0;i<this.bingli.length;i++){
349
+        if(item.value == this.bingli[i].value){
350
+          if(this.bingli[i].check == 0){
351
+            this.bingli[i].check =1
352
+            this.bingli[i].is_check = true
353
+            this.bingli_num = item.value
354
+          }else{
355
+            this.bingli[i].check =0
356
+            this.bingli[i].is_check = false
357
+            this.bingli_num = 0
358
+          }
341 359
         }else{
342
-          checkboxs[i].checked = false
360
+          this.bingli[i].check =0
361
+          this.bingli[i].is_check = false
343 362
         }
344 363
       }
345 364
     },
346
-    fozhong_chang(e){
347
-      const ball=e.target.value
348
-      const checkboxs=document.getElementsByClassName('checkbox3')
349
-      for(let i=0;i<checkboxs.length;i++){
350
-        if(ball==checkboxs[i].value ){
351
-          console.log('vvvv',ball,'bbbb',e.target.checked);
352
-          this.edema_num = checkboxs[i].value
353
-          checkboxs[i].checked=true
365
+    fozhong_chang(item){
366
+      for(let i=0;i<this.edema.length;i++){
367
+        if(item.value == this.edema[i].value){
368
+          if(this.edema[i].check == 0){
369
+            this.edema[i].check =1
370
+            this.edema[i].is_check = true
371
+            this.edema_num = item.value
372
+          }else{
373
+            this.edema[i].check =0
374
+            this.edema[i].is_check = false
375
+            this.edema_num = 0
376
+          }
354 377
         }else{
355
-          checkboxs[i].checked = false
378
+          this.edema[i].check =0
379
+          this.edema[i].is_check = false
356 380
         }
357 381
       }
358 382
     },
359
-    guanjie_change(e){
360
-      const ball=e.target.value
361
-      const checkboxs=document.getElementsByClassName('checkbox4')
362
-      for(let i=0;i<checkboxs.length;i++){
363
-        if(ball==checkboxs[i].value ){
364
-          console.log('vvvv',ball,'bbbb',e.target.checked);
365
-          this.gaunjie_num= checkboxs[i].value
366
-          checkboxs[i].checked=true
383
+    guanjie_change(item){
384
+      for(let i=0;i<this.guanjie.length;i++){
385
+        if(item.value == this.guanjie[i].value){
386
+          if(this.guanjie[i].check == 0){
387
+            this.guanjie[i].check =1
388
+            this.guanjie[i].is_check = true
389
+            this.gaunjie_num = item.value
390
+          }else{
391
+            this.guanjie[i].check =0
392
+            this.guanjie[i].is_check = false
393
+            this.gaunjie_num = 0
394
+          }
367 395
         }else{
368
-          checkboxs[i].checked = false
396
+          this.guanjie[i].check =0
397
+          this.guanjie[i].is_check = false
369 398
         }
370 399
       }
371 400
     },
@@ -382,21 +411,39 @@ export default {
382 411
     },
383 412
     //保存
384 413
     save_OH(){
385
-      if(this.appraiser==null){
414
+      if(this.oh_appraiser==null){
386 415
         this.$message('请选择评估人')
387 416
       }else{
388 417
         this.baocun_open=0
389 418
         this.add_show=true
390 419
         this.zsgy_open=1
391 420
         this.cancel_num=1
392
-
421
+        var params={
422
+          patientID:this.patientID,
423
+          tiwei:this.tiwei,
424
+          bingli:this.bingli,
425
+          edema:this.edema,
426
+          guanjie:this.guanjie,
427
+          oh_huli:this.oh_huli,
428
+          oh_date:this.oh_date,
429
+          oh_appraiser:this.oh_appraiser,
430
+          Totalpoints:this.Totalpoints
431
+        }
432
+        const arr={
433
+          id:'002',
434
+          date:this.oh_date,
435
+          mark:this.Totalpoints,
436
+          evaluate:this.oh_appraiser
437
+        }
438
+        console.log('rrrrr',arr,params);
439
+        this.history_OH.push(arr)
393 440
         const lenOH= this.history_OH
394 441
         var nameoh=''
395 442
         for(let i=0;i<lenOH.length;i++){
396 443
           lenOH[i].mark= this.Totalpoints
397
-          for(let y=0;y<this.pinggr.length;y++){
398
-            if(this.appraiser==this.pinggr[y].id){
399
-              nameoh=this.pinggr[y].label
444
+          for(let y=0;y<this.oh_pinggr.length;y++){
445
+            if(this.oh_appraiser==this.oh_pinggr[y].id){
446
+              nameoh=this.oh_pinggr[y].label
400 447
             }
401 448
           }
402 449
           lenOH[i].evaluate= nameoh
@@ -475,6 +522,25 @@ export default {
475 522
         scanStyles: false
476 523
       })
477 524
       this.open_print=false
525
+    },
526
+    // 转换时间
527
+    getTime(val) {
528
+        if(val < 0){
529
+          return ""
530
+        }
531
+        if(val == ""){
532
+        return ""
533
+        }else {
534
+        return uParseTime(val, '{y}-{m}-{d}')
535
+        }
536
+    },
537
+    // 评估护士
538
+    getpinggr(id){
539
+      for(let i in this.oh_pinggr){
540
+        if(id == this.oh_pinggr[i].id){
541
+          return this.oh_pinggr[i].label
542
+        }
543
+      }
478 544
     }
479 545
   },
480 546
   computed:{

+ 225 - 134
src/xt_pages/user/evaluationtool/dailyLife.vue 查看文件

@@ -26,7 +26,7 @@
26 26
                         <td v-for="(item,index) in jinshi" :key="index">
27 27
                           <div class="jiange">
28 28
                             <span>
29
-                              <label><input type="checkbox" class="checkbox1" name="ball" :value="item.value" @click="jinshiclick($event,item.value)"/>&nbsp;
29
+                              <label><input type="checkbox" class="checkbox1" name="ball" :value="item.value" v-model="item.is_check" @click="jinshiclick($event,item)"/>&nbsp;
30 30
                                   {{ item.label }}
31 31
                               </label>
32 32
                             </span>
@@ -39,35 +39,33 @@
39 39
                         <td v-for="(item,index) in xizao" :key="index">
40 40
                           <div class="jiange">
41 41
                             <span>
42
-                              <label><input type="checkbox" class="checkbox2" name="ball" :value="item.value" @click="xizaoclick($event,item.value)"/>&nbsp;
42
+                              <label><input type="checkbox" class="checkbox2" name="ball" :value="item.value" v-model="item.is_check" @click="xizaoclick($event,item)"/>&nbsp;
43 43
                                   {{ item.label }}
44 44
                               </label>
45 45
                             </span>
46 46
                           </div>
47 47
                         </td>
48
-                        <td></td>
49
-                        <td></td>
48
+                        <td></td><td></td>
50 49
                       </tr>
51 50
                       <tr class="bg_color">
52 51
                         <td class="start">修饰</td>
53 52
                         <td v-for="(item,index) in xiushi" :key="index">
54 53
                             <div class="jiange">
55 54
                               <span>
56
-                                <label><input type="checkbox" class="checkbox3" name="ball" :value="item.value" @click="xiushiclick($event,item.value)"/>&nbsp;
55
+                                <label><input type="checkbox" class="checkbox3" name="ball" :value="item.value" v-model="item.is_check" @click="xiushiclick($event,item)"/>&nbsp;
57 56
                                     {{item.label}}
58 57
                                 </label>
59 58
                               </span>
60 59
                             </div>
61 60
                         </td>
62
-                        <td></td>
63
-                        <td></td>
61
+                        <td></td><td></td>
64 62
                       </tr>
65 63
                       <tr>
66 64
                         <td class="start">穿衣</td>
67 65
                         <td v-for="(item,index) in chuanyi" :key="index">
68 66
                           <div class="jiange">
69 67
                             <span>
70
-                              <label><input type="checkbox" class="checkbox4" name="ball" :value="item.value" @click="chuanyiclick($event,item.value)"/>&nbsp;
68
+                              <label><input type="checkbox" class="checkbox4" name="ball" :value="item.value" v-model="item.is_check" @click="chuanyiclick($event,item)"/>&nbsp;
71 69
                                   {{item.label}}
72 70
                               </label>
73 71
                             </span>
@@ -80,7 +78,7 @@
80 78
                         <td v-for="(item,index) in dabian" :key="index">
81 79
                           <div class="jiange">
82 80
                             <span>
83
-                              <label><input type="checkbox" class="checkbox5" name="ball" :value="item.value" @click="dabianclick($event,item.value)"/>&nbsp;
81
+                              <label><input type="checkbox" class="checkbox5" name="ball" :value="item.value" v-model="item.is_check" @click="dabianclick($event,item)"/>&nbsp;
84 82
                                   {{item.label}}
85 83
                               </label>
86 84
                             </span>
@@ -93,7 +91,7 @@
93 91
                         <td v-for="(item,index) in xioabian" :key="index">
94 92
                           <div class="jiange">
95 93
                             <span>
96
-                              <label><input type="checkbox" class="checkbox6" name="ball" :value="item.value" @click="xiaobianclick($event,item.value)"/>&nbsp;
94
+                              <label><input type="checkbox" class="checkbox6" name="ball" :value="item.value" v-model="item.is_check" @click="xiaobianclick($event,item)"/>&nbsp;
97 95
                                   {{item.label}}
98 96
                               </label>
99 97
                             </span>
@@ -106,7 +104,7 @@
106 104
                         <td v-for="(item,index) in ruce" :key="index">
107 105
                           <div class="jiange">
108 106
                             <span>
109
-                              <label><input type="checkbox" class="checkbox7" name="ball" :value="item.value" @click="ruceclick($event,item.value)"/>&nbsp;
107
+                              <label><input type="checkbox" class="checkbox7" name="ball" :value="item.value" v-model="item.is_check" @click="ruceclick($event,item)"/>&nbsp;
110 108
                                   {{item.label}}
111 109
                               </label>
112 110
                             </span>
@@ -119,7 +117,7 @@
119 117
                         <td v-for="(item,index) in chuangyi" :key="index">
120 118
                           <div class="jiange">
121 119
                             <span>
122
-                              <label><input type="checkbox" class="checkbox8" name="ball" :value="item.value" @click="chuangyiclick($event,item.value)"/>&nbsp;
120
+                              <label><input type="checkbox" class="checkbox8" name="ball" :value="item.value" v-model="item.is_check" @click="chuangyiclick($event,item)"/>&nbsp;
123 121
                                   {{item.label}}
124 122
                               </label>
125 123
                             </span>
@@ -131,7 +129,7 @@
131 129
                         <td v-for="(item,index) in pingdi" :key="index">
132 130
                           <div class="jiange">
133 131
                             <span>
134
-                              <label><input type="checkbox" class="checkbox9" name="ball" :value="item.value" @click="pingdiclick($event,item.value)"/>&nbsp;
132
+                              <label><input type="checkbox" class="checkbox9" name="ball" :value="item.value" v-model="item.is_check" @click="pingdiclick($event,item)"/>&nbsp;
135 133
                                   {{item.label}}
136 134
                               </label>
137 135
                             </span>
@@ -143,7 +141,7 @@
143 141
                         <td v-for="(item,index) in louti" :key="index">
144 142
                           <div class="jiange">
145 143
                             <span>
146
-                              <label><input type="checkbox" class="checkbox10" name="ball" :value="item.value" @click="louticlick($event,item.value)"/>&nbsp;
144
+                              <label><input type="checkbox" class="checkbox10" name="ball" :value="item.value" v-model="item.is_check" @click="louticlick($event,item)"/>&nbsp;
147 145
                                   {{ item.label }}
148 146
                               </label>
149 147
                             </span>
@@ -165,8 +163,9 @@
165 163
                       <div class="bottoms">
166 164
                           <span>评估日期:</span>
167 165
                           <el-date-picker
168
-                              v-model="value1"
166
+                              v-model="date"
169 167
                               type="date"
168
+                              value-format="yyyy-MM-dd"
170 169
                               placeholder="选择日期"
171 170
                               :clearable="false"
172 171
                               style="width: 150px;">
@@ -175,9 +174,9 @@
175 174
 
176 175
                       <div class="bottoms">
177 176
                           <span>评估人:</span>
178
-                          <el-select v-model="value" placeholder="请选择" >
177
+                          <el-select v-model="appraiser" placeholder="请选择" >
179 178
                               <el-option
180
-                              v-for="item in options"
179
+                              v-for="item in optionsarr"
181 180
                               :key="item.value"
182 181
                               :label="item.label"
183 182
                               :value="item.value"
@@ -188,7 +187,7 @@
188 187
 
189 188
                   </div>
190 189
                   <div style="margin:5px 10px;">
191
-                          <el-button type="primary">确认</el-button>
190
+                          <el-button type="primary" @click="lifeclick">确认</el-button>
192 191
                   </div>
193 192
                 </div>
194 193
                 <hr style="border:none;height:1px;background:#DCDFE6;"/>
@@ -205,6 +204,7 @@
205 204
 </template>
206 205
 <script>
207 206
 import PatientSidebar from '../components/PatientSidebar.vue'
207
+import { uParseTime } from '@/utils/tools'
208 208
 export default {
209 209
   components:{
210 210
     PatientSidebar
@@ -226,174 +226,265 @@ export default {
226 226
       chuangyi_val:null,
227 227
       paingdi_val:null,
228 228
       louti_val:null,
229
-      jinshi:[{value:10,label:'可独立进食(10分)'},
230
-              {value:5,label:'需部分帮助(如协助夹菜等)(5分)'},
231
-              {value:0,label:'需极大帮助或完全依赖他人(0分)'}
229
+      appraiser:'',
230
+      optionsarr:[],
231
+      date:this.getTime(new Date()),
232
+      jinshi:[{value:10,label:'可独立进食(10分)',is_check:false,check:0},
233
+              {value:5,label:'需部分帮助(如协助夹菜等)(5分)',is_check:false,check:0},
234
+              {value:0,label:'需极大帮助或完全依赖他人(0分)',is_check:false,check:0}
235
+            ],
236
+      xizao:[{value:5,label:'准备好洗澡水后可独立完成(5分)',is_check:false,check:0},
237
+              {value:0,label:'在洗澡过程中需他人帮助(0分)',is_check:false,check:0}
232 238
             ],
233
-      xizao:[{value:5,label:'准备好洗澡水后可独立完成(5分)'},
234
-              {value:0,label:'在洗澡过程中需他人帮助(0分)'}
239
+      xiushi:[{value:5,label:'可自己独立完成(5分)',is_check:false,check:0},
240
+              {value:0,label:'需他人帮助(0分)',is_check:false,check:0}
235 241
             ],
236
-      xiushi:[{value:5,label:'可自己独立完成(5分)'},
237
-              {value:0,label:'需他人帮助(0分)'}
242
+      chuanyi:[{value:10,label:'可独立完成(10分)',is_check:false,check:0},
243
+              {value:5,label:'需部分帮助(如协助系鞋带等)(5分)',is_check:false,check:0},
244
+              {value:0,label:'需极大帮助或完全依赖他人(0分)',is_check:false,check:0}
238 245
             ],
239
-      chuanyi:[{value:10,label:'可独立完成(10分)'},
240
-              {value:5,label:'需部分帮助(如协助系鞋带等)(5分)'},
241
-              {value:0,label:'需极大帮助或完全依赖他人(0分)'}
246
+      dabian:[{value:10,label:'可控制大便(10分)',is_check:false,check:0},
247
+              {value:5,label:'偶尔失禁(5分)',is_check:false,check:0},
248
+              {value:0,label:'完全失禁(0分)',is_check:false,check:0}
242 249
             ],
243
-      dabian:[{value:10,label:'可控制大便(10分)'},
244
-              {value:5,label:'偶尔失禁(5分)'},
245
-              {value:0,label:'完全失禁(0分)'}
250
+      xioabian:[{value:10,label:'可控制小便(10分)',is_check:false,check:0},
251
+              {value:5,label:'偶尔失禁(5分)',is_check:false,check:0},
252
+              {value:0,label:'完全失禁(0分)',is_check:false,check:0}
246 253
             ],
247
-      xioabian:[{value:10,label:'可控制小便(10分)'},
248
-              {value:5,label:'偶尔失禁(5分)'},
249
-              {value:0,label:'完全失禁(0分)'}
254
+      ruce:[{value:10,label:'可独立完成(10分)',is_check:false,check:0},
255
+            {value:5,label:'需部分帮助(如协助整理衣裤等)(5分)',is_check:false,check:0},
256
+            {value:0,label:'需极大帮助或完全依赖他人(0分)',is_check:false,check:0}
250 257
             ],
251
-      ruce:[{value:10,label:'可独立完成(10分)'},
252
-            {value:5,label:'需部分帮助(如协助整理衣裤等)(5分)'},
253
-            {value:0,label:'需极大帮助或完全依赖他人(0分)'}
254
-          ],
255
-      chuangyi:[{value:15,label:'可独立完成(15分)'},
256
-              {value:10,label:'需部分帮助(1人协助))(10分)'},
257
-              {value:5,label:'需极大帮助(2人协助)(5分)'},
258
-              {value:0,label:'完全依赖他人,不能坐(0分)'}
258
+      chuangyi:[{value:15,label:'可独立完成(15分)',is_check:false,check:0},
259
+              {value:10,label:'需部分帮助(1人协助))(10分)',is_check:false,check:0},
260
+              {value:5,label:'需极大帮助(2人协助)(5分)',is_check:false,check:0},
261
+              {value:0,label:'完全依赖他人,不能坐(0分)',is_check:false,check:0}
259 262
             ],
260
-      pingdi:[{value:15,label:'可独立在平地上行走>45S,可用辅助工具(15分)'},
261
-              {value:10,label:'需部分帮助(他人搀扶或使用辅助工具)(10分)'},
262
-              {value:5,label:'需极大帮助(可坐轮椅自动移动))(5分)'},
263
-              {value:0,label:'完全依赖他人(0分)'}
263
+      pingdi:[{value:15,label:'可独立在平地上行走>45S,可用辅助工具(15分)',is_check:false,check:0},
264
+              {value:10,label:'需部分帮助(他人搀扶或使用辅助工具)(10分)',is_check:false,check:0},
265
+              {value:5,label:'需极大帮助(可坐轮椅自动移动))(5分)',is_check:false,check:0},
266
+              {value:0,label:'完全依赖他人(0分)',is_check:false,check:0}
264 267
             ],
265
-      louti:[{value:10,label:'可独立上下1层楼梯(可用辅助工具)(10分)'},
266
-              {value:5,label:'需部分帮助(他人帮助)(5分)'},
267
-              {value:0,label:'需极大帮助或完全依赖他人(0分)'}
268
+      louti:[{value:10,label:'可独立上下1层楼梯(可用辅助工具)(10分)',is_check:false,check:0},
269
+              {value:5,label:'需部分帮助(他人帮助)(5分)',is_check:false,check:0},
270
+              {value:0,label:'需极大帮助或完全依赖他人(0分)',is_check:false,check:0}
268 271
             ],
269 272
     }
270 273
   },
271 274
   methods:{
272
-    jinshiclick(e,val){
273
-      const checkboxs=document.getElementsByClassName('checkbox1')
274
-      for(let i=0;i<checkboxs.length;i++){
275
-        if(val==checkboxs[i].value){
276
-          this.jinshi_val = val
277
-          checkboxs[i].value
278
-          checkboxs[i].checked=true
275
+    jinshiclick(e,item){
276
+      for(let i=0;i<this.jinshi.length;i++){
277
+        if(this.jinshi[i].value==item.value){
278
+          if(this.jinshi[i].check==0){
279
+            this.jinshi[i].is_check = true
280
+            this.jinshi[i].check = 1
281
+            this.jinshi_val = item.value
282
+          }else{
283
+            this.jinshi[i].is_check = false
284
+            this.jinshi[i].check = 0
285
+            this.jinshi_val = 0
286
+          }
279 287
         }else{
280
-          checkboxs[i].checked = false
288
+          this.jinshi[i].is_check = false
289
+            this.jinshi[i].check = 0
281 290
         }
282 291
       }
283 292
     },
284
-    xizaoclick(e,val){
285
-      const checkboxs=document.getElementsByClassName('checkbox2')
286
-      for(let i=0;i<checkboxs.length;i++){
287
-        if(val==checkboxs[i].value){
288
-          this.xizao_val = val
289
-          checkboxs[i].value
290
-          checkboxs[i].checked=true
293
+    xizaoclick(e,item){
294
+      for(let i=0;i<this.xizao.length;i++){
295
+        if(this.xizao[i].value==item.value){
296
+          if(this.xizao[i].check==0){
297
+            this.xizao[i].is_check = true
298
+            this.xizao[i].check = 1
299
+            this.xizao_val = item.value
300
+          }else{
301
+            this.xizao[i].is_check = false
302
+            this.xizao[i].check = 0
303
+            this.xizao_val = 0
304
+          }
291 305
         }else{
292
-          checkboxs[i].checked = false
306
+          this.xizao[i].is_check = false
307
+          this.xizao[i].check = 0
293 308
         }
294 309
       }
295 310
     },
296
-    xiushiclick(e,val){
297
-     const checkboxs=document.getElementsByClassName('checkbox3')
298
-      for(let i=0;i<checkboxs.length;i++){
299
-        if(val==checkboxs[i].value){
300
-          this.xiushi_val = val
301
-          checkboxs[i].value
302
-          checkboxs[i].checked=true
311
+    xiushiclick(e,item){
312
+      for(let i=0;i<this.xiushi.length;i++){
313
+        if(this.xiushi[i].value==item.value){
314
+          if(this.xiushi[i].check==0){
315
+            this.xiushi[i].is_check = true
316
+            this.xiushi[i].check = 1
317
+            this.xiushi_val = item.value
318
+          }else{
319
+            this.xiushi[i].is_check = false
320
+            this.xiushi[i].check = 0
321
+            this.xiushi_val = 0
322
+          }
303 323
         }else{
304
-          checkboxs[i].checked = false
324
+          this.xiushi[i].is_check = false
325
+          this.xiushi[i].check = 0
305 326
         }
306 327
       }
307 328
     },
308
-    chuanyiclick(e,val){
309
-     const checkboxs=document.getElementsByClassName('checkbox4')
310
-      for(let i=0;i<checkboxs.length;i++){
311
-        if(val==checkboxs[i].value){
312
-          this.chuanyi_val = val
313
-          checkboxs[i].value
314
-          checkboxs[i].checked=true
329
+    chuanyiclick(e,item){
330
+      for(let i=0;i<this.chuanyi.length;i++){
331
+        if(this.chuanyi[i].value==item.value){
332
+          if(this.chuanyi[i].check==0){
333
+            this.chuanyi[i].is_check = true
334
+            this.chuanyi[i].check = 1
335
+            this.chuanyi_val = item.value
336
+          }else{
337
+            this.chuanyi[i].is_check = false
338
+            this.chuanyi[i].check = 0
339
+            this.chuanyi_val = 0
340
+          }
315 341
         }else{
316
-          checkboxs[i].checked = false
342
+          this.chuanyi[i].is_check = false
343
+          this.chuanyi[i].check = 0
317 344
         }
318 345
       }
319 346
     },
320
-    dabianclick(e,val){
321
-     const checkboxs=document.getElementsByClassName('checkbox5')
322
-      for(let i=0;i<checkboxs.length;i++){
323
-        if(val==checkboxs[i].value){
324
-          this.dabian_val = val
325
-          checkboxs[i].value
326
-          checkboxs[i].checked=true
347
+    dabianclick(e,item){
348
+      for(let i=0;i<this.dabian.length;i++){
349
+        if(this.dabian[i].value==item.value){
350
+          if(this.dabian[i].check==0){
351
+            this.dabian[i].is_check = true
352
+            this.dabian[i].check = 1
353
+            this.dabian_val = item.value
354
+          }else{
355
+            this.dabian[i].is_check = false
356
+            this.dabian[i].check = 0
357
+            this.dabian_val = 0
358
+          }
327 359
         }else{
328
-          checkboxs[i].checked = false
360
+          this.dabian[i].is_check = false
361
+          this.dabian[i].check = 0
329 362
         }
330 363
       }
331 364
     },
332
-    xiaobianclick(e,val){
333
-     const checkboxs=document.getElementsByClassName('checkbox6')
334
-      for(let i=0;i<checkboxs.length;i++){
335
-        if(val==checkboxs[i].value){
336
-          this.xiaobian_val = val
337
-          checkboxs[i].value
338
-          checkboxs[i].checked=true
365
+    xiaobianclick(e,item){
366
+      for(let i=0;i<this.xioabian.length;i++){
367
+        if(this.xioabian[i].value==item.value){
368
+          if(this.xioabian[i].check==0){
369
+            this.xioabian[i].is_check = true
370
+            this.xioabian[i].check = 1
371
+            this.xiaobian_val = item.value
372
+          }else{
373
+            this.xioabian[i].is_check = false
374
+            this.xioabian[i].check = 0
375
+            this.xiaobian_val = 0
376
+          }
339 377
         }else{
340
-          checkboxs[i].checked = false
378
+          this.xioabian[i].is_check = false
379
+          this.xioabian[i].check = 0
341 380
         }
342 381
       }
343 382
     },
344
-    ruceclick(e,val){
345
-     const checkboxs=document.getElementsByClassName('checkbox7')
346
-      for(let i=0;i<checkboxs.length;i++){
347
-        if(val==checkboxs[i].value){
348
-          this.ruce_val = val
349
-          checkboxs[i].value
350
-          checkboxs[i].checked=true
383
+    ruceclick(e,item){
384
+
385
+      for(let i=0;i<this.ruce.length;i++){
386
+        if(this.ruce[i].value==item.value){
387
+          if(this.ruce[i].check==0){
388
+            this.ruce[i].is_check = true
389
+            this.ruce[i].check = 1
390
+            this.ruce_val = item.value
391
+          }else{
392
+            this.ruce[i].is_check = false
393
+            this.ruce[i].check = 0
394
+            this.ruce_val = 0
395
+          }
351 396
         }else{
352
-          checkboxs[i].checked = false
397
+          this.ruce[i].is_check = false
398
+          this.ruce[i].check = 0
353 399
         }
354 400
       }
355 401
     },
356
-    chuangyiclick(e,val){
357
-     const checkboxs=document.getElementsByClassName('checkbox8')
358
-      for(let i=0;i<checkboxs.length;i++){
359
-        if(val==checkboxs[i].value){
360
-          this.chuangyi_val = val
361
-          checkboxs[i].value
362
-          checkboxs[i].checked=true
402
+    chuangyiclick(e,item){
403
+      for(let i=0;i<this.chuangyi.length;i++){
404
+        if(this.chuangyi[i].value==item.value){
405
+          if(this.chuangyi[i].check==0){
406
+            this.chuangyi[i].is_check = true
407
+            this.chuangyi[i].check = 1
408
+            this.chuangyi_val = item.value
409
+          }else{
410
+            this.chuangyi[i].is_check = false
411
+            this.chuangyi[i].check = 0
412
+            this.chuangyi_val = 0
413
+          }
363 414
         }else{
364
-          checkboxs[i].checked = false
415
+          this.chuangyi[i].is_check = false
416
+          this.chuangyi[i].check = 0
365 417
         }
366 418
       }
367 419
     },
368
-    pingdiclick(e,val){
369
-    //  if(e.target.checked == true){
370
-    //   this.paingdi_val = val
371
-    //  }else{
372
-    //   this.paingdi_val =this.paingdi_val - val
373
-    //  }
374
-     const checkboxs=document.getElementsByClassName('checkbox9')
375
-      for(let i=0;i<checkboxs.length;i++){
376
-        if(val==checkboxs[i].value){
377
-          this.paingdi_val = val
378
-          checkboxs[i].value
379
-          checkboxs[i].checked=true
420
+    pingdiclick(e,item){
421
+      for(let i=0;i<this.pingdi.length;i++){
422
+        if(this.pingdi[i].value==item.value){
423
+          if(this.pingdi[i].check==0){
424
+            this.pingdi[i].is_check = true
425
+            this.pingdi[i].check = 1
426
+            this.paingdi_val = item.value
427
+          }else{
428
+            this.pingdi[i].is_check = false
429
+            this.pingdi[i].check = 0
430
+            this.paingdi_val = 0
431
+          }
380 432
         }else{
381
-          checkboxs[i].checked = false
433
+          this.pingdi[i].is_check = false
434
+          this.pingdi[i].check = 0
382 435
         }
383 436
       }
384 437
     },
385
-    louticlick(e,val){
386
-     const checkboxs=document.getElementsByClassName('checkbox10')
387
-      for(let i=0;i<checkboxs.length;i++){
388
-        if(val==checkboxs[i].value){
389
-          this.louti_val = val
390
-          checkboxs[i].value
391
-          checkboxs[i].checked=true
438
+    louticlick(e,item){
439
+      for(let i=0;i<this.louti.length;i++){
440
+        if(this.louti[i].value==item.value){
441
+          if(this.louti[i].check==0){
442
+            this.louti[i].is_check = true
443
+            this.louti[i].check = 1
444
+            this.louti_val = item.value
445
+          }else{
446
+            this.louti[i].is_check = false
447
+            this.louti[i].check = 0
448
+            this.louti_val = 0
449
+          }
392 450
         }else{
393
-          checkboxs[i].checked = false
451
+          this.louti[i].is_check = false
452
+          this.louti[i].check = 0
394 453
         }
395 454
       }
396 455
     },
456
+    // 确认
457
+    lifeclick(){
458
+      var params={
459
+        jinshi:this.jinshi,
460
+        xizao:this.xizao,
461
+        xiushi:this.xiushi,
462
+        chuanyi:this.chuanyi,
463
+        dabian:this.dabian,
464
+        xioabian:this.xioabian,
465
+        ruce:this.ruce,
466
+        chuangyi:this.chuangyi,
467
+        pingdi:this.pingdi,
468
+        louti:this.louti,
469
+        patientID:this.patientID,
470
+        appraiser:this.appraiser,//评估人
471
+        optionsarr:this.optionsarr,//评估人数组
472
+        date:this.date,
473
+        date_Totalpoints:this.date_Totalpoints
474
+      }
475
+      console.log('2222222',params);
476
+    },
477
+    // 转换时间
478
+    getTime(val) {
479
+        if(val < 0){
480
+          return ""
481
+        }
482
+        if(val == ""){
483
+        return ""
484
+        }else {
485
+        return uParseTime(val, '{y}-{m}-{d}')
486
+        }
487
+    },
397 488
     datehistory(){
398 489
       this.$router.push({path: '/patients/date_history'})
399 490
     },

+ 65 - 25
src/xt_pages/user/evaluationtool/mindAssessment.vue 查看文件

@@ -24,7 +24,7 @@
24 24
                             <td>
25 25
                                 <div class="jiange">
26 26
                                     <span v-for="item in xinli" class="rightjiange">
27
-                                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;{{ item }}</label>
27
+                                        <label><input type="checkbox" name="ball" v-model="item.is_check" @click="xinliclick(item)"/>&nbsp;{{ item.label }}</label>
28 28
                                     </span>
29 29
                                 </div>
30 30
                             </td>
@@ -68,8 +68,9 @@
68 68
                         <div class="bottoms">
69 69
                             <span>评估日期:</span>
70 70
                             <el-date-picker
71
-                                v-model="value1"
71
+                                v-model="date"
72 72
                                 type="date"
73
+                                value-format="yyyy-MM-dd"
73 74
                                 placeholder="选择日期"
74 75
                                 :clearable="false"
75 76
                                 style="width: 150px;">
@@ -78,9 +79,9 @@
78 79
 
79 80
                         <div class="bottoms">
80 81
                             <span>评估人:</span>
81
-                            <el-select v-model="value" placeholder="请选择" >
82
+                            <el-select v-model="appraiser" placeholder="请选择" >
82 83
                                 <el-option
83
-                                v-for="item in options"
84
+                                v-for="item in optionsarr"
84 85
                                 :key="item.value"
85 86
                                 :label="item.label"
86 87
                                 :value="item.value"
@@ -90,7 +91,7 @@
90 91
                         </div>
91 92
                     </div>
92 93
                     <div style="margin:5px 10px;">
93
-                        <el-button type="primary">确认</el-button>
94
+                        <el-button type="primary" @click="mindclick">确认</el-button>
94 95
                     </div>
95 96
                 </div>
96 97
                 
@@ -99,32 +100,71 @@
99 100
     </div>
100 101
 </template>
101 102
 <script>
103
+import { uParseTime } from '@/utils/tools'
102 104
 import PatientSidebar from '../components/PatientSidebar.vue'
103 105
 export default {
104
-    components:{
105
-      PatientSidebar
106
+  components:{
107
+    PatientSidebar
108
+  },
109
+  data(){
110
+      return{
111
+          patientID:0,
112
+          checkList:'',
113
+          radio1:'',
114
+          radio2:'',
115
+          radio3:'',
116
+          options:[],
117
+          value:'',
118
+          value1:'',
119
+          xinli:[{label:'配合治疗',is_check:false,check:0},{label:'担忧',is_check:false,check:0},{label:'烦躁',is_check:false,check:0},
120
+          {label:'抵触情绪',is_check:false,check:0},{label:'拒绝治疗',is_check:false,check:0},{label:'坐立不安',is_check:false,check:0},
121
+          {label:'怪异行为',is_check:false,check:0},{label:'其他',is_check:false,check:0},],
122
+          qingan:['有','无'],
123
+          appraiser:'',
124
+          optionsarr:[],
125
+          date:this.getTime(new Date())
126
+      }
127
+      
128
+  },
129
+  methods:{
130
+    // 历史评分
131
+    mindhistory(){
132
+      this.$router.push({path: '/patients/mind_history'})
106 133
     },
107
-    data(){
108
-        return{
109
-            patientID:0,
110
-            checkList:'',
111
-            radio1:'',
112
-            radio2:'',
113
-            radio3:'',
114
-            options:[],
115
-            value:'',
116
-            value1:'',
117
-            xinli:['配合治疗','担忧','烦躁','抵触情绪','拒绝治疗','坐立不安','怪异行为','其他'],
118
-            qingan:['有','无',],
134
+    xinliclick(item){
135
+      for(let i in this.xinli){
136
+        if(item.is_check ==false){
137
+          if(item.label==this.xinli[i].label){
138
+            this.xinli[i].check=1
139
+          }
119 140
         }
120
-        
141
+      }
142
+      console.log(this.xinli);
121 143
     },
122
-    methods:{
123
-      // 历史评分
124
-      mindhistory(){
125
-        this.$router.push({path: '/patients/mind_history'})
144
+    // 确认
145
+    mindclick(){
146
+      var params={
147
+        radio1:this.radio1,
148
+        radio2:this.radio2,
149
+        radio3:this.radio3,
150
+        date:this.date,
151
+        appraiser:this.appraiser,
152
+        optionsarr:this.optionsarr,
153
+        xinli:this.xinli,
126 154
       }
127
-    }
155
+    },
156
+    // 转换时间
157
+    getTime(val) {
158
+        if(val < 0){
159
+          return ""
160
+        }
161
+        if(val == ""){
162
+        return ""
163
+        }else {
164
+        return uParseTime(val, '{y}-{m}-{d}')
165
+        }
166
+    },
167
+  }
128 168
 }
129 169
 </script>
130 170
 <style lang="scss" scoped>

+ 102 - 60
src/xt_pages/user/evaluationtool/pressuresore.vue 查看文件

@@ -55,30 +55,6 @@
55 55
                           ≤9分为极高危
56 56
                         </div>
57 57
                       </td>
58
-                      <!-- <td rowspan="6" style="position: relative;vertical-align: top;">
59
-                        <div class="jiange">
60
-                          <label><input name="ball" type="checkbox" value="football" />&nbsp;挂床头警示标识</label>
61
-                        </div>
62
-                        <div class="jiange">
63
-                          <label><input name="ball" type="checkbox" value="football" />&nbsp;保护受压皮肤,使用减压用具(气垫床/压疮床)</label>
64
-                        </div>
65
-                        <div class="jiange">
66
-                          <label><input name="ball" type="checkbox" value="football" />&nbsp;定时翻身,移动避免拖拉</label>
67
-                        </div>
68
-                        <div class="jiange">
69
-                          <label><input name="ball" type="checkbox" value="football" />&nbsp;加强营养</label>
70
-                        </div>
71
-                        <div class="jiange">
72
-                          <label><input name="ball" type="checkbox" value="football" />&nbsp;保持被衣物清洁舒适</label>
73
-                        </div>
74
-                        <div class="jiange">
75
-                          <label><input name="ball" type="checkbox" value="football" />&nbsp;其他</label>
76
-                        </div>
77
-                        <div class="tianjia" @click="add_press=true">
78
-                          
79
-                          +添加
80
-                        </div>
81
-                      </td> -->
82 58
                     </tr>
83 59
                     <tr class="bg_color start">
84 60
                       <td class="start">
@@ -186,23 +162,8 @@
186 162
                   <tbody>
187 163
                     <tr>
188 164
                       <td rowspan="6" style="position: relative;vertical-align: top;">
189
-                        <div class="jiange">
190
-                          <label><input name="ball" type="checkbox" value="football" />&nbsp;挂床头警示标识</label>
191
-                        </div>
192
-                        <div class="jiange">
193
-                          <label><input name="ball" type="checkbox" value="football" />&nbsp;保护受压皮肤,使用减压用具(气垫床/压疮床)</label>
194
-                        </div>
195
-                        <div class="jiange">
196
-                          <label><input name="ball" type="checkbox" value="football" />&nbsp;定时翻身,移动避免拖拉</label>
197
-                        </div>
198
-                        <div class="jiange">
199
-                          <label><input name="ball" type="checkbox" value="football" />&nbsp;加强营养</label>
200
-                        </div>
201
-                        <div class="jiange">
202
-                          <label><input name="ball" type="checkbox" value="football" />&nbsp;保持被衣物清洁舒适</label>
203
-                        </div>
204
-                        <div class="jiange">
205
-                          <label><input name="ball" type="checkbox" value="football" />&nbsp;其他</label>
165
+                        <div class="jiange" v-for="item in hulicuoshi" >
166
+                          <label><input name="ball" type="checkbox" v-model="item.is_check" @click="huli_check(item)" value="football" />&nbsp;{{ item.label }}</label>
206 167
                         </div>
207 168
                         <div class="tianjia" @click="add_press=true">
208 169
                           +添加
@@ -213,7 +174,7 @@
213 174
                 </table>
214 175
               </div>
215 176
             </div>
216
-            
177
+
217 178
             <table class="table" border style="width: 100%;">
218 179
               <thead>
219 180
                 <tr>
@@ -235,8 +196,9 @@
235 196
                 <tr>
236 197
                   <td>
237 198
                     <el-date-picker
238
-                      v-model="value1"
199
+                      v-model="date"
239 200
                       type="date"
201
+                      value-format="yyyy-MM-dd"
240 202
                       placeholder="选择日期"
241 203
                       :clearable="false"
242 204
                       style="width: 150px;">
@@ -264,9 +226,9 @@
264 226
                     <el-input v-model="mark" style="width:70px"></el-input>
265 227
                   </td>
266 228
                   <td class="start">
267
-                    <el-select v-model="value" placeholder="请选择" style="width:120px;">
229
+                    <el-select v-model="duty" placeholder="请选择" style="width:120px;">
268 230
                         <el-option
269
-                          v-for="item in options"
231
+                          v-for="item in dutyoptions"
270 232
                           :key="item.value"
271 233
                           :label="item.label"
272 234
                           :value="item.value"
@@ -283,13 +245,14 @@
283 245
             <p>患者知情同意书:我对住院期间发生导管脱落的风险及预防措施已知晓,并给予配合。</p>
284 246
             <div class="zhuangui">
285 247
                 <p style="display: inline-block; margin-right: 70px;">
286
-                  患者/家属签字: <el-input v-model="input" style="width:120px;"></el-input>
248
+                  患者/家属签字: <el-input v-model="family_member" style="width:120px;"></el-input>
287 249
                 </p>
288 250
                 <p style="display: inline-block;">
289 251
                     日期:
290 252
                     <el-date-picker
291
-                        v-model="value1"
253
+                        v-model="family_date"
292 254
                         type="date"
255
+                        value-format="yyyy-MM-dd"
293 256
                         placeholder="选择日期"
294 257
                         style="width: 150px;">
295 258
                     </el-date-picker>
@@ -299,20 +262,21 @@
299 262
               <span>转归:</span>
300 263
               <div style="display: inline-block;position: relative;top: 0px;">
301 264
                 <el-checkbox-group v-model="checkList">
302
-                  <el-checkbox v-for="item in zhuangui" :label="item" :key="item"></el-checkbox>
265
+                  <el-checkbox v-for="item in zhuangui" :label="item.value" :key="item.id" :value="item.id"></el-checkbox>
303 266
                 </el-checkbox-group>
304 267
               </div>
305 268
             </div>
306 269
             <div class="zhuangui">
307 270
                 <p style="display: inline-block; margin-right: 30px;">
308 271
                     评估人签字:
309
-                    <el-input v-model="input" style="width:120px;"></el-input>
272
+                    <el-input v-model="appraiser" style="width:120px;"></el-input>
310 273
                 </p>
311 274
                 <p style="display: inline-block;">
312 275
                     日期:
313 276
                     <el-date-picker
314
-                        v-model="value1"
277
+                        v-model="appraiser_date"
315 278
                         type="date"
279
+                        value-format="yyyy-MM-dd"
316 280
                         placeholder="选择日期"
317 281
                         style="width: 150px;">
318 282
                     </el-date-picker>
@@ -322,9 +286,9 @@
322 286
               <div class="zhuangui">
323 287
                 <p style="display: inline-block; margin-right: 30px;">
324 288
                     护士长签字:
325
-                    <el-select v-model="value" placeholder="请选择" style="width: 120px;">
289
+                    <el-select v-model="nurse" placeholder="请选择" style="width: 120px;">
326 290
                         <el-option
327
-                        v-for="item in options"
291
+                        v-for="item in nurse_options"
328 292
                         :key="item.value"
329 293
                         :label="item.label"
330 294
                         :value="item.value">
@@ -334,15 +298,16 @@
334 298
                 <p style="display: inline-block;">
335 299
                     日期:
336 300
                     <el-date-picker
337
-                        v-model="value1"
301
+                        v-model="nurse_date"
338 302
                         type="date"
303
+                        value-format="yyyy-MM-dd"
339 304
                         placeholder="选择日期"
340 305
                         style="width: 150px;">
341 306
                     </el-date-picker>
342 307
                 </p>
343 308
               </div>
344 309
               <div>
345
-                <el-button type="primary">确定</el-button>
310
+                <el-button type="primary" @click="Pressuresore">确定</el-button>
346 311
               </div>
347 312
             </div>
348 313
           </div>
@@ -365,19 +330,24 @@
365 330
         :visible.sync="add_press"
366 331
         width="30%"
367 332
       >
368
-        <span>
369
-          护理措施:
370
-          <input type="text" style="width: 290px;height: 36px;border: 1px solid #d7d7d7;">
371
-        </span>
333
+        <div>
334
+          <div style="margin-bottom: 10px;font-size: 16px;">护理措施:</div>
335
+          <!-- <input type="text" v-model="huli_value" style="width: 290px;height: 36px;border: 1px solid #d7d7d7;"> -->
336
+          <el-input type="textarea" :rows="2"
337
+            placeholder="请输入内容" v-model="huli_value">
338
+          </el-input>
339
+
340
+        </div>
372 341
         <span slot="footer" class="dialog-footer">
373 342
           <el-button @click="add_press = false">取 消</el-button>
374
-          <el-button type="primary" @click="add_press = false">确 定</el-button>
343
+          <el-button type="primary" @click="nurseclick(huli_value)">确 定</el-button>
375 344
         </span>
376 345
       </el-dialog>
377 346
     </div>
378 347
 </template>
379 348
 <script>
380 349
 import PatientSidebar from '../components/PatientSidebar'
350
+import { uParseTime } from '@/utils/tools'
381 351
 export default {
382 352
    components:{
383 353
     PatientSidebar
@@ -396,13 +366,85 @@ export default {
396 366
       yidong:null,
397 367
       yingyang:null,
398 368
       mocha:null,
399
-      zhuangui:['出院','死亡','其他'],
369
+      zhuangui:[{id:1,value:'出院'},{id:2,value:'死亡'},{id:3,value:'其他'}],
400 370
       add_press:false,
371
+      date:this.getTime(new Date()),
372
+      huli_value:'',
373
+      family_date:this.getTime(new Date()),
374
+      dutyoptions:[],
375
+      duty:'',
376
+      family_member:'',
377
+      appraiser:'',
378
+      appraiser_date:this.getTime(new Date()),
379
+      nurse:'',
380
+      nurse_options:[],
381
+      nurse_date:this.getTime(new Date()),
382
+      hulicheckarr:[],
383
+      hulicuoshi:[{id:1,label:'挂床头警示标识',hulicheck:0,is_check:false},{id:2,label:'保护受压皮肤,使用减压用具(气垫床/压疮床)',hulicheck:0,is_check:false},
384
+      {id:3,label:'定时翻身,移动避免拖拉',hulicheck:0,is_check:false},{id:4,label:'加强营养',hulicheck:0,is_check:false},
385
+      {id:5,label:'保持被衣物清洁舒适',hulicheck:0,is_check:false},{id:6,label:'其他',hulicheck:0,is_check:false}]
401 386
     }
402 387
    },
403 388
    methods:{
389
+    // 添加
390
+    nurseclick(val){
391
+      this.huli_value=val
392
+      const arr ={
393
+        id:0,
394
+        label:this.huli_value,
395
+        hulicheck:0,
396
+        is_check:false
397
+      }
398
+      this.hulicuoshi.push(arr)
399
+      this.add_press = false
400
+    },
401
+    // 点击护理措施
402
+    huli_check(item){
403
+      for(let i in this.hulicuoshi){
404
+        if(item.is_check==false){
405
+          if(this.hulicuoshi[i].label==item.label){
406
+            this.hulicuoshi[i].hulicheck=1
407
+          }
408
+        }
409
+      }
410
+    },
404 411
     yachaunghistory(){
405 412
       this.$router.push({path: '/patients/Pressure_history'})
413
+    },
414
+    getTime(val) {
415
+        if(val < 0){
416
+          return ""
417
+        }
418
+        if(val == ""){
419
+        return ""
420
+        }else {
421
+        return uParseTime(val, '{y}-{m}-{d}')
422
+        }
423
+    },
424
+    // 确认
425
+    Pressuresore(){
426
+      var params={
427
+        date:this.date,
428
+        ganzhi:this.ganzhi,
429
+        shidu:this.shidu,
430
+        huodong:this.huodong,
431
+        yidong:this.yidong,
432
+        yingyang:this.yingyang,
433
+        mocha:this.mocha,
434
+        mark:this.mark,
435
+        duty:this.duty,
436
+        dutyoptions:this.dutyoptions,
437
+        family_member:this.family_member,
438
+        family_date:this.family_date,
439
+        appraiser:this.appraiser,//评估人签字
440
+        appraiser_date:this.appraiser_date,
441
+        nurse:this.nurse,
442
+        nurse_options:this.nurse_options,
443
+        nurse_date:this.nurse_date,
444
+        patientID:this.patientID,
445
+        checkList:this.checkList
446
+      }
447
+      console.log('params----',params);
406 448
     }
407 449
    },
408 450
    computed:{

+ 25 - 6
src/xt_pages/user/evaluationtool/pruritusAssessment.vue 查看文件

@@ -24,16 +24,16 @@
24 24
               <tr>
25 25
                 <td class="start">痒的部位</td>
26 26
                 <td>
27
-                  <div class="jiange">
27
+                  <div class="jiange"><!-- v-model="item.is_check" v-model="is_check1" v-model="is_check2"-->
28 28
                     <span v-for="item in buwei" class="rightjiange" @change="handleCheckedCitiesChange">
29
-                        <label><input type="checkbox" class="check" name="ball" :value="item" />&nbsp;{{ item }}</label>
29
+                        <label><input type="checkbox" class="check"  :value="item.label"  />&nbsp;{{ item.label }}</label>
30 30
                     </span>
31
-                    <label @change="handleCheckedCitiesChange"><input type="checkbox" class="check" name="ball" value="其他" />
31
+                    <label @change="handleCheckedCitiesChange"><input type="checkbox" class="check"  value="其他" />
32 32
                         &nbsp;其他 <el-input v-model="input" style="width: 100px;"></el-input>
33 33
                     </label>
34 34
                     <!-- quan_change -->
35 35
                     <label @change="handleCheckedCitiesChange">
36
-                      <input type="checkbox" class="checkbox" name="ball" value="全身" />&nbsp;全身
36
+                      <input type="checkbox" class="checkbox"  value="全身" />&nbsp;全身
37 37
                     </label>
38 38
                   </div>
39 39
                 </td>
@@ -142,25 +142,44 @@ export default {
142 142
       radio3_points:0,
143 143
       checked_points:0,
144 144
       // pruritus_Totalpoints:0,
145
-      buwei:['躯体','上肢','下肢','头皮'],
145
+      buwei:[{label:'躯体',is_check:false,check:0},{label:'上肢',is_check:false,check:0},{label:'下肢',is_check:false,check:0},{label:'头皮',is_check:false,check:0},],
146 146
       chengdu:['不要抓(1)','要抓但没有抓痕(2)','抓出抓痕才能止痒(3)','经常抓出抓痕(4)','完全坐立不安(5)'],
147 147
       pinlv:['很少时候(1)','较少时候(2)','较多时候(3)','很多时候(4)','一直持续(5)'],
148 148
       yingxiang:['无影响(0)','一夜痒醒一次(2)','一夜痒醒两次(4)','一夜痒醒三次(6)'],
149 149
       options:[],
150 150
       value:'',
151 151
       value1:'',
152
-      num:0
152
+      num:0,
153
+      is_check1:false,
154
+      is_check2:false,
153 155
     }
154 156
   },
155 157
   methods:{
156 158
     handleCheckedCitiesChange(e){
159
+      console.log(e);
157 160
       const ball = e.target.value
161
+      // for(let i in this.buwei){
162
+      //   if(this.buwei[i].label == ball || ball=='其它'){
163
+      //     if(this.num<3){
164
+      //       var checked =1
165
+      //       this.num++
166
+      //       this.buwei[i].is_check = true
167
+      //       this.is_check1 = true
168
+      //       this.checked_points = this.checked_points + checked
169
+      //     }else{
170
+
171
+      //     }
172
+      //   }
173
+      // }
158 174
       // var num = null
159 175
       const checkboxs=document.getElementsByClassName('checkbox')
160 176
       const checkbox2=document.getElementsByClassName('check')
161 177
 
162 178
       for(let i=0;i<checkbox2.length;i++){
163 179
         if(ball=='全身'){
180
+          // this.is_check2=true
181
+          // this.is_check1 = false
182
+          // this.is_check = false
164 183
           checkboxs[0].checked=true
165 184
           checkbox2[i].checked=false
166 185
           this.checked_points = 3

+ 372 - 298
src/xt_pages/user/history/Pressure_history.vue 查看文件

@@ -370,315 +370,320 @@
370 370
       >
371 371
       <div>
372 372
         <div style="margin: 20px 0px;width: 100%;">
373
-          <table class="table" border style="width: 100%;">
374
-            <thead>
375
-              <tr>
376
-                <th  rowspan="2" style="width: 9%">项目/编码</th>
377
-                <th  colspan="4" style="width: 68%;">分值</th>
378
-                <th  rowspan="2" style="width: 9%">说明</th>
379
-                <th  rowspan="2" style="width: 14%">护理措施</th>
380
-              </tr>
381
-              <tr>
382
-                <th >1分</th>
383
-                <th >2分</th>
384
-                <th >3分</th>
385
-                <th >4分</th>
386
-              </tr>
387
-            </thead>
388
-            <tbody>
389
-              <tr class="start">
390
-                <td >
391
-                  <span class="bing">A.感知</span><br/>
392
-                  机体对压力所引起不适感的反应能力
393
-                </td>
394
-                <td >
395
-                  完全受限 <br>对疼痛刺激没有反应(没有呻吟,退缩或紧握)或者绝大部分机体对疼痛的感觉受限
396
-                </td>
397
-                <td >
398
-                  中度受限<br>只对疼痛刺激有反应,能通过呻吟、烦躁的方式表达机体不适。或者机体一半以上的部位对疼痛或不适感觉障碍
399
-                </td>
400
-                <td>
401
-                  轻微受限<br>对其讲话有反应,但不是所有时间都能用语言表达不适感。或者机体机体的一到两个肢体对疼痛或不适感感觉障碍
402
-                </td>
403
-                <td>
404
-                  没有改变<br>对其讲话有反应,机体没有对疼痛或不适的感觉确失
405
-                </td>
406
-                <td rowspan="6" style="vertical-align: middle;">
407
-                  <div style="text-align: center;">
408
-                    总分23分,<br>
409
-                    15~18分为低危;<br>
410
-                    13~14分为中危;<br>
411
-                    10~12分为高危;<br>
412
-                    ≤9分为极高危
413
-                  </div>
414
-                </td>
415
-                <td rowspan="6" style="position: relative;vertical-align: top;">
416
-                  <div class="jiange">
417
-                    <label><input name="ball" type="checkbox" value="football" />&nbsp;挂床头警示标识</label>
418
-                  </div>
419
-                  <div class="jiange">
420
-                    <label><input name="ball" type="checkbox" value="football" />&nbsp;保护受压皮肤,使用减压用具(气垫床/压疮床)</label>
421
-                  </div>
422
-                  <div class="jiange">
423
-                    <label><input name="ball" type="checkbox" value="football" />&nbsp;定时翻身,移动避免拖拉</label>
424
-                  </div>
425
-                  <div class="jiange">
426
-                    <label><input name="ball" type="checkbox" value="football" />&nbsp;加强营养</label>
427
-                  </div>
428
-                  <div class="jiange">
429
-                    <label><input name="ball" type="checkbox" value="football" />&nbsp;保持被衣物清洁舒适</label>
430
-                  </div>
431
-                  <div class="jiange">
432
-                    <label><input name="ball" type="checkbox" value="football" />&nbsp;其他</label>
433
-                  </div>
434
-                  <div class="tianjia" @click="add_press=true">
435
-                    <!--  style="position: absolute;bottom: 0px;font-size: 17px;color:#4579C5;line-height: 40px;" -->
436
-                    +添加
437
-                  </div>
438
-                </td>
439
-              </tr>
440
-              <tr class="bg_color start">
441
-                <td class="start">
442
-                  <span class="bing">B.湿度</span><br/>
443
-                  皮肤处于潮湿状态的程度
444
-                </td>
445
-                <td>
446
-                  持久潮湿<br>由于出汗、小便等原因皮肤一直处于潮湿状态,每当移动患者或者给患者翻身时就可以发现患者皮肤是湿的
447
-                </td>
448
-                <td>
449
-                  非常潮湿<br>皮肤经常但不总是处于潮湿状态,床单每天至少换一次
450
-                </td>
451
-                <td>
452
-                  偶尔潮湿<br>每天大概需要额外换一次床单
453
-                </td>
454
-                <td>
455
-                  很少潮湿<br>皮肤通常是干的,只是按照常规换床单即可
456
-                </td>
457
-              </tr>
458
-              <tr class="start">
459
-                <td>
460
-                  <span class="bing">C.活动能力</span><br>
461
-                  躯体活动的能力
462
-                </td>
463
-                <td>
464
-                  卧床不起<br>限制在床上
465
-                </td>
466
-                <td>
467
-                  局限于轮椅活动<br>行动能力严重受限或者没有行走能力
468
-                </td>
469
-                <td>
470
-                  可偶尔步行<br>白天在帮助或者无需帮助的情况下偶尔可以走一段路。每天大部分时间在床上或者椅子上度过
471
-                </td>
472
-                <td>
473
-                  经常步行<br>每天至少2次室外行走,白天醒着的时候至少每2h行走一次
474
-                </td>
475
-              </tr>
476
-              <tr class="bg_color start">
477
-                <td>
478
-                  <span class="bing">D.移动能力</span><br>
479
-                  改变/控制躯体位置的能力
480
-                </td>
481
-                <td>
482
-                  完全受限<br>没有帮助的情况下不能完成轻微的躯体 或者四肢的位置变动
483
-                </td>
484
-                <td>
485
-                  严重受限<br>偶尔能轻微地移动躯体或者四肢,但不能独立完成经常的或显著的躯体位置变动
486
-                </td>
487
-                <td>
488
-                  轻度受限<br>能经常独立地改变躯体或四肢的位置,但变动幅度不大
489
-                </td>
490
-                <td>
491
-                  不受限<br>能经常独立地改变躯体或四肢的位置,但变动幅度不大
492
-                </td>
493
-              </tr>
494
-              <tr class="start">
495
-                <td>
496
-                  <span class="bing">E.营养</span><br>
497
-                  平常的食物摄入模式
498
-                </td>
499
-                <td>
500
-                  重度营养摄入不足<br>
501
-                  从来不能吃完一餐饭,很少能摄入所给实物量的1/3。每天能摄入2份或以下的蛋白量(肉或者乳制品)很少摄入液体,没有摄入流质饮食。或者禁食和/或清流摄入或静脉输入大于5d
502
-                </td>
503
-                <td>
504
-                  营养摄入不足<br>
505
-                  很少能吃完一餐饭,通常只能摄入所给食物的1/2。每天蛋白摄入量是3份肉或者乳制品。偶尔能摄入规定实物量。或者可摄入略低于理想量的流质或者管饲
506
-                </td>
507
-                <td>
508
-                  营养摄入适当<br>
509
-                  可摄入提供量的一半以上。每天4份蛋白量(肉或乳制品),偶尔拒绝肉类,如果提供给食物通常会吃掉。或者管饲或TNP能达到绝大部分的营养所需
510
-                </td>
511
-                <td>
512
-                  营养摄入良好<br>每餐能摄入绝大部分食物从来不拒绝食物,通常吃4份或更多的肉和乳制品,两餐间偶尔进食。不需要其他补充食物
513
-                </td>
514
-              </tr>
515
-              <tr class="bg_color start">
516
-                <td>
517
-                  <span class="bing">F.摩擦力和剪切力</span><br>
518
-                </td>
519
-                <td>
520
-                  有此问题<br>
521
-                  移动时需要得到大量的帮助,不可能做到完全抬空而不碰到床单,在床上或椅子上时经常滑落。需要大力帮助下重摆体位。痉挛、挛缩或躁动不安通常导致摩擦
522
-                </td>
523
-                <td>
524
-                  有潜在问题<br>
525
-                  躯体移动乏力,或者需要一些帮助,在移动过程中,皮肤在一定程度上会碰到床单、椅子、约束带或者其他设施。在床上或椅子上可保持相对好的位置,偶尔会滑落下来
526
-                </td>
527
-                <td>
528
-                  无明显问题<br>
529
-                  能独立在床上或椅子上移动,并且有足够的肌肉力量在移动时完全抬空躯体。在床上和椅子上总是保持良好的位置
530
-                </td>
531
-                <td></td>
532
-              </tr>
533
-            </tbody>
534
-          </table>
535
-          <table class="table" border style="width: 100%;">
536
-            <thead>
537
-              <tr>
538
-                <th rowspan="2" style="width: 9%">评估日期</th>
539
-                <th colspan="6" style="width: 68%;">评估项目/编码(表格内填写分数)</th>
540
-                <th rowspan="2" style="width: 9%">评分</th>
541
-                <th rowspan="2" style="width: 14%">责任护士签名</th>
542
-              </tr>
543
-              <tr>
544
-                <th>A</th>
545
-                <th>B</th>
546
-                <th>C</th>
547
-                <th>D</th>
548
-                <th>E</th>
549
-                <th>F</th>
550
-              </tr>
551
-            </thead>
552
-            <tbody>
553
-              <tr>
554
-                <td>
555
-                  <el-date-picker
556
-                    v-model="value1"
557
-                    type="date"
558
-                    placeholder="选择日期"
559
-                    :clearable="false"
560
-                    style="width: 140px;">
561
-                  </el-date-picker>
562
-                </td>
563
-                <td class="start">
564
-                    <el-input v-model="ganzhi" style="width:80px;"></el-input>
565
-                </td>
566
-                <td class="start">
567
-                  <el-input v-model="shidu" style="width:80px"></el-input>
568
-                </td>
569
-                <td class="start">
570
-                  <el-input v-model="huodong" style="width:80px"></el-input>
571
-                </td>
572
-                <td class="start">
573
-                  <el-input v-model="yidong" style="width:80px"></el-input>
574
-                </td>
575
-                <td class="start">
576
-                  <el-input v-model="yingyang" style="width:80px"></el-input>
577
-                </td>
578
-                <td class="start">
579
-                  <el-input v-model="mocha" style="width:80px"></el-input>
580
-                </td>
581
-                <td class="start">
582
-                  <el-input v-model="mark" style="width:70px"></el-input>
583
-                </td>
584
-                <td class="start">
585
-                  <el-select v-model="value" placeholder="请选择"  style="width:120px;">
586
-                      <el-option
587
-                        v-for="item in options"
588
-                        :key="item.value"
589
-                        :label="item.label"
590
-                        :value="item.value"
591
-                       >
592
-                      </el-option>
593
-                  </el-select>
594
-                </td>
595
-              </tr>
596
-            </tbody>
597
-          </table>
598
-        </div>
599
-
600
-          <div style="margin-bottom: 20px;">
601
-            <p>患者知情同意书:我对住院期间发生导管脱落的风险及预防措施已知晓,并给予配合。</p>
602
-            <div class="zhuangui">
603
-                <p style="display: inline-block; margin-right: 70px;">
604
-                  患者/家属签字: <el-input v-model="input" style="width:120px;"></el-input>
605
-                </p>
606
-                <p style="display: inline-block;">
607
-                    日期:
608
-                    <el-date-picker
609
-                        v-model="value1"
610
-                        type="date"
611
-                        placeholder="选择日期"
612
-                        style="width: 150px;">
613
-                    </el-date-picker>
614
-                </p>
615
-            </div>
616
-            <div class="zhuangui">
617
-              <span>转归:</span>
618
-              <div style="display: inline-block;position: relative;top: 0px;">
619
-                <el-checkbox-group v-model="checkList">
620
-                  <el-checkbox v-for="item in zhuangui" :label="item" :key="item"></el-checkbox>
621
-                </el-checkbox-group>
373
+          <div style="display: flex;">
374
+              <div style="flex: 5;">
375
+                <table class="table" border style="width: 100%;">
376
+                  <thead>
377
+                    <tr>
378
+                      <th  rowspan="2" style="width: 9%">项目/编码</th>
379
+                      <th  colspan="4" style="width: 68%;">分值</th>
380
+                      <th  rowspan="2" style="width: 9%">说明</th>
381
+                      <!-- <th  rowspan="2" style="width: 14%">护理措施</th> -->
382
+                    </tr>
383
+                    <tr>
384
+                      <th >1分</th>
385
+                      <th >2分</th>
386
+                      <th >3分</th>
387
+                      <th >4分</th>
388
+                    </tr>
389
+                  </thead>
390
+                  <tbody>
391
+                    <tr class="start">
392
+                      <td >
393
+                        <span class="bing">A.感知</span><br/>
394
+                        机体对压力所引起不适感的反应能力
395
+                      </td>
396
+                      <td >
397
+                        完全受限 <br>对疼痛刺激没有反应(没有呻吟,退缩或紧握)或者绝大部分机体对疼痛的感觉受限
398
+                      </td>
399
+                      <td >
400
+                        中度受限<br>只对疼痛刺激有反应,能通过呻吟、烦躁的方式表达机体不适。或者机体一半以上的部位对疼痛或不适感觉障碍
401
+                      </td>
402
+                      <td>
403
+                        轻微受限<br>对其讲话有反应,但不是所有时间都能用语言表达不适感。或者机体机体的一到两个肢体对疼痛或不适感感觉障碍
404
+                      </td>
405
+                      <td>
406
+                        没有改变<br>对其讲话有反应,机体没有对疼痛或不适的感觉确失
407
+                      </td>
408
+                      <td rowspan="6" style="vertical-align: middle;">
409
+                        <div style="text-align: center;">
410
+                          总分23分,<br>
411
+                          15~18分为低危;<br>
412
+                          13~14分为中危;<br>
413
+                          10~12分为高危;<br>
414
+                          ≤9分为极高危
415
+                        </div>
416
+                      </td>
417
+                    </tr>
418
+                    <tr class="bg_color start">
419
+                      <td class="start">
420
+                        <span class="bing">B.湿度</span><br/>
421
+                        皮肤处于潮湿状态的程度
422
+                      </td>
423
+                      <td>
424
+                        持久潮湿<br>由于出汗、小便等原因皮肤一直处于潮湿状态,每当移动患者或者给患者翻身时就可以发现患者皮肤是湿的
425
+                      </td>
426
+                      <td>
427
+                        非常潮湿<br>皮肤经常但不总是处于潮湿状态,床单每天至少换一次
428
+                      </td>
429
+                      <td>
430
+                        偶尔潮湿<br>每天大概需要额外换一次床单
431
+                      </td>
432
+                      <td>
433
+                        很少潮湿<br>皮肤通常是干的,只是按照常规换床单即可
434
+                      </td>
435
+                    </tr>
436
+                    <tr class="start">
437
+                      <td>
438
+                        <span class="bing">C.活动能力</span><br>
439
+                        躯体活动的能力
440
+                      </td>
441
+                      <td>
442
+                        卧床不起<br>限制在床上
443
+                      </td>
444
+                      <td>
445
+                        局限于轮椅活动<br>行动能力严重受限或者没有行走能力
446
+                      </td>
447
+                      <td>
448
+                        可偶尔步行<br>白天在帮助或者无需帮助的情况下偶尔可以走一段路。每天大部分时间在床上或者椅子上度过
449
+                      </td>
450
+                      <td>
451
+                        经常步行<br>每天至少2次室外行走,白天醒着的时候至少每2h行走一次
452
+                      </td>
453
+                    </tr>
454
+                    <tr class="bg_color start">
455
+                      <td>
456
+                        <span class="bing">D.移动能力</span><br>
457
+                        改变/控制躯体位置的能力
458
+                      </td>
459
+                      <td>
460
+                        完全受限<br>没有帮助的情况下不能完成轻微的躯体 或者四肢的位置变动
461
+                      </td>
462
+                      <td>
463
+                        严重受限<br>偶尔能轻微地移动躯体或者四肢,但不能独立完成经常的或显著的躯体位置变动
464
+                      </td>
465
+                      <td>
466
+                        轻度受限<br>能经常独立地改变躯体或四肢的位置,但变动幅度不大
467
+                      </td>
468
+                      <td>
469
+                        不受限<br>能经常独立地改变躯体或四肢的位置,但变动幅度不大
470
+                      </td>
471
+                    </tr>
472
+                    <tr class="start">
473
+                      <td>
474
+                        <span class="bing">E.营养</span><br>
475
+                        平常的食物摄入模式
476
+                      </td>
477
+                      <td>
478
+                        重度营养摄入不足<br>
479
+                        从来不能吃完一餐饭,很少能摄入所给实物量的1/3。每天能摄入2份或以下的蛋白量(肉或者乳制品)很少摄入液体,没有摄入流质饮食。或者禁食和/或清流摄入或静脉输入大于5d
480
+                      </td>
481
+                      <td>
482
+                        营养摄入不足<br>
483
+                        很少能吃完一餐饭,通常只能摄入所给食物的1/2。每天蛋白摄入量是3份肉或者乳制品。偶尔能摄入规定实物量。或者可摄入略低于理想量的流质或者管饲
484
+                      </td>
485
+                      <td>
486
+                        营养摄入适当<br>
487
+                        可摄入提供量的一半以上。每天4份蛋白量(肉或乳制品),偶尔拒绝肉类,如果提供给食物通常会吃掉。或者管饲或TNP能达到绝大部分的营养所需
488
+                      </td>
489
+                      <td>
490
+                        营养摄入良好<br>每餐能摄入绝大部分食物从来不拒绝食物,通常吃4份或更多的肉和乳制品,两餐间偶尔进食。不需要其他补充食物
491
+                      </td>
492
+                    </tr>
493
+                    <tr class="bg_color start">
494
+                      <td>
495
+                        <span class="bing">F.摩擦力和剪切力</span><br>
496
+                      </td>
497
+                      <td>
498
+                        有此问题<br>
499
+                        移动时需要得到大量的帮助,不可能做到完全抬空而不碰到床单,在床上或椅子上时经常滑落。需要大力帮助下重摆体位。痉挛、挛缩或躁动不安通常导致摩擦
500
+                      </td>
501
+                      <td>
502
+                        有潜在问题<br>
503
+                        躯体移动乏力,或者需要一些帮助,在移动过程中,皮肤在一定程度上会碰到床单、椅子、约束带或者其他设施。在床上或椅子上可保持相对好的位置,偶尔会滑落下来
504
+                      </td>
505
+                      <td>
506
+                        无明显问题<br>
507
+                        能独立在床上或椅子上移动,并且有足够的肌肉力量在移动时完全抬空躯体。在床上和椅子上总是保持良好的位置
508
+                      </td>
509
+                      <td></td>
510
+                    </tr>
511
+                  </tbody>
512
+                </table>
513
+              </div>
514
+              <div style="flex: 1;">
515
+                <table class="table" border>
516
+                  <thead>
517
+                    <tr>
518
+                      <th  rowspan="2" style="width: 14%;height: 80px;">护理措施</th>
519
+                    </tr>
520
+                  </thead>
521
+                  <tbody>
522
+                    <tr>
523
+                      <td rowspan="6" style="position: relative;vertical-align: top;">
524
+                        <div class="jiange" v-for="item in hulicuoshi" >
525
+                          <label><input name="ball" type="checkbox" v-model="item.hulicheck" @click="huli_check(item)" value="football" />&nbsp;{{ item.label }}</label>
526
+                        </div>
527
+                        <div class="tianjia" @click="add_press=true">
528
+                          +添加
529
+                        </div>
530
+                      </td>
531
+                    </tr>
532
+                  </tbody>
533
+                </table>
622 534
               </div>
623 535
             </div>
624
-            <div class="zhuangui">
625
-                <p style="display: inline-block; margin-right: 30px;">
626
-                    评估人签字:
627
-                    <el-input v-model="input" style="width:120px;"></el-input>
628
-                </p>
629
-                <p style="display: inline-block;">
630
-                    日期:
536
+            <table class="table" border style="width: 100%;">
537
+              <thead>
538
+                <tr>
539
+                  <th rowspan="2" style="width: 9%">评估日期</th>
540
+                  <th colspan="6" style="width: 68%;">评估项目/编码(表格内填写分数)</th>
541
+                  <th rowspan="2" style="width: 9%">评分</th>
542
+                  <th rowspan="2" style="width: 14%">责任护士签名</th>
543
+                </tr>
544
+                <tr>
545
+                  <th>A</th>
546
+                  <th>B</th>
547
+                  <th>C</th>
548
+                  <th>D</th>
549
+                  <th>E</th>
550
+                  <th>F</th>
551
+                </tr>
552
+              </thead>
553
+              <tbody>
554
+                <tr>
555
+                  <td>
631 556
                     <el-date-picker
632
-                        v-model="value1"
633
-                        type="date"
634
-                        placeholder="选择日期"
635
-                        style="width: 150px;">
557
+                      v-model="date"
558
+                      type="date"
559
+                      value-format="yyyy-MM-dd"
560
+                      placeholder="选择日期"
561
+                      :clearable="false"
562
+                      style="width: 150px;">
636 563
                     </el-date-picker>
637
-                </p>
638
-            </div>
639
-            <div class="content_top">
640
-              <div class="zhuangui" style="flex:1">
641
-                <p style="display: inline-block; margin-right: 30px;">
642
-                    护士长签字:
643
-                    <el-select v-model="value" placeholder="请选择" style="width: 120px;">
564
+                  </td>
565
+                  <td class="start">
566
+                    <el-input v-model="ganzhi" style="width:80px;"></el-input>
567
+                  </td>
568
+                  <td class="start">
569
+                    <el-input v-model="shidu" style="width:80px"></el-input>
570
+                  </td>
571
+                  <td class="start">
572
+                    <el-input v-model="huodong" style="width:80px"></el-input>
573
+                  </td>
574
+                  <td class="start">
575
+                    <el-input v-model="yidong" style="width:80px"></el-input>
576
+                  </td>
577
+                  <td class="start">
578
+                    <el-input v-model="yingyang" style="width:80px"></el-input>
579
+                  </td>
580
+                  <td class="start">
581
+                    <el-input v-model="mocha" style="width:80px"></el-input>
582
+                  </td>
583
+                  <td class="start">
584
+                    <el-input v-model="mark" style="width:70px"></el-input>
585
+                  </td>
586
+                  <td class="start">
587
+                    <el-select v-model="duty" placeholder="请选择" style="width:120px;">
644 588
                         <el-option
645
-                        v-for="item in options"
646
-                        :key="item.value"
647
-                        :label="item.label"
648
-                        :value="item.value">
589
+                          v-for="item in dutyoptions"
590
+                          :key="item.value"
591
+                          :label="item.label"
592
+                          :value="item.value"
593
+                          >
649 594
                         </el-option>
650 595
                     </el-select>
651
-                </p>
652
-                <p style="display: inline-block;">
653
-                    日期:
654
-                    <el-date-picker
655
-                        v-model="value1"
656
-                        type="date"
657
-                        placeholder="选择日期"
658
-                        style="width: 150px;">
659
-                    </el-date-picker>
660
-                </p>
661
-              </div>
662
-              <div style="flex:1;margin-top: 10px;">
663
-                <el-button type="primary">确定</el-button>
664
-              </div>
596
+                  </td>
597
+                </tr>
598
+              </tbody>
599
+            </table>
600
+        </div>
601
+
602
+        <div style="margin-bottom: 20px;">
603
+          <p>患者知情同意书:我对住院期间发生导管脱落的风险及预防措施已知晓,并给予配合。</p>
604
+          <div class="zhuangui">
605
+              <p style="display: inline-block; margin-right: 70px;">
606
+                患者/家属签字: <el-input v-model="family_member" style="width:120px;"></el-input>
607
+              </p>
608
+              <p style="display: inline-block;">
609
+                  日期:
610
+                  <el-date-picker
611
+                      v-model="family_date"
612
+                      type="date"
613
+                      value-format="yyyy-MM-dd"
614
+                      placeholder="选择日期"
615
+                      style="width: 150px;">
616
+                  </el-date-picker>
617
+              </p>
618
+          </div>
619
+          <div class="zhuangui">
620
+            <span>转归:</span>
621
+            <div style="display: inline-block;position: relative;top: 0px;">
622
+              <el-checkbox-group v-model="checkList">
623
+                <el-checkbox v-for="item in zhuangui" :label="item.value" :key="item.id" :value="item.id"></el-checkbox>
624
+              </el-checkbox-group>
625
+            </div>
626
+          </div>
627
+          <div class="zhuangui">
628
+              <p style="display: inline-block; margin-right: 30px;">
629
+                  评估人签字:
630
+                  <el-input v-model="appraiser" style="width:120px;"></el-input>
631
+              </p>
632
+              <p style="display: inline-block;">
633
+                  日期:
634
+                  <el-date-picker
635
+                      v-model="appraiser_date"
636
+                      type="date"
637
+                      value-format="yyyy-MM-dd"
638
+                      placeholder="选择日期"
639
+                      style="width: 150px;">
640
+                  </el-date-picker>
641
+              </p>
642
+          </div>
643
+          <div class="content_top">
644
+            <div class="zhuangui">
645
+              <p style="display: inline-block; margin-right: 30px;">
646
+                  护士长签字:
647
+                  <el-select v-model="nurse" placeholder="请选择" style="width: 120px;">
648
+                      <el-option
649
+                      v-for="item in nurse_options"
650
+                      :key="item.value"
651
+                      :label="item.label"
652
+                      :value="item.value">
653
+                      </el-option>
654
+                  </el-select>
655
+              </p>
656
+              <p style="display: inline-block;">
657
+                  日期:
658
+                  <el-date-picker
659
+                      v-model="nurse_date"
660
+                      type="date"
661
+                      value-format="yyyy-MM-dd"
662
+                      placeholder="选择日期"
663
+                      style="width: 150px;">
664
+                  </el-date-picker>
665
+              </p>
666
+            </div>
667
+            <div>
668
+              <el-button type="primary" @click="Pressuresore">确定</el-button>
665 669
             </div>
666 670
           </div>
671
+        </div>
667 672
       </div>
668 673
     </el-dialog>
669 674
     <!-- 编辑添加弹窗页面 -->
670
-    <el-dialog
671
-        title="增加护理措施"
672
-        :visible.sync="add_press"
673
-        width="30%"
674
-      >
675
-        <span>
676
-          护理措施:
677
-          <input type="text" style="width: 290px;height: 36px;border: 1px solid #d7d7d7;">
678
-        </span>
675
+    <el-dialog title="增加护理措施" :visible.sync="add_press" width="30%">
676
+        <div>
677
+          <div style="margin-bottom: 10px;font-size: 16px;">护理措施:</div>
678
+          <!-- <input type="text" v-model="huli_value" style="width: 290px;height: 36px;border: 1px solid #d7d7d7;"> -->
679
+          <el-input type="textarea" :rows="2"
680
+            placeholder="请输入内容" v-model="huli_value">
681
+          </el-input>
682
+
683
+        </div>
679 684
         <span slot="footer" class="dialog-footer">
680 685
           <el-button @click="add_press = false">取 消</el-button>
681
-          <el-button type="primary" @click="add_press = false">确 定</el-button>
686
+          <el-button type="primary" @click="nurseclick(huli_value)">确 定</el-button>
682 687
         </span>
683 688
     </el-dialog>
684 689
     <!--删除 -->
@@ -697,6 +702,7 @@
697 702
 </template>
698 703
 <script>
699 704
 import print from 'print-js'
705
+import { uParseTime } from '@/utils/tools'
700 706
 export default{
701 707
   data(){
702 708
     return{
@@ -714,13 +720,28 @@ export default{
714 720
       yingyang:null,
715 721
       mocha:null,
716 722
       add_press:false,
717
-      zhuangui:['出院','死亡','其他'],
723
+      zhuangui:[{id:1,value:'出院'},{id:2,value:'死亡'},{id:3,value:'其他'}],
718 724
       value1:'',
719 725
       checkList:[],
720 726
       input:'',
721 727
       options:[],
722 728
       value:'',
723
-      row:''
729
+      row:'',
730
+      date:this.getTime(new Date()),
731
+      huli_value:'',
732
+      family_date:this.getTime(new Date()),
733
+      dutyoptions:[],
734
+      duty:'',
735
+      family_member:'',
736
+      appraiser:'',
737
+      appraiser_date:this.getTime(new Date()),
738
+      nurse:'',
739
+      nurse_options:[],
740
+      nurse_date:this.getTime(new Date()),
741
+      hulicheckarr:[],
742
+      patientID:0,
743
+      hulicuoshi:[{id:1,label:'挂床头警示标识',hulicheck:0},{id:2,label:'保护受压皮肤,使用减压用具(气垫床/压疮床)',hulicheck:0},{id:3,label:'定时翻身,移动避免拖拉',hulicheck:0}
744
+                ,{id:4,label:'加强营养',hulicheck:0},{id:5,label:'保持被衣物清洁舒适',hulicheck:0},{id:6,label:'其他',hulicheck:0}]
724 745
     }
725 746
   },
726 747
   methods:{
@@ -780,6 +801,59 @@ export default{
780 801
       }
781 802
 
782 803
     },
804
+     // 添加
805
+     nurseclick(val){
806
+      this.huli_value=val
807
+      const arr ={
808
+        id:0,
809
+        label:this.huli_value,
810
+        hulicheck:0
811
+      }
812
+      this.hulicuoshi.push(arr)
813
+      this.add_press = false
814
+    },
815
+    // 点击护理措施
816
+    huli_check(item){
817
+      this.hulicheckarr.push(item)
818
+      console.log('33333',item);
819
+    },
820
+    // 确认
821
+    Pressuresore(){
822
+      var params={
823
+        date:this.date,
824
+        ganzhi:this.ganzhi,
825
+        shidu:this.shidu,
826
+        huodong:this.huodong,
827
+        yidong:this.yidong,
828
+        yingyang:this.yingyang,
829
+        mocha:this.mocha,
830
+        mark:this.mark,
831
+        duty:this.duty,
832
+        dutyoptions:this.dutyoptions,
833
+        family_member:this.family_member,
834
+        family_date:this.family_date,
835
+        appraiser:this.appraiser,//评估人签字
836
+        appraiser_date:this.appraiser_date,
837
+        nurse:this.nurse,
838
+        nurse_options:this.nurse_options,
839
+        nurse_date:this.nurse_date,
840
+        patientID:this.patientID,
841
+        checkList:this.checkList
842
+      }
843
+      this.editor_dialogVisible=false,
844
+      console.log('33333',params);
845
+    },
846
+    // 转换时间
847
+    getTime(val) {
848
+        if(val < 0){
849
+          return ""
850
+        }
851
+        if(val == ""){
852
+        return ""
853
+        }else {
854
+        return uParseTime(val, '{y}-{m}-{d}')
855
+        }
856
+    },
783 857
   },
784 858
   computed:{
785 859
     mark(){
@@ -849,7 +923,7 @@ input{
849 923
             padding-left: 5px;
850 924
         }
851 925
         .tianjia{
852
-          position: absolute;
926
+          position: relative;
853 927
           bottom: 0px;
854 928
           font-size: 17px;
855 929
           color:#4579C5;

+ 156 - 92
src/xt_pages/user/history/daoguan_history.vue 查看文件

@@ -279,21 +279,15 @@
279 279
               <td>
280 280
                 <div class="jiange">
281 281
                   <el-radio-group v-model="radio" @change="handleCheckedCitiesChange">
282
-                    <el-radio v-for="(item,index ) in tuoguan" :label="item" :key="index" style="">{{ item }}</el-radio>
282
+                    <el-radio v-for="(item,index ) in tuoguan" :label="item.value" :key="index" style="">{{ item.label }}</el-radio>
283 283
                   </el-radio-group>
284 284
                 </div>
285 285
               </td>
286 286
               <td rowspan="3">
287 287
                 <div style="vertical-align: top; color: black; padding: 5px;">
288
-                  <label><input name="ball" type="checkbox" value="football" />&nbsp;1.管道维护,导管脱落严重后果及预防措施的健康教育;</label> <br/>
289
-                  <label><input name="ball" type="checkbox" value="football" />&nbsp;2.床边悬挂警示标识(>9分悬挂);</label><br/>
290
-                  <label><input name="ball" type="checkbox" value="football" />&nbsp;3.正确妥善固定;</label><br/>
291
-                  <label><input name="ball" type="checkbox" value="football" />&nbsp;4.正确卧位及床上活动方式, 病人带管下床活动时, 将引流管固定在病人的衣服或裤子上;</label><br/>
292
-                  <label><input name="ball" type="checkbox" value="football" />&nbsp;5.加强巡视,及时发现满足患者需要;</label><br/>
293
-                  <label><input name="ball" type="checkbox" value="football" />&nbsp;6.严格交接班,各班重点交接,观察外露长度,必要时记录;</label><br/>
294
-                  <label><input name="ball" type="checkbox" value="football" />&nbsp;7.昏迷、暴躁、不合作病人,根据医嘱使用镇静剂和约束带;</label><br/>
295
-                  <label><input name="ball" type="checkbox" value="football" />&nbsp;8.进行诊疗护理需要移动患者时,根据医嘱使用镇静剂和约束带;</label><br/>
296
-                  <label><input name="ball" type="checkbox" value="football" />&nbsp;9.对于气管插管清醒患者,进行心理疏导和安全教育。</label>
288
+                  <span v-for="item in hulicuoshi">
289
+                    <label><input name="ball" type="checkbox" v-model="item.is_check" @click="cuoshi(item)"/>&nbsp;{{item.label}}</label> <br/>
290
+                  </span>
297 291
                 </div>
298 292
               </td>
299 293
             </tr>
@@ -302,7 +296,8 @@
302 296
               <td>
303 297
                 <div class="jiange">
304 298
                     <el-radio-group v-model="radio1"  @change="handleCheckedCitiesChange">
305
-                        <el-radio v-for="(item,index ) in yishi" :label="item" :key="index">{{ item }}</el-radio>
299
+                      <el-radio v-for="(item,index ) in yishi" :label="item.value" :key="index" style="">{{ item.label }}</el-radio>
300
+                        <!-- <el-radio v-for="(item,index ) in yishi" :label="item" :key="index">{{ item }}</el-radio> -->
306 301
                     </el-radio-group>
307 302
                 </div>
308 303
               </td>
@@ -312,7 +307,8 @@
312 307
               <td>
313 308
                 <div  class="jiange">
314 309
                     <el-radio-group v-model="radio2" @change="handleCheckedCitiesChange">
315
-                      <el-radio v-for="(item,index ) in peihe" :label="item" :key="index">{{ item }}</el-radio>
310
+                      <el-radio v-for="(item,index ) in peihe" :label="item.value" :key="index" style="">{{ item.label }}</el-radio>
311
+                      <!-- <el-radio v-for="(item,index ) in peihe" :label="item" :key="index">{{ item }}</el-radio> -->
316 312
                     </el-radio-group>
317 313
                 </div>
318 314
               </td>
@@ -331,8 +327,9 @@
331 327
             <div class="bottoms">
332 328
                 <span>评估日期:</span>
333 329
                 <el-date-picker
334
-                    v-model="value1"
330
+                    v-model="date"
335 331
                     type="date"
332
+                    value-format="yyyy-MM-dd"
336 333
                     placeholder="选择日期"
337 334
                     :clearable="false"
338 335
                     style="width: 150px;">
@@ -341,9 +338,9 @@
341 338
 
342 339
             <div class="bottoms">
343 340
                 <span>评估人:</span>
344
-                <el-select v-model="value" placeholder="请选择" >
341
+                <el-select v-model="appraiser" placeholder="请选择" >
345 342
                     <el-option
346
-                    v-for="item in options"
343
+                    v-for="item in optionsarr"
347 344
                     :key="item.value"
348 345
                     :label="item.label"
349 346
                     :value="item.value"
@@ -354,73 +351,76 @@
354 351
 
355 352
         </div>
356 353
         <div style="margin:5px 10px;">
357
-          <el-button type="primary">确认</el-button>
354
+          <el-button type="primary" @click="daoguanclick">确认</el-button>
358 355
         </div>
359 356
       </div>
360 357
       <hr style="border:none;height:1px;background:#DCDFE6;"/><!--水平线-->
361 358
       <div style="margin-top: 20px;">
362
-          <p>患者知情同意书:我对住院期间发生导管脱落的风险及预防措施已知晓,并给予配合。</p>
363
-          <div class="zhuangui">
364
-              <p style="display: inline-block; margin-right: 70px;">患者/家属签字: <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 60px;"></span></p>
365
-              <p style="display: inline-block;">
366
-                  日期:
367
-                  <el-date-picker
368
-                      v-model="value1"
369
-                      type="date"
370
-                      placeholder="选择日期"
371
-                      style="width: 150px;">
372
-                  </el-date-picker>
373
-              </p>
374
-          </div>
375
-          <div class="zhuangui">
376
-              <span>转归:</span>
377
-              <el-radio v-model="radio" label="1">脱落</el-radio>
378
-              <el-radio v-model="radio" label="2">未脱落</el-radio>
379
-          </div>
380
-          <div class="zhuangui">
381
-              <p style="display: inline-block; margin-right: 30px;">
382
-                  评估人签字:
383
-                  <el-select v-model="value" placeholder="请选择" style="width: 120px;">
384
-                      <el-option
385
-                      v-for="item in options"
386
-                      :key="item.value"
387
-                      :label="item.label"
388
-                      :value="item.value">
389
-                      </el-option>
390
-                  </el-select>
391
-              </p>
392
-              <p style="display: inline-block;">
393
-                  日期:
394
-                  <el-date-picker
395
-                      v-model="value1"
396
-                      type="date"
397
-                      placeholder="选择日期"
398
-                      style="width: 150px;">
399
-                  </el-date-picker>
400
-              </p>
401
-          </div>
402
-          <div class="zhuangui">
403
-              <p style="display: inline-block; margin-right: 30px;">
404
-                  护士长签字:
405
-                  <el-select v-model="value" placeholder="请选择" style="width: 120px;">
406
-                      <el-option
407
-                      v-for="item in options"
408
-                      :key="item.value"
409
-                      :label="item.label"
410
-                      :value="item.value">
411
-                      </el-option>
412
-                  </el-select>
413
-              </p>
414
-              <p style="display: inline-block;">
415
-                  日期:
416
-                  <el-date-picker
417
-                      v-model="value1"
418
-                      type="date"
419
-                      placeholder="选择日期"
420
-                      style="width: 150px;">
421
-                  </el-date-picker>
422
-              </p>
423
-          </div>
359
+        <p>患者知情同意书:我对住院期间发生导管脱落的风险及预防措施已知晓,并给予配合。</p>
360
+        <div class="zhuangui">
361
+            <p style="display: inline-block; margin-right: 70px;">患者/家属签字: <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 60px;"></span></p>
362
+            <p style="display: inline-block;">
363
+                日期:
364
+                <el-date-picker
365
+                    v-model="jiashu_date"
366
+                    type="date"
367
+                    value-format="yyyy-MM-dd"
368
+                    placeholder="选择日期"
369
+                    style="width: 150px;">
370
+                </el-date-picker>
371
+            </p>
372
+        </div>
373
+        <div class="zhuangui">
374
+            <span>转归:</span>
375
+            <el-radio v-model="zhuanggui" label="1">脱落</el-radio>
376
+            <el-radio v-model="zhuanggui" label="2">未脱落</el-radio>
377
+        </div>
378
+        <div class="zhuangui">
379
+            <p style="display: inline-block; margin-right: 30px;">
380
+                评估人签字:
381
+                <el-select v-model="appraiser" placeholder="请选择" style="width: 120px;">
382
+                    <el-option
383
+                    v-for="item in optionsarr"
384
+                    :key="item.value"
385
+                    :label="item.label"
386
+                    :value="item.value">
387
+                    </el-option>
388
+                </el-select>
389
+            </p>
390
+            <p style="display: inline-block;">
391
+                日期:
392
+                <el-date-picker
393
+                    v-model="date"
394
+                    type="date"
395
+                    value-format="yyyy-MM-dd"
396
+                    placeholder="选择日期"
397
+                    style="width: 150px;">
398
+                </el-date-picker>
399
+            </p>
400
+        </div>
401
+        <div class="zhuangui">
402
+            <p style="display: inline-block; margin-right: 30px;">
403
+                护士长签字:
404
+                <el-select v-model="hushi" placeholder="请选择" style="width: 120px;">
405
+                    <el-option
406
+                    v-for="item in hushiarr"
407
+                    :key="item.value"
408
+                    :label="item.label"
409
+                    :value="item.value">
410
+                    </el-option>
411
+                </el-select>
412
+            </p>
413
+            <p style="display: inline-block;">
414
+                日期:
415
+                <el-date-picker
416
+                    v-model="hushi_date"
417
+                    type="date"
418
+                    value-format="yyyy-MM-dd"
419
+                    placeholder="选择日期"
420
+                    style="width: 150px;">
421
+                </el-date-picker>
422
+            </p>
423
+        </div>
424 424
       </div>
425 425
       <hr style="margin: 10px 0px;border:none;height:1px;background:#DCDFE6;"/><!--水平线-->
426 426
       <div class="shuoming">
@@ -446,6 +446,7 @@
446 446
 </template>
447 447
 <script>
448 448
 import print from 'print-js'
449
+import { uParseTime } from '@/utils/tools'
449 450
 export default{
450 451
   data(){
451 452
     return{
@@ -455,11 +456,6 @@ export default{
455 456
       mingxi_dialogVisible:false,
456 457
       editor_dialogVisible:false,
457 458
       delete_centerDialogVisible:false,
458
-      tableData:[{id:1,time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{id:2,time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
459
-      tuoguan:['低危导管 (1分)','中危导管 (2分)','高危导管 (3分)'],
460
-      yishi:['意识清醒 (0分)','中昏迷、深昏迷 (1分)','嗜睡、昏睡 (2分)','浅昏迷 (3分)','意识模糊 (4分)'],
461
-      peihe:['完全配合 (1分)','部分配合 (2分)','不配合 (3分)'],
462
-
463 459
       value1:'',
464 460
       radio:'',
465 461
       radio1:'',
@@ -471,7 +467,39 @@ export default{
471 467
       options:[],
472 468
       input:'',
473 469
       value:'',
474
-      row:''
470
+      row:'',
471
+      tableData:[{id:1,time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{id:2,time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
472
+      date:this.getTime(new Date()),
473
+      appraiser:'',
474
+      optionsarr:[],
475
+      jiashu_date:this.getTime(new Date()),//家属时间
476
+      zhuanggui:'',//转归
477
+      hushi:'',//护理
478
+      hushiarr:'',//护理
479
+      hushi_date:this.getTime(new Date()),//护理时间
480
+      tuoguan:[{value:1,label:'低危导管 (1分)',is_check:false,check:0},
481
+              {value:2,label:'中危导管 (2分)',is_check:false,check:0},
482
+              {value:3,label:'高危导管 (3分)',is_check:false,check:0}
483
+            ],
484
+      yishi:[{value:0,label:'意识清醒 (0分)',is_check:false,check:0},
485
+            {value:1,label:'中昏迷、深昏迷 (1分)',is_check:false,check:0},
486
+            {value:2,label:'嗜睡、昏睡 (2分)',is_check:false,check:0},
487
+            {value:3,label:'浅昏迷 (3分)',is_check:false,check:0},
488
+            {value:4,label:'意识模糊 (4分)',is_check:false,check:0},
489
+            ],
490
+      peihe:[{value:1,label:'完全配合 (1分)',is_check:false,check:0},
491
+            {value:2,label:'部分配合 (2分)',is_check:false,check:0},
492
+            {value:3,label:'不配合 (3分)',is_check:false,check:0},
493
+            ],
494
+      hulicuoshi:[{label:'1.管道维护,导管脱落严重后果及预防措施的健康教育;',is_check:false,check:0},
495
+      {label:'2.床边悬挂警示标识(>9分悬挂);',is_check:false,check:0},{label:'3.正确妥善固定;',is_check:false,check:0},
496
+      {label:'4.正确卧位及床上活动方式, 病人带管下床活动时, 将引流管固定在病人的衣服或裤子上;',is_check:false,check:0},
497
+      {label:'5.加强巡视,及时发现满足患者需要;',is_check:false,check:0},{label:'6.严格交接班,各班重点交接,观察外露长度,必要时记录;',is_check:false,check:0},
498
+      {label:'7.昏迷、暴躁、不合作病人,根据医嘱使用镇静剂和约束带;',is_check:false,check:0},
499
+      {label:'8.进行诊疗护理需要移动患者时,根据医嘱使用镇静剂和约束带;',is_check:false,check:0},
500
+      {label:'9.对于气管插管清醒患者,进行心理疏导和安全教育。',is_check:false,check:0},]
501
+
502
+      
475 503
     }
476 504
   },
477 505
   methods:{
@@ -534,21 +562,57 @@ export default{
534 562
       this.delete_centerDialogVisible=false
535 563
     },
536 564
     handleCheckedCitiesChange(e){
537
-      const ball=e
538
-      const jiequ =(ball.split('(')[1].split('分')[0]) * 1
539 565
       if(e == this.radio){
540
-        this.radio_val = jiequ
566
+        this.radio_val = e
541 567
       }
542 568
       if(e == this.radio1){
543
-        this.radio1_val = jiequ
569
+        this.radio1_val = e
544 570
       }
545 571
       if(e == this.radio2){
546
-        this.radio2_val = jiequ
572
+        this.radio2_val = e
547 573
       }
548 574
     },
549
-    daoguanhistory(){
550
-      this.$router.push({path: '/patients/daoguan_history'})
551
-    }
575
+    // 确认
576
+    daoguanclick(){
577
+      var params={
578
+        radio:this.radio,
579
+        radio1:this.radio1,
580
+        radio2:this.radio2,
581
+        duct_Totalpoints:this.duct_Totalpoints,
582
+        hulicuoshi:this.hulicuoshi,
583
+        date:this.date,//评估时间
584
+        appraiser:this.appraiser,
585
+        optionsarr:this.optionsarr,//评估数组
586
+        jiashu_date:this.jiashu_date,
587
+        zhuanggui:this.zhuanggui,
588
+        hushi:this.hushi,
589
+        hushiarr:this.hushiarr,
590
+        hushi_date:this.hushi_date,
591
+        patientID:this.patientID
592
+      }
593
+      console.log('params====',params);
594
+    },
595
+    // 点击护理措施
596
+    cuoshi(item){
597
+      for(let i in this.hulicuoshi){
598
+        if(item.is_check==false){
599
+          if(item.label==this.hulicuoshi[i].label){
600
+            this.hulicuoshi[i].check= 1
601
+          }
602
+        }
603
+      }
604
+    },
605
+    // 转换时间
606
+    getTime(val) {
607
+        if(val < 0){
608
+          return ""
609
+        }
610
+        if(val == ""){
611
+        return ""
612
+        }else {
613
+        return uParseTime(val, '{y}-{m}-{d}')
614
+        }
615
+    },
552 616
   },
553 617
   computed:{
554 618
     duct_Totalpoints(){

+ 249 - 157
src/xt_pages/user/history/date_history.vue 查看文件

@@ -111,7 +111,6 @@
111 111
             align="center">
112 112
           </el-table-column>
113 113
           <el-table-column
114
-
115 114
             prop="address"
116 115
             label="操作"
117 116
             width="150"
@@ -375,7 +374,7 @@
375 374
                 <td v-for="(item,index) in jinshi" :key="index">
376 375
                   <div class="jiange">
377 376
                     <span>
378
-                      <label><input type="checkbox" class="checkbox1" name="ball" :value="item.value" @click="jinshiclick($event,item.value)"/>&nbsp;
377
+                      <label><input type="checkbox" class="checkbox1" name="ball" :value="item.value" v-model="item.is_check" @click="jinshiclick($event,item)"/>&nbsp;
379 378
                           {{ item.label }}
380 379
                       </label>
381 380
                     </span>
@@ -388,35 +387,33 @@
388 387
                 <td v-for="(item,index) in xizao" :key="index">
389 388
                   <div class="jiange">
390 389
                     <span>
391
-                      <label><input type="checkbox" class="checkbox2" name="ball" :value="item.value" @click="xizaoclick($event,item.value)"/>&nbsp;
390
+                      <label><input type="checkbox" class="checkbox2" name="ball" :value="item.value" v-model="item.is_check" @click="xizaoclick($event,item)"/>&nbsp;
392 391
                           {{ item.label }}
393 392
                       </label>
394 393
                     </span>
395 394
                   </div>
396 395
                 </td>
397
-                <td></td>
398
-                <td></td>
396
+                <td></td><td></td>
399 397
               </tr>
400 398
               <tr class="bg_color">
401 399
                 <td class="start">修饰</td>
402 400
                 <td v-for="(item,index) in xiushi" :key="index">
403 401
                     <div class="jiange">
404 402
                       <span>
405
-                        <label><input type="checkbox" class="checkbox3" name="ball" :value="item.value" @click="xiushiclick($event,item.value)"/>&nbsp;
403
+                        <label><input type="checkbox" class="checkbox3" name="ball" :value="item.value" v-model="item.is_check" @click="xiushiclick($event,item)"/>&nbsp;
406 404
                             {{item.label}}
407 405
                         </label>
408 406
                       </span>
409 407
                     </div>
410 408
                 </td>
411
-                <td></td>
412
-                <td></td>
409
+                <td></td><td></td>
413 410
               </tr>
414 411
               <tr>
415 412
                 <td class="start">穿衣</td>
416 413
                 <td v-for="(item,index) in chuanyi" :key="index">
417 414
                   <div class="jiange">
418 415
                     <span>
419
-                      <label><input type="checkbox" class="checkbox4" name="ball" :value="item.value" @click="chuanyiclick($event,item.value)"/>&nbsp;
416
+                      <label><input type="checkbox" class="checkbox4" name="ball" :value="item.value" v-model="item.is_check" @click="chuanyiclick($event,item)"/>&nbsp;
420 417
                           {{item.label}}
421 418
                       </label>
422 419
                     </span>
@@ -429,7 +426,7 @@
429 426
                 <td v-for="(item,index) in dabian" :key="index">
430 427
                   <div class="jiange">
431 428
                     <span>
432
-                      <label><input type="checkbox" class="checkbox5" name="ball" :value="item.value" @click="dabianclick($event,item.value)"/>&nbsp;
429
+                      <label><input type="checkbox" class="checkbox5" name="ball" :value="item.value" v-model="item.is_check" @click="dabianclick($event,item)"/>&nbsp;
433 430
                           {{item.label}}
434 431
                       </label>
435 432
                     </span>
@@ -442,7 +439,7 @@
442 439
                 <td v-for="(item,index) in xioabian" :key="index">
443 440
                   <div class="jiange">
444 441
                     <span>
445
-                      <label><input type="checkbox" class="checkbox6" name="ball" :value="item.value" @click="xiaobianclick($event,item.value)"/>&nbsp;
442
+                      <label><input type="checkbox" class="checkbox6" name="ball" :value="item.value" v-model="item.is_check" @click="xiaobianclick($event,item)"/>&nbsp;
446 443
                           {{item.label}}
447 444
                       </label>
448 445
                     </span>
@@ -455,7 +452,7 @@
455 452
                 <td v-for="(item,index) in ruce" :key="index">
456 453
                   <div class="jiange">
457 454
                     <span>
458
-                      <label><input type="checkbox" class="checkbox7" name="ball" :value="item.value" @click="ruceclick($event,item.value)"/>&nbsp;
455
+                      <label><input type="checkbox" class="checkbox7" name="ball" :value="item.value" v-model="item.is_check" @click="ruceclick($event,item)"/>&nbsp;
459 456
                           {{item.label}}
460 457
                       </label>
461 458
                     </span>
@@ -468,7 +465,7 @@
468 465
                 <td v-for="(item,index) in chuangyi" :key="index">
469 466
                   <div class="jiange">
470 467
                     <span>
471
-                      <label><input type="checkbox" class="checkbox8" name="ball" :value="item.value" @click="chuangyiclick($event,item.value)"/>&nbsp;
468
+                      <label><input type="checkbox" class="checkbox8" name="ball" :value="item.value" v-model="item.is_check" @click="chuangyiclick($event,item)"/>&nbsp;
472 469
                           {{item.label}}
473 470
                       </label>
474 471
                     </span>
@@ -480,7 +477,7 @@
480 477
                 <td v-for="(item,index) in pingdi" :key="index">
481 478
                   <div class="jiange">
482 479
                     <span>
483
-                      <label><input type="checkbox" class="checkbox9" name="ball" :value="item.value" @click="pingdiclick($event,item.value)"/>&nbsp;
480
+                      <label><input type="checkbox" class="checkbox9" name="ball" :value="item.value" v-model="item.is_check" @click="pingdiclick($event,item)"/>&nbsp;
484 481
                           {{item.label}}
485 482
                       </label>
486 483
                     </span>
@@ -492,7 +489,7 @@
492 489
                 <td v-for="(item,index) in louti" :key="index">
493 490
                   <div class="jiange">
494 491
                     <span>
495
-                      <label><input type="checkbox" class="checkbox10" name="ball" :value="item.value" @click="louticlick($event,item.value)"/>&nbsp;
492
+                      <label><input type="checkbox" class="checkbox10" name="ball" :value="item.value" v-model="item.is_check" @click="louticlick($event,item)"/>&nbsp;
496 493
                           {{ item.label }}
497 494
                       </label>
498 495
                     </span>
@@ -512,30 +509,31 @@
512 509
                         <div class="bottoms">
513 510
                             <span>评估日期:</span>
514 511
                             <el-date-picker
515
-                                v-model="value1"
512
+                                v-model="date"
516 513
                                 type="date"
514
+                                value-format="yyyy-MM-dd"
517 515
                                 placeholder="选择日期"
518 516
                                 :clearable="false"
519 517
                                 style="width: 150px;">
520 518
                             </el-date-picker>
521 519
                         </div>
522 520
 
523
-                        <div class="bottoms">
524
-                            <span>评估人:</span>
525
-                            <el-select v-model="value" placeholder="请选择" >
526
-                                <el-option
527
-                                v-for="item in options"
528
-                                :key="item.value"
529
-                                :label="item.label"
530
-                                :value="item.value"
531
-                                style="width:150px;">
532
-                                </el-option>
533
-                            </el-select>
534
-                        </div>
521
+                      <div class="bottoms">
522
+                          <span>评估人:</span>
523
+                          <el-select v-model="appraiser" placeholder="请选择" >
524
+                              <el-option
525
+                              v-for="item in optionsarr"
526
+                              :key="item.value"
527
+                              :label="item.label"
528
+                              :value="item.value"
529
+                              style="width:150px;">
530
+                              </el-option>
531
+                          </el-select>
532
+                      </div>
535 533
 
536 534
                     </div>
537 535
                     <div style="margin:5px 10px;">
538
-                            <el-button type="primary">确认</el-button>
536
+                        <el-button type="primary" @click="date_history">确认</el-button>
539 537
                     </div>
540 538
                   </div>
541 539
                 </td>
@@ -560,6 +558,7 @@
560 558
 </template>
561 559
 <script>
562 560
 import print from 'print-js'
561
+import { uParseTime } from '@/utils/tools'
563 562
 export default{
564 563
   data(){
565 564
     return{
@@ -569,48 +568,6 @@ export default{
569 568
       mingxi_dialogVisible:false,
570 569
       editor_dialogVisible:false,
571 570
       delete_centerDialogVisible:false,
572
-      tableData:[{id:1,time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{id:2,time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
573
-      jinshi:[{value:10,label:'可独立进食(10分)'},
574
-              {value:5,label:'需部分帮助(如协助夹菜等)(5分)'},
575
-              {value:0,label:'需极大帮助或完全依赖他人(0分)'}
576
-            ],
577
-      xizao:[{value:5,label:'准备好洗澡水后可独立完成(5分)'},
578
-              {value:0,label:'在洗澡过程中需他人帮助(0分)'}
579
-            ],
580
-      xiushi:[{value:5,label:'可自己独立完成(5分)'},
581
-              {value:0,label:'需他人帮助(0分)'}
582
-            ],
583
-      chuanyi:[{value:10,label:'可独立完成(10分)'},
584
-              {value:5,label:'需部分帮助(如协助系鞋带等)(5分)'},
585
-              {value:0,label:'需极大帮助或完全依赖他人(0分)'}
586
-            ],
587
-      dabian:[{value:10,label:'可控制大便(10分)'},
588
-              {value:5,label:'偶尔失禁(5分)'},
589
-              {value:0,label:'完全失禁(0分)'}
590
-            ],
591
-      xioabian:[{value:10,label:'可控制小便(10分)'},
592
-              {value:5,label:'偶尔失禁(5分)'},
593
-              {value:0,label:'完全失禁(0分)'}
594
-            ],
595
-      ruce:[{value:10,label:'可独立完成(10分)'},
596
-            {value:5,label:'需部分帮助(如协助整理衣裤等)(5分)'},
597
-            {value:0,label:'需极大帮助或完全依赖他人(0分)'}
598
-          ],
599
-      chuangyi:[{value:15,label:'可独立完成(15分)'},
600
-              {value:10,label:'需部分帮助(1人协助))(10分)'},
601
-              {value:5,label:'需极大帮助(2人协助)(5分)'},
602
-              {value:0,label:'完全依赖他人,不能坐(0分)'}
603
-            ],
604
-      pingdi:[{value:15,label:'可独立在平地上行走>45S,可用辅助工具(15分)'},
605
-              {value:10,label:'需部分帮助(他人搀扶或使用辅助工具)(10分)'},
606
-              {value:5,label:'需极大帮助(可坐轮椅自动移动))(5分)'},
607
-              {value:0,label:'完全依赖他人(0分)'}
608
-            ],
609
-      louti:[{value:10,label:'可独立上下1层楼梯(可用辅助工具)(10分)'},
610
-              {value:5,label:'需部分帮助(他人帮助)(5分)'},
611
-              {value:0,label:'需极大帮助或完全依赖他人(0分)'}
612
-            ],
613
-
614 571
       value:'',
615 572
       input:'',
616 573
       value1:'',
@@ -625,7 +582,53 @@ export default{
625 582
       chuangyi_val:null,
626 583
       paingdi_val:null,
627 584
       louti_val:null,
628
-      row:''
585
+      row:'',
586
+      tableData:[{id:1,time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{id:2,time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
587
+      appraiser:'',
588
+      optionsarr:[],
589
+      date:this.getTime(new Date()),
590
+      jinshi:[{value:10,label:'可独立进食(10分)',is_check:false,check:0},
591
+              {value:5,label:'需部分帮助(如协助夹菜等)(5分)',is_check:false,check:0},
592
+              {value:0,label:'需极大帮助或完全依赖他人(0分)',is_check:false,check:0}
593
+            ],
594
+      xizao:[{value:5,label:'准备好洗澡水后可独立完成(5分)',is_check:false,check:0},
595
+              {value:0,label:'在洗澡过程中需他人帮助(0分)',is_check:false,check:0}
596
+            ],
597
+      xiushi:[{value:5,label:'可自己独立完成(5分)',is_check:false,check:0},
598
+              {value:0,label:'需他人帮助(0分)',is_check:false,check:0}
599
+            ],
600
+      chuanyi:[{value:10,label:'可独立完成(10分)',is_check:false,check:0},
601
+              {value:5,label:'需部分帮助(如协助系鞋带等)(5分)',is_check:false,check:0},
602
+              {value:0,label:'需极大帮助或完全依赖他人(0分)',is_check:false,check:0}
603
+            ],
604
+      dabian:[{value:10,label:'可控制大便(10分)',is_check:false,check:0},
605
+              {value:5,label:'偶尔失禁(5分)',is_check:false,check:0},
606
+              {value:0,label:'完全失禁(0分)',is_check:false,check:0}
607
+            ],
608
+      xioabian:[{value:10,label:'可控制小便(10分)',is_check:false,check:0},
609
+              {value:5,label:'偶尔失禁(5分)',is_check:false,check:0},
610
+              {value:0,label:'完全失禁(0分)',is_check:false,check:0}
611
+            ],
612
+      ruce:[{value:10,label:'可独立完成(10分)',is_check:false,check:0},
613
+            {value:5,label:'需部分帮助(如协助整理衣裤等)(5分)',is_check:false,check:0},
614
+            {value:0,label:'需极大帮助或完全依赖他人(0分)',is_check:false,check:0}
615
+            ],
616
+      chuangyi:[{value:15,label:'可独立完成(15分)',is_check:false,check:0},
617
+              {value:10,label:'需部分帮助(1人协助))(10分)',is_check:false,check:0},
618
+              {value:5,label:'需极大帮助(2人协助)(5分)',is_check:false,check:0},
619
+              {value:0,label:'完全依赖他人,不能坐(0分)',is_check:false,check:0}
620
+            ],
621
+      pingdi:[{value:15,label:'可独立在平地上行走>45S,可用辅助工具(15分)',is_check:false,check:0},
622
+              {value:10,label:'需部分帮助(他人搀扶或使用辅助工具)(10分)',is_check:false,check:0},
623
+              {value:5,label:'需极大帮助(可坐轮椅自动移动))(5分)',is_check:false,check:0},
624
+              {value:0,label:'完全依赖他人(0分)',is_check:false,check:0}
625
+            ],
626
+      louti:[{value:10,label:'可独立上下1层楼梯(可用辅助工具)(10分)',is_check:false,check:0},
627
+              {value:5,label:'需部分帮助(他人帮助)(5分)',is_check:false,check:0},
628
+              {value:0,label:'需极大帮助或完全依赖他人(0分)',is_check:false,check:0}
629
+            ],
630
+
631
+      
629 632
     }
630 633
   },
631 634
   methods:{
@@ -690,131 +693,220 @@ export default{
690 693
       }
691 694
       this.delete_centerDialogVisible=false
692 695
     },
693
-    jinshiclick(e,val){
694
-      const checkboxs=document.getElementsByClassName('checkbox1')
695
-      for(let i=0;i<checkboxs.length;i++){
696
-        if(val==checkboxs[i].value){
697
-          this.jinshi_val = val
698
-          checkboxs[i].value
699
-          checkboxs[i].checked=true
696
+
697
+    jinshiclick(e,item){
698
+      for(let i=0;i<this.jinshi.length;i++){
699
+        if(this.jinshi[i].value==item.value){
700
+          if(this.jinshi[i].check==0){
701
+            this.jinshi[i].is_check = true
702
+            this.jinshi[i].check = 1
703
+            this.jinshi_val = item.value
704
+          }else{
705
+            this.jinshi[i].is_check = false
706
+            this.jinshi[i].check = 0
707
+            this.jinshi_val = 0
708
+          }
700 709
         }else{
701
-          checkboxs[i].checked = false
710
+          this.jinshi[i].is_check = false
711
+            this.jinshi[i].check = 0
702 712
         }
703 713
       }
704 714
     },
705
-    xizaoclick(e,val){
706
-      const checkboxs=document.getElementsByClassName('checkbox2')
707
-      for(let i=0;i<checkboxs.length;i++){
708
-        if(val==checkboxs[i].value){
709
-          this.xizao_val = val
710
-          checkboxs[i].value
711
-          checkboxs[i].checked=true
715
+    xizaoclick(e,item){
716
+      for(let i=0;i<this.xizao.length;i++){
717
+        if(this.xizao[i].value==item.value){
718
+          if(this.xizao[i].check==0){
719
+            this.xizao[i].is_check = true
720
+            this.xizao[i].check = 1
721
+            this.xizao_val = item.value
722
+          }else{
723
+            this.xizao[i].is_check = false
724
+            this.xizao[i].check = 0
725
+            this.xizao_val = 0
726
+          }
712 727
         }else{
713
-          checkboxs[i].checked = false
728
+          this.xizao[i].is_check = false
729
+          this.xizao[i].check = 0
714 730
         }
715 731
       }
716 732
     },
717
-    xiushiclick(e,val){
718
-     const checkboxs=document.getElementsByClassName('checkbox3')
719
-      for(let i=0;i<checkboxs.length;i++){
720
-        if(val==checkboxs[i].value){
721
-          this.xiushi_val = val
722
-          checkboxs[i].value
723
-          checkboxs[i].checked=true
733
+    xiushiclick(e,item){
734
+      for(let i=0;i<this.xiushi.length;i++){
735
+        if(this.xiushi[i].value==item.value){
736
+          if(this.xiushi[i].check==0){
737
+            this.xiushi[i].is_check = true
738
+            this.xiushi[i].check = 1
739
+            this.xiushi_val = item.value
740
+          }else{
741
+            this.xiushi[i].is_check = false
742
+            this.xiushi[i].check = 0
743
+            this.xiushi_val = 0
744
+          }
724 745
         }else{
725
-          checkboxs[i].checked = false
746
+          this.xiushi[i].is_check = false
747
+          this.xiushi[i].check = 0
726 748
         }
727 749
       }
728 750
     },
729
-    chuanyiclick(e,val){
730
-     const checkboxs=document.getElementsByClassName('checkbox4')
731
-      for(let i=0;i<checkboxs.length;i++){
732
-        if(val==checkboxs[i].value){
733
-          this.chuanyi_val = val
734
-          checkboxs[i].value
735
-          checkboxs[i].checked=true
751
+    chuanyiclick(e,item){
752
+      for(let i=0;i<this.chuanyi.length;i++){
753
+        if(this.chuanyi[i].value==item.value){
754
+          if(this.chuanyi[i].check==0){
755
+            this.chuanyi[i].is_check = true
756
+            this.chuanyi[i].check = 1
757
+            this.chuanyi_val = item.value
758
+          }else{
759
+            this.chuanyi[i].is_check = false
760
+            this.chuanyi[i].check = 0
761
+            this.chuanyi_val = 0
762
+          }
736 763
         }else{
737
-          checkboxs[i].checked = false
764
+          this.chuanyi[i].is_check = false
765
+          this.chuanyi[i].check = 0
738 766
         }
739 767
       }
740 768
     },
741
-    dabianclick(e,val){
742
-     const checkboxs=document.getElementsByClassName('checkbox5')
743
-      for(let i=0;i<checkboxs.length;i++){
744
-        if(val==checkboxs[i].value){
745
-          this.dabian_val = val
746
-          checkboxs[i].value
747
-          checkboxs[i].checked=true
769
+    dabianclick(e,item){
770
+      for(let i=0;i<this.dabian.length;i++){
771
+        if(this.dabian[i].value==item.value){
772
+          if(this.dabian[i].check==0){
773
+            this.dabian[i].is_check = true
774
+            this.dabian[i].check = 1
775
+            this.dabian_val = item.value
776
+          }else{
777
+            this.dabian[i].is_check = false
778
+            this.dabian[i].check = 0
779
+            this.dabian_val = 0
780
+          }
748 781
         }else{
749
-          checkboxs[i].checked = false
782
+          this.dabian[i].is_check = false
783
+          this.dabian[i].check = 0
750 784
         }
751 785
       }
752 786
     },
753
-    xiaobianclick(e,val){
754
-     const checkboxs=document.getElementsByClassName('checkbox6')
755
-      for(let i=0;i<checkboxs.length;i++){
756
-        if(val==checkboxs[i].value){
757
-          this.xiaobian_val = val
758
-          checkboxs[i].value
759
-          checkboxs[i].checked=true
787
+    xiaobianclick(e,item){
788
+      for(let i=0;i<this.xioabian.length;i++){
789
+        if(this.xioabian[i].value==item.value){
790
+          if(this.xioabian[i].check==0){
791
+            this.xioabian[i].is_check = true
792
+            this.xioabian[i].check = 1
793
+            this.xiaobian_val = item.value
794
+          }else{
795
+            this.xioabian[i].is_check = false
796
+            this.xioabian[i].check = 0
797
+            this.xiaobian_val = 0
798
+          }
760 799
         }else{
761
-          checkboxs[i].checked = false
800
+          this.xioabian[i].is_check = false
801
+          this.xioabian[i].check = 0
762 802
         }
763 803
       }
764 804
     },
765
-    ruceclick(e,val){
766
-     const checkboxs=document.getElementsByClassName('checkbox7')
767
-      for(let i=0;i<checkboxs.length;i++){
768
-        if(val==checkboxs[i].value){
769
-          this.ruce_val = val
770
-          checkboxs[i].value
771
-          checkboxs[i].checked=true
805
+    ruceclick(e,item){
806
+
807
+      for(let i=0;i<this.ruce.length;i++){
808
+        if(this.ruce[i].value==item.value){
809
+          if(this.ruce[i].check==0){
810
+            this.ruce[i].is_check = true
811
+            this.ruce[i].check = 1
812
+            this.ruce_val = item.value
813
+          }else{
814
+            this.ruce[i].is_check = false
815
+            this.ruce[i].check = 0
816
+            this.ruce_val = 0
817
+          }
772 818
         }else{
773
-          checkboxs[i].checked = false
819
+          this.ruce[i].is_check = false
820
+          this.ruce[i].check = 0
774 821
         }
775 822
       }
776 823
     },
777
-    chuangyiclick(e,val){
778
-     const checkboxs=document.getElementsByClassName('checkbox8')
779
-      for(let i=0;i<checkboxs.length;i++){
780
-        if(val==checkboxs[i].value){
781
-          this.chuangyi_val = val
782
-          checkboxs[i].value
783
-          checkboxs[i].checked=true
824
+    chuangyiclick(e,item){
825
+      for(let i=0;i<this.chuangyi.length;i++){
826
+        if(this.chuangyi[i].value==item.value){
827
+          if(this.chuangyi[i].check==0){
828
+            this.chuangyi[i].is_check = true
829
+            this.chuangyi[i].check = 1
830
+            this.chuangyi_val = item.value
831
+          }else{
832
+            this.chuangyi[i].is_check = false
833
+            this.chuangyi[i].check = 0
834
+            this.chuangyi_val = 0
835
+          }
784 836
         }else{
785
-          checkboxs[i].checked = false
837
+          this.chuangyi[i].is_check = false
838
+          this.chuangyi[i].check = 0
786 839
         }
787 840
       }
788 841
     },
789
-    pingdiclick(e,val){
790
-    //  if(e.target.checked == true){
791
-    //   this.paingdi_val = val
792
-    //  }else{
793
-    //   this.paingdi_val =this.paingdi_val - val
794
-    //  }
795
-     const checkboxs=document.getElementsByClassName('checkbox9')
796
-      for(let i=0;i<checkboxs.length;i++){
797
-        if(val==checkboxs[i].value){
798
-          this.paingdi_val = val
799
-          checkboxs[i].value
800
-          checkboxs[i].checked=true
842
+    pingdiclick(e,item){
843
+      for(let i=0;i<this.pingdi.length;i++){
844
+        if(this.pingdi[i].value==item.value){
845
+          if(this.pingdi[i].check==0){
846
+            this.pingdi[i].is_check = true
847
+            this.pingdi[i].check = 1
848
+            this.paingdi_val = item.value
849
+          }else{
850
+            this.pingdi[i].is_check = false
851
+            this.pingdi[i].check = 0
852
+            this.paingdi_val = 0
853
+          }
801 854
         }else{
802
-          checkboxs[i].checked = false
855
+          this.pingdi[i].is_check = false
856
+          this.pingdi[i].check = 0
803 857
         }
804 858
       }
805 859
     },
806
-    louticlick(e,val){
807
-     const checkboxs=document.getElementsByClassName('checkbox10')
808
-      for(let i=0;i<checkboxs.length;i++){
809
-        if(val==checkboxs[i].value){
810
-          this.louti_val = val
811
-          checkboxs[i].value
812
-          checkboxs[i].checked=true
860
+    louticlick(e,item){
861
+      for(let i=0;i<this.louti.length;i++){
862
+        if(this.louti[i].value==item.value){
863
+          if(this.louti[i].check==0){
864
+            this.louti[i].is_check = true
865
+            this.louti[i].check = 1
866
+            this.louti_val = item.value
867
+          }else{
868
+            this.louti[i].is_check = false
869
+            this.louti[i].check = 0
870
+            this.louti_val = 0
871
+          }
813 872
         }else{
814
-          checkboxs[i].checked = false
873
+          this.louti[i].is_check = false
874
+          this.louti[i].check = 0
815 875
         }
816 876
       }
817 877
     },
878
+    // 确认
879
+    date_history(){
880
+      var params={
881
+        jinshi:this.jinshi,
882
+        xizao:this.xizao,
883
+        xiushi:this.xiushi,
884
+        chuanyi:this.chuanyi,
885
+        dabian:this.dabian,
886
+        xioabian:this.xioabian,
887
+        ruce:this.ruce,
888
+        chuangyi:this.chuangyi,
889
+        pingdi:this.pingdi,
890
+        louti:this.louti,
891
+        patientID:this.patientID,
892
+        appraiser:this.appraiser,//评估人
893
+        optionsarr:this.optionsarr,//评估人数组
894
+        date:this.date,
895
+        date_Totalpoints:this.date_Totalpoints
896
+      }
897
+      console.log('2222222',params);
898
+    },
899
+    // 转换时间
900
+    getTime(val) {
901
+        if(val < 0){
902
+          return ""
903
+        }
904
+        if(val == ""){
905
+        return ""
906
+        }else {
907
+        return uParseTime(val, '{y}-{m}-{d}')
908
+        }
909
+    },
818 910
   },
819 911
   computed:{
820 912
     date_Totalpoints(){

+ 74 - 33
src/xt_pages/user/history/mind_history.vue 查看文件

@@ -139,11 +139,11 @@
139 139
             <tr class="bg_color">
140 140
                 <td class="start">心理评估</td>
141 141
                 <td>
142
-                    <div class="jiange">
143
-                        <span v-for="item in xinli" class="rightjiange">
144
-                            <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;{{ item }}</label>
145
-                        </span>
146
-                    </div>
142
+                  <div class="jiange">
143
+                    <span v-for="item in xinli" class="rightjiange">
144
+                        <label><input type="checkbox" name="ball" v-model="item.is_check" @click="xinliclick(item)"/>&nbsp;{{ item.label }}</label>
145
+                    </span>
146
+                  </div>
147 147
                 </td>
148 148
             </tr>
149 149
             <tr>
@@ -181,34 +181,35 @@
181 181
       </div>
182 182
 
183 183
       <div class="content_top" style="margin-bottom: 10px ;">
184
-          <div>
185
-              <div class="bottoms">
186
-                  <span>评估日期:</span>
187
-                  <el-date-picker
188
-                      v-model="value1"
189
-                      type="date"
190
-                      placeholder="选择日期"
191
-                      :clearable="false"
192
-                      style="width: 150px;">
193
-                  </el-date-picker>
194
-              </div>
195
-
196
-              <div class="bottoms">
197
-                  <span>评估人:</span>
198
-                  <el-select v-model="value" placeholder="请选择" >
199
-                      <el-option
200
-                      v-for="item in options"
201
-                      :key="item.value"
202
-                      :label="item.label"
203
-                      :value="item.value"
204
-                      style="width:150px;">
205
-                      </el-option>
206
-                  </el-select>
207
-              </div>
184
+        <div>
185
+          <div class="bottoms">
186
+              <span>评估日期:</span>
187
+              <el-date-picker
188
+                  v-model="date"
189
+                  type="date"
190
+                  value-format="yyyy-MM-dd"
191
+                  placeholder="选择日期"
192
+                  :clearable="false"
193
+                  style="width: 150px;">
194
+              </el-date-picker>
208 195
           </div>
209
-          <div style="margin:5px 10px;">
210
-              <el-button type="primary">确认</el-button>
196
+
197
+          <div class="bottoms">
198
+              <span>评估人:</span>
199
+              <el-select v-model="appraiser" placeholder="请选择" >
200
+                  <el-option
201
+                  v-for="item in optionsarr"
202
+                  :key="item.value"
203
+                  :label="item.label"
204
+                  :value="item.value"
205
+                  style="width:150px;">
206
+                  </el-option>
207
+              </el-select>
211 208
           </div>
209
+        </div>
210
+        <div style="margin:5px 10px;">
211
+        <el-button type="primary" @click="mindclick">确认</el-button>
212
+        </div>
212 213
       </div>
213 214
     </el-dialog>
214 215
     <!-- 删除 -->
@@ -226,6 +227,7 @@
226 227
   </div>
227 228
 </template>
228 229
 <script>
230
+import { uParseTime } from '@/utils/tools'
229 231
 import print from 'print-js'
230 232
 export default{
231 233
   data(){
@@ -245,8 +247,13 @@ export default{
245 247
       options:[],
246 248
       value:'',
247 249
       value1:'',
248
-      xinli:['配合治疗','担忧','烦躁','抵触情绪','拒绝治疗','坐立不安','怪异行为','其他'],
250
+      xinli:[{label:'配合治疗',is_check:false,check:0},{label:'担忧',is_check:false,check:0},{label:'烦躁',is_check:false,check:0},
251
+          {label:'抵触情绪',is_check:false,check:0},{label:'拒绝治疗',is_check:false,check:0},{label:'坐立不安',is_check:false,check:0},
252
+          {label:'怪异行为',is_check:false,check:0},{label:'其他',is_check:false,check:0},],
249 253
       qingan:['有','无',],
254
+      appraiser:'',
255
+      optionsarr:[],
256
+      date:this.getTime(new Date())
250 257
     }
251 258
   },
252 259
   methods:{
@@ -287,7 +294,41 @@ export default{
287 294
         }
288 295
       }
289 296
       this.delete_centerDialogVisible=false
290
-    }
297
+    },
298
+    // 确认
299
+    xinliclick(item){
300
+      for(let i in this.xinli){
301
+        if(item.is_check ==false){
302
+          if(item.label==this.xinli[i].label){
303
+            this.xinli[i].check=1
304
+          }
305
+        }
306
+      }
307
+      console.log(this.xinli);
308
+    },
309
+    // 确认
310
+    mindclick(){
311
+      var params={
312
+        radio1:this.radio1,
313
+        radio2:this.radio2,
314
+        radio3:this.radio3,
315
+        date:this.date,
316
+        appraiser:this.appraiser,
317
+        optionsarr:this.optionsarr,
318
+        xinli:this.xinli,
319
+      }
320
+    },
321
+    // 转换时间
322
+    getTime(val) {
323
+        if(val < 0){
324
+          return ""
325
+        }
326
+        if(val == ""){
327
+        return ""
328
+        }else {
329
+        return uParseTime(val, '{y}-{m}-{d}')
330
+        }
331
+    },
291 332
   }
292 333
 }
293 334
 </script>