Browse Source

8月21日杨青

杨青 1 year ago
parent
commit
800f806463

+ 12 - 12
src/router/modules/patient.js View File

@@ -189,7 +189,7 @@ export default {
189 189
       is_menu: false,
190 190
       name: 'sickHistory',
191 191
       meta: { title: 'sickHistory', noCache: true }
192
-  }, 
192
+  },
193 193
   {
194 194
       path: '/patients/inspection_check',
195 195
       component: () => import('@/xt_pages/user/inspectionCheck'),
@@ -324,17 +324,17 @@ export default {
324 324
       noCache: true
325 325
     }
326 326
   },
327
-  {//评估工具/跌倒评估
328
-    path: '/patients/patient/:id/Fallassessment',
329
-    component: () => import('@/xt_pages/user/evaluationtool/Fallassessment'),
330
-    hidden: true,
331
-    is_menu: false,
332
-    name: 'Fallassessment',
333
-    meta: {
334
-      title: 'firstDiseasePrint',
335
-      noCache: true
336
-    }
337
-  },
327
+  // {//评估工具/跌倒评估
328
+  //   path: '/patients/patient/:id/Fallassessment',
329
+  //   component: () => import('@/xt_pages/user/evaluationtool/Fallassessment'),
330
+  //   hidden: true,
331
+  //   is_menu: false,
332
+  //   name: 'Fallassessment',
333
+  //   meta: {
334
+  //     title: 'firstDiseasePrint',
335
+  //     noCache: true
336
+  //   }
337
+  // },
338 338
   // {//小儿跌倒风险评估
339 339
   //   path: '/patients/patient/:id/pediatricFallAssessment',
340 340
   //   component: () => import('@/xt_pages/user/evaluationtool/pediatricFallAssessment'),

+ 37 - 5
src/xt_pages/dialysis/template/DialysisPrintOrdersixtySeven.vue View File

@@ -340,7 +340,7 @@
340 340
                 v-for="(advice, advice_index) in doctor_advices"
341 341
                 :key="advice_index"
342 342
               >
343
-                <td height="32px">
343
+                <td height="32px" >
344 344
                   <span v-if="advice.start_time">
345 345
                     {{ getTime(advice.start_time, "{h}:{i}") }}
346 346
                   </span>
@@ -349,6 +349,7 @@
349 349
                   height="32px"
350 350
                   class="advice-name"
351 351
                   style="padding-left: 7px"
352
+                
352 353
                 >
353 354
                   <span v-if="advice.parent_id > 0">---></span>
354 355
                   <span>{{ advice.advice_name }}</span>
@@ -376,8 +377,16 @@
376 377
                     "
377 378
                     >({{ advice.remark }})</span
378 379
                   >
380
+                  <!-- <template >
381
+                    <div v-for="(item,index) in arr" :key="index">
382
+                      <div v-if="item[0].prescription_id == advice.prescription_id">
383
+                        {{ item[0].advice_name }}
384
+                      </div>
385
+                    </div>
386
+                  </template> -->
379 387
                 </td>
380
-
388
+                
389
+                
381 390
                 <td height="32px">
382 391
                   <span>
383 392
                     {{ getAdminUser(advice.advice_doctor) }}
@@ -542,7 +551,7 @@ export default {
542 551
       precaution_arr: [],
543 552
       intake_arr: [],
544 553
       nutrition_arr: [],
545
-
554
+      arr:[],
546 555
       crumbs: [
547 556
         { path: false, name: "透析管理" },
548 557
         { path: false, name: "打印单" },
@@ -646,6 +655,19 @@ export default {
646 655
       org_id: 0,
647 656
     };
648 657
   },
658
+  mounted(){
659
+    // console.log('22222',this.doctor_advices);
660
+    // for(let i=0;i<this.doctor_advices.length;i++){
661
+    //   for(let j=1;j<this.doctor_advices.length;j++){
662
+    //     if(this.doctor_advices[i].prescription_id == this.doctor_advices[j].prescription_id && 
663
+    //     this.doctor_advices[i].groupno == this.doctor_advices[j].groupno){
664
+    //       this.arr.push(this.doctor_advices.splice(j,1))
665
+    //     }
666
+    //   }
667
+    // }
668
+    // console.log('55555',this.doctor_advices);
669
+    // console.log('66666',this.arr)
670
+  },
649 671
   methods: {
650 672
     // 获取当前年份,用于年龄计算
651 673
     getoldAge() {
@@ -1036,7 +1058,7 @@ export default {
1036 1058
       var response = this.childResponse;
1037 1059
       if (response.data.state == 1) {
1038 1060
         this.adminUser = response.data.data.users;
1039
-
1061
+        console.log('111111',response.data.data);
1040 1062
         this.users = response.data.data.users;
1041 1063
         this.patientInfo = response.data.data.patientInfo;
1042 1064
 
@@ -1322,9 +1344,19 @@ export default {
1322 1344
              }
1323 1345
            }
1324 1346
         }
1347
+        console.log('3333',docArr);
1325 1348
         this.doctor_advices = [] 
1326 1349
         this.doctor_advices = docArr
1327
-        // console.log(this.advice_groups);
1350
+        // for(let i=0;i<this.doctor_advices.length;i++){
1351
+        //   for(let j=1;j<this.doctor_advices.length;j++){
1352
+        //     if(this.doctor_advices[i].groupno == this.doctor_advices[j].groupno){
1353
+        //       this.arr.push(this.doctor_advices.splice(j,1))
1354
+              
1355
+        //     }
1356
+        //   }
1357
+        // }
1358
+        // console.log('55555',this.doctor_advices);
1359
+        // console.log('66666',this.arr)
1328 1360
       } else {
1329 1361
         this.loading = false;
1330 1362
         this.$message.error("请求数据失败");

+ 1 - 0
src/xt_pages/hospitalStation/components/settlePrescriptionTable.vue View File

@@ -17,6 +17,7 @@
17 17
         color: '#606266',
18 18
       }"
19 19
       highlight-current-row
20
+      max-height="380px"
20 21
     >
21 22
       <el-table-column
22 23
         align="center"

+ 2 - 0
src/xt_pages/outpatientCharges/components/prescriptionTable.vue View File

@@ -10,7 +10,9 @@
10 10
         color: '#606266',
11 11
       }"
12 12
       highlight-current-row
13
+      min-height="200px"
13 14
     >
15
+    <!-- max-height=290px -->
14 16
       <el-table-column
15 17
         fixed
16 18
         align="center"

+ 2 - 2
src/xt_pages/outpatientCharges/invoicePrint.vue View File

@@ -27,7 +27,7 @@
27 27
         </div>
28 28
     </div>
29 29
 
30
-    <div class="app-container" style="padding-top:40px;" v-if="org_id == 10485 ">
30
+    <div class="app-container" style="padding-top:40px;" v-if="org_id == 10485  || org_id == 0">
31 31
       <div class='dialysisPage'>
32 32
         <print-eleven :paramsObj="invoiceParams"></print-eleven>
33 33
       </div>
@@ -38,7 +38,7 @@
38 38
         <printSix :paramsObj="invoiceParams"></printSix>
39 39
       </div>
40 40
     </div>
41
-    <div class="app-container" style="padding-top:40px;" v-if="org_id == 10375 || org_id == 0">
41
+    <div class="app-container" style="padding-top:40px;" v-if="org_id == 10375">
42 42
       <div class='dialysisPage'>
43 43
         <print-ten :paramsObj="invoiceParams"></print-ten>
44 44
       </div>

+ 19 - 19
src/xt_pages/outpatientCharges/invoiceTemplate/printEleven.vue View File

@@ -24,34 +24,34 @@
24 24
       <div  style="position: absolute;top:68px;left:480px;">现金</div>
25 25
     </div>
26 26
     <div style="display:flex;justify-content: space-between;">
27
-      <div  style="position: absolute;top:124px;left:0px;">西药</div>
27
+      <div  style="position: absolute;top:124px;left:0px;">西药</div>
28 28
       <div  style="position: absolute;top:124px;left:60px;">{{ list.westernMedicineCostTotal ? list.westernMedicineCostTotal.toFixed(2) : '' }}</div>
29
-      <div  style="position: absolute;top:124px;left:120px;">检查费</div>
30
-      <div  style="position: absolute;top:124px;left:180px;">{{ list.checkCostTotal ? list.checkCostTotal.toFixed(2) : '' }}</div>
29
+      <div  style="position: absolute;top:124px;left:120px;">化验费</div>
30
+      <div  style="position: absolute;top:124px;left:180px;">{{ list.laboratoryCostTotal ? list.laboratoryCostTotal.toFixed(2) : '' }}</div>
31 31
       <div  style="position: absolute;top:124px;left:240px;">治疗费</div>
32 32
       <div  style="position: absolute;top:124px;left:320px;">{{ list.treatCostTotal ? list.treatCostTotal.toFixed(2) : '' }}</div>
33
-      <div  style="position: absolute;top:124px;left:410px;">床位费</div>
34
-      <div  style="position: absolute;top:124px;left:480px;">{{ list.bedCostTotal ? list.bedCostTotal.toFixed(2) : '' }}</div>
33
+      <div  style="position: absolute;top:124px;left:410px;">处置费</div>
34
+      <div  style="position: absolute;top:124px;left:480px;">0</div>
35 35
     </div>
36 36
     <div style="display:flex;justify-content: space-between;">
37 37
       <div  style="position: absolute;top:150px;left:0px;">中成药</div>
38 38
       <div  style="position: absolute;top:150px;left:60px;">{{ list.chineseTraditionalMedicineCostTotal ? list.chineseTraditionalMedicineCostTotal.toFixed(2) : '' }}</div>
39
-      <div  style="position: absolute;top:150px;left:120px;">化验费</div>
40
-      <div  style="position: absolute;top:150px;left:180px;">{{ list.laboratoryCostTotal ? list.laboratoryCostTotal.toFixed(2) : '' }}</div>
41
-      <div  style="position: absolute;top:150px;left:240px;">手术费</div>
42
-      <div  style="position: absolute;top:150px;left:320px;">{{ list.operationCostTotal ? list.operationCostTotal.toFixed(2) : '' }}</div>
43
-      <div  style="position: absolute;top:150px;left:410px;">其他费</div>
44
-      <div  style="position: absolute;top:150px;left:480px;">{{ list.otherCostTotal ? list.otherCostTotal.toFixed(2) : '' }}</div>
39
+      <div  style="position: absolute;top:150px;left:120px;">诊疗费</div>
40
+      <div  style="position: absolute;top:150px;left:180px;">{{ list.zhenChaCostTotal ? list.zhenChaCostTotal.toFixed(2) : '' }}</div>
41
+      <div  style="position: absolute;top:150px;left:240px;">材料费</div>
42
+      <div  style="position: absolute;top:150px;left:320px;">{{ list.materialCostTotal ? list.materialCostTotal.toFixed(2) : '' }}</div> 
43
+      <div  style="position: absolute;top:150px;left:410px;">护理费</div>
44
+      <div  style="position: absolute;top:150px;left:480px;">0</div>
45 45
     </div>
46 46
     <div style="display:flex;justify-content: space-between;">
47
-      <div  style="position: absolute;top:176px;left:0px;">诊察费</div>
48
-      <div  style="position: absolute;top:176px;left:60px;">{{ list.zhenChaCostTotal ? list.zhenChaCostTotal.toFixed(2) : '' }}</div>
49
-      <div  style="position: absolute;top:176px;left:120px;">材料费</div>
50
-      <div  style="position: absolute;top:176px;left:180px;">{{ list.materialCostTotal ? list.materialCostTotal.toFixed(2) : '' }}</div>
51
-      <div  style="position: absolute;top:176px;left:240px;"></div>
52
-      <div  style="position: absolute;top:176px;left:320px;"></div>
53
-      <div  style="position: absolute;top:176px;left:410px;"></div>
54
-      <div  style="position: absolute;top:176px;left:480px;"></div>
47
+      <div  style="position: absolute;top:176px;left:0px;">注射费</div>
48
+      <div  style="position: absolute;top:176px;left:60px;">0</div> 
49
+      <div  style="position: absolute;top:176px;left:120px;">检查费</div>
50
+      <div  style="position: absolute;top:176px;left:180px;">{{ list.checkCostTotal ? list.checkCostTotal.toFixed(2) : '' }}</div>
51
+      <div  style="position: absolute;top:176px;left:240px;">输氧费</div>
52
+      <div  style="position: absolute;top:176px;left:320px;">0</div>
53
+      <div  style="position: absolute;top:176px;left:410px;">其他</div>
54
+      <div  style="position: absolute;top:176px;left:480px;">{{ list.otherCostTotal ? list.otherCostTotal.toFixed(2) : '' }}</div>
55 55
     </div>
56 56
     <div style="display:flex;justify-content: space-between;">
57 57
       <div  style="position: absolute;top:202px;left:60px;"></div>

+ 10 - 8
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -174,7 +174,6 @@
174 174
 
175 175
         </div>
176 176
 
177
-
178 177
         <div class="mainCenter" v-loading="loading">
179 178
           <el-tabs class="settlementTabs" v-model="activeName" @tab-click="handleClick">
180 179
             <el-tab-pane label="日结" name="first">
@@ -183,11 +182,10 @@
183 182
                   <div>
184 183
                     <div class="tabsBox" v-for="items,index in big_prescriptions" :key="index">
185 184
                       <div style="height: calc(100% - 60px);">
186
-
185
+                        <!-- calc(100% - 60px);style="height: calc(100% - 60px);" -->
187 186
 
188 187
                         <el-tabs class="preTabs" v-model="editableTabsValue" type="border-card"
189 188
                                  @tab-click="tabclickEvent">
190
-                          <!--<el-radio-group v-model="med_radio">-->
191 189
                           <el-tab-pane
192 190
                               v-for="(item, index) in items.prescriptions"
193 191
                               :key="index"
@@ -249,13 +247,17 @@
249 247
                                 </el-button>
250 248
                               </div>
251 249
                             </div>
252
-                          </el-tab-pane>
253
-
254
-
255
-                          <prescription-table ref="prescription_tables"
250
+                            <div>
251
+                              <prescription-table ref="prescription_tables"
256 252
                                               :prescription="items.curPrescriptions"
257 253
                                               :manufacturers="manufacturers"></prescription-table>
258
-                          <!--</el-radio-group>-->
254
+                            </div>
255
+
256
+                          </el-tab-pane>
257
+                          <!-- <prescription-table ref="prescription_tables"
258
+                                              :prescription="items.curPrescriptions"
259
+                                              :manufacturers="manufacturers"></prescription-table> -->
260
+                        
259 261
                         </el-tabs>
260 262
                       </div>
261 263
                       <div class="costBox">

+ 8 - 7
src/xt_pages/sign/Schedulingdisplay.vue View File

@@ -77,9 +77,9 @@
77 77
                           <p style="width:79%">病人姓名 </p>
78 78
                         </div>
79 79
                         <div class="lineUpList">
80
-                          <div v-for="(item,index) in fenqu" :key="index" style="color:#1C6895;font-size: 38px;padding: 5px;">
80
+                          <div v-for="(item,index) in fenqu" :key="index" style="color:#1C6895;font-size: 40px;padding: 10px;word-wrap: break-word;word-break: break-all;">
81 81
                             <p style="display: inline-block;width:12%;text-align: center;">{{ item[1].name }}</p>
82
-                            <p style="display: inline-block;">
82
+                            <p style="display: inline-block;width:87%">
83 83
                               <span v-for="(it,index) in item[1].data" :key="index" >
84 84
                                 {{ it.name }}&nbsp;&nbsp;
85 85
                               </span>
@@ -125,14 +125,14 @@ export default {
125 125
       showSetting: false,
126 126
       time:'',
127 127
       newdate:'',
128
-      org_id: 10223,
128
+      org_id: '10223',
129 129
       fenqu:[],
130 130
       schArr:[],
131 131
       currentPage: 1,
132 132
       total:0,
133 133
       page:0,
134 134
       pagesize:6,
135
-      day:'',
135
+      day:'1',
136 136
       teem_sel: [
137 137
         { name: "上午", id: 1 },
138 138
         { name: "下午", id: 2 },
@@ -281,7 +281,7 @@ export default {
281 281
       ).then((res) => {
282 282
         if(res.status==200){
283 283
           const paiban = res.data.data
284
-          this.day = res.data.type
284
+          // this.day = res.data.type
285 285
           this.schArr = Object.entries(paiban);
286 286
           this.total = this.schArr.length
287 287
           this.getPageData()
@@ -365,7 +365,8 @@ export default {
365 365
 
366 366
   },
367 367
   created(){ 
368
-    // this.schArr = Object.entries(this.data);
368
+    // this.org_id = this.$store.getters.xt_user.org_id
369
+    this.schArr = Object.entries(this.data);
369 370
     // console.log('5555555555',Math.ceil(this.schArr.length / this.pagesize));
370 371
     // console.log('00000',arr);
371 372
     // this.getindexschedulelist()
@@ -400,7 +401,7 @@ export default {
400 401
         padding:10px;
401 402
     }
402 403
     .lineUpMainLeft{
403
-        height: 8%;
404
+        height: 9%;
404 405
         border-radius: 15px;
405 406
         display: flex;
406 407
         flex-direction: column;

+ 41 - 68
src/xt_pages/user/evaluationtool/Cathetershedding.vue View File

@@ -24,22 +24,22 @@
24 24
                         <td class="start">A.脱管后风险程度</td>
25 25
                         <td>
26 26
                           <div class="jiange">
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>
29
-                              </el-radio-group>
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>
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
+                            <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>
43 43
                           </div>
44 44
                         </td>
45 45
                       </tr>
@@ -71,7 +71,7 @@
71 71
                   <div>
72 72
                       <div class="bottoms">
73 73
                       <span>总分:</span>
74
-                      <el-input v-model="duct_Totalpoints" placeholder="请输入内容" style="width: 100px;"></el-input>分
74
+                      <el-input v-model="duct_Totalpoints" style="width: 100px;"></el-input>分
75 75
                       </div>
76 76
 
77 77
                       <div class="bottoms">
@@ -187,69 +187,42 @@ export default {
187 187
     PatientSidebar
188 188
   },
189 189
   data(){
190
-      return{
191
-          patientID:0,
192
-          value1:'',
193
-          radio:'',
194
-          radio1:'',
195
-          radio2:'',
196
-          duct_Totalpoints:0,
197
-          options:[],
198
-          input:'',
199
-          value:'',
200
-          tuoguan:['低危导管 (1分)','中危导管 (2分)','高危导管 (3分)'],
201
-          yishi:['意识清醒 (0分)','中昏迷、深昏迷 (1分)','嗜睡、昏睡 (2分)','浅昏迷 (3分)','意识模糊 (4分)'],
202
-          peihe:['完全配合 (1分)','部分配合 (2分)','不配合 (3分)']
203
-      }
190
+    return{
191
+      patientID:0,
192
+      value1:'',
193
+      radio:'',
194
+      radio1:'',
195
+      radio2:'',
196
+      radio_val:null,
197
+      radio1_val:null,
198
+      radio2_val:null,
199
+      // duct_Totalpoints:0,
200
+      options:[],
201
+      input:'',
202
+      value:'',
203
+      tuoguan:['低危导管 (1分)','中危导管 (2分)','高危导管 (3分)'],
204
+      yishi:['意识清醒 (0分)','中昏迷、深昏迷 (1分)','嗜睡、昏睡 (2分)','浅昏迷 (3分)','意识模糊 (4分)'],
205
+      peihe:['完全配合 (1分)','部分配合 (2分)','不配合 (3分)']
206
+    }
204 207
   },
205 208
   methods:{
206 209
     handleCheckedCitiesChange(e){
207 210
       const ball=e
208 211
       const jiequ =(ball.split('(')[1].split('分')[0]) * 1
209
-      // console.log('22222 .slice(1)',jiequ);
210
-      // var duct_touguan = 0;
211
-      // var duct_yishi = 0;
212
-      // var duct_peihe = 0;
213
-      if(e==this.radio && this.radio2 =='' && this.radio1 ==''){
214
-        
215
-       var duct_touguan = jiequ
216
-        console.log('111111',duct_touguan);
217
-        this.duct_Totalpoints = duct_touguan
218
-        return duct_touguan
219
-      } else if(e==this.radio&& this.radio2 !='' && this.radio1 !=''){
220
-        console.log('2222222222');
221
-        this.duct_Totalpoints = this.duct_Totalpoints + jiequ
222
-        return this.duct_Totalpoints
223
-      }else if(e==this.radio && (this.radio2 !='' || this.radio1 !='')){
224
-        console.log('5555555',duct_touguan,this.duct_Totalpoints);
225
-        this.duct_Totalpoints = this.duct_Totalpoints - duct_touguan
226
-        this.duct_Totalpoints = this.duct_Totalpoints + jiequ
227
-        return this.duct_Totalpoints
212
+      if(e == this.radio){
213
+        this.radio_val = jiequ
228 214
       }
229
-
230
-      if(e==this.radio1 && this.radio !='' && this.radio2 !=''){
231
-        console.log('333333');
232
-        this.duct_Totalpoints = this.duct_Totalpoints + jiequ
233
-        return this.duct_Totalpoints
234
-      }else if(e==this.radio1 && (this.radio !='' || this.radio2 !='')){
235
-        this.duct_Totalpoints = this.duct_Totalpoints + jiequ
236
-        return this.duct_Totalpoints
237
-      }
238
-      else{
239
-        console.log('444444444');
240
-        this.duct_Totalpoints= jiequ
215
+      if(e == this.radio1){
216
+        this.radio1_val = jiequ
241 217
       }
242
-
243
-      if(e==this.radio2 && this.radio !='' && this.radio1 !=''){
244
-        this.duct_Totalpoints = this.duct_Totalpoints + jiequ
245
-        return this.duct_Totalpoints
246
-      }else if(e==this.radio2 && (this.radio !='' || this.radio1 !='')){
247
-        this.duct_Totalpoints = this.duct_Totalpoints + jiequ
248
-        return this.duct_Totalpoints
249
-      }else{
250
-        this.duct_Totalpoints= jiequ
218
+      if(e == this.radio2){
219
+        this.radio2_val = jiequ
251 220
       }
252
-      
221
+    },
222
+  },
223
+  computed:{
224
+    duct_Totalpoints(){
225
+      return this.radio_val + this.radio1_val + this.radio2_val
253 226
     }
254 227
   }
255 228
 }

+ 2 - 8
src/xt_pages/user/evaluationtool/Fallassessment.vue View File

@@ -433,28 +433,22 @@
433 433
       
434 434
     },
435 435
     created() {
436
-      
437
-
436
+    
438 437
     },
439 438
     methods: {
440 439
       add(){
441 440
         this.centerDialogVisible =true
442 441
       },
443 442
       handleCheckedCitiesChange(e){
444
-        var ball = e.target.value
445
-        // console.log('22222 .slice(1)',ball);
443
+        var ball = e.target.value     
446 444
         var jiequ =(ball.split('(')[1].split('分')[0]) * 1
447
-      //  console.log('3333333333',jiequ);
448 445
         if(e.target.checked==true){
449 446
           this.tumble_Totalpoints=this.tumble_Totalpoints + jiequ
450
-          // console.log('22222 .slice(1)',ball);
451
-          // console.log('3333333333',this.tumble_Totalpoints);
452 447
           return this.tumble_Totalpoints
453 448
         }else{
454 449
           this.tumble_Totalpoints=this.tumble_Totalpoints-jiequ
455 450
           return this.tumble_Totalpoints
456 451
         }
457
-        
458 452
       }
459 453
     }
460 454
   }

+ 162 - 169
src/xt_pages/user/evaluationtool/Glasgow.vue View File

@@ -1,183 +1,176 @@
1 1
 <template>
2
-    <div class="patient-container">
3
-        <patient-sidebar :id="patientID" defaultActive="5-13"></patient-sidebar>
4
-        <div>
5
-            <div class="patient-app-container advice-container app-container">
6
-                <div class="content_top">
7
-                    <!-- 左 -->
8
-                    <div style="width: 58%;">
9
-                        <div style="margin-bottom: 20px;"><el-button type="primary">新增</el-button></div>
10
-                        <div style="font-size: 20px;margin-bottom: 20px;">Glasgow昏迷评分量表</div>
11
-                        <div style="width: 100%;">
12
-                            <table class="table" border="1" style="width: 100%;">
13
-                                <thead>
14
-                                    <tr>
15
-                                        <th style="width: 150px;">项目</th>
16
-                                        <th>分值</th>
17
-                                    </tr>
18
-                                </thead>
19
-                                <tbody>
20
-                                    <tr class="bg_color">
21
-                                        <td class="start">睁眼反应(E)</td>
22
-                                        <td>
23
-                                            <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
24
-                                                <span v-for="item in zhengyan" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
25
-                                                    <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
26
-                                                </span>
27
-                                            </div>
28
-                                        </td>
29
-                                    </tr>
30
-                                    
31
-                                    <tr>
32
-                                        <td class="start">言语反映 (V)</td>
33
-                                        <td>
34
-                                            <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
35
-                                                <span v-for="item in yanyu" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
36
-                                                    <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
37
-                                                </span>
38
-                                            </div>
39
-                                        </td>
40
-                                    </tr>
41
-                                   
42
-                                    <tr class="bg_color">
43
-                                        <td class="start">运动反应(M)</td>
44
-                                        <td>
45
-                                            <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
46
-                                                <span v-for="item in yundong" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
47
-                                                    <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
48
-                                                </span> 
49
-                                            </div>
50
-                                        </td>
51
-                                    </tr>
52
-                                   
53
-                                </tbody>
54
-                            </table>
55
-                        </div>
56
-                        
57
-                        <div style="vertical-align: top;  margin: 10px 0px; position: relative;">
58
-                            <span style="position: relative; top: -55px;">护理措施:</span>
59
-                            <div style="margin-top: 20px;display: inline-block; width: 90%;">
60
-                                <el-input maxlength="200" type = "textarea" :rows="3" v-model="input" placeholder="输入护理措施,200字以内" ></el-input>
61
-                            </div>
62
-                        </div>
63
-                        
64
-                        <div>
65
-                            <div class="bottoms">
66
-                                <span>总分:</span>
67
-                                <el-input v-model="Glasgow_Totalpoints" placeholder="请输入内容" style="width: 100px;"></el-input>分
68
-                            </div>
2
+  <div class="patient-container">
3
+    <patient-sidebar :id="patientID" defaultActive="5-13"></patient-sidebar>
4
+    <div>
5
+      <div class="patient-app-container advice-container app-container">
6
+        <div class="content_top">
7
+          <!-- 左 -->
8
+          <div style="width: 58%;">
9
+            <div style="margin-bottom: 20px;"><el-button type="primary">新增</el-button></div>
10
+            <div style="font-size: 20px;margin-bottom: 20px;">Glasgow昏迷评分量表</div>
11
+            <div style="width: 100%;">
12
+              <table class="table" border="1" style="width: 100%;">
13
+                <thead>
14
+                  <tr>
15
+                    <th style="width: 150px;">项目</th>
16
+                    <th>分值</th>
17
+                  </tr>
18
+                </thead>
19
+                <tbody>
20
+                  <tr class="bg_color">
21
+                    <td class="start">睁眼反应(E)</td>
22
+                    <td>
23
+                      <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
24
+                        <span v-for="item in zhengyan" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
25
+                          <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
26
+                        </span>
27
+                      </div>
28
+                    </td>
29
+                  </tr>
30
+                  
31
+                  <tr>
32
+                    <td class="start">言语反映 (V)</td>
33
+                    <td>
34
+                      <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
35
+                        <span v-for="item in yanyu" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
36
+                          <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
37
+                        </span>
38
+                      </div>
39
+                    </td>
40
+                  </tr>
41
+                  
42
+                  <tr class="bg_color">
43
+                    <td class="start">运动反应(M)</td>
44
+                    <td>
45
+                      <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
46
+                        <span v-for="item in yundong" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
47
+                          <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
48
+                        </span> 
49
+                      </div>
50
+                    </td>
51
+                  </tr>
52
+                  
53
+                </tbody>
54
+              </table>
55
+            </div>
56
+            
57
+            <div style="vertical-align: top;  margin: 10px 0px; position: relative;">
58
+              <span style="position: relative; top: -55px;">护理措施:</span>
59
+              <div style="margin-top: 20px;display: inline-block; width: 90%;">
60
+                <el-input maxlength="200" type = "textarea" :rows="3" v-model="input" placeholder="输入护理措施,200字以内" ></el-input>
61
+              </div>
62
+            </div>
63
+            
64
+            <div>
65
+              <div class="bottoms">
66
+                <span>总分:</span>
67
+                <el-input v-model="Glasgow_Totalpoints" style="width: 100px;"></el-input>分
68
+              </div>
69 69
 
70
-                            <div class="bottoms">
71
-                                <span>评估日期:</span>
72
-                                <el-date-picker
73
-                                    v-model="value1"
74
-                                    type="date"
75
-                                    placeholder="选择日期"
76
-                                    :clearable="false"
77
-                                    style="width: 150px;">
78
-                                </el-date-picker>
79
-                            </div>
70
+              <div class="bottoms">
71
+                <span>评估日期:</span>
72
+                <el-date-picker
73
+                    v-model="value1"
74
+                    type="date"
75
+                    placeholder="选择日期"
76
+                    :clearable="false"
77
+                    style="width: 150px;">
78
+                </el-date-picker>
79
+              </div>
80 80
 
81
-                            <div class="bottoms">
82
-                                <span>评估人:</span>
83
-                                <el-select v-model="value" placeholder="请选择" >
84
-                                    <el-option
85
-                                    v-for="item in options"
86
-                                    :key="item.value"
87
-                                    :label="item.label"
88
-                                    :value="item.value"
89
-                                    style="width:150px;">
90
-                                    </el-option>
91
-                                </el-select>
92
-                            </div>
93
-                            
94
-                        </div> 
95
-                        
96
-                        <hr style=" background-color: #DCDFE6;margin-top: 20px; height: 1px;border: none;"/>
97
-                        <div class="shuoming">
98
-                            <p>说明:</p>
99
-                            <p>总分15分,其中 14-15分为正常,8-13分为中度意识障碍,≦7分为浅昏迷 ,3分为深昏迷 。</p>
100
-                            
101
-                        </div>
102
-                    </div>
103
-                    <!-- 虚线 -->
104
-                    <div style="height: 100vh; width: 1px; border-left:1px dashed #DCDFE6 ;"></div>
105
-                    <!-- 右 -->
106
-                    <div style="width: 38%;">
107
-                        <div style="font-size: 20px; margin-bottom: 20px;">评估历史记录</div>
108
-                        <div style="width: 100%;">
109
-                            <el-table
110
-                            :data="tableData"
111
-                            stripe
112
-                            border
113
-                            :header-cell-style="{
114
-                                background: '#0077ff9f',color:'white'}"
115
-                            style="width: 100%">
116
-                                <el-table-column
117
-                                prop="date"
118
-                                label="评估日期"
119
-                                width="180">
120
-                                </el-table-column>
121
-                                <el-table-column
122
-                                prop="name"
123
-                                label="总分"
124
-                                >
125
-                                </el-table-column>
126
-                                <el-table-column
127
-                                prop="name"
128
-                                label="评估人"
129
-                                >
130
-                                </el-table-column>
131
-                            </el-table>
132
-                        </div>
133
-                    </div>
134
-                </div>
135
-                
81
+              <div class="bottoms">
82
+                <span>评估人:</span>
83
+                <el-select v-model="value" placeholder="请选择" >
84
+                    <el-option
85
+                    v-for="item in options"
86
+                    :key="item.value"
87
+                    :label="item.label"
88
+                    :value="item.value"
89
+                    style="width:150px;">
90
+                    </el-option>
91
+                </el-select>
92
+              </div>
93
+            </div> 
94
+            
95
+            <hr style=" background-color: #DCDFE6;margin-top: 20px; height: 1px;border: none;"/>
96
+            <div class="shuoming">
97
+              <p>说明:</p>
98
+              <p>总分15分,其中 14-15分为正常,8-13分为中度意识障碍,≦7分为浅昏迷 ,3分为深昏迷 。</p>
136 99
             </div>
100
+          </div>
101
+          <!-- 虚线 -->
102
+          <div style="height: 100vh; width: 1px; border-left:1px dashed #DCDFE6 ;"></div>
103
+          <!-- 右 -->
104
+          <div style="width: 38%;">
105
+            <div style="font-size: 20px; margin-bottom: 20px;">评估历史记录</div>
106
+            <div style="width: 100%;">
107
+              <el-table
108
+              :data="tableData"
109
+              stripe
110
+              border
111
+              :header-cell-style="{
112
+                  background: '#0077ff9f',color:'white'}"
113
+              style="width: 100%">
114
+                  <el-table-column
115
+                  prop="date"
116
+                  label="评估日期"
117
+                  width="180">
118
+                  </el-table-column>
119
+                  <el-table-column
120
+                  prop="name"
121
+                  label="总分"
122
+                  >
123
+                  </el-table-column>
124
+                  <el-table-column
125
+                  prop="name"
126
+                  label="评估人"
127
+                  >
128
+                  </el-table-column>
129
+              </el-table>
130
+            </div>
131
+          </div>
137 132
         </div>
138
-       
139
-    </div>
133
+      </div>
134
+    </div> 
135
+  </div>
140 136
 </template>
141 137
 <script>
142 138
 import PatientSidebar from '../components/PatientSidebar.vue'
143 139
 export default {
144
-    components:{
145
-      PatientSidebar
146
-    },
147
-    data(){
148
-        return{
149
-            patientID:0,
150
-            checkList:'',
151
-            checkList1:'',
152
-            checkList2:'',
153
-            value1:'',
154
-            value:'',
155
-            input:'',
156
-            Glasgow_Totalpoints:0,
157
-            options:[],
158
-            tableData:[],
159
-            zhengyan:['自动睁眼(4分)','互换睁眼(3分)','刺激睁眼(2分)','无反应(1分)'],
160
-            yanyu:['正常(5分)','不准确回答问题(4分)','不恰当词句(3分)','不能理解的言语(2分)','无言语反映(1分)'],
161
-            yundong:['能按指令运动肢体(6分)','对刺痛能定位(5分)','对刺痛能躲避(4分)','刺痛肢体屈曲(3分)','刺痛肢体过伸(2分)','无反应(1分)'],
162
-        }
163
-    },
164
-    methods:{
165
-      handleCheckedCitiesChange(e){
166
-        var ball = e.target.value
167
-        var jiequ =(ball.split('(')[1].split('分')[0]) * 1
168
-        if(e.target.checked==true){
169
-          this.tumble_Totalpoints=this.tumble_Totalpoints + jiequ
170
-          // console.log('22222 .slice(1)',ball);
171
-          // console.log('3333333333',this.tumble_Totalpoints);
172
-          return this.tumble_Totalpoints
173
-        }else{
174
-          this.tumble_Totalpoints=this.tumble_Totalpoints-jiequ
175
-          return this.tumble_Totalpoints
176
-        }
177
-        
140
+  components:{
141
+    PatientSidebar
142
+  },
143
+  data(){
144
+    return{
145
+      patientID:0,
146
+      checkList:'',
147
+      checkList1:'',
148
+      checkList2:'',
149
+      value1:'',
150
+      value:'',
151
+      input:'',
152
+      Glasgow_Totalpoints:null,
153
+      options:[],
154
+      tableData:[],
155
+      zhengyan:['自动睁眼(4分)','互换睁眼(3分)','刺激睁眼(2分)','无反应(1分)'],
156
+      yanyu:['正常(5分)','不准确回答问题(4分)','不恰当词句(3分)','不能理解的言语(2分)','无言语反映(1分)'],
157
+      yundong:['能按指令运动肢体(6分)','对刺痛能定位(5分)','对刺痛能躲避(4分)','刺痛肢体屈曲(3分)','刺痛肢体过伸(2分)','无反应(1分)'],
158
+    }
159
+  },
160
+  methods:{
161
+    handleCheckedCitiesChange(e){
162
+      var ball = e.target.value
163
+      var jiequ =(ball.split('(')[1].split('分')[0]) * 1
164
+      if(e.target.checked==true){
165
+        this.Glasgow_Totalpoints=this.Glasgow_Totalpoints + jiequ
166
+        return this.Glasgow_Totalpoints
167
+      }else{
168
+        this.Glasgow_Totalpoints=this.Glasgow_Totalpoints-jiequ
169
+        return this.Glasgow_Totalpoints
178 170
       }
171
+      
179 172
     }
180
-
173
+  }
181 174
 }
182 175
 </script>
183 176
 <style lang="scss" scoped>

+ 47 - 13
src/xt_pages/user/evaluationtool/Muscleforce.vue View File

@@ -16,7 +16,7 @@
16 16
                                         <th>分值</th>
17 17
                                     </tr>
18 18
                                 </thead>
19
-                                <tbody>
19
+                                <!-- <tbody>
20 20
                                     <tr class="bg_color">
21 21
                                         <td class="start">0级</td>
22 22
                                         <td>
@@ -78,7 +78,17 @@
78 78
                                             </div>
79 79
                                         </td>
80 80
                                     </tr>
81
-                                </tbody>
81
+                                </tbody> -->
82
+                              <tbody>
83
+                                <tr v-for="(item,index) in shuju" :key="index" :style="{'background':(index==0 || index % 2==0) ?'rgb(243, 240, 240)':'white'}">
84
+                                  <td class="start">{{ item.title }}</td>
85
+                                  <td>
86
+                                    <div class="jiange">
87
+                                      <label style="font-size: 15px;"><input type="checkbox" name="ball" :value="item.value" @change="handleCheckedCitiesChange"/>&nbsp;{{ item.value }}</label>
88
+                                    </div>
89
+                                  </td>
90
+                                </tr>
91
+                              </tbody>
82 92
                             </table>
83 93
                         </div>
84 94
                         
@@ -92,7 +102,7 @@
92 102
                         <div>
93 103
                             <div class="bottoms">
94 104
                                 <span>级别:</span>
95
-                                <el-input v-model="input" placeholder="请输入内容" style="width: 100px;"></el-input>级
105
+                                <el-input v-model="Mus_Totalpoints" style="width: 100px;"></el-input>级
96 106
                             </div>
97 107
 
98 108
                             <div class="bottoms">
@@ -166,17 +176,41 @@ export default {
166 176
       PatientSidebar
167 177
     },
168 178
     data(){
169
-        return{
170
-            patientID:0,
171
-            checkList:'',
172
-            checkList1:'',
173
-            checkList2:'',
174
-            value1:'',
175
-            value:'',
176
-            input:'',
177
-            options:[],
178
-            tableData:[],
179
+      return{
180
+        patientID:0,
181
+        checkList:'',
182
+        checkList1:'',
183
+        checkList2:'',
184
+        value1:'',
185
+        value:'',
186
+        input:'',
187
+        Mus_Totalpoints:'',
188
+        options:[],
189
+        tableData:[],
190
+        shuju:[
191
+          {title:'0级',value:'肌肉完全不收缩'},
192
+          {title:'1级',value:'可见肌肉收缩但无肢体运动'},
193
+          {title:'2级',value:'肢体能在床上移动,但不能抬离床面,即不能对抗地心引力'},
194
+          {title:'3级',value:'肢体能抬离床面,克服地心引力做随意运动,但不能对抗外加阻力'},
195
+          {title:'4级',value:'能在一般的外加阻力下作运动,但力量较正常弱'},
196
+          {title:'5级',value:' 正常肌力'},
197
+        ]
198
+      }
199
+    },
200
+    methods:{
201
+      handleCheckedCitiesChange(e){
202
+        for(let i=0;i<this.shuju.length;i++){
203
+          if(e.target.value == this.shuju[i].value ){
204
+           const arr= (this.shuju[i].title.split('级')[0])
205
+           if(e.target.checked == true){
206
+            this.Mus_Totalpoints = arr
207
+           }else{
208
+            this.Mus_Totalpoints =0
209
+           }
210
+           console.log('33333',arr);
211
+          }
179 212
         }
213
+      }
180 214
     }
181 215
 }
182 216
 </script>

+ 141 - 145
src/xt_pages/user/evaluationtool/OHpressuresore.vue View File

@@ -1,155 +1,151 @@
1 1
 <!-- OH压疮评估 -->
2 2
 <template>
3
-    <div class="patient-container">
4
-        <patient-sidebar :id="patientID" defaultActive="5-4"></patient-sidebar>
5
-        <div>
6
-            <div class="patient-app-container advice-container app-container">
7
-                <div class="content_top">
8
-                    <!-- 左 -->
9
-                    <div style="width: 58%;">
10
-                        <div style="margin-bottom: 20px;"><el-button type="primary">新增</el-button></div>
11
-                        <div style="font-size: 20px;margin-bottom: 20px;">OH压疮评估表</div>
12
-                        <div style="width: 100%;">
13
-                            <table class="table" border="1" style="width: 100%;">
14
-                                <thead>
15
-                                    <tr>
16
-                                        <th style="width: 150px;">项目</th>
17
-                                        <th>分值</th>
18
-                                    </tr>
19
-                                </thead>
20
-                                <tbody>
21
-                                    <tr class="bg_color">
22
-                                        <td class="start">自主体位变换</td>
23
-                                        <td>
24
-                                            <div class="jiange">
25
-                                                <span v-for="item in tiwei" class="rightjiange" @change="handleCheckedCitiesChange">
26
-                                                    <label><input type="checkbox" name="ball" :value="item"/>&nbsp;{{ item }}</label>
27
-                                                </span>
28
-                                            </div>
29
-                                        </td>
30
-                                    </tr>
31
-                                    <tr>
32
-                                        <td class="start">病理性骨突出</td>
33
-                                        <td>
34
-                                            <div class="jiange">
35
-                                                <span v-for="item in bingli" class="rightjiange" @change="handleCheckedCitiesChange">
36
-                                                    <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
37
-                                                </span>
38
-                                            </div>
39
-                                        </td>
40
-                                    </tr>
41
-                                   
42
-                                    <tr class="bg_color">
43
-                                        <td class="start">浮肿</td>
44
-                                        <td>
45
-                                            <div class="jiange">
46
-                                                <span v-for="item in edema" class="rightjiange" @change="handleCheckedCitiesChange">
47
-                                                    <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
48
-                                                </span>
49
-                                            </div>
50
-                                        </td>
51
-                                    </tr>
52
-                                   
53
-                                    <tr>
54
-                                        <td class="start">关节痉挛</td>
55
-                                          <td>
56
-                                            <div class="jiange">
57
-                                                <span v-for="item in guanjie" class="rightjiange" @change="handleCheckedCitiesChange">
58
-                                                    <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
59
-                                                </span>
60
-                                            </div>
61
-                                        </td>
62
-                                    </tr>
63
-                                </tbody>
64
-                            </table>
65
-                        </div>
3
+  <div class="patient-container">
4
+    <patient-sidebar :id="patientID" defaultActive="5-4"></patient-sidebar>
5
+    <div>
6
+      <div class="patient-app-container advice-container app-container">
7
+        <div class="content_top">
8
+          <!-- 左 -->
9
+          <div style="width: 58%;">
10
+            <div style="margin-bottom: 20px;"><el-button type="primary">新增</el-button></div>
11
+            <div style="font-size: 20px;margin-bottom: 20px;">OH压疮评估表</div>
12
+            <div style="width: 100%;">
13
+                <table class="table" border="1" style="width: 100%;">
14
+                    <thead>
15
+                        <tr>
16
+                            <th style="width: 150px;">项目</th>
17
+                            <th>分值</th>
18
+                        </tr>
19
+                    </thead>
20
+                    <tbody>
21
+                        <tr class="bg_color">
22
+                            <td class="start">自主体位变换</td>
23
+                            <td>
24
+                                <div class="jiange">
25
+                                    <span v-for="item in tiwei" class="rightjiange" @change="handleCheckedCitiesChange">
26
+                                        <label><input type="checkbox" name="ball" :value="item"/>&nbsp;{{ item }}</label>
27
+                                    </span>
28
+                                </div>
29
+                            </td>
30
+                        </tr>
31
+                        <tr>
32
+                            <td class="start">病理性骨突出</td>
33
+                            <td>
34
+                                <div class="jiange">
35
+                                    <span v-for="item in bingli" class="rightjiange" @change="handleCheckedCitiesChange">
36
+                                        <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
37
+                                    </span>
38
+                                </div>
39
+                            </td>
40
+                        </tr>
66 41
                         
67
-                        <div style="vertical-align: top;  margin: 10px 0px; position: relative;">
68
-                            <span style="position: relative; top: -55px;">护理措施:</span>
69
-                            <div style="margin-top: 20px;display: inline-block; width: 90%;">
70
-                                <el-input maxlength="200" type = "textarea" :rows="3" v-model="input" placeholder="输入护理措施,200字以内" ></el-input>
71
-                            </div>
72
-                        </div>
42
+                        <tr class="bg_color">
43
+                            <td class="start">浮肿</td>
44
+                            <td>
45
+                                <div class="jiange">
46
+                                    <span v-for="item in edema" class="rightjiange" @change="handleCheckedCitiesChange">
47
+                                        <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
48
+                                    </span>
49
+                                </div>
50
+                            </td>
51
+                        </tr>
73 52
                         
74
-                        <div>
75
-                            <div class="bottoms">
76
-                                <span>总分:</span>
77
-                                <el-input v-model="Totalpoints" placeholder="请输入内容" style="width: 100px;"></el-input>分
78
-                            </div>
79
-
80
-                            <div class="bottoms">
81
-                                <span>评估日期:</span>
82
-                                <el-date-picker
83
-                                    v-model="value1"
84
-                                    type="date"
85
-                                    placeholder="选择日期"
86
-                                    :clearable="false"
87
-                                    style="width: 150px;">
88
-                                </el-date-picker>
89
-                            </div>
90
-
91
-                            <div class="bottoms">
92
-                                <span>评估人:</span>
93
-                                <el-select v-model="value" placeholder="请选择" >
94
-                                    <el-option
95
-                                    v-for="item in options"
96
-                                    :key="item.value"
97
-                                    :label="item.label"
98
-                                    :value="item.value"
99
-                                    style="width:150px;">
100
-                                    </el-option>
101
-                                </el-select>
102
-                            </div>
103
-                            
104
-                        </div> 
105
-                        
106
-                        <hr style="width: 100%;margin-top: 20px; border: none;height: 1px;background: #DCDFE6;"/>
107
-                        <div class="shuoming">
108
-                            <p>说明:</p>
109
-                            <p>1、本表适用于急症科、血液净化科等非病房科室。</p>
110
-                            <p>2、总分:10分,分值越大风险越高 ;1-3分为低危;4-6分为中危;7-10分为高危。</p>
111
-                            <p>3、病理性骨突出指骶尾部(或受压部位骨突出处)两侧均高于皮肤
112
-                                <2cm为“无”;两侧均为2cm或一侧<2cm一侧2cm为“轻度/中度”;两侧均>2cm或一侧>2cm一侧2cm为“高度”。
113
-                            </p>
114
-                            <p>参考:北海道大学名授大浦武彦,堀田由浩. 利用OH 评估法进行压疮预防[M].东京:中央法规出版社,2005:11</p>
115
-                        </div>
116
-                    </div>
117
-                    <!-- 虚线 -->
118
-                    <div style="height: 100vh; width: 1px; border-left:1px dashed #DCDFE6 ;"></div>
119
-                    <!-- 右 -->
120
-                    <div style="width: 38%;">
121
-                        <div style="font-size: 20px; margin-bottom: 20px;">评估历史记录</div>
122
-                        <div style="width: 100%;">
123
-                            <el-table
124
-                            :data="tableData"
125
-                            stripe
126
-                            border
127
-                            :header-cell-style="{
128
-                                background: '#0077ff9f',color:'white'}"
129
-                            style="width: 100%">
130
-                                <el-table-column
131
-                                prop="date"
132
-                                label="评估日期"
133
-                                width="180">
134
-                                </el-table-column>
135
-                                <el-table-column
136
-                                prop="name"
137
-                                label="总分"
138
-                                >
139
-                                </el-table-column>
140
-                                <el-table-column
141
-                                prop="name"
142
-                                label="评估人"
143
-                                >
144
-                                </el-table-column>
145
-                            </el-table>
146
-                        </div>
147
-                    </div>
53
+                        <tr>
54
+                            <td class="start">关节痉挛</td>
55
+                              <td>
56
+                                <div class="jiange">
57
+                                    <span v-for="item in guanjie" class="rightjiange" @change="handleCheckedCitiesChange">
58
+                                        <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
59
+                                    </span>
60
+                                </div>
61
+                            </td>
62
+                        </tr>
63
+                    </tbody>
64
+                </table>
65
+            </div>
66
+            
67
+            <div style="vertical-align: top;  margin: 10px 0px; position: relative;">
68
+                <span style="position: relative; top: -55px;">护理措施:</span>
69
+                <div style="margin-top: 20px;display: inline-block; width: 90%;">
70
+                    <el-input maxlength="200" type = "textarea" :rows="3" v-model="input" placeholder="输入护理措施,200字以内" ></el-input>
148 71
                 </div>
149 72
             </div>
73
+            
74
+            <div>
75
+              <div class="bottoms">
76
+                <span>总分:</span>
77
+                <el-input v-model="Totalpoints" style="width: 100px;"></el-input>分
78
+              </div>
79
+              <div class="bottoms">
80
+                <span>评估日期:</span>
81
+                <el-date-picker
82
+                  v-model="value1"
83
+                  type="date"
84
+                  placeholder="选择日期"
85
+                  :clearable="false"
86
+                  style="width: 150px;">
87
+                </el-date-picker>
88
+              </div>
89
+              <div class="bottoms">
90
+                <span>评估人:</span>
91
+                <el-select v-model="value" placeholder="请选择" >
92
+                    <el-option
93
+                    v-for="item in options"
94
+                    :key="item.value"
95
+                    :label="item.label"
96
+                    :value="item.value"
97
+                    style="width:150px;">
98
+                    </el-option>
99
+                </el-select>
100
+              </div>
101
+            </div> 
102
+            
103
+            <hr style="width: 100%;margin-top: 20px; border: none;height: 1px;background: #DCDFE6;"/>
104
+            <div class="shuoming">
105
+                <p>说明:</p>
106
+                <p>1、本表适用于急症科、血液净化科等非病房科室。</p>
107
+                <p>2、总分:10分,分值越大风险越高 ;1-3分为低危;4-6分为中危;7-10分为高危。</p>
108
+                <p>3、病理性骨突出指骶尾部(或受压部位骨突出处)两侧均高于皮肤
109
+                    <2cm为“无”;两侧均为2cm或一侧<2cm一侧2cm为“轻度/中度”;两侧均>2cm或一侧>2cm一侧2cm为“高度”。
110
+                </p>
111
+                <p>参考:北海道大学名授大浦武彦,堀田由浩. 利用OH 评估法进行压疮预防[M].东京:中央法规出版社,2005:11</p>
112
+            </div>
113
+          </div>
114
+          <!-- 虚线 -->
115
+          <div style="height: 100vh; width: 1px; border-left:1px dashed #DCDFE6 ;"></div>
116
+          <!-- 右 -->
117
+          <div style="width: 38%;">
118
+            <div style="font-size: 20px; margin-bottom: 20px;">评估历史记录</div>
119
+            <div style="width: 100%;">
120
+              <el-table
121
+              :data="tableData"
122
+              stripe
123
+              border
124
+              :header-cell-style="{
125
+                  background: '#0077ff9f',color:'white'}"
126
+              style="width: 100%">
127
+                  <el-table-column
128
+                  prop="date"
129
+                  label="评估日期"
130
+                  width="180">
131
+                  </el-table-column>
132
+                  <el-table-column
133
+                  prop="name"
134
+                  label="总分"
135
+                  >
136
+                  </el-table-column>
137
+                  <el-table-column
138
+                  prop="name"
139
+                  label="评估人"
140
+                  >
141
+                  </el-table-column>
142
+              </el-table>
143
+            </div>
144
+          </div>
150 145
         </div>
151
-        
146
+      </div>
152 147
     </div>
148
+  </div>
153 149
 </template>
154 150
 <script>
155 151
 import PatientSidebar from '../components/PatientSidebar.vue'
@@ -160,7 +156,7 @@ export default {
160 156
     data(){
161 157
         return{
162 158
             patientID:0,
163
-            Totalpoints:0,
159
+            Totalpoints:null,
164 160
             ball:'',
165 161
             input:'',
166 162
             tableData:[],

+ 203 - 210
src/xt_pages/user/evaluationtool/RassAssessment.vue View File

@@ -13,165 +13,69 @@
13 13
 
14 14
                 <div class='content_top'>
15 15
                     <div style="width:29%">
16
-                        <table class="table" border="1" style="width: 100%;">
17
-                          <thead>
18
-                            <tr>
19
-                              <th style="width: 180px; text-align: left;margin-left: 5px;">LOS评分</th>
20
-                            </tr>
21
-                          </thead>
22
-                          <tbody>
23
-                            <tr class="bg_color">
24
-                              <td style="padding-left: 5px;">
25
-                                <span class="rightjiange">
26
-                                   <label><input type="radio" name="ball" value="volleyball" />&nbsp;0分 清醒</label>
27
-                                </span>
28
-                              </td>
29
-                            </tr>
30
-                            <tr>
31
-                              <td style="padding-left: 5px;">
32
-                                <span class="rightjiange">
33
-                                   <label><input type="radio" name="ball" value="volleyball" />&nbsp;1分
34
-                                      有些昏昏欲睡,但容易唤醒
35
-                                    </label>
36
-                                </span>
37
-                              </td>
38
-                            </tr>
39
-                            <tr class="bg_color">
40
-                              <td style="padding: 5px;">
41
-                                <div class="rightjiange" style="position: relative;">
42
-                                    <input type="radio" name="ball" value="volleyball" id="2"/>
43
-                                   <label for="2" style="">
44
-                                    <div style="display: inline-block;">2分</div>&nbsp; 
45
-                                    <div style="display: inline-block;width: 320px;position: absolute;top: -8px;">
46
-                                        频繁发生昏昏欲睡,容易唤醒,但不能持续处于觉醒状态
47
-                                    </div> 
48
-                                       
49
-                                    </label>
50
-                                </div>
51
-                              </td>
52
-                            </tr>
53
-                            <tr>
54
-                              <td style="padding-left: 5px;">
55
-                                <span class="rightjiange">
56
-                                   <label><input type="radio" name="ball" value="volleyball" />&nbsp;3分 
57
-                                    无意识,无法唤醒
58
-                                   </label>
16
+                      <table class="table" border="1" style="width: 100%;">
17
+                        <thead>
18
+                          <tr>
19
+                            <th style="width: 180px; text-align: left;margin-left: 5px;">LOS评分</th>
20
+                          </tr>
21
+                        </thead>
22
+                        <tbody>
23
+                          <tr v-for="(item, index) in LOS" :key="index" :style="{'background':(index==0 || index % 2==0) ?'rgb(243, 240, 240)':'white'}">
24
+                            <td style="padding: 5px;">
25
+                              <div class="rightjiange" style="position: relative;">
26
+                                <label style="">
27
+                                  <input type="radio" name="ball" :value="item.value"  @change="handleCheckedCitiesChange"/>
28
+                                  <div style="display: inline-block;">{{ item.title }}</div>&nbsp;
29
+                                  <div :style="{'display': 'inline-block','width':' 320px','position': 'absolute','top':index ==2 ? '-8px':'0px'}">
30
+                                      {{ item.value }}
31
+                                  </div>
32
+                                </label>
33
+                              </div>
34
+                            </td>
35
+                          </tr>
36
+                        </tbody>
37
+                      </table>
38
+                    </div>
39
+
40
+                    <div style="width:70%">
41
+                      <table class="table" border="1" style="width: 100%;">
42
+                        <thead>
43
+                          <tr>
44
+                            <th colspan="2">RASS评分</th>
45
+                          </tr>
46
+                        </thead>
47
+                        <tbody>
48
+                          <tr class="bg_color" v-for="(item,index) in RASS" :key="index" :style="{'background':(index==0 || index % 2==0) ?'rgb(243, 240, 240)':'white'}">
49
+                              <td class='bing'>
50
+                                <span class="rightjiange" style="position: relative;">
51
+                                  <label><input type="radio" name="ball" :value="item.value" @change="handleCheckedCitiesChange"/>&nbsp;
52
+                                      <span style="display: inline-block;">{{item.title}}</span>
53
+                                      &nbsp;<span :style="{'display': 'inline-block','width':' 430px','position': 'absolute','top':index ==4 ? '-8px':'0px'}">
54
+                                     {{item.value}}
55
+                                      </span>
56
+                                  </label>
59 57
                                 </span>
60 58
                               </td>
61
-                            </tr>
62
-                            <tr class="bg_color">
63
-                              <td style="padding-left: 5px;">
64
-                                <span class="rightjiange">
65
-                                   <label><input type="radio" name="ball" value="volleyball" />&nbsp;4分 
66
-                                        正常意识,容易唤醒
67
-                                    </label>
59
+                              <td class='bing'>
60
+                                <span class="rightjiange" style="position: relative;">
61
+                                  <label><input type="radio" name="ball" :value="item.value2" @change="handleCheckedCitiesChange"/>&nbsp;
62
+                                      <span style="display: inline-block;">{{item.title2}}</span>
63
+                                      &nbsp;<span style="display: inline-block;position: absolute;top: 0px;width: 430px;">
64
+                                     {{item.value2}}
65
+                                      </span>
66
+                                  </label>
68 67
                                 </span>
69 68
                               </td>
70
-                            </tr>
71
-                          </tbody>
72
-                        </table>
73
-                    </div>
74
-
75
-                    <div style="width:70%">
76
-                        <table class="table" border="1" style="width: 100%;">
77
-                            <thead>
78
-                                <tr>
79
-                                    <th colspan="2">RASS评分</th>
80
-                                </tr>
81
-                            </thead>
82
-                            <tbody>
83
-                                <tr class="bg_color">
84
-                                    <td class='bing'>
85
-                                      <span class="rightjiange">
86
-                                        <label><input type="radio" name="ball" value="volleyball" />&nbsp;
87
-                                            -5分 无法唤醒,对声音或物理刺激均无反应
88
-                                        </label>
89
-                                      </span>  
90
-                                    </td>
91
-                                    <td class='bing'>
92
-                                      <span class="rightjiange">
93
-                                        <label><input type="radio" name="ball" value="volleyball" />&nbsp;
94
-                                            0分 警觉的平静的
95
-                                        </label>
96
-                                      </span>  
97
-                                    </td>
98
-                                </tr>
99
-                                <tr class="">
100
-                                    <td class='bing'>
101
-                                      <span class="rightjiange">
102
-                                        <label><input type="radio" name="ball" value="volleyball" />&nbsp;
103
-                                            -4分 深度镇静,对声音刺激无反应,但对物理刺激有运动或睁眼反应
104
-                                        </label>
105
-                                      </span>  
106
-                                    </td>
107
-                                    <td class='bing'>
108
-                                      <span class="rightjiange">
109
-                                        <label><input type="radio" name="ball" value="volleyball" />&nbsp;
110
-                                            +1分 不安的焦虑的:焦虑但无强烈的攻击行为
111
-                                        </label>
112
-                                      </span>  
113
-                                    </td>
114
-                                </tr>
115
-                                <tr class="bg_color">
116
-                                    <td class='bing'>
117
-                                      <span class="rightjiange">
118
-                                        <label><input type="radio" name="ball" value="volleyball" />&nbsp;
119
-                                            -3分 中度镇静,对声音刺激有活动或睁眼动作(但无目光接触)
120
-                                        </label>
121
-                                      </span>  
122
-                                    </td>
123
-                                    <td class='bing'>
124
-                                      <span class="rightjiange">
125
-                                        <label><input type="radio" name="ball" value="volleyball" />&nbsp;
126
-                                            +2分 焦虑的激动的:经常性的无目的活动,人机对抗
127
-                                        </label>
128
-                                      </span>  
129
-                                    </td>
130
-                                </tr>
131
-                                <tr class="">
132
-                                    <td class='bing'>
133
-                                      <span class="rightjiange">
134
-                                        <label><input type="radio" name="ball" value="volleyball" />&nbsp;
135
-                                            -2分 轻度镇静,对于声音刺激可以有简短的目光接触的觉醒,<10s
136
-                                        </label>
137
-                                      </span>  
138
-                                    </td>
139
-                                    <td class='bing'>
140
-                                      <span class="rightjiange">
141
-                                        <label><input type="radio" name="ball" value="volleyball" />&nbsp;
142
-                                            +3分 非常焦虑激动的:牵拉或拔除管道,容易焦虑不安
143
-                                        </label>
144
-                                      </span>  
145
-                                    </td>
146
-                                </tr>
147
-                                <tr class="bg_color">
148
-                                    <td class='bing'>
149
-                                      <span class="rightjiange" style="position: relative;">
150
-                                        <label><input type="radio" name="ball" value="volleyball" />&nbsp;
151
-                                           <span style="display: inline-block;">-1分</span>
152
-                                           &nbsp;<span style="display: inline-block;position: absolute;top: -8px;width: 430px;">
153
-                                            困倦的昏昏欲睡的,不完全觉醒但能保持觉醒状态,对于声音刺激眼睛可以睁开或有目光接触≥10s
154
-                                           </span>  
155
-                                        </label>
156
-                                      </span>  
157
-                                    </td>
158
-                                    <td class='bing'>
159
-                                      <span class="rightjiange" >
160
-                                        <label><input type="radio" name="ball" value="volleyball" />&nbsp;
161
-                                            +4分 好斗的好战的:过于好斗,有暴力倾向,对医护人员有攻击行为
162
-                                        </label>
163
-                                      </span>  
164
-                                    </td>
165
-                                </tr>
166
-                            </tbody>
167
-                        </table>
69
+                          </tr>
70
+                        </tbody>
71
+                      </table>
168 72
                     </div>
169 73
                 </div>
170 74
                 <div class="content_top" style="margin: 10px 0px;">
171 75
                     <div>
172 76
                         <div class="bottoms">
173 77
                         <span>总分:</span>
174
-                        <el-input v-model="input" placeholder="请输入内容" style="width: 100px;"></el-input>分
78
+                        <el-input v-model="RASS_Totalpoints" style="width: 100px;"></el-input>分
175 79
                         </div>
176 80
 
177 81
                         <div class="bottoms">
@@ -197,7 +101,7 @@
197 101
                                 </el-option>
198 102
                             </el-select>
199 103
                         </div>
200
-                        
104
+
201 105
                     </div>
202 106
                     <div style="margin:5px 10px;">
203 107
                             <el-button type="primary">确认</el-button>
@@ -205,23 +109,23 @@
205 109
                 </div>
206 110
                 <hr style="height:1px;border:none;border-top:1px dashed #DCDFE6;margin-bottom: 10px;"/>
207 111
                 <div style=" font-size: 18px;margin-bottom: 10px;">
208
-                  <span>疼痛评估</span> 
112
+                  <span>疼痛评估</span>
209 113
                 </div>
210 114
                 <div>
211 115
                     <table class="table" border="1" style="width: 100%;">
212 116
                         <thead>
213
-                            <tr>
214
-                                <th style="width: 180px; text-align: left; padding-left: 5px;">疼痛评估工具</th>
215
-                            </tr>
117
+                          <tr>
118
+                            <th style="width: 180px; text-align: left; padding-left: 5px;">疼痛评估工具</th>
119
+                          </tr>
216 120
                         </thead>
217 121
                         <tr>
218
-                            <td>
219
-                                <div class="jiange">
220
-                                    <el-radio-group v-model="radio">
221
-                                        <el-radio v-for="(item,index ) in RassGJ" :label="item" :key="index">{{ item }}</el-radio>
222
-                                    </el-radio-group>
223
-                                </div>
224
-                            </td>
122
+                          <td>
123
+                            <div class="jiange">
124
+                              <el-radio-group v-model="radio">
125
+                                <el-radio v-for="(item,index ) in RassGJ" :label="item" :key="index">{{ item }}</el-radio>
126
+                              </el-radio-group>
127
+                            </div>
128
+                          </td>
225 129
                         </tr>
226 130
                         <tr>
227 131
                             <div style="">
@@ -229,37 +133,37 @@
229 133
                                   <div style="display: flex; height: 160px;align-items: center;">
230 134
                                     <span style="width:38px;height:22px;line-height:22px;margin-left:40px;"></span>
231 135
                                     <div style="flex: 1;height: 22px;position: relative;border-bottom: 2px solid #333; top: -8px;">
232
-                                        <span class="tszs-nrs-tag" style="left:0">
136
+                                        <span :class="NRS_val == 0 ? 'tszs-nrs-tag active' : 'tszs-nrs-tag'" style="left:0" @click="click_NRS(0)">
233 137
                                             <span class="ttpg-nrs-score">0</span>
234 138
                                         </span>
235
-                                        <span class="tszs-nrs-tag" style="left:10%">
139
+                                        <span :class="NRS_val == 1 ? 'tszs-nrs-tag active' : 'tszs-nrs-tag'" style="left:10%" @click="click_NRS(1)">
236 140
                                             <span class="ttpg-nrs-score">1</span>
237 141
                                         </span>
238
-                                        <span class="tszs-nrs-tag" style="left:20%">
142
+                                        <span :class="NRS_val == 2 ? 'tszs-nrs-tag active' : 'tszs-nrs-tag'" style="left:20%" @click="click_NRS(2)">
239 143
                                             <span class="ttpg-nrs-score">2</span>
240 144
                                         </span>
241
-                                        <span class="tszs-nrs-tag" style="left:30%">
145
+                                        <span :class="NRS_val == 3 ? 'tszs-nrs-tag active' : 'tszs-nrs-tag'" style="left:30%" @click="click_NRS(3)">
242 146
                                             <span class="ttpg-nrs-score">3</span>
243 147
                                         </span>
244
-                                        <span class="tszs-nrs-tag" style="left:40%">
148
+                                        <span :class="NRS_val == 4 ? 'tszs-nrs-tag active' : 'tszs-nrs-tag'" style="left:40%" @click="click_NRS(4)">
245 149
                                             <span class="ttpg-nrs-score">4</span>
246 150
                                         </span>
247
-                                        <span class="tszs-nrs-tag" style="left:50%">
151
+                                        <span :class="NRS_val == 5 ? 'tszs-nrs-tag active' : 'tszs-nrs-tag'" style="left:50%" @click="click_NRS(5)">
248 152
                                             <span class="ttpg-nrs-score">5</span>
249 153
                                         </span>
250
-                                        <span class="tszs-nrs-tag" style="left:60%">
154
+                                        <span :class="NRS_val == 6 ? 'tszs-nrs-tag active' : 'tszs-nrs-tag'" style="left:60%" @click="click_NRS(6)">
251 155
                                             <span class="ttpg-nrs-score">6</span>
252 156
                                         </span>
253
-                                        <span class="tszs-nrs-tag" style="left:70%">
157
+                                        <span :class="NRS_val == 7 ? 'tszs-nrs-tag active' : 'tszs-nrs-tag'" style="left:70%" @click="click_NRS(7)">
254 158
                                             <span class="ttpg-nrs-score">7</span>
255 159
                                         </span>
256
-                                        <span class="tszs-nrs-tag" style="left:80%">
160
+                                        <span :class="NRS_val == 8 ? 'tszs-nrs-tag active' : 'tszs-nrs-tag'" style="left:80%" @click="click_NRS(8)">
257 161
                                             <span class="ttpg-nrs-score">8</span>
258 162
                                         </span>
259
-                                        <span class="tszs-nrs-tag" style="left:90%">
163
+                                        <span :class="NRS_val == 9 ? 'tszs-nrs-tag active' : 'tszs-nrs-tag'" style="left:90%" @click="click_NRS(9)">
260 164
                                             <span class="ttpg-nrs-score">9</span>
261 165
                                         </span>
262
-                                        <span class="tszs-nrs-tag" style="right:0 ;">
166
+                                        <span :class="NRS_val == 10 ? 'tszs-nrs-tag active' : 'tszs-nrs-tag'" style="right:0 ;" @click="click_NRS(10)">
263 167
                                             <span class="ttpg-nrs-score">10</span>
264 168
                                         </span>
265 169
                                     </div>
@@ -282,9 +186,10 @@
282 186
                                         <img :src="item.imgs" alt="">
283 187
                                       </div>
284 188
                                       <span>
285
-                                          <input type="radio" value="0"  name="ttpggj-bqf">
286
-                                          <label >{{item.text}}</label>
287
-                                        </span>
189
+                                        <label >
190
+                                        <input type="radio" :value="item.value"  name="ttpggj-bqf" @click="radioclick($event,item.value)">
191
+                                        {{item.text}}</label>
192
+                                      </span>
288 193
                                     </div>
289 194
                                   </div>
290 195
 
@@ -293,37 +198,37 @@
293 198
                                   <div style="display: flex; height: 160px;align-items: center;">
294 199
                                     <span style="width:38px;height:22px;line-height:22px;margin-left:40px;">无痛</span>
295 200
                                     <div style="flex: 1;height: 22px;position: relative;border-bottom: 2px solid #333; top: -8px;">
296
-                                        <span class="tszs-nrs-tag" style="left:0">
201
+                                        <span :class="shijue_val == 0 ? 'tszs-nrs-tag active' : 'tszs-nrs-tag'" style="left:0" @click="clickspan(0)">
297 202
                                             <span class="ttpg-nrs-score">0</span>
298 203
                                         </span>
299
-                                        <span class="tszs-nrs-tag" style="left:10%">
204
+                                        <span :class="shijue_val==1 ? 'tszs-nrs-tag active' : 'tszs-nrs-tag'" style="left:10%" @click="clickspan(1)">
300 205
                                             <span class="ttpg-nrs-score">1</span>
301 206
                                         </span>
302
-                                        <span class="tszs-nrs-tag" style="left:20%">
207
+                                        <span :class="shijue_val==2 ? 'tszs-nrs-tag active' : 'tszs-nrs-tag'" style="left:20%" @click="clickspan(2)">
303 208
                                             <span class="ttpg-nrs-score">2</span>
304 209
                                         </span>
305
-                                        <span class="tszs-nrs-tag" style="left:30%">
210
+                                        <span :class="shijue_val==3 ? 'tszs-nrs-tag active' : 'tszs-nrs-tag'" style="left:30%" @click="clickspan(3)">
306 211
                                             <span class="ttpg-nrs-score">3</span>
307 212
                                         </span>
308
-                                        <span class="tszs-nrs-tag" style="left:40%">
213
+                                        <span :class="shijue_val==4 ? 'tszs-nrs-tag active' : 'tszs-nrs-tag'" style="left:40%" @click="clickspan(4)">
309 214
                                             <span class="ttpg-nrs-score">4</span>
310 215
                                         </span>
311
-                                        <span class="tszs-nrs-tag" style="left:50%">
216
+                                        <span :class="shijue_val==5 ? 'tszs-nrs-tag active' : 'tszs-nrs-tag'" style="left:50%" @click="clickspan(5)">
312 217
                                             <span class="ttpg-nrs-score">5</span>
313 218
                                         </span>
314
-                                        <span class="tszs-nrs-tag" style="left:60%">
219
+                                        <span :class="shijue_val==6 ? 'tszs-nrs-tag active' : 'tszs-nrs-tag'" style="left:60%" @click="clickspan(6)">
315 220
                                             <span class="ttpg-nrs-score">6</span>
316 221
                                         </span>
317
-                                        <span class="tszs-nrs-tag" style="left:70%">
222
+                                        <span :class="shijue_val==7 ? 'tszs-nrs-tag active' : 'tszs-nrs-tag'" style="left:70%" @click="clickspan(7)">
318 223
                                             <span class="ttpg-nrs-score">7</span>
319 224
                                         </span>
320
-                                        <span class="tszs-nrs-tag" style="left:80%">
225
+                                        <span :class="shijue_val==8 ? 'tszs-nrs-tag active' : 'tszs-nrs-tag'" style="left:80%" @click="clickspan(8)">
321 226
                                             <span class="ttpg-nrs-score">8</span>
322 227
                                         </span>
323
-                                        <span class="tszs-nrs-tag" style="left:90%">
228
+                                        <span :class="shijue_val==9 ? 'tszs-nrs-tag active' : 'tszs-nrs-tag'" style="left:90%" @click="clickspan(9)">
324 229
                                             <span class="ttpg-nrs-score">9</span>
325 230
                                         </span>
326
-                                        <span class="tszs-nrs-tag" style="right:0 ;">
231
+                                        <span :class="shijue_val==10 ? 'tszs-nrs-tag active' : 'tszs-nrs-tag'" style="right:0 ;" @click="clickspan(10)">
327 232
                                             <span class="ttpg-nrs-score">10</span>
328 233
                                         </span>
329 234
                                     </div>
@@ -332,20 +237,21 @@
332 237
                                 </div>
333 238
                                 <div style="vertical-align: middle;" v-else-if="radio=='语言描述法'">
334 239
                                     <div style="line-height: 160px;margin: auto;width: 900px;">
335
-                                      <el-radio-group v-model="radio1">
336
-                                        <el-radio v-for="(item,index ) in yuyan" :label="item" :key="index" style="color: black;">{{ item }}</el-radio>
240
+                                      <el-radio-group v-model="radio1" @change="yuyanchange">
241
+                                        <el-radio v-for="(item,index ) in yuyan" :label="item.label" :key="index" style="color: black;" >
242
+                                        </el-radio>
337 243
                                       </el-radio-group>
338 244
                                     </div>
339 245
                                 </div>
340 246
                                 <div style="vertical-align: middle;" v-else-if="radio=='行为学评估量表'">
341
-                                  <behavior></behavior>
247
+                                  <behavior ref="Behavior" @submit="behav"></behavior>
342 248
                                 </div>
343 249
                                 <div style="width: 40%;margin-left: 15%;" v-else-if="radio=='其他'">
344 250
                                     <el-input
345 251
                                         type="textarea"
346 252
                                         :autosize="{minRows: 8, maxRows: 10}"
347 253
                                         placeholder="请输入内容"
348
-                                        
254
+
349 255
                                         v-model="textarea1">
350 256
                                     </el-input>
351 257
                                 </div>
@@ -353,7 +259,7 @@
353 259
                             <div style="margin:0px 0px 10px 10%;">
354 260
                                 <div class="bottoms">
355 261
                                     <span>疼痛评分:</span>
356
-                                    <el-input v-model="input" placeholder="请输入内容" style="width: 100px;"></el-input>分
262
+                                    <el-input v-model="Pain_score" style="width: 100px;"></el-input>分
357 263
                                 </div>
358 264
                                 <div class="bottoms">
359 265
                                     <span>处理后疼痛:</span>
@@ -409,7 +315,7 @@
409 315
                                                 <el-input v-model="input" placeholder="" style="width: 190px;"></el-input>
410 316
                                             </label>
411 317
                                         </div>
412
-                                    </td>                           
318
+                                    </td>
413 319
                                 </tr>
414 320
                                 <tr class="bg_color">
415 321
                                     <td class="start">疼痛对活动影响</td>
@@ -473,8 +379,8 @@
473 379
                                         <label for="">
474 380
                                           <input type="checkbox" name="ball" value="volleyball" />&nbsp;遵医嘱使用
475 381
                                         </label>
476
-                                     </span> 
477
-                                  </td>                    
382
+                                     </span>
383
+                                  </td>
478 384
                                 </tr>
479 385
                                 <tr class="bg_color">
480 386
                                   <td style="padding-left: 16px;">
@@ -482,8 +388,8 @@
482 388
                                       <label for="">
483 389
                                         <input type="checkbox" name="ball" value="volleyball" />&nbsp;静脉镇痛
484 390
                                       </label>
485
-                                    </span> 
486
-                                  </td>    
391
+                                    </span>
392
+                                  </td>
487 393
                                 </tr>
488 394
                                 <tr>
489 395
                                   <td style="padding-left: 16px;">
@@ -491,8 +397,8 @@
491 397
                                       <label for="">
492 398
                                         <input type="checkbox" name="ball" value="volleyball" />&nbsp;阿片类药物非自控镇痛给药
493 399
                                       </label>
494
-                                    </span> 
495
-                                  </td>    
400
+                                    </span>
401
+                                  </td>
496 402
                                 </tr>
497 403
                                 <tr class="bg_color">
498 404
                                   <td style="padding-left: 16px;">
@@ -500,7 +406,7 @@
500 406
                                       <label for="">
501 407
                                         <input type="checkbox" name="ball" value="volleyball" />&nbsp;硬膜外镇痛
502 408
                                       </label>
503
-                                    </span> 
409
+                                    </span>
504 410
                                   </td>
505 411
                                 </tr>
506 412
                                 <tr>
@@ -509,7 +415,7 @@
509 415
                                       <label for="">
510 416
                                         <input type="checkbox" name="ball" value="volleyball" />&nbsp;神经阻滞镇痛
511 417
                                       </label>
512
-                                    </span> 
418
+                                    </span>
513 419
                                   </td>
514 420
                                 </tr>
515 421
                             </tbody>
@@ -550,7 +456,7 @@
550 456
 
551 457
             </div>
552 458
         </div>
553
-        
459
+
554 460
     </div>
555 461
 </template>
556 462
 <script>
@@ -570,12 +476,30 @@ export default {
570 476
             value1:'',
571 477
             value:'',
572 478
             textarea1:'',
479
+            radio_val:null,
480
+            yuyan_val:null,
573 481
             options:[],
482
+            RASS_Totalpoints:'',
483
+            behav_val:null,
484
+            // shijue:'',
485
+            shijue_val:null,
486
+            NRS_val:null,
487
+            // Pain_score:0
488
+            LOS:[{title:'0分', value:'清醒'},{title:'1分', value:'有些昏昏欲睡,但容易唤醒'},
489
+                  {title:'2分', value:'频繁发生昏昏欲睡,容易唤醒,但不能持续处于觉醒状态'},
490
+                  {title:'3分', value:'无意识,无法唤醒'},{title:'S分', value:'正常意识,容易唤醒'}
491
+                ],
492
+            RASS:[{title:'-5分', value:'无法唤醒,对声音或物理刺激均无反应',title2:'0分', value2:'警觉的平静的'},
493
+                  {title:'-4分', value:'深度镇静,对声音刺激无反应,但对物理刺激有运动或睁眼反应',title2:'+1分', value2:'不安的焦虑的:焦虑但无强烈的攻击行为'},
494
+                  {title:'-3分', value:'中度镇静,对声音刺激有活动或睁眼动作(但无目光接触)',title2:'+2分', value2:'焦虑的激动的:经常性的无目的活动,人机对抗'},
495
+                  {title:'-2分', value:'轻度镇静,对于声音刺激可以有简短的目光接触的觉醒,<10s',title2:'+3分', value2:'非常焦虑激动的:牵拉或拔除管道,容易焦虑不安'},
496
+                  {title:'-1分', value:'困倦的昏昏欲睡的,不完全觉醒但能保持觉醒状态,对于声音刺激眼睛可以睁开或有目光接触≥10s',title2:'+4分', value2:'好斗的好战的:过于好斗,有暴力倾向,对医护人员有攻击行为'},
497
+                ],
574 498
             RassGJ:['NRS','表情法','视觉模拟法','语言描述法','行为学评估量表','其他'],
575
-            yuyan:['0无痛','1微痛','2一般','4中度疼痛','6中重度疼痛','8重度疼痛','10无法忍受'],
576
-            biaoqing:[{imgs:require('@/assets/evaluate/a.png'),text:'无疼痛'},{imgs:require('@/assets/evaluate/b.png'),text:'有一点疼痛'},
577
-                      {imgs:require('@/assets/evaluate/c.png'),text:'轻微疼痛'},{imgs:require('@/assets/evaluate/d.png'),text:'疼痛明显'},
578
-                      {imgs:require('@/assets/evaluate/e.png'),text:'疼痛较严重'},{imgs:require('@/assets/evaluate/f.png'),text:'剧烈疼痛'},
499
+            yuyan:[{label:'0无痛',value:0},{label:'1微痛',value:1},{label:'2一般',value:2},{label:'4中度疼痛',value:4},{label:'6中重度疼痛',value:6},{label:'8重度疼痛',value:8},{label:'10无法忍受',value:10}],
500
+            biaoqing:[{imgs:require('@/assets/evaluate/a.png'),text:'无疼痛',value:0},{imgs:require('@/assets/evaluate/b.png'),text:'有一点疼痛',value:2},
501
+                      {imgs:require('@/assets/evaluate/c.png'),text:'轻微疼痛',value:4},{imgs:require('@/assets/evaluate/d.png'),text:'疼痛明显',value:6},
502
+                      {imgs:require('@/assets/evaluate/e.png'),text:'疼痛较严重',value:8},{imgs:require('@/assets/evaluate/f.png'),text:'剧烈疼痛',value:10},
579 503
                     ],
580 504
             xingzhi:['宫缩痛','持续固定痛','跳痛','刺痛','刀割痛','锐痛',
581 505
                      '痉挛痛','绞痛','热灼痛','撕裂痛','钻顶样痛','触痛',
@@ -591,14 +515,80 @@ export default {
591 515
         console.log('asdfasdfasdfasssdfas',this.radio);
592 516
     },
593 517
     methods:{
518
+      handleCheckedCitiesChange(e){
519
+        console.log('11111',e.target.value);
520
+        const lent = this.LOS
521
+        const len = this.RASS
522
+        for(let i=0;i<lent.length;i++){
523
+          if(e.target.value == lent[i].value ){
524
+            this.RASS_Totalpoints=lent[i].title.split('分')[0]
525
+          }
526
+        }
527
+        for(let y=0;y<len.length;y++){
528
+          if(e.target.value == len[y].value ){
529
+            console.log('2222',len[y].title.split('分')[0]);
530
+            this.RASS_Totalpoints = len[y].title.split('分')[0]
531
+          }
532
+          if(e.target.value == len[y].value2 ){
533
+            this.RASS_Totalpoints = len[y].title2.split('分')[0]
534
+          }
535
+        }
536
+      },
537
+      radioclick(e,val){
538
+        if(e.target.checked == true){
539
+          this.radio_val =val
540
+        }
541
+      },
542
+      yuyanchange(e){
543
+        console.log('11111',e);
544
+        console.log('22222',this.radio1);
545
+        const yuyan =e.replace(/[^\d]/g, " ");
546
+        if(e == this.radio1){
547
+          this.yuyan_val = yuyan
548
+        }
594 549
 
550
+      },
551
+      behav(data){
552
+        this.behav_val = data
553
+      },
554
+      clickspan(val){
555
+        console.log('00000',this.shijue);
556
+        // this.shijue = val
557
+        this.shijue_val =val
558
+        console.log('00000',val);
559
+         
560
+      },
561
+      click_NRS(val){
562
+        this.NRS_val = val
563
+      }
564
+    },
565
+    computed:{
566
+      Pain_score(){
567
+        // for(let i=0;i<this.RassGJ.length;i++){
568
+          // if()
569
+        // }
570
+        if(this.radio == 'NRS'){
571
+          return this.NRS_val
572
+        }
573
+        else if(this.radio == '表情法'){
574
+          return this.radio_val
575
+        }else if(this.radio == '视觉模拟法' ){
576
+          return this.shijue_val
577
+        }else if(this.radio == '语言描述法' ){
578
+          return this.yuyan_val
579
+        }else if(this.radio == '行为学评估量表'){
580
+          return this.behav_val
581
+          // this.$refs.behavior.getTotalpoints()
582
+        }
583
+        
584
+      }
595 585
     }
596 586
 }
597 587
 </script>
598 588
 <style lang="scss" scoped>
599 589
     .content_top{
600 590
       display: flex;
601
-      justify-content: space-between; 
591
+      justify-content: space-between;
602 592
     }
603 593
     .table{
604 594
         border: 1px solid #DCDFE6;
@@ -644,13 +634,13 @@ export default {
644 634
     .bottoms{
645 635
         display: inline-block;
646 636
         margin-left: 10px;
647
-        margin-top: 5px; 
637
+        margin-top: 5px;
648 638
     }
649 639
     .biaotou{
650 640
       font-size: 18px;
651 641
       margin-bottom: 10px;
652 642
       color: #0077ff9f;
653
-      
643
+
654 644
       // background-color: '#409eff';
655 645
     }
656 646
     .ttpg-nrs-score {
@@ -671,5 +661,8 @@ export default {
671 661
     position: absolute;
672 662
     top: 13px;
673 663
     cursor: pointer;
674
-}
675
-</style>
664
+  }
665
+  .active{
666
+    background: #f8c409;
667
+  }
668
+</style>

+ 336 - 432
src/xt_pages/user/evaluationtool/behavior.vue View File

@@ -7,439 +7,180 @@
7 7
       </div>
8 8
       <div>
9 9
         <div v-if="radio == '成人量表'">
10
-            <table border="1" class="table">
11
-                <thead>
12
-                    <tr>
13
-                        <td>无法配合完成护理评估成人量表</td>
14
-                        <td>0</td>
15
-                        <td>1</td>
16
-                        <td>2</td>
17
-                    </tr>
18
-                </thead>
19
-                <tbody>
20
-                    <tr class="bg_color">
21
-                        <td>
22
-                            1、脸部肌肉/表情
23
-                        </td>
24
-                        <td>
25
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp; 脸部肌肉放松</label>
26
-                        </td>
27
-                        <td>
28
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp; 脸部肌肉紧张、皱眉,脸部肌肉扭曲</label>
29
-                        </td>
30
-                        <td>
31
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp; 经常或一直皱眉、咬紧牙床</label>
32
-                        </td>
33
-                    </tr>
34
-                    <tr class="">
35
-                        <td>
36
-                            2、休息
37
-                        </td>
38
-                        <td>
39
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
40
-                            安静、表情安详,肢体活动正常
41
-                          </label>
42
-                        </td>
43
-                        <td>
44
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
45
-                            偶然有些休息不好,或改变体位
46
-                        </label>
47
-                        </td>
48
-                        <td>
49
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
50
-                            躁动不安,无法休息;频繁改变休息体位
51
-                          </label>
52
-                        </td>
53
-                    </tr>
54
-                    <tr class="bg_color">
55
-                        <td>
56
-                            3、肌紧张 
57
-                        </td>
58
-                        <td>
59
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
60
-                            肌张力正常,肌肉放松
61
-                        </label>
62
-                        </td>
63
-                        <td>
64
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
65
-                            肌张力增加,手指或脚趾屈曲
66
-                        </label>
67
-                        </td>
68
-                        <td>
69
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp; 肌肉僵硬</label>
70
-                        </td>
71
-                    </tr>
72
-                    <tr class="">
73
-                        <td>
74
-                            4、发声
75
-                        </td>
76
-                        <td>
77
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
78
-                            无异声发声
79
-                          </label>
80
-                        </td>
81
-                        <td>
82
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
83
-                            偶尔发出呻吟,哼声,哭泣或啜泣
84
-                        </label>
85
-                        </td>
86
-                        <td>
87
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
88
-                           频繁或持续地发出呻吟,哼声,哭泣或啜泣
89
-                          </label>
90
-                        </td>
91
-                    </tr>
92
-                    <tr class="bg_color">
93
-                        <td>
94
-                            5、安抚
95
-                        </td>
96
-                        <td>
97
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
98
-                            满足的,放松的
99
-                        </label>
100
-                        </td>
101
-                        <td>
102
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
103
-                            通过谈话或分散注意力得到了安抚
104
-                        </label>
105
-                        </td>
106
-                        <td>
107
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
108
-                            很难通过抚摸或谈话得到安抚
109
-                        </label>
110
-                        </td>
111
-                    </tr>
112
-                </tbody>
113
-            </table>
10
+          <table border="1" class="table">
11
+            <thead>
12
+              <tr>
13
+                <td>无法配合完成护理评估成人量表</td>
14
+                <td>0</td>
15
+                <td>1</td>
16
+                <td>2</td>
17
+              </tr>
18
+            </thead>
19
+            <tbody>
20
+              <tr class="bg_color">
21
+                <td>1、脸部肌肉/表情</td>
22
+                <td v-for="(item,index) in chengr_face" :key="index">
23
+                  <el-radio v-model="radio_crface" :label="item.value" @change="chengrface">{{ item.label }}</el-radio>
24
+                </td>
25
+              </tr>
26
+              <tr class="">
27
+                <td>2、休息</td>
28
+                <td v-for="(item,index) in chengr_rest" :key="index">
29
+                  <el-radio v-model="radio_crrest" :label="item.value" @change="chengrface">{{ item.label }}</el-radio>
30
+                </td>
31
+              </tr>
32
+              <tr class="bg_color">
33
+                <td>3、肌紧张 </td>
34
+                <td v-for="(item,index) in chengr_jijinz" :key="index">
35
+                  <el-radio v-model="radio_crjijinz" :label="item.value" @change="chengrface">{{ item.label }}</el-radio>
36
+                </td>
37
+              </tr>
38
+              <tr class="">
39
+                <td>4、发声</td>
40
+                <td v-for="(item,index) in chengr_fasheng" :key="index">
41
+                  <el-radio v-model="radio_fasheng" :label="item.value" @change="chengrface">{{ item.label }}</el-radio>
42
+                </td>
43
+              </tr>
44
+              <tr class="bg_color">
45
+                <td>5、安抚</td>
46
+                <td v-for="(item,index) in chengr_anfu" :key="index">
47
+                  <el-radio v-model="radio_anfu" :label="item.value" @change="chengrface">{{ item.label }}</el-radio>
48
+                </td>
49
+              </tr>
50
+            </tbody>
51
+          </table>
114 52
         </div>
115 53
         <div v-if="radio == '老年痴呆症量表'">
116
-            <table border="1" class="table">
117
-                <thead>
118
-                    <tr>
119
-                        <td>老年痴呆症疼痛估量表</td>
120
-                        <td>0</td>
121
-                        <td>1</td>
122
-                        <td>2</td>
123
-                    </tr>
124
-                </thead>
125
-                <tbody>
126
-                    <tr class="bg_color">
127
-                        <td>
128
-                            1、呼吸
129
-                        </td>
130
-                        <td>
131
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp; 正常</label>
132
-                        </td>
133
-                        <td>
134
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp; 偶尔呼吸困难,短时期的换气过度</label>
135
-                        </td>
136
-                        <td>
137
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
138
-                            呼吸困难,要发出吵闹声响,长时期的换气过度,Cheyne-Strokes呼吸
139
-                        </label>
140
-                        </td>
141
-                    </tr>
142
-                    <tr class="">
143
-                        <td>
144
-                            2、负面声音表达
145
-                        </td>
146
-                        <td>
147
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
148
-                            无异常发声
149
-                          </label>
150
-                        </td>
151
-                        <td>
152
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
153
-                            偶尔呻吟,哼声,哭泣;低沉的声音带有负面语气
154
-                        </label>
155
-                        </td>
156
-                        <td>
157
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
158
-                            频繁或持续地、重复性的叫嚷,大声呻吟,哭泣
159
-                          </label>
160
-                        </td>
161
-                    </tr>
162
-                    <tr class="bg_color">
163
-                        <td>
164
-                            3、面部表情
165
-                        </td>
166
-                        <td>
167
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
168
-                            微笑,无特殊表情
169
-                        </label>
170
-                        </td>
171
-                        <td>
172
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
173
-                            脸部肌肉紧张,皱眉;难过,恐惧
174
-                        </label>
175
-                        </td>
176
-                        <td>
177
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
178
-                            经常或一直皱眉,愁眉苦脸
179
-                        </label>
180
-                        </td>
181
-                    </tr>
182
-                    <tr class="">
183
-                        <td>
184
-                            4、身体语言
185
-                        </td>
186
-                        <td>
187
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
188
-                            放松或保持正常的姿势
189
-                          </label>
190
-                        </td>
191
-                        <td>
192
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
193
-                            肌张力紧张,绷紧,紧张步伐,坐立不安
194
-                        </label>
195
-                        </td>
196
-                        <td>
197
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
198
-                            肌肉僵硬,紧握拳头,膝盖提起,拉扯或推开,推攘
199
-                          </label>
200
-                        </td>
201
-                    </tr>
202
-                    <tr class="bg_color">
203
-                        <td>
204
-                            5、可安抚程度
205
-                        </td>
206
-                        <td>
207
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
208
-                            满足的,放松的
209
-                        </label>
210
-                        </td>
211
-                        <td>
212
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
213
-                            通过谈话、分散注意力或触摸
214
-                        </label>
215
-                        </td>
216
-                        <td>
217
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
218
-                            通过分散注意力或触摸、安慰,也不可安抚患者
219
-                        </label>
220
-                        </td>
221
-                    </tr>
222
-                </tbody>
223
-            </table>
54
+          <table border="1" class="table">
55
+            <thead>
56
+              <tr>
57
+                <td>老年痴呆症疼痛估量表</td>
58
+                <td>0</td>
59
+                <td>1</td>
60
+                <td>2</td>
61
+              </tr>
62
+            </thead>
63
+            <tbody>
64
+              <tr class="bg_color">
65
+                <td>1、呼吸</td>
66
+                <td v-for="(item,index) in laor_huxi" :key="index">
67
+                  <el-radio v-model="radio_lrhuxi" :label="item.value" @change="laorhuxi">{{ item.label }}</el-radio>
68
+                </td>
69
+              </tr>
70
+              <tr class="">
71
+                <td>2、负面声音表达</td>
72
+                <td v-for="(item,index) in laor_fumian" :key="index">
73
+                  <el-radio v-model="radio_lrfumian" :label="item.value" @change="laorhuxi">{{ item.label }}</el-radio>
74
+                </td>
75
+              </tr>
76
+              <tr class="bg_color">
77
+                <td>3、面部表情</td>
78
+                <td v-for="(item,index) in laor_mianbu" :key="index">
79
+                  <el-radio v-model="radio_lrmianbu" :label="item.value" @change="laorhuxi">{{ item.label }}</el-radio>
80
+                </td>
81
+              </tr>
82
+              <tr class="">
83
+                <td>4、身体语言</td>
84
+                <td v-for="(item,index) in laor_shengti" :key="index">
85
+                  <el-radio v-model="radio_lrshengti" :label="item.value" @change="laorhuxi">{{ item.label }}</el-radio>
86
+                </td>
87
+              </tr>
88
+              <tr class="bg_color">
89
+                <td>5、可安抚程度</td>
90
+                <td v-for="(item,index) in laor_keanfu" :key="index">
91
+                  <el-radio v-model="radio_lrkeanfu" :label="item.value" @change="laorhuxi">{{ item.label }}</el-radio>
92
+                </td>
93
+              </tr>
94
+            </tbody>
95
+          </table>
224 96
         </div>
225 97
         <div v-if="radio == '重症患者量表'">
226
-            <table border="1" class="table">
227
-                <thead>
228
-                    <tr>
229
-                        <td>重症监护患者疼痛观察量表</td>
230
-                        <td>0</td>
231
-                        <td>1</td>
232
-                        <td>2</td>
233
-                    </tr>
234
-                </thead>
235
-                <tbody>
236
-                    <tr class="bg_color">
237
-                        <td>
238
-                            1、面部表情
239
-                        </td>
240
-                        <td>
241
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp; 脸部肌肉放松</label>
242
-                        </td>
243
-                        <td>
244
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp; 脸部肌肉紧张、皱眉,眼轮匝肌紧固</label>
245
-                        </td>
246
-                        <td>
247
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
248
-                            经常或一直皱眉、眼轮匝肌紧固、眼部紧闭,呈痛苦面容
249
-                        </label>
250
-                        </td>
251
-                    </tr>
252
-                    <tr class="">
253
-                        <td>
254
-                            2、身体运动
255
-                        </td>
256
-                        <td>
257
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
258
-                            完全无运动(无运动)
259
-                          </label>
260
-                        </td>
261
-                        <td>
262
-                            <span style="">
263
-                                <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
264
-                                    <span style="">
265
-                                    缓慢地运动、触摸痛点、通过运动寻求帮助(保护性运动)</span>
266
-                                </label>
267
-                            </span>
268
-                        </td>
269
-                        <td>
270
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
271
-                            拽管、试图坐起、捶打,撞击床位、试图下床、烦躁不安
272
-                          </label>
273
-                        </td>
274
-                    </tr>
275
-                    <tr class="bg_color">
276
-                        <td>
277
-                            3、肌紧张(对上肢被动屈伸的评估)
278
-                        </td>
279
-                        <td>
280
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
281
-                            对被动运动无抵抗(放松)
282
-                        </label>
283
-                        </td>
284
-                        <td>
285
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
286
-                            对被动运动有抵抗紧张(僵硬)
287
-                        </label>
288
-                        </td>
289
-                        <td>
290
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
291
-                            对被动运动强烈抵抗并不能停止(非常紧张、僵硬)
292
-                        </label>
293
-                        </td>
294
-                    </tr>
295
-                    <tr class="">
296
-                        <td>
297
-                            4、机械通气的顺应(插管患者)
298
-                        </td>
299
-                        <td>
300
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
301
-                            未报警,机械通气顺畅(可耐受机械通气或转移)
302
-                          </label>
303
-                        </td>
304
-                        <td>
305
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
306
-                            自主呼吸报警(呛咳但可耐受)
307
-                        </label>
308
-                        </td>
309
-                        <td>
310
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
311
-                            与呼吸机不同步,抵抗机械通气,频繁报警(抵偿机械通气)
312
-                          </label>
313
-                        </td>
314
-                    </tr>
315
-                    <tr class="bg_color">
316
-                        <td>
317
-                            5、发声(未插管患者)
318
-                        </td>
319
-                        <td>
320
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
321
-                            无异常发声
322
-                        </label>
323
-                        </td>
324
-                        <td>
325
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
326
-                            偶尔发出呻吟,哼声,哭泣或啜泣
327
-                        </label>
328
-                        </td>
329
-                        <td>
330
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
331
-                            频繁或持续地发出呻吟,哼声,哭泣或啜泣
332
-                        </label>
333
-                        </td>
334
-                    </tr>
335
-                </tbody>
336
-            </table>
98
+          <table border="1" class="table">
99
+            <thead>
100
+              <tr>
101
+                <td>重症监护患者疼痛观察量表</td>
102
+                <td>0</td>
103
+                <td>1</td>
104
+                <td>2</td>
105
+              </tr>
106
+            </thead>
107
+            <tbody>
108
+              <tr class="bg_color">
109
+                <td>1、面部表情</td>
110
+                <td v-for="(item,index) in zhongzhen_mianbu" :key="index">
111
+                  <el-radio v-model="radio_zzmianbu" :label="item.value" @change="zhongzheng">{{ item.label }}</el-radio>
112
+                </td>
113
+              </tr>
114
+              <tr class="">
115
+                <td>2、身体运动</td>
116
+                <td v-for="(item,index) in zhongzhen_shengti" :key="index">
117
+                  <el-radio v-model="radio_zzshengti" :label="item.value" @change="zhongzheng">{{ item.label }}</el-radio>
118
+                </td>
119
+              </tr>
120
+              <tr class="bg_color">
121
+                <td>3、肌紧张(对上肢被动屈伸的评估)</td>
122
+                <td v-for="(item,index) in zhongzhen_jjinz" :key="index">
123
+                  <el-radio v-model="radio_zzjjinz" :label="item.value" @change="zhongzheng">{{ item.label }}</el-radio>
124
+                </td>
125
+              </tr>
126
+              <tr class="">
127
+                <td>4、机械通气的顺应(插管患者)</td>
128
+                <td v-for="(item,index) in zhongzhen_jixie" :key="index">
129
+                  <el-radio v-model="radio_zzjixie" :label="item.value" @change="zhongzheng">{{ item.label }}</el-radio>
130
+                </td>
131
+              </tr>
132
+              <tr class="bg_color">
133
+                <td>5、发声(未插管患者)</td>
134
+                <td v-for="(item,index) in zhongzhen_fashen" :key="index">
135
+                  <el-radio v-model="radio_zzfasheng" :label="item.value" @change="zhongzheng">{{ item.label }}</el-radio>
136
+                </td>
137
+              </tr>
138
+            </tbody>
139
+          </table>
337 140
         </div>
338 141
         <div v-if="radio == '2月-7岁患者量表'">
339
-            <table border="1" class="table">
340
-                <thead>
341
-                    <tr>
342
-                        <td>2月-7岁患儿疼痛评估量表</td>
343
-                        <td>0</td>
344
-                        <td>1</td>
345
-                        <td>2</td>
346
-                    </tr>
347
-                </thead>
348
-                <tbody>
349
-                    <tr class="bg_color">
350
-                        <td>
351
-                            1、Face(脸)
352
-                        </td>
353
-                        <td>
354
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp; 微笑无特殊表情</label>
355
-                        </td>
356
-                        <td>
357
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp; 偶尔出现痛苦表情、皱眉、不愿交流</label>
358
-                        </td>
359
-                        <td>
360
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp; 经常或持续出现下颚颤抖或紧咬下颚</label>
361
-                        </td>
362
-                    </tr>
363
-                    <tr class="">
364
-                        <td>
365
-                            2、Leg(腿)
366
-                        </td>
367
-                        <td>
368
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
369
-                            放松或保持平常的姿势
370
-                          </label>
371
-                        </td>
372
-                        <td>
373
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
374
-                            不安,紧张,持续于不舒服姿势
375
-                        </label>
376
-                        </td>
377
-                        <td>
378
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
379
-                            踢腿或腿部拖动
380
-                          </label>
381
-                        </td>
382
-                    </tr>
383
-                    <tr class="bg_color">
384
-                        <td>
385
-                            3、Activity(活动度)
386
-                        </td>
387
-                        <td>
388
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
389
-                            安静躺着,正常体位或轻松活动
390
-                        </label>
391
-                        </td>
392
-                        <td>
393
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
394
-                            扭动、翻来覆去、紧张
395
-                        </label>
396
-                        </td>
397
-                        <td>
398
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp; 身体痉挛,呈成弓形,僵硬</label>
399
-                        </td>
400
-                    </tr>
401
-                    <tr class="">
402
-                        <td>
403
-                            4、Cry(哭闹)
404
-                        </td>
405
-                        <td>
406
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
407
-                           不哭
408
-                          </label>
409
-                        </td>
410
-                        <td>
411
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
412
-                            呻吟声,啜泣,偶尔诉痛
413
-                        </label>
414
-                        </td>
415
-                        <td>
416
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
417
-                            一直哭泣,尖叫,经常诉痛
418
-                          </label>
419
-                        </td>
420
-                    </tr>
421
-                    <tr class="bg_color">
422
-                        <td>
423
-                            5、Consolability(可安慰性)
424
-                        </td>
425
-                        <td>
426
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
427
-                            满足,放松
428
-                        </label>
429
-                        </td>
430
-                        <td>
431
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
432
-                            通过抚摸拥抱和语言可以被安慰
433
-                        </label>
434
-                        </td>
435
-                        <td>
436
-                          <label for=""><input type="radio" name="ball" value="volleyball">&nbsp;
437
-                            难于被安慰
438
-                        </label>
439
-                        </td>
440
-                    </tr>
441
-                </tbody>
442
-            </table>
142
+          <table border="1" class="table">
143
+            <thead>
144
+              <tr>
145
+                <td>2月-7岁患儿疼痛评估量表</td>
146
+                <td>0</td>
147
+                <td>1</td>
148
+                <td>2</td>
149
+              </tr>
150
+            </thead>
151
+            <tbody>
152
+              <tr class="bg_color">
153
+                <td>1、Face(脸)</td>
154
+                <td v-for="(item,index) in huanz_face" :key="index">
155
+                  <el-radio v-model="radio_hzface" :label="item.value" @change="huanzhe">{{ item.label }}</el-radio>
156
+                </td>
157
+              </tr>
158
+              <tr class="">
159
+                <td>2、Leg(腿)</td>
160
+                <td v-for="(item,index) in huanz_leg" :key="index">
161
+                  <el-radio v-model="radio_hzleg" :label="item.value" @change="huanzhe">{{ item.label }}</el-radio>
162
+                </td>
163
+              </tr>
164
+              <tr class="bg_color">
165
+                <td>3、Activity(活动度)</td>
166
+                <td v-for="(item,index) in huanz_activ" :key="index">
167
+                  <el-radio v-model="radio_hzactiv" :label="item.value" @change="huanzhe">{{ item.label }}</el-radio>
168
+                </td>
169
+              </tr>
170
+              <tr class="">
171
+                <td>4、Cry(哭闹)</td>
172
+                <td v-for="(item,index) in huanz_cry" :key="index">
173
+                  <el-radio v-model="radio_hzcry" :label="item.value" @change="huanzhe">{{ item.label }}</el-radio>
174
+                </td>
175
+              </tr>
176
+              <tr class="bg_color">
177
+                <td>5、Consolability(可安慰性)</td>
178
+                <td v-for="(item,index) in huanz_consola" :key="index">
179
+                  <el-radio v-model="radio_hzcon" :label="item.value" @change="huanzhe">{{ item.label }}</el-radio>
180
+                </td>
181
+              </tr>
182
+            </tbody>
183
+          </table>
443 184
         </div>
444 185
       </div>
445 186
     </div>
@@ -447,12 +188,175 @@
447 188
 
448 189
 <script>
449 190
 export default{
450
-    data(){
451
-        return{
452
-            radio:'成人量表',
453
-            xingwei:['成人量表','老年痴呆症量表','重症患者量表','2月-7岁患者量表']
454
-        }
191
+  data(){
192
+    return{
193
+      radio:'成人量表',
194
+      radio_crface:'',
195
+      radio_crrest:'',
196
+      radio_crjijinz:'',
197
+      radio_fasheng:'',
198
+      radio_anfu:'',
199
+
200
+      radio_lrhuxi:'',
201
+      radio_lrfumian:'',
202
+      radio_lrmianbu:'',
203
+      radio_lrshengti:'',
204
+      radio_lrkeanfu:'',
205
+
206
+      radio_zzmianbu:'',
207
+      radio_zzshengti:'',
208
+      radio_zzjjinz:'',
209
+      radio_zzjixie:'',
210
+      radio_zzfasheng:'',
211
+
212
+      radio_hzface:'',
213
+      radio_hzleg:'',
214
+      radio_hzactiv:'',
215
+      radio_hzcry:'',
216
+      radio_hzcon:'',
217
+
218
+      xingwei:['成人量表','老年痴呆症量表','重症患者量表','2月-7岁患者量表'],
219
+      chengr_face:[{label:'脸部肌肉放松',value:0,name:'face'},{label:'脸部肌肉紧张、皱眉,脸部肌肉扭曲',value:1,name:'face'},{label:'经常或一直皱眉、咬紧牙床',value:2,name:'face'}],
220
+      chengr_rest:[{label:'安静、表情安详,肢体活动正常',value:0,name:'rest'},{label:'偶然有些休息不好,或改变体位',value:1,name:'rest'},{label:'躁动不安,无法休息;频繁改变休息体位',value:2,name:'rest'}],
221
+      chengr_jijinz:[{label:'肌张力正常,肌肉放松',value:0,name:'jinzhang'},{label:'肌张力增加,手指或脚趾屈曲',value:1,name:'jinzhang'},{label:'肌肉僵硬',value:2,name:'jinzhang'}],
222
+      chengr_fasheng:[{label:'无异声发声',value:0,name:'fasheng'},{label:'偶尔发出呻吟,哼声,哭泣或啜泣',value:1,name:'fasheng'},{label:'频繁或持续地发出呻吟,哼声,哭泣或啜泣',value:2,name:'fasheng'}],
223
+      chengr_anfu:[{label:' 满足的,放松的',value:0,name:'anfu'},{label:'通过谈话或分散注意力得到了安抚',value:1,name:'anfu'},{label:'很难通过抚摸或谈话得到安抚',value:2,name:'anfu'}],
224
+
225
+      laor_huxi:[{label:'正常',value:0},{label:'偶尔呼吸困难,短时期的换气过度',value:1},
226
+                {label:'呼吸困难,要发出吵闹声响,长时期的换气过度,Cheyne-Strokes呼吸',value:2}],
227
+      laor_fumian:[{label:'无异常发声',value:0},{label:'偶尔呻吟,哼声,哭泣;低沉的声音带有负面语气',value:1},
228
+                  {label:'频繁或持续地、重复性的叫嚷,大声呻吟,哭泣',value:2}],
229
+      laor_mianbu:[{label:'微笑,无特殊表情',value:0},{label:' 脸部肌肉紧张,皱眉;难过,恐惧',value:1},{label:'经常或一直皱眉,愁眉苦脸',value:2}],
230
+      laor_shengti:[{label:'放松或保持正常的姿势	',value:0},{label:'肌张力紧张,绷紧,紧张步伐,坐立不安',value:1},
231
+                  {label:'肌肉僵硬,紧握拳头,膝盖提起,拉扯或推开,推攘',value:2}],
232
+      laor_keanfu:[{label:'满足的,放松的',value:0},{label:'通过谈话、分散注意力或触摸',value:1},
233
+                {label:'通过分散注意力或触摸、安慰,也不可安抚患者',value:2}],
234
+
235
+      zhongzhen_mianbu:[{label:'脸部肌肉放松',value:0},{label:'脸部肌肉紧张、皱眉,眼轮匝肌紧固',value:1},
236
+                        {label:'经常或一直皱眉、眼轮匝肌紧固、眼部紧闭,呈痛苦面容',value:2}],
237
+      zhongzhen_shengti:[{label:'完全无运动(无运动)',value:0},{label:'缓慢地运动、触摸痛点、通过运动寻求帮助(保护性运动)',value:1},
238
+                          {label:'拽管、试图坐起、捶打,撞击床位、试图下床、烦躁不安',value:2}],
239
+      zhongzhen_jjinz:[{label:'对被动运动无抵抗(放松)',value:0},{label:'对被动运动有抵抗紧张(僵硬)',value:1},
240
+                      {label:'对被动运动强烈抵抗并不能停止(非常紧张、僵硬)',value:2}],
241
+      zhongzhen_jixie:[{label:'未报警,机械通气顺畅(可耐受机械通气或转移)',value:0},{label:'自主呼吸报警(呛咳但可耐受)',value:1},
242
+                      {label:'与呼吸机不同步,抵抗机械通气,频繁报警(抵偿机械通气)',value:2}],
243
+      zhongzhen_fashen:[{label:'无异常发声',value:0},{label:'偶尔发出呻吟,哼声,哭泣或啜泣',value:1},
244
+                        {label:'频繁或持续地发出呻吟,哼声,哭泣或啜泣',value:2}],
245
+
246
+      huanz_face:[{label:'微笑无特殊表情',value:0},{label:'偶尔出现痛苦表情、皱眉、不愿交流',value:1},
247
+                  {label:'经常或持续出现下颚颤抖或紧咬下颚',value:2}],
248
+      huanz_leg:[{label:'放松或保持平常的姿势',value:0},{label:'不安,紧张,持续于不舒服姿势',value:1},{label:'踢腿或腿部拖动',value:2}],
249
+      huanz_activ:[{label:'安静躺着,正常体位或轻松活动',value:0},{label:'扭动、翻来覆去、紧张',value:1},{label:' 身体痉挛,呈成弓形,僵硬',value:2}],
250
+      huanz_cry:[{label:'不哭',value:0},{label:'呻吟声,啜泣,偶尔诉痛',value:1},{label:'一直哭泣,尖叫,经常诉痛',value:2}],
251
+      huanz_consola:[{label:'满足,放松',value:0},{label:'通过抚摸拥抱和语言可以被安慰',value:1},{label:'难于被安慰',value:2}],
252
+      face_val:0,
253
+      rest_val:0,
254
+      jijinz_val:0,
255
+      fasheng_val:0,
256
+      anfu_val:0,
257
+
258
+      huxi_val:0,
259
+      fumian_val:0,
260
+      mianbu_val:0,
261
+      shengti_val:0,
262
+      keanfu_val:0,
263
+      
264
+      zzmian_val:0,
265
+      zzshengti_val:0,
266
+      zzjjinz_val:0,
267
+      zzjixie_val:0,
268
+      zzfasheng_val:0,
269
+
270
+      hzface_val:0,
271
+      hzleg_val:0,
272
+      hzactiv_val:0,
273
+      hzcry_val:0,
274
+      hzcon_val:0,
275
+      Totalpoints:0,
276
+    }
277
+  },
278
+  methods:{
279
+    chengrface(e){
280
+      // console.log('1111',this.radio_crface,e);
281
+      if(e == this.radio_crface){
282
+        this.face_val = e
283
+      }if(e == this.radio_crrest){
284
+        this.rest_val = e
285
+      }if(e == this.radio_crjijinz){
286
+        this.jijinz_val = e
287
+      }if(e == this.radio_fasheng){
288
+        this.fasheng_val = e
289
+      }if(e == this.radio_anfu) {
290
+        this.anfu_val = e
291
+      }
292
+      const total = this.face_val + this.rest_val + this.jijinz_val + this.fasheng_val + this.anfu_val
293
+      this.$emit('submit',total)
294
+    },
295
+    laorhuxi(e){
296
+      if(e == this.radio_lrhuxi){
297
+        this.huxi_val = e
298
+      }if(e == this.radio_lrfumian){
299
+        this.fumian_val = e
300
+      }if(e == this.radio_lrmianbu){
301
+        this.mianbu_val = e
302
+      }if(e == this.radio_lrshengti){
303
+        this.shengti_val = e
304
+      }if(e == this.radio_lrkeanfu) {
305
+        this.keanfu_val = e
306
+      }
307
+      const total = this.huxi_val + this.fumian_val + this.mianbu_val + this.shengti_val + this.keanfu_val
308
+      this.$emit('submit',total)
309
+    },
310
+    zhongzheng(e){
311
+      if(e == this.radio_zzmianbu){
312
+        this.zzmian_val = e
313
+      }if(e == this.radio_zzshengti){
314
+        this.zzshengti_val = e
315
+      }if(e == this.radio_zzjjinz){
316
+        this.zzjjinz_val = e
317
+      }if(e == this.radio_zzjixie){
318
+        this.zzjixie_val = e
319
+      }if(e == this.radio_zzfasheng) {
320
+        this.zzfasheng_val = e
321
+      }
322
+      const total = this.zzmian_val + this.zzshengti_val + this.zzjjinz_val + this.zzjixie_val + this.zzfasheng_val
323
+      this.$emit('submit',total)
324
+    },
325
+    huanzhe(e){
326
+      if(e == this.radio_hzface){
327
+        this.hzface_val = e
328
+      }if(e == this.radio_hzleg){
329
+        this.hzleg_val = e
330
+      }if(e == this.radio_hzactiv){
331
+        this.hzactiv_val = e
332
+      }if(e == this.radio_hzcry){
333
+        this.hzcry_val = e
334
+      }if(e == this.radio_hzcon) {
335
+        this.hzcon_val = e
336
+      }
337
+      const total = this.hzface_val + this.hzleg_val + this.hzactiv_val + this.hzcry_val + this.hzcon_val
338
+      this.$emit('submit',total)
455 339
     }
340
+  },
341
+  mounted(){
342
+    this.$emit('Totalpoints',this.Totalpoints)
343
+  },
344
+  computed:{
345
+    // tt_Totalpoints(){
346
+    //   if( this.radio == '成人量表'){
347
+    //     return this.Totalpoints = this.face_val + this.rest_val + this.jijinz_val + this.fasheng_val + this.anfu_val
348
+    //     // return this.radio_crface + this.radio_crrest + this.radio_crjijinz + this.radio_fasheng + this.radio_anfu
349
+    //   }else if(this.radio == '老年痴呆症量表'){
350
+    //     return this.huxi_val + this.fumian_val + this.mianbu_val + this.shengti_val + this.keanfu_val
351
+    //   }else if (this.radio == '重症患者量表') {
352
+    //     return this.zzmian_val + this.zzshengti_val + this.zzjjinz_val + this.zzjixie_val + this.zzfasheng_val
353
+    //   }else if (this.radio == '2月-7岁患者量表') {
354
+    //     return this.hzface_val + this.hzleg_val + this.hzactiv_val + this.hzcry_val + this.hzcon_val
355
+    //   }
356
+      
357
+    // }
358
+  }
359
+
456 360
 }
457 361
 </script>
458 362
 

+ 273 - 334
src/xt_pages/user/evaluationtool/dailyLife.vue View File

@@ -15,331 +15,142 @@
15 15
                 <div>
16 16
                     <table class="table" border="1" style="width: 100%;">
17 17
                         <thead>
18
-                            <tr>
19
-                                <th style="width: 150px;">项目</th>
20
-                                <th colspan="4">分值</th>
21
-                            </tr>
18
+                          <tr>
19
+                            <th style="width: 150px;">项目</th>
20
+                            <th colspan="4">分值</th>
21
+                          </tr>
22 22
                         </thead>
23 23
                         <tbody>
24
-                            <tr class="bg_color">
25
-                                <td class="start">进食</td>
26
-                                <td>
27
-                                    <div class="jiange">
28
-                                      <span>
29
-                                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
30
-                                            可独立进食(10分)
31
-                                        </label>
32
-                                      </span>
33
-                                    </div> 
34
-                                </td>
35
-                                <td>
36
-                                    <div class="jiange">
37
-                                      <span>
38
-                                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
39
-                                            需部分帮助(如协助夹菜等)(5分)
40
-                                        </label>
41
-                                      </span>
42
-                                    </div> 
43
-                                </td>
44
-                                <td>
45
-                                    <div class="jiange">
46
-                                      <span>
47
-                                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
48
-                                            需极大帮助或完全依赖他人(0分)
49
-                                        </label>
50
-                                      </span>
51
-                                    </div> 
52
-                                </td>
53
-                                <td>&nbsp;</td>
54
-                            </tr>
55
-            
56
-                            <tr>
57
-                                <td class="start">洗澡</td>
58
-                                <td>
59
-                                    <div class="jiange">
60
-                                      <span>
61
-                                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
62
-                                            准备好洗澡水后可独立完成(5分)
63
-                                        </label>
64
-                                      </span>
65
-                                    </div> 
66
-                                </td>
67
-                                <td>
68
-                                    <div class="jiange">
69
-                                      <span>
70
-                                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
71
-                                            在洗澡过程中需他人帮助(0分)
72
-                                        </label>
73
-                                      </span>
74
-                                    </div> 
75
-                                </td>
76
-                                <td></td>
77
-                                <td></td>
78
-                            </tr>
79
-                            
80
-                            <tr class="bg_color">
81
-                                <td class="start">修饰</td>
82
-                                <td>
83
-                                    <div class="jiange">
84
-                                      <span>
85
-                                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
86
-                                            可自己独立完成(5分)
87
-                                        </label>
88
-                                      </span>
89
-                                    </div> 
90
-                                </td>
91
-                                <td>
92
-                                    <div class="jiange">
93
-                                      <span>
94
-                                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
95
-                                            需他人帮助(0分)
96
-                                        </label>
97
-                                      </span>
98
-                                    </div> 
99
-                                </td>
100
-                                <td></td>
101
-                                <td></td>
102
-                            </tr>
103
-                            
104
-                            <tr>
105
-                                <td class="start">穿衣</td>
106
-                                <td>
107
-                                    <div class="jiange">
108
-                                      <span>
109
-                                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
110
-                                            可独立完成(10分)
111
-                                        </label>
112
-                                      </span>
113
-                                    </div> 
114
-                                </td>
115
-                                <td>
116
-                                    <div class="jiange">
117
-                                      <span>
118
-                                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
119
-                                            需部分帮助(如协助系鞋带等)(5分)
120
-                                        </label>
121
-                                      </span>
122
-                                    </div> 
123
-                                </td>
124
-                                <td>
125
-                                    <div class="jiange">
126
-                                      <span>
127
-                                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
128
-                                            需极大帮助或完全依赖他人(0分)
129
-                                        </label>
130
-                                      </span>
131
-                                    </div> 
132
-                                </td>
133
-                                <td></td>
134
-                            </tr>
135
-
136
-                            <tr class="bg_color">
137
-                                <td class="start">控制大便</td>
138
-                                <td>
139
-                                    <div class="jiange">
140
-                                      <span>
141
-                                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
142
-                                            可控制大便(10分)
143
-                                        </label>
144
-                                      </span>
145
-                                    </div> 
146
-                                </td>
147
-                                <td>
148
-                                    <div class="jiange">
149
-                                      <span>
150
-                                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
151
-                                            偶尔失禁(5分)
152
-                                        </label>
153
-                                      </span>
154
-                                    </div> 
155
-                                </td>
156
-                                <td>
157
-                                    <div class="jiange">
158
-                                      <span>
159
-                                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
160
-                                            完全失禁(0分)
161
-                                        </label>
162
-                                      </span>
163
-                                    </div> 
164
-                                </td>
165
-                                <td></td>
166
-                            </tr>
167
-            
168
-                            <tr>
169
-                                <td class="start">控制小便</td>
170
-                                <td>
171
-                                    <div class="jiange">
172
-                                      <span>
173
-                                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
174
-                                            可控制小便(10分)
175
-                                        </label>
176
-                                      </span>
177
-                                    </div> 
178
-                                </td>
179
-                                <td>
180
-                                    <div class="jiange">
181
-                                      <span>
182
-                                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
183
-                                            偶尔失禁(5分)
184
-                                        </label>
185
-                                      </span>
186
-                                    </div> 
187
-                                </td>
188
-                                <td>
189
-                                    <div class="jiange">
190
-                                      <span>
191
-                                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
192
-                                            完全失禁(0分)
193
-                                        </label>
194
-                                      </span>
195
-                                    </div> 
196
-                                </td>
197
-                                <td></td>
198
-                            </tr>
199
-                            
200
-                            <tr class="bg_color">
201
-                                <td class="start">如厕</td>
202
-                                <td>
203
-                                    <div class="jiange">
204
-                                      <span>
205
-                                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
206
-                                            可独立完成(10分)
207
-                                        </label>
208
-                                      </span>
209
-                                    </div> 
210
-                                </td>
211
-                                <td>
212
-                                    <div class="jiange">
213
-                                      <span>
214
-                                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
215
-                                            需部分帮助(如协助整理衣裤等)(5分)
216
-                                        </label>
217
-                                      </span>
218
-                                    </div> 
219
-                                </td>
220
-                                <td>
221
-                                    <div class="jiange">
222
-                                      <span>
223
-                                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
224
-                                            需极大帮助或完全依赖他人(0分)
225
-                                        </label>
226
-                                      </span>
227
-                                    </div> 
228
-                                </td>
229
-                                <td></td>
230
-                            </tr>
231
-                            
232
-                            <tr>
233
-                                <td class="start">床椅转移</td>
234
-                                <td>
235
-                                    <div class="jiange">
236
-                                      <span>
237
-                                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
238
-                                            可独立完成(15分)
239
-                                        </label>
240
-                                      </span>
241
-                                    </div> 
242
-                                </td>
243
-                                <td>
244
-                                    <div class="jiange">
245
-                                      <span>
246
-                                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
247
-                                            需部分帮助(1人协助))(10分)
248
-                                        </label>
249
-                                      </span>
250
-                                    </div> 
251
-                                </td>
252
-                                <td>
253
-                                    <div class="jiange">
254
-                                      <span>
255
-                                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
256
-                                            需极大帮助(2人协助)(5分)
257
-                                        </label>
258
-                                      </span>
259
-                                    </div> 
260
-                                </td>
261
-                                <td>
262
-                                    <div class="jiange">
263
-                                      <span>
264
-                                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
265
-                                            完全依赖他人,不能坐(0分)
266
-                                        </label>
267
-                                      </span>
268
-                                    </div> 
269
-                                </td>
270
-                            </tr>
271
-
272
-                            <tr class="bg_color">
273
-                                <td class="start">平地行走</td>
274
-                                <td>
275
-                                    <div class="jiange">
276
-                                      <span>
277
-                                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
278
-                                            可独立在平地上行走>45S,可用辅助工具(15分)
279
-                                        </label>
280
-                                      </span>
281
-                                    </div> 
282
-                                </td>
283
-                                <td>
284
-                                    <div class="jiange">
285
-                                      <span>
286
-                                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
287
-                                            需部分帮助(他人搀扶或使用辅助工具)(10分)
288
-                                        </label>
289
-                                      </span>
290
-                                    </div> 
291
-                                </td>
292
-                                <td>
293
-                                    <div class="jiange">
294
-                                      <span>
295
-                                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
296
-                                            需极大帮助(可坐轮椅自动移动))(5分)
297
-                                        </label>
298
-                                      </span>
299
-                                    </div> 
300
-                                </td>
301
-                                <td>
302
-                                    <div class="jiange">
303
-                                      <span>
304
-                                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
305
-                                            完全依赖他人(0分)
306
-                                        </label>
307
-                                      </span>
308
-                                    </div> 
309
-                                </td>
310
-                            </tr>
311
-                            
312
-                            <tr>
313
-                                <td class="start">上下楼梯</td>
314
-                                <td>
315
-                                    <div class="jiange">
316
-                                      <span>
317
-                                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
318
-                                            可独立上下1层楼梯(可用辅助工具)(10分)
319
-                                        </label>
320
-                                      </span>
321
-                                    </div> 
322
-                                </td>
323
-                                <td>
324
-                                    <div class="jiange">
325
-                                      <span>
326
-                                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
327
-                                            需部分帮助(他人帮助)(5分)
328
-                                        </label>
329
-                                      </span>
330
-                                    </div> 
331
-                                </td>
332
-                                <td>
333
-                                    <div class="jiange">
334
-                                      <span>
335
-                                        <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
336
-                                            需极大帮助或完全依赖他人(0分) 
337
-                                        </label>
338
-                                      </span>
339
-                                    </div> 
340
-                                </td>
341
-                                <td></td>
342
-                            </tr>
24
+                          <tr class="bg_color">
25
+                            <td class="start">进食</td>
26
+                            <td v-for="(item,index) in jinshi" :key="index">
27
+                                <div class="jiange">
28
+                                  <span>
29
+                                    <label><input type="checkbox" name="ball" :value="item.value" @click="jinshiclick($event,item.value)"/>&nbsp;
30
+                                        {{ item.label }}
31
+                                    </label>
32
+                                  </span>
33
+                                </div> 
34
+                            </td>                              
35
+                            <td>&nbsp;</td>
36
+                          </tr>          
37
+                          <tr>
38
+                            <td class="start">洗澡</td>
39
+                            <td v-for="(item,index) in xizao" :key="index">
40
+                              <div class="jiange">
41
+                                <span>
42
+                                  <label><input type="checkbox" name="ball" :value="item.value" @click="xizaoclick($event,item.value)"/>&nbsp;
43
+                                      {{ item.label }}
44
+                                  </label>
45
+                                </span>
46
+                              </div> 
47
+                            </td>
48
+                            <td></td>
49
+                            <td></td>
50
+                          </tr>                           
51
+                          <tr class="bg_color">
52
+                            <td class="start">修饰</td>
53
+                            <td v-for="(item,index) in xiushi" :key="index">
54
+                                <div class="jiange">
55
+                                  <span>
56
+                                    <label><input type="checkbox" name="ball" :value="item.value" @click="xiushiclick($event,item.value)"/>&nbsp;
57
+                                        {{item.label}}
58
+                                    </label>
59
+                                  </span>
60
+                                </div> 
61
+                            </td>                              
62
+                            <td></td>
63
+                            <td></td>
64
+                          </tr>                         
65
+                          <tr>
66
+                            <td class="start">穿衣</td>
67
+                            <td v-for="(item,index) in chuanyi" :key="index">
68
+                              <div class="jiange">
69
+                                <span>
70
+                                  <label><input type="checkbox" name="ball" :value="item.value" @click="chuanyiclick($event,item.value)"/>&nbsp;
71
+                                      {{item.label}}
72
+                                  </label>
73
+                                </span>
74
+                              </div> 
75
+                            </td>                               
76
+                            <td></td>
77
+                          </tr>
78
+                          <tr class="bg_color">
79
+                            <td class="start">控制大便</td>
80
+                            <td v-for="(item,index) in dabian" :key="index">
81
+                              <div class="jiange">
82
+                                <span>
83
+                                  <label><input type="checkbox" name="ball" :value="item.value" @click="dabianclick($event,item.value)"/>&nbsp;
84
+                                      {{item.label}}
85
+                                  </label>
86
+                                </span>
87
+                              </div> 
88
+                            </td> 
89
+                            <td></td>
90
+                          </tr>       
91
+                          <tr>
92
+                            <td class="start">控制小便</td>
93
+                            <td v-for="(item,index) in xioabian" :key="index">
94
+                              <div class="jiange">
95
+                                <span>
96
+                                  <label><input type="checkbox" name="ball" :value="item.value" @click="xioabianclick($event,item.value)"/>&nbsp;
97
+                                      {{item.label}}
98
+                                  </label>
99
+                                </span>
100
+                              </div> 
101
+                            </td>
102
+                            <td></td>
103
+                          </tr>                         
104
+                          <tr class="bg_color">
105
+                            <td class="start">如厕</td>
106
+                            <td v-for="(item,index) in ruce" :key="index">
107
+                              <div class="jiange">
108
+                                <span>
109
+                                  <label><input type="checkbox" name="ball" :value="item.value" @click="ruceclick($event,item.value)"/>&nbsp;
110
+                                      {{item.label}}
111
+                                  </label>
112
+                                </span>
113
+                              </div> 
114
+                            </td>
115
+                            <td></td>
116
+                          </tr>
117
+                          <tr>
118
+                            <td class="start">床椅转移</td>
119
+                            <td v-for="(item,index) in chuangyi" :key="index">
120
+                              <div class="jiange">
121
+                                <span>
122
+                                  <label><input type="checkbox" name="ball" :value="item.value" @click="chuangyiclick($event,item.value)"/>&nbsp;
123
+                                      {{item.label}}
124
+                                  </label>
125
+                                </span>
126
+                              </div> 
127
+                            </td>
128
+                          </tr>
129
+                          <tr class="bg_color">
130
+                            <td class="start">平地行走</td>
131
+                            <td v-for="(item,index) in pingdi" :key="index">
132
+                              <div class="jiange">
133
+                                <span>
134
+                                  <label><input type="checkbox" name="ball" :value="item.value" @click="pingdiclick($event,item.value)"/>&nbsp;
135
+                                      {{item.label}}
136
+                                  </label>
137
+                                </span>
138
+                              </div> 
139
+                            </td>                               
140
+                          </tr>
141
+                          <tr>
142
+                            <td class="start">上下楼梯</td>
143
+                            <td v-for="(item,index) in louti" :key="index">
144
+                              <div class="jiange">
145
+                                <span>
146
+                                  <label><input type="checkbox" name="ball" :value="item.value" @click="louticlick($event,item.value)"/>&nbsp;
147
+                                      {{ item.label }}
148
+                                  </label>
149
+                                </span>
150
+                              </div> 
151
+                            </td>                               
152
+                            <td></td>
153
+                          </tr>
343 154
                         </tbody>
344 155
                     </table>
345 156
                 </div>
@@ -348,7 +159,7 @@
348 159
                     <div>
349 160
                         <div class="bottoms">
350 161
                         <span>总分:</span>
351
-                        <el-input v-model="input" placeholder="请输入内容" style="width: 100px;"></el-input>分
162
+                        <el-input v-model="date_Totalpoints" style="width: 100px;"></el-input>分
352 163
                         </div>
353 164
 
354 165
                         <div class="bottoms">
@@ -395,18 +206,146 @@
395 206
 <script>
396 207
 import PatientSidebar from '../components/PatientSidebar.vue'
397 208
 export default {
398
-    components:{
399
-      PatientSidebar
209
+  components:{
210
+    PatientSidebar
211
+  },
212
+  data(){
213
+    return{
214
+      patientID:0,
215
+      value:'',
216
+      input:'',
217
+      value1:'',
218
+      options:[],
219
+      jinshi_val:null,
220
+      xizao_val:null,
221
+      xiushi_val:null,
222
+      chuanyi_val:null,
223
+      dabian_val:null,
224
+      xiaobian_val:null,
225
+      ruce_val:null,
226
+      chuangyi_val:null,
227
+      paingdi_val:null,
228
+      louti_val:null,
229
+      jinshi:[{value:10,label:'可独立进食(10分)'},
230
+              {value:5,label:'需部分帮助(如协助夹菜等)(5分)'},
231
+              {value:0,label:'需极大帮助或完全依赖他人(0分)'}
232
+            ],
233
+      xizao:[{value:5,label:'准备好洗澡水后可独立完成(5分)'},
234
+              {value:0,label:'在洗澡过程中需他人帮助(0分)'}
235
+            ],
236
+      xiushi:[{value:5,label:'可自己独立完成(5分)'},
237
+              {value:0,label:'需他人帮助(0分)'}
238
+            ],
239
+      chuanyi:[{value:10,label:'可独立完成(10分)'},
240
+              {value:5,label:'需部分帮助(如协助系鞋带等)(5分)'},
241
+              {value:0,label:'需极大帮助或完全依赖他人(0分)'}
242
+            ],
243
+      dabian:[{value:10,label:'可控制大便(10分)'},
244
+              {value:5,label:'偶尔失禁(5分)'},
245
+              {value:0,label:'完全失禁(0分)'}
246
+            ],
247
+      xioabian:[{value:10,label:'可控制大便(10分)'},
248
+              {value:5,label:'偶尔失禁(5分)'},
249
+              {value:0,label:'完全失禁(0分)'}
250
+            ],
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分)'}
259
+            ],
260
+      pingdi:[{value:15,label:'可独立在平地上行走>45S,可用辅助工具(15分)'},
261
+              {value:10,label:'需部分帮助(他人搀扶或使用辅助工具)(10分)'},
262
+              {value:5,label:'需极大帮助(可坐轮椅自动移动))(5分)'},
263
+              {value:0,label:'完全依赖他人(0分)'}
264
+            ],
265
+      louti:[{value:10,label:'可独立上下1层楼梯(可用辅助工具)(10分)'},
266
+              {value:5,label:'需部分帮助(他人帮助)(5分)'},
267
+              {value:0,label:'需极大帮助或完全依赖他人(0分)'}
268
+            ],      
269
+    }
270
+  },
271
+  methods:{
272
+    jinshiclick(e,val){
273
+     if(e.target.checked == true){
274
+      this.jinshi_val = val
275
+     }else{
276
+      this.jinshi_val =this.jinshi_val - val
277
+     }
400 278
     },
401
-    data(){
402
-        return{
403
-            patientID:0,
404
-            value:'',
405
-            input:'',
406
-            value1:'',
407
-            options:[],
408
-        }
279
+    xizaoclick(e,val){
280
+      if(e.target.checked == true){
281
+      this.xizao_val = val
282
+     }else{
283
+      this.xizao_val =this.xizao_val - val
284
+     }
285
+    },
286
+    xiushiclick(e,val){
287
+     if(e.target.checked == true){
288
+      this.xiushi_val = val
289
+     }else{
290
+      this.xiushi_val =this.xiushi_val - val
291
+     }
292
+    },
293
+    chuanyiclick(e,val){
294
+      if(e.target.checked == true){
295
+      this.chuanyi_val = val
296
+     }else{
297
+      this.chuanyi_val =this.chuanyi_val - val
298
+     }
299
+    },
300
+    dabianclick(e,val){
301
+     if(e.target.checked == true){
302
+      this.dabian_val = val
303
+     }else{
304
+      this.dabian_val =this.dabian_val - val
305
+     }
306
+    },
307
+    xiaobianclick(e,val){
308
+      if(e.target.checked == true){
309
+      this.xiaobian_val = val
310
+     }else{
311
+      this.xiaobian_val =this.xiaobian_val - val
312
+     }
313
+    },
314
+    ruceclick(e,val){
315
+     if(e.target.checked == true){
316
+      this.ruce_val = val
317
+     }else{
318
+      this.ruce_val =this.ruce_val - val
319
+     }
320
+    },
321
+    chuangyiclick(e,val){
322
+      if(e.target.checked == true){
323
+      this.chuangyi_val = val
324
+     }else{
325
+      this.chuangyi_val =this.chuangyi_val - val
326
+     }
327
+    },
328
+    pingdiclick(e,val){
329
+     if(e.target.checked == true){
330
+      this.paingdi_val = val
331
+     }else{
332
+      this.paingdi_val =this.paingdi_val - val
333
+     }
334
+    },
335
+    louticlick(e,val){
336
+      if(e.target.checked == true){
337
+      this.louti_val = val
338
+     }else{
339
+      this.louti_val =this.louti_val - val
340
+     }
341
+    },
342
+  },
343
+  computed:{
344
+    date_Totalpoints(){
345
+      return this.jinshi_val + this.xizao_val + this.xiushi_val + this.chuanyi_val + this.dabian_val + this.xiaobian_val + 
346
+      this.ruce_val + this.chuangyi_val + this.paingdi_val + this.louti_val
409 347
     }
348
+  }
410 349
 }
411 350
 </script>
412 351
 <style lang="scss" scoped>

+ 121 - 103
src/xt_pages/user/evaluationtool/nourishmentAssessment.vue View File

@@ -20,33 +20,30 @@
20 20
                       <tbody>
21 21
                       <tr class="bg_color">
22 22
                           <td class="start yingyang">
23
-                            <el-radio v-model="radio" label="0">0级</el-radio>
23
+                            <el-radio v-model="radio" label="0" @change="handleCheckedCitiesChange">0分</el-radio>
24 24
                           </td>
25
-                            
26 25
                           <td class="saoyang wenzi_color">营养需要量无增加</td>
27 26
                       </tr>
28 27
                       <tr>
29
-                          <td class="start">
30
-                            <el-radio v-model="radio" label="1">1级</el-radio>
31
-                          </td>
32
-                          
33
-                          <td class="saoyang wenzi_color">
34
-                              营养需要量轻度增加:
35
-                              <div >
36
-                                  <span v-for="item in qingdu" class="rightjiange">
37
-                                      <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;{{ item }}</label>
38
-                                  </span>
39
-                                  <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
40
-                                      <el-input v-model="input" placeholder="" style="width: 120px;"></el-input>
41
-                                  </label>
42
-                              </div>
43
-                          </td>                          
28
+                        <td class="start">
29
+                          <el-radio v-model="radio" label="1" @change="handleCheckedCitiesChange">1分</el-radio>
30
+                        </td>
31
+                        <td class="saoyang wenzi_color">
32
+                            营养需要量轻度增加:
33
+                            <div >
34
+                                <span v-for="item in qingdu" class="rightjiange">
35
+                                    <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;{{ item }}</label>
36
+                                </span>
37
+                                <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
38
+                                    <el-input v-model="input" placeholder="" style="width: 120px;"></el-input>
39
+                                </label>
40
+                            </div>
41
+                        </td>
44 42
                       </tr>
45 43
                       <tr class="bg_color">
46 44
                           <td class="start">
47
-                            <el-radio v-model="radio" label="2">2级</el-radio>
45
+                            <el-radio v-model="radio" label="2" @change="handleCheckedCitiesChange">2分</el-radio>
48 46
                           </td>
49
-                          
50 47
                           <td class="saoyang wenzi_color">
51 48
                               营养需要量中度增加:
52 49
                               <div >
@@ -61,7 +58,7 @@
61 58
                       </tr>
62 59
                       <tr>
63 60
                           <td class="start">
64
-                            <el-radio v-model="radio" label="3">3级</el-radio>
61
+                            <el-radio v-model="radio" label="3" @change="handleCheckedCitiesChange">3分</el-radio>
65 62
                           </td>
66 63
                           <td class="saoyang wenzi_color">
67 64
                               营养需要量重度增加:
@@ -87,16 +84,16 @@
87 84
                       <tbody>
88 85
                       <tr class="bg_color">
89 86
                           <td class="start yingyang">
90
-                            <el-radio v-model="radio" label="0">0级</el-radio>
87
+                            <el-radio v-model="radio1" label="0" @change="handleCheckedCitiesChange">0分</el-radio>
91 88
                           </td>
92
-                          
89
+
93 90
                           <td class="saoyang wenzi_color" >无营养受损</td>
94 91
                       </tr>
95 92
                       <tr>
96 93
                           <td class="start">
97
-                            <el-radio v-model="radio" label="0">1级</el-radio>
94
+                            <el-radio v-model="radio1" label="1" @change="handleCheckedCitiesChange">1分</el-radio>
98 95
                           </td>
99
-                          
96
+
100 97
                           <td class="saoyang">
101 98
                               <div >
102 99
                                   <span class="rightjiange">
@@ -107,52 +104,52 @@
107 104
                                           一周内进食量较从前减少25%-50%
108 105
                                       </label>
109 106
                                   </span>
110
-                                  
111
-                              </div>                             
112
-                          </td>                          
107
+
108
+                              </div>
109
+                          </td>
113 110
                       </tr>
114 111
                       <tr class="bg_color">
115
-                          <td class="start">
116
-                            <el-radio v-model="radio" label="0">2级</el-radio>
117
-                          </td>
118
-                          
119
-                          <td class="saoyang">
120
-                              <div >
121
-                                  <span class="rightjiange">
122
-                                      <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
123
-                                          2个月内体重下降>5%
124
-                                      </label>
125
-                                      <label style="margin-left: 40px;"><input type="checkbox" name="ball" value="volleyball" />&nbsp;
126
-                                          一周内进食量较从前减少50%-75%
127
-                                      </label>
128
-                                  </span>
129
-                                  
130
-                              </div>  
131
-                          </td>
112
+                        <td class="start">
113
+                          <el-radio v-model="radio1" label="2" @change="handleCheckedCitiesChange">2分</el-radio>
114
+                        </td>
115
+
116
+                        <td class="saoyang">
117
+                            <div >
118
+                                <span class="rightjiange">
119
+                                    <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
120
+                                        2个月内体重下降>5%
121
+                                    </label>
122
+                                    <label style="margin-left: 40px;"><input type="checkbox" name="ball" value="volleyball" />&nbsp;
123
+                                        一周内进食量较从前减少50%-75%
124
+                                    </label>
125
+                                </span>
126
+
127
+                            </div>
128
+                        </td>
132 129
                       </tr>
133 130
                       <tr>
134
-                          <td class="start">
135
-                            <el-radio v-model="radio" label="0">3级</el-radio>
136
-                          </td>
137
-                          <td class="saoyang"> 
138
-                              <div >
139
-                                  <span class="rightjiange">
140
-                                      <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
141
-                                          1个月内体重下降>5%
142
-                                      </label>
143
-                                      <label style="margin-left: 40px;"><input type="checkbox" name="ball" value="volleyball" />&nbsp;
144
-                                          一周内进食量较从前减少75%-100%
145
-                                      </label>
146
-                                      <label style="margin-left: 40px;"><input type="checkbox" name="ball" value="volleyball" />&nbsp;
147
-                                          体重指数(BMI)<18.5
148
-                                      </label>
149
-                                      <label style="margin-left: 40px;"><input type="checkbox" name="ball" value="volleyball" />&nbsp;
150
-                                          血蛋白<30g/L(得不到准确的BNI值时用白蛋白替代)
151
-                                      </label>
152
-                                  </span>
153
-                                  
154
-                              </div>                          
155
-                          </td>
131
+                        <td class="start">
132
+                          <el-radio v-model="radio1" label="3" @change="handleCheckedCitiesChange">3分</el-radio>
133
+                        </td>
134
+                        <td class="saoyang">
135
+                            <div >
136
+                                <span class="rightjiange">
137
+                                    <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;
138
+                                        1个月内体重下降>5%
139
+                                    </label>
140
+                                    <label style="margin-left: 40px;"><input type="checkbox" name="ball" value="volleyball" />&nbsp;
141
+                                        一周内进食量较从前减少75%-100%
142
+                                    </label>
143
+                                    <label style="margin-left: 40px;"><input type="checkbox" name="ball" value="volleyball" />&nbsp;
144
+                                        体重指数(BMI)<18.5
145
+                                    </label>
146
+                                    <label style="margin-left: 40px;"><input type="checkbox" name="ball" value="volleyball" />&nbsp;
147
+                                        血蛋白<30g/L(得不到准确的BNI值时用白蛋白替代)
148
+                                    </label>
149
+                                </span>
150
+
151
+                            </div>
152
+                        </td>
156 153
                       </tr>
157 154
                       </tbody>
158 155
                   </table>
@@ -164,19 +161,18 @@
164 161
                           </tr>
165 162
                       </thead>
166 163
                       <tbody>
167
-                          <tr class="bg_color ">
168
-                              <td class="start yingyang">
169
-                                <el-radio v-model="radio" label="0">0级</el-radio>
170
-                              </td>
171
-                              <td class="saoyang" style="font-size: 15px;">≤70岁</td>
172
-                          </tr>
173
-                          <tr>
174
-                              <td class="start yingyang">
175
-                                <el-radio v-model="radio" label="0">1级</el-radio>
176
-                              </td>
177
-                              <td class="saoyang" style="font-size: 15px;">>70岁</td>                          
178
-                          </tr>
179
-                      
164
+                        <tr class="bg_color ">
165
+                            <td class="start yingyang">
166
+                              <el-radio v-model="radio2" label="0" @change="handleCheckedCitiesChange">0分</el-radio>
167
+                            </td>
168
+                            <td class="saoyang" style="font-size: 15px;">≤70岁</td>
169
+                        </tr>
170
+                        <tr>
171
+                            <td class="start yingyang">
172
+                              <el-radio v-model="radio2" label="1" @change="handleCheckedCitiesChange">1分</el-radio>
173
+                            </td>
174
+                            <td class="saoyang" style="font-size: 15px;">>70岁</td>
175
+                        </tr>
180 176
                       </tbody>
181 177
                   </table>
182 178
                 </div>
@@ -184,7 +180,7 @@
184 180
                     <div>
185 181
                         <div class="bottoms">
186 182
                             <span>营养风险总评分:</span>
187
-                            <el-input v-model="input" placeholder="请输入内容" style="width: 100px;"></el-input>分 (疾病相关评分+营养受损评分+年龄评分)
183
+                            <el-input v-model="nour_Totalpoints" style="width: 100px;"></el-input>分 (疾病相关评分+营养受损评分+年龄评分)
188 184
                         </div>
189 185
 
190 186
                         <div class="bottoms">
@@ -214,41 +210,63 @@
214 210
                     <div>
215 211
                         <el-button type="primary">确定</el-button>
216 212
                     </div>
217
-                </div> 
213
+                </div>
218 214
                 <p>说明:总分 ≥3分   通知医生</p>
219
-
220
-
221 215
             </div>
222 216
         </div>
223
-        
224 217
     </div>
225 218
 </template>
226 219
 <script>
227 220
 import PatientSidebar from '../components/PatientSidebar.vue'
228 221
 export default {
229
-    components:{
230
-      PatientSidebar
231
-    },
232
-    data(){
233
-        return{
234
-            patientID:0,
235
-            checkList:[],
236
-            options:[],
237
-            value:'',
238
-            value1:'',
239
-            input:'',
240
-            radio:'',
241
-            qingdu:['骸骨折','慢性疾病急性发作或有','COPD','血液透析','肝硬化','一般恶性肿瘤患者','糖尿病'],
242
-            zhdu:['腹部大手术','脑卒中','重度肺炎','血液恶性肿瘤'],
243
-            zhongsdu:['颅脑损伤','骨髓移植','大于APACHE分的ICU患者']
244
-        }
222
+  components:{
223
+    PatientSidebar
224
+  },
225
+  data(){
226
+    return{
227
+      patientID:0,
228
+      checkList:[],
229
+      options:[],
230
+      value:'',
231
+      value1:'',
232
+      input:'',
233
+      radio:'',
234
+      radio1:'',
235
+      radio2:'',
236
+      radio_val:null,
237
+      radio1_val:null,
238
+      radio2_val:null,
239
+      qingdu:['骸骨折','慢性疾病急性发作或有','COPD','血液透析','肝硬化','一般恶性肿瘤患者','糖尿病'],
240
+      zhdu:['腹部大手术','脑卒中','重度肺炎','血液恶性肿瘤'],
241
+      zhongsdu:['颅脑损伤','骨髓移植','大于APACHE分的ICU患者']
242
+    }
243
+  },
244
+  methods:{
245
+    handleCheckedCitiesChange(e){
246
+      const ball=e * 1
247
+      console.log('1111',e);
248
+      if(ball == this.radio){
249
+        this.radio_val = ball
250
+      }
251
+      if(e == this.radio1){
252
+        this.radio1_val = ball
253
+      }
254
+      if(e == this.radio2){
255
+        this.radio2_val = ball
256
+      }
257
+    }
258
+  },
259
+  computed:{
260
+    nour_Totalpoints(){
261
+      return this.radio_val + this.radio1_val + this.radio2_val
245 262
     }
263
+  }
246 264
 }
247 265
 </script>
248 266
 <style lang="scss" scoped>
249 267
     .content_top{
250 268
       display: flex;
251
-      justify-content: space-between; 
269
+      justify-content: space-between;
252 270
     }
253 271
     .table{
254 272
         border: 1px solid #DCDFE6;
@@ -294,6 +312,6 @@ export default {
294 312
     .bottoms{
295 313
         display: inline-block;
296 314
         margin-left: 10px;
297
-        margin-top: 5px; 
315
+        margin-top: 5px;
298 316
     }
299
-</style>
317
+</style>

+ 238 - 235
src/xt_pages/user/evaluationtool/pediatricFallAssessment.vue View File

@@ -1,256 +1,259 @@
1 1
 <!-- 小儿跌倒风险评估 -->
2 2
 <template>
3
-    <div class="patient-container">
4
-        <patient-sidebar :id="patient_id" defaultActive="5-2"></patient-sidebar>
5
-        <div>
6
-            <div class="patient-app-container advice-container app-container">
7
-                <div class='content_top' style="width: 100%;margin-bottom: 20px;">
8
-                    <div style="font-size: 20px;">小儿高危跌倒坠床评估表</div>
9
-                    <div>
10
-                        <el-button>历史评分</el-button>
11
-                        <el-button @click="dialogVisible=true">告知书</el-button>
12
-                    </div>
13
-                </div>
3
+  <div class="patient-container">
4
+      <patient-sidebar :id="patient_id" defaultActive="5-2"></patient-sidebar>
5
+      <div>
6
+          <div class="patient-app-container advice-container app-container">
7
+              <div class='content_top' style="width: 100%;margin-bottom: 20px;">
8
+                  <div style="font-size: 20px;">小儿高危跌倒坠床评估表</div>
9
+                  <div>
10
+                      <el-button>历史评分</el-button>
11
+                      <el-button @click="dialogVisible=true">告知书</el-button>
12
+                  </div>
13
+              </div>
14 14
 
15
-                <div>
16
-                    <table class="table" id="table" border="1" style="width: 100%;">
17
-                        <thead>
18
-                            <tr>
19
-                            <th style="width:10%;">项目</th>
20
-                            <th style="width: 22.4%;">4分</th>
21
-                            <th style="width: 22.4%;">3分</th>
22
-                            <th style="width: 22.4%;">2分</th>
23
-                            <th style="width: 22.4%;">1分</th>
24
-                            </tr>
25
-                        </thead>
26
-                        <tbody>
27
-                            <tr class="bg_color">
28
-                                <td class="start">年龄</td>
29
-                                <td>
30
-                                    <div class="jiange">
31
-                                        <label><input name="ball" type="checkbox" value="football" @change="checkboxChange"/>&nbsp;>1岁~≤3岁</label>
32
-                                    </div>
33
-                                </td>
34
-                                <td><div class="jiange">
35
-                                    <label><input name="ball" type="checkbox" value="football" />&nbsp;>3岁~≤7岁</label>
36
-                                </div></td>
37
-                                <td><div class="jiange">
38
-                                    <label><input name="ball" type="checkbox" value="football" />&nbsp;>7岁~≤13岁</label>
39
-                                </div></td>
40
-                                <td><div class="jiange">
41
-                                    <label><input name="ball" type="checkbox" value="football" />&nbsp;>13岁</label>
42
-                                </div></td>
43
-                            
44
-                            </tr>
45
-                            <tr>
46
-                                <td style="border-right: none;">
47
-                                    <div class="bing">性别</div> 
48
-                                </td>
49
-                                <td colspan="2" style="border-left: none;"></td>
50
-                                <td>
51
-                                    <div class="jiange">
52
-                                    <label><input name="ball" type="checkbox" value="football" />&nbsp;男</label>
53
-                                    </div>
54
-                                </td>
55
-                                <td>
56
-                                    <div class="jiange">
57
-                                        <label><input name="ball" type="checkbox" value="football" />&nbsp;女</label>
58
-                                    </div>
59
-                                </td>
60
-                            </tr>
61
-                            <tr class="bg_color">
62
-                                <td class="start">诊断</td>
63
-                                <td><div class="jiange">
64
-                                    <label><input name="ball" type="checkbox" value="football" />&nbsp;
65
-                                        神经系统疾病:骨骼、关节系统疾病;眼科疾病
66
-                                    </label>
67
-                                </div></td>
68
-                                <td><div class="jiange">
69
-                                    <label><input name="ball" type="checkbox" value="football" />&nbsp;
70
-                                        氧合功能改变(呼吸系统疾病、心血管系统疾病、脱水、贫血、晕厥、头晕等);电解质紊乱
71
-                                    </label>
72
-                                </div></td>
73
-                                <td><div class="jiange">
74
-                                    <label><input name="ball" type="checkbox" value="football" />&nbsp;
75
-                                        心理/行为疾病
76
-                                    </label>
77
-                                </div></td>
78
-                                <td><div class="jiange">
79
-                                    <label><input name="ball" type="checkbox" value="football" />&nbsp;
80
-                                        其他疾病;疾病导致不能活动或移动
81
-                                    </label>
82
-                                </div></td>
83
-                            </tr>
84
-                            <tr>
85
-                                <td style="border-right: none;">
86
-                                    <div class="bing">认知障碍</div> 
87
-                                </td>
88
-                                <td style="border-left: none;"></td>
89
-                                <td><div class="jiange">
90
-                                    <label><input name="ball" type="checkbox" value="football" />&nbsp;
91
-                                        没有意识到不能自我行动
92
-                                    </label>
93
-                                </div></td>
94
-                                <td><div class="jiange">
95
-                                    <label><input name="ball" type="checkbox" value="football" />&nbsp;
96
-                                        忘记有行动的限制
97
-                                    </label>
98
-                                </div></td>
99
-                                <td><div class="jiange">
100
-                                    <label><input name="ball" type="checkbox" value="football" />&nbsp;
101
-                                        能自我辨识方位;昏迷、无反应
102
-                                    </label>
103
-                                </div></td> 
104
-                            </tr>
105
-                            <tr class="bg_color">
106
-                                <td class="start">环境因素</td>
107
-                                <td><div class="jiange">
108
-                                    <label>
109
-                                        <input name="ball" type="checkbox" value="football" />&nbsp;
110
-                                      <span>
111
-                                        住院期间有跌倒坠床史:患儿移动或活动时需要使用辅助工具(拐杖、助行器、转运床、轮椅等);婴幼儿放置在无护栏的成人床
112
-                                      </span>
113
-                                    </label>
114
-                                </div></td>
115
-                                <td><div class="jiange">
116
-                                    <label><input name="ball" type="checkbox" value="football" />&nbsp;
117
-                                        近1个月有跌倒坠床史:婴幼儿放置在有护栏的成人床
118
-                                    </label>
119
-                                </div></td>
120
-                                <td><div class="jiange">
121
-                                    <label><input name="ball" type="checkbox" value="football" />&nbsp;
122
-                                        近3个月有跌倒坠床史:婴幼儿放置在有护栏的婴儿床
123
-                                    </label>
124
-                                </div></td>
125
-                                <td><div class="jiange">
126
-                                    <label><input name="ball" type="checkbox" value="football" />&nbsp;
127
-                                        >3个月有跌倒坠床史/无跌倒坠床史
128
-                                    </label>
129
-                                </div></td> 
130
-                            </tr>
131
-                            <tr>
132
-                                <td style="border-right: none;">
133
-                                    <div class="bing">药物使用</div>
134
-                                </td> 
135
-                                <td style="border-left: none;"></td>                            
136
-                                <td><div class="jiange">
137
-                                    <label><input name="ball" type="checkbox" value="football" />&nbsp;
138
-                                        联合用药:镇静剂、安眠药、巴比妥类药、吩噻嗪类药、抗抑郁药、利尿药、降压药、强心剂、麻醉药、化疗药、散瞳剂
139
-                                    </label>
140
-                                </div></td>
141
-                                <td><div class="jiange">
142
-                                    <label><input name="ball" type="checkbox" value="football" />&nbsp;
143
-                                        以上其中一种药物
144
-                                    </label>
145
-                                </div></td>
146
-                                <td><div class="jiange">
147
-                                    <label><input name="ball" type="checkbox" value="football" />&nbsp;
148
-                                        其他药物/没有
149
-                                    </label>
150
-                                </div></td> 
151
-                            </tr>
152
-                            <tr class="bg_color">
153
-                            <td colspan="5" style="height: 30px;"></td>
154
-                            
155
-                            </tr>
156
-                            <tr>
157
-                            <td colspan="5">
158
-                                <div class="content_top" >
159
-                                    <div>
160
-                                        <div class="bottoms">
161
-                                        <span>总分:</span>
162
-                                        <el-input v-model="input" placeholder="请输入内容" style="width: 100px;"></el-input>分
163
-                                        </div>
164
-
165
-                                        <div class="bottoms">
166
-                                            <span>评估日期:</span>
167
-                                            <el-date-picker
168
-                                                v-model="value1"
169
-                                                type="date"
170
-                                                placeholder="选择日期"
171
-                                                :clearable="false"
172
-                                                style="width: 150px;">
173
-                                            </el-date-picker>
174
-                                        </div>
15
+              <div>
16
+                  <table class="table" id="table" border="1" style="width: 100%;">
17
+                      <thead>
18
+                          <tr>
19
+                          <th style="width:10%;">项目</th>
20
+                          <th style="width: 22.4%;">4分</th>
21
+                          <th style="width: 22.4%;">3分</th>
22
+                          <th style="width: 22.4%;">2分</th>
23
+                          <th style="width: 22.4%;">1分</th>
24
+                          </tr>
25
+                      </thead>
26
+                      <tbody>
27
+                          <tr class="bg_color">
28
+                            <td class="start">年龄</td>
29
+                            <td v-for="(item,index) in age" :key="index">
30
+                              <div class="jiange">
31
+                                <label><input name="ball" type="checkbox"  :value="item.value" @click="ageChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
32
+                              </div>
33
+                            </td>
34
+                          </tr>
35
+                          <tr>
36
+                            <td style="border-right: none;">
37
+                              <div class="bing">性别</div>
38
+                            </td>
39
+                            <td colspan="2" style="border-left: none;"></td>
40
+                            <td v-for="(item,index) in sex" :key="index">
41
+                              <div class="jiange">
42
+                                <label><input name="ball" type="checkbox" :value="item.value" @click="sexChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
43
+                              </div>
44
+                            </td>
45
+                          </tr>
46
+                          <tr class="bg_color">
47
+                            <td class="start">诊断</td>
48
+                            <td v-for="(item,index) in diagnosis" :key="index">
49
+                              <div class="jiange">
50
+                                <label><input name="ball" type="checkbox" :value="item.value" @click="diagnosischange($event,item.value)"/>&nbsp;{{item.lable}}</label>
51
+                              </div>
52
+                            </td>
53
+                              
54
+                          </tr>
55
+                          <tr>
56
+                            <td style="border-right: none;">
57
+                                <div class="bing">认知障碍</div>
58
+                            </td>
59
+                            <td style="border-left: none;"></td>
60
+                            <td v-for="(item,index) in cognize" :key="index">
61
+                              <div class="jiange">
62
+                                <label><input name="ball" type="checkbox" :value="item.value" @click="cognizeChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
63
+                              </div>
64
+                            </td>
65
+                              
66
+                          </tr>
67
+                          <tr class="bg_color">
68
+                            <td class="start">环境因素</td>
69
+                            <td v-for="(item,index) in environment" :key="index">
70
+                              <div class="jiange">
71
+                                <label><input name="ball" type="checkbox" :value="item.value" @click="environChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
72
+                              </div>
73
+                            </td>
175 74
 
176
-                                        <div class="bottoms">
177
-                                            <span>评估人:</span>
178
-                                            <el-select v-model="value" placeholder="请选择" >
179
-                                                <el-option
180
-                                                v-for="item in options"
181
-                                                :key="item.value"
182
-                                                :label="item.label"
183
-                                                :value="item.value"
184
-                                                style="width:150px;">
185
-                                                </el-option>
186
-                                            </el-select>
187
-                                        </div>
188
-                                        
189
-                                    </div>
190
-                                    <div style="margin:5px 10px;">
191
-                                            <el-button type="primary">确认</el-button>
192
-                                    </div>
193
-                                </div>
75
+                          </tr>
76
+                          <tr>
77
+                            <td style="border-right: none;">
78
+                                <div class="bing">药物使用</div>
194 79
                             </td>
195
-                            </tr>
196
-                        </tbody>
197
-                    </table>
80
+                            <td style="border-left: none;"></td>
81
+                            <td v-for="(item,index) in medicine" :key="index">
82
+                              <div class="jiange">
83
+                                <label><input name="ball" type="checkbox" :value="item.value" @click="medicineChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
84
+                              </div>
85
+                            </td>
86
+
87
+                          </tr>
88
+                          <tr class="bg_color">
89
+                          <td colspan="5" style="height: 30px;"></td>
90
+
91
+                          </tr>
92
+                          <tr>
93
+                          <td colspan="5">
94
+                            <div class="content_top" >
95
+                              <div>
96
+                                  <div class="bottoms">
97
+                                  <span>总分:</span>
98
+                                  <el-input v-model="pedia_Totalpoints" style="width: 100px;"></el-input>分
99
+                                  </div>
100
+
101
+                                  <div class="bottoms">
102
+                                      <span>评估日期:</span>
103
+                                      <el-date-picker
104
+                                          v-model="value1"
105
+                                          type="date"
106
+                                          placeholder="选择日期"
107
+                                          :clearable="false"
108
+                                          style="width: 150px;">
109
+                                      </el-date-picker>
110
+                                  </div>
111
+
112
+                                  <div class="bottoms">
113
+                                      <span>评估人:</span>
114
+                                      <el-select v-model="value" placeholder="请选择" >
115
+                                          <el-option
116
+                                          v-for="item in options"
117
+                                          :key="item.value"
118
+                                          :label="item.label"
119
+                                          :value="item.value"
120
+                                          style="width:150px;">
121
+                                          </el-option>
122
+                                      </el-select>
123
+                                  </div>
124
+
125
+                              </div>
126
+                              <div style="margin:5px 10px;">
127
+                                <el-button type="primary">确认</el-button>
128
+                              </div>
129
+                            </div>
130
+                          </td>
131
+                          </tr>
132
+                      </tbody>
133
+                  </table>
134
+
135
+              </div>
136
+
137
+          </div>
138
+      </div>
139
+      <div>
140
+          <el-dialog
141
+              title="内容详情"
142
+              :visible.sync="dialogVisible"
143
+              width="50%"
198 144
 
199
-                </div>
145
+              class="status_change">
146
+              <div>
147
+                  <Falloutbedprint></Falloutbedprint>
148
+              </div>
200 149
 
201
-            </div>
202
-        </div>
203
-        <div>
204
-            <el-dialog
205
-                title="内容详情"
206
-                :visible.sync="dialogVisible"
207
-                width="50%"
208
-                
209
-                class="status_change">
210
-                <div>
211
-                    <Falloutbedprint></Falloutbedprint>
212
-                </div>
213
-                
214
-            </el-dialog>
215
-            
216
-        </div>
217
-    </div>
150
+          </el-dialog>
151
+
152
+      </div>
153
+  </div>
218 154
 </template>
219 155
 <script>
220 156
 
221 157
 import PatientSidebar from '../components/PatientSidebar.vue'
222 158
 import Falloutbedprint from './Falloutbedprint.vue'
223 159
 export default {
224
-    components:{
225
-      PatientSidebar,
226
-      Falloutbedprint
160
+  components:{
161
+    PatientSidebar,
162
+    Falloutbedprint
163
+  },
164
+  data(){
165
+    return{
166
+      patient_id:0,
167
+      value1:'',
168
+      value:'',
169
+      options:[],
170
+      input:'',
171
+      agevalue:null,
172
+      sexvalue:null,
173
+      diagnosis_val:null,
174
+      cognize_val:null,
175
+      environment_val:null,
176
+      medicine_val:null,
177
+      // pedia_Totalpoints:0,
178
+      age:[{value:4,lable:'>1岁~≤3岁',id:1},{value:3,lable:'>3岁~≤7岁',id:2},{value:2,lable:'>7岁~≤13岁',id:3},{value:1,lable:'>13岁',id:4}],
179
+      sex:[{value:2,lable:'男'},{value:1,lable:'女'}],
180
+      diagnosis:[{value:4,lable:'神经系统疾病:骨骼、关节系统疾病;眼科疾病'},
181
+                {value:3,lable:'氧合功能改变(呼吸系统疾病、心血管系统疾病、脱水、贫血、晕厥、头晕等);电解质紊乱'},
182
+                {value:2,lable:'心理/行为疾病'},
183
+                {value:1,lable:'其他疾病;疾病导致不能活动或移动'}
184
+              ],
185
+      cognize:[{value:3,lable:'没有意识到不能自我行动'},
186
+                {value:2,lable:'忘记有行动的限制'},
187
+                {value:1,lable:'能自我辨识方位;昏迷、无反应'}], 
188
+      environment:[{value:4,lable:'住院期间有跌倒坠床史:患儿移动或活动时需要使用辅助工具(拐杖、助行器、转运床、轮椅等);婴幼儿放置在无护栏的成人床'},
189
+                {value:3,lable:'近1个月有跌倒坠床史:婴幼儿放置在有护栏的成人床'},
190
+                {value:2,lable:'近3个月有跌倒坠床史:婴幼儿放置在有护栏的婴儿床'},
191
+                {value:1,lable:'>3个月有跌倒坠床史/无跌倒坠床史'}],  
192
+      medicine:[{value:3,lable:'联合用药:镇静剂、安眠药、巴比妥类药、吩噻嗪类药、抗抑郁药、利尿药、降压药、强心剂、麻醉药、化疗药、散瞳剂'},
193
+                {value:2,lable:'以上其中一种药物'},
194
+                {value:1,lable:'其他药物/没有'}],                     
195
+      checked:'',
196
+      checkList:[],
197
+      dialogVisible:false,
198
+      text:'',
199
+    }
200
+  },
201
+  methods:{
202
+    ageChange(e,val){
203
+      console.log('22222',val);
204
+      if(e.target.checked == true){
205
+        this.agevalue = val
206
+      }else{
207
+        this.agevalue = this.agevalue - val
208
+      }
227 209
     },
228
-    data(){
229
-        return{
230
-            patient_id:0, 
231
-            value1:'',
232
-            value:'',
233
-            options:[],
234
-            input:'',
235
-            age:['>1岁~≤3岁','>3岁~≤7岁','>7岁~≤13岁','>13岁'],
236
-            checked:'',
237
-            checkList:[],
238
-            dialogVisible:false,
239
-        }
210
+    sexChange(e,val){
211
+      if(e.target.checked == true){
212
+        this.sexvalue = val
213
+      }else{
214
+        this.sexvalue =  this.sexvalue - val
215
+      }
216
+    },
217
+    diagnosischange(e,val){
218
+      if(e.target.checked == true){
219
+        this.diagnosis_val = val
220
+      }else{
221
+        this.diagnosis_val =  this.diagnosis_val - val
222
+      }
240 223
     },
241
-    methods:{
242
-      checkboxChange(){
243
-        var table = document.getElementById('table')
244
-        var row=table.rows
245
-        console.log('33333',row);
224
+    cognizeChange(e,val){
225
+      if(e.target.checked == true){
226
+        this.cognize_val = val
227
+      }else{
228
+        this.cognize_val =  this.cognize_val - val
246 229
       }
230
+    },
231
+    environChange(e,val){
232
+      if(e.target.checked == true){
233
+        this.environment_val = val
234
+      }else{
235
+        this.environment_val =  this.environment_val - val
236
+      }
237
+    },
238
+    medicineChange(e,val){
239
+      if(e.target.checked == true){
240
+        this.medicine_val = val
241
+      }else{
242
+        this.medicine_val =  this.medicine_val - val
243
+      }
244
+    },
245
+  },
246
+  computed:{
247
+    pedia_Totalpoints(){
248
+      return this.agevalue + this.sexvalue + this.diagnosis_val +this.cognize_val + this.environment_val + this.medicine_val
247 249
     }
250
+  }
248 251
 }
249 252
 </script>
250 253
 <style lang="scss" scoped>
251 254
     .content_top{
252 255
       display: flex;
253
-      justify-content: space-between; 
256
+      justify-content: space-between;
254 257
     }
255 258
     .table{
256 259
         border: 1px solid #DCDFE6;
@@ -280,7 +283,7 @@ export default {
280 283
         .bottoms{
281 284
             display: inline-block;
282 285
             margin-left: 10px;
283
-            margin-top: 5px; 
286
+            margin-top: 5px;
284 287
         }
285 288
         .jiange{
286 289
             margin-left: 20px;
@@ -290,11 +293,11 @@ export default {
290 293
             -webkit-appearance: checkbox;
291 294
         }
292 295
     }
293
-    
296
+
294 297
 </style>
295 298
 <style lang="scss">
296 299
     .status_change{
297
-        
300
+
298 301
         .el-dialog__header{
299 302
             background-color:#eff2f5;
300 303
             .el-dialog__title,.el-dialog__headerbtn i{
@@ -310,4 +313,4 @@ export default {
310 313
         margin-top: 0 !important;
311 314
 
312 315
     }
313
-</style>
316
+</style>

+ 174 - 197
src/xt_pages/user/evaluationtool/pruritusAssessment.vue View File

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